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
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.PARENT_ASSIGN_LOG_ID
public void setParentAssignLogId(Long parentAssignLogId) { this.parentAssignLogId = parentAssignLogId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getParentAssignLogId() {\n return parentAssignLogId;\n }", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public Long getAssignLogId() {\n return assignLogId;\n }", "public void setReparentTransactionRecordId( int reparentTransactionRecordId )\n{\n\tm_reparentTransactionRecordId = reparentTransactionRecordId;\n}", "public void setParentId(java.lang.Integer parentId);", "public void setParentID(int parentID) {\n\t\tthis.parentID = parentID;\n\t}", "public void setParent(int id);", "public void setParentCode(long value) {\n this.parentCode = value;\n }", "public void setnParentid(Integer nParentid) {\n this.nParentid = nParentid;\n }", "private void createSetFKParent(){\n Hashtable table=sqlTagsGeneratorTable.getImportedForeignKeyHash();\n Enumeration enum=table.keys();\n\n buffer.append(\" /**\\n\");\n buffer.append(\" * The <b><code>setFKParent</code></b> method is \");\n buffer.append(\"used to initializes Foreign\\n\");\n buffer.append(\" * Key columns within the HCYP_EVENTS table.\\n\");\n buffer.append(\" * @author Booker Northington II\\n\");\n buffer.append(\" * @version 1.0\\n\");\n buffer.append(\" * @param depth how many levels to initialize.\\n\");\n buffer.append(\" * @return none\\n\");\n buffer.append(\" * @since JDK1.3\\n\");\n buffer.append(\" */\\n\");\n buffer.append(spacer);\n buffer.append(\" public void setFKParent(int depth){\\n\");\n buffer.append(spacer);\n buffer.append(\" if(depth>0){\\n\");\n\n for(;enum.hasMoreElements();){\n String key=(String)enum.nextElement();\n SQLTagsGeneratorForeignKey object=(SQLTagsGeneratorForeignKey)\n table.get(key);\n String fkName=object.getFkName();\n buffer.append(\" \"+fkName+\"_PARENT=get\"+fkName+\"_PARENT\");\n buffer.append(\"(depth-1);\\n\");\n }\n buffer.append(\" }\\n\");\n buffer.append(\" return;\\n\");\n buffer.append(\" }// setFKParent() ENDS\\n\");\n }", "public void setParentid(Integer parentid) {\n\t\tthis.parentid = parentid;\n\t}", "public static void setParentEventId(ExtendedRecord er, ALATaxonRecord tr) {\n extractOptValue(er, DwcTerm.parentEventID).ifPresent(tr::setParentId);\n }", "public java.lang.Integer getParentId();", "public void setParentKey(long value) {\n\t\tthis.parentKey = value;\n\t}", "@Transactional\n public abstract void setNodeParentAndDependencies(\n String foreignSource, String foreignId, \n String parentForeignSource, String parentForeignId, \n String parentNodeLabel\n );", "public void setORM_Parent(orm.Nomenclature value) {\r\n\t\tthis.parent = value;\r\n\t}", "public void setAssignid(String assignid) {\n this.assignid = assignid == null ? null : assignid.trim();\n }", "@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }", "public void set_parentId(int value) {\n setUIntBEElement(offsetBits_parentId(), 16, value);\n }", "public void setParentParamCode(String parentParamCode) {\n this.parentParamCode = parentParamCode;\n }", "public int getParent_id() {\n return this.parent_id;\n }", "void setParentInstId(String parentInstId);", "public void setParentHsCodeId(Long value) {\r\n this.parentHsCodeId = value;\r\n }", "public IntColumn getParentId() {\n return delegate.getColumn(\"parent_id\", DelegatingIntColumn::new);\n }", "public void setParent(MenuTree parent){\n this.parentMenuTree = parent;\n }", "public void setParentGroupId(long parentGroupId) {\n this.parentGroupId = parentGroupId;\n }", "public void setParentOne(int parent)\n\t{\n\t\tparentSetOne = parent;\n\t}", "void setParent(TestResultTable.TreeNode p) {\n parent = p;\n }", "public void setParentVar(EAdVarDef<?> varDef) {\r\n\t\tthis.varDef = varDef;\r\n\t}", "public String getAssignid() {\n return assignid;\n }", "@Override\n public void setParent(IStatement _statement) {\n\t this._parent = _statement;\n }", "@PUT\n @Path(\"updateparent\")\n public Response putRankEventParentId(Map<Long, Long> request) {\n try {\n EventHelper.updateParent(request, getWorkspaceOracle());\n } catch (AbpException e) {\n throw new WebApplicationException(e);\n } catch (NotAuthorizedException e) {\n throw new WebApplicationException(e);\n }\n return respondPut();\n\n }", "public void setRelProjectId(int v) throws TorqueException\n {\n \n if (this.relProjectId != v)\n {\n this.relProjectId = v;\n setModified(true);\n }\n \n \n if (aProjectRelatedByRelProjectId != null && !(aProjectRelatedByRelProjectId.getProjectId() == v))\n {\n aProjectRelatedByRelProjectId = null;\n }\n \n }", "@Override\n\t\tpublic String getParentPKFieldName() {\n\t\t\treturn null;\n\t\t}", "public long getParentId()\n {\n return parentId;\n }", "protected void setParent(CodeItem codeItem) {\n this.parent = codeItem;\n }", "public int getParentId() {\r\n\t\treturn parentId;\r\n\t}", "public void setAssignOrgId(Long assignOrgId) {\n this.assignOrgId = assignOrgId;\n }", "public Integer getParentid() {\n\t\treturn parentid;\n\t}", "public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }", "public Integer getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "public int getParentID() {\n\t\treturn parentID;\n\t}", "public void setParentLabel(String parentLabel){\n\t\tthis.parentLabel = parentLabel;\n\t}", "public Token setParent_id(int parent_id) {\n this.parent_id = parent_id;\n setParent_idIsSet(true);\n return this;\n }", "public void setParentId(Integer parentId) {\n this.parentId = parentId;\n }", "public void setParentId(Integer parentId) {\n this.parentId = parentId;\n }", "public void setParentId(Integer parentId) {\n this.parentId = parentId;\n }", "public int getParentID() {\n\t\treturn _parentID;\n\t}", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public void setParentTid(Integer parentTid) {\r\n this.parentTid = parentTid;\r\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public void setParentId(int parentId) {\r\n\t\tthis.parentId = parentId;\r\n\t}", "private void setParentProcess(List<Process> result)\r\n\t{\r\n\t\tif (ValidationUtil.isNullOrEmpty(result))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// In case the Process has parent, get it too\r\n\t\tfor (Process process : result)\r\n\t\t{\r\n\t\t\tif (!ValidationUtil.isNull(process.getParentProcess())\r\n\t\t\t\t\t&& !ValidationUtil.isNullOrZero(process.getParentProcess().getId()))\r\n\t\t\t{\r\n\t\t\t\tprocess.setParentProcess(this.fetchProcessById(process.getParentProcess().getId()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setParent(ASTNode node) {\n\t\tthis.parent = node;\n\t\t\n\t}", "void setParent(Resource parent)\n {\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n {\n \tparentId = parent.getId();\n }\n else\n {\n \tparentId = -1;\n }\n }", "public void setParent(AbstractConfigNode parent) {\n this.parent = parent;\n }", "void setParent(TreeNode<T> parent);", "public void setParent(IAVLNode node) {\n\t\t\tthis.parent = node; // to be replaced by student code\n\t\t}", "public void setParentId(String parentId) {\n this.parentId = parentId == null ? null : parentId.trim();\n }", "public void setParentId(String parentId) {\n this.parentId = parentId == null ? null : parentId.trim();\n }", "public void setParentId(String parentId) {\n this.parentId = parentId == null ? null : parentId.trim();\n }", "@DISPID(84)\r\n\t// = 0x54. The runtime will prefer the VTID if present\r\n\t@VTID(82)\r\n\tint parentID();", "public Integer getnParentid() {\n return nParentid;\n }", "public void setParent(IAVLNode node);", "public void setParent(IAVLNode node);", "public void setParent(String aParent) {\n _theParent = aParent;\n }", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public void setParent (TreeNode parent)\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"setParent parent=\" + parent + \" for \" + this);\r\n }\r\n\r\n this.parent = parent;\r\n }", "public void setParentModule(EObject newValue);", "public java.lang.Long getParentId() {\n return parentId;\n }", "@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(58)\r\n\tint parentID();", "public Long getParentId() {\n return this.parentId;\n }", "public void setParentTwo(int parent)\n\t{\n\t\tparentSetTwo = parent;\n\t}", "public void setParent(HtmlMap<T> parent)\n\t{\n\t\tthis.m_parent = parent;\n\t}", "public final synchronized void setParent(final ICache<K, V, D> parent) {\n ICache<K, V, D> current = parent;\n while (current != null) {\n if (current == this)\n throw new IllegalArgumentException(\"Cycle detected, cannot set parent to \" + parent);\n current = current.getParent();\n }\n this.parent = parent;\n }", "protected void setParentReference(BSTNode cur, BSTNode nw) {\n\t\tassert (cur != null);\n\t\tassert (cur.parent != null);\n\t\tassert (nw != null);\n\n\t\tif (cur == cur.parent.left) {\n\t\t\tcur.parent.left = nw;\n\t\t} else if (cur == cur.parent.right) {\n\t\t\tcur.parent.right = nw;\n\t\t} else {\n\t\t\tassert (false);\n\t\t}\n\t}", "@Test\r\n public void testSetParent_getParent() {\r\n System.out.println(\"setParent\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n assertEquals(configNode, childNode1.getParent());\r\n }", "void setParentDriverName(String value)\r\n throws Exception;", "public void setLogId(String logId) {\r\n this.logId = logId == null ? null : logId.trim();\r\n }", "public void setWtIdParent(BigDecimal wtIdParent) {\r\n\t\tthis.wtIdParent = wtIdParent;\r\n\t}", "public long getParentGroupId() {\n return parentGroupId;\n }", "public void setLogid(Integer logid) {\n this.logid = logid;\n }", "public void setParentName(String name) { m_parentName = name; }", "public void setParentId(Long parentId) {\n this.parentId = parentId;\n }", "public void setParentId(Long parentId) {\n this.parentId = parentId;\n }", "public void setParentId(Long parentId) {\n this.parentId = parentId;\n }" ]
[ "0.7090601", "0.62055767", "0.6109832", "0.5640912", "0.5410921", "0.537981", "0.53352016", "0.5271616", "0.5265231", "0.52313805", "0.51598305", "0.5153361", "0.5134303", "0.51313186", "0.5095953", "0.50737697", "0.5060556", "0.50592786", "0.50549763", "0.5041793", "0.5031527", "0.5024935", "0.50214636", "0.49923944", "0.49853575", "0.49823228", "0.49704173", "0.4967745", "0.49618223", "0.49601987", "0.49422956", "0.49375573", "0.49263903", "0.48925743", "0.48734027", "0.48565647", "0.48476717", "0.4820366", "0.4804807", "0.47982666", "0.47937512", "0.47937512", "0.47937512", "0.47897783", "0.4776313", "0.47578007", "0.47510216", "0.47510216", "0.47510216", "0.47501364", "0.4745349", "0.4745349", "0.4745349", "0.4745349", "0.47372916", "0.4726915", "0.47262573", "0.47262573", "0.47262573", "0.47262573", "0.47262573", "0.47262573", "0.47262573", "0.47262573", "0.47262573", "0.47187766", "0.47127324", "0.47093165", "0.47033957", "0.4703032", "0.46959072", "0.46778935", "0.4671547", "0.4671547", "0.4671547", "0.4667872", "0.46639526", "0.46570152", "0.46570152", "0.465648", "0.464496", "0.46345076", "0.46333092", "0.4623124", "0.4622986", "0.46107587", "0.46105886", "0.4609083", "0.45870885", "0.4568134", "0.45628667", "0.4562023", "0.45595825", "0.45529255", "0.45421368", "0.45359352", "0.45289242", "0.45284244", "0.45284244", "0.45284244" ]
0.7420611
0
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ORG_ID
public Long getOrgId() { return orgId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public java.lang.String getOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public long getOrgId() {\r\n return orgId;\r\n }", "public Integer getOrgId() {\n\t\treturn orgId;\n\t}", "@AutoEscape\n\tpublic String getOrgId();", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "public String getOrgId() {\n\t\treturn orgId;\n\t}", "public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "String organizationId();", "public BigDecimal getOrgId() {\n return orgId;\n }", "public int getAD_OrgTrx_ID();", "public int getAD_OrgTrx_ID();", "public long getOrganizationId();", "public String getOrgNo() {\r\n return orgNo;\r\n }", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "public int getPersonOrgID() {\n return personOrgID;\n }", "private int getBank_Org_ID ()\n\t{\n\t\tif (m_C_BankAccount_ID == 0)\n\t\t\treturn 0;\n\t\t//\n\t\tMBankAccount ba = MBankAccount.get(getCtx(), m_C_BankAccount_ID);\n\t\treturn ba.getAD_Org_ID();\n\t}", "public int getAD_Tree_Org_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Org_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getHC_Org2_ID();", "public static String getCurrentUserOrgId() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n return Optional.of(username)\n .map(directoryManager::getUserByUsername)\n .map(User::getEmployments)\n .map(o -> (Set<Employment>)o)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst()\n .map(Employment::getOrganizationId)\n .orElse(\"\");\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public String getOrganizationId() {\n return organizationId;\n }", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "public int getAD_OrgTrx_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_OrgTrx_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }", "public Integer getOrgCode() {\n\t\treturn orgCode;\n\t}", "public Long gettOrganizationId() {\n\t\treturn tOrganizationId;\n\t}", "public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }", "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "public String getOrgCode() {\n return orgCode;\n }", "public String getOrgCode() {\n return orgCode;\n }", "public StrColumn getOrganisation() {\n return delegate.getColumn(\"organisation\", DelegatingStrColumn::new);\n }", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "public String getOrganId() {\n return organId;\n }", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public String getOrgCd() {\r\n return orgCd;\r\n }", "String getOrganizationPartyId();", "@Override\n\tpublic long getEsfOrganizationId() {\n\t\treturn _esfTournament.getEsfOrganizationId();\n\t}", "public void setOrgId(String orgId);", "public com.microsoft.schemas._2003._10.serialization.Guid xgetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n return target;\r\n }\r\n }", "public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public String getOrganizationCode() {\n return organizationCode;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}", "public String getOrgname() {\n return orgname;\n }", "public String getJdOrg() {\r\n\t\treturn jdOrg;\r\n\t}", "public String getOrginid() {\n return orginid;\n }", "public void setOrgId(long orgId) {\r\n this.orgId = orgId;\r\n }", "public StrColumn getAuthSeqId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"auth_seq_id\", StrColumn::new) :\n getBinaryColumn(\"auth_seq_id\"));\n }", "public StrColumn getAuthSeqId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"auth_seq_id\", StrColumn::new) :\n getBinaryColumn(\"auth_seq_id\"));\n }", "public String gettOrganizationCode() {\n\t\treturn tOrganizationCode;\n\t}", "public long getGovernorId()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getLong(0);\n\t}", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "public OrgDo getOrg(Integer id);", "public void setOrgId(Integer orgId) {\n\t\tthis.orgId = orgId;\n\t}", "public String getOrgName() {\r\n return orgName;\r\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Integer getLogid() {\n return logid;\n }", "public String getOrgName() {\n return orgName;\n }", "public java.lang.String getOrgName() {\n return OrgName;\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);" ]
[ "0.7003095", "0.6857118", "0.6809044", "0.6792788", "0.6670086", "0.66101795", "0.655351", "0.65372765", "0.6486771", "0.6465292", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6413836", "0.6338849", "0.63137436", "0.6303731", "0.6303731", "0.6298484", "0.6293148", "0.6255129", "0.6234398", "0.6207782", "0.6196379", "0.6190401", "0.6080879", "0.60490364", "0.60490364", "0.60343426", "0.5994166", "0.59895915", "0.59385127", "0.5861991", "0.5859265", "0.5815908", "0.5778938", "0.5747931", "0.57433873", "0.57433873", "0.56875736", "0.56664115", "0.56246656", "0.5559654", "0.5529892", "0.5497118", "0.5497118", "0.5448736", "0.54456943", "0.54271036", "0.54215246", "0.5421323", "0.5401038", "0.5393873", "0.53676414", "0.5364873", "0.5357265", "0.5356595", "0.53338057", "0.532086", "0.5294898", "0.5294898", "0.52736986", "0.5270234", "0.5254012", "0.5219918", "0.5215391", "0.5212456", "0.5212", "0.5207766", "0.5207766", "0.5207766", "0.5199687", "0.519075", "0.5180632", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205", "0.5164205" ]
0.6635799
9
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ORG_ID
public void setOrgId(Long orgId) { this.orgId = orgId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "public void setOrgId(String orgId);", "public void setOrgId(long orgId) {\r\n this.orgId = orgId;\r\n }", "public void setHC_Org2_ID (int HC_Org2_ID);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public long getOrgId() {\r\n return orgId;\r\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Integer getOrgId() {\n\t\treturn orgId;\n\t}", "@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }", "public String getOrgId() {\n\t\treturn orgId;\n\t}", "public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }", "public void setOrgId(BigDecimal orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Integer orgId) {\n\t\tthis.orgId = orgId;\n\t}", "public void setOrganizationId(long organizationId);", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public void setOrganizationId(java.lang.String organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.setStringValue(organizationId);\r\n }\r\n }", "public void setAD_Tree_Org_ID(int AD_Tree_Org_ID) {\n\t\tif (AD_Tree_Org_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_Org_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_Org_ID\", new Integer(AD_Tree_Org_ID));\n\t}", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "@AutoEscape\n\tpublic String getOrgId();", "public void setOrgNo(String orgNo) {\r\n this.orgNo = orgNo;\r\n }", "public java.lang.String getOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public void setAD_OrgTrx_ID(int AD_OrgTrx_ID) {\n\t\tif (AD_OrgTrx_ID <= 0)\n\t\t\tset_Value(\"AD_OrgTrx_ID\", null);\n\t\telse\n\t\t\tset_Value(\"AD_OrgTrx_ID\", new Integer(AD_OrgTrx_ID));\n\t}", "public void setOrgId(String orgId) {\n\t\tthis.orgId = orgId;\n\t}", "public String getOrgNo() {\r\n return orgNo;\r\n }", "public BigDecimal getOrgId() {\n return orgId;\n }", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public int getPersonOrgID() {\n return personOrgID;\n }", "@Override\n public void setOrganizationId(long organizationId) {\n _usersCatastropheOrgs.setOrganizationId(organizationId);\n }", "public void setOrginid(String orginid) {\n this.orginid = orginid == null ? null : orginid.trim();\n }", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "private void setOrganizationFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t//\n\t\t// Get Organizations fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Organization.COMPANY);\n\t\tString company = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TITLE);\n\t\tString title = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TYPE);\n\t\tint orgType = cur.getInt(selectedColumn);\n\n\t\tString customLabel = null;\n\t\tif (orgType == Organization.TYPE_CUSTOM) {\n\t\t\tselectedColumn = cur.getColumnIndex(Organization.LABEL);\n\t\t\tcustomLabel = cur.getString(selectedColumn);\n\t\t}\n\n\t\torgs.add(new OrgData(orgType, title, company, customLabel));\n\t}", "public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }", "private void reverseLookupAD_Org_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverese Look up AD_Org ID From JP_Org_Value\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"AD_Org_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Org_Value\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET AD_Org_ID=(SELECT AD_Org_ID FROM AD_org p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Org_Value=p.Value AND (p.AD_Client_ID=i.AD_Client_ID or p.AD_Client_ID=0) ) \")\r\n\t\t\t\t.append(\" WHERE i.JP_Org_Value IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t\t//Invalid JP_Org_Value\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Invalid\")+Msg.getElement(getCtx(), \"JP_Org_Value\");\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP \")\r\n\t\t\t.append(\"SET I_ErrorMsg='\"+ msg + \"'\")\r\n\t\t\t.append(\" WHERE AD_Org_ID = 0 AND JP_Org_Value IS NOT NULL AND JP_Org_Value <> '0' \")\r\n\t\t\t.append(\" AND I_IsImported<>'Y'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + msg +\" : \" + sql );\r\n\t\t}\r\n\r\n\t\tif(no > 0)\r\n\t\t{\r\n\t\t\tcommitEx();\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + msg );\r\n\t\t}\r\n\r\n\t}", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public long getOrganizationId();", "public String getOrganizationId() {\n return organizationId;\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void unsetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ORGANIZATIONID$4, 0);\r\n }\r\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "public void xsetOrganizationId(com.microsoft.schemas._2003._10.serialization.Guid organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.set(organizationId);\r\n }\r\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }", "public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }", "@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }", "public final void setOrganisation(String value) {\n organisation = value;\n }", "public Long gettOrganizationId() {\n\t\treturn tOrganizationId;\n\t}", "public void setOrgCode(Integer orgCode) {\n\t\tthis.orgCode = orgCode;\n\t}", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "public int getAD_Tree_Org_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Org_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public Value.Builder setKdOrg(java.lang.CharSequence value) {\n validate(fields()[12], value);\n this.kd_org = value;\n fieldSetFlags()[12] = true;\n return this;\n }", "private int getBank_Org_ID ()\n\t{\n\t\tif (m_C_BankAccount_ID == 0)\n\t\t\treturn 0;\n\t\t//\n\t\tMBankAccount ba = MBankAccount.get(getCtx(), m_C_BankAccount_ID);\n\t\treturn ba.getAD_Org_ID();\n\t}", "public int getAD_OrgTrx_ID();", "public int getAD_OrgTrx_ID();", "public int getHC_Org2_ID();" ]
[ "0.670631", "0.670631", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.6651149", "0.66179293", "0.65883255", "0.6474194", "0.6264809", "0.61987585", "0.61664855", "0.61346895", "0.61346895", "0.60946494", "0.6010008", "0.6010008", "0.6010008", "0.6010008", "0.6010008", "0.593038", "0.5926062", "0.58961844", "0.5864311", "0.585457", "0.5841868", "0.57918966", "0.5783088", "0.5779409", "0.57763106", "0.57736796", "0.5759546", "0.5743275", "0.5738263", "0.570021", "0.56975186", "0.56350535", "0.5601719", "0.5578892", "0.5562726", "0.5547643", "0.5547643", "0.55390084", "0.55311304", "0.55259645", "0.5496758", "0.54906297", "0.5472403", "0.54696864", "0.5459074", "0.5452589", "0.5452589", "0.54508525", "0.5438957", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.5407719", "0.54058814", "0.5379802", "0.53717595", "0.53628016", "0.5337723", "0.53374743", "0.53316885", "0.5313951", "0.53125566", "0.5299258", "0.5289689", "0.5280147", "0.5279761", "0.5267606", "0.52458435", "0.52438617", "0.52415013", "0.52141774", "0.52141774", "0.5160665" ]
0.59087735
35
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.OP_ID
public Long getOpId() { return opId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAccOpId() {\n return accOpId_;\n }", "public int getAccOpId() {\n return accOpId_;\n }", "public int getCurrentOperationId(){\n int nmr = 1;\n operationLock.lock();\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT OP_ID FROM APP.OPERATIONS ORDER BY OP_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"OP_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n operationLock.unlock();\n return nmr;\n }", "java.lang.String getOperationId();", "public String getOperationId() {\n return this.operationId;\n }", "public Integer getOperationId() {\n return operationId;\n }", "OperationIdT getOperationId();", "public Integer getLogid() {\n return logid;\n }", "public java.lang.String getOperID() {\n return operID;\n }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "int getLogId();", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "public String getOperationID() {\n\t\treturn operationId;\n\t}", "public String getLogId() {\r\n return logId;\r\n }", "@Override\r\n\tpublic OrderVO getOrderByID(Integer ono) throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getOneOrderByOrderID\",ono);\r\n\t}", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public int getLogid() {\n\treturn logid;\n}", "int getHjOpId();", "public Integer\t\tgetOrderID();", "public int getOp() {\n\t\treturn op;\n\t}", "com.google.protobuf.ByteString getOperationIdBytes();", "public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }", "String getForOperationId();", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "public Integer getCronopElemId() {\n\t\treturn this.cronopElemId;\n\t}", "public Optional<String> getOperationId() {\n return operationId;\n }", "public Long getOperatorId() {\n return operatorId;\n }", "public long getOperatorId() {\r\n return operatorId;\r\n }", "public String getOperatepersonid() {\r\n return operatepersonid;\r\n }", "public String getOp() {\n return op;\n }", "public String getOp() {\n return op;\n }", "public Integer getOperatorId() {\n return operatorId;\n }", "public RelationalOp getOp() {\n\t\treturn op;\n\t}", "public Long getCreateOpId() {\n return createOpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public long getApikeyOpId() {\n return apikeyOpId_;\n }", "public long getApikeyOpId() {\n return apikeyOpId_;\n }", "public String getOperateEmpId() {\n return operateEmpId;\n }", "public String getOperTypeId() {\r\n\t\treturn operTypeId;\r\n\t}", "public String getOperatorid() {\n return operatorid;\n }", "long getApikeyOpId();", "private String getOperation(Map<String, String> map) throws WrongParameterException {\n String operation = map.get(\"operation\");\n if(operation != null){\n return operation;\n }\n else throw new WrongParameterException(\"parameter 'operation' not found in FindCustomer command\");\n }", "Integer getOperationTypeId();", "public int getID(OrderItem oi){\n int id;\n id=findID(oi);\n return id;\n }", "public int getM_InOut_ID();", "public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }", "public java.lang.Long getOpcowner() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCOWNER);\n\t}", "public Operator getOp() {\n return op;\n }", "public int getMPC_Order_ID() {\n\t\tInteger ii = (Integer) get_Value(\"MPC_Order_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public Long getOrderid() {\r\n return orderid;\r\n }", "public String getLastOperation()\n {\n if (!getCvpOperation().isNull())\n {\n com.sybase.afx.json.JsonObject cvpOperation = (com.sybase.afx.json.JsonObject)(com.sybase.afx.json.JsonReader.parse(__cvpOperation.getValue()));\n return (String)cvpOperation.get(\"cvp_name\");\n }\n if (getPendingChange() == 'C')\n {\n }\n else if (getPendingChange() == 'D')\n {\n }\n else if (getPendingChange() == 'U')\n {\n }\n return null;\n }", "public void setOperationID(String operaionId) {\n\t\tthis.operationId = operaionId;\n\t}", "public TypeOperation getOperation(int typeOp){\n for (int i=0; i<tabTypeOp.length; i++){\n if (tabTypeOp[i].getType() == typeOp)\n return tabTypeOp[i];\n }\n return null;\n }", "public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }", "public int getId() {\n return orderID;\n }", "String getOrderStatusId();", "@Override\n\tpublic String operateTypeId() throws Exception{\n\t\treturn \"02004\";\n\t}", "public TransactionType getLogCode () {\n return logCode;\n }", "public int getId() {\n return oid ;\n }", "public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}", "public java.lang.Long getOpcmethod() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCMETHOD);\n\t}", "public java.lang.String getOpNum() {\r\n return localOpNum;\r\n }", "public int getHC_JobDataChange_ID();", "public String getId() {\n return (String) getValue(ACTION_ID);\n }", "public int geti_ordertrx_temp_ID();", "public int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public String getTransLogId() {\n return transLogId;\n }", "@Column(name = \"POOL_LOG\")\n/* */ @Order(4)\n/* 86 */ public String getPoolLog() { return this.poolLog; }", "public Long getOperator() {\n return operator;\n }", "public long getAuditLogId() {\n return auditLogId;\n }", "public BigDecimal getOP_NO() {\r\n return OP_NO;\r\n }", "public String getOrderId(JsonObject order) {\r\n\t\tint orderID = 0;\r\n\t\tString customerId = order.get(\"customerId\").getAsString();\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"SELECT * FROM home_heating_fuel_orders\" + \" WHERE customerID = '\" + customerId + \"';\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\torderID = Math.max(rs.getInt(\"orderID\"), orderID);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn orderID + \"\";\r\n\t}", "public int getAuditId();", "@Override\n\tpublic Integer getId() {\n\t\treturn ofertaOpexId;\n\t}", "@Override\r\n\tpublic int getOstatu_id() {\n\t\treturn super.getOstatu_id();\r\n\t}", "public String getOperation() {\n return this.operation;\n }", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public Integer getOpr() {\n return opr;\n }", "public int obtId() {\r\n\t\treturn id;\r\n\t}", "public static String get_olts_id(){\r\n\t\t_olts_id ++;\r\n\t\treturn \"OLTS\" + _olts_id;\r\n\t}", "public int getC_OrderLine_ID();", "public Long getOperatetype() {\n return operatetype;\n }", "public java.lang.String getOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getOrderNo()\n\t{\n\t\treturn getColumn(OFF_ORDER_NO, LEN_ORDER_NO) ;\n\t}", "public Integer getId() {\n\t\treturn loanId; //changed LoAn_Id to loanId\r\n\t}", "public int getOrderID() {\r\n return emporderID;\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}", "public String getOid() {\n return getProperty(Property.OID);\n }", "public String getPayLogId() {\n return payLogId;\n }", "public Long getActionId() {\n return actionId;\n }", "@Override\n public String getPigeonCoopID() {\n\n if(this.pigeonCoopID == null){\n\n this.pigeonCoopID = TestDatabase.getInstance().getClientField(token, id, \"pigeonCoopID\");\n }\n return pigeonCoopID;\n\n }", "int getReprojectedModisId(String project, DataDate date) throws SQLException;" ]
[ "0.62030476", "0.61497474", "0.6146427", "0.59941936", "0.59283566", "0.588748", "0.5814992", "0.5805181", "0.5762818", "0.5723037", "0.57042485", "0.56864166", "0.56712586", "0.56509435", "0.5608965", "0.5593473", "0.5593473", "0.5593473", "0.5593473", "0.5592325", "0.5580598", "0.557179", "0.55176973", "0.5490911", "0.5464503", "0.5458099", "0.53859526", "0.5366604", "0.5362351", "0.5360536", "0.53545815", "0.53093547", "0.53058094", "0.53058094", "0.53002745", "0.52929145", "0.52876276", "0.52876276", "0.52876276", "0.5265857", "0.525875", "0.5226827", "0.5223271", "0.51993793", "0.51842004", "0.51763546", "0.51739436", "0.5170863", "0.51381516", "0.5134815", "0.5127989", "0.5127827", "0.51035166", "0.50961614", "0.5092481", "0.5085113", "0.5083207", "0.50800264", "0.5056986", "0.5051465", "0.5050882", "0.5044062", "0.5043252", "0.50420785", "0.50390035", "0.50373554", "0.50211775", "0.5020068", "0.5017842", "0.5013327", "0.5000765", "0.49974427", "0.49856743", "0.4984362", "0.49843544", "0.49709648", "0.49679244", "0.49661562", "0.49567467", "0.49547824", "0.49543256", "0.4946103", "0.4945289", "0.49225357", "0.49188378", "0.49180296", "0.49111077", "0.4906222", "0.4900244", "0.48890403", "0.488854", "0.48838773", "0.4882897", "0.48775592", "0.48661876", "0.4863584", "0.48591998" ]
0.6759422
2
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.OP_ID
public void setOpId(Long opId) { this.opId = opId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setAccOpId(int value) {\n \n accOpId_ = value;\n onChanged();\n return this;\n }", "public void setOp(int op) {\n\t\tthis.op = op;\n\t}", "public void setOperationID(String operaionId) {\n\t\tthis.operationId = operaionId;\n\t}", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public void setOP_NO(BigDecimal OP_NO) {\r\n this.OP_NO = OP_NO;\r\n }", "public void setOperID(java.lang.String operID) {\n this.operID = operID;\n }", "public void setOpr(Integer opr) {\n this.opr = opr;\n }", "public void setOp(String op) {\n this.op = op;\n }", "public void setOpr(int opr) {\n\t\tthis.opr = opr;\n\t}", "public void setOp(Operator op) {\n this.op = op;\n }", "protected void setOpc(int opc) {\n this.opc = opc;\n }", "public void setOp(String op) {\n this.op = op == null ? null : op.trim();\n }", "public int getAccOpId() {\n return accOpId_;\n }", "public Builder setHjOpId(int value) {\n bitField0_ |= 0x00000040;\n hjOpId_ = value;\n onChanged();\n return this;\n }", "public void setOperation(String op) {this.operation = op;}", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public int getAccOpId() {\n return accOpId_;\n }", "public void setOperationId(Integer operationId) {\n this.operationId = operationId;\n }", "public void setOpTime(Date opTime) {\n this.opTime = opTime;\n }", "public void setOperationId(String operationId) {\n this.operationId = operationId;\n }", "public void setOpcmethod(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCMETHOD, value);\n\t}", "public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }", "public void setOrderId(int value) {\n this.orderId = value;\n }", "public void setOperator(int opr) {\n this.operator = opr;\n }", "public void setOpNum(java.lang.String param) {\r\n localOpNumTracker = param != null;\r\n\r\n this.localOpNum = param;\r\n }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "public void setOpDate (java.util.Date opDate) {\r\n\t\tthis.opDate = opDate;\r\n\t}", "public void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);", "public void setOperation (String Operation);", "public void setOpdate(String opdate) {\n this.opdate = opdate;\n }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "public void setMPC_Order_ID(int MPC_Order_ID) {\n\t\tif (MPC_Order_ID < 1)\n\t\t\tthrow new IllegalArgumentException(\"MPC_Order_ID is mandatory.\");\n\t\tset_Value(\"MPC_Order_ID\", new Integer(MPC_Order_ID));\n\t}", "public void setMPC_Order_Node_ID(int MPC_Order_Node_ID) {\n\t\tif (MPC_Order_Node_ID <= 0)\n\t\t\tset_Value(\"MPC_Order_Node_ID\", null);\n\t\telse\n\t\t\tset_Value(\"MPC_Order_Node_ID\", new Integer(MPC_Order_Node_ID));\n\t}", "public void setOrderID(int orderID)\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(ORDERID$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORDERID$0);\n }\n target.setIntValue(orderID);\n }\n }", "public void setOperateEmpId(String operateEmpId) {\n this.operateEmpId = operateEmpId;\n }", "public void setDateOp(Date dateOp) {\n this.dateOp = dateOp;\n }", "public String getOperationId() {\n return this.operationId;\n }", "@Override\n\tpublic void insertOrderOutCallLog(Map req) {\n\t\tString log_id=this.baseDaoSupport.getSequences(\"o_outcall_log\");\n\t\treq.put(\"log_id\",log_id);\n//\t\tthis.baseDaoSupport.in\n\t this.baseDaoSupport.insert(\"es_order_outcall_log\", req);\n\t}", "public void setCronopElemId(Integer cronopElemId) {\n\t\tthis.cronopElemId = cronopElemId;\n\t}", "public void setOPER_TIME(Date OPER_TIME) {\n this.OPER_TIME = OPER_TIME;\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public void setM_InOut_ID (int M_InOut_ID);", "public void setOpcowner(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCOWNER, value);\n\t}", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public Builder setApikeyOpId(long value) {\n bitField0_ |= 0x00000001;\n apikeyOpId_ = value;\n onChanged();\n return this;\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "private void setPoId(Long id) {\r\n this.poId = id;\r\n }", "public void setOpControl(java.lang.String param) {\r\n localOpControlTracker = param != null;\r\n\r\n this.localOpControl = param;\r\n }", "public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);", "public void setLoadCommandID(java.lang.Long value);", "public void setLoadCommandID(java.lang.Long value);", "public void setOperatorId(long operatorId) {\r\n this.operatorId = operatorId;\r\n }", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "public void writeOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n session.setAttribute(\"orderId\", \"\" + orderId);\n }", "public void setOperatepersonid(String operatepersonid) {\r\n this.operatepersonid = operatepersonid;\r\n }", "public void setLogid(Integer logid) {\n this.logid = logid;\n }", "public void setOprTime(Date oprTime) {\n this.oprTime = oprTime;\n }", "public Integer getOperationId() {\n return operationId;\n }", "public void setLogId(String logId) {\r\n this.logId = logId == null ? null : logId.trim();\r\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setM_Production_ID (int M_Production_ID);", "public void setAuditLogId(long value) {\n this.auditLogId = value;\n }", "public void xsetOrderID(org.apache.xmlbeans.XmlInt orderID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(ORDERID$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(ORDERID$0);\n }\n target.set(orderID);\n }\n }", "public void setOid(int oid) {\n this.tid = oid;\n }", "public void setOperator(com.hps.july.persistence.Operator arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOperator(arg0);\n }", "java.lang.String getOperationId();", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }", "public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }", "public void setOperatorId(Long operatorId) {\n this.operatorId = operatorId;\n }", "@Override\r\n\tpublic OrderVO getOrderByID(Integer ono) throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getOneOrderByOrderID\",ono);\r\n\t}", "public java.lang.String getOperID() {\n return operID;\n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "@Override\r\n\tpublic int changeOrderInvFlag(OrdersVO orVO) {\n\t\treturn getSqlSession().update(namespace+\".changeOrderInvFlag\", orVO);\r\n\t}", "public void setC_OrderLine_ID (int C_OrderLine_ID);", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public void setOID(java.lang.String oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OID$12);\r\n }\r\n target.setStringValue(oid);\r\n }\r\n }", "void applyOperationId(Operation operation, Method method);", "public void setOid(Long oid) {\n this.oid = oid;\n }", "public Integer getLogid() {\n return logid;\n }", "public String getLogId() {\r\n return logId;\r\n }", "public void setOperator(Long operator) {\n this.operator = operator;\n }", "public void setIdAttraction(Integer idAttraction) {\r\n this.idAttraction = idAttraction;\r\n }", "public SystemLog (\r\n\t\t Long in_logId\r\n ) {\r\n\t\tthis.setLogId(in_logId);\r\n }", "public String getOperationID() {\n\t\treturn operationId;\n\t}", "public void setOid(Integer oid) {\n this.oid = oid;\n }", "public void setOperTypeId(String operTypeId) {\r\n\t\tthis.operTypeId = operTypeId;\r\n\t}", "public int getLogid() {\n\treturn logid;\n}", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);" ]
[ "0.5740879", "0.5677488", "0.5664484", "0.5661473", "0.5661473", "0.5661473", "0.5661473", "0.5453204", "0.53702825", "0.53436846", "0.5340674", "0.53185886", "0.529451", "0.52796817", "0.5218067", "0.5190077", "0.5177313", "0.5168576", "0.5141894", "0.5141894", "0.5117624", "0.5094901", "0.5011112", "0.5005217", "0.50042397", "0.49939176", "0.4973734", "0.4967882", "0.49439946", "0.49251276", "0.49248463", "0.49133703", "0.49023667", "0.48789173", "0.48677585", "0.4842953", "0.4833407", "0.4832553", "0.48147178", "0.47929096", "0.4787752", "0.47834155", "0.4780462", "0.4778622", "0.47713935", "0.47691292", "0.4759146", "0.47388214", "0.47288114", "0.47288114", "0.47244978", "0.4714015", "0.47105125", "0.4709075", "0.47062236", "0.47047427", "0.47047427", "0.46963242", "0.46861175", "0.46812236", "0.46792248", "0.46744645", "0.46714497", "0.4667278", "0.46645254", "0.4658458", "0.46545908", "0.46526566", "0.46513858", "0.46510872", "0.4645907", "0.46428055", "0.4638366", "0.4630738", "0.4630738", "0.46276954", "0.46191254", "0.46159962", "0.46146873", "0.46091253", "0.46091253", "0.46059406", "0.46057376", "0.4605732", "0.4592387", "0.4581505", "0.45765945", "0.45633417", "0.45593947", "0.4553668", "0.4550156", "0.45475453", "0.45426366", "0.453995", "0.45350835", "0.45269427", "0.45262748" ]
0.6383032
2
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.DONE_DATE
public Date getDoneDate() { return doneDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getFinishDate() {\n if (this.finishDate == null) {\n return null;\n }\n return new Date(this.finishDate.getTime());\n }", "public String getCompletedDate(int position) {\n HashMap<String, String> map = list.get(position);\n return map.get(COMPLETED_DATE_COLUMN);\n }", "public Date getFinishDate()\r\n {\r\n Date result = m_finishDate;\r\n if (result == null)\r\n {\r\n result = getParentFile().getFinishDate();\r\n }\r\n return (result);\r\n }", "public Date getCompletedDate() {\n return this.completedDate;\n }", "public StrColumn getDateEndProcessing() {\n return delegate.getColumn(\"date_end_processing\", DelegatingStrColumn::new);\n }", "public Date getActualFinish()\r\n {\r\n return (m_actualFinish);\r\n }", "public Timestamp getDateFinishSchedule() {\n\t\treturn (Timestamp) get_Value(\"DateFinishSchedule\");\n\t}", "@Override\n\tpublic Date getCompleteDate() {\n\t\treturn model.getCompleteDate();\n\t}", "public abstract java.sql.Timestamp getFecha_fin();", "public java.sql.Date getREQ_END_DATE()\n {\n \n return __REQ_END_DATE;\n }", "public java.util.Date getLastExecuteTime()\n {\n return null;\n }", "@javax.jdo.annotations.Column(allowsNull = \"false\")\n\t@MemberOrder(sequence = \"4\")\n\tpublic Date getFechaFin() {\n\t\treturn this.fechaFin;\n\t}", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public String get_task_due_date()\n {\n return task_due_date.toString();\n }", "public Date getFinishedAt() {\n\t\treturn finishedAt;\n\t}", "public Date getFechaActual() {\r\n\t\treturn controlador.getFechaActual();\r\n\t}", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "@Override\n\tpublic Date getDbDate() {\n\t\treturn systemMapper.selectNow();\n\t}", "public String getFechaFinal(){\n\n\t\treturn campoFinal.getText();\n\n\t}", "public java.sql.Timestamp getFecha_envio();", "public java.sql.Timestamp getLogdate()\n {\n return logdate; \n }", "public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }", "long getFetchedDate();", "Date getDateUpdated();", "@DISPID(8)\r\n\t// = 0x8. The runtime will prefer the VTID if present\r\n\t@VTID(12)\r\n\tjava.util.Date completionDateTime();", "public StrColumn getDateOfPDBRelease() {\n return delegate.getColumn(\"date_of_PDB_release\", DelegatingStrColumn::new);\n }", "long getDate() { return (act != null ? act.getDate() : 0); }", "public Date getEND_DATE() {\n return END_DATE;\n }", "public Date getFinalActiveDate() {\n if (_finalActiveDate == null) {\n _finalActiveDate = DEFAULT_FINAL_ACTIVE_DATE;\n }\n return _finalActiveDate;\n }", "public Date getDateExecution() {\r\n return dateExecution;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastStatusChangeDate();", "public Date obtenerUltimaFecha() {\n String sql = \"SELECT proyind_periodo_fin\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_fin IS NOT NULL\"\n + \" ORDER BY proyind_periodo_fin DESC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }", "Date getForLastUpdate();", "long getLastBonusTicketDate();", "public String getReturningDate() {\r\n return returningDate;\r\n }", "public Date getCompleteTime() {\n return completeTime;\n }", "public Timestamp getFechaFin() {\n return fechaFin;\n }", "public Date getDateUpdated() {\n\t\treturn parseDate(getProperty(DATE_UPDATED_PROPERTY));\n\t}", "public java.sql.Timestamp getFecha();", "public String getLastPaymentDate() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"PAYMENT_DATE\").get(0);\n\t}", "public abstract java.sql.Timestamp getFecha_ingreso();", "public void setCompletedDate(Date value) {\n this.completedDate = value;\n }", "public Date getDELETED_DATE() {\r\n return DELETED_DATE;\r\n }", "public Date getLastUpdateDt() {\n\t\treturn this.lastUpdateDt;\n\t}", "public Timestamp getDateConfirm() {\n\t\treturn (Timestamp) get_Value(\"DateConfirm\");\n\t}", "public java.lang.String getDate_last_update() {\n return date_last_update;\n }", "public java.util.Date getFinishedTime () {\r\n\t\treturn finishedTime;\r\n\t}", "public Timestamp\tgetCompletionDate();", "public java.sql.Timestamp getStatusdate()\n {\n return statusdate; \n }", "public Date getExecuteTime() {\n return executeTime;\n }", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public String getDateFinStr() {\n\t\tif (dateFin != null)\n\t\t\treturn sdf.format(dateFin);\n\t\telse\n\t\t\treturn \"\";\n\t}", "public static Date getLastTradeDate() {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select max(opt.trade_date) from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt\");\r\n\t\t\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\tDate lastTradeDate = (Date) query.getSingleResult();\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn lastTradeDate;\r\n\t}", "Date getUpdatedDate();", "public StrColumn getDateSubmitted() {\n return delegate.getColumn(\"date_submitted\", DelegatingStrColumn::new);\n }", "@Override\n\tpublic Calendar getFinishDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public abstract Date getFinalFireTime();", "public Date getDATE_SETTLED() {\r\n return DATE_SETTLED;\r\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public java.util.Date getActTodate () {\n\t\treturn actTodate;\n\t}", "public Date getToDate() {\n\t\treturn toDate;\n\t}", "public Date getTrxDate() {\r\n return trxDate;\r\n }", "public Date getExecutionDate()\n {\n return executionDate;\n }", "public Date getDATE_REJECTED() {\r\n return DATE_REJECTED;\r\n }", "public Date getDATE_REJECTED() {\r\n return DATE_REJECTED;\r\n }", "public String getFechaFinal() {\n return fechaFinal;\n }", "@SuppressWarnings(\"static-access\")\n\tpublic String getCurrentProcDate() throws Exception {\n\t\t\n\t\tString queryCurrentProcDate = \n\t\t\t\t\"SELECT TOP 1 DI_PROC_DATE\\r\\n\" + \n\t\t\t\t\"FROM [\" + BaseTest.getWebsite() + \"].STAGING.T_STDI_DISBURSEMENTS\\r\\n\" + \n\t\t\t\t\"ORDER BY DI_PROC_DATE DESC;\";\n\t\t\n\t\tconn.createSQLServerConn();\n\t\ttry {\n\t\t\tcurrentProcDate=conn.fetchCurrentProcessDateFromDB(queryCurrentProcDate);\n\t\t} catch(Exception e) {\n\t\t\tReports.logAMessage(LogStatus.ERROR, \"Exception: \" + e.getMessage());\n\t\t\t//System.out.println(\"Exception error: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn currentProcDate;\n\t}", "public static String getBillDueDate(String account){\n return \"select cb_duedate from current_bills where cb_account = '\"+account+\"'\";\n }", "public Date getFlastupdatetime() {\n return flastupdatetime;\n }", "public Date getGmtFinish() {\n return gmtFinish;\n }", "public java.util.Date getActualDate () {\n\t\treturn actualDate;\n\t}", "public StrColumn getDateOfNDBRelease() {\n return delegate.getColumn(\"date_of_NDB_release\", DelegatingStrColumn::new);\n }", "@ApiModelProperty(example = \"2016-08-29T09:12:33.001Z\", value = \"The completed utc date of the execution of the rule\")\n public DateTime getCompletedUtcDate() {\n return completedUtcDate;\n }", "public Date getDateChanged() {\n\t\treturn null;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastTableRowEdit();", "public Date getCompletionDate() {\r\n\t\treturn completionDate;\r\n\t}", "public Timestamp getStatementDate();", "public StrColumn getPdbDateOfAuthorApproval() {\n return delegate.getColumn(\"pdb_date_of_author_approval\", DelegatingStrColumn::new);\n }", "public String getToDate() {\n return toDate;\n }", "public Date getInspectionResultCompletionDate() {\n return inspectionResultCompletionDate;\n }", "private Date getDate(Record record, String colName) throws StepException {\n if (colName.equalsIgnoreCase(\"now\")) {\n return date;\n }\n\n // Else attempt to find the column.\n int idx = record.find(colName);\n if (idx == -1) {\n throw new StepException(toString() + \" : '\" +\n colName + \"' column is not defined in the record.\");\n }\n Object o = record.getValue(idx);\n if (o == null || !(o instanceof Date)) {\n return null;\n }\n return (Date) o;\n }", "public java.util.Date getTemp_login_end() {\n return temp_login_end;\n }", "public java.util.Date getResultRecordedTime() {\n return resultRecordedTime;\n }", "public StrColumn getDateReleasedToPDB() {\n return delegate.getColumn(\"date_released_to_PDB\", DelegatingStrColumn::new);\n }", "public Date getjEndtime() {\n return jEndtime;\n }", "@Override\r\n\tpublic Date getApp_latest_logon_dt() {\n\t\treturn super.getApp_latest_logon_dt();\r\n\t}" ]
[ "0.60686344", "0.5934143", "0.5861271", "0.5831406", "0.5758756", "0.57326716", "0.5722831", "0.570311", "0.56490284", "0.5645071", "0.56016463", "0.55728203", "0.55700713", "0.55700713", "0.55414635", "0.55293936", "0.5502103", "0.545218", "0.545218", "0.545218", "0.545218", "0.5445423", "0.54409486", "0.543357", "0.54229254", "0.5398606", "0.53694993", "0.53431207", "0.53326577", "0.5327932", "0.5280513", "0.5269154", "0.5262221", "0.52532613", "0.52496505", "0.52359146", "0.52277654", "0.5223192", "0.5215479", "0.520839", "0.52077675", "0.520302", "0.5201068", "0.52009845", "0.5197458", "0.51962733", "0.5193978", "0.5188011", "0.5178839", "0.51718706", "0.5167001", "0.51651686", "0.5164034", "0.5161825", "0.5161804", "0.515744", "0.51387256", "0.51377493", "0.5119397", "0.5100772", "0.509427", "0.50937164", "0.5092973", "0.50893605", "0.50893605", "0.50893605", "0.50893605", "0.50893605", "0.50893605", "0.50893605", "0.50874454", "0.5084345", "0.50803745", "0.50781256", "0.5069332", "0.5069332", "0.506192", "0.5059512", "0.50538146", "0.50512683", "0.50492173", "0.5043686", "0.5039315", "0.50310093", "0.50265294", "0.5024244", "0.5022262", "0.50088775", "0.5002863", "0.5002563", "0.5000635", "0.49977994", "0.49968147", "0.49836418", "0.49796718", "0.4970013", "0.4969358" ]
0.64984465
2
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.DONE_DATE
public void setDoneDate(Date doneDate) { this.doneDate = doneDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCompletedDate(Date value) {\n this.completedDate = value;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public void setFinishDate(Date finishDate)\r\n {\r\n m_finishDate = finishDate;\r\n }", "public void setActualFinish(Date actualFinishDate)\r\n {\r\n m_actualFinish = actualFinishDate;\r\n }", "public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }", "public abstract void setFecha_fin(java.sql.Timestamp newFecha_fin);", "public void setLogdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.logdate != null && (newVal.compareTo(this.logdate) == 0)) || \n (newVal == null && this.logdate == null && logdate_is_initialized)) {\n return; \n } \n this.logdate = newVal; \n logdate_is_modified = true; \n logdate_is_initialized = true; \n }", "public void setActDate(java.lang.String param) {\r\n localActDateTracker = param != null;\r\n\r\n this.localActDate = param;\r\n }", "public void setFecha_envio(java.sql.Timestamp newFecha_envio);", "public void setDATE_SETTLED(Date DATE_SETTLED) {\r\n this.DATE_SETTLED = DATE_SETTLED;\r\n }", "public void setDatepr( java.sql.Date newValue ) {\n __setCache(\"datepr\", newValue);\n }", "public void setStatusdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.statusdate != null && (newVal.compareTo(this.statusdate) == 0)) || \n (newVal == null && this.statusdate == null && statusdate_is_initialized)) {\n return; \n } \n this.statusdate = newVal; \n statusdate_is_modified = true; \n statusdate_is_initialized = true; \n }", "@Override\n\tpublic void setFinishDate(Calendar finishDate) {\n\n\t}", "public void setFecha(java.sql.Timestamp newFecha);", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }", "public Date getCompletedDate() {\n return this.completedDate;\n }", "public void setFinalActiveDate(Date newValue) {\n Date oldValue = _finalActiveDate;\n if (oldValue == null || !oldValue.equals(newValue)) {\n _finalActiveDate = newValue;\n firePropertyChange(FINAL_ACTIVE_DATE_PROP, oldValue, newValue);\n }\n }", "@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}", "public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }", "protected static void setLastUpdateTime(CDResult cdresult, ChainResultsSummary buildResult){\n\t\tDate lastUpdate = buildResult.getBuildCompletedDate();\n\t\tif(lastUpdate == null){\n\t\t\tDate startTime = buildResult.getBuildDate();\n\t\t\tif (startTime == null){\n\t\t\t\t// update last update time to be build started time\n\t\t\t\tcdresult.updateLastUpdateTime(buildResult.getQueueTime());\n\t\t\t} else {\n\t\t\t\t// update last update time to be build queued time\n\t\t\t\tcdresult.updateLastUpdateTime(startTime);\n\t\t\t}\n\t\t}else{\n\t\t\t// update last update time to be build completed time\n\t\t\tcdresult.updateLastUpdateTime(lastUpdate);\n\t\t}\n\t\t\n\t\t// update last update time with all jobs completed time (if any)\n\t\tList<ResultsSummary> jobResults = buildResult.getOrderedJobResultSummaries();\n\t\tfor(ResultsSummary jobResult : jobResults){\n\t\t\tcdresult.updateLastUpdateTime(jobResult.getBuildCompletedDate());\n\t\t}\n\t}", "public Date getFinishDate() {\n if (this.finishDate == null) {\n return null;\n }\n return new Date(this.finishDate.getTime());\n }", "public void setDELETED_DATE(Date DELETED_DATE) {\r\n this.DELETED_DATE = DELETED_DATE;\r\n }", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "@Override\n public void actualizarPorEstadoYFechaMax(FecetProrrogaOrden prorroga, AgaceOrden orden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_UPDATE).append(getTableName());\n query.append(\" SET ID_ESTATUS = ? WHERE FECHA_CARGA = (SELECT MAX(FECHA_CARGA) FROM FECET_PRORROGA_ORDEN \");\n query.append(\" WHERE ID_ORDEN = ?)\");\n\n getJdbcTemplateBase().update(query.toString(), prorroga.getIdEstatus(), orden.getIdOrden());\n\n }", "public void setLastTableRowEdit(java.util.Date value);", "public void setEND_DATE(Date END_DATE) {\n this.END_DATE = END_DATE;\n }", "public void setDatetest( java.sql.Date newValue ) {\n __setCache(\"datetest\", newValue);\n }", "public static void updateDueDate(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n String sqlInsert = \"UPDATE projects SET due_date = ? \" +\r\n \"WHERE project_num = \" + projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, NewProject.due_date);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}", "@Override\n\tpublic void setCompleteDate(Date completeDate) {\n\t\tmodel.setCompleteDate(completeDate);\n\t}", "private void fechaActual() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat sm = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t// Formateo de Fecha para mostrar en la vista - (String)\r\n\t\tsetFechaCreacion(sm.format(date.getTime()));\r\n\t\t// Formateo de Fecha campo db - (Date)\r\n\t\ttry {\r\n\t\t\tnewEntidad.setFechaCreacion(sm.parse(getFechaCreacion()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t;\r\n\t}", "public void setLogdate(long newVal) {\n setLogdate(new java.sql.Timestamp(newVal));\n }", "void setFetchedDate(long time);", "public void setClosedate( java.sql.Date newValue ) {\n __setCache(\"closedate\", newValue);\n }", "public void setLastStatusChangeDate(java.util.Date value);", "public void setRecdate(java.sql.Timestamp newValue) {\n\tthis.recdate = newValue;\n}", "public void setResultTs(Date resultTs) {\n\t\tthis.resultTs = resultTs;\n\t}", "public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}", "public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }", "private void updateTestEnd() {\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tPreparedStatement pStat = dbConnection.prepareStatement(\"UPDATE runs set `id_status`=?,`time_end`=now() where `id_run` =?\");\r\n\t\t\tpStat.setInt(1, Conf.getTestStatus());\r\n\t\t\tpStat.setInt(2, Conf.getRunId());\r\n\t\t\tpStat.execute();\r\n\t\t\tpStat.close();\r\n\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "public void setTrxDate(Date trxDate) {\r\n this.trxDate = trxDate;\r\n }", "public void setFinishedTime (java.util.Date finishedTime) {\r\n\t\tthis.finishedTime = finishedTime;\r\n\t}", "public void setFechaFin(Timestamp fechaFin) {\n this.fechaFin = fechaFin;\n }", "public void setProcessDt(Date processDt) {\n _processDt = processDt;\n }", "public void setDateExecution(Date dateExecution) {\r\n this.dateExecution = dateExecution;\r\n }", "public void setActualDate (java.util.Date actualDate) {\n\t\tthis.actualDate = actualDate;\n\t}", "public void setEndExecDate(java.util.Calendar endExecDate)\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(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.setCalendarValue(endExecDate);\n }\n }", "public void setDateassemb( java.sql.Date newValue ) {\n __setCache(\"dateassemb\", newValue);\n }", "public void setDATE_APPROVED(Date DATE_APPROVED) {\r\n this.DATE_APPROVED = DATE_APPROVED;\r\n }", "public void setDateSaved(String dateSaved)\n {\n this.dateSaved = dateSaved; \n }", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public void setDatebldbeg( java.sql.Date newValue ) {\n __setCache(\"datebldbeg\", newValue);\n }", "public void setStatusdate(long newVal) {\n setStatusdate(new java.sql.Timestamp(newVal));\n }", "public Date getActualFinish()\r\n {\r\n return (m_actualFinish);\r\n }", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setDueDate(Date d){dueDate = d;}", "@DISPID(8)\r\n\t// = 0x8. The runtime will prefer the VTID if present\r\n\t@VTID(12)\r\n\tjava.util.Date completionDateTime();", "@javax.jdo.annotations.Column(allowsNull = \"false\")\n\t@MemberOrder(sequence = \"4\")\n\tpublic Date getFechaFin() {\n\t\treturn this.fechaFin;\n\t}", "@Override\n\tpublic Date getCompleteDate() {\n\t\treturn model.getCompleteDate();\n\t}", "public java.util.Date getLastExecuteTime()\n {\n return null;\n }", "public java.sql.Date getREQ_END_DATE()\n {\n \n return __REQ_END_DATE;\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getFinishDate()\r\n {\r\n Date result = m_finishDate;\r\n if (result == null)\r\n {\r\n result = getParentFile().getFinishDate();\r\n }\r\n return (result);\r\n }", "public void setRegdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.regdate != null && (newVal.compareTo(this.regdate) == 0)) || \n (newVal == null && this.regdate == null && regdate_is_initialized)) {\n return; \n } \n this.regdate = newVal; \n regdate_is_modified = true; \n regdate_is_initialized = true; \n }", "void setUpdatedDate(Date updatedDate);", "public void xsetEndExecDate(org.apache.xmlbeans.XmlDate endExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.set(endExecDate);\n }\n }", "public void setREQ_START_DATE(java.sql.Date value)\n {\n if ((__REQ_START_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_START_DATE)))\n {\n _isDirty = true;\n }\n __REQ_START_DATE = value;\n }", "public void setSetUpDate(Date setUpDate) {\n this.setUpDate = setUpDate;\n }", "public void setUpdatedOn(Date updatedOn);", "void setCheckedOutDate(Date checkedOutDate);", "public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }", "public String getCompletedDate(int position) {\n HashMap<String, String> map = list.get(position);\n return map.get(COMPLETED_DATE_COLUMN);\n }", "protected void setReturnDate(Date d){ this.returnDate = d; }", "public void setActTodate (java.util.Date actTodate) {\n\t\tthis.actTodate = actTodate;\n\t}", "public Date getDATE_SETTLED() {\r\n return DATE_SETTLED;\r\n }", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "@Override\n\tpublic boolean doUpdateLastDate(String aid, Date date) throws SQLException\n\t{\n\t\tString sql = \" UPDATE admin SET lastdate=? WHERE aid=? \";\n\t\tthis.ps = this.conn.prepareStatement(sql);\n\t\tthis.ps.setTimestamp(1, General.getCurrentSqlDate());\n\t\tthis.ps.setString(2, aid);\n\t\treturn this.ps.executeUpdate() == 1;\n\t}", "public void setActivationDate() {\r\n\t\tif(this.removalDate != null) {\r\n\t\t\tthrow new RuntimeException(\"This item has already been activated\");\r\n\t\t}\r\n\t\tthis.activationDate = new Date(); \r\n\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\r\n\t\t// set date for test\r\n\t\t//cal.set(2010, 10, 29, 02, 55);\r\n\t\t\r\n\t\t\r\n\t\tcal.add(GregorianCalendar.HOUR_OF_DAY, this.itemType.getItemDuration());\r\n\t\tthis.removalDate = cal.getTime();\r\n\t}", "public void setStatementDate (Timestamp StatementDate);", "@Test\n public void testSetLastLoginDateFuture() {\n System.out.println(\"setLastLoginDate Test (Future value)\");\n long millis = System.currentTimeMillis();\n Date date = new Date(millis + 60000);\n Date lastLoginDate = date;\n user.setLastLoginDate(lastLoginDate);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertFalse(violations.isEmpty());\n }", "public void setEndDate(java.sql.Date newEndDate) {\n\tendDate = newEndDate;\n}", "public void setDateFin(String newDateFin) {\n\t\tthis.dateFin = newDateFin;\n\t}", "public StrColumn getDateEndProcessing() {\n return delegate.getColumn(\"date_end_processing\", DelegatingStrColumn::new);\n }", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "void setDateUpdated(final Date dateUpdated);", "public abstract java.sql.Timestamp getFecha_fin();", "public void setUpdateDatetime(Date updateDatetime);", "public void setDate(long value) {\n this.date = value;\n }", "public void setDocumentDate(java.sql.Date newValue) {\n\tthis.documentDate = newValue;\n}", "public void setToDate(Date value) {\n setAttributeInternal(TODATE, value);\n }", "public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }", "public void setEFF_DATE(Date EFF_DATE) {\r\n this.EFF_DATE = EFF_DATE;\r\n }" ]
[ "0.63226813", "0.62081444", "0.62081444", "0.62081444", "0.62081444", "0.5888365", "0.58092016", "0.5699533", "0.5647734", "0.55488515", "0.55282134", "0.5523977", "0.5461161", "0.5410263", "0.53760105", "0.5369526", "0.53657967", "0.53570867", "0.53570867", "0.5331986", "0.52872545", "0.52870524", "0.52606916", "0.5260072", "0.52592146", "0.52487576", "0.5241115", "0.5240708", "0.52353096", "0.5215131", "0.5211041", "0.52044404", "0.51995313", "0.5164823", "0.51634276", "0.51446044", "0.5122187", "0.5103559", "0.5101178", "0.509797", "0.5071713", "0.50704503", "0.50562507", "0.5050219", "0.5046712", "0.50463545", "0.5040029", "0.5024671", "0.5014311", "0.50109255", "0.50104415", "0.5005282", "0.5002836", "0.49808872", "0.49782836", "0.49764085", "0.49734017", "0.49689555", "0.49686342", "0.49649644", "0.49638268", "0.49582556", "0.4956805", "0.49483505", "0.4947956", "0.49352086", "0.49352086", "0.49335468", "0.4930453", "0.49284536", "0.49261832", "0.49236837", "0.49201918", "0.4916828", "0.491655", "0.49102685", "0.49024823", "0.49013847", "0.49007705", "0.4899371", "0.48836958", "0.48822054", "0.4880696", "0.48680016", "0.4867001", "0.48642054", "0.48625737", "0.48604804", "0.48507696", "0.48499495", "0.4842872", "0.48426706", "0.4842373", "0.48401815", "0.48369935", "0.4824847", "0.48110342" ]
0.6812489
2
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.DONE_CODE
public String getDoneCode() { return doneCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getDoneCode() {\n return doneCode;\n }", "public Long getDoneCode() {\n return doneCode;\n }", "public Long getDoneCode() {\n return doneCode;\n }", "public void setDoneCode(Long doneCode) {\n this.doneCode = doneCode;\n }", "public void setDoneCode(Long doneCode) {\n this.doneCode = doneCode;\n }", "public void setDoneCode(Long doneCode) {\n this.doneCode = doneCode;\n }", "public TransactionType getLogCode () {\n return logCode;\n }", "public void setDoneCode(String doneCode) {\n this.doneCode = doneCode == null ? null : doneCode.trim();\n }", "public java.lang.String getResultCode() {\r\n return localResultCode;\r\n }", "public String getDone() {\n return (isDone ? \"1\" : \"0\");\n }", "public String getStatus() {\n return isDone ? \"1\" : \"0\";\n }", "public int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "public StrColumn getStatusCode() {\n return delegate.getColumn(\"status_code\", DelegatingStrColumn::new);\n }", "protocol.Msg.ReadTableMsg.ReadImportantTableRsp.ResultCode getResultCode();", "public String getUpdatedCode() {\n\t\treturn updatedCode;\n\t}", "public protocol.Msg.ReadTableMsg.ReadImportantTableRsp.ResultCode getResultCode() {\n return resultCode_;\n }", "public protocol.Result.ResultCode getResultCode() {\n protocol.Result.ResultCode result = protocol.Result.ResultCode.valueOf(resultCode_);\n return result == null ? protocol.Result.ResultCode.SUCCESS : result;\n }", "public protocol.Result.ResultCode getResultCode() {\n protocol.Result.ResultCode result = protocol.Result.ResultCode.valueOf(resultCode_);\n return result == null ? protocol.Result.ResultCode.SUCCESS : result;\n }", "public String getReturnCode()\r\n\t{\r\n\t\treturn returnCode;\r\n\t}", "public protocol.Msg.ReadTableMsg.ReadImportantTableRsp.ResultCode getResultCode() {\n return resultCode_;\n }", "public StrColumn getDepReleaseCodeSequence() {\n return delegate.getColumn(\"dep_release_code_sequence\", DelegatingStrColumn::new);\n }", "public Long getCode() {\n return code;\n }", "public Long getCode() {\n return code;\n }", "public int code() {\n return code;\n }", "public String getTenderResultIdChangeCode() {\n return tenderResultIdChangeCode;\n }", "java.lang.String getSqlCode();", "public long getCode() {\n return code;\n }", "public int updatedcode(Map<String, Object> map) {\n\t\treturn dao.updatedcode(map);\r\n\t}", "public java.lang.String getCodedestinataire() {\r\n\t\treturn codedestinataire;\r\n\t}", "public long getCode () {\r\n\t\treturn code;\r\n\t}", "public String getResultCode() {\r\n\t\treturn resultCode;\r\n\t}", "public int getCode() {\n\t\treturn adaptee.getCode();\n\t}", "public int status() {\n\t\treturn code;\n\t}", "java.lang.String getTranCode();", "public String getProcessCompleteQueueName()\n {\n return DONE; \n }", "public int getReturnCode() {\n return returnCode_;\n }", "public int getReturnCode() {\n return returnCode_;\n }", "public String getCode()\n {\n return fCode;\n }", "public String getIsDone() {\n if (isDone) {\n return \"1\";\n } else {\n return \"0\";\n }\n }", "com.google.protobuf.ByteString getSqlCodeBytes();", "java.lang.String getCode();", "java.lang.String getCode();", "public int getCode() {\r\n return code;\r\n }", "public int getCode() {\r\n return code;\r\n }", "public int getCode() {\n return code_;\n }", "public int getCode() {\n return code_;\n }", "public String getProcessCode() {\n \tif (isProcessDocumentNotNull()) {\n \t\treturn getProcessDocument().getDocCode();\n \t}\n\t\treturn processCode;\n\t}", "public String getFinishClor() {\n return (String)getAttributeInternal(FINISHCLOR);\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 code() {\n return this.code;\n }", "public String code() {\n return this.code;\n }", "public int getReturnCode() {\n return returnCode_;\n }", "public int getReturnCode() {\n return returnCode_;\n }", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public int value() {\n return code;\n }", "public String save() {\n return code;\n }", "public int getCode()\n {\n return code;\n }", "public int getCode() {\r\n\t\t\treturn code;\r\n\t\t}", "public int getCode() {\n return code_;\n }", "public int getCode() {\n return code_;\n }", "public int getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n return _toBaseUnit._code;\n }", "public FileTransferErrorCode getCode() {\n return FileTransferErrorCode.fromValue(JsoHelper.getAttributeAsInt(jsObj, Attributes.CODE.getValue()));\n }", "public int getStatus(int mCode)\r\n\t {\r\n\t\t return MRs[mCode].getStatus();\r\n\t }", "public Long getMainCode() {\n return mainCode;\n }", "public java.lang.String getClassCode()\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(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(CLASSCODE$30);\n }\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getCompletionCode() {\n\t\treturn completionCode;\n\t}", "public java.lang.String getTestDBStatusResult() {\r\n return localTestDBStatusResult;\r\n }", "public String getResultCode() {\n return resultCode;\n }", "public int getCode()\n {\n return myCode;\n }", "public int getCode () {\n return code;\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public int getCode() {\n\t\treturn this.code;\n\t}", "@Transactional\r\n\t@Override\r\n\tpublic long updateCodeUseyn(Map<String, String[]> map) throws SQLException {\n\t\t\r\n\t\tQCode code = QCode.code;\r\n\t\t\r\n\t\tJPAUpdateClause updateClause = new JPAUpdateClause(entityManager, code);\r\n\t\tString type = map.get(\"gbn\")[0];\r\n\r\n\t\tlong reuslt = 0;\r\n\t\tif(type.equals(\"upr\")) {\r\n\t\t\treuslt = updateClause.set(code.useyn, Integer.parseInt(map.get(\"useyn\")[0]))\r\n\t\t\t\t\t\t\t\t .where(code.upr_cd.eq(\"*\").and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t\t\t\t\t\t .execute(); \r\n\t\t} else {\r\n\t\t\treuslt = updateClause.set(code.useyn, Integer.parseInt(map.get(\"useyn\")[0]))\r\n\t\t\t\t\t\t\t\t .where(code.upr_cd.eq(map.get(\"upr_cd\")[0]).and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t\t\t\t\t\t .execute();\r\n\t\t}\r\n\t\t\r\n\t\treturn reuslt;\r\n\t}", "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 }", "@DISPID(72)\r\n\t// = 0x48. The runtime will prefer the VTID if present\r\n\t@VTID(70)\r\n\tint mainJobReturnCode();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "public int GetLastnumero()\r\n throws SQLException{\r\n int code = 0;\r\n ResultSet result = null;\r\n \r\n result = RequeteSelect(result,\"select max(CodeFiche) from Travaux\");\r\n while (result.next()){\r\n if(result.getString(1) == null)\r\n code = 0;\r\n else code = Integer.parseInt(new String(result.getString(1)))+1;\r\n }\r\n \r\n Close();\r\n result.close();\r\n \r\n return code;\r\n }" ]
[ "0.6807248", "0.6807248", "0.6807248", "0.60129875", "0.60129875", "0.60129875", "0.56314486", "0.5570864", "0.55458677", "0.54438007", "0.53893244", "0.5356085", "0.52870196", "0.52870196", "0.52870196", "0.52870196", "0.52870196", "0.52391046", "0.518619", "0.5145745", "0.5130002", "0.5125811", "0.51075244", "0.50923675", "0.50775605", "0.5051448", "0.50278515", "0.50278515", "0.50259197", "0.5016577", "0.50134706", "0.49662817", "0.495256", "0.49065813", "0.48998937", "0.48677474", "0.4862907", "0.48563534", "0.4854711", "0.48400074", "0.48372397", "0.48372397", "0.48291227", "0.48283657", "0.48264155", "0.4818812", "0.4818812", "0.48060825", "0.48060825", "0.47991213", "0.47991213", "0.47880164", "0.47880065", "0.4786267", "0.4786267", "0.4786267", "0.4786267", "0.4786267", "0.47859126", "0.47859126", "0.47849202", "0.47849202", "0.47743696", "0.4771534", "0.47667488", "0.47597224", "0.47561482", "0.4752902", "0.4752902", "0.47431007", "0.47411218", "0.47351584", "0.47302845", "0.4724618", "0.47181776", "0.47083494", "0.47062904", "0.46969795", "0.4696194", "0.46826217", "0.467492", "0.467492", "0.467492", "0.467492", "0.467492", "0.467492", "0.467492", "0.46680862", "0.46677983", "0.46656933", "0.46656933", "0.46656933", "0.46656933", "0.46556145", "0.4655074", "0.4655074", "0.46546394", "0.46546394", "0.46536818", "0.46509102" ]
0.67202103
3
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.DONE_CODE
public void setDoneCode(String doneCode) { this.doneCode = doneCode == null ? null : doneCode.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDoneCode(Long doneCode) {\n this.doneCode = doneCode;\n }", "public void setDoneCode(Long doneCode) {\n this.doneCode = doneCode;\n }", "public void setDoneCode(Long doneCode) {\n this.doneCode = doneCode;\n }", "public Long getDoneCode() {\n return doneCode;\n }", "public Long getDoneCode() {\n return doneCode;\n }", "public Long getDoneCode() {\n return doneCode;\n }", "public String getDoneCode() {\n return doneCode;\n }", "public void setCode(final int code) {\n this.code = code;\n commited = true;\n }", "public void setResultCode(java.lang.String param) {\r\n localResultCodeTracker = param != null;\r\n\r\n this.localResultCode = param;\r\n }", "public void setDone(){\n this.status = \"Done\";\n }", "public void setResultCode(int value) {\n this.resultCode = value;\n }", "public void setDone(int done) {\n\t\tthis.done = done;\n\t}", "private void updateTestEnd() {\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tPreparedStatement pStat = dbConnection.prepareStatement(\"UPDATE runs set `id_status`=?,`time_end`=now() where `id_run` =?\");\r\n\t\t\tpStat.setInt(1, Conf.getTestStatus());\r\n\t\t\tpStat.setInt(2, Conf.getRunId());\r\n\t\t\tpStat.execute();\r\n\t\t\tpStat.close();\r\n\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "public void setLogCode ( final TransactionType logCode ) {\n this.logCode = logCode;\n }", "public void setReturnCode(String returnCode)\r\n\t{\r\n\t\tthis.returnCode = returnCode;\r\n\t}", "private void setStatusCode(int code)\n {\n if(null == m_ElementStatus)\n m_ElementStatus = PSFUDDocMerger.createChildElement(m_Element,\n IPSFUDNode.ELEM_STATUS);\n\n if(null == m_ElementStatus) //never happens\n return;\n\n String tmp = null;\n try\n {\n tmp = Integer.toString(IPSFUDNode.STATUS_CODE_NORMAL); //default value\n tmp = Integer.toString(code);\n }\n catch(NumberFormatException e)\n {\n if(null == tmp) //should never happen\n tmp = \"\";\n }\n m_ElementStatus.setAttribute(IPSFUDNode.ATTRIB_CODE, tmp);\n }", "public void setCode(long value) {\n this.code = value;\n }", "Code updateCode(Code code)\n throws DAOException;", "@Transactional\r\n\t@Override\r\n\tpublic long updateCodeUseyn(Map<String, String[]> map) throws SQLException {\n\t\t\r\n\t\tQCode code = QCode.code;\r\n\t\t\r\n\t\tJPAUpdateClause updateClause = new JPAUpdateClause(entityManager, code);\r\n\t\tString type = map.get(\"gbn\")[0];\r\n\r\n\t\tlong reuslt = 0;\r\n\t\tif(type.equals(\"upr\")) {\r\n\t\t\treuslt = updateClause.set(code.useyn, Integer.parseInt(map.get(\"useyn\")[0]))\r\n\t\t\t\t\t\t\t\t .where(code.upr_cd.eq(\"*\").and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t\t\t\t\t\t .execute(); \r\n\t\t} else {\r\n\t\t\treuslt = updateClause.set(code.useyn, Integer.parseInt(map.get(\"useyn\")[0]))\r\n\t\t\t\t\t\t\t\t .where(code.upr_cd.eq(map.get(\"upr_cd\")[0]).and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t\t\t\t\t\t .execute();\r\n\t\t}\r\n\t\t\r\n\t\treturn reuslt;\r\n\t}", "public getCode_result(getCode_result other) {\n if (other.isSetSuccess()) {\n this.success = other.success;\n }\n }", "public int updatedcode(Map<String, Object> map) {\n\t\treturn dao.updatedcode(map);\r\n\t}", "public void setCode(Long code) {\n this.code = code;\n }", "public void setCode(Long code) {\n this.code = code;\n }", "public void setProcessCompleted(String processCompleted)\r\n\t{\r\n\t\tthis.processCompleted = processCompleted;\r\n\t}", "public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}", "@Override\r\n public <T> void batchDetailCodeProcess(T TO, Map<String, Object> codeColumn) {\n try {\r\n CodeDetailTo codeDetailTO = new CodeDetailTo();\r\n Method method = TO.getClass().getMethod(\"getStatus\");\r\n codeDetailTO.setStatus((String) method.invoke(TO));\r\n for (String key : codeColumn.keySet()) {\r\n String colValue = (String) codeColumn.get(key);\r\n if (colValue != null) {\r\n switch (key) {\r\n case \"divisionCodeNo\":\r\n codeDetailTO.setDivisionCodeNo(colValue);\r\n break;\r\n case \"detailCode\":\r\n codeDetailTO.setDetailCode(colValue);\r\n break;\r\n case \"detailCodeName\":\r\n codeDetailTO.setDetailCodeName(colValue);\r\n break;\r\n }\r\n }\r\n }\r\n switch (codeDetailTO.getStatus()) {\r\n case \"inserted\":\r\n codeDetailDao.insertDetailCode(codeDetailTO);\r\n break;\r\n case \"deleted\":\r\n codeDetailDao.deleteDetailCode(codeDetailTO);\r\n break;\r\n case \"updated\":\r\n codeDetailDao.updateDetailCode(codeDetailTO);\r\n break;\r\n }\r\n } catch (Exception e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void setTestDBStatusResult(java.lang.String param) {\r\n localTestDBStatusResultTracker = param != null;\r\n\r\n this.localTestDBStatusResult = param;\r\n }", "public void setMainCode(Long mainCode) {\n this.mainCode = mainCode;\n }", "@Override\r\n\tpublic void applyItem(long item_code) {\n\t\tint i = sqlSession.update(ns+\".applyItem\", item_code);\r\n\t\tif(i>0) System.out.println(\"applyItem\");\r\n\t}", "@Override\n public void doAfterTransaction(int result) {\n\n }", "public void setCode(String cod){\n\t\tcodeService = cod;\n\t}", "@Transactional\r\n\t@Override\r\n\tpublic long updateCode(Map<String, String[]> map) throws SQLException {\n\t\t\r\n\t\tQCode code = QCode.code;\r\n\t\t\r\n\t\tJPAUpdateClause updateClause = new JPAUpdateClause(entityManager, code);\r\n\t\tString type = map.get(\"gbn\")[0];\r\n\t\t\r\n\t\tlong reuslt = 0;\r\n\t\tif(type.equals(\"upr\")) {\r\n\t\t\treuslt = updateClause.set(code.cd_nm, map.get(\"cd_nm\")[0])\r\n\t\t\t\t\t\t\t\t .set(code.sort, Integer.parseInt(map.get(\"sort\")[0]))\r\n\t\t\t\t\t\t\t\t .set(code.comment, map.get(\"comment\")[0])\r\n\t\t\t\t\t\t\t\t .where(code.upr_cd.eq(\"*\").and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t\t\t\t\t\t .execute(); \r\n\t\t} else {\r\n\t\t\treuslt = updateClause.set(code.cd_nm, map.get(\"cd_nm\")[0])\r\n\t\t\t\t\t\t\t\t .set(code.sort, Integer.parseInt(map.get(\"sort\")[0]))\r\n\t\t\t\t\t\t\t\t .set(code.comment, map.get(\"comment\")[0])\r\n\t\t\t\t\t\t\t\t .where(code.upr_cd.eq(map.get(\"upr_cd\")[0]).and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t\t\t\t\t\t .execute();\r\n\t\t}\r\n\t\t\r\n\t\treturn reuslt;\r\n\t}", "private void updateCodesetStatus(String codesetNm, String newStatus) throws NEDSSDAOSysException, NEDSSSystemException {\n\n\t \tlogger.debug(\" in Codeset DAO - updating codeset status to \" + newStatus + \"for \" + codesetNm);\n\n\t \tString codeSql =UPDATE_CODESET_STATUS_SQL;\n\t if (propertyUtil.getDatabaseServerType() != null && propertyUtil.getDatabaseServerType().equalsIgnoreCase(NEDSSConstants.ORACLE_ID))\n\t \t\tcodeSql = UPDATE_CODESET_STATUS_ORA;\n\n\t \tArrayList<Object> paramList = new ArrayList<Object> ();\n\t \tparamList.add(newStatus);\n\t \tparamList.add (new Timestamp(new Date().getTime()));\n\t \tparamList.add(codesetNm);\n\n\t \ttry {\n\t \t\tpreparedStmtMethod(null, paramList, codeSql, NEDSSConstants.UPDATE, NEDSSConstants.SRT);\n\n\t \t} catch (Exception ex) {\n\t \t\tlogger.fatal(\"codesetNm: \"+codesetNm+\", newStatus: \"+newStatus+\"Exception in Update codeset Status: ERROR = \" + ex.getMessage(), ex);\n\t \t\tthrow new NEDSSSystemException(ex.toString());\n\t \t}\n\n\t \tlogger.debug(\" ...leaving Codeset DAO - updated codeset status ..\");\n\t }", "public void markAsDone() {\n this.isDone = true;\n this.completed = \"1\";\n }", "public void setFinishClor(String value) {\n setAttributeInternal(FINISHCLOR, value);\n }", "public void setCompletionCode(String completionCode) {\n\t\tthis.completionCode = completionCode;\n\t}", "@Override\n\tpublic void finish() throws DPFTRuntimeException {\n\t\tDPFTLogger.info(this, \"Updating Outbound Control Records...\");\n\t\tDPFTOutboundDboSet rSet = (DPFTOutboundDboSet) this.getPreviousAction().getResultSet();\n\t\tDPFTOutboundControlDboSet ctrlSet = rSet.getControlTableRecords(\"process_status='\" + GlobalConstants.DPFT_OBND_STAT_RUN + \"'\");\n\t\tctrlSet.taskComplete();\n\t\tctrlSet.close();\n\t\t\n\t\t//send Notification\n\t\tString cmp_code = ctrlSet.getDbo(0).getString(\"camp_code\");\n\t\tfor(String sf: success_ftp_files){\n\t\t\tObject[] params = {sf, this.getOutFileRemoteDir()};\n\t\t\tDPFTUtil.pushNotification(\n\t\t\t\t\tDPFTUtil.getCampaignOwnerEmail(cmp_code), \n\t\t\t\t\tnew DPFTMessage(\"CUSTOM\", \"TFB00011I\", params)\n\t\t\t);\n\t\t}\n\t\tsuccess_ftp_files.clear();\n\t}", "public void finalizar(Pedido pedido, Usuario almoxarife) {\n String sql;\n if (pedido.getStatus().equals(Methods.getTranslation(\"AguardandoEntrega\"))) {\n sql = \"UPDATE pedidos SET Status=?, AlmoxarifeId=?, Aproved=(SELECT NOW()) WHERE Id=?\";\n } else if (pedido.getStatus().equals(Methods.getTranslation(\"Finalizado\"))) {\n sql = \"UPDATE pedidos SET Status=?, AlmoxarifeId=?, Done=(SELECT NOW()) WHERE Id=?\";\n } else {\n sql = \"UPDATE pedidos SET Status=?, AlmoxarifeId=? WHERE Id=?\";\n }\n System.out.println(sql);\n try {\n conn = connFac.getConexao();\n stmt = conn.prepareStatement(sql);\n stmt.setString(1, pedido.getStatus());\n stmt.setInt(2, almoxarife.getId());\n stmt.setInt(3, pedido.getId());\n stmt.execute();\n connFac.closeAll(rs, stmt, st, conn);\n } catch(SQLException error) {\n Methods.getLogger().error(\"PedidoDAO.finalizar: \" + error);\n throw new RuntimeException(\"PedidoDAO.finalizar: \" + error);\n }\n }", "public void setCodigo() throws SQLException {\n try (PreparedStatement query = Herramientas.getConexion().prepareStatement(\"SELECT MAX(codigo_ticket) FROM ticket\"); \n ResultSet resultado = query.executeQuery()) {\n resultado.next();\n this.codigo = (resultado.getInt(1))+1;\n }\n \n }", "String setDone(int index);", "@Override\n public void actualizarPorEstadoYFechaMax(FecetProrrogaOrden prorroga, AgaceOrden orden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_UPDATE).append(getTableName());\n query.append(\" SET ID_ESTATUS = ? WHERE FECHA_CARGA = (SELECT MAX(FECHA_CARGA) FROM FECET_PRORROGA_ORDEN \");\n query.append(\" WHERE ID_ORDEN = ?)\");\n\n getJdbcTemplateBase().update(query.toString(), prorroga.getIdEstatus(), orden.getIdOrden());\n\n }", "public Builder setReturnCode(int value) {\n \n returnCode_ = value;\n onChanged();\n return this;\n }", "public Builder setReturnCode(int value) {\n \n returnCode_ = value;\n onChanged();\n return this;\n }", "public static void updateFinal(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects\" +\r\n \" SET completed = ?\" +\r\n \"WHERE project_num = \" + projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, \"YES\");\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n public void afterCompletion(boolean arg0) throws EJBException,\n \t\tRemoteException {\n \tSystem.out.println(\"taskerBean transaction done\");\n }", "public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }", "public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }", "public int updatedcodea(Map<String, Object> map) {\n\t\treturn dao.updatedcodea(map);\r\n\t}", "public void setTransocode(java.lang.String param) {\r\n localTransocodeTracker = param != null;\r\n\r\n this.localTransocode = param;\r\n }", "public void setClassCode(java.lang.String classCode)\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(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASSCODE$30);\n }\n target.setStringValue(classCode);\n }\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 TransactionType getLogCode () {\n return logCode;\n }", "public void SetDone(){\n this.isDone = true;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setEVENT_CODE(java.lang.String value)\n {\n if ((__EVENT_CODE == null) != (value == null) || (value != null && ! value.equals(__EVENT_CODE)))\n {\n _isDirty = true;\n }\n __EVENT_CODE = value;\n }", "public void setCode(Code code) {\n this.Code = code;\n }", "public void setUpdatedCode(String updatedCode) {\n\t\tthis.updatedCode = updatedCode;\n\t}", "public void setCodedestinataire(java.lang.String codedestinataire) {\r\n\t\tthis.codedestinataire = codedestinataire;\r\n\t}", "private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }", "public void setDone(boolean value) {\n this.done = value;\n }", "@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 setDone(boolean done) {\n this.done = done;\n }", "public void setCreatedCode(String createdCode) {\n\t\tthis.createdCode = createdCode;\n\t}", "public void setDone(boolean done) {\n \tthis.done = done;\n }", "public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }", "public void mudaStatus(String e) throws SQLException {\r\n String sql = \"UPDATE solicitacoes SET em_chamado=2 WHERE id_solicitacao= \" + e;\r\n System.err.println(\"MUDASTATUS: \" + sql);\r\n stmt.executeUpdate(sql);\r\n stmt.close();\r\n rs.close();\r\n }", "private void setActiveValue(int projectId, String value) {\n\t\tConnection conn = getConnection();\n\t\tPreparedStatement stmtUpdate = null;\n\t\ttry {\n\t\t\tStringBuilder sbUpdate = new StringBuilder(UPDATE)\n\t\t\t\t.append(projectTableName)\n\t\t\t\t.append(SET)\n\t\t\t\t.append(projectActiveColumnName).append(EQUAL).append(value) //$NON-NLS-1$\n\t\t\t\t.append(WHERE)\n\t\t\t\t.append(projectIdColumnName).append(EQUAL).append(projectId); //$NON-NLS-1$\n\n\t\t\tstmtUpdate = conn.prepareStatement(sbUpdate.toString());\n\t\t\tstmtUpdate.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException ex) {\n\t\t\tthrow new DAOException(ex);\n\t\t\t\n\t\t} finally {\n\t\t\tDbUtils.closeQuietly(conn);\n\t\t\tDbUtils.closeQuietly(stmtUpdate);\n\t\t}\n\t\t\n\t}", "public void setFteReasonCode(java.lang.String param){\n localFteReasonCodeTracker = true;\n \n this.localFteReasonCode=param;\n \n\n }", "public void transactionComplete(TransactionId tid) throws IOException {\n // some code goes here\n // not necessary for proj1\\\n \t//should always commit, simply call transactionComplete(tid,true)\n \ttransactionComplete(tid, true);\n \t\n }", "public void setDone(boolean done) {\n this.done = done;\n }", "public void setDone(boolean done) {\n this.done = done;\n }", "public void setDone(boolean done) {\n\t\tthis.done = done;\n\t\t\n\t}", "public java.lang.String getResultCode() {\r\n return localResultCode;\r\n }", "public void setCode(String code) {\n\t\tCode = code;\n\t}", "public String getDone() {\n return (isDone ? \"1\" : \"0\");\n }", "public synchronized void setComplete() {\n status = Status.COMPLETE;\n }", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public String setCode() {\n\t\treturn null;\n\t}", "public void setCode(int code) {\n this.code = code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "public void setProcessCompletedIn(String processCompletedIn)\r\n\t{\r\n\t\tthis.processCompletedIn = processCompletedIn;\r\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.COMPLETED,\n todoProperty = true)\n public void setCompleted(final String val) {\n completed = val;\n }", "public void setTenderResultIdChangeCode(String tenderResultIdChangeCode) {\n this.tenderResultIdChangeCode = tenderResultIdChangeCode;\n }", "public void setDone() {\n isDone = true;\n }", "@Override\n\t\t\t\t\t\tpublic void gotResult(int code, String arg1, Set<String> arg2) {\n\t\t\t\t\t\t\tSystem.out.println(\"code\"+code);\n\t\t\t\t\t\t\tLog.i(\"注册极光结果放回\", String.valueOf(code));\n\t//\t\t\t\t\t\tToast.makeText(RegisterAcountActivity.this, code, 0).show();\n\t\t\t\t\t\t}", "public abstract void setCod_actividad(java.lang.Long newCod_actividad);", "public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setLBR_ProtestCode (String LBR_ProtestCode);", "public POS_TO_RCS_DONE (String id) { super(id); }", "public void markFinished(int currIdx) {\n\t\tmy_DB = helper.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(\"finished\", 1);\n\t\tmy_DB.update(\"todo\", values, \"_id=\" + currIdx, null);\n\t\t\n\t\t\n\t}", "public void setDone() {\n this.isDone = true;\n }", "public void setDone() {\n this.isDone = true;\n }", "public void setDone() {\n this.isDone = true;\n }", "void setCode(String code);", "@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}", "public void setErrCode(java.lang.String errCode) {\n this.errCode = errCode;\n }", "public void setTEXTCODE(int value) {\n this.textcode = value;\n }" ]
[ "0.70587593", "0.70587593", "0.70587593", "0.6228662", "0.6228662", "0.6228662", "0.6189622", "0.5399529", "0.5360703", "0.5261524", "0.5170903", "0.50325763", "0.5028615", "0.49822968", "0.4865922", "0.48645055", "0.48598707", "0.48422277", "0.4792979", "0.47927728", "0.47843692", "0.4782067", "0.4782067", "0.47812602", "0.47696397", "0.47409323", "0.4710248", "0.47036555", "0.46816632", "0.46552673", "0.4651623", "0.4648983", "0.46441162", "0.46436837", "0.4643583", "0.4643378", "0.46373975", "0.4635313", "0.46261108", "0.46259978", "0.46233916", "0.4621497", "0.4621497", "0.46198583", "0.46122235", "0.46104208", "0.46104208", "0.45829687", "0.45770466", "0.4567891", "0.45655087", "0.4565416", "0.45566466", "0.45513606", "0.45513606", "0.45513606", "0.45513606", "0.45443407", "0.45206076", "0.45123395", "0.4508276", "0.4504659", "0.45038056", "0.45027", "0.45020542", "0.45007494", "0.44962227", "0.44956654", "0.44842362", "0.44800362", "0.44741288", "0.44734517", "0.4472448", "0.4472448", "0.44717997", "0.4471291", "0.44626042", "0.4458214", "0.44569856", "0.44527426", "0.44522682", "0.44501245", "0.44501245", "0.44469598", "0.44459403", "0.4435101", "0.44331172", "0.44171253", "0.44150823", "0.44120014", "0.43876228", "0.43843642", "0.43839356", "0.4382693", "0.4382693", "0.4382693", "0.4382057", "0.43721676", "0.4368282", "0.4367565" ]
0.6586605
3
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.STATE
public Long getState() { return state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSqlState();", "public java.lang.String getSqlState() {\n java.lang.Object ref = sqlState_;\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 sqlState_ = s;\n return s;\n }\n }", "public java.lang.String getSqlState() {\n java.lang.Object ref = sqlState_;\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 sqlState_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public String getState() {\n\n if(this.state == null){\n\n this.state = TestDatabase.getInstance().getClientField(token, id, \"state\");\n }\n\n return state;\n }", "public String getTransactionState();", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String state() {\n return this.state;\n }", "public String state() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.State;\n }", "public String getState() {\n return state;\n }", "public String getState() {\r\n\t\treturn state;\t\t\r\n\t}", "com.google.protobuf.ByteString\n getSqlStateBytes();", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() { return state; }", "public String getState() {\n\t\treturn state.toString();\n\t}", "public String getState() {\n\t\treturn state;\n\t}", "public String getState() \n\t{\n\t\treturn state;\n\t}", "public String getState()\n\t{\n\t\treturn state;\n\t}", "public String getState()\n {\n \treturn state;\n }", "public state getStatus(){\n return this.st;\n }", "public String getState(){\n return state;\n }", "public String getState() {\n\t\treturn State;\n\t}", "public com.google.protobuf.ByteString\n getSqlStateBytes() {\n java.lang.Object ref = sqlState_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sqlState_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getState(){\n\t\treturn state;\n\t}", "public java.lang.String getStateCode() {\n\t\treturn _dmHistoryMaritime.getStateCode();\n\t}", "public String getState()\n\t{\n\t\treturn State;\n\t\t\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state.getModelObjectAsString();\r\n\t}", "public STATE getState() {\n\t\n\t\treturn state;\n\t}", "public com.google.protobuf.ByteString\n getSqlStateBytes() {\n java.lang.Object ref = sqlState_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sqlState_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getState(){\n return state;\n }", "public java.lang.String getState() {\n return state;\n }", "public java.lang.String getState() {\n return state;\n }", "public int getState() {return state;}", "public int getState() {return state;}", "public java.lang.String getState() {\r\n return state;\r\n }", "@Override\n\tpublic String getState() {\n\t\treturn this.state;\n\t}", "public Integer getState() {\r\n return state;\r\n }", "public Integer getState() {\r\n return state;\r\n }", "public int getState() {\n return state;\n }", "public long getStateTime() {\n return _stateTime;\n }", "protected String getCurrentStatusColumn() {\n\t\treturn \"CurrentPhase\";\n\t}", "public int getState() {\n\t\treturn state;\n\t}", "public String getStateString()\n {\n return stateString;\n }", "public STATE getState() {\n return this.lastState;\n }", "public TransactionType getLogCode () {\n return logCode;\n }", "java.lang.String getState();", "public int getState() {\n return state;\n }", "public int getState() {\n return state;\n }", "public Integer getaState() {\n return aState;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public int getState() {\n \t\treturn state;\n \t}", "public java.lang.String getState() {\n return State;\n }", "String getTransactionStatus();", "String getState();", "String getState();", "String getState();", "public int getState();", "public int getState();", "public int getState();", "public int getState();", "public String getShortState(String state) {\n\t\t\t\t\n\t\t\t\tStatement statement=null;\n\t\t\t\tResultSet rs=null;\n\t\t\t\tString shortState=\"\";\n\t\t\t\ttry {\n\t\t\t\t\tstatement = connection.createStatement();\n\t\t\t\t\tString sql=\"select LINK2 from config_master where NAME='EXE_STATE' and VALUE='\"+state+\"'\";\n\t\t\t\t\trs = statement.executeQuery(sql);\n\t\t\t\t\t\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tshortState=rs.getString(\"LINK2\");\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\treturn shortState;\n\t}", "public int getState() {\n return _state;\n }", "@Override\n public String getState()\n {\n return state;\n }", "public String getSiretState() {\r\n\t\treturn siretState;\r\n\t}", "public java.lang.String getState () {\n\t\treturn state;\n\t}", "public String getStateString()\r\n\t{\r\n\t\treturn stateString;\r\n\t}", "public int getState() {\n return state.getValue();\n }", "public int getState() {\n return this.mState;\n }", "public long getStateChange() {\n return stateChange_;\n }", "public int getState() {\n return this.state.ordinal();\n }", "public int getState() {\r\n\t\treturn dState;\r\n\t}", "public String getState() {\n\t\treturn this.state_rep;\n\t}", "public String getStateCode() {\n return (String)getAttributeInternal(STATECODE);\n }" ]
[ "0.6787798", "0.6311447", "0.63069105", "0.6190556", "0.58802783", "0.5816539", "0.5816539", "0.5812245", "0.5812245", "0.5811928", "0.5811928", "0.5811928", "0.58006805", "0.58006805", "0.58005905", "0.58005905", "0.58005905", "0.58005905", "0.5779363", "0.5777747", "0.5776054", "0.5776048", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5773428", "0.5772579", "0.5765663", "0.5753791", "0.5751191", "0.57389534", "0.57211924", "0.57111704", "0.57111007", "0.56887317", "0.5687568", "0.5651434", "0.56459856", "0.5633339", "0.56087446", "0.5600921", "0.5567555", "0.5559293", "0.5554623", "0.5554623", "0.5541403", "0.5541403", "0.552985", "0.55244786", "0.5521039", "0.5521039", "0.55195165", "0.5517146", "0.5507073", "0.55045646", "0.5503462", "0.54999155", "0.54990613", "0.54962236", "0.54941773", "0.54941773", "0.54931194", "0.54915315", "0.54915315", "0.54915315", "0.54915315", "0.54915315", "0.54915315", "0.54838216", "0.5460166", "0.5447238", "0.5435468", "0.5435468", "0.5435468", "0.54311633", "0.54311633", "0.54311633", "0.54311633", "0.54271716", "0.5419443", "0.5418658", "0.54108024", "0.54107606", "0.54059625", "0.5398545", "0.5389833", "0.5386924", "0.53827363", "0.5381518", "0.5378105", "0.5377375" ]
0.58251756
5
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.STATE
public void setState(Long state) { this.state = state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void changeStatus(String state)\n { call_state=state;\n printLog(\"state: \"+call_state,Log.LEVEL_MEDIUM); \n }", "public void setState(String state);", "public void setState(String state){\n this.state = state;\n }", "public void setStateCode(java.lang.String stateCode) {\n\t\t_dmHistoryMaritime.setStateCode(stateCode);\n\t}", "public void setStateTrac(Long stateTrac) {\n this.stateTrac = stateTrac;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}", "public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}", "public void setState(String state)\r\n\t{\r\n\t\tthis.state=state;\r\n\t}", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public Builder setSqlState(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sqlState_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setLastState(STATE state) {\n\n\t}", "public void set_state(String state) throws Exception{\n\t\tthis.state = state;\n\t}", "public void setState(String state)\r\n\t{\r\n\t\tthis.state = state;\r\n\t}", "public void setState(String state)\n\t{\n\t\tState = state;\n\t}", "public void setState(String state) {\n\t\tthis.state = state;\n\t}", "public void setState(String state) {\n\t\tthis.state = state;\n\t}", "public void setState(String state)\n\t{\n\t\tthis.state = state; \n\t}", "public void setState(int state);", "public void setState(int state);", "@Override\n\tpublic void setState(STATE state) {\n\n\t}", "public void setState(java.lang.String state) {\r\n this.state = state;\r\n }", "@Override protected void setState(State s) {\n session.setState(s);\n super.setState(s);\n }", "public void setState(String State) {\n this.State = State;\n }", "public void setState(java.lang.String state) {\n this.state = state;\n }", "public void setState(java.lang.String state) {\n this.state = state;\n }", "@Override\n public void setState(String s)\n {\n state = s;\n nbChanges++;\n }", "public void setState (java.lang.String state) {\n\t\tthis.state = state;\n\t}", "void setState(String state);", "void setState(int state);", "public void setState(Integer state) {\r\n this.state = state;\r\n }", "public void setState(Integer state) {\r\n this.state = state;\r\n }", "public void setState(Integer state) {\n\t\tthis.state = state;\n\t}", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "java.lang.String getSqlState();", "public void setState(int state) {\n \t\tthis.state = state;\n \t}", "public void setState(java.lang.String State) {\n this.State = State;\n }", "public void SetState(int s) {\n this.state=LS[s];\n }", "protected void setState(IMAP.IMAPState state)\n {\n __state = state;\n }", "public void setState(String s) {\r\n\t\tstate = s;\t\t\r\n\t}", "public void setState(String newState) {\n\t\tthis.State = newState;\n\t}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "public void setState(int state) {\n\t\t\tmState = state;\n\t\t}", "public void setaState(Integer aState) {\n this.aState = aState;\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(String state) {\n this.state = state == null ? null : state.trim();\n }", "public void setState(org.apache.axis.types.UnsignedInt state) {\n this.state = state;\n }", "public void setSTS( Integer STS )\n {\n this.STS = STS;\n }", "public void setState(int state) {\n m_state = state;\n }", "private void setState( int state )\n {\n m_state.setState( state );\n }", "void setState(org.landxml.schema.landXML11.StateType.Enum state);", "public void setLog(Log log) throws SQLException {\n this.log = log;\n\n commentField.setText(log.getComment());\n timeField.setText(String.valueOf(log.getTime()));\n }", "@Generated\n @Selector(\"setState:\")\n public native void setState(@NInt long value);", "public void stateDetail(String state) throws StateNotFoundException, MySqlException {\n\t\t pers.stateDetail(state);\n\t}", "public void setState(String state)\n {\n switch(state) {\n case \"Clock-In\": this.state = new ClockedIn();break;\n case \"Clock-Out\": this.state = new ClockedOut();break;\n }\n }", "public void setState(org.landxml.schema.landXML11.StateType.Enum state)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATE$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STATE$14);\r\n }\r\n target.setEnumValue(state);\r\n }\r\n }", "public void setState(States s) {\n\t\tthis.state = s;\n\t}", "public abstract void setState(String sValue);", "public void setState(Byte state) {\n this.state = state;\n }", "public void setState(Byte state) {\n this.state = state;\n }", "@Override\r\n\tpublic void updateOrderState(HashMap<String,Object> map) throws Exception {\n\t\t\r\n\t\tsqlSession.update(namespaceOrder+\".updateState\",map);\r\n\t\t\r\n\t}", "public void setState( EAIMMCtxtIfc theCtxt, java.lang.String theState) throws EAIException;", "public void setState(State state) {\n\t\tenvironmentStatus = state.name();\n\t\tsetupResult = state.name();\n\t}", "final protected void setEntityState(int newState)\n {\n state = newState;\n }", "public void setState(String newState) {\r\n\t\tstate = newState;\r\n\t}", "void setState(Object state);", "public void setState(Context.ContextState state)\n\t{\n\t this.state = state;\n\t}", "public void setGastricState(Date instant, GastricState state) {\n\t\tgastricStates.put(DateUtils.truncate(instant, Calendar.MINUTE), state);\r\n\t}", "@Override\n public void setState(int state) {\n synchronized(LOCK_STATE) {\n this.state = state;\n }\n }", "public void setStateTransition(StateTransition sb) {\n\t\tthis.sb = sb;\n\t}", "public void setStatesReference(TableProcessor states) {\n opensimMocoJNI.MocoTrack_setStatesReference(swigCPtr, this, TableProcessor.getCPtr(states), states);\n }", "public void setState(int state) {\n\t\tif (state == CHASE)\n\t\t\tthis.state = CHASE;\n\t\telse if (state == RUN) \n\t\t\tthis.state = RUN;\n\t}", "private void setMPState(String state) {\n this.mpState = state;\n }", "public void setState(State newState) {this.state = newState;}", "public void setState(java.lang.CharSequence value) {\n this.state = value;\n }", "public static void SetState (int state) {\n\t\t source = state;\n\t\t}", "public void setState(State state) { model.setState(state); }", "public void setState(State state) {\n\t\tthis.state = state;\n\t}", "void setState(State state);", "public void setStateA(long stateA) {\n this.stateA = stateA;\n }" ]
[ "0.57828504", "0.56271327", "0.5610628", "0.558339", "0.5534821", "0.553197", "0.553197", "0.5504279", "0.5504279", "0.55017334", "0.5488967", "0.5488967", "0.5488967", "0.5488967", "0.5488967", "0.5488967", "0.5488967", "0.5488967", "0.5487572", "0.5484708", "0.54809046", "0.54806983", "0.54713786", "0.546529", "0.546529", "0.5455889", "0.5439232", "0.5439232", "0.54309785", "0.540479", "0.53920215", "0.5388023", "0.5369521", "0.5369521", "0.536604", "0.53560644", "0.5335045", "0.5331222", "0.5318516", "0.5318516", "0.5297762", "0.52948225", "0.52948225", "0.52948225", "0.52948225", "0.52948225", "0.52948225", "0.52810454", "0.5267157", "0.526566", "0.52643824", "0.5204069", "0.5189111", "0.5135571", "0.5112726", "0.51117605", "0.5107928", "0.51056087", "0.51056087", "0.51056087", "0.51056087", "0.51056087", "0.51056087", "0.51056087", "0.51056087", "0.51056087", "0.51055664", "0.5096306", "0.5090323", "0.50891405", "0.50855535", "0.5055734", "0.50489914", "0.5037669", "0.5033621", "0.50256497", "0.50164", "0.5009057", "0.4979837", "0.4979837", "0.49760103", "0.4959723", "0.49573052", "0.49519768", "0.49502242", "0.49483243", "0.49320456", "0.4930285", "0.49301383", "0.49268028", "0.49262658", "0.49203295", "0.49127957", "0.4912075", "0.4910849", "0.4907947", "0.49072078", "0.49036074", "0.48924643", "0.4892426" ]
0.5746439
1
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.REMARKS
public String getRemarks() { return remarks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\r\n return (String) getAttributeInternal(REMARKS);\r\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\r\n return remarks;\r\n }", "public String getRemarks() { return remarks; }", "public java.lang.String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n\t\t\treturn remarks;\n\t\t}", "public java.lang.String getRemarks () {\n\t\treturn remarks;\n\t}", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\r\n setAttributeInternal(REMARKS, value);\r\n }", "public String getaRemarks() {\n return aRemarks;\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks;\n }", "public void setRemarks(java.lang.String remarks) {\n this.remarks = remarks;\n }", "public void setRemarks (java.lang.String remarks) {\n\t\tthis.remarks = remarks;\n\t}", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\r\n\t\treturn remark;\r\n\t}", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\r\n this.remarks = remarks == null ? null : remarks.trim();\r\n }", "public String getRemark() {\n\t\treturn remark;\n\t}", "java.lang.String getNotes();", "java.lang.String getNotes();", "public java.lang.String getRemark () {\r\n\t\treturn remark;\r\n\t}", "public String getRemark()\n/* */ {\n/* 255 */ return this.remark;\n/* */ }", "public java.lang.String getRemark () {\n\t\treturn _remark;\n\t}", "public String getLineRemark() {\n return lineRemark;\n }", "public java.lang.String getRemarks() {\n\t\treturn _tempNoTiceShipMessage.getRemarks();\n\t}", "@Override\r\n\tpublic List<QuestionRemark> getQuestionRemarks(Map<String, String> map)\r\n\t\t\tthrows Exception {\n\t\treturn null;\r\n\t}", "public String getNotes();", "public String getRemarks1() {\n return remarks1;\n }", "public String getMlSremark() {\n return mlSremark;\n }", "public void setRemarks(java.lang.String remarks) {\n\t\t_tempNoTiceShipMessage.setRemarks(remarks);\n\t}", "String getRemark();", "public final void setRemarks(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String remarks)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Remarks.toString(), remarks);\n\t}", "public java.lang.String getRevisedRemark () {\n\t\treturn revisedRemark;\n\t}", "String getNotes();", "public String getRemark() {\n return this.Remark;\n }", "public void setRemark (java.lang.String remark) {\r\n\t\tthis.remark = remark;\r\n\t}", "public String getAdmRemarks() {\n return admRemarks;\n }", "public String getNotes() {\n\treturn notes;\n}", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public java.lang.String getActualRemark () {\n\t\treturn actualRemark;\n\t}", "public void setaRemarks(String aRemarks) {\n this.aRemarks = aRemarks == null ? null : aRemarks.trim();\n }", "public String getNotes() {\n return notes;\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public final void setRemarks(java.lang.String remarks)\n\t{\n\t\tsetRemarks(getContext(), remarks);\n\t}" ]
[ "0.6505421", "0.6505421", "0.6505421", "0.6505421", "0.6440379", "0.6385697", "0.6385697", "0.62903196", "0.627778", "0.62580967", "0.61428726", "0.6068694", "0.60570306", "0.60570306", "0.60570306", "0.60570306", "0.60570306", "0.60570306", "0.6038897", "0.5982564", "0.5976689", "0.59644145", "0.59324837", "0.5869454", "0.5823168", "0.5823168", "0.5823168", "0.5823168", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5779046", "0.5733711", "0.5729633", "0.5729633", "0.5729633", "0.5729633", "0.5729633", "0.5712068", "0.5699283", "0.5698745", "0.5698745", "0.5670913", "0.5641068", "0.55593735", "0.5513878", "0.5512376", "0.5483801", "0.5463022", "0.544403", "0.54312354", "0.54043835", "0.5385869", "0.5362442", "0.533934", "0.5323931", "0.52671653", "0.52669585", "0.52550787", "0.52493685", "0.52469665", "0.52450216", "0.52437896", "0.52425855", "0.52285904", "0.52285904", "0.52173924" ]
0.62430036
16
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.REMARKS
public void setRemarks(String remarks) { this.remarks = remarks == null ? null : remarks.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRemarks(String value) {\r\n setAttributeInternal(REMARKS, value);\r\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(java.lang.String remarks) {\n this.remarks = remarks;\n }", "public void setRemarks (java.lang.String remarks) {\n\t\tthis.remarks = remarks;\n\t}", "public void setRemarks(String remarks) {\n this.remarks = remarks;\n }", "public void setRemarks(String remarks) {\r\n this.remarks = remarks == null ? null : remarks.trim();\r\n }", "public final void setRemarks(java.lang.String remarks)\n\t{\n\t\tsetRemarks(getContext(), remarks);\n\t}", "public final void setRemarks(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String remarks)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Remarks.toString(), remarks);\n\t}", "public void setRemark(String remark)\n/* */ {\n/* 267 */ this.remark = remark;\n/* */ }", "public void setRemarks(java.lang.String remarks) {\n\t\t_tempNoTiceShipMessage.setRemarks(remarks);\n\t}", "public void setRemark (java.lang.String remark) {\r\n\t\tthis.remark = remark;\r\n\t}", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setaRemarks(String aRemarks) {\n this.aRemarks = aRemarks == null ? null : aRemarks.trim();\n }", "public void setRemark(String remark) {\n\t\tthis.remark = remark == null ? null : remark.trim();\n\t}", "public void setRemark(String remark) {\r\n\t\tthis.remark = remark;\r\n\t}", "public void setRemark(String remark) {\r\n this.remark = remark == null ? null : remark.trim();\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark == null ? null : remark.trim();\r\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "@Override\n\tpublic void setRemarks(java.lang.String remarks) {\n\t\t_dmGTShipPosition.setRemarks(remarks);\n\t}", "public void setRemark(String Remark) {\n this.Remark = Remark;\n }", "void setNotes(String notes);", "protected void setRemark(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString remark = rs.getString(EmployeeLeaveTable.COLUMN_REMARK);\n\t\tif(remark == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setRemark(remark);\n\t}", "public void setNotes(String notes);", "public String getRemarks() { return remarks; }", "public void setRemarks1(String remarks1) {\n this.remarks1 = remarks1 == null ? null : remarks1.trim();\n }", "public void setNotes(String v) \n {\n \n if (!ObjectUtils.equals(this.notes, v))\n {\n this.notes = v;\n setModified(true);\n }\n \n \n }", "public void setAdmRemarks(String admRemarks) {\n this.admRemarks = admRemarks == null ? null : admRemarks.trim();\n }", "public void setMlSremark(String mlSremark) {\n this.mlSremark = mlSremark;\n }", "public String getRemarks() {\r\n return remarks;\r\n }", "void setTraceabilityNotes(String traceabilityNotes);", "public void setRemark (java.lang.String _remark) {\n\t\tthis._remark = _remark;\n\t}", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public void setLineRemark(String lineRemark) {\n this.lineRemark = lineRemark == null ? null : lineRemark.trim();\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public void setDocumentNote (String DocumentNote);", "public void setNotes(java.lang.String notes)\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(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTES$14);\n }\n target.setStringValue(notes);\n }\n }", "public java.lang.String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\r\n return (String) getAttributeInternal(REMARKS);\r\n }", "public void setRemarks2(String remarks2) {\n this.remarks2 = remarks2 == null ? null : remarks2.trim();\n }", "public String getRemarks() {\n\t\t\treturn remarks;\n\t\t}", "public void setNotes(java.lang.String param) {\r\n localNotesTracker = param != null;\r\n\r\n this.localNotes = param;\r\n }", "public void setApsRemarks( String apsRemarks ) {\n this.apsRemarks = apsRemarks;\n }", "public void setNotes(com.sforce.soap.enterprise.QueryResult notes) {\r\n this.notes = notes;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "void setNotes(boolean printnotes);" ]
[ "0.69466984", "0.692934", "0.692934", "0.692934", "0.692934", "0.692934", "0.692934", "0.6517145", "0.65086424", "0.6501556", "0.64443403", "0.64030385", "0.6275705", "0.62446237", "0.61687404", "0.6031123", "0.59897995", "0.5974299", "0.5974299", "0.59449875", "0.59402156", "0.5910837", "0.5897249", "0.5897249", "0.5897132", "0.5897132", "0.5897132", "0.5897132", "0.5897132", "0.5897132", "0.5897132", "0.5897132", "0.5897132", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58745015", "0.58360445", "0.57437825", "0.55735993", "0.55268794", "0.55146724", "0.5452554", "0.54475546", "0.5441524", "0.5408161", "0.53928006", "0.5359594", "0.5358247", "0.5342798", "0.5304565", "0.5304565", "0.5304565", "0.5304565", "0.5304565", "0.5304565", "0.5304565", "0.5298262", "0.5253878", "0.5253878", "0.5253878", "0.5253878", "0.52288896", "0.5208605", "0.5205312", "0.51842934", "0.51768756", "0.51732814", "0.517187", "0.5135634", "0.5132363", "0.5126887", "0.5115525", "0.5115525", "0.5080466", "0.5080466", "0.5080466", "0.5080466", "0.5063498" ]
0.64213264
15
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.SUB_OBJECT_TYPE
public String getSubObjectType() { return subObjectType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSubSubType() {\r\n\t\treturn subSubType;\r\n\t}", "public byte getSubType() {\n return this.subType;\n }", "public void setSubObjectType(String subObjectType) {\n this.subObjectType = subObjectType == null ? null : subObjectType.trim();\n }", "public String getSubType() {\n return typeString;\n }", "public void setSubSubType(String subSubType) {\r\n\t\tthis.subSubType = subSubType;\r\n\t}", "public java.lang.String getSubType() {\n java.lang.Object ref = subType_;\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 subType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getSubType() {\n java.lang.Object ref = subType_;\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 subType_ = s;\n return s;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getSubTypeBytes() {\n java.lang.Object ref = subType_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public T caseFieldSubsetType(FieldSubsetType object) {\n\t\treturn null;\n\t}", "public com.google.protobuf.ByteString\n getSubTypeBytes() {\n java.lang.Object ref = subType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getSubTypeDesc() {\n\t\treturn subTypeDesc;\n\t}", "public final String getSubType() {\n return this.subtype;\n }", "public T caseDomainSubsetType(DomainSubsetType object) {\n\t\treturn null;\n\t}", "public int getSubtype() {\r\n return Subtype;\r\n }", "java.lang.String getSubType();", "public String getSublineTypeCd() {\n\t\treturn sublineTypeCd;\n\t}", "public java.lang.Object getSubIssueTypeID() {\n return subIssueTypeID;\n }", "public T caseAxisSubsetType(AxisSubsetType object) {\n\t\treturn null;\n\t}", "public String getSubTypeFieldForType(String type) {\n\t\tDeviceTypeLookup deviceTypeLookup = deviceTypeLookupRepository.findFirstByType(type);\n\t\t\n\t\t// nog get this subtype field\n\t\treturn deviceTypeLookup.getSubTypeField();\n\t}", "public void setSubIssueTypeID(java.lang.Object subIssueTypeID) {\n this.subIssueTypeID = subIssueTypeID;\n }", "public final String getTopLevelType() {\n return this.type;\n }", "public void setSubTypeDesc(String subTypeDesc) {\n\t\tthis.subTypeDesc = subTypeDesc;\n\t}", "public SubField getSubField(final String sub){\n\t\treturn subfields.get(sub);\n\t}", "@Pure\n\tprotected boolean isSubTypeOf(EObject context, JvmTypeReference subType, JvmTypeReference superType) {\n\t\tif (isTypeReference(superType) && isTypeReference(subType)) {\n\t\t\tStandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(services, context);\n\t\t\tLightweightTypeReferenceFactory factory = new LightweightTypeReferenceFactory(owner, false);\n\t\t\tLightweightTypeReference reference = factory.toLightweightReference(subType);\n\t\t\treturn reference.isSubtypeOf(superType.getType());\n\t\t}\n\t\treturn false;\n\t}", "private int getSubjTypeIdx() {\n return this.colStartOffset + 6;\n }", "public org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceSubType> listSubTypes()\r\n {\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceSubType>(getSemanticObject().listObjectProperties(swb_hasPTSubType));\r\n }", "public void setSublineTypeCd(String sublineTypeCd) {\n\t\tthis.sublineTypeCd = sublineTypeCd;\n\t}", "ThreadSubcomponentType getThreadSubcomponentType();", "public String getSubtype () {\n return subtype;\n }", "public String getSubtype () {\n return subtype;\n }", "public SubpType // (##6)\nfindSubpType();", "Entity getSuperType();", "public RegitemSubsubtypes getRegitemSubsubtypes() {\n return regitemSubsubtypes;\n }", "protected long doGetNumberOfSubtypes() {\r\n\t\treturn getParentIndex().getSubtypes().size();\r\n\t}", "public LLDPOrganizationalTLV setSubType(final byte subType) {\n this.subType = subType;\n return this;\n }", "public java.lang.String getBillSubType () {\n\t\treturn billSubType;\n\t}", "public T caseSubFieldDeclaration(SubFieldDeclaration object)\n {\n return null;\n }", "public int getSqlType() { return _type; }", "public T caseAnnexSubclause(AnnexSubclause object) {\n\t\treturn null;\n\t}", "public Map<String, SubField> getSubFields(){\n\t\treturn this.subfields;\n\t}", "protected String subobjectInterfaceName(Subobject subobject) {\n return subobject.name();\n }", "public Type getType2() {\n\t\treturn this.data.getType2();\n\t}", "public String getSub() {\n return sub;\n }", "public java.lang.String getSobjectType() {\r\n return sobjectType;\r\n }", "public static void addTypeFieldInSubclasses(Model model) throws MolgenisModelException\r\n\t{\r\n\t\tlogger.debug(\"add a 'type' field in subclasses to enable instanceof at database level...\");\r\n\t\tfor (Entity e : model.getEntities())\r\n\t\t{\r\n\t\t\tif (e.isRootAncestor())\r\n\t\t\t{\r\n\t\t\t\tVector<Entity> subclasses = e.getAllDescendants();\r\n\t\t\t\tVector<String> enumOptions = new Vector<String>();\r\n\t\t\t\tenumOptions.add(firstToUpper(e.getName()));\r\n\t\t\t\tfor (Entity subclass : subclasses)\r\n\t\t\t\t{\r\n\t\t\t\t\tenumOptions.add(firstToUpper(subclass.getName()));\r\n\t\t\t\t}\r\n\t\t\t\tif (e.getField(Field.TYPE_FIELD) == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tField type_field = new Field(e, new EnumField(), Field.TYPE_FIELD, Field.TYPE_FIELD, true, false,\r\n\t\t\t\t\t\t\ttrue, null);\r\n\t\t\t\t\ttype_field.setDescription(\"Subtypes have to be set to allow searching\");\r\n\t\t\t\t\t// FIXME should be true, but breaks existing apps\r\n\t\t\t\t\t// type_field.setSystem(true);\r\n\t\t\t\t\ttype_field.setHidden(true);\r\n\t\t\t\t\te.addField(0, type_field);\r\n\t\t\t\t}\r\n\t\t\t\te.getField(Field.TYPE_FIELD).setEnumOptions(enumOptions);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\te.removeField(e.getField(Field.TYPE_FIELD));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public String getObjectTypeId();", "public Builder setSubType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subType_ = value;\n onChanged();\n return this;\n }", "public BigDecimal getSUB_REPORT_ID() {\r\n return SUB_REPORT_ID;\r\n }", "public void setSUB_REPORT_ID(BigDecimal SUB_REPORT_ID) {\r\n this.SUB_REPORT_ID = SUB_REPORT_ID;\r\n }", "public String getBuildingSubType() {\n return (String) getAttributeInternal(BUILDINGSUBTYPE);\n }", "@Override\n public Class<SysMenuRecord> getRecordType() {\n return SysMenuRecord.class;\n }", "public void setSubtype (String subtype) {\n this.subtype = subtype;\n }", "@Override\n public Class<?> getObjectType() {\n return this.type;\n }", "@Override\n\tpublic java.lang.Class<projectdb.tables.records.ChangelogRecord> getRecordType() {\n\t\treturn projectdb.tables.records.ChangelogRecord.class;\n\t}", "public void setSubtype (String subtype) {\n this.subtype = subtype;\n }", "public String getSubId() {\r\n return (String) getAttributeInternal(SUBID);\r\n }", "public void setRegitemSubsubtypes(RegitemSubsubtypes aRegitemSubsubtypes) {\n regitemSubsubtypes = aRegitemSubsubtypes;\n }", "protected long doGetNumberOfSubtypes(Topic type) {\r\n\t\treturn getParentIndex().getSubtypes(type).size();\r\n\t}", "public __Type getSubscriptionType() {\n return (__Type) get(\"subscriptionType\");\n }", "com.google.protobuf.ByteString\n getSubTypeBytes();", "public String getType() {\n return (String) getObject(\"type\");\n }", "public short getObjtype() {\n\treturn objtype;\n}", "public Class<?> getType() {\n switch (this.aggregate) {\n case COUNT_BIG:\n return DataTypeManager.DefaultDataClasses.LONG;\n case COUNT:\n return COUNT_TYPE;\n case SUM:\n Class<?> expressionType = this.getArg(0).getType();\n return SUM_TYPES.get(expressionType);\n case AVG:\n expressionType = this.getArg(0).getType();\n return AVG_TYPES.get(expressionType);\n case ARRAY_AGG:\n if (this.getArg(0) == null) {\n return null;\n }\n return DataTypeManager.getArrayType(this.getArg(0).getType());\n case TEXTAGG:\n return DataTypeManager.DefaultDataClasses.BLOB;\n case JSONARRAY_AGG:\n return DataTypeManager.DefaultDataClasses.JSON;\n case USER_DEFINED:\n case STRING_AGG:\n return super.getType();\n case PERCENT_RANK:\n case CUME_DIST:\n return DataTypeManager.DefaultDataClasses.DOUBLE;\n }\n if (isBoolean()) {\n return DataTypeManager.DefaultDataClasses.BOOLEAN;\n }\n if (isEnhancedNumeric()) {\n return DataTypeManager.DefaultDataClasses.DOUBLE;\n }\n if (isRanking()) {\n return super.getType();\n }\n if (this.getArgs().length == 0) {\n return null;\n }\n return this.getArg(0).getType();\n }", "public Long getTypeid() {\n return typeid;\n }", "public Type<Object> getValueInnerType()\n\t{\n\t\treturn this.getProperty().getValueType().getInnerType();\n\t}", "@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn TrackerTableChangeLog.class;\r\n\t}", "public SubTypeDocInfo getSubTypeDoc(String code_clasificacion) throws GdibException{\n\n\t\tif(StringUtils.isEmpty(code_clasificacion))\n\t\t\treturn null;\n\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tSubTypeDocInfo subTypeDocInfo = null;\n\n\t\ttry {\n\t\t\tconn = getDBConnection();\n\n\t\t\tif(conn != null){\n\t\t\t\tStringBuffer stb_SELECT = new StringBuffer();\n\n\t\t\t\tstb_SELECT.append(\"SELECT * FROM subtypedoc \"\n\t\t\t\t\t\t+ \"WHERE code_clasificacion=?\");\n\n\t\t\t\tps = conn.prepareStatement(stb_SELECT.toString());\n\t\t\t\tps.setString(1, code_clasificacion);\n\n\t\t\t\tLOGGER.debug(\"getSubTypeDoc :: SQL query :: \" + ps.toString());\n\t\t\t\trs = ps.executeQuery();\n\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tsubTypeDocInfo = fillSubTypeDocByDDBB(rs);\n\t\t\t\t}\n\n\t\t\t} else{\n\t\t\t\tthrow new GdibException(\"La conexion a la base de datos se ha generado nula.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(\"Ha fallado la conexion con la bddd de alfresco. Error: \" + e.getMessage(),e);\n\t\t\tthrow new GdibException(\"Ha fallado la conexion con la bddd de alfresco. Error: \" + e.getMessage(),e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tps.close();\n\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(\"No se ha podido cerrar la conexion a base de datos.\");\n\t\t\t\tthrow new GdibException(\"No se ha podido cerrar la conexion a base de datos.\");\n\t\t\t}\n\t\t}\n\n\t\treturn subTypeDocInfo;\n\t}", "public RegitemSubtypes getRegitemSubtypes() {\n return regitemSubtypes;\n }", "public String objectTypeName()\r\n {\r\n return mObjectTypeName;\r\n }", "public void visitLSUB(LSUB o){\n\t\tif (stack().peek() != Type.LONG){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'long', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.LONG){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'long', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}", "public int getType() throws SQLException\n {\n return m_rs.getType();\n }", "public void setSubSchema(String subSchema) {\n this.subSchema = subSchema;\n }", "public String getType () {\n // Will resolve to specific subclass\n return this.getClass().getSimpleName();\n }", "public String getStaticTypeObject(Object staticObject) throws ApplicationException\r\n\t{\r\n\t\tString staticObjectType = null;\r\n\t\tif(staticObject instanceof Participant)\r\n\t\t{\r\n\t\t\tstaticObjectType = AnnotationConstants.PARTICIPANT_REC_ENTRY_ENTITY_ID;\r\n\t\t}\r\n\t\telse if(staticObject instanceof SpecimenCollectionGroup)\r\n\t\t{\r\n\t\t\tstaticObjectType = AnnotationConstants.SCG_REC_ENTRY_ENTITY_ID;\r\n\t\t}\r\n\t\telse if(staticObject instanceof Specimen)\r\n\t\t{\r\n\t\t\tstaticObjectType = AnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tErrorKey errorkey = ErrorKey.getErrorKey(\"errors.item.invalid\");\r\n\t\t\tthrow new ApplicationException(errorkey, null, \"CaTissue Hook Entity\");\r\n\t\t}\r\n\t\treturn staticObjectType;\r\n\t}", "public BranchType getBranchType() {\n long __key = this.branchTypeId;\n if (branchType__resolvedKey == null || !branchType__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n BranchTypeDao targetDao = daoSession.getBranchTypeDao();\n BranchType branchTypeNew = targetDao.load(__key);\n synchronized (this) {\n branchType = branchTypeNew;\n \tbranchType__resolvedKey = __key;\n }\n }\n return branchType;\n }", "@Override\n public Object toJdbcType(Object value) {\n return value;\n }", "public Subreport toSubreport(SbiSubreports hibSubreport){\n\t\tSubreport aSubreport = new Subreport();\n\t\taSubreport.setMaster_rpt_id(hibSubreport.getId().getMasterReport().getBiobjId());\n\t\taSubreport.setSub_rpt_id(hibSubreport.getId().getSubReport().getBiobjId());\t\t\n\t\treturn aSubreport;\n\t}", "Integer getSubObj();", "public String getType(){\r\n\t\treturn this.type;\r\n\t}", "public String getType(){\n \treturn this.type;\n }", "@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}", "public String getTYPE() {\n return TYPE;\n }", "public void setSubcodigo(java.lang.String subcodigo) {\n this.subcodigo = subcodigo;\n }", "public Subject getSubject(int SubID) {\n\t\t// Defined Object\n\t\tSubject sub = null;\n\t\t// Defined connection, rs and cs to connect and query database\n\t\tcn = LibConnection.getConnection();\n\t\ttry {\n\t\t\tcsDetails = cn.prepareCall(LibProcedure.GET_SUB);\n\t\t\tcsDetails.setInt(1, SubID);\n\t\t\trsDetails = csDetails.executeQuery();\n\t\t\tif (rsDetails.next()) {\n\t\t\t\tsub = new Subject(rsDetails.getInt(1), rsDetails.getString(2),\n\t\t\t\t\t\trsDetails.getString(3));\n\t\t\t\t// return subject object\n\t\t\t\treturn sub;\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\t// close all connect\n\t\t\tLibConnection.close(rsDetails);\n\t\t\tLibConnection.close(csDetails);\n\t\t\tLibConnection.close(cn);\n\t\t}\n\t\treturn null;\n\t}", "public Object getSubMenuV2(String menuItemkey,String subMenuItemkey) {\n\t\tlogger.info(\":::inside getSubMenuV2:::\");\r\n\t\tSqlRowSet rst=null,rst1=null;\r\n\t\tHubMenuModelV2 menuModel1=new HubMenuModelV2();\r\n\t\ttry{\r\n\t\t\trst=jdbcTemplateObject.queryForRowSet(\"select menu_id from tbl_hub_menu_list where menu_key='\"+menuItemkey+\"'\");\r\n\t\t\tif(rst.next()){\r\n\t\t\t\trst1=jdbcTemplateObject.queryForRowSet(\"select * from tbl_hub_sub_menu_list where menu_id=\"+rst.getInt(\"menu_id\")+\" and menu_key='\"+subMenuItemkey+\"'\");\r\n\t\t\t\tif(rst1.next()){\r\n\t\t\t\t\tmenuModel1.setKey(rst1.getString(\"menu_key\"));\r\n\t\t\t\t\tmenuModel1.setValue(rst1.getString(\"value\"));\r\n\t\t\t\t\tmenuModel1.setIcon(rst1.getString(\"icon\"));\r\n\t\t\t\t\tmenuModel1.setSelected_icon(rst1.getString(\"selected_icon\"));\r\n\t\t\t\t\tmenuModel1.setDeeplink_url(rst1.getString(\"deeplink_url\"));\r\n\t\t\t\t\tmenuModel1.setSort_order_id(rst1.getString(\"sort_order_id\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.info(\":::Exception in getting SubMenu:::\"+e.getLocalizedMessage());\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn menuModel1;\r\n\t}", "public String getType()\n \t{\n \t\treturn this.type;\n \t}", "public Object getType()\r\n {\r\n\treturn type;\r\n }", "String getTYPE() {\n return TYPE;\n }", "EPREFIX_TYPE getSuperType();", "List<ITypeDescriptor> getSubTypes(String type) throws StoreException;", "public NM getRxa2_AdministrationSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(2, 0);\r\n\t\treturn retVal;\r\n }", "public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}", "public String getSysType() {\n return sysType;\n }", "public Type<O> getObjectType()\n\t{\n\t\treturn this.getSettings().getObjectType();\n\t}", "public T caseSubComponent(SubComponent object)\n {\n return null;\n }", "public String getTRS_TYPE() {\r\n return TRS_TYPE;\r\n }", "public TYPE getType(){\n return this.type;\n }", "public T caseSubLoadArea(SubLoadArea object) {\n\t\treturn null;\n\t}", "public MsqType getType()\n {\n return this.type;\n }", "public RecordField getSubfield() {\n return getSubfield(0);\n }" ]
[ "0.61735165", "0.6133804", "0.6068773", "0.5921486", "0.58587116", "0.5784199", "0.57687205", "0.56993306", "0.56842524", "0.56794876", "0.5676447", "0.56552905", "0.56272453", "0.55698955", "0.5564378", "0.55631256", "0.55470073", "0.5536643", "0.55134267", "0.5465509", "0.5257461", "0.5250504", "0.52353424", "0.5218718", "0.5209632", "0.51794016", "0.5133598", "0.50588536", "0.50181407", "0.4998998", "0.4983744", "0.49558288", "0.49439758", "0.49405077", "0.4908401", "0.49033743", "0.48774537", "0.48435453", "0.48172104", "0.48129416", "0.48083556", "0.4784904", "0.47749215", "0.47696725", "0.4768381", "0.47603053", "0.47582382", "0.47570318", "0.47476614", "0.47437266", "0.47203565", "0.47059053", "0.4689259", "0.46889436", "0.46697542", "0.4669516", "0.46653396", "0.466459", "0.46550542", "0.46503973", "0.46403372", "0.46372652", "0.46369296", "0.4632618", "0.461967", "0.45954666", "0.4591668", "0.45827815", "0.45793986", "0.45782843", "0.45767063", "0.45761567", "0.457464", "0.4567695", "0.4563353", "0.4561208", "0.45565018", "0.4552989", "0.4533508", "0.45302635", "0.4529537", "0.45277888", "0.4525615", "0.45253164", "0.45210803", "0.45199215", "0.45120504", "0.45096934", "0.45077878", "0.45020202", "0.45011455", "0.45010495", "0.44978943", "0.44972572", "0.44964853", "0.44948402", "0.44922698", "0.448844", "0.4485033", "0.4472583" ]
0.7025657
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.SUB_OBJECT_TYPE
public void setSubObjectType(String subObjectType) { this.subObjectType = subObjectType == null ? null : subObjectType.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSubSubType(String subSubType) {\r\n\t\tthis.subSubType = subSubType;\r\n\t}", "public T caseFieldSubsetType(FieldSubsetType object) {\n\t\treturn null;\n\t}", "public String getSubObjectType() {\n return subObjectType;\n }", "public T caseDomainSubsetType(DomainSubsetType object) {\n\t\treturn null;\n\t}", "public void setSubIssueTypeID(java.lang.Object subIssueTypeID) {\n this.subIssueTypeID = subIssueTypeID;\n }", "public T caseAxisSubsetType(AxisSubsetType object) {\n\t\treturn null;\n\t}", "public void setSubTypeDesc(String subTypeDesc) {\n\t\tthis.subTypeDesc = subTypeDesc;\n\t}", "public Builder setSubType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subType_ = value;\n onChanged();\n return this;\n }", "public void setSublineTypeCd(String sublineTypeCd) {\n\t\tthis.sublineTypeCd = sublineTypeCd;\n\t}", "public void setSubSchema(String subSchema) {\n this.subSchema = subSchema;\n }", "public LLDPOrganizationalTLV setSubType(final byte subType) {\n this.subType = subType;\n return this;\n }", "public void setRegitemSubsubtypes(RegitemSubsubtypes aRegitemSubsubtypes) {\n regitemSubsubtypes = aRegitemSubsubtypes;\n }", "public synchronized void setSubType(String subtype) throws MessagingException {\n/* 233 */ ContentType cType = new ContentType(this.contentType);\n/* 234 */ cType.setSubType(subtype);\n/* 235 */ this.contentType = cType.toString();\n/* */ }", "public void setSubArray(com.walgreens.rxit.ch.cda.StrucDocSub[] subArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(subArray, SUB$2);\n }\n }", "public void setSubtype (String subtype) {\n this.subtype = subtype;\n }", "public void setSUB_REPORT_ID(BigDecimal SUB_REPORT_ID) {\r\n this.SUB_REPORT_ID = SUB_REPORT_ID;\r\n }", "public void setSubtype (String subtype) {\n this.subtype = subtype;\n }", "public static void addTypeFieldInSubclasses(Model model) throws MolgenisModelException\r\n\t{\r\n\t\tlogger.debug(\"add a 'type' field in subclasses to enable instanceof at database level...\");\r\n\t\tfor (Entity e : model.getEntities())\r\n\t\t{\r\n\t\t\tif (e.isRootAncestor())\r\n\t\t\t{\r\n\t\t\t\tVector<Entity> subclasses = e.getAllDescendants();\r\n\t\t\t\tVector<String> enumOptions = new Vector<String>();\r\n\t\t\t\tenumOptions.add(firstToUpper(e.getName()));\r\n\t\t\t\tfor (Entity subclass : subclasses)\r\n\t\t\t\t{\r\n\t\t\t\t\tenumOptions.add(firstToUpper(subclass.getName()));\r\n\t\t\t\t}\r\n\t\t\t\tif (e.getField(Field.TYPE_FIELD) == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tField type_field = new Field(e, new EnumField(), Field.TYPE_FIELD, Field.TYPE_FIELD, true, false,\r\n\t\t\t\t\t\t\ttrue, null);\r\n\t\t\t\t\ttype_field.setDescription(\"Subtypes have to be set to allow searching\");\r\n\t\t\t\t\t// FIXME should be true, but breaks existing apps\r\n\t\t\t\t\t// type_field.setSystem(true);\r\n\t\t\t\t\ttype_field.setHidden(true);\r\n\t\t\t\t\te.addField(0, type_field);\r\n\t\t\t\t}\r\n\t\t\t\te.getField(Field.TYPE_FIELD).setEnumOptions(enumOptions);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\te.removeField(e.getField(Field.TYPE_FIELD));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void setSubCode(String subCode) {\n\t\tthis.subCode = subCode;\n\t}", "public String getSubSubType() {\r\n\t\treturn subSubType;\r\n\t}", "public void setRegitemSubtypes(RegitemSubtypes aRegitemSubtypes) {\n regitemSubtypes = aRegitemSubtypes;\n }", "public void setLBR_SubSerie (String LBR_SubSerie);", "public void setSubTreeNodeInMOMap(Map<String, Node> subTreeNodeInMOMap) {\n\t\tthis.subTreeNodeInMOMap = subTreeNodeInMOMap;\n\t}", "public void setSubcodigo(java.lang.String subcodigo) {\n this.subcodigo = subcodigo;\n }", "@Pure\n\tprotected boolean isSubTypeOf(EObject context, JvmTypeReference subType, JvmTypeReference superType) {\n\t\tif (isTypeReference(superType) && isTypeReference(subType)) {\n\t\t\tStandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(services, context);\n\t\t\tLightweightTypeReferenceFactory factory = new LightweightTypeReferenceFactory(owner, false);\n\t\t\tLightweightTypeReference reference = factory.toLightweightReference(subType);\n\t\t\treturn reference.isSubtypeOf(superType.getType());\n\t\t}\n\t\treturn false;\n\t}", "public void setGiisSublineDAO(GIISSublineDAO giisSublineDAO) {\n\t\tthis.giisSublineDAO = giisSublineDAO;\n\t}", "public T caseSubFieldDeclaration(SubFieldDeclaration object)\n {\n return null;\n }", "public void setResult(int type, String typeName, Class javaType, DatabaseField nestedType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n field.setNestedTypeField(nestedType);\r\n getParameters().set(0, field);\r\n }", "public void setSubtype(String subtype) {\n this.subtype = (Strings.isNullOrEmpty(subtype)) ? null : subtype.toLowerCase();\n }", "public byte getSubType() {\n return this.subType;\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public void setSuperType(Class<?> superType) {\n if (superType != null) {\n this.superType = type.getSupertype((Class) superType);\n }\n }", "public void setObjtype(short newValue) {\n\tthis.objtype = newValue;\n}", "public void setSubHandler(Handler<R, T> subHandler) {\n this.subHandler = subHandler;\n }", "public void setSUB_LINE_NO(BigDecimal SUB_LINE_NO) {\r\n this.SUB_LINE_NO = SUB_LINE_NO;\r\n }", "public T caseAnnexSubclause(AnnexSubclause object) {\n\t\treturn null;\n\t}", "public void setSubAgenda(AgendaDefinition.Builder subAgenda) {\r\n\t\t\tthis.subAgenda = subAgenda;\r\n\t\t}", "public void setSubAgendaId(String subAgendaId) {\r\n\t\t\tthis.subAgendaId = subAgendaId;\r\n\t\t}", "@And(\"^I go to \\\"([^\\\"]*)\\\" type and select \\\"([^\\\"]*)\\\"$\") //Selecting Type & sub-Type in Create form\r\n\tpublic void selectFormType(String type,String subtype) {\r\n\t\r\n\tenduser.selectFormType(type,subtype);\r\n\t}", "public void setSubJobContainer(Map<String, Object> subJobContainer) {\n\t\tthis.subJobContainer = subJobContainer;\n\t}", "@Override\n public void setObjectType(String type) {\n this.objectType = type;\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "public void visitLSUB(LSUB o){\n\t\tif (stack().peek() != Type.LONG){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'long', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.LONG){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'long', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}", "public void setSubTotal(double subTotal) {\n\n this.subTotal = subTotal;\n }", "public void setSuburItemId(long suburItemId);", "public void setSubId(String value) {\r\n setAttributeInternal(SUBID, value);\r\n }", "public String getSubType() {\n return typeString;\n }", "@JsonProperty(\"subpath\")\n public void setSubpath(String subpath) {\n this.subpath = subpath;\n }", "public void setSubcontact(java.lang.String value);", "public void setSubLayout(String subLayout) {\n this.subLayout = subLayout;\n }", "public Builder setSubTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subType_ = value;\n onChanged();\n return this;\n }", "@Override\n public void visit(SubSelect subSelect) {\n SelectBody body = subSelect.getSelectBody();\n QueryAnalyzerImpl sub = new QueryAnalyzerImpl(database, body);\n String alias = subSelect.getAlias() == null ? null : subSelect.getAlias().getName();\n\n Map<String, Column> columnMap = new LinkedHashMap<>();\n for (Column column : sub.select.getColumnList()) {\n\n columnMap.put(column.getAlias(),\n new Column(column.alias, column.getAlias(), column.owner, column.metadata));\n }\n\n select = new QueryAnalyzer.Select(\n new ArrayList<>(),\n new QueryAnalyzer.SelectTable(\n parsePlainName(alias),\n columnMap,\n sub.select.table.metadata\n )\n );\n }", "public T caseSubLoadArea(SubLoadArea object) {\n\t\treturn null;\n\t}", "public T caseRangeSubsetType(RangeSubsetType object) {\n\t\treturn null;\n\t}", "@Override\n public boolean visit(SQLInSubQueryExpr subQuery) {\n subQuery.getExpr().setParent(subQuery);\n return true;\n }", "public void setCodigoImovelSubCategoria(String codigoImovelSubCategoria) {\r\n this.codigoImovelSubCategoria = codigoImovelSubCategoria;\r\n }", "public Builder clearSubType() {\n \n subType_ = getDefaultInstance().getSubType();\n onChanged();\n return this;\n }", "public void setSubProcessInstance(ProcessInstance subProcessInstance) {\n\t\tthis.subProcessInstance = subProcessInstance;\r\n\t}", "@Override\n\tpublic void visit(OWLSubObjectPropertyOfAxiom axiom) {\n\t\taddFact(RewritingVocabulary.SUB_ROLE, //\n\t\t\t\taxiom.getSubProperty().asOWLObjectProperty().getIRI(),//\n\t\t\t\taxiom.getSuperProperty().asOWLObjectProperty().getIRI());\n\t}", "private static void setSubtype(\n ModelElement modelElement\n ){\n ArrayList subtypes = new ArrayList();\n ModelElement supertype = null;\n for(\n Iterator<ModelElement> i = modelTypeNames.values().iterator();\n i.hasNext();\n ) {\n supertype = i.next();\n if(\n supertype.allSupertypes.contains(\n modelElement.qualifiedName\n ) &&\n !subtypes.contains(supertype.qualifiedName)\n ) {\n subtypes.add(\n supertype.qualifiedName\n );\n }\n } \n modelElement.subtypes.clear();\n modelElement.subtypes.addAll(\n subtypes\n );\n }", "public void addSubField(final SubField sub){\n\t\tthis.subfields.put(sub.getSubTag(), sub);\n\t}", "public java.lang.Object getSubIssueTypeID() {\n return subIssueTypeID;\n }", "public void setSubAppId(Long SubAppId) {\n this.SubAppId = SubAppId;\n }", "public final void setSubSystem(SubSystem subSystem){\n this.peripheralSubSystem = subSystem;\n }", "void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }", "public void setSubQueue(SubQueue subQueue) {\n this.subQueue = subQueue;\n }", "public final native void setObjectType(String type) /*-{\n\t\t\tthis.beanName = type;\n\t\t}-*/;", "public void setSubPeriodStart (Date subPeriodStart)\t{\n\t\tmSubPeriodStart = subPeriodStart;\n\t}", "public SubField getSubField(final String sub){\n\t\treturn subfields.get(sub);\n\t}", "public com.google.protobuf.ByteString\n getSubTypeBytes() {\n java.lang.Object ref = subType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getSubTypeBytes() {\n java.lang.Object ref = subType_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setObjectClass(String objectClass) {\n this.objectClass = objectClass;\n }", "public void setSubBankId(Integer subBankId) {\r\n this.subBankId = subBankId;\r\n }", "public void setSobjectType(java.lang.String sobjectType) {\r\n this.sobjectType = sobjectType;\r\n }", "public void setPropertyWithAutoTypeCast(Object obj, Object value) {\n if(value==null) {\n setProperty(obj, value);\n return;\n }\n Class<?> propType = getPropertyType();\n if(propType.isAssignableFrom(value.getClass())) {\n setProperty(obj, value);\n return;\n }\n if(value instanceof Long && propType.equals(Integer.class)) {\n setProperty(obj, Integer.valueOf(value.toString()));\n return;\n }\n if(value instanceof Double || value instanceof Float || value instanceof BigDecimal) {\n if(propType.isAssignableFrom(Double.class)) {\n setProperty(obj, Double.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(Float.class)) {\n setProperty(obj, Float.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(BigDecimal.class)) {\n setProperty(obj, BigDecimal.valueOf(Double.valueOf(value.toString())));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n if(value instanceof java.util.Date) {\n if(propType.isAssignableFrom(java.sql.Timestamp.class)) {\n setProperty(obj, new java.sql.Timestamp(((java.util.Date) value).getTime()));\n return;\n } else if(propType.isAssignableFrom(java.sql.Date.class)) {\n setProperty(obj, new java.sql.Date(((java.util.Date) value).getTime()));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }", "public final native void setObjectType(String type) /*-{\n\t\tthis.beanName = type;\n\t}-*/;", "public boolean createOrUpdateSubMenu(DTOSubMenu subMenuDTO) {\n\t try {\n\t\tlogger.log(Level.INFO, \"DAOSubMenuDataSource - Parameters of the New Sub Menu : \" +\n\t\t subMenuDTO.getSubMenuName()+\",\"+subMenuDTO.getSubMenuIncludeExclude()\n\t\t \t+\",\"+subMenuDTO.getSubMenuDescription()+\",\"+subMenuDTO.getTopMenuName());\n\t\tEntity topMenu = new DAOTopMenuDataSource().getTopMenu(subMenuDTO.getTopMenuName());\n\t Entity subMenu = getSingleSubMenuEntity(subMenuDTO.getSubMenuName());\n\t\tif (subMenu == null) {\n\t \t subMenu = new Entity(KIND_SUBMENU, topMenu.getKey());\n\t\t}\n\t subMenu.setProperty(PROPERTY_SUBMENU_NAME, subMenuDTO.getSubMenuName());\n\t subMenu.setProperty(PROPERTY_INCLUDE_EXCLUDE, subMenuDTO.getSubMenuIncludeExclude());\n\t subMenu.setProperty(PROPERTY_DESCRIPTION, subMenuDTO.getSubMenuDescription());\n\t subMenu.setProperty(PROPERTY_SUBMENU_TOPMENU_COLUMN, subMenuDTO.getTopMenuName());\n\t \n\t new UtilDataSourceAPI().persistEntity(subMenu);\n\t \treturn true;\n\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t return false;\n\t }\n }", "public String getSublineTypeCd() {\n\t\treturn sublineTypeCd;\n\t}", "private TypeSubTypeCharge(String subTypeCharge){\r\n this.subTypeCharge = subTypeCharge;\r\n }", "@Override\n\tpublic void checkSubType(final String subType) {\n\t\tHttpUtils.checkToken(subType,\"Subtype '%s' is not a valid token\",subType);\n\t}", "void setObject(int index, Object value, int sqlType)\n throws SQLException;", "public void setSubTreeNodeMap(Map<String, Node> subTreeNodeMap) {\n\t\tthis.subTreeNodeMap = subTreeNodeMap;\n\t}", "@java.lang.Override\n public java.lang.String getSubType() {\n java.lang.Object ref = subType_;\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 subType_ = s;\n return s;\n }\n }", "void setObjectType(String objectType);", "public java.lang.String getSubType() {\n java.lang.Object ref = subType_;\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 subType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setValorSubsc(BigDecimal valorSubsc) {\n\t\tthis.valorSubsc = valorSubsc;\n\t}", "public int getSubtype() {\r\n return Subtype;\r\n }", "public String getSubTypeDesc() {\n\t\treturn subTypeDesc;\n\t}", "public final void setSub(final Subscriber sub)\r\n {\r\n this.sub_ = sub;\r\n }", "public com.autodesk.ws.avro.Call.Builder setSuboperation(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.suboperation = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public void setSubTotalAmount(MMDecimal subTotalAmount) {\r\n this.subTotalAmount = subTotalAmount;\r\n }", "public void setSubTreeNodeInPOPMap(Map<String, Node> subTreeNodeInPOPMap) {\n\t\tthis.subTreeNodeInPOPMap = subTreeNodeInPOPMap;\n\t}", "public void setSupEntType(String supEntType) {\n this.supEntType = supEntType == null ? null : supEntType.trim();\n }", "public final String getSubType() {\n return this.subtype;\n }", "public T caseSubstation(Substation object) {\n\t\treturn null;\n\t}", "public void setBusinessDivisionSubdivisionID(java.lang.Object businessDivisionSubdivisionID) {\n this.businessDivisionSubdivisionID = businessDivisionSubdivisionID;\n }", "public void setBillSubType (java.lang.String billSubType) {\n\t\tthis.billSubType = billSubType;\n\t}", "public T caseSubComponent(SubComponent object)\n {\n return null;\n }", "public void setSubFundGroupCode(String subFundGroupCode) {\n this.subFundGroupCode = subFundGroupCode;\n }", "public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }", "public void setTypeid(Long typeid) {\n this.typeid = typeid;\n }" ]
[ "0.6196725", "0.60790354", "0.6031086", "0.59919906", "0.58223814", "0.58145726", "0.55336285", "0.546612", "0.5459808", "0.53974485", "0.53157103", "0.5288724", "0.5259374", "0.5228709", "0.5226863", "0.52228886", "0.5190978", "0.5185143", "0.5057345", "0.5024118", "0.50072026", "0.49879083", "0.49571824", "0.49517545", "0.49489236", "0.49424422", "0.4931003", "0.49195355", "0.48843732", "0.4872589", "0.48678872", "0.4866171", "0.4853614", "0.4848237", "0.48471346", "0.48242956", "0.48059183", "0.48026267", "0.47694537", "0.4761566", "0.47612828", "0.47585955", "0.47551626", "0.47400516", "0.4708621", "0.46990922", "0.4698281", "0.46726382", "0.46677", "0.46545157", "0.46479937", "0.46436545", "0.46410635", "0.4640329", "0.4638572", "0.46374747", "0.4601953", "0.46010646", "0.45978105", "0.45963544", "0.45817652", "0.45729765", "0.45706645", "0.45703462", "0.4568728", "0.4554986", "0.4528705", "0.45258301", "0.45227507", "0.45221585", "0.45093852", "0.4505937", "0.44930872", "0.44744667", "0.44732845", "0.44615266", "0.44585404", "0.4457729", "0.4450703", "0.44494173", "0.4444906", "0.44435352", "0.44429854", "0.44401672", "0.44287166", "0.4426859", "0.44240123", "0.44200426", "0.4412918", "0.4411721", "0.44062304", "0.44055596", "0.44000104", "0.4396243", "0.4395869", "0.43912947", "0.43904576", "0.43885985", "0.4386021", "0.4375307" ]
0.68573916
0
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.STATE_TRAC
public Long getStateTrac() { return stateTrac; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTrace() {\n return trace;\n }", "public TransactionType getLogCode () {\n return logCode;\n }", "public String getTraceId() {\n return traceId;\n }", "public int getTraceID(){\r\n\t\treturn this.traceID;\r\n\t}", "@Override\n public String getTrace() {\n return trace;\n }", "public void setStateTrac(Long stateTrac) {\n this.stateTrac = stateTrac;\n }", "public long getTraceTag() {\n return traceTag_;\n }", "public abstract long getTrace();", "public long getTraceTag() {\n return traceTag_;\n }", "public JdbcOdbcTracer getTracer(){\n if (tracer == null) {\n tracer = new JdbcOdbcTracer();\n }\n return tracer; \n }", "protected String getCurrentStatusColumn() {\n\t\treturn \"CurrentPhase\";\n\t}", "public String getStatusOfTrace(String traceId) {\n //First, check if the trace exist in the trace_status index\n QueryBuilder qb = QueryBuilders.termQuery(\"traceId\", traceId);\n SearchResponse response = client.prepareSearch(Const.TRACE_STATUS_INDEX)\n .setTypes(Const.TRACE_STATUS_TYPE)\n .setQuery(qb)\n .get();\n\n SearchHit[] hits = response.getHits().getHits();\n Map<String, Object> map;\n\n if (hits.length > 0) {\n map = hits[0].getSourceAsMap();\n if (map.get(\"status\") != null)\n return map.get(\"status\").toString();\n }\n\n //If not exists, then check the log to determine the status\n qb = QueryBuilders.termQuery(\"TraceId\", traceId);\n\n SearchResponse scrollResp = client.prepareSearch(Const.LOGSTASH_LOG_INDEX).setTypes(Const.LOGSTASH_LOG_TYPE)\n .setScroll(new TimeValue(60000))\n .setQuery(qb)\n .setSize(100).get(); //max of 100 hits will be returned for each scroll\n\n while (scrollResp.getHits().getHits().length != 0) { // Zero hits mark the end of the scroll and the while loop\n hits = scrollResp.getHits().getHits();\n for (SearchHit hit : hits) {\n //Handle the hit\n map = hit.getSourceAsMap();\n if (map.get(\"log\") != null) {\n String log = map.get(\"log\").toString();\n if (log.contains(\"ExceptionMessage\"))\n return \"false\";\n }\n }\n scrollResp = client.prepareSearchScroll(scrollResp.getScrollId()).setScroll(new TimeValue(60000)).execute().actionGet();\n }\n return \"true\";\n }", "public String getTransLogId() {\n return transLogId;\n }", "public String getLogLvlCd() {\n if (null == logLvlCd) {\n logLvlCd = \"ERROR\" ;\n } \n return logLvlCd;\n }", "public java.lang.String getStateCode() {\n\t\treturn _dmHistoryMaritime.getStateCode();\n\t}", "public long getTraceId() {\n\t\treturn this.traceInformation.getTraceId();\n\t}", "String getCurrentTrace(Channel channel);", "public Map<String, String> getTraceContext() {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl().debug(\"No tracing context; unable to get Trace ID\");\n return null;\n }\n return this.tracing.getLogCorrelationTraceAndSpanIDsMap();\n }", "public String getTransactionState();", "java.lang.String getSqlState();", "public String getFlowLogStatus() {\n return this.flowLogStatus;\n }", "public String getTrace() throws RemoteException;", "String getTransactionStatus();", "public static LogType TRACE()\n {\n if (g_oTrace == null)\n {\n try\n {\n g_oTrace = new LogType(\"TRACE\", 40);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oTrace;\n }", "long getTraceTag();", "@Override\n public String getState() {\n\n if(this.state == null){\n\n this.state = TestDatabase.getInstance().getClientField(token, id, \"state\");\n }\n\n return state;\n }", "public Integer getSTS()\n {\n return this.STS;\n }", "public String getState()\r\n\t{\r\n\t\treturn this.etat;\r\n\t}", "public double trace(){\r\n \tdouble trac = 0.0D;\r\n \tfor(int i=0; i<Math.min(this.ncol,this.ncol); i++){\r\n \ttrac += this.matrix[i][i];\r\n \t}\r\n \treturn trac;\r\n \t}", "public ArrayList<SlidingPuzzleState> getTrace(){\n\t\tArrayList<SlidingPuzzleState> trace = new ArrayList<SlidingPuzzleState>();\n\t\tSlidingPuzzleState tmp = this;\n\t\twhile (tmp!=null){\n\t\t\ttrace.add(0,tmp);\n\t\t\ttmp = tmp._parent;\n\t\t}\n\t\treturn trace;\n\t}", "public String getSiretState() {\r\n\t\treturn siretState;\r\n\t}", "public java.lang.String getSqlState() {\n java.lang.Object ref = sqlState_;\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 sqlState_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public synchronized String getLatestState(Transaction t) {\n String state = Event.GLOBAL_ABORT;\n \n System.out.print(\"Logger::getLatestState T: \" + t);\n\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n while (true) {\n String line = br.readLine();\n if(line==null) break;\n String[] items = line.split(\" \");\n String curState = items[0];\n Transaction curT = Transaction.fromJSON(items[1]); \n \n if (curT.getId() != t.getId())\n continue;\n switch (curState) {\n case Event.GLOBAL_ABORT:\n state = Event.GLOBAL_ABORT;\n break;\n case Event.GLOBAL_COMMIT:\n state = Event.GLOBAL_COMMIT;\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n System.out.println(\" State: \" + state);\n \n return state;\n }", "public java.lang.String getSqlState() {\n java.lang.Object ref = sqlState_;\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 sqlState_ = s;\n return s;\n }\n }", "public String getStateCode() {\n return (String)getAttributeInternal(STATECODE);\n }", "Object getTrace();", "public String getStatusLine() {\r\n\t\t\r\n\t\treturn statusLine;\r\n\t\r\n\t}", "public String getSOrderStatus() {\n return sOrderStatus;\n }", "public state getStatus(){\n return this.st;\n }", "public String getTrainfo() {\n return trainfo;\n }", "public String getBranchStatus() {\r\n return (String) getAttributeInternal(BRANCHSTATUS);\r\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public String getLBR_ICMS_TaxStatusTN();", "public String getState() {\n\t\treturn state.toString();\n\t}", "public StrColumn getStatusCode() {\n return delegate.getColumn(\"status_code\", DelegatingStrColumn::new);\n }", "@ApiModelProperty(required = true, value = \"A unique value should be used for each API method. However, when passing the (AFTR) method, this value must match the systemsTraceAuditNumber previously passed with the AFT method for the current transaction.\")\n public Integer getSystemsTraceAuditNumber() {\n return systemsTraceAuditNumber;\n }", "public StrColumn getStatusCodeSf() {\n return delegate.getColumn(\"status_code_sf\", DelegatingStrColumn::new);\n }", "public String getTraceInformation() {\n\t\treturn (traceInformation);\n\t}", "@java.lang.Override\n public java.util.List<java.lang.Integer>\n getTransactionStateValueList() {\n return transactionState_;\n }", "public String getClLog() {\r\n return clLog;\r\n }", "public org.apache.axis2.databinding.types.soapencoding.String getDirectOrderStateQueryReturn(){\n return localDirectOrderStateQueryReturn;\n }", "@java.lang.Override\n public int getTransactionStateValue(int index) {\n return transactionState_.get(index);\n }", "public long getStateTime() {\n return _stateTime;\n }", "@Override\n\tpublic String toString(){\n\t\treturn \"com.jcdeck.adversary.State Turn: \"+this.getTurn()+\" Depth: \"+this.depth;\n\t}", "public java.lang.String getOrderStatus(){\n return localOrderStatus;\n }", "public String getTimeStampedLogPath() {\n\t\treturn m_timeStampedLogPath;\n\t}", "public String getTransstatus() {\n\t\treturn transstatus;\n\t}", "@Transient\n\tpublic String getParentTransactionId()\t{\n\t\tif (mParentTransactionIdLong > 0) \n\t\t\treturn Long.toString(mParentTransactionIdLong);\n\t\telse\n\t\t\treturn null;\n\t}", "public String getStateCd() {\n\t\treturn stateCd;\n\t}", "public StrColumn getStatusCodeCs() {\n return delegate.getColumn(\"status_code_cs\", DelegatingStrColumn::new);\n }", "public String getState()\r\n\t{\r\n\t\treturn state.getModelObjectAsString();\r\n\t}", "public static int getTraceLevel() {\n return outLevel;\n }", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "@NotNull\n GenerationTrace getTrace();", "@Insert({\n \"insert into tb_express_trace (order_id, num, \",\n \"com, status, message, \",\n \"ischeck, traceJson, \",\n \"create_time, \",\n \"last_udpate_time)\",\n \"values (#{orderId,jdbcType=VARCHAR}, #{num,jdbcType=VARCHAR}, \",\n \"#{com,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{message,jdbcType=VARCHAR}, \",\n \"#{ischeck,jdbcType=INTEGER}, #{tracejson,jdbcType=VARCHAR}, \",\n \"#{createTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler}, \",\n \"#{lastUdpateTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler})\"\n })\n int insert(TbExpressTrace record);", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.State;\n }", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getEstado() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getEstado() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getEstado() - end\");\n\t\t}\n\t\treturn estado;\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "public String getState() { return state; }", "public String getLBR_ICMS_TaxStatusSN();", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "public Integer getLogid() {\n return logid;\n }", "public String getState() {\r\n\t\treturn state;\t\t\r\n\t}", "public java.lang.String getCitycode() {\n\t\treturn _dmHistoryMaritime.getCitycode();\n\t}", "public String getState() {\n return state;\n }", "public List<String> getSolutionTrace() {\n\t\treturn trace;\n\t}" ]
[ "0.5539713", "0.5406396", "0.531323", "0.5273793", "0.5260341", "0.5229393", "0.5072995", "0.50584203", "0.50522244", "0.5041494", "0.5026224", "0.4940364", "0.49302548", "0.49281475", "0.4846149", "0.48406097", "0.48394716", "0.4825953", "0.4796156", "0.47955507", "0.47879237", "0.47857916", "0.47581", "0.4677876", "0.46753013", "0.46673915", "0.46618932", "0.46523917", "0.4605822", "0.46032777", "0.4601707", "0.45986283", "0.45584223", "0.45524132", "0.45451006", "0.45417866", "0.4532047", "0.45204106", "0.45106858", "0.45074937", "0.45038718", "0.44933838", "0.4480114", "0.44702438", "0.44675124", "0.44452846", "0.44312614", "0.4419077", "0.44168538", "0.4413976", "0.4413934", "0.43939266", "0.43866736", "0.43841255", "0.4378648", "0.43756458", "0.43749347", "0.43727085", "0.43724772", "0.43657604", "0.43646112", "0.43611208", "0.43527395", "0.4349387", "0.43486214", "0.43483174", "0.43483174", "0.43483174", "0.43483174", "0.4341667", "0.4341667", "0.4333506", "0.4315546", "0.4315546", "0.43134084", "0.43124", "0.43124", "0.43124", "0.4312158", "0.43094197", "0.43076643", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43073943", "0.43072164", "0.43071344", "0.42979684", "0.42929184", "0.42908242", "0.42886114" ]
0.6332244
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.STATE_TRAC
public void setStateTrac(Long stateTrac) { this.stateTrac = stateTrac; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLogTracer(LogTracer log) {\n\n }", "public Long getStateTrac() {\n return stateTrac;\n }", "public Builder setTraceTag(long value) {\n bitField0_ |= 0x00004000;\n traceTag_ = value;\n onChanged();\n return this;\n }", "public static void setTrace(boolean traceOn) {\r\n\t\ttrace = traceOn;\r\n\t}", "public void setLogCode ( final TransactionType logCode ) {\n this.logCode = logCode;\n }", "public void setTraceId(String traceId) {\n\n this.traceId = traceId;\n\n }", "public void setSTS( Integer STS )\n {\n this.STS = STS;\n }", "public void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);", "public void setOrderStatus(java.lang.String param){\n \n this.localOrderStatus=param;\n \n\n }", "@Override\r\n\tpublic void updateOrderState(HashMap<String,Object> map) throws Exception {\n\t\t\r\n\t\tsqlSession.update(namespaceOrder+\".updateState\",map);\r\n\t\t\r\n\t}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "protected void changeStatus(String state)\n { call_state=state;\n printLog(\"state: \"+call_state,Log.LEVEL_MEDIUM); \n }", "public void setTransition(String value, int subsystem) {\n _avTable.set(ATTR_TRANSITION, value, subsystem);\n }", "@Insert({\n \"insert into tb_express_trace (order_id, num, \",\n \"com, status, message, \",\n \"ischeck, traceJson, \",\n \"create_time, \",\n \"last_udpate_time)\",\n \"values (#{orderId,jdbcType=VARCHAR}, #{num,jdbcType=VARCHAR}, \",\n \"#{com,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{message,jdbcType=VARCHAR}, \",\n \"#{ischeck,jdbcType=INTEGER}, #{tracejson,jdbcType=VARCHAR}, \",\n \"#{createTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler}, \",\n \"#{lastUdpateTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler})\"\n })\n int insert(TbExpressTrace record);", "public int getTraceID(){\r\n\t\treturn this.traceID;\r\n\t}", "public String getTraceId() {\n return traceId;\n }", "public void setEstado(biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido param){\n \n this.localEstado=param;\n \n\n }", "public void setStateCode(java.lang.String stateCode) {\n\t\t_dmHistoryMaritime.setStateCode(stateCode);\n\t}", "public ChainingMethods setTraccia(String traccia) {\n this.traccia = traccia;\n\n return this;\n }", "public void setTimeStampedLogPath(String logPath) {\n\t\tm_timeStampedLogPath = logPath;\n\t}", "public JdbcOdbcTracer getTracer(){\n if (tracer == null) {\n tracer = new JdbcOdbcTracer();\n }\n return tracer; \n }", "public void setSDT(int value) {\n this.sdt = value;\n }", "public String getTrace() {\n return trace;\n }", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "private void log() {\n\t\t\n//\t\tif (trx_loggin_on){\n\t\t\n\t\tif ( transLogModelThreadLocal.get().isTransLoggingOn() ) {\n\t\t\t\n\t\t\tTransLogModel translog = transLogModelThreadLocal.get();\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\ttransactionLogger.info(\"\"); // don't really need a msg here\n\t\t\t\n\t\t\t// TODO MDC maybe conflic with existing MDC using in the project\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\t\n\t\t\ttranslog.getAttributesOnce().clear();\n\t\t}\n\t\t\n\t}", "public static void setTRPath(String path)\n\t{\n\t\t//mgizaTRPath=path;\n\t\ttrMap=new TRMap(path);\n\t}", "private static void setTraceONOFF(String traceONOFF) {\n if (traceONOFF.matches(\"off\")){\n System.out.println(\"Trace is now off\");\n dvm.setTraceONOFF(false);\n }\n else{\n System.out.println(\"Trace is now on\");\n dvm.setTraceONOFF(true);\n }\n }", "public void setTrid(int trid) {\n this.trid = trid;\n }", "public void setState(com.trg.fms.api.TripState value) {\n this.state = value;\n }", "@Override\n\tpublic void setLastState(STATE state) {\n\n\t}", "public final void mTRACE() throws RecognitionException {\r\n try {\r\n int _type = TRACE;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:22:7: ( 'TRACE:' )\r\n // Satmc.g:22:9: 'TRACE:'\r\n {\r\n match(\"TRACE:\"); \r\n\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 \t// do for sure before leaving\r\n }\r\n }", "public void setTrajectoryID(int trajectoryid) {\n this.trajectoryid = trajectoryid;\n }", "public void cambioEstado(String st) {\n\t\tvisorEscenario.cambioEstado(st);\n\t}", "@Override\n public String getTrace() {\n return trace;\n }", "public void setTraceInformation(String trace) {\n\t\ttraceInformation = trace;\n\t}", "public void testSetTnc() {\n System.out.println(\"setTnc\");\n \n LocalFileTransferNamesAndCommandsGet tnc = null;\n LocalFileState instance = new LocalFileState();\n \n instance.setTnc(tnc);\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 com.example.DNSLog.Builder setTC(boolean value) {\n validate(fields()[18], value);\n this.TC = value;\n fieldSetFlags()[18] = true;\n return this;\n }", "public com.example.DNSLog.Builder setTs(long value) {\n validate(fields()[7], value);\n this.ts = value;\n fieldSetFlags()[7] = true;\n return this;\n }", "public void setProcessed (boolean processed)\r\n {\r\n super.setProcessed (processed);\r\n if (get_ID() == 0)\r\n return;\r\n String set = \"SET Processed='\"\r\n + (processed ? \"Y\" : \"N\")\r\n + \"' WHERE C_Hes_ID=\" + getC_Hes_ID();\r\n int noLine = DB.executeUpdate(\"UPDATE C_HesLine \" + set, get_TrxName());\r\n \r\n \r\n log.fine(processed + \" - Lines=\" + noLine);\r\n }", "public void setRoomstlogid(Long newVal) {\n if ((newVal != null && this.roomstlogid != null && (newVal.compareTo(this.roomstlogid) == 0)) || \n (newVal == null && this.roomstlogid == null && roomstlogid_is_initialized)) {\n return; \n } \n this.roomstlogid = newVal; \n roomstlogid_is_modified = true; \n roomstlogid_is_initialized = true; \n }", "public traceProperties() { \n //setProperty(\"WorkingDirectory\",\"null\");\n //setProperty(\"situated\",\"false\"); \n \n }", "public void setLogdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.logdate != null && (newVal.compareTo(this.logdate) == 0)) || \n (newVal == null && this.logdate == null && logdate_is_initialized)) {\n return; \n } \n this.logdate = newVal; \n logdate_is_modified = true; \n logdate_is_initialized = true; \n }", "public void setLBR_ICMS_TaxStatusSN (String LBR_ICMS_TaxStatusSN);", "public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}", "@Override\n public void setState(String s)\n {\n state = s;\n nbChanges++;\n }", "public void setCallLogsDatabasePath(String path);", "protected void setState(int value) {\r\n\t\tdState = value;\r\n\t\tstateChanged();\r\n\t\t\r\n\t\t// System debug\r\n\t\tSystem.out.println(\"State changed: \" + STATUS[dState]);\r\n\t}", "public void setSiretState(String siretState) {\r\n\t\tthis.siretState = siretState;\r\n\t}", "public void setStateCode(String value) {\n setAttributeInternal(STATECODE, value);\n }", "public synchronized void setDebugTraceEnabled(TrcDbgTrace tracer, boolean enabled)\n {\n debugTracer = enabled ? tracer : null;\n }", "public void setState(Long state) {\n this.state = state;\n }", "@Update({\n \"update tb_express_trace\",\n \"set num = #{num,jdbcType=VARCHAR},\",\n \"com = #{com,jdbcType=VARCHAR},\",\n \"status = #{status,jdbcType=VARCHAR},\",\n \"message = #{message,jdbcType=VARCHAR},\",\n \"ischeck = #{ischeck,jdbcType=INTEGER},\",\n \"traceJson = #{tracejson,jdbcType=VARCHAR},\",\n \"create_time = #{createTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler},\",\n \"last_udpate_time = #{lastUdpateTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler}\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(TbExpressTrace record);", "@Subscribe\n public void onActionEventStarted(RemoteExecutionActionEvent.Started event) {\n writeRemoteExecutionStateTraceEvents(event);\n }", "public void traceStatus() {\n logger.trace(\"jvmThread: {}, jvmMethod: {}\", jvmThread, jvmMethod);\n logger.trace(\"localVariables: {}\", localVariables);\n logger.trace(\"operandStacks: {}\", operandStacks);\n }", "public Builder setSqlState(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sqlState_ = value;\n onChanged();\n return this;\n }", "public void setStatesReference(TableProcessor states) {\n opensimMocoJNI.MocoTrack_setStatesReference(swigCPtr, this, TableProcessor.getCPtr(states), states);\n }", "public void setTracing(int traceFlag) {\n if (traceFlag == 0)\n Trace.setMask(Trace.MASK_NONE);\n else\n Trace.setMask(Trace.MASK_ALL);\n }", "public void SetState(int s) {\n this.state=LS[s];\n }", "public TransactionType getLogCode () {\n return logCode;\n }", "public void setClLog(String clLog) {\r\n this.clLog = clLog;\r\n }", "public void setC_OrderLine_ID (int C_OrderLine_ID);", "public void trace(int node) {\n\t\tsendMessage(\"/n_trace\", new Object[] { node });\n\t}", "public static LogType TRACE()\n {\n if (g_oTrace == null)\n {\n try\n {\n g_oTrace = new LogType(\"TRACE\", 40);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oTrace;\n }", "@Override\n\tpublic void setStackTrace(StackTraceElement[] stackTrace) {\n\t\tsuper.setStackTrace(stackTrace);\n\t}", "private void setActiveValue(int projectId, String value) {\n\t\tConnection conn = getConnection();\n\t\tPreparedStatement stmtUpdate = null;\n\t\ttry {\n\t\t\tStringBuilder sbUpdate = new StringBuilder(UPDATE)\n\t\t\t\t.append(projectTableName)\n\t\t\t\t.append(SET)\n\t\t\t\t.append(projectActiveColumnName).append(EQUAL).append(value) //$NON-NLS-1$\n\t\t\t\t.append(WHERE)\n\t\t\t\t.append(projectIdColumnName).append(EQUAL).append(projectId); //$NON-NLS-1$\n\n\t\t\tstmtUpdate = conn.prepareStatement(sbUpdate.toString());\n\t\t\tstmtUpdate.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException ex) {\n\t\t\tthrow new DAOException(ex);\n\t\t\t\n\t\t} finally {\n\t\t\tDbUtils.closeQuietly(conn);\n\t\t\tDbUtils.closeQuietly(stmtUpdate);\n\t\t}\n\t\t\n\t}", "public static final void ccSetDoseLog(boolean pxVal){\n cmLogOn=pxVal;\n }", "@ApiModelProperty(required = true, value = \"A unique value should be used for each API method. However, when passing the (AFTR) method, this value must match the systemsTraceAuditNumber previously passed with the AFT method for the current transaction.\")\n public Integer getSystemsTraceAuditNumber() {\n return systemsTraceAuditNumber;\n }", "@Override protected void setState(State s) {\n session.setState(s);\n super.setState(s);\n }", "public void setDateTrx (Timestamp DateTrx);", "public void setDateTrx (Timestamp DateTrx);", "public void setStateA(long stateA) {\n this.stateA = stateA;\n }", "public void setLoggerLevel(TraceLevel level) {\n\t\t//Topology.STREAMS_LOGGER.setLevel(level);\t\t\n\t\t//Topology.TOPOLOGY_LOGGER.setLevel(level); \n\t\tgetConfig().put(ContextProperties.TRACING_LEVEL, java.util.logging.Level.FINE);\t\t\n\t\tSystem.out.println(\"Streams topology logger level: \" + Topology.TOPOLOGY_LOGGER.getLevel());\n\t\t\n\t}", "@JsonSetter(\"trunkId\")\r\n public void setTrunkId (int value) { \r\n this.trunkId = value;\r\n }", "public void setAuditLogId(long value) {\n this.auditLogId = value;\n }", "public void setLogService(LogService logService) {\r\n this.logService = logService;\r\n }", "public static void setLogNode(LogNode node) {\n mLogNode = node;\n }", "public SystemLog (\r\n\t\t Long in_logId\r\n ) {\r\n\t\tthis.setLogId(in_logId);\r\n }", "private void setState(String weatherReport) {\n\t\tweatherReport.toLowerCase();\n\t\tstate = weatherReport.split(\":|,\");\n\n\t\t// for debugging\n\t\tSystem.out.println(state[2]);\n\t}", "public void setLogdate(long newVal) {\n setLogdate(new java.sql.Timestamp(newVal));\n }", "public void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);", "public void setStCodeStC(String stCodeStC) {\n this.stCodeStC = stCodeStC;\n }", "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }", "public void setCurrentQtr(Number value) {\r\n setAttributeInternal(CURRENTQTR, value);\r\n }", "private void dbgTrace(String trace) {\n GenUtils.logCat(tag, trace);\n GenUtils.logMessageToFile(\"SessionV2.log\", trace);\n }", "TraceLevel(int i) {\n this.level = i;\n }", "@Override\n public void setStackTrace(StackTraceElement[] stackTrace) {\n super.setStackTrace(stackTrace);\n }", "private void setCurrentBreadcrumb(int position) {\n if (position < 0 || position >= mBreadcrumbBarLayout.getChildCount()) {\n position = mBreadcrumbBarLayout.getChildCount() - 1;\n }\n boolean showChevron = false;\n for (int i = mBreadcrumbBarLayout.getChildCount() - 1; i >= 0; i--) {\n LinearLayout crumb = (LinearLayout) mBreadcrumbBarLayout.getChildAt(i);\n TextView dirTextView = crumb.findViewById(R.id.crumbText);\n ImageView chevronImageView = crumb.findViewById(R.id.crumbChevron);\n if (Utils.isRtlLayout(getContext())) {\n chevronImageView.setScaleX(-1f);\n }\n int crumbColor;\n if (i == position) {\n crumbColor = mCrumbColorActive;\n } else {\n crumbColor = mCrumbColorInactive;\n }\n dirTextView.setTextColor(crumbColor);\n if (showChevron) {\n chevronImageView.setColorFilter(crumbColor, PorterDuff.Mode.SRC_IN);\n chevronImageView.setVisibility(View.VISIBLE);\n } else {\n chevronImageView.setVisibility(View.GONE);\n }\n showChevron = true;\n }\n final View child = mBreadcrumbBarLayout.getChildAt(position);\n if (child != null) {\n mBreadcrumbBarScrollView.requestChildFocus(mBreadcrumbBarLayout, child);\n }\n }", "public void setTestDBStatusResult(java.lang.String param) {\r\n localTestDBStatusResultTracker = param != null;\r\n\r\n this.localTestDBStatusResult = param;\r\n }", "public void setFlowLogStatus(String flowLogStatus) {\n this.flowLogStatus = flowLogStatus;\n }", "public static void setTraceLevel(int level) {\n outLevel = level;\n }", "public void setId_trimestre(int id_trimestre) {this.id_trimestre = id_trimestre;}", "public void set_state(String state) throws Exception{\n\t\tthis.state = state;\n\t}", "public static void log(String line) {\r\n\t\tcitiesLogger.info(line);\r\n\t}", "private void sessionStartTrace() {\n \n try {\n if (ConnectWindow.isSysdba()) {\n // prompt for the sid to trace\n String msg =\n \"A 10046 trace will enabled on the specified session (not including wait events).\\n\\n\" +\n \"The chosen sid must be from THIS instance.\\n\\nEnter the SID:\";\n String tmp = JOptionPane.showInputDialog(this, msg, \"Session Trace\", JOptionPane.QUESTION_MESSAGE);\n int sid = Integer.valueOf(tmp).intValue();\n\n int instanceNumber = getThisInstanceNumber();\n\n // check the sid exists\n int serial = SessionPanel.getSid(instanceNumber, sid);\n try {\n if (serial != 0) {\n // start trace\n msg = \"Starting a 10046 trace on Sid \" + sid + \", serial# \" + serial;\n JOptionPane.showMessageDialog(this, msg, \"Session Trace\", JOptionPane.INFORMATION_MESSAGE);\n\n try {\n ConnectWindow.getDatabase().startSessionTrace(sid, serial, dbVersion);\n } catch (Exception e) {\n displayError(e, this);\n }\n } else {\n throw new NoSuchSessionExistsException(\"Sid: \" + sid);\n }\n } catch (Exception e) {\n displayError(e, this);\n }\n } else {\n throw new InsufficientPrivilegesException(\"SYSDBA privilege required\");\n }\n } catch (Exception ee) {\n ConsoleWindow.displayError(ee, this);\n }\n }", "public long getTraceTag() {\n return traceTag_;\n }", "public void setBranchStatus(String value) {\r\n setAttributeInternal(BRANCHSTATUS, value);\r\n }", "public void setLog(Log log) throws SQLException {\n this.log = log;\n\n commentField.setText(log.getComment());\n timeField.setText(String.valueOf(log.getTime()));\n }", "public Systemlog (java.lang.Integer rowid) {\n\t\tsuper(rowid);\n\t}", "public void setTransLogId(String transLogId) {\n this.transLogId = transLogId;\n }", "@Field(22) \n\tpublic CKSCOSStatusField VolumeTraded(int VolumeTraded) {\n\t\tthis.io.setIntField(this, 22, VolumeTraded);\n\t\treturn this;\n\t}" ]
[ "0.5051461", "0.5007365", "0.4803734", "0.4685249", "0.46164685", "0.45661944", "0.4507736", "0.43945622", "0.4394024", "0.439042", "0.43749", "0.43683705", "0.4357012", "0.43473554", "0.4338845", "0.43191335", "0.43162084", "0.4312851", "0.42824528", "0.4273428", "0.42649418", "0.4238794", "0.42281106", "0.42124543", "0.41973376", "0.41950852", "0.41914266", "0.41859442", "0.41853666", "0.4175525", "0.41697943", "0.41627297", "0.41620168", "0.41484952", "0.4127832", "0.41269454", "0.41263282", "0.412453", "0.4099072", "0.40952662", "0.40951353", "0.40936494", "0.4084615", "0.4081174", "0.4068198", "0.40650073", "0.40636867", "0.40629444", "0.4060314", "0.4055131", "0.40489885", "0.40403253", "0.40392688", "0.4036847", "0.40363017", "0.40338227", "0.40247354", "0.4024207", "0.40205166", "0.40109727", "0.40101397", "0.4000553", "0.39951304", "0.39884174", "0.39834976", "0.39830825", "0.39805025", "0.39764026", "0.39727154", "0.39727154", "0.39672703", "0.39669484", "0.39662257", "0.3964547", "0.39606416", "0.3946685", "0.3944069", "0.39393005", "0.39385104", "0.39373964", "0.3936415", "0.39298388", "0.39176297", "0.39134616", "0.39108226", "0.39098406", "0.3906563", "0.3906156", "0.390328", "0.39016333", "0.38958916", "0.3892122", "0.38918653", "0.3883463", "0.38831347", "0.388073", "0.38793585", "0.38792664", "0.3872785", "0.3869943" ]
0.6414962
0
If the logout request comes, then no need to go through and doing complete the flow.
@Override public AuthenticatorFlowStatus process(HttpServletRequest request, HttpServletResponse response, AuthenticationContext context) throws AuthenticationFailedException { if (context.isLogoutRequest()) { return AuthenticatorFlowStatus.SUCCESS_COMPLETED; } if (StringUtils.isNotEmpty(request.getParameter("tcParam"))) { try { processAuthenticationResponse(request, response, context); } catch (Exception e) { context.setRetrying(true); context.setCurrentAuthenticator(getName()); return initiateAuthRequest(response, context, e.getMessage()); } return AuthenticatorFlowStatus.SUCCESS_COMPLETED; } else { return initiateAuthRequest(response, context, null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void logoutDone();", "@Override\n public void performLogout(){\n }", "void logoutRequest() throws Exception;", "@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}", "private void logout() {\n LogoutTask mAuthTask = new LogoutTask();\n mAuthTask.execute((Void) null);\n }", "private void doLogout() {\n mRtmClient.logout(null);\n MessageUtil.cleanMessageListBeanList();\n }", "private void logout()\r\n {\r\n LogoutRequest request = new LogoutRequest();\r\n request.setUsername(username);\r\n this.sendRequest(request);\r\n }", "public void logout() {\n \n }", "@Override\n\tpublic void logout() {\n\t}", "@PreAuthorize(\"isAuthenticated()\")\n @GetMapping(\"/logout\")\n @ResponseStatus(HttpStatus.OK)\n public ResponseEntity<Boolean> logout(HttpServletRequest request) {\n auditTrailUtil.printLogDetailStartTime(Constants.ExecutionType.START_EXECUTION, \"User Management\", \"logout\");\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null) {\n //TODO AUDIT TRAIL LOGOUT\n userService.createLogoutAuditTrail();\n String tokenValue = authHeader.replace(\"Bearer\", \"\").trim();\n OAuth2AccessToken accessToken = tokenStore.readAccessToken(tokenValue);\n tokenStore.removeAccessToken(accessToken);\n }\n auditTrailUtil.printLogDetailStartTime(Constants.ExecutionType.END_EXECUTION, \"User Management\", \"logout\");\n return ResponseEntity.ok().body(Boolean.TRUE);\n }", "void logoutSuccessful();", "private void logout(){\n showLoadingDialog();\n TwitterController.getInstance().logout(logoutCallback);\n }", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "public void logout() {\n getRequest().getSession().invalidate();\n }", "@GET\n @Path(\"logout\")\n public Response processLogout() throws WdkModelException {\n User oldUser = getSessionUser();\n getSession().invalidate();\n \n // get a new session and add new guest user to it\n SessionProxy session = getSession();\n User newUser = getWdkModel().getUserFactory().createUnregistedUser(UnregisteredUserType.GUEST);\n session.setAttribute(Utilities.WDK_USER_KEY, newUser);\n\n // throw new user event\n Events.triggerAndWait(new NewUserEvent(newUser, oldUser, session), \n new WdkRuntimeException(\"Unable to complete WDK user assignement.\"));\n\n // create and append logout cookies to response\n Set<CookieBuilder> logoutCookies = new HashSet<>();\n logoutCookies.add(LoginCookieFactory.createLogoutCookie());\n for (CookieBuilder extraCookie : getWdkModel().getUiConfig().getExtraLogoutCookies()) {\n extraCookie.setValue(\"\");\n extraCookie.setMaxAge(-1);\n logoutCookies.add(extraCookie);\n }\n ResponseBuilder builder = createRedirectResponse(getContextUri());\n for (CookieBuilder logoutCookie : logoutCookies) {\n builder.cookie(logoutCookie.toJaxRsCookie());\n }\n return builder.build();\n }", "private void logout() {\n getSharedPreferences(HELP_CATEGORIES, MODE_PRIVATE).edit().clear().apply();\n getSharedPreferences(LOGIN, MODE_PRIVATE).edit().putBoolean(IS_LOGGED_IN, false).apply();\n\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder()\n .url(URL + \"/nuh/logout\")\n .build();\n AsyncTask.execute(() -> {\n try {\n client.newCall(request).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }", "@Override\r\n\tpublic boolean checkLogout() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean checkLogout() {\n\t\treturn false;\r\n\t}", "public void doLogout() {\r\n\t\tdestroy();\r\n\r\n\t\t/* ++++++ Kills the Http session ++++++ */\r\n\t\t// HttpSession s = (HttpSession)\r\n\t\t// Sessions.getCurrent().getNativeSession();\r\n\t\t// s.invalidate();\r\n\t\t/* ++++++ Kills the zk session +++++ */\r\n\t\t// Sessions.getCurrent().invalidate();\r\n\t\tExecutions.sendRedirect(\"/j_spring_logout\");\r\n\r\n\t}", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }", "@Override\n public void onCanceled() {\n\n logOutNow();\n\n }", "@Override\n\tpublic String logout_request() {\n\t\treturn null;\n\t}", "@Test\n public void testLogoutResponse() {\n LogoutDelegate delegate = new LogoutDelegate() {\n @Override\n public void logoutPassed() {\n\n }\n\n @Override\n public void logoutFailed(String message) {\n\n fail(message);\n }\n };\n\n\n // Call the method\n testConnector.logout(delegate);\n\n\n // Make sure the data was unset\n assertNull(DataStore.sharedInstance().getCurrentUser());\n assertNull(DataStore.sharedInstance().getToken());\n assertEquals(0, DataStore.sharedInstance().getProducts().size());\n assertEquals(0, DataStore.sharedInstance().getRewards().size());\n }", "public void attemptLogout() {\n spEditor.clear();\n spEditor.putBoolean(LOGGEDIN_KEY, false);\n spEditor.commit();\n }", "private void logoutHandler() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context, android.R.style.Theme_DeviceDefault_Dialog);\n builder.setTitle(\"Logout?\");\n builder.setMessage(\"Are you sure you want to logout?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Util.setLoggedInFlag(false);\n\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n\n Intent intent = new Intent(HomeActivity.this, SplashActivity.class);\n startActivity(intent);\n HomeActivity.this.finish();\n }\n });\n\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n builder.show();\n }", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n /*\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n \n \n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n */\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n\n this.setVisible(false);\n }\n\n }", "private void logout() {\n\t\tgetUI().get().navigate(\"login\");\r\n\t\tgetUI().get().getSession().close();\r\n\t}", "public void doLogout() {\n loggedIn = false;\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate(); \r\n String pag= \"/login.xhtml\";\r\n redireccionar(pag);\r\n }", "private void logoutAction(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n\t\tthis.session.removeAttribute(\"MANAGEINSESSION\");\r\n\t\tresp.sendRedirect(path+\"/jsps/index.jsp\");\r\n\t}", "@Override\n\t\t\t\tpublic void onComplete(final String response, Object state)\n\t\t\t\t{\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onComplete(): \" + response);\n\t\t\t\t\t\n\t\t\t\t\t// clear access token\n\t\t\t\t\tPreferences preferences = new Preferences(getActivity());\n\t\t\t\t\tpreferences.setFacebookAccessToken(Preferences.NULL_STRING);\n\t\t\t\t\tpreferences.setFacebookAccessExpiration(Preferences.NULL_LONG);\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), \"Successfully logged out.\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}", "private void logoutHandler(RoutingContext context) {\n context.clearUser();\n context.session().destroy();\n context.response().setStatusCode(204).end();\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onLogoutSuccessed() {\n\t\t\t\t\t\t\t\t\tTypeSDKLogger.d(\"onLogoutSuccessed\");\r\n\t\t\t\t\t\t\t\t\tTypeSDKNotify_haima notify = new TypeSDKNotify_haima();\r\n\t\t\t\t\t\t\t\t\tnotify.Logout();\r\n\t\t\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onLogoutSuccessed() {\n\t\t\t\t\t\tTypeSDKLogger.d(\"onLogoutSuccessed\");\r\n\t\t\t\t\t\tTypeSDKNotify_haima notify = new TypeSDKNotify_haima();\r\n\t\t\t\t\t\tnotify.Logout();\r\n\t\t\t\t\t}", "private void logout() {\n Utils.showConfirmationDialogCallBack(MainActivity.this, getString(R.string.logout_sure), this);\n }", "@Override\n\tpublic void logout() {\n\t\tsessionService.setCurrentUserId(null);\n\t}", "private void logout() {\n ProgressDialog logoutProgressDialog = new ProgressDialog(ContributionsGalleryActivity.this);\n logoutProgressDialog.setMessage(getResources().getString(R.string.logging_out));\n logoutProgressDialog.setCancelable(false);\n logoutProgressDialog.show();\n ParseUser.logOutInBackground(e -> {\n logoutProgressDialog.dismiss();\n if (e != null) { // Logout has failed\n Snackbar.make(contributionsGalleryRelativeLayout, getResources().getString(R.string.logout_failed), Snackbar.LENGTH_LONG).show();\n }\n else { // Logout has succeeded\n goLoginSignupActivity();\n finish();\n }\n });\n }", "public void onOK() {\n\t\t\t\t\t\t\tlogout();\n\t\t\t\t\t\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n\n logOutNow();\n\n }", "@Override\r\n\tpublic void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {\n\t\ttry {\r\n\t\t\trequest.getSession().invalidate();\r\n\t\t\tPrintWriter out = response.getWriter();\r\n\t\t\tresponse.setContentType(\"application/json\");\r\n\t\t\tresponse.setStatus(HttpServletResponse.SC_OK);\r\n\t\t\tlogger.info(\"logging out \"+ authentication);\r\n\t\t\tif (authentication == null) {\r\n\t\t\t\tout.print(\"Not an Authenticated request to logout\");\r\n\t\t\t\t\r\n\t\t\t}else\t{\r\n\t\t\t\tuserCache.removeUserFromCache(authentication.getName());\r\n\t\t\t\tout.print(\"Successfully Logged out User \" + authentication.getName());\r\n\t\t\t}\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(\"Error while logout\", e);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t}", "void logout(HttpServletRequest request);", "@CrossOrigin(origins = AppConstants.CORS)\n\t@RequestMapping(value = {UrlConstants.API_LOGOUT+\"org\"}, method = RequestMethod.POST)\n\tpublic void logOut() {\n\t\t try {\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"efregt\");\n\t\t}\n\t}", "@Override\n\tpublic void logout(AuthentifizierungsErgebnisDummy aufrufkontext) {\n\t}", "private void doLogout() {\r\n\t\tdoctor.setOnline(0);\r\n\t\t// Set doctor as logged out\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Release objects and notify observers\r\n\t\tloggedIn = false;\r\n\t\tnotifyObservers();\r\n\t\tdoctors = null;\r\n\t\tdoctor = null;\r\n\t}", "boolean checkLogout(User user, HttpServletRequest request, HttpSession session);", "public boolean authenticatorLogout(String authURL){\r\n\t\t\r\n\t\tboolean authOK = false;\r\n\t\t\r\n\t\ttry { \r\n\t HttpURLConnection httpConnection = null;\r\n\t if(this.proxyHost.equalsIgnoreCase(\"\") || this.proxyPort.equalsIgnoreCase(\"\")){\r\n\t \t URL restServiceURL = new URL(authURL);\r\n\t \t httpConnection = (HttpURLConnection) restServiceURL.openConnection();\r\n\t } else{\r\n\t \t httpConnection = proxySetup(authURL);\r\n\t }\r\n\t httpConnection.setRequestMethod(\"GET\"); \r\n\t\r\n\t if (httpConnection.getResponseCode() != 200) {\r\n\t \t logger.severe(\"Error:\tLogout failure: \" + httpConnection.getResponseCode());\r\n\t throw new RuntimeException(\"Error:\tLogout failure: \" + httpConnection.getResponseCode());\r\n\t }\r\n\t else{\r\n\t \t \tauthOK = true;\r\n\t \t \tString header = httpConnection.getHeaderFields().toString();\r\n\t \t \tthis.setjSessionId(header); \r\n\t \r\n\t \t \tString serverCookies = httpConnection.getHeaderField(\"Set-Cookie\");\r\n\t \t \tthis.setAuthHash(serverCookies);\r\n\t }\r\n\r\n\t logger.finest(\"Log out successful: \" + httpConnection.getResponseCode() + \" - OK\"); \t \t \t \t \r\n\t httpConnection.disconnect();\r\n\t\t} \r\n\t\tcatch (MalformedURLException e1) {\r\n\t\t\tlogger.severe(\"MalformedURLException: \" + e1);\r\n\t e1.printStackTrace();\r\n\t } \r\n\t\tcatch(ConnectException e3){\r\n\t\t\tlogger.severe(\"Not properly logged out: \" + e3);\r\n\t\t}\r\n\t\tcatch(UnknownHostException e){\r\n\t\t\tlogger.severe(\"Not properly logged out: \" + e);\r\n\t\t}\r\n\t\tcatch (IOException e2) {\r\n\t\t\tlogger.severe(\"Not properly logged out: \" + e2);\r\n\t }\t\t\r\n\t\treturn authOK;\r\n\t}", "private void checkToLogout() {\n logout();\n checkToHome();\n drawViewSideMenu();\n }", "public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }", "private void logout() {\n\t\tParseUser.logOut();\n\n\t\t// Go to the login view\n\t\tstartLoginActivity();\n\t}", "void onLogout(boolean loggedIn);", "@Override\n\tpublic void logout()\n\t{\n\t\tthis.user = null;\n\t}", "@Override\n\tpublic String logout() {\n\t\treturn null;\n\t}", "public void endSession(){\n currentUser = null;\n ui.returnCard();\n }", "public boolean logOut(HttpServletRequest request, HttpServletResponse response, String data) {\n request.getSession().removeAttribute(\"user\");\n removeAppCookie(response);\n try {\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/login\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return true;\n }", "public void logout() {\n\n $(logOutNavigator).click();\n driver = commonMethods.waitForElement(driver, logOffBtn);\n $(logOffBtn).click();\n $(loadingProgressIcon).should(disappear);\n }", "public abstract void logout();", "@Override\n public void run() {\n LogoutHelper.logout(context, AppMessage.TOAST_MESSAGE_SESSION_EXPIRED);\n }", "void successLogout();", "public static void logout(Context context) \r\n\t{\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\tcontext.sessionAttribute(\"currentUser\", null);\r\n\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t//context.json(new MyCustomResponseMessage(\"You've successfully logged out\", \"success\"));\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t}", "public Result logOut() {\n customerService().logout();\n return redirectToReturnUrl();\n }", "public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }", "public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}", "private void logout(){\n StringRequest request = new StringRequest(Request.Method.GET, Constant.LOGOUT, response -> {\n try {\n JSONObject object = new JSONObject(response);\n if(object.getBoolean(\"success\")){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n Toast.makeText(getApplicationContext(),\"Log Out Success\",Toast.LENGTH_SHORT).show();\n// startActivity(new Intent(getBaseContext(), AuthActivity.class));\n startActivity(new Intent(DashboardActivity.this, AuthActivity.class));\n }\n }catch (JSONException e){\n e.printStackTrace();\n }\n// dialog.dismiss();\n }, error -> {\n //error if fail to connect\n error.printStackTrace();\n// dialog.dismiss();\n }){\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n String token = sharedPreferences.getString(\"token\",\"\");\n HashMap<String, String> map = new HashMap<>();\n map.put(\"Authorization\",\"Bearer\"+token);\n return map;\n }\n };\n RequestQueue queue = Volley.newRequestQueue(getBaseContext());\n queue.add(request);\n\n }", "public void Logout() {\n \t\t\t\n \t\t}", "public void facebookLogout()\n\t{\n\t\tPreferences preferences = new Preferences(getActivity());\n\t\tString accessToken = preferences.getFacebookAccessToken();\n\t\tlong expiration = preferences.getFacebookAccessExpiration();\n\n\t\tif(accessToken != null) mFacebook.setAccessToken(accessToken);\n\t\tif(expiration != 0) mFacebook.setAccessExpires(expiration);\n\t\t\n\t\tif(mFacebook.isSessionValid())\n\t\t{\n\t\t\t// show progress in action bar\n\t\t\tshowActionBarProgress(true);\n\t\t\t\n\t\t\tmAsyncFacebookRunner.logout(getActivity(), new RequestListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void onComplete(final String response, Object state)\n\t\t\t\t{\n\t\t\t\t\t// TODO: run callbacks in TaskFragment.runTaskCallback()\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onComplete(): \" + response);\n\t\t\t\t\t\n\t\t\t\t\t// clear access token\n\t\t\t\t\tPreferences preferences = new Preferences(getActivity());\n\t\t\t\t\tpreferences.setFacebookAccessToken(Preferences.NULL_STRING);\n\t\t\t\t\tpreferences.setFacebookAccessExpiration(Preferences.NULL_LONG);\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), \"Successfully logged out.\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onFacebookError(final FacebookError e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onFacebookError(): \" + e.getErrorType() + \" / \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onIOException(IOException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onIOException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFileNotFoundException(FileNotFoundException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onFileNotFoundException()\");\n\t\t\t\t\t\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onMalformedURLException(MalformedURLException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onMalformedURLException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\tToast.makeText(getActivity(), \"You are already logged out.\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void onLogout() {\n\t\t\t\tshowToast(\"onLogout---\");\r\n\t\t\t}", "private void logout(HttpServletRequest request, HttpServletResponse response)\n throws SQLException, IOException, ServletException {\n\tHttpSession session = request.getSession(false);\n\t// session.setAttribute(\"user\", null);\n\tsession.removeAttribute(\"email\");\n\t response.sendRedirect(\"index.jsp\");\n\t}", "@Override\r\n\tpublic void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)\r\n\t\t\tthrows IOException, ServletException {\n\t\tHttpSession session = request.getSession();\r\n\t\tif(session!=null){\r\n\t\t\t//HttpSessionBindirListener remove ettigimizi dinleyecek unbound methodu calýscak\r\n\t\t\tsession.removeAttribute(\"user\");\r\n\t\t}\r\n\t\thandle(request, response,authentication);\r\n\t}", "public void run() {\t\t\t\t\t\n\t\t\t \tcheckforLogout(false);\n\t\t\t \n\t\t\t }", "@Override\n\tpublic Boolean logout()\n\t\t\tthrows UnknownException {\n HttpSession sesion = this.getThreadLocalRequest().getSession();\n sesion.removeAttribute(\"beanusuario\");\n sesion.removeAttribute(\"idsession\"); \n sesion.invalidate(); \n return true;\n\t}", "public void logout(Activity activity) {\n Logg.d(TAG,\"Logout procedure started...\");\n print();\n if(loggedByGoogle())logoutGoogle(activity);\n if(loggedByFb())logoutFacebook(activity);\n //It never reaches here as above method itself calls the callbacks to exit app\n }", "@Override\n\tpublic void execute() throws ServletException, IOException {\n\t\ttry{\n\t\t\tif(checkIfLoggedIn(myRequest)){\t\n\t\t\t\tmyRequest.getSession(true).invalidate();\n\t\t\t\tmyRequest.setAttribute(\"message\", \"You have been successfully logged out.\");\n\t\t\t\tforward(\"/WEB-INF/jsp/Success.jsp\");\n\t\t\t}else{\n\t\t\t\tmyRequest.setAttribute(\"message\", \"You are not logged in, cannot log out.\");\n\t\t\t\tforward(\"/WEB-INF/jsp/Failure.jsp\");\n\t\t\t}\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tmyRequest.setAttribute(\"message\", \"You are not logged in, cannot log out.\");\n\t\t\tforward(\"/WEB-INF/jsp/Failure.jsp\");\n\n\t\t}\n\t}", "@Override\n\tpublic boolean logout() throws IOException {\n\t\treturn false;\n\t}", "@Override\n\tpublic void exitSessionUser() {\n\t\tgetThreadLocalRequest().getSession().invalidate();\n\t\t\n\t}", "public void logout() {\n if (mAccessToken != null) {\n mSession.resetAccessToken();\n mAccessToken = null;\n }\n }", "public void logoutClick(View v) {\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\", \"Token token=\" + user.getToken().getAccess_token());\n client.get(LoginActivity.API_ROOT + \"logout\", new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n Toast.makeText(SelectionActivity.this, \"Logout success!\", Toast.LENGTH_LONG).show();\n\n // Return to the login screen (first instance of it)\n Intent toLoginScreen = new Intent(SelectionActivity.this, LoginActivity.class);\n toLoginScreen.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n SelectionActivity.this.finish();\n SelectionActivity.this.startActivity(toLoginScreen);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody,\n Throwable error) {\n Toast.makeText(SelectionActivity.this, \"Logout failure\", Toast.LENGTH_LONG).show();\n }\n });\n }", "@SuppressLint(\"StaticFieldLeak\")\n public void logout(View view) {\n new AsyncTask<Void, Void, Void>() {\n\n @Override\n protected Void doInBackground(Void... voids) {\n AppDataRepo repo = new AppDataRepo(MainActivity.this);\n User user = repo.getSignedUser();\n\n if (user != null) {\n repo.updateLoginStatus(user.getUserID(), false);\n }\n return null;\n }\n\n\n @Override\n protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n finish();\n startActivity(new Intent(MainActivity.this, Login.class));\n\n }\n }.execute();\n }", "private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }", "@PostMapping(\"/logout\")\n public ResponseEntity<String> logout(HttpServletRequest request, HttpServletResponse response) {\n // send an HTTP 403 response if there is currently not a session\n HttpSession session = request.getSession(false);\n if (session == null) {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n // invalidate the old session, so that one for the new user can be created later\n session.invalidate();\n\n // add the clearUser cookie so that it deletes the browsers cookie\n response.addCookie(CookieManager.getClearUserCookie());\n\n // send an HTTP 204 response to signify successful logout\n return ResponseEntity.status(HttpStatus.NO_CONTENT).body(null);\n }", "@Override\n public void logOut() {\n }", "private void logout(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\tCookie[] theCookieLoop=request.getCookies();\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"checkLoginPageAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(\"false\");\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tresponse.sendRedirect(\"admin/loginPageAdmin.jsp\");\n\t}", "public static void handleLogoutGUI()\n\t{\n\t\tOp logOp = new Op(Operations.LOGOUT,userLogin);\n\t\tclient.handleMessageFromClientUI(logOp);\n\t}", "private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "@RequestMapping(value = \"/logout\", method = RequestMethod.GET)\n public String logoutPage(HttpServletRequest request, HttpServletResponse response) {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null) {\n //new SecurityContextLogoutHandler().logout(request, response, auth);\n persistentTokenBasedRememberMeServices.logout(request, response, auth);\n SecurityContextHolder.getContext().setAuthentication(null);\n }\n return \"redirect:/login?logout\";\n }", "@Override\r\n\tpublic void processFinish(String output, String methodName) {\n\t\tZiraParser parser=new ZiraParser();\r\n\t\tLog.e(\"logout\", output);\r\n\t\tif(methodName.equals(\"Logout\"))\r\n\t\t{\r\n\t\t\t\r\n\t\t\tString result=parser.Logout(output);\r\n\t\t\tif(result.equals(\"0\"))\r\n\t\t\t{\r\n\t\t\t\te.putString(\"FBAccessToken\",\"\");\r\n\t\t\t\te.putLong(\"FBAccessExpires\",0);\t\t\r\n\t\t\t\te.putString(\"Login\", \"\");\r\n\t\t\t\te.putString(\"Userid\", \"\");\r\n\t\t\t\te.putString(\"mode\", \"\");\r\n\t\t\t\te.putString(\"_Login\", \"\");\r\n\t\t\t\te.clear();\r\n\t\t\t\te.commit();\r\n\t\t\t\t\r\n\t\t\t\tIntent mIntent=new Intent(GetProfile.this,LoginActivity.class);\t\r\n\t\t\t\tSingleTon.getInstance().setEdited(true);\r\n\t\t\t\tmIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tstartActivity(mIntent);\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tUtil.alertMessage(GetProfile.this, result);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t\tUser user = (User) request.getSession().getAttribute(\"user\");\n\n\t\tString redirect = \"Controller?command=\" + commandAnswer + \"&message=\" + user.getLogin() + \" \"\n\t\t\t\t+ \" logged out!&action=\" + commandLoggedOut;\n\n\t\trequest.getSession().invalidate();\n\n\t\tresponse.sendRedirect(redirect);\n\n\t}", "@AfterTest\n\t\tpublic void logout(){\n//Calling method to logout from the account and verify logout message.\n//'**********************************************************\n\t\t\tLogOutPage accountLogoutPage =myWishlistPage.logout();\n\t\t\tAssert.assertTrue(accountLogoutPage.getlogoutMsg().equals(\"Account Logout\"), \"Account Logout message is not displayed\");\n\t\t\textentTest.log(LogStatus.PASS,\"Account Logout message is displayed and the user is signed out from the account\");\n//'**********************************************************\n//Close the report\n//'**********************************************************\n\t\t\textentReports.endTest(extentTest);\n\t\t\textentReports.flush();\n\t\t\textentReports.close();\n\t\t}", "public static void logout(Context context){\n\t\t\tnew PerformLogoutTask().execute(context);\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n public void logout() {\n if (SecurityContextHolder.getContext().getAuthentication() != null) {\n SecurityContextHolder.getContext().setAuthentication(null);\n }\n session.invalidate();\n }", "@Override\r\n\tpublic void userLogout(String login) {\n\r\n\t}", "private void testFinished() {\n\t\t\tLoginPage.logout(driver());\n\t\t}", "protected void doCLILogout() throws RequestFailure {\n \tExecutor executor = new Executor(this);\n \texecutor.execute(Command.create(cliLogoutCommand).addPrompt(cliLogoutCompleteRegex));\n }", "@POST\n @Path(\"/\")\n public Response logout() {\n if (!FeatureFlags.API_SESSION_AUTH.enabled()) {\n return error(Response.Status.INTERNAL_SERVER_ERROR, \"This endpoint is only available when session authentication feature flag is enabled\");\n }\n if (!session.getUser().isAuthenticated()) {\n return error(Response.Status.BAD_REQUEST, \"No valid session cookie was sent in the request\");\n }\n session.setUser(null);\n session.setStatusDismissed(false);\n return ok(\"User logged out\");\n }", "@GET\n @Consumes(MediaType.WILDCARD)\n @Produces(MediaType.WILDCARD)\n @Path(\"saml/logout/request\")\n public void samlLogout(@Context final HttpServletRequest httpServletRequest,\n @Context final HttpServletResponse httpServletResponse) throws Exception {\n\n // get the identity of the current user to be logged out\n final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n final String currentUser = authentication.getName();\n\n // send logout request to the idp\n samlService.sendLogoutRequest(httpServletResponse, currentUser, getLogoutCallbackUrl(), null);\n\n // Remove our simple authentication Cookie\n // TODO move this to the callback?\n //setAuthenticationCookie(httpServletResponse, null, 0);\n\n //return Response.ok(\"Successfully logged out\").build();\n }", "private void _logout() throws SessionException {\n\n if (this._client != null && this._client.isLoggedOn())\n this._client.logout();\n }", "@Override\n public void doLogout() {\n // Toast.makeText(getApplicationContext(),\"Session Expired\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), activity_Login.class);\n startActivity(intent);\n }", "public void onLogout(final int widgetToLoad) {\n final RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, getLogoutUrl());\n rb.setCallback(new RequestCallback() {\n @Override\n public void onResponseReceived(Request request, Response response) {\n if (response.getStatusCode() == Response.SC_OK) { // 200 everything is ok.\n LOGGER.info(\"User=\" + Storage.getUser().getEmail() + \" has logged out!\");\n //remove user from session management to force user input login information\n Storage.invalidateStorage();\n forwardUserLogout(widgetToLoad);\n } else {\n LOGGER.severe(\"Unexptected response status code while logging out, code=\"\n + response.getStatusCode());\n eventBus.displayError(response.getStatusCode(), null);\n }\n }\n\n @Override\n public void onError(Request request, Throwable exception) {\n // Couldn't connect to server (could be timeout, SOP violation, etc.)\n LOGGER.severe(\"Server part (poptavka-core) doesn't respond during user logging out, exception=\"\n + exception.getMessage());\n eventBus.displayError(0, null);\n }\n });\n try {\n rb.send();\n } catch (RequestException exception) {\n LOGGER.severe(\"RequestException thrown during user logging out, exception=\" + exception.getMessage());\n eventBus.displayError(0, null);\n }\n }", "protected void logout(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tHttpSession sessao = request.getSession(true);\r\n\t\tsessao.invalidate();\r\n\t\tresponse.sendRedirect(\"/Concessionaria/home\");\r\n\t}", "public void logout()\r\n {\r\n loginForForm = \"\";\r\n passwordForForm = \"\";\r\n redirectSession(\"/logout\");\r\n }", "@GetMapping(\"/logout\")\n\tpublic boolean logout(HttpServletRequest request) {\n\t\t\n\t\tHttpSession session = request.getSession(false);\n\t\tsession.invalidate();\n\t\treturn true;\n\t\t\n\t}" ]
[ "0.74623585", "0.73576295", "0.7264452", "0.72289705", "0.7181375", "0.7160561", "0.7137007", "0.7037898", "0.7037571", "0.6974515", "0.69720614", "0.6959243", "0.6946851", "0.6946851", "0.6944301", "0.69041896", "0.68323123", "0.68243355", "0.68243355", "0.6809166", "0.67954946", "0.678297", "0.6776073", "0.67719126", "0.67688656", "0.6733331", "0.6719022", "0.6713232", "0.6705095", "0.66945636", "0.6677939", "0.66717356", "0.6665718", "0.665417", "0.6633508", "0.66328776", "0.6619421", "0.66096574", "0.6588283", "0.6584408", "0.65718484", "0.6569879", "0.6558126", "0.6549211", "0.6530569", "0.65258074", "0.6518947", "0.6518516", "0.65179425", "0.6513835", "0.6509852", "0.6504833", "0.649353", "0.64893174", "0.6478479", "0.6471918", "0.6467389", "0.6465602", "0.6463527", "0.6462281", "0.64520645", "0.6448735", "0.6448078", "0.64476055", "0.6441215", "0.6431739", "0.64287055", "0.64187974", "0.641466", "0.6406861", "0.6403393", "0.6396228", "0.6384424", "0.6382902", "0.63732445", "0.637206", "0.63611716", "0.6356226", "0.6356188", "0.63459843", "0.634318", "0.6324668", "0.63244957", "0.63220257", "0.6311609", "0.6306246", "0.6305899", "0.630566", "0.62976545", "0.6296475", "0.6295649", "0.6289486", "0.62883973", "0.62848806", "0.62795997", "0.6275888", "0.6263713", "0.626315", "0.6254229", "0.62505496", "0.6243502" ]
0.0
-1
This will prompt user to accept terms and conditions.
private AuthenticatorFlowStatus initiateAuthRequest(HttpServletResponse response, AuthenticationContext context, String errorMessage) throws AuthenticationFailedException { // Find the authenticated user. AuthenticatedUser authenticatedUser = getUser(context); if (authenticatedUser == null) { throw new AuthenticationFailedException("Authentication failed!. " + "Cannot proceed further without identifying the user"); } String tenantDomain = authenticatedUser.getTenantDomain(); String username = authenticatedUser.getAuthenticatedSubjectIdentifier(); String tenantAwareUsername = MultitenantUtils.getTenantAwareUsername(username); /* In here we do the redirection to the termsAndConditionForm.jsp page. If you need to do any api calls and pass any information to the custom page you can do it here and pass them as query parameters or else best way is to do the api call using a javascript function within the custom page. */ try { String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL(). replace("login.do", "termsAndConditionForm.jsp"); String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(), context.getCallerSessionKey(), context.getContextIdentifier()); String retryParam = ""; if (context.isRetrying()) { retryParam = "&authFailure=true" + "&authFailureMsg=" + URLEncoder.encode(errorMessage, StandardCharsets.UTF_8.name()); } String fullyQualifiedUsername = UserCoreUtil.addTenantDomainToEntry(tenantAwareUsername, tenantDomain); String encodedUrl = (loginPage + ("?" + queryParams + "&username=" + URLEncoder.encode(fullyQualifiedUsername, StandardCharsets.UTF_8.name()))) + "&authenticators=" + getName() + ":" + AUTHENTICATOR_TYPE + retryParam; response.sendRedirect(encodedUrl); } catch (IOException e) { throw new AuthenticationFailedException(e.getMessage(), e); } context.setCurrentAuthenticator(getName()); context.setRetrying(false); return AuthenticatorFlowStatus.INCOMPLETE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void checkFromUser() {\n\t\tif (askUser(\"Please type y to execute program and any other key to stop\").contentEquals(\"y\")) {\n\t\t\tSystem.out.println(\"Continuing\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Terminating program\");\n\t\t\tSystem.exit(0); \n\t\t}\n\t\tSystem.out.println(\"Calculating the greatest house income, the greatest income after expenditure and greatest savings from the given 3 families\");\n\t}", "public String termsValidation() {\n name.sendKeys(\"Karan Prinja\");\n email.sendKeys(\"k1234@hotmail.com\");\n password.sendKeys(\"termsnotmet\");\n this.scrollBy(submit);\n submit.click();\n helperMethods.waitForWebElement(termsError, 30);\n this.scrollBy(termsError);\n return termsError.getText();\n }", "public static void termsAndConditions() {\n refreshScreen();\n System.out.println(\"\\n\\n\\t\\t\\tTERMS AND CONDITIONS:\\n\\n\");\n \n transitionBuffer();\n }", "@Then (\"^Accept creation terms$\")\t\t\t\t\t\n public void Accept_creation_terms() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.xpath(\"//*[@id='phoneUsageNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//*[@id='termsofserviceNext']/content/span\")).click();\n \t\t\t\t\n }", "public static void main(String[] args) {\n\t\tString response=JOptionPane.showInputDialog(null,\"Do you know how to write code?\");\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif(response.equalsIgnoreCase(\"yes\") || response.equalsIgnoreCase(\"sure\"))\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\"Than you will rule the world!\");\n\t\t}\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\"Good luck on your career!\");\n\t\t}\n\t}", "static boolean promptForComfirmation(String prompt) {\n String line;\n\n line = promptWithOptions(Arrays.asList(\"y\", \"n\"), prompt);\n\n return (line.compareTo(\"y\") == 0);\n }", "public static void main(String[] args) {\n\n\t\tScanner driversLicense=new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"How old are you?\");\n\t\tint num1=driversLicense.nextInt();\n\t\t\n\t\tif (num1>=18) {\n\t\t\tSystem.out.println(\"Drivers license issued\");\n\t\t}else {\n\t\t\tSystem.out.println(\"You can only get a learners permit\");\n\t\t}\n\t\t\n\t}", "private void promptForSomething() {\n userInputValue = prompt(\"Please enter something: \", true);\n System.out.println(\"Thank you. You can see your input by choosing the Display Something menu\");\n }", "public void toolAccepted()\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Strumento accettato\", 40, true));\n }", "@Override\n protected void processAuthenticationResponse(HttpServletRequest request,\n HttpServletResponse response, AuthenticationContext context) {\n AuthenticatedUser authenticatedUser = getUser(context);\n\n String input = request.getParameter(\"tcInput\");\n if (\"on\".equals(input)) {\n /*\n logic when user accept terms and condition\n */\n log.info(\"user accepted terms and condition\");\n updateAuthenticatedUserInStepConfig(context, authenticatedUser);\n } else {\n /*\n logic when user rejects terms and condition\n */\n log.info(\"user rejected terms and condition\");\n updateAuthenticatedUserInStepConfig(context, authenticatedUser);\n\n }\n }", "private boolean promptNewOrder(String productName) {\r\n System.out.println(\"It doesn't look like you've placed this order before. \"\r\n + \"Would you like to place a new order for - \" + productName + \"?\\n\"\r\n + \"ENTER \\\"YES\\\" to Place a New Order or \\\"NO\\\" to continue.\");\r\n boolean responseIsYes;\r\n try {\r\n responseIsYes = scan.next().equalsIgnoreCase(\"yes\");\r\n } \r\n //if the user does not type anything, default to \"Yes\"\r\n catch(java.util.NoSuchElementException e){\r\n responseIsYes = true;\r\n }\r\n if (responseIsYes) {\r\n System.out.println(\"Thank you! A new Order will be placed.\\n\"\r\n + \"----------------------------------------------------------\");\r\n return true;\r\n }\r\n System.out.println(\"Thank you! This order has been cancelled.\\n\"\r\n + \"----------------------------------------------------------\");\r\n return false;\r\n }", "public void approve() {\r\n\t\tif (readDocument != null) {\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.print(\"Would you like to add '\" + incorrectWordsArray[i] + \"' to the dictionary? (Y/N): \");\r\n\t\t\t\t\tString response = sc.next();\r\n\t\t\t\t\tif (response.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\t\tdictionary.add((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t\tincorrectWords.remove((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"Your changes were made to the dicitonary.\");\r\n\t\t\t\t\t\tmodified = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}", "void bot_check_on_user() { // using Watson Speech-to-Text and text-to-Speech functions\r\n String output;\r\n String input;\r\n output: \"Are you okay?\";\r\n input = get voice input;\r\n if (input = \"Yes I’m okay.\") {} // nothing to do\r\n else if (input = \"A bit unwell.\") {\r\n output = \"Please list your symptoms.\";\r\n String symptoms;\r\n symptoms = get voice input;\r\n CFR_check(symptoms);\r\n }\r\n else if (input = …(no sound)) {\r\n CFR_check(\"No response, might be unconscious.\");\r\n else output : \"Please repeat.\";\r\n }", "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"us-US\");\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }", "private boolean shouldForwardToTermsAcceptanceIntent(Progress progress) {\n return progress.name.equals(Progress.termsAcceptance)\n || progress.name.equals(Progress.termsRefused);\n }", "public void acceptTerms(View view) {\n if(((CheckBox)view).isChecked()){\n register.setEnabled(true);\n }\n else\n register.setEnabled(false);\n }", "public void generalPrompt() {\n System.out.println(\"What would you like to do?\");\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }", "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }", "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }", "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }", "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }", "public static void main(String[] args) {\n\t\tString answer = JOptionPane.showInputDialog(\"Can you write code?(Do not use capitals)\");\t\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif(answer.equals(\"yes\")){\n\t\tJOptionPane.showMessageDialog(null,\" Of course you do, you're in a programming class.\");\t\n\t\t}else if(answer.equals(\"no\")){\n\t\t\tJOptionPane.showMessageDialog(null,\" Are you serios?! You're in a coding class!\");\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null,\" What?\");\n\t\t}\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\n\t}", "public void setAcceptTerms(Boolean acceptTerms) {\n\t\tthis.acceptTerms = acceptTerms;\n\t}", "private static void copyrightChoicesIntoContext(SessionState state, Context context)\n\t{\n\t\tboolean usingCreativeCommons = state.getAttribute(STATE_USING_CREATIVE_COMMONS) != null && state.getAttribute(STATE_USING_CREATIVE_COMMONS).equals(Boolean.TRUE.toString());\t\t\n\t\t\n\t\tif(usingCreativeCommons)\n\t\t{\n\t\t\t\n\t\t\tString ccOwnershipLabel = \"Who created this resource?\";\n\t\t\tList ccOwnershipList = new Vector();\n\t\t\tccOwnershipList.add(\"-- Select --\");\n\t\t\tccOwnershipList.add(\"I created this resource\");\n\t\t\tccOwnershipList.add(\"Someone else created this resource\");\n\t\t\t\n\t\t\tString ccMyGrantLabel = \"Terms of use\";\n\t\t\tList ccMyGrantOptions = new Vector();\n\t\t\tccMyGrantOptions.add(\"-- Select --\");\n\t\t\tccMyGrantOptions.add(\"Use my copyright\");\n\t\t\tccMyGrantOptions.add(\"Use Creative Commons License\");\n\t\t\tccMyGrantOptions.add(\"Use Public Domain Dedication\");\n\t\t\t\n\t\t\tString ccCommercialLabel = \"Allow commercial use?\";\n\t\t\tList ccCommercialList = new Vector();\n\t\t\tccCommercialList.add(\"Yes\");\n\t\t\tccCommercialList.add(\"No\");\n\t\t\t\n\t\t\tString ccModificationLabel = \"Allow Modifications?\";\n\t\t\tList ccModificationList = new Vector();\n\t\t\tccModificationList.add(\"Yes\");\n\t\t\tccModificationList.add(\"Yes, share alike\");\n\t\t\tccModificationList.add(\"No\");\n\t\t\t\n\t\t\tString ccOtherGrantLabel = \"Terms of use\";\n\t\t\tList ccOtherGrantList = new Vector();\n\t\t\tccOtherGrantList.add(\"Subject to fair-use exception\");\n\t\t\tccOtherGrantList.add(\"Public domain (created before copyright law applied)\");\n\t\t\tccOtherGrantList.add(\"Public domain (copyright has expired)\");\n\t\t\tccOtherGrantList.add(\"Public domain (government document not subject to copyright)\");\n\t\t\t\n\t\t\tString ccRightsYear = \"Year\";\n\t\t\tString ccRightsOwner = \"Copyright owner\";\n\t\t\t\n\t\t\tString ccAcknowledgeLabel = \"Require users to acknowledge author's rights before access?\";\n\t\t\tList ccAcknowledgeList = new Vector();\n\t\t\tccAcknowledgeList.add(\"Yes\");\n\t\t\tccAcknowledgeList.add(\"No\");\n\t\t\t\n\t\t\tString ccInfoUrl = \"\";\n\t\t\t\n\t\t\tint year = TimeService.newTime().breakdownLocal().getYear();\n\t\t\tString username = UserDirectoryService.getCurrentUser().getDisplayName(); \n\n\t\t\tcontext.put(\"usingCreativeCommons\", Boolean.TRUE);\n\t\t\tcontext.put(\"ccOwnershipLabel\", ccOwnershipLabel);\n\t\t\tcontext.put(\"ccOwnershipList\", ccOwnershipList);\n\t\t\tcontext.put(\"ccMyGrantLabel\", ccMyGrantLabel);\n\t\t\tcontext.put(\"ccMyGrantOptions\", ccMyGrantOptions);\n\t\t\tcontext.put(\"ccCommercialLabel\", ccCommercialLabel);\n\t\t\tcontext.put(\"ccCommercialList\", ccCommercialList);\n\t\t\tcontext.put(\"ccModificationLabel\", ccModificationLabel);\n\t\t\tcontext.put(\"ccModificationList\", ccModificationList);\n\t\t\tcontext.put(\"ccOtherGrantLabel\", ccOtherGrantLabel);\n\t\t\tcontext.put(\"ccOtherGrantList\", ccOtherGrantList);\n\t\t\tcontext.put(\"ccRightsYear\", ccRightsYear);\n\t\t\tcontext.put(\"ccRightsOwner\", ccRightsOwner);\n\t\t\tcontext.put(\"ccAcknowledgeLabel\", ccAcknowledgeLabel);\n\t\t\tcontext.put(\"ccAcknowledgeList\", ccAcknowledgeList);\n\t\t\tcontext.put(\"ccInfoUrl\", ccInfoUrl);\n\t\t\tcontext.put(\"ccThisYear\", Integer.toString(year));\n\t\t\tcontext.put(\"ccThisUser\", username);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//copyright\n\t\t\tif (state.getAttribute(COPYRIGHT_FAIRUSE_URL) != null)\n\t\t\t{\n\t\t\t\tcontext.put(\"fairuseurl\", state.getAttribute(COPYRIGHT_FAIRUSE_URL));\n\t\t\t}\n\t\t\tif (state.getAttribute(NEW_COPYRIGHT_INPUT) != null)\n\t\t\t{\n\t\t\t\tcontext.put(\"newcopyrightinput\", state.getAttribute(NEW_COPYRIGHT_INPUT));\n\t\t\t}\n\t\n\t\t\tif (state.getAttribute(COPYRIGHT_TYPES) != null)\n\t\t\t{\n\t\t\t\tList copyrightTypes = (List) state.getAttribute(COPYRIGHT_TYPES);\n\t\t\t\tcontext.put(\"copyrightTypes\", copyrightTypes);\n\t\t\t\tcontext.put(\"copyrightTypesSize\", new Integer(copyrightTypes.size() - 1));\n\t\t\t\tcontext.put(\"USE_THIS_COPYRIGHT\", copyrightTypes.get(copyrightTypes.size() - 1));\n\t\t\t}\n\t\t}\n\t\t\n\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\tif(preventPublicDisplay == null)\n\t\t{\n\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t}\n\t\tcontext.put(\"preventPublicDisplay\", preventPublicDisplay);\n\t\t\n\t}", "private void promptSpeechInput() {\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n\t\t\t\tgetString(R.string.speech_prompt));\n\t\ttry {\n\t\t\tstartActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n\t\t} catch (ActivityNotFoundException a) {\n\t\t\tToast.makeText(getActivity(),\n\t\t\t\t\tgetString(R.string.speech_not_supported),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}", "public void printAndCheck (ArrayList<String> terms, ArrayList<String> definitions, Scanner console, Random rand, Student user) {\n \r\n\r\n int numTerms = rand.nextInt(terms.size());\r\n int numDefs = rand.nextInt(definitions.size()); \r\n System.out.println(\"Choose \\\"true\\\", \\\"false\\\", \\\"t\\\", \\\"f\\\", \\\"yes\\\", \\\"no\\\", \\\"y\\\", or \\\"n\\\"\");\r\n System.out.println(terms.get(numTerms) + \" = \" + definitions.get(numDefs) + \"?\"); //random pairing\r\n System.out.println();\r\n boolean correctAnswer = (terms.indexOf(terms.get(numTerms)) == definitions.indexOf(definitions.get(numDefs))); //the correct answer is a boolean, if the index of the term is the same as the index of the definition\r\n String response = console.next();\r\n if (response.equalsIgnoreCase(\"true\") || response.equalsIgnoreCase(\"false\") || //if the user gives a valid answer\r\n response.equalsIgnoreCase(\"t\") || response.equalsIgnoreCase(\"f\") || response.equalsIgnoreCase(\"y\") \r\n || response.equalsIgnoreCase(\"n\") || response.equalsIgnoreCase(\"yes\") || response.equalsIgnoreCase(\"no\")) {\r\n \r\n \t boolean userAnswer = (response.equalsIgnoreCase(\"true\") || response.equalsIgnoreCase(\"t\") \r\n || response.equalsIgnoreCase(\"y\") || response.equalsIgnoreCase(\"yes\"));\r\n \r\n if (userAnswer == correctAnswer) {\r\n System.out.println(\"You got it right! :)\");\r\n user.incrNumCorrect(); //for the stats method\r\n user.incrTotal(1); //for the stats method\r\n }else {\r\n System.out.println(\"You got it wrong :( \");\r\n user.incrTotal(1);\r\n user.incNumIncorrect();\r\n }\r\n \r\n }else{\r\n System.out.println(\"Always remember to only choose\\n\\\"true\\\", \\\"false\\\", \\\"t\\\", \\\"f\\\", \\\"yes\\\", \\\"no\\\", \\\"y\\\", or \\\"n\\\"!\"); //the user's response will be considered false if they do not type \"true\" or \"false\"\r\n user.incrTotal(1);\r\n }\r\n\r\n System.out.println();\r\n }", "public static void main(String[] args){\r\n String[] prompts = {\"Do you want to take a survey?\",\r\n \"Do you like yes or no questions?\",\r\n \"Will you continue answering these?\",\r\n \"Are you some kind of robot?\",\r\n \"Do you have special powers?\",\r\n \"Do you use them for good or for awesome?\",\r\n \"Will you use them on me?\"};\r\n int i;\r\n for (i = 0; i <= QUESTIONS && yesNoQuestion(prompts[i]); i++); \r\n if (i < 3) System.out.println(\"You are lame.\");\r\n else System.out.println(\"You are mildly cool.\");\r\n if (i >= 4) System.out.println(\"Actually, you're a cool robot.\");\r\n if (i >= 5) System.out.println(\"...with cool powers.\");\r\n if (i >= 6) System.out.println(\"Please use your powers on me!\");\r\n if (i >= 7) System.out.println(\"Ooh, that feels good.\");\r\n }", "private void askConfirm(String question) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString confirm = \"y\";\n\t\twhile (!confirm.equals(\"y\") && !confirm.equals(\"n\")) {\n\t\t\tSystem.out.println(question);\n\t\t\tconfirm = scanner.nextLine();\n\t\t\tif (confirm.equals(\"y\")) {\n\t\t\t\tSystem.out.println(\"Thank you.\");\n\t\t\t} else if (confirm.equals(\"n\")) {\n\t\t\t\tSystem.out.println(\"You can edit the config settings in src/main/config\");\n\t\t\t\tSystem.exit(1);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Really funny. Try again.\");\n\t\t\t}\n\n\t\t}\n\t\tscanner.close();\n\t}", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n List<UsedCar> carList = new ArrayList<>();\n int menuChoice = -1;\n int numCars = 0;\n\n populateList(carList);\n do { // repeat this loop until the user wants to quit\n do { // repeat this loop until we have a valid response\n numCars = carCount(carList);\n printList(carList, numCars);\n menuChoice = queryUser(scan, carList, numCars);\n } while (menuChoice == -1); // repeat if user input is invalid\n purchaseCar(scan, carList, menuChoice, numCars);\n } while (menuChoice != numCars); //repeat so long as user chooses to keep going\n\n System.out.println(\"Have a great day!\");\n\n scan.close();\n }", "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 }", "void askDefaultProduction();", "public void getInput() {\r\n System.out.print(\"Is the car silent when you turn the key? \");\r\n setAnswer1(in.nextLine());\r\n if(getAnswer1().equals(YES)) {\r\n System.out.print(\"Are the battery terminals corroded? \");\r\n setAnswer2(in.nextLine());\r\n if(getAnswer2().equals(YES)){\r\n printString(\"Clean the terminals and try again\");\r\n }\r\n else {\r\n printString(\"The battery may be damaged.\\nReplace the cables and try again\");\r\n }\r\n\r\n }\r\n else {\r\n System.out.print(\"Does the car make a slicking noise? \");\r\n setAnswer3(in.nextLine());\r\n if(getAnswer3().equals(YES)) {\r\n printString(\"Replace the battery\");\r\n }\r\n else {\r\n System.out.print(\"Does the car crank up but fail to start? \");\r\n setAnswer4(in.nextLine());\r\n if(getAnswer4().equals(YES)) {\r\n printString(\"Check spark plug connections.\");\r\n }\r\n else{\r\n System.out.print(\"Does the engine start and then die? \");\r\n setAnswer5(in.nextLine());\r\n if(getAnswer5().equals(YES)){\r\n System.out.print(\"Does your care have fuel injection? \");\r\n setAnswer6(in.nextLine());\r\n if(getAnswer6().equals(YES)){\r\n printString(\"Get it in for service\");\r\n }\r\n else{\r\n printString(\"Check to insure the chock is opening and closing\");\r\n }\r\n }\r\n else {\r\n printString(\"This should be impossible\");\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n }", "public static void addSupQuestion() {\r\n\t\tSystem.out.println(\"Do you want to add a supplier to the system? y/n\");\r\n\t\tString userInput = Validation.stringNoIntsValidation();\r\n\t\tuserDecision = false;\r\n\t\twhile (!userDecision) {\r\n\t\t\tif (userInput.equals(\"y\") || userInput.equals(\"Y\")) {\r\n\t\t\t\tAddMethods.addNewSupplier();\r\n\t\t\t\tuserDecision = true;\r\n\t\t\t}else if (userInput.equals(\"n\") || userInput.equals(\"N\")) {\r\n\t\t\t\tSystem.out.println(\"Returning to the main menu\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tuserDecision = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Error - please enter 'y' or 'n'\");\r\n\t\t\t\tinput.next();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n\t\tString cont;\n\t\tdo {\n\n\t\t\tMarketsProducts m = new MarketsProducts();\n\n\t\t\tSystem.out.println(\"\\n\" + \"\\n\" + \"Would you like continue adding Products, press [yes] or [no]\");\n\t\t\tcont = input.next();\n\t\t} while (cont.equalsIgnoreCase(\"yes\"));\n\n\t\tSystem.out.println(\"Thanks for choosing us!\");\n\n\t}", "public static void main(String[] args) {\n\t\tString dominate = JOptionPane.showInputDialog(null, \"Do you are know how to write code?\");\n\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif (dominate.equals(\"Yes\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You shall dominate world >:D\");\n\t\t}\n\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"You are have stupid you shall wash dishes >:(\");\n\t\t\t}\n\t\t}", "public void confirmation() throws InterruptedException {\n Scanner scan = new Scanner(System.in);\n String confirm = \"\";\n confirm = InputValidation.regexValidate(scan, \"yn\");\n\n if (confirm.equalsIgnoreCase(\"Y\")) {\n entryCheck();\n computeResult();\n System.out.println(Pet.petCollection.get(Pet.getIndex()).getCompetition());\n }\n Competition.c.setOpponent(Pet.PetGenerator());\n }", "String legalTerms();", "public static void main(String[] args)\r\n\t{\r\n\tScanner scc = new Scanner(System.in);\r\n\r\n\tSystem.out.println(\"Enter you Age :\");\r\n\tint age = scc.nextInt();\r\n\t\r\n\tif(age>=18)\r\n\t{\r\n\t\tSystem.out.println(\"You are Eligible to Vote \");\t\t\r\n\t}\r\n\telse\r\n\t\tSystem.out.println(\"You are Not Eligible to Vote\");\r\n\t\t\r\n\t\r\n\t}", "public static void main (String [] args) {\n Scanner input = new Scanner(System.in);\n \n // Ask the user for their age\n System.err.print(\"How old are you? \");\n int age = input.nextInt();\n \n // Ask the user if they have a coupon\n System.err.print(\"Do you have a coupon? [true/false] \");\n \n boolean coupon = input.nextBoolean();\n \n // Print the cost of a movie ticket\n if (age <= 13 || age >= 65) {\n \tif (coupon == true) { \n \t\tSystem.out.println(\"Your ticket costs $9.5.\"); \t\n \t}\n \telse {\n \t\tSystem.out.println(\"Your ticket costs $11.5.\");\n \t}\n }\n if ((age > 13 && age < 65) && coupon == true) {\n \tSystem.out.println(\"Your ticket costs $12.5.\");\n }\n if ((age > 13 && age < 65) && coupon == false) {\n \tSystem.out.println(\"Your ticket costs $14.5.\");\n }\n }", "protected boolean promptBoolean(String prompt) {\r\n\tSystem.out.print(prompt + \" ('y' or 'n'): \");\r\n\tchar userResponse = reader.nextLine().charAt(0);\r\n\r\n\twhile (userResponse != 'y' && userResponse != 'n') {\r\n\t System.out.print(\"Please enter a valid choice.\\n\" + prompt + \" ('y' or 'n'): \");\r\n\t userResponse = reader.nextLine().charAt(0);\r\n\t}\r\n\r\n\tif (userResponse == 'y') {\r\n\t return true;\r\n\t} else {\r\n\t return false;\r\n\t}\r\n }", "public static void main(String[] args) {\n \n int result=JOptionPane.showConfirmDialog(null,\"Are you sure to Exit?\",\n \"My Question\",JOptionPane.YES_NO_OPTION);\n \n switch(result){\n case JOptionPane.YES_OPTION :\n JOptionPane.showMessageDialog(null,\"OK we do..\");\n break;\n \n case JOptionPane.NO_OPTION :\n JOptionPane.showMessageDialog(null,\"OK we do not..\");\n break;\n \n case JOptionPane.CANCEL_OPTION :\n JOptionPane.showMessageDialog(null,\"OK we cancel it..\");\n }\n }", "@When(\"^the user enters 'Term = (\\\\d+) years'$\")\r\n\tpublic void the_user_enters_Term_years(int arg1) throws Throwable {\n\t\tdriver.findElement(By.xpath(\"//input[@id='SearchMortgageTerm']\")).sendKeys(\"30\");\r\n\t\tSystem.out.println(\"user entered Term\");\r\n\r\n\t}", "public boolean promptYesNo(String str)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}", "private void askUser(){\n\t\tprintln(\"Enter the values to compute Pythagorean Theorem: \");\n\t\tprint(\"a: \");\n\t\tint a = readInt();\n\t\tprint(\"b: \");\n\t\tint b = readInt();\n\t\tcomputePythagorean(a, b);\n\t}", "private void checkUserInput() {\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"C:\\\\Users\\\\Dell User\\\\Desktop\\\\Udmey\\\\lib\\\\chromedriver\\\\chromedriver.exe\");\n\n\t\t// WebDriver driver= new FirefoxDriver();\n\n\t\tWebDriver driver = new ChromeDriver();\n\t\t// WebDriver driver= new InternetExplorerDriver();\n\t\tdriver.get(\"http://www.qaclickacademy.com/practice.php\");\n\t\tif( !driver.findElement(By.id(\"checkBoxOption2\")).isSelected())\n\t\t{\n\t\t\tdriver.findElement(By.id(\"checkBoxOption2\")).click();\n\t\t\tString Lable2=driver.findElement(By.id(\"checkBoxOption2\")).getAttribute(\"value\");\n\t\t\tdriver.findElement(By.xpath(\"//select[@id='dropdown-class-example']\")).sendKeys(Lable2);\n\t\t\tdriver.findElement(By.cssSelector(\"input[name='enter-name']\")).sendKeys(Lable2);\n\t\t\tdriver.findElement(By.id(\"alertbtn\")).click();\n\t\t\t\n\t\t\tAlert alt=driver.switchTo().alert();\n\t\t\tString getText=alt.getText();\n\t\t\tif(getText.contains(Lable2))\n\t\t\t{\n\t\t\t\tSystem.out.println(alt.getText());\n\t\t\t\talt.accept();\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t\n\n\t}", "String ask();", "public void approveAll() {\r\n\t\tif (readDocument != null) {\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tSystem.out.println(\"Would you like to add the following misspelled words to the dictionary?\");\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.println(incorrectWordsArray[i]);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(\"(Y/N): \");\r\n\t\t\t\tString response = sc.next();\r\n\t\t\t\tif (response.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\t\tdictionary.add((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tincorrectWords.clear();\r\n\t\t\t\t\tSystem.out.println(\"Your changes were made to the dictionary.\");\r\n\t\t\t\t\tmodified = true;\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}", "public Scene deliverPrompt()\n {\n System.out.println(prompt);\n deliverOptions();\n return takeResponse();\n }", "@SystemAPI\n\tboolean needsApproval();", "public void promptMenu()\n {\n Object[] options = {\"Display by Albums-First\", \"Display by Artists-First\",\n \"Search by Album Title\", \"Search by Artist Name\",\n \"Add Album to Catalog\"};\n \n String action = (String) JOptionPane.showInputDialog(null, \n \"Select an option:\", \"Music Library Menu\",\n JOptionPane.INFORMATION_MESSAGE,null,options,options[0]);\n try {\n switch(action)\n {\n case \"Display by Albums-First\" : displayByAlbums();\n break;\n case \"Display by Artists-First\" : displayByArtists();\n break;\n case \"Search by Album Title\" : searchByAlbum();\n break;\n case \"Search by Artist Name\" : searchByArtist();\n break;\n case \"Add Album to Catalog\" : addAlbum(fileName);\n break;\n default : //do nothing\n break;\n }\n }\n catch(NullPointerException e) { //NPE is thrown if user Cancels or X's.\n int quit = JOptionPane.showConfirmDialog(null, \"Do you want to quit?\",\n \"Quit Menu\",JOptionPane.YES_NO_OPTION);\n if(quit == 0)\n {\n JOptionPane.showMessageDialog(null, \"Thanks for using the library!\"); \n System.exit(0);\n }\n else\n promptMenu();\n }\n catch (FileNotFoundException e) { //for the case of addAlbum(fileName);\n System.err.println(\"Sorry, no file under the name '\" + fileName + \"' exists!\");\n System.exit(2);\n }\n promptMenu();\n }", "public static void alertbox_Accept() throws CheetahException {\n\t\ttry {\n\t\t\tSystem.out.println(\"Step into alert box\");\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.accept();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\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}", "private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\n }", "public static void main(String[] args)\n\t{\n\t\t\n\t\tString answer = JOptionPane.showInputDialog(null,\"Are you happy? or is your name bob?\"); //IS THESE CORRECT?????\n\t\t\n\t\t\n\t\t/*\n\t\t * no, yes, bob\n\t\t */\n\t\t\n\t\t/*\n\t\t * psudo code.. \n\t\t * if - else statements are conditional dependent clauses.\n\t\t * As soon as the first if/else-if evaluates to true.. it will run its \n\t\t * block, and then drop out of the entire if-else block..\n\t\t * \n\t\t * int i = 1;\n\t\t * \n\t\t * if(i == 0) -> i is 1 NOT 0.. therefore false.\n\t\t * {\n\t\t * \t\n\t\t * \n\t\t * } else if (i == 1 ) { it is 1 therefore true\n\t\t * \n\t\t * System.out.println(\"ITS TRUE!\");\n\t\t * \n\t\t *\n\t\t * } else if (i == 2) {\n\t\t * \n\t\t * \n\t\t * \n\t\t * } else if (i >=3 ) {\n\t\t * \n\t\t * \t\n\t\t * } else {\n\t\t * \n\t\t * \t\t//Default catch all!\n\t\t * }\n\t\t * \n\t\t * if - statements are not dependent clauses. Each one is evaluated \n\t\t * separate from the previous if statement. if one evalutates to true,\n\t\t * the next statement will be evaluated independently as well.\n\t\t * \n\t\t * if(i == 0) {\n\t\t * \t\tSystem.out.println(\"its 0\");\n\t\t * }\n\t\t * \n\t\t * if(i == 1) {\n\t\t * \t\tSystem.out.println(\"its 1\");\n\t\t * }\n\t\t * \n\t\t * if(i == 2) {\n\t\t * \t\tSystem.out.println(\"its 2\");\n\t\t * }\n\t\t * \n\t\t * if(i == 1 || i ==2) {\n\t\t * \n\t\t * \t\tSystem.out.println(\"its 1 or 2\");\n\t\t * }\n\t\t */\n\t\t\n\t\tif(answer.contentEquals(\"no\"))\n\t\t{\n\t\t\t//Stuff when answer is no happens here.\n\t\t\tString answer2 = JOptionPane.showInputDialog(null,\"Do you want to be happy\");\n\t\t\t\n\t\t\tif(answer2.contentEquals(\"no\"))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Keep on doing what you are doing\");\n\t\t\t\t\n\t\t\t} else if(answer2.contentEquals(\"yes\")) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Change something\");\n\t\t\t}\n\t\t} else if(answer.contentEquals(\"yes\")) {\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Keep on doing what you are doing\");\n\t\t} else if(answer.contentEquals(\"bob\")) {\n\t\t\n\t\t\tJOptionPane.showMessageDialog(null,\"Nice you like bob too!!!\");\n\n\t\t} else {\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"THEY ANSWERED ANYTHING OTHER THAN NO, YES, and BOB\");\n\t\t}\n\t\t\n\t}", "public String formAccepted()\r\n { \r\n return formError(\"202 Accepted\",\"Object checked in\");\r\n }", "public static void AlertAccept() {\n\t\tAlert alt = Browser.Driver.switchTo().alert();\n\t\talt.accept();\n\t}", "public static void main(String[] args)\n\t\t\t{\n\t\t\t\tScanner enter = new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"Please enter your condominium selection:\\n1 - Park View\\n2 - Golf \" +\n\t\t\t\t \"Course View\\n3 - Lake View\");\n\t\t\t\tcondoSelection = enter.nextInt();\n\t\t\t\tboolean invalidResponse = (condoSelection > 3 || condoSelection < 0);\n \n \n\t\t\t\tif (condoSelection == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tsalesPrice = PARKVIEW_PRICE;\n\t\t\t\t\t\tSystem.out.println(park + String.format( \"%.2f\", salesPrice ));\n\t\t\t\t\t}\n\t\t\t\telse if (condoSelection == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tsalesPrice = GOLFVIEW_PRICE;\n\t\t\t\t\t\tSystem.out.println(golf + String.format( \"%.2f\", salesPrice ));\n\t\t\t\t\t}\n\t\t\t\telse if (condoSelection == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tsalesPrice = LAKEVIEW_PRICE;\n\t\t\t\t\t\tSystem.out.println(lake + String.format( \"%.2f\", salesPrice ));\n\t\t\t\t\t}\n\t\t\t\telse if (invalidResponse)\n\t\t\t\t\t{\n\t\t\t\t\t\tsalesPrice = 0;\n\t\t\t\t\t\tSystem.out.println(invalidSelection + String.format( \"%.2f\", salesPrice ));\n\t\t\t\t\t}\n\t\t\t}", "public void validateRequestToBuyPage(){\r\n\t\tsearchByShowMeAll();\r\n\t\tclickCheckboxAndRenewBuyButton();\r\n\t\tverifyRequestToBuyPage();\r\n\t}", "public void askForUserType() {\n System.out.println(\"What type of User would you like to make? (Type Attendee, Speaker, VIP, or Organizer)\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner input=new Scanner (System.in);\n\t\tString answer;\n\t\tString output;\n\t\t\n\t\tSystem.out.println(\"Is it weekend?\");\n\t\tanswer=input.nextLine();\n\t\t\n\t\tif (!(answer.equals(\"Yes\"))) {\n\t\t\toutput=\"manual testing\";\n\t\t}else {\n\t\t\toutput=\"java\";\n\t\t}\n\t\tSystem.out.println(\"Today you will be learning \"+output);\n\n\t}", "public Boolean getAcceptTerms() {\n\t\treturn acceptTerms;\n\t}", "private void takeInUserInput(){\n\t\t// only take in input when it is in the ANSWERING phase\n\t\tif(spellList.status == QuizState.Answering){\n\t\t\tspellList.setAnswer(getAndClrInput());\n\t\t\tspellList.status = QuizState.Answered;\n\t\t\tansChecker=spellList.getAnswerChecker();\n\t\t\tansChecker.execute();\n\t\t}\t\n\n\t}", "public static boolean askUserYesNo() {\n // Variable declarations\n String userInput = \"\"; // User input string\n\n // Get user input\n userInput = scnr.nextLine();\n\n // Validate whether user input is ok, and continue asking until right\n while (!userInput.equalsIgnoreCase(\"y\") &&\n !userInput.equalsIgnoreCase(\"yes\") &&\n !userInput.equalsIgnoreCase(\"n\") &&\n !userInput.equalsIgnoreCase(\"no\")) {\n System.out.print(\"That is not a valid input. Please try again. (y/n): \");\n userInput = scnr.nextLine();\n }\n\n // Return true if user says yes, and false if user says no\n if (userInput.equalsIgnoreCase(\"y\") || userInput.equalsIgnoreCase(\"yes\")) {\n return true;\n } else {\n return false;\n }\n }", "private void doView() {\n System.out.println(pickedAccount.toString());\n System.out.println(\"Cancel any reservation? (y/n)\");\n\n String command;\n command = input.next();\n if (command.toLowerCase().equals(\"y\")) {\n processCancelReservation();\n }\n }", "@OnClick(R.id.tvTermsOfUse)\n void termsOfUse()\n {\n UtilsMethods.openBrowser(this, Keys.TERM_OF_USE_URL);\n }", "int promptOption(IMenu menu);", "@Override\r\n\t\tpublic boolean promptYesNo(String message) {\n\t\t\treturn true;\r\n\t\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter marital status: (enter single or married)\");\n\t\tString answer = scan.nextLine();\n\t\tSystem.out.println(\"Enter taxable income: (don't use $ or ,)\");\n\t\tdouble income = scan.nextInt();\n\t\tTaxCalculator t = new TaxCalculator(answer, income);\n\t\tSystem.out.println(\"Your Federal tax = $\"+t.calculateTax());\n\t}", "public String askSomething(String question, String titel);", "public void setTermsApproved() {\n mTermsApproved = true;\n }", "public void VerifyCheckoutTermsandCondition(String Exptitle){\r\n\t\tString ExpTitle=getValue(Exptitle);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Terms and Condition should be present\");\r\n\r\n\t\ttry{\r\n\t\t\tif(getAndVerifyPartialText(locator_split(\"txtCheckoutTermstitle\"), ExpTitle)){\r\n\t\t\t\tSystem.out.println(\"Terms and Condition in Billing is present \"+getText(locator_split(\"txtCheckoutTermstitle\")));\r\n\t\t\t}else{\r\n\t\t\t\tthrow new Exception(\"Terms and Condition in Billing is not present\");\r\n\t\t\t}\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Terms and Condition is present\");\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Terms and Condition in Billing is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutTermstitle\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogLicense();\r\n\t\t\t}", "@Test\n public void basicPromptConfirmHandlingAcceptTest(){\n\n WebElement promptButton = driver.findElement(By.id(\"promptexample\"));\n WebElement promptResult = driver.findElement(By.id(\"promptreturn\"));\n\n assertEquals(\"pret\", promptResult.getText());\n promptButton.click();\n String alertMessage = \"I prompt you\";\n Alert promptAlert = driver.switchTo().alert();\n\n // IE prompt now shows the correct message so no need for any caveat\n assertEquals(alertMessage,promptAlert.getText());\n promptAlert.accept();\n assertEquals(\"change me\", promptResult.getText());\n }", "void confirm();", "public RegisterPage clickOnAgreeTerms()\n {\n agreeTermsButton.click();\n return this;\n }", "private void getRequest() {\n System.out.print(\"Enter song: \");\n ar.setSong(scanner.nextLine());\n //if the artist was correct but the song title wasn't we don't need to ask for the artist again\n if(wrongSong)\n return;\n System.out.print(\"Enter artist: \");\n ar.setArtist(scanner.nextLine());\n }", "@Override\n\tpublic void approveForm(Context ctx) {\n\t\t//Authentication\n\t\tUser approver = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (approver == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!approver.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\t// Implementation\n\t\tString id = ctx.pathParam(\"id\");\n\t\tForm form = fs.getForm(UUID.fromString(id));\n\t\tapprover.getAwaitingApproval().remove(form);\n\t\tus.updateUser(approver);\n\t\t// If approver is just the direct supervisor\n\t\tif (!approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tUser departmentHead = us.getUserByName(approver.getDepartmentHead());\n\t\t\tdepartmentHead.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(departmentHead);\n\t\t}\n\t\t// If the approver is a department head but not a benco\n\t\tif (approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t}\n\t\t// if the approver is a BenCo\n\t\tif (approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setBencoApproval(true);\n\t\t\tUser formSubmitter = us.getUserByName(form.getName());\n\t\t\tif (formSubmitter.getAvailableReimbursement() >= form.getCompensation()) {\n\t\t\t\tformSubmitter.setAvailableReimbursement(formSubmitter.getAvailableReimbursement() - form.getCompensation());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tformSubmitter.setAvailableReimbursement(0.00);\n\t\t\t}\n\t\t\tformSubmitter.getAwaitingApproval().remove(form);\n\t\t\tformSubmitter.getCompletedForms().add(form);\n\t\t\tus.updateUser(formSubmitter);\n\t\t}\n\t\t\n\t\tfs.updateForm(form);\n\t\tctx.json(form);\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tScanner dmv= new Scanner(System.in);\n\t\tSystem.out.println(\"How old are you\");\n\t\tint age=dmv.nextInt();\n\t\tif (age>=18) {\n\t\t\tSystem.out.println(\"Your driver lisence will be issued\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Please get a learners permit\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n menu();\r\n int num = 0;\r\n try {\r\n Scanner scan = new Scanner(System.in);\r\n num = scan.nextInt();\r\n } catch (InputMismatchException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n switch (num)\r\n {\r\n case 1:\r\n commercial();\r\n break;\r\n case 2:\r\n residential();\r\n case 3:\r\n System.out.println(\"Your session is over\");\r\n default:\r\n System.out.println(\"\");\r\n }\r\n\r\n }", "public static void intro() {\n System.out.println(\"This program asks for your monthly income and\");\n System.out.println(\"expenses, then tells you your net monthly income.\");\n System.out.println();\n }", "public static void main(String[] args) {\n\n // locale for inputting double values with dot delimiter\n Scanner scanner = new Scanner(System.in).useLocale(Locale.US);\n final String agreement = \"(?i)(y|yes)\";\n\n /*\n Array for temporary saving sides of both of envelopes.\n vertical side of A envelope = sides[0]\n horizontal side of A envelope = sides[1]\n vertical side of B envelope = sides[2]\n horizontal side of B envelope = sides[3]\n */\n double sides[] = new double[4];\n\n do {\n\n try {\n for (int i = 0; i < sides.length; i++) {\n switch (i) {\n case 0:\n System.out.print(\"\\nEnvelope A\\nVertical side: \");\n break;\n case 1:\n System.out.print(\"\\nHorizontal side: \");\n break;\n case 2:\n System.out.print(\"\\nEnvelope B\\nVertical side: \");\n break;\n case 3:\n System.out.print(\"\\nHorizontal side: \");\n }\n sides[i] = scanner.nextDouble();\n\n }\n\n\n Envelope envelopeA;\n Envelope envelopeB;\n envelopeA = Envelope.createEnvelope(sides[0], sides[1]);\n envelopeB = Envelope.createEnvelope(sides[2], sides[3]);\n\n if (envelopeA.isFitInto(envelopeB)) {\n System.out.println(\"\\nEnvelope A can be put in envelope B\\n\");\n } else if (envelopeB.isFitInto(envelopeA)) {\n System.out.println(\"\\nEnvelope B can be put in envelope A\\n\");\n } else {\n System.out.println(\"\\nNeither of them can fit into each other\\n\");\n }\n\n System.out.print(\"\\nWould you like to try again? \");\n } catch (NumberFormatException | InputMismatchException e) {\n System.out.println(\"Wrong arguments entered\");\n printInfo();\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n } while (scanner.next().matches(agreement));\n scanner.close();\n }", "@Nullable\r\n protected abstract Prompt acceptValidatedInput(@NotNull ConversationContext context, @NotNull String input);", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner (System.in);\n\t\t\n\t\tSystem.out.println(\"Welcome to DMV\");\n\t\tSystem.out.println(\"How old are you?\");\n\t\t\n\t\tint age = scan.nextInt();\n\t\t\n\t\tif (age >= 18)\n\t\t{ System.out.println(\" You are old enough for Driver's License\"); }\n\t\t\n\t\telse {\n\t\t\tSystem.out.println(\"You are too young, but you can have a permit\");\n\t\t}\n\t\t\n\t}", "boolean checkYesNo (String choice){\r\n if (choice.equalsIgnoreCase(\"N\") || choice.equalsIgnoreCase(\"Y\")){\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "public static void main(String[] args) {\n\n\tboolean subject;\n\tScanner scan=new Scanner (System.in);\n\t\n\tSystem.out.println(\" Is it weekend? \");\n boolean input=scan.nextBoolean();\n \n if (input){\n System.out.println(\"Today you will be learning Java\");\n }else {\n \tSystem.out.println(\"Today you will be learning Manual testing\");\n }\n\t\n\t}", "@Test\n public void basicPromptConfirmHandlingChangeAndAcceptTest(){\n\n WebElement promptButton = driver.findElement(By.id(\"promptexample\"));\n WebElement promptResult = driver.findElement(By.id(\"promptexample\"));\n\n assertEquals(\"pret\", promptResult.getText());\n promptButton.click();\n\n String alertMessage = \"I prompt you\";\n Alert promptAlert = driver.switchTo().alert();\n assertEquals(alertMessage,promptAlert.getText());\n\n promptAlert.sendKeys(\"Hello\");\n promptAlert.accept();\n assertEquals(\"Hello\", promptResult.getText());\n }", "public void askUserToRateApp(final Context context) {\n\t\tnew AlertDialog.Builder(context)\n\t\t\t\t.setTitle(\"Please Rate Me\")\n\t\t\t\t.setMessage(\"If you find this app useful, please support the developers by rating it 5 stars on Google Play.\")\n\t\t\t\t.setPositiveButton(\"Rate Now\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t\t\tlaunchAppInGooglePlay(context);\n\t\t\t\t\t}\n\t\t\t\t}).setNegativeButton(\"Rate Later\", null).show();\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the age :\");\r\n\t\tint personage=s.nextInt();\r\n\t\t\r\n\t\tif (personage>=18)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The person is eligible for voting\");\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The person is not eligible for voting\");\r\n\t\t}s.close();\r\n\t}", "private String promptForAnswer(AnswerChecker answerChecker) {\n String answer;\n while (true) {\n regularPresenter.newAnswerPrompter();\n answer = scanner.nextLine();\n if (answerChecker.isValidAnswerForm(answer)) break;\n else regularPresenter.illegalAnswerReporter();\n }\n return answer;\n }", "private boolean areYouSure(String text) {\n return JOptionPane.showConfirmDialog(null, text, \"Are you sure?\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;\n }", "public static void main(String[] args) {\n\t\tString input = JOptionPane.showInputDialog(\"input stuff here\");\n\t\t\n\t\tinput = input.toLowerCase();\n\t\tswitch(input) {\n\t\t\tcase \"aries\": {\n\t\t\t\tgiveHoroscope(Zodiac.ARIES);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"taurus\": {\n\t\t\t\tgiveHoroscope(Zodiac.TAURUS);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"gemini\": {\n\t\t\t\tgiveHoroscope(Zodiac.GEMINI);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"cancer\": {\n\t\t\t\tgiveHoroscope(Zodiac.CANCER);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"virgo\": {\n\t\t\t\tgiveHoroscope(Zodiac.VIRGO);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"leo\": {\n\t\t\t\tgiveHoroscope(Zodiac.LEO);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"libra\": {\n\t\t\t\tgiveHoroscope(Zodiac.LIBRA);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"scorpio\": {\n\t\t\t\tgiveHoroscope(Zodiac.SCORPIO);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"sagittarius\": {\n\t\t\t\tgiveHoroscope(Zodiac.SAGITTARIUS);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"capricorn\": {\n\t\t\t\tgiveHoroscope(Zodiac.CAPRICORN);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"aquarius\": {\n\t\t\t\tgiveHoroscope(Zodiac.AQUARIUS);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"pisces\": {\n\t\t\t\tgiveHoroscope(Zodiac.PISCES);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public boolean yesTo(String prompt) {\r\n System.out.print(prompt + \" (y/n)? \");\r\n String response = console.nextLine().trim().toLowerCase();\r\n while (!response.equals(\"y\") && !response.equals(\"n\")) {\r\n System.out.println(\"Please answer y or n.\");\r\n System.out.print(prompt + \" (y/n)? \");\r\n response = console.nextLine().trim().toLowerCase();\r\n }\r\n return response.equals(\"y\");\r\n }", "public boolean yesTo(String prompt) {\r\n System.out.print(prompt + \" (y/n)? \");\r\n String response = console.nextLine().trim().toLowerCase();\r\n while (!response.equals(\"y\") && !response.equals(\"n\")) {\r\n System.out.println(\"Please answer y or n.\");\r\n System.out.print(prompt + \" (y/n)? \");\r\n response = console.nextLine().trim().toLowerCase();\r\n }\r\n return response.equals(\"y\");\r\n }", "public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tScanner scan = new Scanner(System.in);\n\t\tint randNum;\n\t\tString userGuess;\n\t\tString outcome;\n\t\tString goAgain;\n\t\tboolean goAgainValid=false;\n\t\tboolean quit=false;\n\t\t\n\t\ttry {\n\t\t\t// declaring the questions and answers\n\t\t\tString[] jokeQuestions = { \"Largest planet ? \", \"Worse song ever ? \", \"Capital of Peru?\", \"Roman god of War ?\" };\n\t\t\tString[] jokeAnswers = { \"Jupiter\", \"Baby\", \"Lima\", \"Mars\" };\n\t\n\t\t\tSystem.out.println(\"General knowledge quiz...\");\n\t\t\n\t\t\tdo {\n\t\t\t\t// generate random number (between 0-3)\n\t\t\t\trandNum = rand.nextInt(4);\n\t\t\t\t\n\t\t\t\t// user given random question\n\t\t\t\tSystem.out.println(\"\\nQ: \"+jokeQuestions[randNum]);\n\t\t\t\t// user responds\n\t\t\t\tSystem.out.printf(\"A: \");\n\t\t\t\tuserGuess = scan.next();\n\t\t\t\t// user answer checked against correct answer\n\t\t\t\tif (userGuess.equalsIgnoreCase(jokeAnswers[randNum])) {\n\t\t\t\t\t// correct\n\t\t\t\t\toutcome = \"Well done, your answer was correct!\";\n\t\t\t\t} else {\n\t\t\t\t\t// wrong\n\t\t\t\t\toutcome = \"Sorry, your answer was incorrect\";\n\t\t\t\t}\n\t\t\t\t// user is notified of outcome\n\t\t\t\tSystem.out.println(\"\\n\"+outcome);\n\t\t\t\t// user is prompted to continue or quit (loop until they give a valid response\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"Would you like another question? (Y or N)\");\n\t\t\t\t\tgoAgain = scan.next();\n\t\t\t\t\tif (goAgain.equalsIgnoreCase(\"y\")) {\n\t\t\t\t\t\t// repeat\n\t\t\t\t\t\tgoAgainValid=true;\n\t\t\t\t\t} else if (goAgain.equalsIgnoreCase(\"n\")) {\n\t\t\t\t\t\t// quit\n\t\t\t\t\t\tgoAgainValid=true;\n\t\t\t\t\t\tquit=true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// choose again\n\t\t\t\t\t\tSystem.out.println(\"That was an invlaid response, please respond with Y or N\");\n\t\t\t\t\t}\n\t\t\t\t} while (!goAgainValid);\n\t\t\t} while (!quit);\n\t\t} catch (Exception exception) {\n\t\t\tSystem.out.println(\"The quiz master has had a problem...\");\n\t\t} finally {\n\t\t\tSystem.out.println(\"Thanks for playing!\");\n\t\t\tscan.close();\n\t\t}\n\t}", "public static boolean askYesNo(String message) {\n\n\t\t// Present the choice (and log it where chosen.)\n\t\tpresent(message + \" [Y/N] :: \");\n\n\t\tString choice = \"\";\n\n\t\t// Get a result from the user.\n\t\ttry {\n\t\t\tboolean chosen = false;\n\t\t\twhile ( !(chosen)) {\n\n\t\t\t\tchoice = System.console().readLine();\n\n\t\t\t\tchoice = choice.toUpperCase().trim();\n\n\t\t\t\tif ((choice.compareTo(\"Y\") == 0) || (choice.compareTo(\"N\") == 0) ){\n\t\t\t\t\tchosen = true;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch\t(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Log the user's choice. \n\t\taddLine(\"(The user chose: \\\"\" + choice + \"\\\".)\");\n\n\t\tif (choice.compareTo(\"Y\") == 0 ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "public static void showEulaDialog(Context context) {\n\t\tshowGenericDialog(context, R.string.aboutactivity_license, RAW_EULA);\n\t}", "public static void fundation(){\n Scanner keyboard = new Scanner(System.in);//Keyboard input initializer\r\n String STR; //string for yes or no\r\n System.out.println(\"Would you like to donate to LDJ bank? (y/n)\");\r\n System.out.println();\r\n System.out.printf(\">\");\r\n STR = keyboard.next(); //the user inputs y or n in order to say if they want to donate or not\r\n if(STR.equals(\"y\")){ //if they want to donate\r\n System.out.println();\r\n System.out.println(\"Insert the amount to donate\");\r\n System.out.println();\r\n System.out.printf(\"> $\");\r\n FUNDATION = keyboard.nextInt(); //the promt is printed and the amount is requested\r\n if(FUNDATION <= BALANCE){//if the amount to donate is minor to the balance you can donate\r\n FUNDATIONM = FUNDATIONM + FUNDATION; //the fundation money plus the amount to be donated\r\n BALANCE = BALANCE - FUNDATION; //the user balance minus the fundation money\r\n System.out.println(\"Thank you for donating!\");\r\n }\r\n else {\r\n System.out.println(\"Insufficient Balance\");\r\n }\r\n }\r\n else if(STR.equals(\"n\")){ //if n then prints blank\r\n System.out.println();\r\n }\r\n System.out.println(\"We'll continue with the operation\");\r\n System.out.println();\r\n System.out.println(\"Done\");\r\n }", "static public void woundedSurvivor() {\n System.out.println(\"Maybe you could bring me some food and something to defend myself now that i cant move\");\n System.out.println(\"Do you want to accept his mission: Yes or no\");\n Scanner scan = new Scanner(System.in); //Creates a new scanner\n String input = scan.nextLine(); //Waits for input\n if (input.equalsIgnoreCase(\"yes\")) {\n System.out.println(\"You got a mission, please use the show command for more information\");\n allMissions.addMission(jungle, \"Helping the injured survivor\");\n } else if (input.equalsIgnoreCase(\"no\")) {\n System.out.println(\"Come back again if you change your mind\");\n } else {\n System.out.println(\"Come back again if you change your mind\");\n }\n }", "public void validateAcceptTerm(final FacesContext context,\n final UIComponent toValidate, final Object value) {\n Boolean accept = (Boolean) value;\n if (!accept.booleanValue()) {\n ((UISelectBoolean) toValidate).setValid(false);\n addMessage(toValidate.getClientId(context),\n FacesMessage.SEVERITY_ERROR, ERROR_REGISTRATION_TERMS);\n }\n }" ]
[ "0.6320039", "0.61202", "0.608278", "0.60576236", "0.6047721", "0.580565", "0.5735119", "0.5722257", "0.57051605", "0.56723887", "0.5671786", "0.5667168", "0.5649191", "0.5587615", "0.5585979", "0.5575309", "0.55715936", "0.5568761", "0.5551797", "0.5551797", "0.5551797", "0.5551797", "0.5523649", "0.5516953", "0.5499178", "0.54888034", "0.54725134", "0.54637617", "0.5460541", "0.54329246", "0.54267573", "0.5410712", "0.53885865", "0.53835285", "0.5383335", "0.53801435", "0.5376564", "0.53747374", "0.5354928", "0.53469163", "0.534027", "0.5312536", "0.5309225", "0.5287301", "0.52741516", "0.5268223", "0.5256944", "0.52552134", "0.5249551", "0.52468413", "0.52367896", "0.523601", "0.52337915", "0.5200838", "0.51903003", "0.51877236", "0.518214", "0.51752913", "0.5166271", "0.5166014", "0.51606303", "0.51547956", "0.5150632", "0.5138372", "0.51357144", "0.5128114", "0.5123311", "0.5118245", "0.5111533", "0.51115024", "0.5107653", "0.51024723", "0.50968665", "0.50942606", "0.50903004", "0.50875187", "0.5082552", "0.50788087", "0.5077358", "0.5072891", "0.50706893", "0.5070498", "0.5068022", "0.50667644", "0.5065507", "0.50653267", "0.5064077", "0.50632274", "0.50604516", "0.505236", "0.50523067", "0.5050267", "0.5048774", "0.50470585", "0.50470585", "0.5045978", "0.5042602", "0.50372046", "0.50371367", "0.50359076", "0.50323087" ]
0.0
-1
/ In here we can process the request submitted from terms and condition page.
@Override protected void processAuthenticationResponse(HttpServletRequest request, HttpServletResponse response, AuthenticationContext context) { AuthenticatedUser authenticatedUser = getUser(context); String input = request.getParameter("tcInput"); if ("on".equals(input)) { /* logic when user accept terms and condition */ log.info("user accepted terms and condition"); updateAuthenticatedUserInStepConfig(context, authenticatedUser); } else { /* logic when user rejects terms and condition */ log.info("user rejected terms and condition"); updateAuthenticatedUserInStepConfig(context, authenticatedUser); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n preprocess(request, response);\n User loggedIn = getUserFromSession(request, response);\n saveURL(request, response);\n \n if (firstTimeVisiting(request))\n showPage(\"ask.jsp\", request, response);\n else\n {\n String title = request.getParameter(\"title\");\n String body = request.getParameter(\"body\");\n String[] tags = extractTags(request);\n List<String> errors = searchForErrors(title, body, tags);\n if (errors.isEmpty())\n {\n Question q = new Question(title, body);\n q.addToDatabase(loggedIn);\n for (String t : tags)\n new Tag(t).addToDatabase(q);\n setNotification(Info.quesSuccess, request, response);\n response.sendRedirect(\"question?id=\" + q.getID());\n }\n else\n {\n setErrors(errors, request, response);\n showPage(\"ask.jsp\", request, response);\n }\n }\n }", "private void processRequest(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\n\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n if(request.getParameter(\"action\")!=null){\n String action=request.getParameter(\"action\");\n switch(action){\n case \"Traducir\":\n validateNucleotid(request,response);\n break;\n }\n }else{\n response.sendRedirect(\"index.jsp\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "private void processRequest(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {\n Cookie[] cookies = req.getCookies();\n for (Cookie cookie : cookies) {\n if (\"locale\".equals(cookie.getValue())) {\n req.setAttribute(\"lang\", cookie.getValue());\n if (LOCALE_RU.equals(cookie.getValue())) {\n MainController.messageManager.changeResource(new Locale(LOCALE_RU_VALUE, LOCALE_RU_VALUE.toUpperCase()));\n MainController.resourceManager.changeResource(new Locale(LOCALE_RU_VALUE, LOCALE_RU_VALUE.toUpperCase()));\n } else {\n MainController.messageManager.changeResource(Locale.US);\n MainController.resourceManager.changeResource(Locale.US);\n }\n }\n }\n\n String page = \"\";\n ActionFactory actionFactory = new ActionFactory();\n ActionCommand command = actionFactory.defineCommand(req, resp);\n try {\n page = command.execute(req, resp);\n } catch (CommandException e) {\n LOG.error(e);\n }\n if (page != null) {\n RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(page);\n dispatcher.forward(req, resp);\n } else {\n page = ConfigurationManager.getProperty(\"path.page.main\");\n req.getSession().setAttribute(\"emptyPage\",\n messageManager.getProperty(\"message.emptypage\"));\n resp.sendRedirect(req.getContextPath() + page);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response\n )\n throws ServletException\n , IOException {\n processRequest(request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String accion = request.getParameter(\"accion\");\n if (accion.equals(\"registroNuevo\")) {\n registroNuevo(request, response);\n } else {\n if (accion.equals(\"confirmacion\")) {\n confirmacion(request, response);\n } else {\n if (accion.equals(\"listaE\")) {\n listaDeEspecialidades(request, response);\n }\n }\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "public static void termsAndConditions() {\n refreshScreen();\n System.out.println(\"\\n\\n\\t\\t\\tTERMS AND CONDITIONS:\\n\\n\");\n \n transitionBuffer();\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected abstract void processRequest( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException;", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession ss = request.getSession();\n List<AnswerQuestion> ansList = new ArrayList<>();\n StAssignmentOnWeb sa = (StAssignmentOnWeb) ss.getAttribute(\"sa\");\n Account ac = (Account) ss.getAttribute(\"ac\");\n int cId = Integer.parseInt(ss.getAttribute(\"cId\") + \"\");\n Assignment a = (Assignment) ss.getAttribute(\"curAm\");\n String[] seqno = request.getParameterValues(\"seqno\");\n String q_type = null;\n String instruction = null;\n AnswerQuestion aq = null;\n int total_score = 0;\n for (int i = 0; i < seqno.length; i++) {\n q_type = request.getParameter(seqno[i] + \"q_type\");\n int q_id = Integer.parseInt(request.getParameter(seqno[i] + \"q_id\"));\n aq = new AnswerQuestion();\n if (sa.getG_id() > 0) {\n aq.setAcc_id(0);\n aq.setG_id(sa.getG_id());\n } else {\n aq.setAcc_id(sa.getAcc_id());\n aq.setG_id(0);\n }\n if (q_type.equalsIgnoreCase(\"multiple_choice\") || q_type.equalsIgnoreCase(\"tfQuestion\")) {\n String score = request.getParameter(seqno[i] + \"score\");\n aq.setSt_am_id(sa.getSt_am_id());\n aq.setQ_id(q_id);\n aq.setQ_order(0);\n aq.setScore(Double.parseDouble(score));\n total_score += Double.parseDouble(score);\n ansList.add(aq);\n } else if (q_type.equalsIgnoreCase(\"matchWord\")) {\n String score[] = request.getParameterValues(seqno[i] + \"score\");\n for (int j = 0; j < score.length; j++) {\n aq = new AnswerQuestion();\n if (sa.getG_id() > 0) {\n aq.setAcc_id(0);\n aq.setG_id(sa.getG_id());\n } else {\n aq.setAcc_id(sa.getAcc_id());\n aq.setG_id(0);\n }\n aq.setSt_am_id(sa.getSt_am_id());\n aq.setQ_id(q_id);\n aq.setQ_order(j + 1);\n aq.setScore(Double.parseDouble(score[j]));\n total_score += Double.parseDouble(score[j]);\n ansList.add(aq);\n }\n } else if (q_type.equalsIgnoreCase(\"explain\")) {\n String score = request.getParameter(seqno[i] + \"score\");\n aq.setSt_am_id(sa.getSt_am_id());\n aq.setQ_id(q_id);\n aq.setQ_order(0);\n aq.setScore(Double.parseDouble(score));\n total_score += Double.parseDouble(score);\n ansList.add(aq);\n } else if (q_type.equalsIgnoreCase(\"fillBlank\")) {\n String score[] = request.getParameterValues(seqno[i] + \"score\");\n for (int x = 0; x < score.length; x++) {\n aq = new AnswerQuestion();\n if (sa.getG_id() > 0) {\n aq.setAcc_id(0);\n aq.setG_id(sa.getG_id());\n } else {\n aq.setAcc_id(sa.getAcc_id());\n aq.setG_id(0);\n }\n aq.setSt_am_id(sa.getSt_am_id());\n aq.setQ_id(q_id);\n aq.setQ_order(x + 1);\n aq.setScore(Double.parseDouble(score[x]));\n total_score += Double.parseDouble(score[x]);\n ansList.add(aq);\n }\n } else if (q_type.equalsIgnoreCase(\"instruction\")) {\n System.out.println(\"Do nothing.\");\n }\n }\n sa.setScore(total_score);\n StAssignmentOnWeb.updateScore(sa);\n for (AnswerQuestion ans : ansList) {\n AnswerQuestion.updateScore(ans);\n }\n Notification n = new Notification();\n n.setAcc_id(ac.getAcc_id());\n n.setCourse_id(cId);\n n.setType(\"score\");\n //Assignment# 1 ( INT206 Software Development Process II ) <b9/10\n// Your score is publish in assignmentName(cName).\n String content = \"<span class=\\\"text-muted\\\"><span class=\\\"glyphicon glyphicon-stats\\\" style=\\\"font-size: 12px\\\"></span> Your score is publish in \\\"\" + a.getName() + \"\\\" </span>\";\n// String content = \"<b>\"+a.getName() +\"</b> assignment have new score update \" + total_score + \"/\" + a.getFully_mark();\n n.setText(content);\n n.setLink(\"sendAssignment?am_id=\"+a.getAm_id());\n\n List<Integer> listac = new ArrayList<>();\n if (a.getTotal_member() > 1) {\n Group_member g = Group_member.getMemberById(sa.getG_id());\n String accIdList[] = g.getAcc_id().split(\",\");\n List<Account> gAm = new ArrayList<>();\n for (String accId : accIdList) {\n listac.add(Integer.parseInt(accId));\n }\n } else {\n listac.add(sa.getAcc_id());\n }\n Notification.announce(n, listac);\n\n request.setAttribute(\"msg\", 6);\n getServletContext().getRequestDispatcher(\"/informpage.jsp?am_id=\" + sa.getAm_id()).forward(request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n logger.log(Level.INFO, \"[GUI QUERY] {0}\", request.getRequestURI()+\"?\"+request.getQueryString());\n\n // check to find version and forward\n Map<String, String[]> params = request.getParameterMap(); // get map of parameters and their values\n String[] versions = params.get(\"version\");\n\n if (versions == null) {\n request.getRequestDispatcher(\"/v104GRs\").forward(request, response); \n } else if (versions[0].equals(\"103\")) {\n request.getRequestDispatcher(\"/v103GRs\").forward(request, response); \n } else {\n // otherwise forward to default\n request.getRequestDispatcher(\"/v104GRs\").forward(request, response);\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(SearchAvaliableFlights.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "private void searchContext(HttpServletRequest request, HttpServletResponse response, ArticleService artService,QuestionService questionService) throws ServletException, IOException {\n\t\tString text=request.getParameter(\"getText\");\n\t\tString atitle=\"atitle\";\n\t\tString qtitle=\"qtitle\";\n\t\tList<Article> arts=artService.getAll(atitle, text);\n\t\tList<Question> questions=questionService.getAll(qtitle,text);\n\t\trequest.setAttribute(\"arts\", arts);\n\t\trequest.setAttribute(\"questions\", questions);\n\t\trequest.getRequestDispatcher(\"/homepage/afterSearch.jsp\").forward(request, response);\n\t\t\n\t\t\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n try {\r\n processRequest(request, response);\r\n } catch (ParseException | ScriptException ex) {\r\n Logger.getLogger(searchservlet.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (NoSuchMethodException ex) {\r\n Logger.getLogger(searchservlet.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (JSONException ex) {\n Logger.getLogger(StartEditActiveTermDatesServlet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n if (request.getParameter(\"action\") != null) {\n switch (request.getParameter(\"action\")) {\n case \"newFeedback\": {\n newFeedback(request, response);\n break;\n }\n case \"deleteFeedback\": {\n deleteFeedback(request, response);\n break;\n }\n case \"seenFeedback\": {\n seenFeedback(request, response);\n break;\n }\n }\n }\n\n } catch (Exception ex) {\n Logger.getLogger(FeedbackController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request,response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response); \n }", "public void handleRequest(ExtractionRequest request);", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "public int doProcessing(Context context, HttpServletRequest request,\n HttpServletResponse response, SubmissionInfo subInfo)\n throws ServletException, IOException, SQLException,\n AuthorizeException\n {\n // Get the values from the initial questions form\n boolean multipleTitles = Util.getBoolParameter(request,\n \"multiple_titles\");\n\t\t//Expect publishedBefore unless stated otherwise\n boolean publishedBefore = Util.getBoolParameter(request,\n \"published_before\", true);\n boolean multipleFiles = Util.getBoolParameter(request,\n \"multiple_files\");\n boolean isThesis = ConfigurationManager\n .getBooleanProperty(\"webui.submit.blocktheses\")\n && Util.getBoolParameter(request, \"is_thesis\");\n\n if (subInfo.isInWorkflow())\n {\n // Thesis question does not appear in workflow mode..\n isThesis = false;\n\n // Pretend \"multiple files\" is true in workflow mode\n // (There will always be the license file)\n multipleFiles = true;\n }\n\n // First and foremost - if it's a thesis, reject the submission\n if (isThesis)\n {\n WorkspaceItem wi = (WorkspaceItem) subInfo.getSubmissionItem();\n wi.deleteAll();\n subInfo.setSubmissionItem(null);\n\n // Remember that we've removed a thesis in the session\n request.getSession().setAttribute(\"removed_thesis\",\n Boolean.TRUE);\n\n return STATUS_THESIS_REJECTED; // since theses are disabled, throw\n // an error!\n }\n\n // Next, check if we are pruning some existing metadata\n if (request.getParameter(\"do_not_prune\") != null)\n {\n return STATUS_CANCEL_PRUNE; // cancelled pruning!\n }\n else if (request.getParameter(\"prune\") != null)\n {\n processVerifyPrune(context, request, response, subInfo,\n multipleTitles, publishedBefore, multipleFiles);\n }\n else\n // otherwise, check if pruning is necessary\n {\n // Now check to see if the changes will remove any values\n // (i.e. multiple files, titles or an issue date.)\n\n if (subInfo.getSubmissionItem() != null)\n {\n // shouldn't need to check if submission is null, but just in case!\n if (!multipleTitles)\n {\n Metadatum[] altTitles = subInfo.getSubmissionItem().getItem()\n .getDC(\"title\", \"alternative\", Item.ANY);\n\n willRemoveTitles = altTitles.length > 0;\n }\n\n if (!publishedBefore)\n {\n Metadatum[] dateIssued = subInfo.getSubmissionItem().getItem()\n .getDC(\"date\", \"issued\", Item.ANY);\n Metadatum[] citation = subInfo.getSubmissionItem().getItem()\n .getDC(\"identifier\", \"citation\", Item.ANY);\n Metadatum[] publisher = subInfo.getSubmissionItem().getItem()\n .getDC(\"publisher\", null, Item.ANY);\n\n willRemoveDate = (dateIssued.length > 0)\n || (citation.length > 0) || (publisher.length > 0);\n }\n\n if (!multipleFiles)\n {\n // see if number of bitstreams in \"ORIGINAL\" bundle > 1\n // FIXME: Assumes multiple bundles, clean up someday...\n Bundle[] bundles = subInfo.getSubmissionItem().getItem()\n .getBundles(\"ORIGINAL\");\n\n if (bundles.length > 0)\n {\n Bitstream[] bitstreams = bundles[0].getBitstreams();\n\n willRemoveFiles = bitstreams.length > 1;\n }\n }\n }\n\n // If anything is going to be removed from the item as a result\n // of changing the answer to one of the questions, we need\n // to inform the user and make sure that's OK, before saving!\n if (willRemoveTitles || willRemoveDate || willRemoveFiles)\n {\n //save what we will need to prune to request (for UI to process)\n request.setAttribute(\"will.remove.titles\", Boolean.valueOf(willRemoveTitles));\n request.setAttribute(\"will.remove.date\", Boolean.valueOf(willRemoveDate));\n request.setAttribute(\"will.remove.files\", Boolean.valueOf(willRemoveFiles));\n\n return STATUS_VERIFY_PRUNE; // we will need to do pruning!\n }\n }\n\n // If step is complete, save the changes\n subInfo.getSubmissionItem().setMultipleTitles(multipleTitles);\n subInfo.getSubmissionItem().setPublishedBefore(publishedBefore);\n\n // \"Multiple files\" irrelevant in workflow mode\n if (!subInfo.isInWorkflow())\n {\n subInfo.getSubmissionItem().setMultipleFiles(multipleFiles);\n }\n\n // If this work has not been published before & no issued date is set,\n // then the assumption is that TODAY is the issued date.\n // (This logic is necessary since the date field is hidden on DescribeStep when publishedBefore==false)\n if(!publishedBefore)\n {\n Metadatum[] dateIssued = subInfo.getSubmissionItem().getItem()\n .getDC(\"date\", \"issued\", Item.ANY);\n if(dateIssued.length==0)\n {\n //Set issued date to \"today\" (NOTE: InstallItem will determine the actual date for us)\n subInfo.getSubmissionItem().getItem().addDC(\"date\", \"issued\", null, \"today\");\n }\n }\n\n // commit all changes to DB\n subInfo.getSubmissionItem().update();\n context.commit();\n\n return STATUS_COMPLETE; // no errors!\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String acao = request.getParameter(\"acao\");\n if (acao.equals(\"preparar\")) {\n preparar(request, response);\n } else {\n if (acao.equals(\"confirmar\")) {\n confirmar(request, response);\n }\n }\n }", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }" ]
[ "0.6362314", "0.6245045", "0.6210094", "0.6094351", "0.6000555", "0.5970033", "0.5942481", "0.5930734", "0.5930528", "0.59071285", "0.58844", "0.5878137", "0.5855499", "0.5854174", "0.5854174", "0.5854172", "0.5853644", "0.58362263", "0.5822773", "0.5798075", "0.57912904", "0.5778096", "0.57766986", "0.5772183", "0.5752865", "0.5752865", "0.57383925", "0.5737805", "0.5733358", "0.5722459", "0.57205343", "0.572016", "0.572016", "0.5706704", "0.56838334", "0.5682574", "0.5676861", "0.56672233", "0.5655126", "0.56477183", "0.56381106", "0.563721", "0.5635174", "0.5635174", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.5632734", "0.56294656", "0.5617475", "0.5617411", "0.5611552", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663", "0.5596663" ]
0.66413754
0
Get the username from authentication context.
private AuthenticatedUser getUser(AuthenticationContext context) { StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(context.getCurrentStep() - 1); return stepConfig.getAuthenticatedUser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getUsername(AuthenticationContext context) {\n String username = null;\n for (Integer stepMap : context.getSequenceConfig().getStepMap().keySet())\n if (context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser() != null\n && context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedAutenticator()\n .getApplicationAuthenticator() instanceof LocalApplicationAuthenticator) {\n username = String.valueOf(context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser());\n break;\n }\n return username;\n }", "@Override\n\tpublic String getUsername(Context ctx){\n\t\treturn ctx.session().get(\"username\");\n\t}", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "@Override\r\n\tpublic String getCurrentUserName() {\r\n\t\tString currentUserName = SecurityContextHolder.getContext().getAuthentication().getName();\r\n\t\treturn currentUserName;\r\n\t}", "public final String getUsername() {\n return properties.get(USERNAME_PROPERTY);\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}", "public String getUsernameFromToken() {\n\t\tHttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}", "public String getUsername() {\n return username.get();\n }", "public final String getUser() {\n return username;\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "public final String getUsername() {\n return username;\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "public String getUserName() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"USERNAME\", null);\n\t}", "String getUserName();", "String getUserName();", "private String getPrincipalUsername()\n\t{\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails)\n\t\t{\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}", "String getUserUsername();", "public String getUsername()\r\n\t{\r\n\t\treturn username;\r\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public static String onGetLocalUserName(Context context){\n return PreferencesUtils.getString(context, Config.KEY_OF_USER_NAME, \"\");\n }", "public java.lang.CharSequence getUsername() {\n return username;\n }", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public static String getCurrentUsername() {\n WorkflowUserManager workflowUserManager = (WorkflowUserManager) appContext.getBean(\"workflowUserManager\");\n String username = workflowUserManager.getCurrentUsername();\n return username;\n }", "public final String getUsername() {\n\t\treturn username.trim();\n\t}", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public java.lang.CharSequence getUsername() {\n return username;\n }", "@Override\r\n\tpublic String getUsername() {\n\t\treturn username;\r\n\t}", "public String getCurrentUserUsername(){\n Subject subject = org.apache.shiro.SecurityUtils.getSubject();\n if(subject!=null){\n return subject.getPrincipal().toString();\n }else{\n return \"User\";\n }\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn this.login;\n\t}", "public String getUserName() {\n if (passCred != null)\n return passCred.getUserName();\n else\n return null;\n }", "public String getUsername() {\n return username;\n }", "public java.lang.String getUsername() {\n return localUsername;\n }", "public String getUsername()\n\t{\n\t\treturn username;\n\t}", "public String getUserName();", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn username;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn username;\n\t}", "public String getName() {\n return (String) getObject(\"username\");\n }", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n \t\treturn username;\n \t}", "public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public String getUsername() {\n\t\treturn this.username;\n\t}", "private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}", "String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}", "public String getUsername() {\n\t\treturn userName;\n\t}", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }" ]
[ "0.8387022", "0.7970334", "0.78586805", "0.78586805", "0.78586805", "0.78586805", "0.78586805", "0.78586805", "0.78586805", "0.78586805", "0.78586805", "0.76857483", "0.7664064", "0.76153415", "0.76153415", "0.76153415", "0.7496409", "0.74393576", "0.7427375", "0.73976445", "0.7373956", "0.7373956", "0.7373956", "0.7373956", "0.7373956", "0.7373956", "0.7366697", "0.73422265", "0.7339816", "0.72755766", "0.72755766", "0.72548544", "0.7220911", "0.7211092", "0.71702737", "0.71702737", "0.716882", "0.71506345", "0.71498334", "0.71498334", "0.71498334", "0.71498334", "0.71498334", "0.7147922", "0.71479", "0.7137929", "0.7137929", "0.7137929", "0.7137929", "0.7137929", "0.7137929", "0.7137929", "0.7137929", "0.7137929", "0.7137929", "0.7137929", "0.71306413", "0.7129832", "0.7126091", "0.7123068", "0.71191084", "0.7112513", "0.71073985", "0.71067554", "0.7105546", "0.7103638", "0.7103638", "0.70943487", "0.70943487", "0.7091716", "0.70891094", "0.70891094", "0.70891094", "0.70891094", "0.70891094", "0.70891094", "0.70891094", "0.70891094", "0.70883244", "0.7087609", "0.70804256", "0.7079295", "0.7075136", "0.7074519", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091", "0.7074091" ]
0.0
-1
Update the authenticated user context.
private void updateAuthenticatedUserInStepConfig(AuthenticationContext context, AuthenticatedUser authenticatedUser) { Map<Integer, StepConfig> stepConfigMap = context.getSequenceConfig().getStepMap(); for (int i = 1; i <= stepConfigMap.size(); i++) { stepConfigMap.get(i).setAuthenticatedUser(authenticatedUser); } context.setSubject(authenticatedUser); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserContext(UserContext userContext);", "private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }", "public void updateCurrentTrempitUser() {\n\n // create the trempituser object\n TrempitUser currentUser = new TrempitUser();\n currentUser.setFullName(Profile.getCurrentProfile().getName());\n currentUser.setId(Long.valueOf(Profile.getCurrentProfile().getId()));\n\n // update the global variable so all activities can access the user\n globalState.setCurrentUser(currentUser);\n\n // insert the user to the server\n insertTrempitUserToServer(currentUser);\n\n Toast.makeText(this, \"logged in to facebook:\" + globalState.getCurrentUser().getFullName(), Toast.LENGTH_LONG).show();\n }", "public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}", "public void updateUser(User user) {\n\t\t\r\n\t}", "private void updateUI() {\n user = mAuth.getCurrentUser();\n if (user != null) {\n user.reload().addOnCompleteListener(userReloadListener);\n }\n }", "public static void userData(Context context)\r\n\t{\r\n\t\ttry {\r\n\t\t\tcontext.json(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void updateUser(user theUser) {\n\t}", "private void updateUserLogin() {\n\t\tSessionManager sessionManager = new SessionManager(\n\t\t\t\tMyApps.getAppContext());\n\n\t\tRequestParams params = new RequestParams();\n\t\tparams.add(\"user_id\", sessionManager.getUserDetail().getUserID());\n\n\t\tLog.d(\"EL\", \"userID: \" + sessionManager.getUserDetail().getUserID());\n\n\t\tKraveRestClient.post(WebServiceConstants.AV_UPDATE_USER_PROFILE_DATA_1,\n\t\t\t\tparams, new JsonHttpResponseHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tJSONObject response) {\n\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLog.d(\"EL\", \"response: \" + response.toString(2));\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}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}", "@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}", "@Override\n\tpublic void updateContext(Context context) {\n\t}", "public void update() throws Exception {\n\t HaUserDao.getInstance().updateUser(this);\n\t}", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "public void update() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n reauthenticate();\n }", "public void update(User user);", "public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}", "@Override\n\tpublic void updateUser(SpaceUserVO spaceUserVO) throws Exception {\n\t\t\n\t}", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "void update(User user);", "void update(User user);", "public void update(User obj) {\n\t\t\n\t}", "private void updateSecurityContext(Company company) {\n\tif (!this.authHelper.isSuperAdmin()) {\n\t AuthenticationToken auth = this.authHelper.getAuth();\n\t auth.setCompany(company);\n\t auth.setTheme(company.getThemeID());\n\t SecurityContextHolder.getContext().setAuthentication(auth);\n\t}\n }", "@Override\n public UserContext decorate(UserContext context,\n AuthenticatedUser authenticatedUser, Credentials credentials)\n throws GuacamoleException {\n if (authenticatedUser.getAuthenticationProvider() != this)\n return context;\n\n return new TokenInjectingUserContext(context,\n ((SSOAuthenticatedUser) authenticatedUser).getTokens());\n\n }", "void setCurrentUser(@Nullable User newCurrentUser) {\n currentUser = newCurrentUser;\n }", "Account refresh(Context context);", "@Override\n\tpublic void updateUserProfile(User user) throws Exception {\n\n\t}", "@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}", "private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }", "public void updateUserCapabilities() {\n\n currentUser = loginService.getLoggedInUser();\n UserPropertiesDao userPropertiesDao = db.userProperties;\n UserProperties userProperties = userPropertiesDao.findByUserId(currentUser.getId());\n SharedPreferences preferences = Objects.requireNonNull(userCapabilitiesFragment.getPreferenceManager().getSharedPreferences());\n\n userProperties.setHasKids(preferences.getBoolean(\"pref_kids\", false));\n userProperties.setHasCatAllergies(preferences.getBoolean(\"pref_cat_allergy\", false));\n userProperties.setHasDogAllergies(preferences.getBoolean(\"pref_dog_allergy\", false));\n userProperties.setGreenAreas(preferences.getBoolean(\"pref_garden\", false));\n userProperties.setFreeTime(preferences.getBoolean(\"pref_exercise\", false));\n userPropertiesDao.update(userProperties);\n }", "public void setContext(UsersResourceContext context) {\n this._context = context;\n }", "@Override\n public boolean updateUser(User user) {\n return controller.updateUser(user);\n }", "void updateUser(@Nonnull User user);", "public User UpdateUser(User user){\n\t\t\treturn user;\n\t\t}", "public void updateUser(User updatedUser){\n ProfileSharedPreferencesRepository.getInstance(application).updateUser(updatedUser);\n }", "@Override\n\tpublic void updateUser(User curpwd) {\n\t\tuserRepository.save(curpwd);\n\t}", "@Override\n\t\tpublic void onUserProfileUpdate(User arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onUserProfileUpdate(User updatedUser) {\n\n\t}", "public void updateUser(Person user) {\n\t\t\n\t}", "public UserContext getUserContext();", "public void updateUser(User oldUser, User newUser) ;", "ManageUserResponse updateUser(UserUpdateRequest user, Long userId);", "public void updateUser(long userID) {\n \t}", "public User updateUser(User user);", "private void updateUserDetails() {\n \tUser user=CurrentSession.getCurrentUser();\n \tjLabel1.setText(\"Name:\");\n jLabel2.setText(user.getFirstName()+\" \"+user.getLastName());\n jLabel3.setText(\"Card Number:\");\n jLabel4.setText(user.getCardNumber());\n jLabel5.setText(\"Daily Calorie Intake\");\n FoodPreference fp=new FoodPreference(user.getCardNumber());\n jLabel6.setText(\"\"+fp.getUserCalories());\n jLabel7.setText(\"Monthly Expenses\");\n jLabel8.setText(\"\"+user.getExpenses());\n\n\t\t\n\t}", "private void updateUser(SessionEntity sessionEntity, UserEntity userEntity) {\n userEntity.setSessionId(sessionEntity.getSessionId());\n userEntity.setGuestUser(!sessionEntity.isSuccess());\n userEntity.setHasOpenSession(sessionEntity.isSuccess());\n this.userRepository.updateUser(userEntity).subscribe();\n }", "@Override\n\tpublic void updateUser(UserInfo ui) {\n\n\t}", "@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 }", "void updateUserPassword(User user);", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "ResponseMessage updateUser(final User user);", "@Override\n\tpublic ResponseEntity<String> updateUser() {\n\t\treturn null;\n\t}", "public void reAuthenticateUser(User regUser){\n System.out.println(\"Authenticating Google User from DB\");\n UserWithRoles authUser = new UserWithRoles(regUser);\n Authentication authentication = new UsernamePasswordAuthenticationToken(\n authUser, authUser.getPassword(), authUser.getAuthorities()\n );\n SecurityContextHolder.getContext().setAuthentication(authentication);\n }", "private void updateUserAccount() {\n final UserDetails details = new UserDetails(HomeActivity.this);\n //Get Stored User Account\n final Account user_account = details.getUserAccount();\n //Read Updates from Firebase\n final Database database = new Database(HomeActivity.this);\n DatabaseReference user_ref = database.getUserReference().child(user_account.getUser().getUser_id());\n user_ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Read Account Balance\n String account_balance = dataSnapshot.child(Database.USER_ACC_BALANCE).getValue().toString();\n //Read Expire date\n String expire_date = dataSnapshot.child(Database.USER_ACC_SUB_EXP_DATE).getValue().toString();\n //Read Bundle Type\n String bundle_type = dataSnapshot.child(Database.USER_BUNDLE_TYPE).getValue().toString();\n //Attach new Values to the Account Object\n user_account.setBalance(Double.parseDouble(account_balance));\n //Attach Expire date\n user_account.setExpire_date(expire_date);\n //Attach Bundle Type\n user_account.setBundle_type(bundle_type);\n //Update Local User Account\n details.updateUserAccount(user_account);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //No Implementation\n }\n });\n }", "private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "public void update() throws NotFoundException {\n\tUserDA.update(this);\n }", "public void reauthenticateBackendServer() {\n\t\tString token = userLogin();\n\n\t\t// Update the retrieved token in the database.\n\t\tUser user = userRepository.findByEmailIgnoreCase(SecurityUtils.getCurrentUser().getEmail());\n\t\tuser.setBackendToken(token);\n\t\tuserRepository.save(user);\n\n\t\t// Update the user token on the Security context\n\t\tupdateUserToSecurityContext(user, request);\n\t}", "@Override\n public void onResume() {\n super.onResume();\n setUserInfo(((MyApplication) getApplication()).getUser());\n\n UpdateUserInfo.getInstance().addOnUpdateUserInfo(\"my\", this);\n }", "@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n\n //Prevent double bootstrap\n String systemUserName = \"user\";\n if (userRepository.findUserByName(systemUserName).isPresent()) {\n return;\n }\n\n User user = user(systemUserName, \"password\", asList(\"ROLE_USER\"));\n user.addCharacter(\"Avicus\");\n\n user(\"admin\", \"password\", asList(\"ROLE_USER\", \"ROLE_ADMIN\"));\n }", "@Override\n\tpublic Boolean updateUser(User user) {\n\t\treturn null;\n\t}", "private void reauthenticate() {\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n\n if (firebaseUser == null) {\n return;\n }\n\n AuthCredential credential = EmailAuthProvider.getCredential(\n user.getEmail(),\n user.getPassword()\n );\n\n firebaseUser.reauthenticate(credential)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n updateData();\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n FirebaseCrash.report(e);\n Toast.makeText(\n getContext(),\n e.getMessage(),\n Toast.LENGTH_SHORT\n ).show();\n }\n });\n }", "public void setUser(User user) { this.user = user; }", "@Override\r\n\tpublic void update(User user) {\n\t\tuserDao.update(user);\r\n\t}", "private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }", "@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}", "private void updateData() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n\n if (firebaseUser == null) {\n return;\n }\n\n firebaseUser\n .updatePassword(user.getNewPassword())\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n newPassword.setText(Util.EMPTY);\n password.setText(Util.EMPTY);\n\n Toast.makeText(\n getContext(), getResources().getString(R.string.password_updated),\n Toast.LENGTH_SHORT\n ).show();\n }\n }\n })\n .addOnFailureListener((Activity) getContext(), new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n FirebaseCrash.report(e);\n Toast.makeText(\n getContext(),\n e.getMessage(),\n Toast.LENGTH_SHORT\n ).show();\n }\n });\n }", "@Override\n\tpublic void updateLoggedinUsers() throws Exception {\n\n\t}", "@Override\n public void onUpdate(User user) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n final AlertDialog dialog = builder.create();\n LayoutInflater layoutInflater = LayoutInflater.from(getContext());\n final CustomDialogUpdateBinding binding = DataBindingUtil.inflate(layoutInflater,\n R.layout.custom_dialog_update, null, false);\n dialog.setView(binding.getRoot());\n binding.edtUsername.setText(user.getUsername());\n binding.edtPassword.setText(user.getPassword());\n binding.edtPhone.setText(user.getPhone());\n dialog.show();\n\n // get profile and update\n binding.imgUpdate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String UserName = binding.edtUsername.getText().toString().trim();\n String PassWord = binding.edtPassword.getText().toString().trim();\n String Phone = binding.edtPhone.getText().toString().trim();\n user.setUsername(UserName);\n user.setPassword(PassWord);\n user.setPhone(Phone);\n viewModel.update(user);\n dialog.dismiss();\n }\n });\n }", "UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);", "@Override\n\tpublic AuthUser update(AuthUser knownUser) {\n\t\tUser.setLastLoginDate(knownUser);\n\t\treturn knownUser;\n\t}", "@Override\n\tpublic User updateUser(User user) {\n\t\treturn null;\n\t}", "public User update(User updatedInfo);", "@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}", "@Transactional\n private static void updateOneUser(User currentUser, JsonNode currentNode) {\n String password = currentNode.path(\"password\").textValue();\n if (password != null) {\n currentUser.password = Utils.Hasher.hash(password);\n }\n String firstName = currentNode.path(\"first_name\").textValue();\n if (firstName != null)\n currentUser.firstName = firstName;\n String lastName = currentNode.path(\"last_name\").textValue();\n if (lastName != null)\n currentUser.lastName = lastName;\n Long dateTime = currentNode.path(\"birth_date\").asLong();\n if (currentNode.path(\"birth_date\").canConvertToLong()) {\n Date birthDate = new Date(dateTime);\n currentUser.birthDate = birthDate;\n }\n }", "UserEntity updateUser(UserEntity userEntity);", "default void updateContext(\n com.google.cloud.aiplatform.v1.UpdateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateContextMethod(), responseObserver);\n }", "@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}", "private void allowForRefreshToken(ApplicationUser user, HttpServletRequest request) {\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(\n null, null, null);\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n request.setAttribute(\"user\", user);\n }", "void editUser(String uid, User newUser);", "@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}", "public abstract void userContextChange(long ms, \n\t\t\tint age, \n\t\t\tGender gender,\n\t\t\tEducationLevel educationLevel,\n\t\t\tPreviousExperience previousExperience);", "public void updateContext(\n com.google.cloud.aiplatform.v1.UpdateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getUpdateContextMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "private void channelPrivilegedUserUpdate() {\n String userKey = builder.getPersonalUser().getUserKey();\n if (channel.getPrivilegedUsers().size() != 0) {\n ArrayList<String> members = new ArrayList<>();\n for (User user : channel.getPrivilegedUsers()) {\n members.add(user.getId());\n }\n String[] membersArray = members.toArray(new String[0]);\n // send update to server\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), channel.isPrivilege(), membersArray, response -> {\n });\n } else {\n channel.setPrivilege(false);\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), false, null, response -> {\n });\n }\n }", "public UserContext(SecuredUser user) {\r\n\t\tthis.user = user;\r\n\t}", "protected void refreshUserInfo(UserInfo userInfo) {}", "@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}", "public void changeUser() {\n refreshState();\n SystemUserDTO user = null;\n SystemUserDTO systemUser = null;\n systemUser = ctrl.getSystemUser(this.inputTextUser);\n if (systemUser == null) {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.addSystemUser(user);\n } else {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.updateSystemUser(user);\n }\n refreshState();\n this.currentUser = user;\n }", "public void handleUserSwtiched(int newUserId) {\n }", "@PreAuthorize(\"hasRole('ROLE_USER')\")\r\n\tpublic void updateUserAccount(UserAccount account);", "@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}", "public void modifyUser() {\n\t\tUser selectedUser = null;\r\n\t\tselectedUser = tableUser.getSelectionModel().getSelectedItem();\r\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tif (selectedUser != null) {\r\n\t\t\t\tframeManager.modifyUser(user, selectedUser);\r\n\t\t\t\tpesquisar();\r\n\t\t\t} else {\r\n\t\t\t\tAlertUtils.alertErroSelecionar(\"Para modificar um usuario é necessário selecionar um!\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}", "@Override\n\tpublic User getCurrentUser() {\n\t\treturn currentUser;\n\t}", "public static void retrieveAndSaveUserId(Context context) {\r\n\t\t// if (updateRequired(context)) {\r\n\t\tnew LoadAndSaveUserIdFromACServiceTask(context).execute();\r\n\t\t// }\r\n\t}", "void setUser(final ApplicationUser user);", "public void update(User u) {\n\r\n\t}", "public void setSecurityContext() {\n ctx = SecurityContextHolder.getContext();\n SecurityContextHolder.getContext();\n final Authentication authentication = ctx.getAuthentication();\n setName(authentication.getName()); //NOPMD\n }", "User modifyUser(Long user_id, User user);", "public void setCurrentUser(AVUser aVUser) {\n this.currentUser = aVUser;\n }", "@Override\n public void onStart() {\n super.onStart();\n // Check if user is signed in (non-null) and update UI accordingly.\n FirebaseUser currentUser = mAuth.getCurrentUser();\n }", "public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}" ]
[ "0.7018803", "0.6717839", "0.6655909", "0.64494634", "0.6360545", "0.6329185", "0.6268164", "0.6246006", "0.6228221", "0.6150678", "0.61477846", "0.6104042", "0.60106975", "0.60097903", "0.59995466", "0.59523195", "0.5927542", "0.59086365", "0.5901091", "0.58800733", "0.58800733", "0.58673966", "0.5845268", "0.5837217", "0.58180904", "0.5807011", "0.58018744", "0.5799453", "0.57922024", "0.5771627", "0.57608086", "0.5747457", "0.5746727", "0.5742807", "0.5739091", "0.5732023", "0.57116824", "0.57111835", "0.5709175", "0.56829375", "0.56716925", "0.56632024", "0.5661355", "0.565422", "0.5644712", "0.5626443", "0.5616905", "0.5603332", "0.55947834", "0.5592084", "0.55797863", "0.55781674", "0.5572263", "0.5570507", "0.5564093", "0.5563097", "0.5561503", "0.55613214", "0.5547472", "0.55269206", "0.55233765", "0.5522872", "0.55123365", "0.5506621", "0.5506488", "0.5499987", "0.5499574", "0.54979765", "0.54961824", "0.54892915", "0.5483073", "0.5481842", "0.5479374", "0.54683733", "0.5463207", "0.54614836", "0.54535973", "0.54514843", "0.5447434", "0.54398763", "0.5439331", "0.5436728", "0.5436689", "0.54193497", "0.5417144", "0.5417019", "0.5414653", "0.54146075", "0.5402845", "0.5398274", "0.5394423", "0.5394207", "0.5393659", "0.5393292", "0.53914607", "0.53832036", "0.5381709", "0.5369399", "0.5365778", "0.53615206" ]
0.6617727
3
TODO Autogenerated method stub
public Fuel getFuel(long id) { return fuelDao.findOne(id); }
{ "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
public String getNom() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public Object setAge(int i) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public int getAge(int i) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Note: NOT called by FXMLLoader!
public void initialize(@Nullable KeyParameter aesKey) { if (aesKey == null) { if(Main.bitcoin.wallet().isEncrypted()){ log.info("Wallet is encrypted, requesting password first."); // Delay execution of this until after we've finished initialising this screen. Platform.runLater(() -> askForPasswordAndRetry()); return; } else{ initQRCode(); } } else { this.aesKey = aesKey; initQRCode(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void initialize() {\n \n }", "@FXML\n\tprivate void initialize() {\n\t\t\n\t}", "@FXML\n\tprivate void initialize() {\n\t\t\n\t}", "@FXML\n private void initialize() {\n }", "@FXML\n private void initialize() {\n }", "@FXML\n\tprivate void initialize(){\n\t}", "@FXML\n\tprivate void initialize() {\n\n\t}", "@FXML\r\n private void initialize() {\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n }", "@FXML\n\tpublic void initialize()\n\t{\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/view/mainForm.fxml\"));\n Scene sceneOne = new Scene(root);\n primaryStage.setScene(sceneOne);\n primaryStage.show();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "@FXML\n void viewNotes(ActionEvent event) {\n Parent root;\n try {\n //Loads library scene using library.fxml\n root = FXMLLoader.load(getClass().getResource(model.NOTES_VIEW_PATH));\n model.getNotesViewController().setPodcast(this.podcast);\n Stage stage = new Stage();\n stage.setTitle(this.podcast.getTitle()+\" notes\");\n stage.setScene(new Scene(root));\n stage.getIcons().add(new Image(getClass().getResourceAsStream(\"resources/musicnote.png\")));\n stage.setResizable(false);\n stage.showAndWait();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "void chang_scene_method(String FXML_Name) {\n try {\n AnchorPane pane = FXMLLoader.load(getClass().getResource(FXML_Name));\n anchorPane.getChildren().setAll(pane);\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"Error: \" + e);\n }\n }", "public void showPersonOverview() {\n try {\n // Load person overview.\n FXMLLoader loader = new FXMLLoader();\n //URL url=getClass().getResource(\"/fxml/Focustab.fxml\");\n loader.setLocation(MainApp.class.getResource(\"/fxml/Focustab.fxml\"));\n // Pane focusPane = (Pane)FXMLLoader.load(getClass().getResource(\"/fxml/Focustab.fxml\"));\n Pane focusPane=(Pane)loader.load();\n FocusPaneController controller = loader.getController();\n controller.setMainApp(this);\n Scene myScene = new Scene(focusPane);\n primaryStage.setScene(myScene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"Scene.fxml\"));\n primaryStage.setTitle(\"Project 3\");\n primaryStage.setScene(new Scene(root, 600, 600));\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(\n getClass().getResource(\"/View/main.fxml\"));\n Pane root = (Pane)loader.load();\n\n listController = loader.getController();\n listController.start(primaryStage);\n\n primaryStage.setTitle(\"Song Library - Nick Carchio and Adam Romano\");\n primaryStage.setScene(new Scene(root, 750 , 500));\n primaryStage.show();\n\n }", "public FXMLSearchCustomerController() {\n FXMLPath = \"FXMLSearchCustomer.fxml\";\n }", "@FXML\n public void New_List(ActionEvent actionEvent) {\n\n //Here we are going to open a window to create a list.\n //Working!!\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewTodolist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New List\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml_files/home.fxml\"));\n primaryStage.setScene(new Scene(root, 1000, 700));\n primaryStage.show();\n }", "@FXML void initialize() // This method automatically called after the constructor.\n {\n System.out.println(\"Asserting controls...\");\n try\n {\n assert trackNameTextField != null : \"Can't find trackNameTextField\";\n assert albumNameTextField != null : \"Can't find albumNameTextField\";\n assert artistNameTextField != null : \"Can't find artistNameTextField\";\n assert pathTextField != null : \"Can't find pathTextField\";\n assert genreChoiceBox != null : \"Can't find genreChoiceBox\";\n assert saveButton != null : \"Can't find saveButton\";\n assert cancelButton != null : \"Can't find cancelButton\";\n assert browseButton != null : \"Can't find browseButton\";\n\n }\n catch (AssertionError ae)\n {\n System.out.println(\"FXML assertion failure: \" + ae.getMessage());\n Application.terminate();\n }\n // Next, load the list of track from the database and populate the listView.\n System.out.println(\"Populating scene with items from the database...\"); \n @SuppressWarnings(\"unchecked\")\n List<Genre> targetList = genreChoiceBox.getItems(); // Grab a reference to the listView's current item list.\n Genre.readAll(targetList); \n genreChoiceBox.getSelectionModel().selectFirst();\n }", "@FXML\r\n void myBookmarkAction(ActionEvent event) {\r\n try{\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"myDictionaryyy.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.show();\r\n } catch (Exception e){\r\n System.out.println(\"Can't load\");\r\n }\r\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"Main.fxml\"));\n primaryStage.setTitle(\"Faulkner Kiosk\");\n primaryStage.setScene(new Scene(root, 600, 400));\n primaryStage.show();\n\n }", "@FXML\n\tpublic void importRegistrationPair() {\n\t}", "@FXML\n private void loadRegisterView() throws Exception{\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"registerCar.fxml\"));\n Scene scene = new Scene(root);\n getPrimaryStage().setTitle(\"Welcome\");\n getPrimaryStage().setScene(scene);\n }", "public void initStage(Stage primaryStage) throws Exception {\n FXMLLoader loader = new FXMLLoader();\n Parent root = loader.load(getClass().getResourceAsStream(ROOT_PATH));\n Scene scene = new Scene(root);\n scene.getStylesheets().add(getClass().getResource(STYLE_PATH).toExternalForm());\n\n //add resize listener to main scene\n ResizeListener resizeListener = new ResizeListener(primaryStage, scene);\n scene.setOnMouseMoved(resizeListener);\n scene.setOnMousePressed(resizeListener);\n scene.setOnMouseDragged(resizeListener);\n\n //add close listener\n Button exit = (Button) scene.lookup(EXIT_SELECTOR);\n exit.setOnAction(new ExitListener(primaryStage));\n\n //add expand listener\n Button expand = (Button) scene.lookup(EXPAND_SELECTOR);\n expand.setOnAction(new ExpandListener(primaryStage));\n\n //add hide listener\n Button hide = (Button) scene.lookup(HIDE_SELECTOR);\n hide.setOnAction(new HideListener(primaryStage));\n\n //add menu listener\n Button menuOpen = (Button) scene.lookup(MENU_OPEN_SELECTOR);\n Button menuClose = (Button) scene.lookup(MENU_CLOSE_SELECTOR);\n NavigatorListener navigatorListener = new NavigatorListener(scene);\n menuOpen.setOnAction(navigatorListener);\n menuClose.setOnAction(navigatorListener);\n\n //add move listener\n Label title = (Label) scene.lookup(TITLE_SELECTOR);\n MoveWindowListener moveWindowListener = new MoveWindowListener(primaryStage);\n title.setOnMousePressed(moveWindowListener);\n title.setOnMouseDragged(moveWindowListener);\n\n //add icon for history button\n Button history = (Button) scene.lookup(HISTORY_SELECTOR);\n Image historyImage = new Image(getClass().getResourceAsStream(HISTORY_ICON_PATH));\n ImageView imageView = new ImageView(historyImage);\n history.setGraphic(imageView);\n\n //add icon for menuOpen button\n Image menuImage = new Image(Launcher.class.getResourceAsStream(MENU_ICON_PATH));\n imageView = new ImageView(menuImage);\n menuOpen.setGraphic(imageView);\n\n //add icon for menuClose button\n imageView = new ImageView(menuImage);\n menuClose.setGraphic(imageView);\n\n //add icon for about button\n ImageView about = (ImageView) scene.lookup(ABOUT_SELECTOR);\n Image aboutImage = new Image(Launcher.class.getResourceAsStream(ABOUT_ICON_PATH));\n about.setImage(aboutImage);\n\n //init menu list of items\n ListView<String> listView = (ListView<String>) scene.lookup(LIST_SELECTOR);\n listView.setItems(MenuAdapter.init());\n\n //add button font resize\n scene.heightProperty().addListener(new ButtonResizeListener(scene));\n\n //add numeric field font resize\n Label numericLabel = (Label) scene.lookup(NUMERIC_FIELD_SELECTOR);\n numericLabel.textProperty().addListener(new NumericResizeListener(scene));\n\n primaryStage.setTitle(TITLE);\n primaryStage.getIcons().add(new Image(getClass().getResourceAsStream(APP_ICON_PATH)));\n primaryStage.setScene(scene);\n primaryStage.initStyle(StageStyle.TRANSPARENT);\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) {\n\n pStage = primaryStage;\n\n try {\n\n\n Parent root = FXMLLoader.load(getClass().getResource(\"/GUI.fxml\"));\n\n Scene scene = new Scene(root, 600, 400);\n\n primaryStage.setTitle(\"Shopper 5000 Ultimate\");\n\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.show();\n\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "@FXML\n\tpublic void abrirSobre(){\n\t}", "private void setup() throws IOException {\n stage = new Stage();\n\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"FormInput.fxml\"));\n loader.setController(this);\n\n Scene scene = new Scene(loader.load());\n stage.setScene(scene);\n }", "@FXML\r\n\tpublic void viewTest( ) {\r\n\t\ttry {\r\n\t\t\tParent root2 = FXMLLoader.load(getClass().getResource(\"../view/TestView.fxml\"));\r\n\t\t\tMain.stage.setScene(new Scene (root2, 700, 500));\r\n\t\t\tMain.stage.show();\r\n\t\t} catch (Exception exception) {\r\n\t\t\texception.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n // Loads the Home view\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml/Home.fxml\"));\n\n primaryStage.setTitle(\"To-Do Manager\"); // Sets the title of the window\n\n // Sets the Home view as the first scene\n Scene scene = new Scene(root, 854, 480);\n\n // Sets the window's scene\n primaryStage.setScene(scene);\n\n // Prevents user from resizing window ( because of UI reasons )\n primaryStage.setResizable(false);\n\n // Displays the window\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"MainForm.fxml\"));\n primaryStage.setTitle(\"Inventory Management System\");\n primaryStage.setMinHeight(500);\n primaryStage.setMinWidth(800);\n primaryStage.setScene(new Scene(root, 1280, 720));\n primaryStage.show();\n\n\n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws IOException {\n\t Parent root = FXMLLoader.load(getClass().getResource(\"WeatherView.fxml\"));\r\n\t \r\n\t //setting the title of the stage\r\n\t primaryStage.setTitle(\"Weather Forecast\");\r\n\t \r\n\t //Setting the scene in the stage\r\n\t primaryStage.setScene(new Scene(root));\r\n\t \r\n\t //this method shows the stage\r\n\t primaryStage.show();\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t}", "private void createFXScene() {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"toolBarFXML.fxml\"));\n Scene scene = new Scene(root, Color.LIGHTGREY);\n fxPanel.setScene(scene);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n }\n\n }", "@FXML protected void initialize() {\n\t\tinitConfigVar();\n\t\tapplyStyle();\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"DispatcherLogin/DispatcherLoginView.fxml\"));\n primaryStage.setTitle(\"DISPATCHER LOGIN :P\"); // titel\n primaryStage.setScene(new Scene(root));\n primaryStage.show();\n }", "@FXML\n void initialize() {\n setupAppState();\n\n try {\n setupTreeViewButtons();\n } catch (IOException e) {\n Helpers.alertErrorExit(\"Couldn't load a TreeView button image!\");\n }\n\n setupEditor();\n setupNoteTree();\n }", "private Initializable replaceSceneContent(String fxml) throws Exception {\n FXMLLoader loader = new FXMLLoader();\n InputStream in = IndieAirwaysClient.class.getResourceAsStream(fxml);\n loader.setBuilderFactory(new JavaFXBuilderFactory());\n loader.setLocation(IndieAirwaysClient.class.getResource(fxml));\n AnchorPane page;\n try {\n page = (AnchorPane) loader.load(in);\n } finally {\n in.close();\n }\n Scene scene = new Scene(page, WINDOW_WIDTH, WINDOW_HEIGHT);\n stage.setScene(scene);\n stage.sizeToScene();\n return (Initializable) loader.getController();\n }", "private void loadXMLForOtherButtons() {\n try {\n FXMLLoader viewLoader = new FXMLLoader();\n viewLoader.setLocation(getClass().getResource(\"/components/ViewInfo/ViewMainContainer.fxml\"));\n viewMenuRef = viewLoader.load();\n viewMainController = viewLoader.getController();\n viewMainController.bindToMainChildAnchorPane(mainChildAnchorPane);\n\n // System.out.println(\"Going to try and store ref to orderMenu.fxml\");\n\n FXMLLoader newOrderLoader = new FXMLLoader();\n newOrderLoader.setLocation(getClass().getResource(\"/components/PlaceAnOrder/PlaceAnOrderMain/NewOrderContainer.fxml\"));\n orderMenuRef = newOrderLoader.load();\n newOrderContainerController = newOrderLoader.getController();\n newOrderContainerController.bindToMainChildAnchorPane(mainChildAnchorPane);\n\n FXMLLoader updateLoader = new FXMLLoader();\n updateLoader.setLocation(getClass().getResource(\"/components/UpdateInventory/UpdateInventoryContainer.fxml\"));\n updateRef = updateLoader.load();\n updateController = updateLoader.getController();\n updateController.bindToMainChildAnchorPane(mainChildAnchorPane);\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void start(Stage primaryStage) {\n\n\t\ttry {\n\t\t\t// Load root layout from fxml file.\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/view/History.fxml\"));\n\t\t\tScene window = new Scene(root);\n\t\t\tprimaryStage.setScene(window);\n\t\t\tprimaryStage.show();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"ui/main.fxml\")); //FXMLLoader.load(Utilities.getResourceURL(\"ui/main.fxml\"));\r\n primaryStage.setTitle(\"Custom Groovy Game Engine\");\r\n primaryStage.setScene(new Scene(root, 960, 480));\r\n primaryStage.show();\r\n }", "@FXML\n\tprivate void loadFacts(ActionEvent ev) {\n menuBar.getScene().getWindow().hide();\n \n\t\tStage facts = new Stage();\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/FXML/Facts.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tfacts.setScene(scene);\n\t\t\tfacts.show();\n\t\t\tfacts.setResizable(false);\n\t\t\tfacts.centerOnScreen();\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}", "@FXML\n\tprivate void loadFacts(ActionEvent ev) {\n menuBar.getScene().getWindow().hide();\n \n\t\tStage facts = new Stage();\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/FXML/Facts.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tfacts.setScene(scene);\n\t\t\tfacts.show();\n\t\t\tfacts.setResizable(false);\n\t\t\tfacts.centerOnScreen();\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}", "public static void FxmlLoader(String _fxmlFilePath) throws IOException {\n FXMLLoader loader = new FXMLLoader();\n //Construct a FXML loader for the home page.\n loader.setLocation(Main.class.getResource(_fxmlFilePath));\n mainLayout = loader.load();\n Scene scene = new Scene(mainLayout);\n //Construct a main layout for the Main home page\n primaryStage.setScene(scene);\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/application/views/MainMenu.fxml\")); //open up the menu on start up\n Parent root = loader.load();\n MainMenuController controller = loader.getController();\n NameModelManager model = new NameModelManager(); //construct the list of name models1\n CSSManager cssManager = new CSSManager();\n controller.initialise(model, cssManager);\n primaryStage.setTitle(\"Name Sayer\");\n primaryStage.setScene(new Scene(root, 1200, 700));\n primaryStage.show();\n primaryStage.setResizable(false);\n\n primaryStage.setOnCloseRequest(e ->{ //confirmation box for exiting program\n e.consume();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Quit?\");\n alert.setHeaderText(\"Are you sure you want to exit?\");\n alert.setContentText(\"Hit OK to quit\");\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n primaryStage.close();\n System.exit(0);\n }\n });\n }", "public void gotoMyInfo(){\n try {\n FXMLMyInfoController verMyInfo = (FXMLMyInfoController) replaceSceneContent(\"FXMLMyInfo.fxml\");\n verMyInfo.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/sample.fxml\"));\n Parent root = loader.load();\n primaryStage.setTitle(\"Tower Defence\");\n s = new Scene(root, 600, 480);\n primaryStage.setScene(s);\n primaryStage.show();\n MyController appController = (MyController)loader.getController();\n appController.createArena(); \t\t\n\t}", "@Override\r\n public void start(Stage primaryStage) throws Exception \r\n {\n Parent root = FXMLLoader.load(getClass().getResource(\"/view/loginView.fxml\")); \r\n Scene scene = new Scene(root);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }", "public void gotoMyFlights(){\n try {\n FXMLMyFlightsController verMyFlights = (FXMLMyFlightsController) replaceSceneContent(\"FXMLMyFlights.fxml\");\n verMyFlights.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@FXML\n public void initialize() {\n winnerName.setText(this.match.getWinner().getName());\n tournamentName.setText(this.match.getNameTournament());\n roundNumber.setText(this.match.getNbRonde()+\"\");\n firstPlayerScoreSet1.setText(this.match.getPoints(0)+\"\");\n secondPlayerScoreSet1.setText(this.match.getPoints(1)+\"\");\n firstPlayerScoreSet2.setText(this.match.getPoints(2)+\"\");\n secondPlayerScoreSet2.setText(this.match.getPoints(3)+\"\");\n firstPlayerScoreSet3.setText(this.match.getPoints(4)+\"\");\n secondPlayerScoreSet3.setText(this.match.getPoints(5)+\"\");\n namePlayer1.setText(this.match.getPlayer1().getName());\n namePlayer2.setText(this.match.getPlayer2().getName());\n firstPlayerName.setText(this.match.getPlayer1().getName());\n secondPlayerName.setText(this.match.getPlayer2().getName());\n\n\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\n adminLogOutButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n Stage logoutStage = (Stage) adminLogOutButton.getScene().getWindow();\r\n logoutStage.close();\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/sample/view/login.fxml\"));\r\n try {\r\n loader.load();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Stage dashboardStage = new Stage();\r\n Parent root = loader.getRoot();\r\n dashboardStage.setTitle(\"Admin\");\r\n dashboardStage.setScene(new Scene(root));\r\n dashboardStage.show();\r\n //dashboardStage.setResizable(false);\r\n }\r\n });\r\n\r\n\r\n // clickable image view to More Info Window\r\n adminListImage.setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n moreInfo();\r\n }\r\n\r\n private void moreInfo() {\r\n adminListView.getScene().getWindow().hide();\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/sample/view/studentInfo.fxml\"));\r\n try {\r\n loader.load();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Stage studentInfo = new Stage();\r\n Parent root = loader.getRoot();\r\n studentInfo.setTitle(\"More Information\");\r\n studentInfo.setScene(new Scene(root));\r\n studentInfo.show();\r\n //studentInfo.setResizable(false);\r\n }\r\n });\r\n\r\n\r\n\r\n // button to open history window\r\n adminHistoryButton.setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n fullHistory();\r\n }\r\n\r\n private void fullHistory() {\r\n adminListView.getScene().getWindow().hide();\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/sample/view/history.fxml\"));\r\n try {\r\n loader.load();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Stage historyStage = new Stage();\r\n Parent root = loader.getRoot();\r\n historyStage.setTitle(\"History\");\r\n historyStage.setScene(new Scene(root));\r\n historyStage.show();\r\n //historyStage.setResizable(false);\r\n }\r\n });\r\n\r\n }", "@FXML\r\n void initialize() {\r\n \tApplicationMethods.Years(year);\r\n \tjavafx.scene.image.Image i = new javafx.scene.image.Image(\"file:resources/qublogo.png\");\r\n \tImage.setImage(i);\r\n }", "private void loadAllPane(){\n try {\n addNewScene = FXMLLoader.load(getClass().getResource(Constants.ADDNEW_FXML));\n passwordsLoader = new FXMLLoader(getClass().getResource(Constants.PASSWORDS_FXML));\n passwordsScene = passwordsLoader.load();\n generateScene = FXMLLoader.load(getClass().getResource(Constants.GENERATE_FXML));\n } catch (IOException e) {\n e.printStackTrace();\n }\n stackContent.getChildren().addAll(addNewScene, passwordsScene, generateScene);\n }", "@Override\n public void start (Stage startStage) {\n\n// loads all Scenes from FXML files, shows error if unsuccessful\n try {\n mainScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/mainWindow.fxml\")));\n mainScene.setFill(Color.TRANSPARENT);\n menuScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/menuWindow.fxml\")));\n menuScene.setFill(Color.TRANSPARENT);\n addEventScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/addEventWindow.fxml\")));\n addTimelineScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/addTimelineWindow.fxml\")));\n } catch (Exception exception) {\n showError(\"loading GUI\", exception.toString());\n }\n\n// loads visuals (CSS stylesheet and logo)\n stylesheet = new Stylesheet(\"stylesheet.css\");\n logo = new Image(\"/images/icon-main.png\");\n\n// links all JavaFX Nodes defined as static variables, binds Listeners\n loadFXMLElements();\n createListeners();\n\n// starts the main Stage (window) on menu (menuScene)\n window = startStage;\n// window.setTitle(\"Timelines: Menu\");\n window.setScene(menuScene);\n// window.getIcons().add(logo);\n window.initStyle(StageStyle.TRANSPARENT);\n\n window.show();\n\n// creates a new App (back-end), attempts to load data from file, creates success / error user feedback\n try {\n app = new App();\n setMessage(app.loadFromFile() + \": \" + app.timelines.size() + \" Timelines loaded\", false);\n } catch (Exception exception) {\n showError(\"loading data from file\", exception.toString() + \"\\n(Expected file data.txt in the same directory)\");\n }\n\n// draws all Elements in menu\n drawMenuElements(false);\n\n// creates all default back-end variables\n visibleNodes = new LinkedList<>();\n axes = new LinkedList<>();\n shift = 0;\n stretch = 1;\n }", "@FXML\n private void initialize() {\n logo.setImage(new Image(\n FileLoader.class.getResourceAsStream(\"panama_express_logo_big.jpg\")));\n\n }", "public void setStage(String title, String resource) throws IOException, ClassNotFoundException {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(resource));\n root = (AnchorPane)loader.load();\n //figure out which controller to show\n switch (resource){\n case \"../view/admin.fxml\":\n adminController = loader.getController();\n adminController.start(window);\n break;\n case \"../view/nonadmin.fxml\":\n nonAdminController = loader.getController();\n nonAdminController.start(window);\n break;\n case \"../view/login.fxml\":\n controller = loader.getController();\n controller.start(window);\n break;\n case \"../view/openAlbum.fxml\":\n openAlbumController = loader.getController();\n openAlbumController.start(window);\n break;\n case \"../view/searchPhotos.fxml\":\n searchPhotosController = loader.getController();\n searchPhotosController.start(window);\n break;\n case \"../view/slideshow.fxml\":\n slideShowController = loader.getController();\n slideShowController.start(window);\n break;\n default:\n throw new ClassNotFoundException();\n }\n Scene scene = new Scene(root, 714.0, 440.0);\n window.setScene(scene);\n window.setTitle(title);\n window.setResizable(false);\n window.show();\n }", "@FXML\n\tprivate void initialize() {\n\t\tgeneratorService = new GeneratorService();\n\t}", "@FXML\n public void MealAddBtnClicked(){\n //display the correct panes\n subMenuDisplay(MealSubMenuPane);\n MealsAddPane.toFront();\n MenuPane.toFront();\n //load ingredients from the database ingredients that will be set to the ingredients All ingredients cupboard\n //ListView\n loadIngredients();\n searchIngredient.setText(\"\");\n quantityNameLabel.setText(\"\");\n }", "@FXML // This method is called by the FXMLLoader when initialization is complete\n\tvoid initialize() {\n\t\tassert btnOK != null : \"fx:id=\\\"btnOK\\\" was not injected: check your FXML file 'Layout1.fxml'.\";\n\t\tassert imgInsper != null : \"fx:id=\\\"imgInsper\\\" was not injected: check your FXML file 'Layout1.fxml'.\";\n\n\t\tfh = new FileHandler();\n\t\ttrigger = new Trigger();\n\t\ttgrHandler = new TriggerHandler();\n\n\t}", "@FXML\n private void newPlaylist(ActionEvent event){\n Parent root;\n try{\n root = FXMLLoader.load(getClass().getResource(\"/mytunes/gui/view/NewPlaylist.fxml\"));\n Stage stage = new Stage();\n \n stage.setTitle(\"New/Edit Playlist\");\n stage.setScene(new Scene(root, 350,250));\n stage.show();\n stage.setOnHiding(new EventHandler<WindowEvent>() {\n @Override\n public void handle(WindowEvent event) {\n bllfacade.reloadPlaylists();\n init();\n }\n });\n }catch(IOException e){e.printStackTrace();}\n }", "@FXML\n public void MainWindowScene(ActionEvent e) {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"MainWindow.fxml\"));\n Main.mainWindow.setScene(new Scene(root));\n } catch (IOException el) {\n el.printStackTrace();\n }\n }", "@FXML\n void changeToDetailsView(PhotoUnit photoUnit) throws IOException {\n\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/Views/photoView.fxml\"));\n Parent root = loader.load();\n\n Scene scene = new Scene(root);\n\n scene.getStylesheets().add(\"Views/styles.css\");\n Stage primaryStage = (Stage) listView.getScene().getWindow();\n primaryStage.setScene(scene);\n\n //access the controller\n PhotoViewController controller = loader.getController();\n controller.initData(photoUnit);\n\n Image icon = new Image(\"/img/mars.png\");\n primaryStage.getIcons().add(icon);\n primaryStage.setTitle(\" MARS \");\n primaryStage.show();\n\n\n }", "@FXML private void initialize(){\n\n\t\t//Attach Event Handlers\n\t\tbtnLoadLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonLoadLogClicked();\n\t\t\t}\n\t\t});\n\n\t\tbtnClearLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonClearClicked();\n\t\t\t}\n\t\t});\n\n\t\tbtnSaveLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonSaveClicked();\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n //Cargar primer escena\n Stage inicio = primaryStage;\n Parent rootInicio = FXMLLoader.load(getClass().getResource(\"vistas/inicio.fxml\"));\n inicio.setTitle(\"Baúl de los recuerdos\");\n inicio.setScene(new Scene(rootInicio, 790, 790));\n inicio.setResizable(false);\n //inicio.setResizable(false);\n inicio.show();\n\n }", "@FXML\n private void loadDriverView() throws Exception{\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"driverTools.fxml\"));\n Scene scene = new Scene(root);\n getPrimaryStage().setTitle(\"Welcome\");\n getPrimaryStage().setScene(scene);\n }", "@FXML\n private void initialize() {\n\n setUpPlayerTable();\n }", "@FXML public void toLayer()\t\t\n\t{\n\t}", "void loadFXMLElements () {\n Parent menuRoot = menuScene.getRoot();\n Parent mainRoot = mainScene.getRoot();\n\n// all ScrollPanes\n mainPane = (ScrollPane) mainScene.getRoot().lookup(\"#main_scrollPane\");\n menuPane = (ScrollPane) menuScene.getRoot().lookup(\"#menu_scrollPane\");\n persistentPane = (ScrollPane) mainScene.getRoot().lookup(\"#main_persistentScrollPane\");\n\n// top bar controls\n mainBarClose = (Button) mainRoot.lookup(\"#main_barClose\");\n mainBarMaximise = (Button) mainRoot.lookup(\"#main_barMaximise\");\n mainBarMinimise = (Button) mainRoot.lookup(\"#main_barMinimise\");\n\n menuBarClose = (Button) menuRoot.lookup(\"#menu_barClose\");\n menuBarMaximise = (Button) menuRoot.lookup(\"#menu_barMaximise\");\n menuBarMinimise = (Button) menuRoot.lookup(\"#menu_barMinimise\");\n\n// all Nodes in Menu\n messageLabel = (Label) menuRoot.lookup(\"#menu_messageLabel\");\n exitButton = (Button) menuRoot.lookup(\"#menu_goToMain\");\n addTimelineButton = (Button) menuRoot.lookup(\"#menu_addTimeline\");\n addEventButton = (Button) menuRoot.lookup(\"#menu_addEvent\");\n saveButton = (Button) menuRoot.lookup(\"#menu_save\");\n deleteButton = (Button) menuRoot.lookup(\"#menu_delete\");\n\n cancelTimelineButton = (Button) menuRoot.lookup(\"#menu_exitAddTimeline\");\n cancelEventButton = (Button) menuRoot.lookup(\"#menu_exitAddEvent\");\n confirmDeleteButton = (Button) menuRoot.lookup(\"#menu_confirmDelete\");\n cancelDeleteButton = (Button) menuRoot.lookup(\"#menu_cancelDelete\");\n\n// new Timeline Nodes\n timeline_nameField = (TextField) addTimelineScene.lookup(\"#timeline_nameField\");\n timeline_addButton = (Button) addTimelineScene.lookup(\"#timeline_createButton\");\n timeline_editButton = (Button) addTimelineScene.lookup(\"#timeline_editButton\");\n timeline_addLabel = (Label) addTimelineScene.lookup(\"#timeline_addLabel\");\n timeline_editLabel = (Label) addTimelineScene.lookup(\"#timeline_editLabel\");\n\n// new Event Nodes\n timelineChoice = (ChoiceBox) addEventScene.lookup(\"#event_timelineChoice\");\n event_nameField = (TextField) addEventScene.lookup(\"#event_nameField\");\n event_startDayField = (TextField) addEventScene.lookup(\"#event_startDayField\");\n event_startMonthField = (TextField) addEventScene.lookup(\"#event_startMonthField\");\n event_startYearField = (TextField) addEventScene.lookup(\"#event_startYearField\");\n event_endDayField = (TextField) addEventScene.lookup(\"#event_endDayField\");\n event_endMonthField = (TextField) addEventScene.lookup(\"#event_endMonthField\");\n event_endYearField = (TextField) addEventScene.lookup(\"#event_endYearField\");\n event_notesField = (TextField) addEventScene.lookup(\"#event_notesField\");\n event_addButton = (Button) addEventScene.lookup(\"#event_createButton\");\n event_editButton = (Button) addEventScene.lookup(\"#event_editButton\");\n event_addLabel = (Label) addEventScene.lookup(\"#event_addLabel\");\n event_editLabel = (Label) addEventScene.lookup(\"#event_editLabel\");\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tGridPane root = FXMLLoader.load(getClass().getResource(\"Sample.fxml\"));\n\t\t\tScene scene = new Scene(root,400,400);\n\t\t\t\n\t\t\t//scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\t\t\t\n\t}", "@FXML\n public void Load_List(ActionEvent actionEvent) {\n }", "@Override\n public void start(Stage stage) throws Exception {\n\n this.stage = stage;\n log.info(\"Inside Start \");\n PropertiesManager pm = new PropertiesManager();\n currentLocale = Locale.getDefault();\n //loads properties\n ConfigBean cb = pm.loadTextProperties(\"src/main/resources\", \"configuration\");\n log.info(\"Loaded Properties \");\n\n //if file was loaded properly, open the main controller\n if (cb != null) {\n FXMLLoader loader = new FXMLLoader();\n loader.setResources(ResourceBundle.getBundle(\"Bundle\", currentLocale));\n URL path2 = Paths.get(\"src/main/resources/fxml/main.fxml\").toUri().toURL();\n loader.setLocation(path2);\n stage.getIcons().add(\n new Image(MainApp.class\n .getResourceAsStream(\"/images/email.png\")));\n\n Scene scene2 = new Scene(loader.load());\n\n stage.setTitle(\"Jag Client\");\n stage.setResizable(false);\n stage.setScene(scene2);\n stage.show();\n } else { \n //if file was not loaded properly and information was incorrect then\n //load config form\n URL path = Paths.get(\"src/main/resources/fxml/config.fxml\").toUri().toURL();\n FXMLLoader fxmlloader = new FXMLLoader();\n fxmlloader.setLocation(path);\n\n fxmlloader.setResources(ResourceBundle.getBundle(\"Bundle\", currentLocale));\n\n Scene scene = new Scene(fxmlloader.load());\n\n stage.setTitle(\"Config\");\n stage.setResizable(false);\n stage.setScene(scene);\n stage.show();\n\n }\n\n }", "@FXML\n void initialize() {\n m_uiManager = UIManager.getInstance();\n m_imagePath = User.DEFAULT_PICTURE;\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"mainMenu/mainMenu.fxml\"));\n primaryStage.setTitle(\"Hello World\");\n Scene s =new Scene(root, defaultWindowWidth, defaultWindowHight);\n s.getStylesheets().add(getClass().getResource(\"css/main.css\").toExternalForm());\n primaryStage.setScene(s);\n primaryStage.setMinHeight(480);\n primaryStage.setMinWidth(480);\n primaryStage.show();\n }", "@FXML\n private void newSong(ActionEvent event) {\n Parent root; \n try{\n root = FXMLLoader.load(getClass().getResource(\"/mytunes/gui/view/NewSong.fxml\"));\n Stage stage = new Stage();\n \n stage.setTitle(\"New Song\");\n stage.setScene(new Scene(root, 550,450));\n stage.show();\n stage.setOnHiding(new EventHandler<WindowEvent>() {\n @Override\n public void handle(WindowEvent event) {\n bllfacade.reloadSongs();\n init();\n }\n });\n } catch (IOException ex) {\n Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n public void start(Stage primaryStage) {\n }", "@Override\n public void start(Stage stage) throws Exception \n {\n \n FXMLLoader appMainLoader = new FXMLLoader(getClass().getResource(Resources.app_main));\n\n Parent root = (Parent)appMainLoader.load();\n root.prefHeight(600);\n root.prefWidth(1100);\n\n AppMainController appMainController = appMainLoader.getController();\n appMainController.setAppLauncher(this);\n\n// stage.initStyle(StageStyle.UNDECORATED);\n stage.setResizable(false);\n stage.setMaxHeight(600);\n stage.setMaxWidth(1000);\n\n Scene scene = new Scene(root, Color.TRANSPARENT);\n scene.getStylesheets().add(Resources.app_css);\n \n stage.setTitle(\"Hims-Lab Equipment Interface\");\n stage.setScene(scene);\n stage.show();\n //init();\n }", "@FXML\n private void loadMainMenu() throws IOException {\n Parent parent = FXMLLoader.load(getClass().getResource(MAIN_MENU_FXML));\n Stage mainStage = StageInitializer.parentStage;\n mainStage.getScene().setRoot(parent);\n }", "@FXML\n @Override\n public void initialize() {\n populateTable();\n\n }", "@Override\npublic void populateScene() {\n\t\n}", "@FXML\n private void loadMainScreen(ActionEvent event) {\n\t\tSystem.out.println(\"loading MainScreen \" + getClass().getResource(RESOURCE_PATH + \"MainScreen.fxml\"));\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(RESOURCE_PATH + \"MainScreen.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tscene.getStylesheets().add(getClass().getResource(RESOURCE_PATH + \"application.css\").toExternalForm());\n\t\t\tStage window = (Stage)((Node)event.getSource()).getScene().getWindow();\n\t \n\t window.setScene(scene);\n\t window.show();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@FXML\n\tprivate void initialize() {\n\n\t\thelp.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's help button\");\n\t\t\t\tshowRootDocumentScreen(ID_HELP);\n\t\t\t}\n\t\t});\n\t\tcomparator.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's comparator button\");\n\t\t\t\tshowRootDocumentScreen(ID_COMPARATOR);\n\t\t\t}\n\t\t});\n\t\tsetting.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's setting button\");\n\t\t\t\tshowRootDocumentScreen(ID_SETTING);\n\t\t\t}\n\t\t});\n\t\tsubmitButton.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's submit button\");\n\n\t\t\t\tScreensContainer container = new ScreensContainer();\n\t\t\t\tcontainer.registerScreen(ID_SHOWPROBLEM, file_showproblem);\n\t\t\t\tcontainer.registerScreen(ID_SUBMITCODE, file_submitcode);\n\n\t\t\t\tStage dialogStage = new Stage();\n\t\t\t\tdialogStage.setTitle(\"在线提交\");\n\t\t\t\tdialogStage.initModality(Modality.WINDOW_MODAL);\n\t\t\t\tdialogStage.initOwner(rootLayout.getScene().getWindow());\n\n\t\t\t\tScene scene = new Scene(container);\n\t\t\t\tdialogStage.setScene(scene);\n\t\t\t\tcontainer.setScreen(ID_SHOWPROBLEM);\n\n\t\t\t\tdialogStage.showAndWait();\n\n\t\t\t}\n\t\t});\n\t\ttabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.SELECTED_TAB);\n\t}", "private void connected(){\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/ui/dashboard.fxml\"));\n Parent root ;\n try {\n root = loader.load();\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n DashboardController dashboardController = loader.getController();\n dashboardController.setData(loginManager.getFacadeManager());\n changeScene(root,\"Home\");\n }", "@FXML\n void goToRequestedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the requested items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"RequestedItems.fxml\"));\n\n BorderPane requestedItems = (BorderPane) fxmlLoader.load();\n Scene requestedItemsScene = new Scene(requestedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage requestedItemsStage = new Stage();\n\n requestedItemsStage.setScene(requestedItemsScene);\n requestedItemsStage.setTitle(Main.REQUESTED_ITEMS_WINDOW_TITLE);\n requestedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the requested items scene and wait for it to be closed\n requestedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "default void apriStage(String fxml, Object controller) throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(fxml));\n loader.setController(controller);\n Parent root = loader.load();\n Stage stage = new Stage();\n stage.getIcons().add(new Image(getClass().getResourceAsStream(\"resources/logo.png\")));\n stage.setTitle(\"C3\");\n stage.setScene(new Scene(root));\n stage.showAndWait();\n }", "@FXML\n public void setUp() {\n players = db.getPlayers();\n creatures = db.getCreatures();\n Random rand = new Random();\n creatureId = rand.nextInt(creatures.size()); \n playerId = rand.nextInt(players.size());\n CreaturePic.setImage(db.getCreaturePic(creatures.get(creatureId).getId()));\n PlayerPic.setImage(db.getPlayerPic(players.get(playerId).getId()));\n try{\n int backgroundNumber = rand.nextInt(10) + 21; //21 - 30\n \n byte[] array = db.getPicture(backgroundNumber);\n ByteArrayInputStream bis = new ByteArrayInputStream(array);\n BufferedImage b = ImageIO.read(bis);\n Image backim = SwingFXUtils.toFXImage(b,null);\n BackgroundPic.setFitHeight(720);\n BackgroundPic.setFitWidth(1280);\n BackgroundPic.setImage(backim);\n setTextFields();\n }\n catch(Exception e) {\n System.out.println(e);\n }\n }", "@Override\n public void start(Stage stage) throws IOException {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(MainScreen.class.getResource(\"MainScreen.fxml\"));\n\n\n Parent root = fxmlLoader.load();\n MainScreen mainScreen = fxmlLoader.getController();\n Scene scene = new Scene(root);\n\n stage.setTitle(\"Inventory Management System\");\n stage.setScene(scene);\n stage.show();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n public void initialize() {\n initArray();\n }", "@FXML\r\n private void handleOverview() throws SQLException, IOException{\r\n Parent home_page_parent = FXMLLoader.load(getClass().getResource(\"overview.fxml\"));\r\n Scene home_page_scene = new Scene(home_page_parent);\r\n Stage app_stage = (Stage) ((Node) Overview).getScene().getWindow();\r\n app_stage.setScene(home_page_scene);\r\n app_stage.show();\r\n \r\n \r\n }", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n URL url = TwitterFX.class.getClassLoader().getResource(\"twitterfx.fxml\");\n loader.setLocation(url);\n rootLayout = (AnchorPane) loader.load();\n buildLayout();\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout, 600,400);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\r\n private void initialize() {\r\n addButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n handleOk();\r\n }\r\n });\r\n\r\n cancelButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n handleCancel();\r\n }\r\n });\r\n }", "@FXML\n void goToReservedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the reserved items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ReservedItems.fxml\"));\n\n BorderPane reservedItems = (BorderPane) fxmlLoader.load();\n Scene reservedItemsScene = new Scene(reservedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage reservedItemsStage = new Stage();\n\n reservedItemsStage.setScene(reservedItemsScene);\n reservedItemsStage.setTitle(Main.RESERVED_ITEMS_WINDOW_TITLE);\n reservedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the reserved items scene and wait for it to be closed\n reservedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n\n }", "public void initRootLayout() {\n try {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApplication.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n \t}\n }", "public static void loadFxMLFile(String fxmlPath, Object controller) {\n FXMLLoader fxLoader = new FXMLLoader( ClassLoader.getSystemResource(fxmlPath));\n fxLoader.setRoot(controller);\n fxLoader.setController(controller);\n\n try {\n fxLoader.load();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n }", "@FXML\n void goToChooseImagePage(ActionEvent event) {\n try {\n // Create a FXML loader for loading the choose image FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"Avatar.fxml\"));\n\n BorderPane chooseImagePage = (BorderPane) fxmlLoader.load();\n Scene chooseImagePageScene = new Scene(chooseImagePage, Main.LARGE_WINDOW_WIDTH, Main.LARGE_WINDOW_HEIGHT);\n Stage chooseImagePageStage = new Stage();\n\n chooseImagePageStage.setScene(chooseImagePageScene);\n chooseImagePageStage.setTitle(Main.CHOOSE_IMAGE_PAGE_WINDOW_TITLE);\n chooseImagePageStage.initModality(Modality.APPLICATION_MODAL);\n // Show the choose image scene and wait for it to be closed\n chooseImagePageStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "private void affichagePeuDeQuestions() {\n\t\ttry {\n\t\t\tstage = (Stage)buttonRetour.getScene().getWindow();\n\t\t\tsetDynamicPane(FXMLLoader.load(getClass().getResource(\"FenetrePasAssezDeQuestions.fxml\")));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@FXML protected void editPatient(ActionEvent event) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"EditPatientInformation.fxml\"));\n Stage stage = new Stage();\n Scene scene = new Scene(root);\n \n stage.setScene(scene);\n stage.show();\n }", "@FXML\n public void initialize() {\n HomeController homeController = new HomeController();\n ArrayList<BriefStation> stations = (ArrayList<BriefStation>) homeController.getBriefStations();\n ObservableList<BriefStation> items = FXCollections.observableArrayList(stations);\n list.setItems(items);\n list.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"sample.fxml\"));\n addExitOnEsc(primaryStage);\n primaryStage.setTitle(\"Hello World\");\n primaryStage.setScene(new Scene(root, 300, 275));\n primaryStage.show();\n\n }", "@Override\n public void start(Stage primaryStage) throws IOException {\n Main.primaryStage = primaryStage;\n Main.primaryStage.setTitle(\"American Travel Bucketlist\");\n\n //Call the extension of the FXMLLoader for the MainView.\n showMainView();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n\n Music.playBackGroundMusic();\n\n try {\n SpellingListData.getInstance();\n _revisionData.loadFailed();\n _overallStats.loadStats();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n _primaryStage = primaryStage;\n\n Parent root = FXMLLoader.load(getClass().getResource(\"MainMenuV2.fxml\"));\n primaryStage.setTitle(\"VOXSPELL\");\n primaryStage.setScene(new Scene(root, 1200, 800));\n primaryStage.setResizable(false);\n primaryStage.show();\n\n\n }", "@FXML\n private void onNewTransfer() {\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getClassLoader().getResource\n (\"main/resources/view/edit-stock-transfer.fxml\"));\n Stage stage = new Stage();\n stage.setScene(new Scene(loader.load()));\n stage.setResizable(false);\n stage.initModality(Modality.WINDOW_MODAL);\n stage.initOwner(container.getScene().getWindow());\n\n EditStockTransferController controller = loader.getController();\n controller.setStage(stage);\n\n stage.showAndWait();\n getData();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@FXML\n public void viewKeepUpGoodWork() throws IOException {\n System.out.println(\"viewing KeepUpGoodWork page\");\n Parent windowKeepUpGoodWork;\n windowKeepUpGoodWork = FXMLLoader.load(getClass().getResource(\"KeepUpGoodWork.fxml\"));\n Stage mainStage = Gui.parentWindow;\n mainStage.getScene().setRoot(windowKeepUpGoodWork);\n }", "@FXML\n private void seeAllTagsEvent() throws IOException {\n loadNextScene(rootPane, \"/views/AllTagPane.fxml\");\n }" ]
[ "0.7537394", "0.749767", "0.749767", "0.7493775", "0.7493775", "0.7296251", "0.72954017", "0.72315395", "0.71236557", "0.66634166", "0.66626865", "0.6625633", "0.66143733", "0.6613892", "0.6605761", "0.65731543", "0.6561856", "0.6536009", "0.6523428", "0.6507799", "0.6491117", "0.6484427", "0.64649916", "0.64286596", "0.6419325", "0.64063823", "0.639536", "0.6393906", "0.63901854", "0.63897336", "0.6378269", "0.6375544", "0.6343106", "0.6341677", "0.63203466", "0.63165987", "0.6309569", "0.62973064", "0.6286476", "0.62768954", "0.62768954", "0.6275775", "0.62725514", "0.6265429", "0.6265371", "0.6252322", "0.6249106", "0.6243066", "0.6242001", "0.62377703", "0.62373555", "0.62373406", "0.6234523", "0.62250686", "0.6224449", "0.6219713", "0.6205349", "0.6205114", "0.62003654", "0.6189958", "0.61896306", "0.61776686", "0.61759746", "0.616661", "0.6160605", "0.61573136", "0.6151824", "0.6151643", "0.61513317", "0.61467916", "0.6136303", "0.6124594", "0.61242104", "0.6123494", "0.61116105", "0.6103862", "0.60917485", "0.6091099", "0.6089949", "0.60872453", "0.60762703", "0.6068057", "0.606747", "0.6062615", "0.6054459", "0.60528225", "0.60524374", "0.60518867", "0.6043797", "0.60433453", "0.6034933", "0.60238576", "0.60231656", "0.60205805", "0.6017938", "0.60158557", "0.601444", "0.6013483", "0.6010354", "0.60077345", "0.6001707" ]
0.0
-1
set weather show cancel button, if true,the Dialog show two buttons
public ComDialogBuilder showCancelButton(boolean showCancelButton) { this.showCancelButton = showCancelButton; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "public void cancel() { Common.exitWindow(cancelBtn); }", "@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }", "public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n attchmentFIleName = \"NAN\";\n\n\n dialog.cancel();\n }", "public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}", "void btnCancel();", "private void decorateCancelButton() {\n cancelButton.setVisible(false);\n ResourceUtils.resButton(cancelButton, Res.getString(\"cancel\"));\n cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196)));\n cancelButton.setForeground(new Color(73, 113, 196));\n cancelButton.setFont(new Font(\"Dialog\", Font.BOLD, 10));\n \n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n cancelTransfer();\n }\n });\n \n cancelButton.addMouseListener(new MouseAdapter() {\n public void mouseEntered(MouseEvent e) {\n cancelButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\n \n }\n \n public void mouseExited(MouseEvent e) {\n cancelButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }\n });\n \n }", "public static void setupCancelButton() {\n if (imageAdapter.getSelectedSize() == 0) {\n // always set to invisible\n cancel.hide();\n return;\n }\n // set button to be visible\n cancel.show();\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tcancel = true;\n\t\t\tcancelButton.setVisibility(View.GONE);\n\t\t\texitButton.setVisibility(View.VISIBLE);\n\t\t\tstartButton.setVisibility(View.VISIBLE);\n\t\t\tbar.setVisibility(View.GONE);\n\t\t\ttextView.setVisibility(View.GONE);\n\t\t}", "@Override\n public void onBtnClick() {\n dialog.dismiss();\n getMusicID(\"cancel\");\n }", "private void jButtonCancelActionPerformed(ActionEvent e)\n {\n \tsetVisible(false);\n }", "public void onCancelButtonClick() {\n close();\n }", "public void setAsDoneDialog() {\n okButton.setText(\"Done\");\n cancelButton.setVisible(false);\n }", "void onCancelClicked();", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "protected void botonCancelarPulsado() {\n\t\tthis.setVisible(false);\n\t\tlimpiarCampos();\n\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "public void onCancelClick()\r\n {\r\n\r\n }", "private void onCancelButtonPressed() {\r\n disposeDialogAndCreateNewGame(); // Reset board,\r\n game.setCanPlaceMarks(false); // But don't start a new game.\r\n }", "private void cancelAppointment()\n {\n new AlertDialog.Builder(mCtx)\n .setTitle(mCtx.getResources().getString(R.string.cancel_heading))\n .setMessage(mCtx.getResources().getString(R.string.cancle_alert))\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }", "public void cancelDialog() {dispose();}", "public void onClick(DialogInterface dialog, int id) {\n Changebtn.setText(\"Change\");\n dialog.cancel();\n }", "@Override\n public void OnCancelButtonPressed() {\n }", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"업데이트 버튼클릭됨\", Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }", "public void onCancelClicked() {\n close();\n }", "private void cancel(){\n\t\trefreshInformationsFromTableView(null);\n\t\thidePassword();\n\t\tclearFields();\n\t\tchangeCancelButton.setText(\"Zmień hasło\");\n\t\tnewUser = false;\n\t}", "private void btn_CancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_CancelarActionPerformed\n this.setVisible(false);\n }", "void onCancelButtonPressed();", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n nearest_city = \"\";\n dialogInterface.cancel();\n }", "@Override\n public void OnCancelButtonPressed() {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTrafficVioQueryDlg.this.cancel();\n\t\t\t}", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void setPositiveButton() {\n\t\t\t\t\t\t\t\t\tif (SystemConfig.loginResponse.getDutyFlag().equals(\"on\")) {\r\n\t\t\t\t\t\t\t\t\t\tsendForService(\"1\", str);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(ConstantValue.PROGRESS_CLOSE);\r\n\t\t\t\t\t\t\t\t\t\tMessage message = Message.obtain();\r\n\t\t\t\t\t\t\t\t\t\tmessage.obj = \"下班状态不可以改派任务!\";\r\n\t\t\t\t\t\t\t\t\t\tmessage.what = ConstantValue.ERROE;\r\n\t\t\t\t\t\t\t\t\t\thandler.sendMessage(message);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// for update by haoyun\r\n\t\t\t\t\t\t\t\t\t// 20130401 end\r\n\t\t\t\t\t\t\t\t}", "private void onOK() {\n isOkClicked = true;\n dispose();\n }", "void CloseOkDialog();", "public void clickOnCancelButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Cancel\"));\r\n\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n task.cancel(true); //meng- cancel AsincTask\n pd.dismiss(); //menghilangkan progress dialog\n }", "HasClickHandlers getCancelButton();", "public void btnAbort(View v){\n RadioGroup Radioone = (RadioGroup) findViewById(R.id.WireOne);\n RadioButton WireOneColor = ((RadioButton) findViewById(Radioone.getCheckedRadioButtonId()));\n String frk = \"\";\n frk = getGlobals(\"FRKLit\", frk);\n String bat = \"\";\n int battery = 0;\n battery = Integer.parseInt(getGlobals(\"Batteries\", bat));\n\n\n\n if (WireOneColor.getText().equals(\"Blue\")) {\n abort = \"A\";\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.VISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.VISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.VISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.VISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Hold!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n //This is done.\n } else{\n if (battery > 2 && frk.equals(\"Yes\")){\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.INVISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.INVISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.INVISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.INVISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Release!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n } else {\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.VISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.VISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.VISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.VISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Hold!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n }\n }\n\n }", "@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}", "public void Confirm(){\n new AlertDialog.Builder(MapsActivity.this)\n .setTitle(\"Confirm Location\")\n .setMessage(\"Are you sure about this location?\")\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // continue with delete\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }", "public void setCancelButtonVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_cancelButton_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_cancelButton_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setCancelButtonVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int id) {\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }", "@FXML\r\n void actionCancelButton(ActionEvent event) throws IOException {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Alert\");\r\n alert.setContentText(\"Do you want to cancel your changes and return to the main screen?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n returnToMainScreen(event);\r\n }\r\n }", "public void cancelar() {\n setCancelado(true);\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "public void onCancelClicked(View v) {\n\t\tToast.makeText(getApplicationContext(), \"Cancelled\", Toast.LENGTH_SHORT)\n\t\t\t\t.show();\n\t\t// Close the activity.\n\t\t/*\n\t\t * if (MainActivity.sharedPreferences.getBoolean(MainActivity.MY_BOO,\n\t\t * true)){ Intent i = new Intent(this, MainActivity.class);\n\t\t * MainActivity.sharedPreferences.edit().putBoolean(MainActivity.MY_BOO,\n\t\t * true).commit(); startActivity(i); finish(); } else{ finish(); }\n\t\t */\n\t\tfinish();\n\t}", "@Override\n public void onCancel(AmbilWarnaDialog dialog){\n }", "public void setCancelButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_cancelButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_cancelButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_cancelButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setCancelButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "@SuppressWarnings(\"serial\")\n\tprivate void cancelOkHandler(Button cancel,Button ok)\n\t{\n\t\tok.addClickListener(new ClickListener() \n {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) \n\t\t\t{\n\t\t\t\terrorMessages.setVisible(false);\n\t\t\t\tif (editable)\n\t\t\t\t{\n\t\t\t\t\tif (((!(tf0.getValue().toString().trim().length() > 0))||(tf0.getValue().toString().equals(\"\"))||(tf0.getValue()==null)||(sf6.getValue()==null)||(sf1.getValue()==null)||(df3.getValue()==null)))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((!(tf0.getValue().toString().trim().length() > 0))||(tf0.getValue().toString().equals(\"\"))||(tf0.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Wrong input on Name field(Name can not be empty!).\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((sf1.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"I need you to tell me the Customer!\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((sf6.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Active field can't be empty!\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ((df3.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"I need the Start Date from you.\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!isfloat(tf7.getValue().toString())&&(!tf7.getValue().toString().equals(\"\"))||tf7.getValue().toString().length()>5)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Budget should be a number with a max of 5 digits\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!(checkdates(df3.getValue(),df4.getValue())&&checkdates(df3.getValue(),df5.getValue())&&checkdates(df5.getValue(),df4.getValue())))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!checkdates(df3.getValue(),df4.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"End date can't be before Start date.\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!checkdates(df3.getValue(),df5.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Deadline should be between start/end(check Deadline).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!checkdates(df5.getValue(),df4.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Deadline should be between start/end(check Deadline).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\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\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(( Mode.equals(\"New Project\"))||( Mode.equals(\"Edit\")))\n\t\t\t\t\t \t{\n\t\t\t\t\t\t\t\t\tsetProject();\n\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t//Chekare an oles oi hmeromhnies twn tasks sou einai swstes\n\t\t\t\t\t\t\t\tif (checkProjectTaskDates(project))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdb.projectModifier(Mode, project, taskManager);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (SQLException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tErrorWindow wind = new ErrorWindow(e); \n\t\t\t\t\t\t\t\t UI.getCurrent().addWindow(wind);\t\n\t\t\t\t\t\t\t\t e.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tproject_container.removeAllItems();\n\t\t\t\t\t\t\t\t\tgntTraineeProjectUI.containerFiller(project_table,project_container);\n\t\t\t\t\t\t\t\t\tproject_table.setContainerDataSource(project_container);\n\t\t\t\t\t\t\t\t\tclose();\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\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Tasks/project dates mismatch(check task/project dates).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}\n });\n\t\t\n\t\tcancel.addClickListener(new ClickListener() \n {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) \n\t\t\t{\n\t\t\t\terrorMessages.setVisible(false);\n\t\t\t\t close();\n\t\t\t\t\n\t\t\t}\n });\n\t}", "public void addCancelButton() {\r\n mButtons.add(mCancelButton);\r\n\r\n mCancelButton.addClickListener(new ModernClickListener() {\r\n @Override\r\n public void clicked(ModernClickEvent e) {\r\n hide(e);\r\n }\r\n });\r\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "public void setCancelButtonVisible(boolean visible) {\r\n\t\tif (_cancelButton != null)\r\n\t\t\t_cancelButton.setVisible(visible);\r\n\t}", "@FXML\n void cancelEventEdit () {\n\n// exits to Menu\n exitAddWindow();\n\n// changes Buttons and Labels from Edit to Add mode\n event_addButton.setVisible(true);\n event_addLabel.setVisible(true);\n event_editButton.setVisible(false);\n event_editLabel.setVisible(false);\n\n// re-binds the Button to Add window functionality\n cancelEventButton.setOnAction(cancelEvent -> exitAddWindow());\n\n setMessage(\"Exited Edit mode without any changes.\", false);\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\ttoastMessage(\"Setup cancelled\");\n\t\t\t\tdialog.cancel();\n\t\t\t}", "public NewCityDialog(MainWindow owner, boolean showCancelOption) {\r\n\t\tsetText(owner.guiStrings.get(\"welcome.caption\"));\r\n\t\tthis.owner = owner;\r\n\t\t\r\n\t\tVerticalPanel vp1 = new VerticalPanel();\r\n\t\tHorizontalPanel hp1 = new HorizontalPanel();\r\n\t\tvp1.add(hp1);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\tif (canvas == null){\r\n\t\t\tWindow.alert(\"canvs not suported\");\r\n\t\t}\r\n\t\tcanvas.setWidth(\"360px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(360);\r\n\r\n\t\tcanvas.setHeight(\"300px\");\r\n\t\tcanvas.setCoordinateSpaceHeight(300);\r\n\t\t\r\n\t\thp1.add(canvas);\r\n\t\t\r\n\t\tVerticalPanel levelBox = new VerticalPanel();\r\n\t\thp1.add(levelBox);\r\n\t\t\r\n\t\tHorizontalPanel buttonPane = new HorizontalPanel();\r\n\t\tvp1.add(buttonPane);\r\n\r\n\t\tengine = new Micropolis();\r\n\t\tnew MapGenerator(engine).generateNewCity();\r\n\t\t\r\n\t\tmapPane = new OverlayMapView(engine,canvas);\r\n\t\t\r\n\t\t//drawArea.add(mapPane, BorderLayout.CENTER);*/\r\n\t\t\r\n\t\tRadioButton radioBtn;\r\n\t\tfor (int lev = GameLevel.MIN_LEVEL; lev <= GameLevel.MAX_LEVEL; lev++) {\r\n\t\t\tfinal int x = lev;\r\n\t\t\tradioBtn = new RadioButton(\"level\",owner.guiStrings.get(\"menu.difficulty.\" + lev));\r\n\t\t\tradioBtn.addClickHandler(new ClickHandler() {\r\n\t\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tsetGameLevel(x);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tlevelBox.add(radioBtn);\r\n\t\t\tlevelBtns.put(lev, radioBtn);\r\n\t\t}\r\n\t\tsetGameLevel(GameLevel.MIN_LEVEL);\r\n\r\n\t\tButton btn;\r\n\t\tbtn = new Button(owner.guiStrings.get(\"welcome.previous_map\"),new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tonPreviousMapClicked();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonPane.add(btn);\r\n\t\tbtn.setEnabled(false);\r\n\t\tpreviousMapBtn = btn;\r\n\r\n\t\tbtn = new Button(owner.guiStrings.get(\"welcome.next_map\"),new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tonNextMapClicked();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonPane.add(btn);\r\n\r\n\t\tbtn = new Button(owner.guiStrings.get(\"welcome.load_city\"),new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tmicropolis.client.Micropolis.mainWindow.loadGame();\r\n\t\t\t\thide();\r\n\t\t\t}\r\n\t\t});\r\n\t\tif (!micropolis.client.Micropolis.userInfo.logined){\r\n\t\t\tbtn.setEnabled(false);\r\n\t\t}\r\n\t\tbuttonPane.add(btn);\r\n\r\n\t\tbtn = new Button(owner.guiStrings.get(\"welcome.play_this_map\"),new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tonPlayClicked();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonPane.add(btn);\r\n\t\tbtn.setFocus(true);\r\n\t\tif (showCancelOption) {\r\n\t\t\tbtn = new Button(owner.guiStrings.get(\"welcome.cancel\"),new ClickHandler() {\r\n\t\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t\tonCancelClicked();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbuttonPane.add(btn);\r\n\t\t}else{\r\n\t\t\tbtn = new Button(owner.guiStrings.get(\"welcome.quit\"),new ClickHandler() {\r\n\t\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t\tonQuitClicked();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbuttonPane.add(btn);\r\n\t\t}\r\n\t\tadd(vp1);\r\n\t}", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\r\n\tprotected void onBoCancel() throws Exception {\n\t\tsuper.onBoCancel();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}", "@Override\n public void setCancelOp(boolean cancel) {\n cancelOp = cancel;\n }", "@Override\n public void setCancelOp(boolean cancel) {\n cancelOp = cancel;\n }", "private JButton getBtnCancel() {\n if (btnCancel == null) {\n btnCancel = new JButton();\n btnCancel.setText(\"Odustani\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n selected = false;\n setVisible(false);\n }\n });\n }\n return btnCancel;\n }", "public void setDoneButton(){\n\t\tbtnConfirmOrNext.setText(\"Done\");\n\t\tbtnStop.setVisible(false); // no more stop quiz since quiz is done\n\t}", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "private JButton addCancelButton(){\n\t\tJButton cancelButton = new JButton(\"Cancel\");\n\n\t\tcancelButton.addActionListener(arg0 -> setVisible(false));\n\t\treturn cancelButton;\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}", "@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }", "public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(getApplicationContext(), \"Holidays accepted\", Toast.LENGTH_SHORT).show();\n okButton.setText(ADMIN_BUTTON_ACCEPT_HOLIDAYS);\n }", "@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }", "@Override\n public void onClick(View v) {\n if (!vKenalan()){\n dialog.show();\n berbicara.play(\"it seems like we haven't met yet, don't know it then don't love, let's know you first\");\n return;\n }\n // untuk toogle\n if (diam){\n bolehMendengarkan();\n diam = false;\n }else {\n tidakBolehMendengarkan();\n diam = true;\n }\n }", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\r\n\tpublic void onClick(View v) {\r\n\t\tif (v == okButton){\r\n\t\t\tif(dontShow.isChecked()){\r\n\t\t\tAlertDialog builder2 = new AlertDialog.Builder(this.parentcontext)\r\n .setTitle(\"Confirmation\")\r\n .setMessage(\"Are you sure about disabling instruction from next use\")\r\n .setPositiveButton(\"Submit\", new Dialog.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n // Mark this version as read.\r\n \t\r\n \t\t\t\tSharedPreferences.Editor editor = prefs.edit();\r\n editor.putBoolean(CustomizeDialog.this.key, true);\r\n editor.commit();\r\n //dialogInterface.dismiss();\r\n \t\t\t}\r\n \r\n })\r\n .setNegativeButton(\"Cancel\", new Dialog.OnClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// Close the activity as they have declined the EULA\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n \t\r\n })\r\n .show();}\t\t\t\r\n\t\t\r\n\t\t\tdismiss();\r\n\t\t}\r\n\t}", "public void enableQuitButton(){\n\t\tbtnStop.setVisible(true);\n\t}", "void btnCloseMap();", "@FXML\n void cancelTimelineEdit () {\n\n// exits to Menu\n exitAddWindow();\n\n// changes Buttons and Labels from Edit to Add mode\n timeline_addButton.setVisible(true);\n timeline_addLabel.setVisible(true);\n timeline_editButton.setVisible(false);\n timeline_editLabel.setVisible(false);\n\n// re-binds the Button to Add window functionality\n cancelTimelineButton.setOnAction(cancelEvent -> exitAddWindow());\n\n setMessage(\"Exited Edit mode without any changes.\", false);\n }", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "public boolean isCancelButtonPresent() {\r\n\t\treturn isElementPresent(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Cancel\"), SHORTWAIT);\r\n\t}", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "public void disableOkButton() {\n okButton.setEnabled(false);\n }", "private JButton getBcancel() {\n if( Bcancel == null ) {\n Bcancel = new JButton();\n Bcancel.setText(\"Cancel\");\n Bcancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n setVisible(false);\n dispose();\n }\n });\n }\n return Bcancel;\n }", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\n public void onCancel(AmbilWarnaDialog dialog) {\n }", "@Override\n public void onCancel(AmbilWarnaDialog dialog) {\n }", "public void showStopButton(){\n\t((Button)findViewById(R.id.stopButton)).setVisibility(View.VISIBLE);\n\t((Button)findViewById(R.id.startButton)).setVisibility(View.GONE);\n\t((Button)findViewById(R.id.resetButton)).setVisibility(View.GONE);\n}", "@FXML\n public void cancelButtonPressed()\n {\n mainView.setWindow(\"START\");\n }", "@Override\n public void cancel() {\n mTn.hide();\n getService().cancelToast(mTn);\n }", "public void setExitButtonEnabled(Boolean vl) {\r\n btnSalir.setEnabled(true);\r\n }", "private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed\n this.dispose();\n }", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }" ]
[ "0.7009042", "0.6894163", "0.68904227", "0.68693703", "0.68642247", "0.66026676", "0.65942633", "0.6579767", "0.6556672", "0.6466813", "0.64643544", "0.64630353", "0.64626956", "0.6436473", "0.64311194", "0.6403236", "0.6375673", "0.6273942", "0.62477505", "0.62423193", "0.62323046", "0.62295485", "0.62269", "0.6216755", "0.62015325", "0.61843944", "0.6182938", "0.61809075", "0.6164308", "0.612041", "0.6105915", "0.60993135", "0.60889804", "0.6086951", "0.6077352", "0.6075822", "0.6071154", "0.6070992", "0.6058602", "0.6027497", "0.6026279", "0.60246575", "0.6018403", "0.6010257", "0.60059965", "0.6003283", "0.59986514", "0.5993054", "0.59929705", "0.5988086", "0.5984733", "0.59841114", "0.59698844", "0.5966756", "0.5963453", "0.59576255", "0.5954324", "0.5953847", "0.5953636", "0.59461313", "0.5941651", "0.5940499", "0.59366953", "0.5936437", "0.5936188", "0.5936188", "0.59343296", "0.5931829", "0.5928036", "0.5925764", "0.59243464", "0.5918761", "0.5918761", "0.59156835", "0.59127015", "0.5909554", "0.59070235", "0.59015393", "0.5899935", "0.58992386", "0.5899052", "0.58985174", "0.5889425", "0.5889286", "0.5882467", "0.58796066", "0.58737695", "0.58733153", "0.5869511", "0.58694273", "0.5860585", "0.5858543", "0.5858543", "0.58500266", "0.58437777", "0.5838376", "0.58347964", "0.58344114", "0.5834103", "0.58128583", "0.5811456" ]
0.0
-1
set wheather dialog cancelable when touch outside
public ComDialogBuilder setTouchOutSideCancelable(boolean touchOutSideCancel) { this.touchOutSideCancel = touchOutSideCancel; if (DIALOG_STYLE_CURRENT == DIALOG_STYLE_NORMAL) { this.dialog.setCanceledOnTouchOutside(touchOutSideCancel); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCanceledOnTouchOutside(boolean z) {\n Dialog dialog = getDialog();\n if (dialog != null) {\n dialog.setCanceledOnTouchOutside(z);\n }\n }", "@Override\n\t\t\t\t\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}", "protected void setCloseOnClickOutside(boolean value) {\n\t\tthis.closeOnClickOutside = value;\n\t}", "@Override\n public void setOutsideTouchable(boolean touchable) {\n super.setOutsideTouchable(touchable);\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n\n return false;\n // 这里如果返回true的话,touch事件将被拦截\n // 拦截后 PopupWindow的onTouchEvent不被调用,这样点击外部区域无法dismiss\n }", "public CommonPopWindow setOutsideTouchable(boolean touchable) {\n/* 185 */ this.mOutsideTouchable = touchable;\n/* 186 */ return this;\n/* */ }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\r\n\t\tDialog dialog = super.onCreateDialog(savedInstanceState);\r\n\t\tdialog.setCanceledOnTouchOutside(false);\r\n\t\treturn dialog;\r\n\t}", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n popupWindow.dismiss();\n return true;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n imm.hideSoftInputFromWindow(mAmt.getWindowToken(), 0);\n imm.hideSoftInputFromWindow(mFreq.getWindowToken(), 0);\n imm.hideSoftInputFromWindow(mDur.getWindowToken(), 0);\n \n dialogInterface.dismiss();\n if(listener != null) listener.onCancelClick();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n alertDialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t dialog.cancel();\n\t\t\t }", "public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tpopupWindow.dismiss();\n\t\t\t\tpopupWindow = null;\n\t\t\t\tbackgroundAlpha(1f);\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tpopupWindow.dismiss();\n\t\t\t\tpopupWindow = null;\n\t\t\t\tbackgroundAlpha(1f);\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n\t\t dialog.cancel();\n\t\t }", "public void onClick(View v) {\n\t\t\t\tdialog.cancel();\r\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\t \n\t dialog.cancel();\n\t }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog,\tint which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "@FXML // This method is configure from fxml file\n private void onCancelButtonClick() {\n this.selectableItem.removeListener(changeListener); // remove the listener when window is closed\n assert this.window != null;\n // close the dialog\n this.window.close();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel(); \n Toast.makeText(context,\"you choose no action for alertbox\", \n Toast.LENGTH_SHORT).show(); \n }", "public void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "public void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\n\t\t\t\tButton cancelbutton = (Button) findViewById(R.id.calc_clear_txt_Prise);\n\t\t\t\tcancelbutton.setVisibility(0);\n\t\t\t\treturn false;\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public boolean onTouch(View arg0, MotionEvent event) {\n if (gestureDetector.onTouchEvent(event)) {\n event.setAction(MotionEvent.ACTION_CANCEL);\n }\n\n return true;\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "@Override\r\n public boolean onTouch(View v, MotionEvent event) {\n if (popupWindow != null && popupWindow.isShowing()) {\r\n popupWindow.dismiss();\r\n popupWindow = null;\r\n }\r\n return true;\r\n }", "public boolean canDismissWithTouchOutside() {\n return this.cameraOpened ^ 1;\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n\n }", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"업데이트 버튼클릭됨\", Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmListener.onCancelPressed();\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\ttalkDialog.cancel();\r\n\t\t\t\t}", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }" ]
[ "0.79725426", "0.6867882", "0.68298054", "0.6766945", "0.6715538", "0.6637185", "0.6633541", "0.6589614", "0.6583787", "0.65685606", "0.6533765", "0.6527296", "0.6527296", "0.6519158", "0.65156585", "0.6509099", "0.6499261", "0.6496734", "0.6491185", "0.6477072", "0.64723307", "0.6456777", "0.64515805", "0.64352196", "0.64352196", "0.64352196", "0.6434461", "0.6434461", "0.6434461", "0.6434461", "0.6434461", "0.6423638", "0.6400605", "0.6400605", "0.63965255", "0.63839364", "0.63835454", "0.6382643", "0.6381951", "0.63645995", "0.63362557", "0.63362557", "0.63343185", "0.632704", "0.6317543", "0.63141793", "0.63141793", "0.6298131", "0.62858486", "0.6263184", "0.62598085", "0.62598085", "0.624997", "0.62368673", "0.6232179", "0.62295985", "0.62162864", "0.61964023", "0.6190895", "0.6190895", "0.61870307", "0.61777955", "0.6174005", "0.6171565", "0.6169598", "0.61665875", "0.6155986", "0.6154451", "0.61477405", "0.61477405", "0.61477405", "0.61439073", "0.6142361", "0.6142361", "0.6142361", "0.6142361", "0.6142361", "0.6142361", "0.6134606", "0.61300933", "0.6129393", "0.6129393", "0.6129393", "0.6129393", "0.6129393", "0.6129393", "0.6129393", "0.6126755", "0.6118897", "0.6118897", "0.60970163", "0.6095077", "0.60837823", "0.6082227", "0.60733205", "0.6068278", "0.6058934", "0.6058934", "0.6050511", "0.6050511" ]
0.6788159
3
set the dialog wheather can cancelable;
public ComDialogBuilder setCancelable(boolean cancleable) { this.dialog.setCancelable(cancleable); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "public void cancelDialog() {dispose();}", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public BaseDialog setCancelable(Boolean cancelable) {\n if (cancelable == null) {\n return this;\n }\n dialogBuilder.setCancelable(cancelable);\n return this;\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void setCanceledOnTouchOutside(boolean z) {\n Dialog dialog = getDialog();\n if (dialog != null) {\n dialog.setCanceledOnTouchOutside(z);\n }\n }", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t dialog.cancel();\n\t\t\t }", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "public void onClick(DialogInterface dialog, int which) {\n\n\t\t dialog.cancel();\n\t\t }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n\n }", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\r\n\t\tDialog dialog = super.onCreateDialog(savedInstanceState);\r\n\t\tdialog.setCanceledOnTouchOutside(false);\r\n\t\treturn dialog;\r\n\t}", "public void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\n\t\t\t\t\t\t\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n alertDialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"업데이트 버튼클릭됨\", Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n\n }", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog,\tint which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\t \n\t dialog.cancel();\n\t }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t}" ]
[ "0.7422689", "0.7375365", "0.7364493", "0.73504245", "0.7327772", "0.7258055", "0.72503585", "0.723168", "0.7224874", "0.7214361", "0.721211", "0.72090745", "0.72090745", "0.72090745", "0.72045594", "0.720215", "0.71962345", "0.71926343", "0.7168903", "0.71662956", "0.716242", "0.7147079", "0.7147079", "0.71361643", "0.71361643", "0.71361643", "0.71361643", "0.71361643", "0.71186507", "0.710725", "0.70837444", "0.7033937", "0.7033937", "0.70281005", "0.70079386", "0.70019275", "0.69941187", "0.6992775", "0.698078", "0.698078", "0.6975278", "0.69716674", "0.6961332", "0.6960436", "0.6957071", "0.6947091", "0.6946786", "0.69437027", "0.69298303", "0.6924788", "0.6920285", "0.6909691", "0.6909691", "0.6908408", "0.69071853", "0.690401", "0.68906075", "0.6888201", "0.6884106", "0.687339", "0.6865332", "0.6865332", "0.6865332", "0.6865332", "0.6865332", "0.6865332", "0.6865332", "0.6864246", "0.6864246", "0.6864246", "0.6864246", "0.6864246", "0.6864246", "0.68633056", "0.68633056", "0.6860216", "0.6859516", "0.68529475", "0.6851379", "0.6851379", "0.68470967", "0.6846882", "0.6841639", "0.6841639", "0.68248725", "0.68248725", "0.6817761", "0.68124187", "0.68124187", "0.6804031", "0.6799103", "0.6797594", "0.6790458", "0.6790458", "0.67871356", "0.6782754", "0.6782754", "0.6782754", "0.6782754", "0.67817324" ]
0.704597
31
set Confirm Button TextColor
public ComDialogBuilder setConfirmButtonTextColor(int color) { if (confrimBtn == null) { confrimBtn = getView(R.id.dialog_posi_btn); } if(this.confrimBtn!=null){ this.confrimBtn.setTextColor(color); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void changeResumeButtonColor(Color color);", "public ComDialogBuilder setCancelButtonTextColor(int color) {\n if (cancelBtn == null) {\n cancelBtn = getView(R.id.dialog_neg_btn);\n }\n if(this.cancelBtn!=null){\n this.cancelBtn.setTextColor(color);\n }\n return this;\n }", "private void applyForegroundColor() {\r\n\t\tthis.control.setForeground(PromptSupport.getForeground(this.control));\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttotalLayout.setBackgroundColor(getResources().getColor(R.color.red));\n\t\t\t\tconfirmButton.setEnabled(false);\n\t\t\t\tconfirmRequest1();\n\t\t\t}", "public void setTextColor(String textColor);", "@Override\n public void onClick(View v) {\n ((TextView) findViewById(R.id.text)).setTextColor(getResources().getColor(R.color.brwn));\n }", "@Override\n public void setPriorityTextColor(String textColor) {\n btnPrioritySet.setTextColor(Color.parseColor(textColor));\n }", "public void resetButtonAndText() {\n currentText = colorTxtArr[(int) (Math.random() * 5)];\n buttonColor = colorArr[(int) (Math.random() * 5)];\n colorText.setForeground(buttonColor);\n colorText.setText(currentText);\n }", "@Override\n public void choiced(String result) {\n target.setText(result);\n target.setTextColor(getResources().getColor(R.color.app_color));\n }", "public void changeColourButton(Color color) {\n //goes through to each button\n for (int i = 0; i < 7; i++) {\n Inputbuttons[i].setForeground(color);\n }\n }", "@Override\n public void onShow(DialogInterface dialogInterface) {\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setBackgroundColor(0xFF609000);\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(Color.WHITE);\n // Change the negative button to red color with white text\n dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setBackgroundColor(0xFFC00000);\n dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setTextColor(Color.WHITE);\n }", "public void setButtonColor(Color col){\n\t\tbuttonColor = col;\n\t}", "@Override\n public void onClick(View v) {\n ((TextView) findViewById(R.id.text)).setTextColor(getResources().getColor(R.color.orange));\n }", "private void setupButtons()\n\t{\n\t\tequals.setText(\"=\");\n\t\tequals.setBackground(Color.RED);\n\t\tequals.setForeground(Color.WHITE);\n\t\tequals.setOpaque(true);\n\t\tequals.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 50));\n\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\tclear.setText(\"C\");\n\t\tclear.setBackground(new Color(0, 170, 100));\n\t\tclear.setForeground(Color.WHITE);\n\t\tclear.setOpaque(true);\n\t\tclear.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 50));\n\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\tbackspace.setText(\"<--\");\n\t\tbackspace.setBackground(new Color(0, 170, 100));\n\t\tbackspace.setForeground(Color.WHITE);\n\t\tbackspace.setOpaque(true);\n\t\tbackspace.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 35));\n\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\tnegative.setText(\"+/-\");\n\t\tnegative.setBackground(Color.GRAY);\n\t\tnegative.setForeground(Color.WHITE);\n\t\tnegative.setOpaque(true);\n\t\tnegative.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 35));\n\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t}", "public void colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n else if (theColor.contains(\"red\")) {\r\n textShape.setForegroundColor(Color.RED);\r\n }\r\n else {\r\n textShape.setForegroundColor(Color.BLACK);\r\n }\r\n }", "public final String getBtnFontColor() {\n\t\treturn btnFontColor;\n\t}", "public void setTextColor( Color txtColor ) {\r\n textColor = txtColor;\r\n }", "public final String getBtnColor() {\n\t\treturn btnColor;\n\t}", "public void applyTheme(){\n\t\tColor backgroundColour = new Color(255,255,255);\n\t\tColor buttonText = new Color(255,255,255);\n\t\tColor normalText = new Color(0,0,0);\n\t\tColor buttonColour = new Color(15,169,249);\n\n\t\tfirstAttemptResult.setForeground(new Color(255,0,110));\n\t\tsecondAttemptResult.setForeground(new Color(255,0,0));\n\t\t\n\t\t// background color\n\t\tthis.setBackground(backgroundColour);\n\t\t\n\t\t// normal text\n\t\tspellQuery.setForeground(normalText);\n\t\tdefinitionArea.setForeground(normalText);\n\t\tlblstAttempt.setForeground(normalText);\n\t\tlblndAttempt.setForeground(normalText);\n\t\tfirstAttempt.setForeground(normalText);\n\t\tsecondAttempt.setForeground(normalText);\n\t\tcurrentQuiz.setForeground(normalText);\n\t\tcurrentStreak.setForeground(normalText);\n\t\tlongestStreak.setForeground(normalText);\n\t\tnoOfCorrectSpellings.setForeground(normalText);\n\t\tquizAccuracy.setForeground(normalText);\n\t\tlblNewLabel.setForeground(normalText);\n\t\tlblYouOnlyHave.setForeground(normalText);\n\t\tlblCurrentQuiz.setForeground(normalText);\n\t\tlblCurrentStreak.setForeground(normalText);\n\t\tlblLongeststreak.setForeground(normalText);\n\t\tlblSpelledCorrectly.setForeground(normalText);\n\t\tlblQuizAccuracy.setForeground(normalText);\n\t\t\n\t\t// button text\n\t\tbtnConfirmOrNext.setForeground(buttonText);\n\t\tbtnStop.setForeground(buttonText);\n\t\tbtnListenAgain.setForeground(buttonText);\n\t\t// normal button color\n\t\tbtnConfirmOrNext.setBackground(buttonColour);\n\t\tbtnStop.setBackground(buttonColour);\n\t\tbtnListenAgain.setBackground(buttonColour);\n\t}", "public void setTextColor(RMColor aColor) { }", "private void setColorForDialog(int color) {\n titleEditText.setTextColor(color);\n descriptionEditText.setTextColor(color);\n colorTextView.setTextColor(color);\n titleTextView.setTextColor(color);\n descriptionTextView.setTextColor(color);\n\n\n // convert color from int format to HEX -> to save in db\n chosenColor = String.format(\"#%06X\", (0xFFFFFF & color));\n }", "private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}", "public void setProgressTextColor(@ColorInt int textColor){\n this.mProgressTextColor = textColor;\n }", "private void resetTextColor(Button btn1, Button btn2) {\n\t\tbtn1.setTextColor(Color.parseColor(getResources().getString(R.color.list_text_color)));\n\t\tbtn2.setTextColor(Color.parseColor(getResources().getString(R.color.list_text_color)));\n\t}", "public Color getButtonColor(){\n\t\treturn buttonColor;\n\t}", "public void setBackGroundColor(String color){\n\t\tif(color.equalsIgnoreCase(\"white\")){\n\t\t\tbutton.setBackground(Color.WHITE);\n\t\t}else{\n\t\t\tbutton.setBackground(Color.green);\n\t\t}\n\t\t\n\t}", "private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n b.resetColor();\r\n }\r\n }\r\n \r\n for (MyButton b1: mylist.getAllButtons()){\r\n if(b1.isChosen()){\r\n for(MyButton b2 : mylist.getAllButtons()){\r\n if(!b1.equals(b2)){ \r\n if (b2.block.isSameType(b1.block)){ \r\n b2.setCannotBeChosen();\r\n }\r\n else if (!b2.isChosen() && b2.block.isAtSameTime(b1.block)){\r\n b2.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }", "public void setActivingColor(){\n this.setBackground(new Color( 213, 228, 242));\n this.forceupdateUI();\n }", "private void setDefaultTextColor(Context context) {\n\n }", "@OnClick(R.id.btnConfirm)\n public void onConfirmClicked(){\n new MaterialAlertDialogBuilder(getActivity(), R.style.MaterialAlertDialog_MaterialComponents_Title_Icon)\n .setTitle(R.string.dialog_confirm_title)\n .setMessage(R.string.card_message_demo_small)\n .setPositiveButton(R.string.dialog_confirm, (dialog, which) -> Toast.makeText(getActivity(),\n R.string.message_action_success, Toast.LENGTH_LONG).show())\n .setNegativeButton(R.string.dialog_cancel, null)\n .show();\n\n }", "public ComDialogBuilder setConfirmBackgroundResouce(int resID) {\n if (confrimBtn == null) {\n confrimBtn = getView(R.id.dialog_posi_btn);\n }\n if (confrimBtn != null && resID != -1) {\n confirmBtnBG = resID;\n confrimBtn.setBackgroundResource(resID);\n }\n return this;\n }", "public void changeButtonColor() {\n\n answer1Button = (Button) findViewById(R.id.answer1_button);\n answer2Button = (Button) findViewById(R.id.answer2_button);\n answer3Button = (Button) findViewById(R.id.answer3_button);\n answer4Button = (Button) findViewById(R.id.answer4_button);\n\n // If answer 1 is selected, change its color and the text color else change its color back to default.\n\n if (answer1Clicked) {\n answer1Button.setBackgroundColor(Color.parseColor(\"#C51162\"));\n answer1Button.setTextColor(Color.parseColor(\"#FFFFFF\"));\n\n\n } else {\n answer1Button.setBackgroundColor(Color.parseColor(\"#BDBDBD\"));\n answer1Button.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n\n // If answer 2 is selected, change its color and the text color else change its color back to default.\n\n if (answer2Clicked) {\n answer2Button.setBackgroundColor(Color.parseColor(\"#C51162\"));\n answer2Button.setTextColor(Color.parseColor(\"#FFFFFF\"));\n\n } else {\n answer2Button.setBackgroundColor(Color.parseColor(\"#BDBDBD\"));\n answer2Button.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n\n // If answer 3 is selected, change its color and the text color else change its color back to default.\n\n if (answer3Clicked) {\n answer3Button.setBackgroundColor(Color.parseColor(\"#C51162\"));\n answer3Button.setTextColor(Color.parseColor(\"#FFFFFF\"));\n } else {\n answer3Button.setBackgroundColor(Color.parseColor(\"#BDBDBD\"));\n answer3Button.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n\n // If answer 4 is selected, change its color and the text color else change its color back to default.\n\n if (answer4Clicked) {\n answer4Button.setBackgroundColor(Color.parseColor(\"#C51162\"));\n answer4Button.setTextColor(Color.parseColor(\"#FFFFFF\"));\n\n } else {\n answer4Button.setBackgroundColor(Color.parseColor(\"#BDBDBD\"));\n answer4Button.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n\n\n }", "private void settingNormalButton(Button button1, Button button2, Button button3) {\n button1.setBackgroundResource(R.drawable.my_btn_bg);\n button1.setTextColor(getResources().getColor(R.color.test_dark_blue));\n button2.setBackgroundResource(R.drawable.my_btn_bg);\n button2.setTextColor(getResources().getColor(R.color.test_dark_blue));\n button3.setBackgroundResource(R.drawable.my_btn_bg);\n button3.setTextColor(getResources().getColor(R.color.test_dark_blue));\n }", "private void initializeSetColorButton() {\n\n setColorTextLabel = new JLabel(\"Set New Color\");\n setColorTextLabel.setBounds(250, 250,150, 25);\n setColorTextLabel.setFont(new Font(\"Arial\", Font.PLAIN, 20));\n this.add(setColorTextLabel);\n\n greenButton = new JButton();\n greenButton.setBackground(java.awt.Color.green);\n greenButton.setBounds(400, 250, 60, 25);\n this.add(greenButton);\n\n redButton = new JButton();\n redButton.setBackground(java.awt.Color.red);\n redButton.setBounds(460, 250, 60, 25);\n this.add(redButton);\n\n yellowButton = new JButton();\n yellowButton.setBackground(java.awt.Color.yellow);\n yellowButton.setBounds(520, 250, 60, 25);\n this.add(yellowButton);\n\n blueButton = new JButton();\n blueButton.setBackground(java.awt.Color.blue);\n blueButton.setBounds(580, 250, 60, 25);\n this.add(blueButton);\n\n setColorTextLabel.setVisible(false);\n greenButton.setVisible(false);\n blueButton.setVisible(false);\n redButton.setVisible(false);\n yellowButton.setVisible(false);\n }", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n textDate.setTextColor(getColor(R.color.colorBlack));\n }", "public void applyColor() {\n\t\tSystem.out.println(\"Yellow\");\n\n\t}", "private void updateTextColor(TextView view, boolean isOn) {\n if (isOn) {\n view.setTextColor(Color.GREEN);\n } else {\n view.setTextColor(Color.BLACK);\n }\n }", "public void chooseColor() {\n Color c = JColorChooser.showDialog(_parent, \"Choose '\" + getLabelText() + \"'\", _color);\n if (c != null) {\n _color = c;\n notifyChangeListeners();\n _updateField(_color);\n } \n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.BLUE;\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.RED;\n\t\t\t}", "@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\n\t\t\t\tif (s.toString().equals(\"\")) {\n\t\t\t\t\tchangeBackColor();\n\t\t\t\t} else {\n\t\t\t\t\tbtn_transfer_ok.setBackgroundColor(getResources().getColor(R.color.tv_leaveItem_state_green));\n\t\t\t\t\tbtn_transfer_ok.setTextColor(android.graphics.Color.parseColor(\"#ffffff\"));\n\t\t\t\t}\n\t\t\t}", "public void actionPerformed(ActionEvent e)\n {\n//this is called when an action event occurs\n\n\n String cmd = e.getActionCommand();\n if (cmd.equals(\"Red\"))\n c.setBackground(Color.red);\n if (cmd.equals(\"Blue\"))\n c.setBackground(Color.blue);\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n textTime.setTextColor(getColor(R.color.colorBlack));\n\n }", "@Override\n public void onClick(View v) {\n ButtonRectangle btn = (ButtonRectangle) v;\n SharedPreferences sp = getUserPref();\n String currentColor = sp.getString(BaseActivity.SF_THEME_COLOR, \"Teal\");\n if (currentColor.equals(btn.getText()))\n return;\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(BaseActivity.SF_THEME_COLOR, btn.getText());\n editor.apply();\n getActivity().finish();\n startActivity(getActivity().getIntent());\n// android.os.Process.killProcess(android.os.Process.myPid());\n }", "public final void setBtnColor(String btnColor) {\n\t\tthis.btnColor = btnColor;\n\t}", "public static Color getButtonColorHighlight() {\n return BUTTONCOLOR_HIGHLIGHT;\n }", "Integer getTxtColor();", "public final void setBtnFontColor(String btnFontColor) {\n\t\tthis.btnFontColor = btnFontColor;\n\t}", "public void clrBtn(String str)\n {\n String greenClr= \"#9FEF52\";\n String grayClr = \"#F3F3F3\";\n\n String clrLeft = grayClr;\n String clrRight = grayClr;\n String clrUp = grayClr;\n String clrDown = grayClr;\n\n if(str.equals(\"Left\"))\n {\n clrLeft = greenClr;\n }\n else if(str.equals(\"Right\"))\n {\n clrRight = greenClr;\n }else if(str.equals(\"Up\"))\n {\n clrUp = greenClr;\n\n }else if(str.equals(\"Down\"))\n {\n clrDown = greenClr;\n }\n\n leftBtn.setBackgroundColor(Color.parseColor(clrLeft));\n rightBtn.setBackgroundColor(Color.parseColor(clrRight));\n upBtn.setBackgroundColor(Color.parseColor(clrUp));\n downBtn.setBackgroundColor(Color.parseColor(clrDown));\n\n }", "public void setTextColor(int textColor) {\n this.textColor = textColor;\n }", "public void setTextColor(int color) {\n mTextColor = color;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n btnAdicionar.setBackground(new Color(176, 196, 222));\n btnCalcular.setBackground(new Color(176, 196, 222));\n btnLimpar.setBackground(new Color(176, 196, 222));\n btnRemover.setBackground(new Color(176, 196, 222));\n }", "void setStatusColour(Color colour);", "private void setColor(final boolean Success) {\n\n handler.post(new Runnable() {\n @Override\n public void run() {\n TextView tv = (TextView) rootView.findViewById(R.id.header);\n if (Success) {\n tv.setBackgroundColor(Color.GREEN);\n tv.setText(R.string.WifiStaticArp_ON);\n } else {\n tv.setBackgroundColor(Color.RED);\n tv.setText(R.string.WifiStaticArp_OFF);\n }\n }\n });\n }", "@FXML\n public void highlightLogout()\n {\n logoutButton.setOnMouseEntered(mouseEvent -> logoutButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "Color(String text) {\n this.text = text;\n }", "public void setTextColor(Color textColor) {\r\n this.textColor = textColor;\r\n }", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }", "void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}", "public void setColor()\n {\n String PREF_FILE_NAME = \"PrefFile\";\n final SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE);\n\n if(preferences.getBoolean(\"ColorBlind\", false)) {\n View box1 = this.findViewById(R.id.username);\n box1.setBackgroundColor(0xffffffff);\n\n View box2 = this.findViewById(R.id.password);\n box2.setBackgroundColor(0xffffffff);\n\n View box3 = this.findViewById(R.id.Login);\n box3.setBackgroundColor(0xffffffff);\n\n }\n }", "public static void setGlobalTextColor(Context context, int color){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"textColor\", color);\n edit.apply();\n\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n for(int i = 0 ; i<list.size(); i++){\n list.get(i).setTextColor(color);\n }\n saveOutfitJSON(context, list);\n }\n }", "public void mouseExited(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextColour());//the colour of the text when the cursor is removed\n }", "public static void addColor(){ \r\n \r\n welcome.add(black);\r\n black.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n black.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(red);\r\n red.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n red.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //adding some buttons, formatting them, and aligning them\r\n \r\n welcome.add(yellow);\r\n yellow.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n yellow.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(green);\r\n green.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n green.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent actionevent)\r\n\t\t{\n\t\t\tColor c = (Color) getValue( \"Color\" );\r\n\t\t\tsetBackground( c );\r\n\t\t}", "public void setCancelButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_cancelButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_cancelButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_cancelButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setCancelButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void fwColor() {\n if (cFirmware == lFirmware) {\n //Latest firmware version is installed.\n cFirmwareVersion.setTextColor(COLOR_GREEN);\n lFirmwareVersion.setTextColor(COLOR_GREEN);\n } else {\n //Latest firmware version isn't installed.\n cFirmwareVersion.setTextColor(COLOR_RED);\n lFirmwareVersion.setTextColor(COLOR_RED);\n }\n }", "@Override\n public void onClick(View v) {\n String checkBoulder = (String) completeBoulder.getText();\n // if button says \"Topped out!\"\n if (checkBoulder.equals(getResources().getString(R.string.topout_complete))){\n //do nothing\n }\n else {\n tries_title.setBackgroundColor(getResources().getColor(R.color.colorGreen));\n tries_title.setText(R.string.good_job);\n showTriesBox();\n }\n }", "public String getButtonBgColor() {\r\n\t\tif (_saveButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _saveButton.getButtonBgColor();\r\n\t}", "public RMColor getTextColor() { return RMColor.black; }", "void setColor(ChatColor color);", "public String getTextColor();", "public void actionPerformed(ActionEvent ae) {\n\tjava.awt.Color newColor = JColorChooser.showDialog(this, \"Choose a new Label Color\", centerLabel.getForeground());\n\tif (newColor != null) {\n\t centerLabel.setForeground(newColor);\n\t}\n }", "public CustomDialog button(String buttonText, Object object, String style, String name) {\n TextButton button = new TextButton(buttonText, getSkin(), style);\n button.setName(name);\n super.button(button, object);\n return this;\n }", "public String changeColor(Button b, String color)\n {\n if(color != null || b != null)\n {\n if(color.equals(\"green\"))\n {\n color = \"red\";\n b.setBackgroundColor(Color.RED);\n return color;\n }\n else if(color.equals(\"red\"))\n {\n color = \"green\";\n b.setBackgroundColor(Color.GREEN);\n return color;\n }\n }\n return \"\";\n }", "public static void setBlue() {\r\n playerTeam.setColor(blue);\r\n updateMessage(\"Seu time agora é azul\");\r\n }", "public Color getTextColor();", "public void setDoneButton(){\n\t\tbtnConfirmOrNext.setText(\"Done\");\n\t\tbtnStop.setVisible(false); // no more stop quiz since quiz is done\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}", "public void applyButtonStyles(JButton button){\n button.setBackground(coloursObject.getContentPanelColour());//set background colour\n button.setForeground(coloursObject.getButtonTextColour());//set foreground colour\n button.setFont(new java.awt.Font(\"Microsoft Tai Le\", 0, 14));//set font and size\n button.setBorder(null);//remove the border//remove any border\n button.setFocusPainted(false);//make not focusable (custom hover effect overides this)\n \n button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {//when hovering over mouse\n button.setForeground(coloursObject.getButtonTextHoverColour());//the colour of the text when hovered over\n }\n\n public void mouseExited(java.awt.event.MouseEvent evt) {//when cursor stops hovering over the mouse\n button.setForeground(coloursObject.getButtonTextColour());//the colour of the text when the cursor is removed\n }\n });\n }", "public void cambiarColorCrc() {\r\n R1 = slRCrc.getValue();\r\n G1 = slGCrc.getValue();\r\n B1 = slBCrc.getValue();\r\n jRCr.setText(\"R: \" + R1);\r\n jVCr.setText(\"G: \" + G1);\r\n jACr.setText(\"B: \" + B1);\r\n color = new Color(R1,G1,B1);\r\n btninfCrc.setBackground(color);\r\n btnEditarCrc.setBackground(color);\r\n btnPruebaCrc.setBackground(color);\r\n btnRegresarCrc.setBackground(color);\r\n repaint(); //Metodo que permite que la figura cambie de color en tiempo real\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n Object btnOnpress = e.getSource();\n\n // Asignación del color negro\n if (btnOnpress == blackColor) {\n textAreaC.setForeground(Color.BLACK);\n textAreaC.setBackground(Color.WHITE);\n }\n\n // Asignación del color rojo\n if (btnOnpress == redColor) {\n textAreaC.setForeground(Color.RED);\n }\n\n if (btnOnpress == greenColor) {\n textAreaC.setForeground(Color.GREEN);\n }\n\n // Asignación del color amarillo\n if (btnOnpress == yellowColor) {\n textAreaC.setForeground(Color.YELLOW);\n }\n\n // Asignación del color gris oscuro\n if (btnOnpress == darkGrayColor) {\n textAreaC.setForeground(Color.DARK_GRAY);\n }\n\n // Asignación del color gris claro\n if (btnOnpress == lightGrayColor) {\n textAreaC.setForeground(Color.LIGHT_GRAY);\n }\n\n // Asignación del color gris\n if (btnOnpress == grayColor) {\n textAreaC.setForeground(Color.GRAY);\n }\n\n // Asignación del color azul\n if (btnOnpress == blueColor) {\n textAreaC.setForeground(Color.BLUE);\n }\n\n // Asignación del color magenta\n if (btnOnpress == magentaColor) {\n textAreaC.setForeground(Color.MAGENTA);\n }\n\n // Asignación del color blanco\n if (btnOnpress == whiteColor) {\n textAreaC.setForeground(Color.WHITE);\n textAreaC.setBackground(Color.BLACK);\n }\n\n // Asignación del color cyan\n if (btnOnpress == cyanColor) {\n textAreaC.setForeground(Color.CYAN);\n }\n\n // Asignación del color naranaja\n if (btnOnpress == orangeColor) {\n textAreaC.setForeground(Color.ORANGE);\n }\n\n // Asignación del color rosado\n if (btnOnpress == pinkColor) {\n textAreaC.setForeground(Color.PINK);\n }\n\n // Asignación del boton aceptar, la cual hace que la ventana se cierre\n if (btnOnpress == toAccept) {\n dispose();\n }\n\n }", "@AutoEscape\n\tpublic String getTextColor();", "public void setColors() {\n\t\tif (!this.block.isEditable()) {\n\t\t\tthis.dispNormal = Color.LIGHT_GRAY;\n\t\t\tthis.dispSelected = Color.GRAY;\n\t\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t\t} else {\n\t\t\tthis.dispNormal = Color.white;\n\t\t\tthis.dispSelected = Color.cyan;\n\t\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t\t}\n\t}", "@Override\n public void onClick(View v)\n {\n red.setBackgroundColor(Color.TRANSPARENT);\n orange.setBackgroundColor(Color.TRANSPARENT);\n blue.setBackgroundColor(Color.TRANSPARENT);\n green.setBackgroundColor(Color.TRANSPARENT);\n\n ImageButton btnColour = (ImageButton) v;\n String colourSelected = context.getResources().getResourceEntryName(v.getId());\n\n switch (colourSelected)\n {\n case \"red\" : user.setColourCode(1);\n App.theme = R.style.RedTheme;\n break;\n case \"orange\" : user.setColourCode(2);\n App.theme = R.style.OrangeTheme;\n break;\n case \"blue\" : user.setColourCode(3);\n App.theme = R.style.LightTest;\n break;\n case \"green\" : user.setColourCode(4);\n App.theme = R.style.GreenTheme;\n break;\n case \"editRed\" : user.setColourCode(1);\n App.theme = R.style.RedTheme;\n break;\n case \"editOrange\" : user.setColourCode(2);\n App.theme = R.style.OrangeTheme;\n break;\n case \"editBlue\" : user.setColourCode(3);\n App.theme = R.style.LightTest;\n break;\n case \"editGreen\" : user.setColourCode(4);\n App.theme = R.style.GreenTheme;\n break;\n default: user.setColourCode(0);\n break;\n }\n ((Activity)(context)).finish();\n context.startActivity(new Intent(context, SettingsActivity.class));\n btnColour.setBackgroundColor(Color.RED);\n }", "public Button(Window w, CompositeGlyph c, String color) {\r\n\t\tsuper(w,c);\r\n\t\tthis.color = color;\r\n\t}", "@Override\n \t public void actionPerformed(ActionEvent e) \n \t {\n \t\t Color newColour = JColorChooser.showDialog(null, \"Choose a colour!\", Color.black);\n \t\t if(newColour == null)\n \t\t\t return;\n \t\t else\n \t\t\t client.setColor(newColour);\n \t }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getActionCommand().equals(\"黑色\")){\r\n\t\t\tSystem.out.println(\"猫猫也知道你点击的是黑色按钮\");\r\n\t\t\t\r\n\t\t}else if(e.getActionCommand().equals(\"红色\")){\r\n\t\t\tSystem.out.println(\"猫猫也知道你点击的是红色按钮\");\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"不知道\");\r\n\t\t}\r\n\t}", "public CommandViewBuilder setTextColor(Color textColor)\n\t\t{\n\t\t\tthis.textColor = textColor;\n\t\t\treturn this;\n\t\t}", "public int getButtonsColor(String str) {\n return this.useDefaultThemeForButtons ? Theme.getDefaultColor(str) : Theme.getColor(str);\n }", "private void setStyleToIndicateCommandFailure() {\n //override style and disable syntax highlighting\n commandTextField.overrideStyle(ERROR_STYLE_CLASS);\n }", "@Override\n public void onClick(View view) {\n\n mainTextView.setText(\"Hello from Omar!\");\n mainButton.setBackground(getResources().getDrawable(R.drawable.preset_button_1));\n mainButton.setTextColor(getResources().getColor(R.color.colorPrimary));\n mainEditText.setTextColor(getResources().getColor(R.color.colorPrimary));\n mainTextView.setTextColor(getResources().getColor(R.color.colorPrimary));\n findViewById(R.id.rootView).setBackgroundColor(getResources().getColor(R.color.white));\n secondTextView.setTextColor(getResources().getColor(R.color.grey));\n }", "@Override\n public String getToolTipText() {\n return \"Black -- approved; Gray -- rejected; Red -- pending approval\";\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tString command =e.getActionCommand();\r\n\t\t\t\t\tJButton button =(JButton) e.getSource();\r\n\t\t\t\t\tif(command.equals(\"north\")) {\r\n\t\t\t\t\t\tbutton.setBackground(Color.gray);\r\n\t\t\t\t }\telse if (command.equals(\"south\")) {\r\n\t\t\t\t\t\tbutton.setBackground(Color.BLUE);\r\n\t\t\t\t\t}else if (command.equals(\"east\")) {\r\n\t\t\t\t\t\tbutton.setBackground(Color.yellow);\r\n\t\t\t\t\t}else if (command.equals(\"center\")) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(Myframe.this,\"aa,bb,cc\");\r\n\t\t\t\t\t}else if (command.equals(\"west\")) {\r\n\t\t\t\t\t\tbutton.setBackground(Color.PINK);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}", "private void updateTextColor() {\n if (mLauncher == null) {\n return;\n }\n ItemInfo info = (ItemInfo) getTag();\n if (info == null || mSupportCard) {\n return;\n }\n int color = getDyncTitleColor(info);\n mIconTitleColor = color;\n setPaintShadowLayer(color);\n if (getPaint().getColor() != color) {\n setTextColor(color);\n }\n\n }", "private void onSetColor() {\r\n\t Frame frame = JOptionPane.getFrameForComponent(getContentComponent());\r\n\t Color newColor = JColorChooser.showDialog(frame, \"Choose color\", DEF_CLUSTER_COLOR);\r\n\t if (newColor != null) {\r\n\t setClusterColor(newColor);\r\n\t }\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.BLACK;\n\t\t\t}", "public Color getTextColor(){\r\n return textColor;\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(cancel.getText());\n\t\t\t}", "private void setConfirmState() {\n if (state == CONFIRM_STATE)\n return;\n consoleLayout.setVisibility(GONE);\n confirmContainer.setVisibility(VISIBLE);\n state = CONFIRM_STATE;\n }" ]
[ "0.6243463", "0.62197274", "0.62044406", "0.61430424", "0.6044121", "0.60282785", "0.600792", "0.600067", "0.598153", "0.59479946", "0.5947129", "0.5941793", "0.59388554", "0.5918962", "0.5918147", "0.5879439", "0.58586425", "0.5849384", "0.5843481", "0.58277774", "0.5815005", "0.5798784", "0.57585305", "0.5720918", "0.5705714", "0.5702308", "0.56705904", "0.5640947", "0.5614158", "0.5599463", "0.5591529", "0.559134", "0.5590362", "0.55863607", "0.555291", "0.5552776", "0.55406624", "0.5533854", "0.55337477", "0.5531887", "0.55181503", "0.55160403", "0.55007803", "0.5496681", "0.54952", "0.54876494", "0.5486519", "0.54797655", "0.5475052", "0.54680526", "0.5461135", "0.54378885", "0.5436787", "0.54321873", "0.5429671", "0.54279983", "0.5427646", "0.54251754", "0.54204786", "0.54113865", "0.54042137", "0.5398777", "0.5395755", "0.5394399", "0.53935033", "0.53746873", "0.53675395", "0.5345676", "0.5344489", "0.5343272", "0.5342978", "0.53278744", "0.53187066", "0.53140587", "0.53062344", "0.52912295", "0.52896696", "0.5280304", "0.52801293", "0.52775294", "0.5274661", "0.52730143", "0.52704734", "0.5268577", "0.5265718", "0.5265093", "0.5263495", "0.52608466", "0.5252123", "0.5251753", "0.5249696", "0.5249322", "0.524861", "0.52344036", "0.5227009", "0.5224216", "0.5223005", "0.5217772", "0.52153635", "0.52132696" ]
0.7931925
0
set Cancel Button TextColor
public ComDialogBuilder setCancelButtonTextColor(int color) { if (cancelBtn == null) { cancelBtn = getView(R.id.dialog_neg_btn); } if(this.cancelBtn!=null){ this.cancelBtn.setTextColor(color); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void decorateCancelButton() {\n cancelButton.setVisible(false);\n ResourceUtils.resButton(cancelButton, Res.getString(\"cancel\"));\n cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196)));\n cancelButton.setForeground(new Color(73, 113, 196));\n cancelButton.setFont(new Font(\"Dialog\", Font.BOLD, 10));\n \n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n cancelTransfer();\n }\n });\n \n cancelButton.addMouseListener(new MouseAdapter() {\n public void mouseEntered(MouseEvent e) {\n cancelButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\n \n }\n \n public void mouseExited(MouseEvent e) {\n cancelButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }\n });\n \n }", "@Override\n public void onCancel(DialogInterface dialog) {\n textDate.setTextColor(getColor(R.color.colorBlack));\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n textTime.setTextColor(getColor(R.color.colorBlack));\n\n }", "public ComDialogBuilder setConfirmButtonTextColor(int color) {\n if (confrimBtn == null) {\n confrimBtn = getView(R.id.dialog_posi_btn);\n }\n if(this.confrimBtn!=null){\n this.confrimBtn.setTextColor(color);\n }\n return this;\n }", "public void setCancelButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_cancelButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_cancelButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_cancelButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setCancelButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "void btnCancel();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(cancel.getText());\n\t\t\t}", "private JButton getJButtonCancel() {\r\n\t\tif (jButtonCancel == null) {\r\n\t\t\tjButtonCancel = new JButton();\r\n\t\t\tjButtonCancel.setBounds(new Rectangle(220, 215, 90, 30));\r\n\t\t\tjButtonCancel.setText(\"取消\");\r\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tjColorChooser.setVisible(false);\r\n\t\t\t\t\tchooserColor = null;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonCancel;\r\n\t}", "void onCancelClicked();", "private javax.swing.JButton getJButtonCancelar() {\n\t\tif(jButtonCancelar == null) {\n\t\t\tjButtonCancelar = new JHighlightButton();\n\t\t\tjButtonCancelar.setText(\"Cancelar\");\n\t\t\tjButtonCancelar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/delete2.png\")));\n\t\t}\n\t\treturn jButtonCancelar;\n\t}", "void onCancelButtonPressed();", "private BButton getBtnCancel() {\r\n\t\tif (btnCancel == null) {\r\n\t\t\tbtnCancel = new BButton();\r\n\t\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\tbtnCancel.setPreferredSize(new Dimension(100, 29));\r\n\t\t}\r\n\t\treturn btnCancel;\r\n\t}", "@Override\n public String getSecondDisplay() {\n return ChatColor.RED + \"Cancel\";\n }", "@Override\n public void OnCancelButtonPressed() {\n }", "public javax.swing.JButton getBtnCancel() {\n return btnCancel;\n }", "@Override\n public void OnCancelButtonPressed() {\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "HasClickHandlers getCancelButton();", "void changeResumeButtonColor(Color color);", "public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }", "public void onCancelClick()\r\n {\r\n\r\n }", "private JButton getBtnCancel() {\n if (btnCancel == null) {\n btnCancel = new JButton();\n btnCancel.setText(\"Odustani\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n selected = false;\n setVisible(false);\n }\n });\n }\n return btnCancel;\n }", "public void setCancelButtonCaption(String caption) {\r\n\t\tif (_cancelButton != null)\r\n\t\t\t_cancelButton.setDisplayName(caption);\r\n\t}", "public javax.swing.JButton getCancelBtn() {\n\t\treturn cancelBtn;\n\t}", "public Object getBtnCancel() {\n return btnCancel;\n }", "public String getCancelButtonCaption() {\r\n\t\tif (_cancelButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _cancelButton.getDisplayName();\r\n\t}", "public ComDialogBuilder setCancelBackgroundResouce(int resID) {\n if (cancelBtn == null) {\n cancelBtn = getView(R.id.dialog_neg_btn);\n }\n if (cancelBtn != null && resID != -1) {\n cancelBtnBG = resID;\n cancelBtn.setBackgroundResource(resID);\n }\n return this;\n }", "@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }", "protected void createCancelButton(Composite parent) {\n\t\tcancel = createButton(parent, IDialogConstants.CANCEL_ID, \"取消\", true);\n\t\tcancel.setCursor(arrowCursor);\n\t\tsetOperationCancelButtonEnabled(true);\n\t}", "@Override\n public void setPriorityTextColor(String textColor) {\n btnPrioritySet.setTextColor(Color.parseColor(textColor));\n }", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "private void applyForegroundColor() {\r\n\t\tthis.control.setForeground(PromptSupport.getForeground(this.control));\r\n\t}", "private javax.swing.JButton getBtnCancel() {\r\n\tif (ivjBtnCancel == null) {\r\n\t\ttry {\r\n\t\t\tivjBtnCancel = new javax.swing.JButton();\r\n\t\t\tivjBtnCancel.setName(\"BtnCancel\");\r\n\t\t\tivjBtnCancel.setText(\"Cancel\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjBtnCancel;\r\n}", "public void resetButtonAndText() {\n currentText = colorTxtArr[(int) (Math.random() * 5)];\n buttonColor = colorArr[(int) (Math.random() * 5)];\n colorText.setForeground(buttonColor);\n colorText.setText(currentText);\n }", "public static void setupCancelButton() {\n if (imageAdapter.getSelectedSize() == 0) {\n // always set to invisible\n cancel.hide();\n return;\n }\n // set button to be visible\n cancel.show();\n }", "private JButton addCancelButton(){\n\t\tJButton cancelButton = new JButton(\"Cancel\");\n\n\t\tcancelButton.addActionListener(arg0 -> setVisible(false));\n\t\treturn cancelButton;\n\t}", "private void resetTextColor(Button btn1, Button btn2) {\n\t\tbtn1.setTextColor(Color.parseColor(getResources().getString(R.color.list_text_color)));\n\t\tbtn2.setTextColor(Color.parseColor(getResources().getString(R.color.list_text_color)));\n\t}", "private JButton getJButtonCancelar() {\r\n\t\tif (jButtonCancelar == null) {\r\n\t\t\tjButtonCancelar = new JButton();\r\n\t\t\tjButtonCancelar.setText(CANCELAR);\r\n\t\t}\r\n\t\treturn jButtonCancelar;\r\n\t}", "private void setDefaultTextColor(Context context) {\n\n }", "private void setStyleToIndicateCommandFailure() {\n //override style and disable syntax highlighting\n commandTextField.overrideStyle(ERROR_STYLE_CLASS);\n }", "private JButton getCancelButton() {\r\n\t\tif (cancelButton == null) {\r\n\t\t\tcancelButton = new JButton();\r\n\t\t\tcancelButton.setText(\"Cancel\");\r\n\t\t\tcancelButton.addActionListener(new java.awt.event.ActionListener() { \r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \r\n\t\t\t\t\tdispose();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn cancelButton;\r\n\t}", "private Component cancelButton(){\n cancelButton = new Button(\"cancelButton\"){\n @Override\n public void onSubmit() {\n super.onSubmit();\n personFormPanel.clearFormValues();\n }\n };\n //Reset default form processing: validation and model update\n cancelButton.setDefaultFormProcessing(false);\n return cancelButton;\n }", "private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}", "public void cancel() { Common.exitWindow(cancelBtn); }", "public void onClick(DialogInterface dialog, int id) {\n Changebtn.setText(\"Undo\");\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n ((TextView) findViewById(R.id.text)).setTextColor(getResources().getColor(R.color.brwn));\n }", "public void mouseExited(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextColour());//the colour of the text when the cursor is removed\n }", "public void setTextColor(String textColor);", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "private JButton getCancelButton() {\n if (cancelButton == null) {\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n canceled = true;\n dispose();\n }\n });\n }\n return cancelButton;\n }", "private Component getCancelButton() {\n\t\tif (cancelButton == null) {\r\n\t\t\tcancelButton = new JButton();\r\n\t\t\tcancelButton.setText(\"Cancel\");\r\n\t\t\tcancelButton.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t \r\n\t\t\t\t\t\tdispose();\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\treturn cancelButton;\r\n\t}", "public void setButtonColor(Color col){\n\t\tbuttonColor = col;\n\t}", "public final String getBtnFontColor() {\n\t\treturn btnFontColor;\n\t}", "public void setTextColor( Color txtColor ) {\r\n textColor = txtColor;\r\n }", "public void addCancelButton() {\r\n mButtons.add(mCancelButton);\r\n\r\n mCancelButton.addClickListener(new ModernClickListener() {\r\n @Override\r\n public void clicked(ModernClickEvent e) {\r\n hide(e);\r\n }\r\n });\r\n }", "public final String getBtnColor() {\n\t\treturn btnColor;\n\t}", "@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }", "private void clearBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMousePressed\n clearBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "public void setTextColor(RMColor aColor) { }", "@Override\n\tpublic String textoVerificarCancelar() {\n\t\treturn null;\n\t}", "private JButton getJButtonCancelHTML() {\r\n\r\n\t\tif (jButtonCancelHTML == null) {\r\n\t\t\tjButtonCancelHTML = new JButton();\r\n\t\t\tjButtonCancelHTML.setBounds(new Rectangle(306, 258, 106, 21));\r\n\t\t\tjButtonCancelHTML.setText(StringDatabase.getUniqueInstance ()\r\n\t\t\t\t.getString(\"HTMLTextEditor.jButtonCancelHTML.Text\"));\r\n\t\t\t// setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\t\tjButtonCancelHTML\r\n\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\r\n\t\t\t\t\t\textendedHTMLEditorKit =\r\n\t\t\t\t\t\t\tekitCoreEditorHTMLPanel.gethtmlKit();\r\n\t\t\t\t\t\textendedHTMLDocument =\r\n\t\t\t\t\t\t\tekitCoreEditorHTMLPanel.gethtmlDoc();\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t}\r\n\t\treturn jButtonCancelHTML;\r\n\t}", "private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}", "public void setTextUnselectedColor(@ColorInt int color) {\n mTextUnselectedColor = Color.argb(255, Color.red(color), Color.green(color), Color.blue(color));\n }", "public JButtonOperator btCancel() {\n if (_btCancel==null) {\n _btCancel = new JButtonOperator(this, Bundle.getStringTrimmed(\"org.openide.Bundle\", \"CTL_CANCEL\"));\n }\n return _btCancel;\n }", "private void clearBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseReleased\n clearBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\n\t\t\t\tif (s.toString().equals(\"\")) {\n\t\t\t\t\tchangeBackColor();\n\t\t\t\t} else {\n\t\t\t\t\tbtn_transfer_ok.setBackgroundColor(getResources().getColor(R.color.tv_leaveItem_state_green));\n\t\t\t\t\tbtn_transfer_ok.setTextColor(android.graphics.Color.parseColor(\"#ffffff\"));\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tprotected void onCancelActionSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Cancel button implementation\");\r\n\t}", "private void jButton_CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_CancelActionPerformed\n // TODO add your handling code here:\n }", "@Override\n public void onShow(DialogInterface dialogInterface) {\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setBackgroundColor(0xFF609000);\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(Color.WHITE);\n // Change the negative button to red color with white text\n dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setBackgroundColor(0xFFC00000);\n dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setTextColor(Color.WHITE);\n }", "public String getCancelReason() {\n return cancelReason;\n }", "public RMColor getTextColor() { return RMColor.black; }", "public void resetButtonStyles() {\n\t\tint drawable_id = R.drawable.stockbutton;\n\t\tDrawable stockbutton = getResources().getDrawable(drawable_id);\n\t\t\n\t\t// For now I'm just going to set the bg colors\n\t\tButton outsideButton = (Button) findViewById(R.id.outside);\n\t\toutsideButton.setBackground(stockbutton);\n\t\tButton fridgeButton = (Button) findViewById(R.id.fridge);\n\t\tfridgeButton.setBackground(stockbutton);\n\t\tButton freezerButton = (Button) findViewById(R.id.freezer);\n\t\tfreezerButton.setBackground(stockbutton);\n\t}", "@Override\n protected void onCancelled(String retval) {\n super.onCancelled();\n\n etText.setValue(retval);\n butState.setValue(true);\n pbProgress.setValue(0);\n }", "@Override\n public void onClick(View v) {\n ((TextView) findViewById(R.id.text)).setTextColor(getResources().getColor(R.color.orange));\n }", "private void setColorForDialog(int color) {\n titleEditText.setTextColor(color);\n descriptionEditText.setTextColor(color);\n colorTextView.setTextColor(color);\n titleTextView.setTextColor(color);\n descriptionTextView.setTextColor(color);\n\n\n // convert color from int format to HEX -> to save in db\n chosenColor = String.format(\"#%06X\", (0xFFFFFF & color));\n }", "public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }", "private JButton getRejectButton() {\n return ((OkCancelButtonPanel) getButtonPanel()).getCancelButton();\n }", "@Override\r\n\tprotected void onBoCancel() throws Exception {\n\t\tsuper.onBoCancel();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}", "public void onCancelButtonClick() {\n close();\n }", "public int getTextUnselectedColor() {\n return mTextUnselectedColor;\n }", "public void setProgressTextColor(@ColorInt int textColor){\n this.mProgressTextColor = textColor;\n }", "private void clearxuan() {\n\t\tbtn_Fourgroup6_xuan_big.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_little.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_all.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_odd.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_even.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_clear.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_big.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_little.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_all.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_odd.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_even.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_clear.setTextColor(0xffcfcfcf);\r\n\r\n\t}", "private void buttonMouseExit(Button btn){\r\n\t\tbtn.setBackground(\r\n\t\t\t\tnew Background(new BackgroundFill(Color.ALICEBLUE, new CornerRadii(0), new Insets(0)))); // set login button aliceblue with mouse exit\r\n\t\tbtn.setTextFill(Color.BLACK); // set text black\r\n\t}", "public void setCancelReason(String cancelReason) {\n this.cancelReason = cancelReason;\n }", "public String getButtonBgColor() {\r\n\t\tif (_saveButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _saveButton.getButtonBgColor();\r\n\t}", "public void chooseColor() {\n Color c = JColorChooser.showDialog(_parent, \"Choose '\" + getLabelText() + \"'\", _color);\n if (c != null) {\n _color = c;\n notifyChangeListeners();\n _updateField(_color);\n } \n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttotalLayout.setBackgroundColor(getResources().getColor(R.color.red));\n\t\t\t\tconfirmButton.setEnabled(false);\n\t\t\t\tconfirmRequest1();\n\t\t\t}", "Integer getTxtColor();", "private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void marksCancel(View view) {\n }", "public void clrBtn(String str)\n {\n String greenClr= \"#9FEF52\";\n String grayClr = \"#F3F3F3\";\n\n String clrLeft = grayClr;\n String clrRight = grayClr;\n String clrUp = grayClr;\n String clrDown = grayClr;\n\n if(str.equals(\"Left\"))\n {\n clrLeft = greenClr;\n }\n else if(str.equals(\"Right\"))\n {\n clrRight = greenClr;\n }else if(str.equals(\"Up\"))\n {\n clrUp = greenClr;\n\n }else if(str.equals(\"Down\"))\n {\n clrDown = greenClr;\n }\n\n leftBtn.setBackgroundColor(Color.parseColor(clrLeft));\n rightBtn.setBackgroundColor(Color.parseColor(clrRight));\n upBtn.setBackgroundColor(Color.parseColor(clrUp));\n downBtn.setBackgroundColor(Color.parseColor(clrDown));\n\n }", "public void cancelar() {\n setCancelado(true);\n }", "void setTextButtonBack(String textBtnBack);", "private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n b.resetColor();\r\n }\r\n }\r\n \r\n for (MyButton b1: mylist.getAllButtons()){\r\n if(b1.isChosen()){\r\n for(MyButton b2 : mylist.getAllButtons()){\r\n if(!b1.equals(b2)){ \r\n if (b2.block.isSameType(b1.block)){ \r\n b2.setCannotBeChosen();\r\n }\r\n else if (!b2.isChosen() && b2.block.isAtSameTime(b1.block)){\r\n b2.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }", "private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}", "private void clearBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseEntered\n clearBtn.setBackground(Color.decode(\"#339966\"));\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (s.toString().equalsIgnoreCase(\"\")) {\n mTextTarget.setTextColor(getResources().getColor(R.color.black));\n mTextTarget.setEnabled(false);\n } else {\n //Not sure what this color is exactly doing\n //mTextTarget.setTextColor(getResources().getColorStateList(R.color.text_field_back_color));\n mTextTarget.setEnabled(true);\n }\n\n }", "public void clickOnCancelButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Cancel\"));\r\n\t}", "public static int cancel() {\n\t\tUIManager.put(\"OptionPane.warningIcon\", icon);\n\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\treturn 1;\n\t}", "public Color getButtonColor(){\n\t\treturn buttonColor;\n\t}" ]
[ "0.68581116", "0.6833663", "0.68156374", "0.67318404", "0.6650203", "0.6368422", "0.6323954", "0.6283788", "0.62103945", "0.6174779", "0.6172339", "0.6172333", "0.6084219", "0.60361946", "0.6030675", "0.60222507", "0.6021753", "0.6011029", "0.5989449", "0.5970647", "0.59700364", "0.5968597", "0.59512943", "0.59432274", "0.59362394", "0.59207565", "0.57820916", "0.5766861", "0.5766218", "0.57622266", "0.5760097", "0.5735875", "0.5721472", "0.57042044", "0.569494", "0.5684799", "0.56841445", "0.5680317", "0.5665638", "0.5657284", "0.5654175", "0.56192875", "0.5614076", "0.5603651", "0.55877507", "0.55744493", "0.556511", "0.5559835", "0.5556194", "0.5554835", "0.555257", "0.55473846", "0.55425", "0.55202556", "0.5510878", "0.5508091", "0.5500705", "0.54936624", "0.54815865", "0.54776853", "0.5461675", "0.5461563", "0.5454542", "0.5446962", "0.5435674", "0.5432826", "0.5425679", "0.5416258", "0.54147965", "0.5403656", "0.53848135", "0.53823", "0.537227", "0.5359479", "0.53506577", "0.5342079", "0.5333299", "0.53316844", "0.5323474", "0.53206927", "0.53093076", "0.53070503", "0.53001714", "0.5297798", "0.52976173", "0.5297148", "0.5292607", "0.52924716", "0.527321", "0.5272077", "0.52707773", "0.5259816", "0.52594644", "0.5258097", "0.52555543", "0.5251933", "0.5247388", "0.52447027", "0.5240694", "0.5232322" ]
0.7705129
0
set message text size
public ComDialogBuilder setMessageTextSize(int textsize) { if(dialogMsg!=null){ dialogMsg.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "public void setSizeMessage(String sizeMessage) {\n\t\tthis.sizeMessage = sizeMessage;\n\t}", "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }", "public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }", "public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }", "public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}", "public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public ComDialogBuilder setTitleTextSize(int textsize) {\n if(dialogTitle!=null){\n dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }", "public static void setDefaultTextSize(int defaultTextSize) {\n if (defaultTextSize < 0){\n throw new IllegalArgumentException(\"The text size must be >= 0\");\n }\n DEFAULT_TEXT_SIZE = defaultTextSize;\n }", "public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}", "public IconBuilder fontSize(int size) {\n\t\tthis.fixedFontSize = size;\n\t\treturn this;\n\t}", "public abstract int getMessageSize();", "private void setupMessage() {\n \tmessage = new GLabel(\"\");\n \tmessage.setFont(\"SansSerif-12\");\n }", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }", "public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }", "public float getTextSize() {\n return mTextSize;\n }", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }", "public LabelBuilder setFontSize(int size) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setSize(size);\n\t\treturn this;\n\n\t}", "public void setSize(String size) {\n this.size = size;\n }", "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }", "public static int SPgetMessageTextSizePercentage(Context context){\n SharedPreferences pref = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE);\n return pref.getInt(\"messageTextSize\", 70);\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public String getFontSizeText()\r\n\t{\r\n\t\treturn fontSizeTextField.getText(); // return the text in the Font Size text field\r\n\t}", "public static void setDefaultSize(int size) {\r\n\t\tSet<Object> keySet = UIManager.getLookAndFeelDefaults().keySet();\r\n\t\tObject[] keys = keySet.toArray(new Object[keySet.size()]);\r\n\r\n\t\tfor (Object key : keys) {\r\n\t\t\tif (key != null && key.toString().toLowerCase().contains(\"font\")) {\r\n\t\t\t\tFont font = UIManager.getDefaults().getFont(key);\r\n\t\t\t\tif (font != null) {\r\n\t\t\t\t\tfont = font.deriveFont((float)size);\r\n\t\t\t\t\tUIManager.put(key, font);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ModernAutoSizeLabel(String text, int width) {\r\n super(text, width);\r\n }", "private void setFontSize(float newFontSize) {\n\t\tfontSize = newFontSize;\n\t\tproperties.setProperty(\"fontSize\", Float.toString(newFontSize));\n\n\t\t// update all text-based components\n\t\tfor (Component c : components)\n\t\t\tc.setFont(c.getFont().deriveFont(newFontSize));\n\t\t\n\t\t// update machine graphics\n\t\tupdate(); \n\t}", "public void setHightlightedTextSize(Float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mHightlightedTextSize = Utils.convertDpToPixel(size);\n\n }", "public ModernAutoSizeLabel(String text) {\r\n super(text, TEXT_COLOR);\r\n }", "public void setFontSize(int fontSize) {\n this.fontSize = fontSize;\n updateLineHeight();\n updateCursor();\n update();\n }", "public native final EditorBaseEvent fontSize(String val) /*-{\n\t\tthis.fontSize = val;\n\t\treturn this;\n\t}-*/;", "public int setTextSize(int textSelection) {\n // Sets the text size in Settings\n Settings.setTextSize(textSelection);\n\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n return Settings.getTextSize();\n }", "public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }", "public void setFontSize(int fontSize) {\r\n try {\r\n this.setFont(this.getFont().deriveFont((float) fontSize));\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font size\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }", "private void setRawTextSize(float f) {\n if (f != this.mTextView.getPaint().getTextSize()) {\n this.mTextView.getPaint().setTextSize(f);\n boolean bl = false;\n if (Build.VERSION.SDK_INT >= 18) {\n bl = this.mTextView.isInLayout();\n }\n if (this.mTextView.getLayout() != null) {\n this.mNeedsAutoSizeText = false;\n try {\n Method method = this.getTextViewMethod(\"nullLayouts\");\n if (method != null) {\n method.invoke((Object)this.mTextView, new Object[0]);\n }\n }\n catch (Exception exception) {\n Log.w((String)\"ACTVAutoSizeHelper\", (String)\"Failed to invoke TextView#nullLayouts() method\", (Throwable)exception);\n }\n if (!bl) {\n this.mTextView.requestLayout();\n } else {\n this.mTextView.forceLayout();\n }\n this.mTextView.invalidate();\n }\n }\n }", "public int getFontSize();", "public FontRenderer setSize(float size) {\n\t\tthis.size = size;\n\t\ttransform.setScale(size);\n\t\t\n\t\treturn this;\n\t}", "public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }", "public void setTextLabelFontSize(int mTextLabelFontSize) {\n\t\tthis.mTextLabelFontSize = mTextLabelFontSize;\n\t}", "public Builder setContentTextSize(float size) {\n this.contentTextSize = size;\n return this;\n }", "public int getLabelTextSize(){\n return labelTextSize;\n }", "public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);\n emptyLabel.setFont(labelFont);\n errorLabel.setFont(labelFont);\n }", "public void setModifierFont(String name, int type, int size) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size);\n _SPR.RefreshModifierFont();\n }", "public int getButtonTextSize(){\n return buttonTextSize;\n }", "public float getTextSizePx() {\n return mPaint.getTextSize();\n }", "public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }", "public String getSizeMessage() {\n\t\treturn sizeMessage;\n\t}", "private void setMainMessage(String message)\n\t\t{\n\t\t\tint rows = 1 + mainTextArea.getFontMetrics(mainTextArea.getFont())\n\t\t\t\t\t.stringWidth(message)\n\t\t\t\t\t/ INITIAL_LINE_LENGTH;\n\t\t\tmainTextArea.setRows(rows);\n\t\t\tmainTextArea.setText(message);\n\t\t}", "public double getFontSize(\n )\n {return fontSize;}", "public int getSwitchTextSize(){\n return switchTextSize;\n }", "public float getFontSize();", "public int fontSize() {\n\t\treturn fixedFontSize;\n\t}", "public float getFontSize() {\n return fontSize;\n }", "@Element \n public void setSize(String size) {\n this.size = size;\n }", "public float getTextSize() {\n return mTextContainer.getTextSize();\n }", "void setPaperSize(short size);", "private void setTextSize(ViewHolder holder) {\n // Get the text size string from SharedPreferences and check for the value associated with the key\n String textSize = sharedPrefs.getString(\n mContext.getString(R.string.settings_text_size_key),\n mContext.getString(R.string.settings_text_size_default));\n\n // Change text size of TextView by using the user's stored preferences\n if(textSize.equals(mContext.getString(R.string.settings_text_size_medium_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp22));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_small_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp20));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_large_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp24));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp18));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n }\n }", "private void initialisationChampMessage() {\n messageArea = new JTextArea();\n messageArea.setLineWrap(true);\n messageArea.setWrapStyleWord(true);\n messageArea.setOpaque(false);\n messageArea.setBackground(COULEUR_VIDE);\n messageArea.setFont(FONT_TEXTE);\n messageArea.setBorder(BorderFactory.createEmptyBorder(GRANDEUR_BORDURE_VIDE, GRANDEUR_BORDURE_VIDE,\n GRANDEUR_BORDURE_VIDE, GRANDEUR_BORDURE_VIDE));\n dimTotal = calculerDimensionTotalMessage(this.message);\n messageArea.setSize((int) dimTotal.getWidth() + GRANDEUR_BORDURE_VIDE * 2,\n (int) dimTotal.getHeight() + GRANDEUR_BORDURE_VIDE * 2);\n messageArea.append(this.message);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n userName.setText(otherUser.getUserName());\n myclient = Client.getInstance();\n myserver = myclient.getMyServer();\n messages = new ArrayList<Message>();\n messageVBox.setSpacing(5);\n messageVBox.setPadding(new Insets(10, 10, 10, 10));\n fontFamily.getItems().addAll(fontFamilyStrings);\n fontFamily.setValue(\"serif\");\n fontSize.getItems().addAll(fontSizeStrings);\n fontSize.setValue(\"12\");\n fontWeight.getItems().addAll(fontWeightStrings);\n fontWeight.setValue(FontWeight.LIGHT);\n fontSizeValue = fontSize.getValue();\n fontFamilyValue = fontFamily.getValue();\n fontWeghtValue = fontWeight.getValue();\n font = Font.font(fontFamilyValue, fontWeghtValue, Double.parseDouble(fontSizeValue));\n colorPallet.setValue(Color.BLACK);\n messageColor = colorPallet.getValue();\n message.setFontSize(fontSizeValue);\n message.setFontFamily(fontFamilyValue);\n message.setFontWeight(fontWeghtValue.toString());\n hex1 = Integer.toHexString(messageColor.hashCode());\n message.setTextColor(\"#\" + hex1);\n\n fontSize.valueProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n fontSizeValue = fontSize.getValue();\n font = Font.font(fontFamilyValue, fontWeghtValue, Double.parseDouble(fontSizeValue));\n messageTextField.setFont(font);\n message.setFontSize(fontSizeValue);\n //messageTextField.setStyle(\"-fx-text-fill: green\");\n System.out.println(font.getSize());\n\n }\n\n });\n\n fontFamily.valueProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n fontFamilyValue = fontFamily.getValue();\n font = Font.font(fontFamilyValue, fontWeghtValue, Double.parseDouble(fontSizeValue));\n messageTextField.setFont(font);\n message.setFontFamily(fontFamilyValue);\n\n //messageTextField.setStyle(\"-fx-text-fill: green\");\n System.out.println(font.getFamily());\n\n }\n\n });\n\n fontWeight.valueProperty().addListener(new ChangeListener<FontWeight>() {\n @Override\n public void changed(ObservableValue<? extends FontWeight> observable, FontWeight oldValue, FontWeight newValue) {\n fontWeghtValue = fontWeight.getValue();\n font = Font.font(fontFamilyValue, fontWeghtValue, Double.parseDouble(fontSizeValue));\n messageTextField.setFont(font);\n message.setFontWeight(fontWeghtValue.toString());\n //messageTextField.setStyle(\"-fx-text-fill: green\");\n System.out.println(fontWeghtValue.toString());\n }\n });\n\n colorPallet.valueProperty().addListener(new ChangeListener<Color>() {\n @Override\n public void changed(ObservableValue<? extends Color> observable, Color oldValue, Color newValue) {\n messageColor = colorPallet.getValue();\n hex1 = Integer.toHexString(messageColor.hashCode());\n String mColor=hex1.substring(0, 6);\n System.out.println(\"#\"+mColor);\n System.out.println(\"hexa\"+hex1);\n \n message.setTextColor(\"#\"+mColor);\n messageTextField.setStyle(\"-fx-text-fill:#\" + hex1);\n isChanged = true;\n }\n });\n \n messageTextField.setOnKeyPressed(new EventHandler<javafx.scene.input.KeyEvent>() {\n @Override\n public void handle(javafx.scene.input.KeyEvent event) {\n if(event.getCode()==KeyCode.ENTER){\n \n \n }\n \n \n \n \n }\n });\n\n }", "public void SetTextField()\r\n\t{\n\t\tLoadSettings();\r\n\r\n\t\ttextView_reader.setFileName(fileName);\r\n\t\ttextView_reader.setTextSize(Setting_text_size);\r\n\t\ttextView_reader.setTextColor(DefaultSetting.color[Setting_text_color]);\r\n//\t\ttextView_reader.setBackgroundColor(DefaultSetting.color[Setting_bg_color]);\r\n\t\ttextView_reader.setTextCode(Setting_text_code);\r\n\t\tSystem.out.println(\"Setting_text_size = \" + Setting_text_size);\r\n\t}", "public ModernAutoSizeLabel(String text, Font font) {\r\n super(text, font);\r\n }", "private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}", "public void setMessage(String text) {\r\n\t\tif (this.outputTextArea == null)\r\n\t\t\treturn;\r\n\t\tif (text != null && text.length() > 0) {\r\n\t\t\tthis.outputTextArea.setText(text.replaceAll(\"\\n\", \" \"));\r\n\t\t\tthis.outputTextArea.setRows(2);\r\n\t\t}\r\n\t\telse\r\n\t\t\tthis.outputTextArea.setText(\"\");\r\n\t}", "public void setSize(@Nullable String size) {\n this.size = size;\n }", "@ReactMethod\n public void setFontSize(float fontSize, Promise promise){\n if (woyouService == null) {\n Toast.makeText(this.reactContext, R.string.printer_disconnect, Toast.LENGTH_LONG).show();\n promise.reject(\"0\", \"\");\n }\n\n try {\n woyouService.setFontSize(fontSize, null);\n promise.resolve(null);\n } catch (RemoteException e) {\n promise.reject(\"0\", e.getMessage());\n }\n }", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public void setSize(String size) {\r\n this.size = size == null ? null : size.trim();\r\n }", "public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}", "public void setText(String text, int textSize, Colour textColour) {\n this.text = text;\r\n this.textSize = textSize;\r\n this.textColour = textColour;\r\n xTextOffset = w / 2 - text.length() * 7.666f;\r\n yTextOffset = h / 2 + textSize / 2.6666f;\r\n }", "public PatchTextStyleProperties fontSize(String fontSize) {\n this.fontSize = fontSize;\n return this;\n }", "private int getNormalTextSizeWeight() {\n return Integer.parseInt(getMessage(\"report.tabular.normal.text.size.weight\"));\n }", "public int getFontSize()\n \t{\n \t\treturn 13;\n \t}", "public Text updateMessage(String msg){\r\n Text message = new Text(\"Height: \" + tree.height() + \", Vertices: \" + tree.getVertices()+\"\\t\\t Status: \"+ msg);\r\n message.setFont(Font.font(Font.getDefault().toString(), FontWeight.BOLD,20));\r\n return message;\r\n }", "@RestrictTo(value={RestrictTo.Scope.LIBRARY_GROUP})\n void setAutoSizeTextTypeWithDefaults(int n) {\n if (!this.supportsAutoSizeText()) return;\n if (n != 0) {\n if (n == 1) {\n DisplayMetrics displayMetrics = this.mContext.getResources().getDisplayMetrics();\n this.validateAndSetAutoSizeTextTypeUniformConfiguration(TypedValue.applyDimension((int)2, (float)12.0f, (DisplayMetrics)displayMetrics), TypedValue.applyDimension((int)2, (float)112.0f, (DisplayMetrics)displayMetrics), 1.0f);\n if (!this.setupAutoSizeText()) return;\n this.autoSizeText();\n return;\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Unknown auto-size text type: \");\n stringBuilder.append(n);\n throw new IllegalArgumentException(stringBuilder.toString());\n }\n this.clearAutoSizeConfiguration();\n }", "public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void adjustTextSize(String str) {\n int i;\n int i2 = this.mMinTextSize;\n int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop();\n int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - this.mEditText.getCompoundPaddingRight();\n this.mWidthLimit = width;\n this.mAvailableSpaceRect.right = (float) width;\n this.mAvailableSpaceRect.bottom = (float) height;\n if (!this.mIsMultiLine || Math.min(getRect().width(), getRect().height()) <= 40.0f) {\n i = binarySearch(i2, this.mMaxTextSize, this.mSizeTester, this.mAvailableSpaceRect);\n } else {\n i = 40;\n }\n this.mEditText.setTextSize(0, (float) i);\n }", "void setFontScale(\n float s);", "public native final String fontSize() /*-{\n\t\treturn this.fontSize;\n\t}-*/;", "public String getSizeTextField(){\n\t\treturn textField.getText();\n\t}", "private void setSize(int s){\n\t\tsize = s;\n\t}", "private void initLrcFontSize() {\n int screeHeight=getResources().getDisplayMetrics().heightPixels;\n int marginLeft=(int)(1.0*screeHeight/9);\n LrcView.defaultTextSize=DensityUtil.px2sp(this, (marginLeft));//设置默认的歌词大小\n LrcView.defaultDividerHeight=marginLeft/2;\n }", "protected void createDialogSize ()\n {\n }", "public void setTextViewSize(float px) {\r\n\t\tfloat scaledDensity = getResources().getDisplayMetrics().scaledDensity;\r\n\t\tint sp = (int) (px / scaledDensity);\r\n\t\tsetTextSize(sp);\r\n\t}", "public final int getFontSize() {\n return fontSize;\n }", "@Override\n public int getMessageSize()\n {\n return 0;\n }", "public ModernAutoSizeLabel(String text, Color color) {\r\n super(text, color);\r\n }", "public void sizeActionPerformed(java.awt.event.ActionEvent evt) {\n myFont.size = ((Integer) size.getSelectedItem()).intValue(); /*FAULT:: myFont.size = 5; */\n }", "private static void loadTextSizes(Context context)\n\t{\n\t\tDisplayMetrics metrics = context.getResources().getDisplayMetrics();\n\t\tTEXT_SIZE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, metrics);\n\t\tTEXT_SIZE_BIG = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, metrics);\n\t\tPADDING = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, metrics);\n\t\tTEXT_SPACE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, metrics);\n\t}", "private static void setTextSizeForWidth(Paint paint, String text, float desiredWidth) {\n\n // Pick a reasonably large value for the test. Larger values produce\n // more accurate results, but may cause problems with hardware\n // acceleration. But there are workarounds for that, too; refer to\n // http://stackoverflow.com/questions/6253528/font-size-too-large-to-fit-in-cache\n final float defaultTextSize = 44f;\n paint.setTextSize(defaultTextSize);\n Rect textBounds = new Rect();\n paint.getTextBounds(text, 0, text.length(), textBounds);\n // Calculate the desired size as a proportion of our testTextSize.\n if (textBounds.width() > desiredWidth) {\n float desiredTextSize = defaultTextSize * (desiredWidth / textBounds.width());\n\n // Set the paint for that size.\n paint.setTextSize(desiredTextSize);\n }\n\n }", "public void setFontSize(float fs) {\n\t\tif (fs != fontSize) {\n\t\t\tfontSize = fs;\n\t\t\treload();\n\t\t}\n\t}", "public void setSize(int size) {\r\n _size = size;\r\n }" ]
[ "0.7348592", "0.7313439", "0.72633153", "0.7227451", "0.7036686", "0.6958073", "0.68536866", "0.6767855", "0.67621994", "0.6654609", "0.6609147", "0.65618837", "0.651933", "0.64784425", "0.6472017", "0.6445632", "0.63834226", "0.63811153", "0.63659495", "0.6352882", "0.6324267", "0.6300569", "0.62897164", "0.6271403", "0.6228422", "0.61604476", "0.6142737", "0.61179364", "0.6111306", "0.6091466", "0.60741764", "0.60692906", "0.6044357", "0.6030574", "0.59999317", "0.595914", "0.595165", "0.5944776", "0.59434724", "0.5932669", "0.5931558", "0.5923976", "0.5922216", "0.5920356", "0.59162605", "0.5895483", "0.588889", "0.58872", "0.58797073", "0.58682287", "0.58550435", "0.5854272", "0.5839818", "0.58337164", "0.5799642", "0.57922024", "0.5788941", "0.5777356", "0.5772218", "0.5755367", "0.57500464", "0.5743819", "0.57425404", "0.57338005", "0.5725558", "0.57183695", "0.5714213", "0.57131785", "0.5697077", "0.5670622", "0.5666424", "0.5647433", "0.5646553", "0.5643938", "0.5643669", "0.5641281", "0.5634132", "0.5629118", "0.56260103", "0.56203896", "0.56020224", "0.55995315", "0.5597753", "0.5587784", "0.55844146", "0.5582754", "0.5582348", "0.5552145", "0.5551851", "0.5543562", "0.55431646", "0.5541748", "0.55388856", "0.5536878", "0.5535736", "0.55280334", "0.552646", "0.5523431", "0.552318", "0.55228335" ]
0.77507627
0
set message text size
public ComDialogBuilder setMessageTextColor(int color) { if(dialogMsg!=null){ dialogMsg.setTextColor(color); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ComDialogBuilder setMessageTextSize(int textsize) {\n if(dialogMsg!=null){\n dialogMsg.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "public void setSizeMessage(String sizeMessage) {\n\t\tthis.sizeMessage = sizeMessage;\n\t}", "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }", "public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }", "public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }", "public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}", "public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public ComDialogBuilder setTitleTextSize(int textsize) {\n if(dialogTitle!=null){\n dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }", "public static void setDefaultTextSize(int defaultTextSize) {\n if (defaultTextSize < 0){\n throw new IllegalArgumentException(\"The text size must be >= 0\");\n }\n DEFAULT_TEXT_SIZE = defaultTextSize;\n }", "public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}", "public IconBuilder fontSize(int size) {\n\t\tthis.fixedFontSize = size;\n\t\treturn this;\n\t}", "public abstract int getMessageSize();", "private void setupMessage() {\n \tmessage = new GLabel(\"\");\n \tmessage.setFont(\"SansSerif-12\");\n }", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }", "public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }", "public float getTextSize() {\n return mTextSize;\n }", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }", "public LabelBuilder setFontSize(int size) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setSize(size);\n\t\treturn this;\n\n\t}", "public void setSize(String size) {\n this.size = size;\n }", "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }", "public static int SPgetMessageTextSizePercentage(Context context){\n SharedPreferences pref = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE);\n return pref.getInt(\"messageTextSize\", 70);\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public String getFontSizeText()\r\n\t{\r\n\t\treturn fontSizeTextField.getText(); // return the text in the Font Size text field\r\n\t}", "public static void setDefaultSize(int size) {\r\n\t\tSet<Object> keySet = UIManager.getLookAndFeelDefaults().keySet();\r\n\t\tObject[] keys = keySet.toArray(new Object[keySet.size()]);\r\n\r\n\t\tfor (Object key : keys) {\r\n\t\t\tif (key != null && key.toString().toLowerCase().contains(\"font\")) {\r\n\t\t\t\tFont font = UIManager.getDefaults().getFont(key);\r\n\t\t\t\tif (font != null) {\r\n\t\t\t\t\tfont = font.deriveFont((float)size);\r\n\t\t\t\t\tUIManager.put(key, font);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ModernAutoSizeLabel(String text, int width) {\r\n super(text, width);\r\n }", "private void setFontSize(float newFontSize) {\n\t\tfontSize = newFontSize;\n\t\tproperties.setProperty(\"fontSize\", Float.toString(newFontSize));\n\n\t\t// update all text-based components\n\t\tfor (Component c : components)\n\t\t\tc.setFont(c.getFont().deriveFont(newFontSize));\n\t\t\n\t\t// update machine graphics\n\t\tupdate(); \n\t}", "public void setHightlightedTextSize(Float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mHightlightedTextSize = Utils.convertDpToPixel(size);\n\n }", "public ModernAutoSizeLabel(String text) {\r\n super(text, TEXT_COLOR);\r\n }", "public void setFontSize(int fontSize) {\n this.fontSize = fontSize;\n updateLineHeight();\n updateCursor();\n update();\n }", "public native final EditorBaseEvent fontSize(String val) /*-{\n\t\tthis.fontSize = val;\n\t\treturn this;\n\t}-*/;", "public int setTextSize(int textSelection) {\n // Sets the text size in Settings\n Settings.setTextSize(textSelection);\n\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n return Settings.getTextSize();\n }", "public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }", "public void setFontSize(int fontSize) {\r\n try {\r\n this.setFont(this.getFont().deriveFont((float) fontSize));\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font size\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }", "private void setRawTextSize(float f) {\n if (f != this.mTextView.getPaint().getTextSize()) {\n this.mTextView.getPaint().setTextSize(f);\n boolean bl = false;\n if (Build.VERSION.SDK_INT >= 18) {\n bl = this.mTextView.isInLayout();\n }\n if (this.mTextView.getLayout() != null) {\n this.mNeedsAutoSizeText = false;\n try {\n Method method = this.getTextViewMethod(\"nullLayouts\");\n if (method != null) {\n method.invoke((Object)this.mTextView, new Object[0]);\n }\n }\n catch (Exception exception) {\n Log.w((String)\"ACTVAutoSizeHelper\", (String)\"Failed to invoke TextView#nullLayouts() method\", (Throwable)exception);\n }\n if (!bl) {\n this.mTextView.requestLayout();\n } else {\n this.mTextView.forceLayout();\n }\n this.mTextView.invalidate();\n }\n }\n }", "public int getFontSize();", "public FontRenderer setSize(float size) {\n\t\tthis.size = size;\n\t\ttransform.setScale(size);\n\t\t\n\t\treturn this;\n\t}", "public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }", "public void setTextLabelFontSize(int mTextLabelFontSize) {\n\t\tthis.mTextLabelFontSize = mTextLabelFontSize;\n\t}", "public Builder setContentTextSize(float size) {\n this.contentTextSize = size;\n return this;\n }", "public int getLabelTextSize(){\n return labelTextSize;\n }", "public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);\n emptyLabel.setFont(labelFont);\n errorLabel.setFont(labelFont);\n }", "public void setModifierFont(String name, int type, int size) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size);\n _SPR.RefreshModifierFont();\n }", "public int getButtonTextSize(){\n return buttonTextSize;\n }", "public float getTextSizePx() {\n return mPaint.getTextSize();\n }", "public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }", "public String getSizeMessage() {\n\t\treturn sizeMessage;\n\t}", "private void setMainMessage(String message)\n\t\t{\n\t\t\tint rows = 1 + mainTextArea.getFontMetrics(mainTextArea.getFont())\n\t\t\t\t\t.stringWidth(message)\n\t\t\t\t\t/ INITIAL_LINE_LENGTH;\n\t\t\tmainTextArea.setRows(rows);\n\t\t\tmainTextArea.setText(message);\n\t\t}", "public double getFontSize(\n )\n {return fontSize;}", "public int getSwitchTextSize(){\n return switchTextSize;\n }", "public float getFontSize();", "public int fontSize() {\n\t\treturn fixedFontSize;\n\t}", "public float getFontSize() {\n return fontSize;\n }", "@Element \n public void setSize(String size) {\n this.size = size;\n }", "public float getTextSize() {\n return mTextContainer.getTextSize();\n }", "void setPaperSize(short size);", "private void setTextSize(ViewHolder holder) {\n // Get the text size string from SharedPreferences and check for the value associated with the key\n String textSize = sharedPrefs.getString(\n mContext.getString(R.string.settings_text_size_key),\n mContext.getString(R.string.settings_text_size_default));\n\n // Change text size of TextView by using the user's stored preferences\n if(textSize.equals(mContext.getString(R.string.settings_text_size_medium_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp22));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_small_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp20));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_large_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp24));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp18));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n }\n }", "private void initialisationChampMessage() {\n messageArea = new JTextArea();\n messageArea.setLineWrap(true);\n messageArea.setWrapStyleWord(true);\n messageArea.setOpaque(false);\n messageArea.setBackground(COULEUR_VIDE);\n messageArea.setFont(FONT_TEXTE);\n messageArea.setBorder(BorderFactory.createEmptyBorder(GRANDEUR_BORDURE_VIDE, GRANDEUR_BORDURE_VIDE,\n GRANDEUR_BORDURE_VIDE, GRANDEUR_BORDURE_VIDE));\n dimTotal = calculerDimensionTotalMessage(this.message);\n messageArea.setSize((int) dimTotal.getWidth() + GRANDEUR_BORDURE_VIDE * 2,\n (int) dimTotal.getHeight() + GRANDEUR_BORDURE_VIDE * 2);\n messageArea.append(this.message);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n userName.setText(otherUser.getUserName());\n myclient = Client.getInstance();\n myserver = myclient.getMyServer();\n messages = new ArrayList<Message>();\n messageVBox.setSpacing(5);\n messageVBox.setPadding(new Insets(10, 10, 10, 10));\n fontFamily.getItems().addAll(fontFamilyStrings);\n fontFamily.setValue(\"serif\");\n fontSize.getItems().addAll(fontSizeStrings);\n fontSize.setValue(\"12\");\n fontWeight.getItems().addAll(fontWeightStrings);\n fontWeight.setValue(FontWeight.LIGHT);\n fontSizeValue = fontSize.getValue();\n fontFamilyValue = fontFamily.getValue();\n fontWeghtValue = fontWeight.getValue();\n font = Font.font(fontFamilyValue, fontWeghtValue, Double.parseDouble(fontSizeValue));\n colorPallet.setValue(Color.BLACK);\n messageColor = colorPallet.getValue();\n message.setFontSize(fontSizeValue);\n message.setFontFamily(fontFamilyValue);\n message.setFontWeight(fontWeghtValue.toString());\n hex1 = Integer.toHexString(messageColor.hashCode());\n message.setTextColor(\"#\" + hex1);\n\n fontSize.valueProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n fontSizeValue = fontSize.getValue();\n font = Font.font(fontFamilyValue, fontWeghtValue, Double.parseDouble(fontSizeValue));\n messageTextField.setFont(font);\n message.setFontSize(fontSizeValue);\n //messageTextField.setStyle(\"-fx-text-fill: green\");\n System.out.println(font.getSize());\n\n }\n\n });\n\n fontFamily.valueProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n fontFamilyValue = fontFamily.getValue();\n font = Font.font(fontFamilyValue, fontWeghtValue, Double.parseDouble(fontSizeValue));\n messageTextField.setFont(font);\n message.setFontFamily(fontFamilyValue);\n\n //messageTextField.setStyle(\"-fx-text-fill: green\");\n System.out.println(font.getFamily());\n\n }\n\n });\n\n fontWeight.valueProperty().addListener(new ChangeListener<FontWeight>() {\n @Override\n public void changed(ObservableValue<? extends FontWeight> observable, FontWeight oldValue, FontWeight newValue) {\n fontWeghtValue = fontWeight.getValue();\n font = Font.font(fontFamilyValue, fontWeghtValue, Double.parseDouble(fontSizeValue));\n messageTextField.setFont(font);\n message.setFontWeight(fontWeghtValue.toString());\n //messageTextField.setStyle(\"-fx-text-fill: green\");\n System.out.println(fontWeghtValue.toString());\n }\n });\n\n colorPallet.valueProperty().addListener(new ChangeListener<Color>() {\n @Override\n public void changed(ObservableValue<? extends Color> observable, Color oldValue, Color newValue) {\n messageColor = colorPallet.getValue();\n hex1 = Integer.toHexString(messageColor.hashCode());\n String mColor=hex1.substring(0, 6);\n System.out.println(\"#\"+mColor);\n System.out.println(\"hexa\"+hex1);\n \n message.setTextColor(\"#\"+mColor);\n messageTextField.setStyle(\"-fx-text-fill:#\" + hex1);\n isChanged = true;\n }\n });\n \n messageTextField.setOnKeyPressed(new EventHandler<javafx.scene.input.KeyEvent>() {\n @Override\n public void handle(javafx.scene.input.KeyEvent event) {\n if(event.getCode()==KeyCode.ENTER){\n \n \n }\n \n \n \n \n }\n });\n\n }", "public void SetTextField()\r\n\t{\n\t\tLoadSettings();\r\n\r\n\t\ttextView_reader.setFileName(fileName);\r\n\t\ttextView_reader.setTextSize(Setting_text_size);\r\n\t\ttextView_reader.setTextColor(DefaultSetting.color[Setting_text_color]);\r\n//\t\ttextView_reader.setBackgroundColor(DefaultSetting.color[Setting_bg_color]);\r\n\t\ttextView_reader.setTextCode(Setting_text_code);\r\n\t\tSystem.out.println(\"Setting_text_size = \" + Setting_text_size);\r\n\t}", "public ModernAutoSizeLabel(String text, Font font) {\r\n super(text, font);\r\n }", "private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}", "public void setMessage(String text) {\r\n\t\tif (this.outputTextArea == null)\r\n\t\t\treturn;\r\n\t\tif (text != null && text.length() > 0) {\r\n\t\t\tthis.outputTextArea.setText(text.replaceAll(\"\\n\", \" \"));\r\n\t\t\tthis.outputTextArea.setRows(2);\r\n\t\t}\r\n\t\telse\r\n\t\t\tthis.outputTextArea.setText(\"\");\r\n\t}", "public void setSize(@Nullable String size) {\n this.size = size;\n }", "@ReactMethod\n public void setFontSize(float fontSize, Promise promise){\n if (woyouService == null) {\n Toast.makeText(this.reactContext, R.string.printer_disconnect, Toast.LENGTH_LONG).show();\n promise.reject(\"0\", \"\");\n }\n\n try {\n woyouService.setFontSize(fontSize, null);\n promise.resolve(null);\n } catch (RemoteException e) {\n promise.reject(\"0\", e.getMessage());\n }\n }", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public void setSize(String size) {\r\n this.size = size == null ? null : size.trim();\r\n }", "public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}", "public void setText(String text, int textSize, Colour textColour) {\n this.text = text;\r\n this.textSize = textSize;\r\n this.textColour = textColour;\r\n xTextOffset = w / 2 - text.length() * 7.666f;\r\n yTextOffset = h / 2 + textSize / 2.6666f;\r\n }", "public PatchTextStyleProperties fontSize(String fontSize) {\n this.fontSize = fontSize;\n return this;\n }", "private int getNormalTextSizeWeight() {\n return Integer.parseInt(getMessage(\"report.tabular.normal.text.size.weight\"));\n }", "public int getFontSize()\n \t{\n \t\treturn 13;\n \t}", "public Text updateMessage(String msg){\r\n Text message = new Text(\"Height: \" + tree.height() + \", Vertices: \" + tree.getVertices()+\"\\t\\t Status: \"+ msg);\r\n message.setFont(Font.font(Font.getDefault().toString(), FontWeight.BOLD,20));\r\n return message;\r\n }", "@RestrictTo(value={RestrictTo.Scope.LIBRARY_GROUP})\n void setAutoSizeTextTypeWithDefaults(int n) {\n if (!this.supportsAutoSizeText()) return;\n if (n != 0) {\n if (n == 1) {\n DisplayMetrics displayMetrics = this.mContext.getResources().getDisplayMetrics();\n this.validateAndSetAutoSizeTextTypeUniformConfiguration(TypedValue.applyDimension((int)2, (float)12.0f, (DisplayMetrics)displayMetrics), TypedValue.applyDimension((int)2, (float)112.0f, (DisplayMetrics)displayMetrics), 1.0f);\n if (!this.setupAutoSizeText()) return;\n this.autoSizeText();\n return;\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Unknown auto-size text type: \");\n stringBuilder.append(n);\n throw new IllegalArgumentException(stringBuilder.toString());\n }\n this.clearAutoSizeConfiguration();\n }", "public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void adjustTextSize(String str) {\n int i;\n int i2 = this.mMinTextSize;\n int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop();\n int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - this.mEditText.getCompoundPaddingRight();\n this.mWidthLimit = width;\n this.mAvailableSpaceRect.right = (float) width;\n this.mAvailableSpaceRect.bottom = (float) height;\n if (!this.mIsMultiLine || Math.min(getRect().width(), getRect().height()) <= 40.0f) {\n i = binarySearch(i2, this.mMaxTextSize, this.mSizeTester, this.mAvailableSpaceRect);\n } else {\n i = 40;\n }\n this.mEditText.setTextSize(0, (float) i);\n }", "void setFontScale(\n float s);", "public native final String fontSize() /*-{\n\t\treturn this.fontSize;\n\t}-*/;", "public String getSizeTextField(){\n\t\treturn textField.getText();\n\t}", "private void setSize(int s){\n\t\tsize = s;\n\t}", "private void initLrcFontSize() {\n int screeHeight=getResources().getDisplayMetrics().heightPixels;\n int marginLeft=(int)(1.0*screeHeight/9);\n LrcView.defaultTextSize=DensityUtil.px2sp(this, (marginLeft));//设置默认的歌词大小\n LrcView.defaultDividerHeight=marginLeft/2;\n }", "protected void createDialogSize ()\n {\n }", "public void setTextViewSize(float px) {\r\n\t\tfloat scaledDensity = getResources().getDisplayMetrics().scaledDensity;\r\n\t\tint sp = (int) (px / scaledDensity);\r\n\t\tsetTextSize(sp);\r\n\t}", "public final int getFontSize() {\n return fontSize;\n }", "@Override\n public int getMessageSize()\n {\n return 0;\n }", "public ModernAutoSizeLabel(String text, Color color) {\r\n super(text, color);\r\n }", "public void sizeActionPerformed(java.awt.event.ActionEvent evt) {\n myFont.size = ((Integer) size.getSelectedItem()).intValue(); /*FAULT:: myFont.size = 5; */\n }", "private static void loadTextSizes(Context context)\n\t{\n\t\tDisplayMetrics metrics = context.getResources().getDisplayMetrics();\n\t\tTEXT_SIZE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, metrics);\n\t\tTEXT_SIZE_BIG = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, metrics);\n\t\tPADDING = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, metrics);\n\t\tTEXT_SPACE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, metrics);\n\t}", "private static void setTextSizeForWidth(Paint paint, String text, float desiredWidth) {\n\n // Pick a reasonably large value for the test. Larger values produce\n // more accurate results, but may cause problems with hardware\n // acceleration. But there are workarounds for that, too; refer to\n // http://stackoverflow.com/questions/6253528/font-size-too-large-to-fit-in-cache\n final float defaultTextSize = 44f;\n paint.setTextSize(defaultTextSize);\n Rect textBounds = new Rect();\n paint.getTextBounds(text, 0, text.length(), textBounds);\n // Calculate the desired size as a proportion of our testTextSize.\n if (textBounds.width() > desiredWidth) {\n float desiredTextSize = defaultTextSize * (desiredWidth / textBounds.width());\n\n // Set the paint for that size.\n paint.setTextSize(desiredTextSize);\n }\n\n }", "public void setFontSize(float fs) {\n\t\tif (fs != fontSize) {\n\t\t\tfontSize = fs;\n\t\t\treload();\n\t\t}\n\t}", "public void setSize(int size) {\r\n _size = size;\r\n }" ]
[ "0.77507627", "0.7348592", "0.7313439", "0.72633153", "0.7227451", "0.7036686", "0.6958073", "0.68536866", "0.6767855", "0.67621994", "0.6654609", "0.6609147", "0.65618837", "0.651933", "0.64784425", "0.6472017", "0.6445632", "0.63834226", "0.63811153", "0.63659495", "0.6352882", "0.6324267", "0.6300569", "0.62897164", "0.6271403", "0.6228422", "0.61604476", "0.6142737", "0.61179364", "0.6111306", "0.6091466", "0.60741764", "0.60692906", "0.6044357", "0.6030574", "0.59999317", "0.595914", "0.595165", "0.5944776", "0.59434724", "0.5932669", "0.5931558", "0.5923976", "0.5922216", "0.5920356", "0.59162605", "0.5895483", "0.588889", "0.58872", "0.58797073", "0.58682287", "0.58550435", "0.5854272", "0.5839818", "0.58337164", "0.5799642", "0.57922024", "0.5788941", "0.5777356", "0.5772218", "0.5755367", "0.57500464", "0.5743819", "0.57425404", "0.57338005", "0.5725558", "0.57183695", "0.5714213", "0.57131785", "0.5697077", "0.5670622", "0.5666424", "0.5647433", "0.5646553", "0.5643938", "0.5643669", "0.5641281", "0.5634132", "0.5629118", "0.56260103", "0.56203896", "0.56020224", "0.55995315", "0.5597753", "0.5587784", "0.55844146", "0.5582754", "0.5582348", "0.5552145", "0.5551851", "0.5543562", "0.55431646", "0.5541748", "0.55388856", "0.5536878", "0.5535736", "0.55280334", "0.552646", "0.5523431", "0.552318", "0.55228335" ]
0.0
-1
set title text size
public ComDialogBuilder setTitleTextSize(int textsize) { if(dialogTitle!=null){ dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}", "public int getTitleFontSize() {\n\t\treturn this.title_fontsize;\n\t}", "public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}", "private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataHandler().getCurrentLevel())); \n\t\ttitle.setFont(new Font(\"Arial Rounded MT Bold\", Font.BOLD, 65));\n\t\ttitle.setForeground(new Color(254, 157, 79));\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(title);\n\t\ttitle.setBounds(32, 24, 1136, 119);\n\t\ttitle.setOpaque(false);\n\t}", "private Font getTitleFont() {\n\t\tFont f = lblTitle.getFont();\n\t\tf = f.deriveFont(Font.BOLD, PosUIManager.getTitleFontSize());\n\t\treturn f;\n\t}", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "public TitleLabel(String title) {\n\t\tsuper(title);\n\t\tthis.setOpaque(false);\n\t\tthis.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tthis.setVerticalAlignment(SwingConstants.CENTER);\n\t\tthis.setMinimumSize(new Dimension(IConfigGUI.TITLE_WIDTH, IConfigGUI.TITLE_HEIGHT));\n\t\tthis.setMaximumSize(new Dimension(IConfigGUI.TITLE_WIDTH, IConfigGUI.TITLE_HEIGHT));\n\t\tthis.setPreferredSize(new Dimension(IConfigGUI.TITLE_WIDTH, IConfigGUI.TITLE_HEIGHT));\n\t\tthis.setBackground(IConfigGUI.TITLE_BACKGROUND_COLOR);\n\t\tthis.setBorder(new MatteBorder(0, 0, 3, 0, IConfigGUI.BLACK_BORDER_COLOR));\n\t\tthis.setFont(new Font(IConfigGUI.FONT_LOBSTER, 1, IConfigGUI.HUGE_FONT_SIZE * 2));\n\t\t\n\t\tint nbPictures = 16;\n\t\tint wp = (int) (Math.random() * nbPictures) + 1;\n\t\t\n\t\tthis.setForeground(IConfigGUI.TITLE_COLORS[wp - 1]);\n\t\tthis.setIcon(new ImageIcon(\"resources/wallpaper/wp\" + wp + \"_cropped_resized.jpg\"));\n\t\tthis.setIconTextGap(- IConfigGUI.TITLE_WIDTH * 5 / 6);\n\t}", "public void setTitle(String s){\n\t\tJLabel title = new JLabel(s);\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(title, BorderLayout.PAGE_START);\r\n\t}", "public void setTitle(String title) {\n\t\tborder.setTitle(title);\n\t}", "public void title(){\n textFont(select,30);\n fill(150);\n text(\"PLANE SELECT\",482,72);\n fill(0);\n text(\"PLANE SELECT\",480,70);\n}", "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }", "private void addTitle() {\n\t\tJXPanel titlePanel = new JXPanel();\n\t\ttitlePanel.setLayout(null);\n\t\ttitlePanel.setSize(180, 60);\n\t\ttitlePanel.setLocation(60, 10);\n\t\ttitlePanel.setToolTipText(\"www.i.hsr.ch\");\n\t\ttitlePanel.setBorder(new DropShadowBorder(new Color(0, 0, 0), 7, 0.5f, 12, true, true, true, true));\n\t\t\n\t\tJLabel title = GUIComponents.createLabel(YAETMMainView.PROGRAM, new Point(45, 12));\n\t\ttitle.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\t\n\t\tJLabel titleExtend = GUIComponents.createLabel(YAETMMainView.PROGRAMEXT, new Point(10, 33));\n\t\ttitleExtend.setSize(200, 20);\n\t\ttitleExtend.setFont(new Font(\"Arial\", Font.PLAIN, 11));\n\t\t\n\t\ttitlePanel.add(titleExtend);\n\t\ttitlePanel.add(title);\n\t\tpanel.add(titlePanel);\n\t}", "public void displayTitle() {\n\t\tthis.theScreen.setFont(Preferences.TITLE_FONT);\n\t\tthis.theScreen.setColor(Preferences.TITLE_COLOR);\n\t\tthis.theScreen.drawString(Preferences.TITLE,\n\t\t\t\tPreferences.TITLE_X, Preferences.TITLE_Y);\n\t}", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "private void setWindowTitle(String title) {\n this.title = title;\n }", "public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }", "void setTitle(java.lang.String title);", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "@Override\n\tpublic void setTitle(String type, String name) {\n\t\ttxtTitle.setText(String.format(\"%s:%s\", new String[]{type,name}));\n\t}", "public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);\n emptyLabel.setFont(labelFont);\n errorLabel.setFont(labelFont);\n }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "public void setTitle(java.lang.String title);", "public void setTitle(String title) {\r\n this.title = title;\r\n impl.setTitle(getElement(),legend, title);\r\n }", "private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }", "public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "protected void drawTitle(){\n titleBox = new Rectangle(155,380, 490, 200);\n titleBorder = new Rectangle(150, 375, 500, 210);\n titleBorder.setFillColor(pink);\n titleBorder.setFilled(true);\n titleBox.setFillColor(Color.BLACK);\n titleBox.setFilled(true);\n title = new Image(206, 400, \"124-hw4/BreakoutText/breakoutText.png\");\n\n canvas.add(titleBorder);\n canvas.add(titleBox);\n canvas.add(title);\n }", "public static void printTitle(int width, String title)\n {\n title = ConsoleForm.getCentered(width, title);\n System.out.printf(\"\\n%s\\n\\n\", title);\n }", "public void setTitle(String title){\n\t\tplot.setTitle(title);\n\t}", "public void setDefaultTitlesTimes() {\n this.titleFadeIn = 10;\n this.titleDisplayTime = 70;\n this.titleFadeOut = 20;\n }", "@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n SWTStringUtil.DEFAULT_FONT);\n\n view.setWindowTitle(modificationFlag\n + FRAME_PREFIX\n + \": \"\n + project.getName()\n + \" > \"\n + design.getName()\n + \" > \"\n + frameName\n + ((OSUtils.MACOSX) ? \"\" : UI.WINDOW_TITLE));\n }", "public abstract void resizeFrame(JFrame frame, int fontSize);", "public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }", "void setPaperSize(short size);", "public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }", "protected abstract void setTitle();", "public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }", "public MyDialog titleLineHeight(float titleLineHeight_DP) {\n this.mTitleLineHeight = titleLineHeight_DP;\n return this;\n }", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "public void setSize();", "@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}", "protected void SetTitle(String newTitle){ title = newTitle; }", "public void setLabelFont(Font f);", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "private Label createTitle() {\n Label titleLbl = new Label(\"Tank Royale\");\n titleLbl.setFont(Font.loadFont(getClass().getResourceAsStream(\"/resources/fonts/ToetheLineless.ttf\"), 50));\n titleLbl.setPrefWidth(400);\n titleLbl.setLayoutX(545 - titleLbl.getWidth() - 157);\n titleLbl.setLayoutY(125);\n return titleLbl;\n }", "@Override\r\n public void setTitle(String title) {\r\n this.title = title;\r\n gaugeName.setText(title);\r\n gauge.setTitle(title);\r\n }", "public void setTitle(String title) { this.title = title; }", "private void constructTitlePanel() {\n titlePanel = new JPanel();\n titlePanel.setPreferredSize(relativeSize(0.8f, 0.03f));\n \n JLabel titleLabel = new JLabel(\"JMarkets Server Interface\");\n titleLabel.setFont(new Font(\"Arial\", Font.BOLD, 18));\n titleLabel.setForeground(new Color(102, 51, 0));\n \n titlePanel.add(titleLabel);\n }", "public void setLblWidth(int width) {\n lblWidth = width;\n }", "public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }", "public void setTitle(String text) {\n title.setText(text);\n }", "public void setTitle(String title) {\n this.title = title;\n etvTitle.setText(title);\n }", "public ModernAutoSizeLabel(String text, int width) {\r\n super(text, width);\r\n }", "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public void setTitle(String text) {\n if(mLayoutStyle != LayoutStyle.HotseatStyle) {\n Resources res = getContext().getResources();\n int paddingLeft = res.getDimensionPixelSize(R.dimen.bubble_textview_padding_left);\n int paddingRight = res.getDimensionPixelSize(R.dimen.bubble_textview_padding_right);\n if(getPaddingLeft() != paddingLeft) {\n setPadding(paddingLeft, getPaddingTop(), paddingRight, getPaddingBottom());\n }\n }\n\n int textWidth = getTextWidth(text);\n boolean isExcessed = isTextWidthExcessed(textWidth);\n if(isExcessed && hasIndicator()) {\n setText(mDecorateSpaces + text);\n } else {\n setText(text);\n }\n }", "public static void setTitleTextAppearance(\n TextView title, boolean isIncognito, boolean isLargeMessageCard) {\n int titleTextAppearance = (isLargeMessageCard)\n ? TabUiThemeProvider.getLargeMessageCardTitleTextAppearance(isIncognito)\n : TabUiThemeProvider.getMessageCardTitleTextAppearance(isIncognito);\n ApiCompatibilityUtils.setTextAppearance(title, titleTextAppearance);\n }", "private void setFont() {\n\t\tsessionTitle.setFont(FONT_TITLE);\n\t\tdetailedDescription.setFont(FONT_DESCRIPTION);\n\t\texitButton.setFont(FONT_BUTTON);\n\t}", "public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }", "private void basicSize(){\n setSize(375,400);\n }", "public void setFront_label_size(int size) {\n\t\tfront_label_size = size;\n\t}", "public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "public void setTitle(String title){\n \tthis.title = title;\n }", "private void initHorPageTitle() {\n\t\tLabel pageTitle = new Label(\"Reports\");\n\t\tpageTitle.setSizeFull();\n\t\tpageTitle.setWidth(\"800px\");\n\t\tpageTitle.setHeight(\"45px\");\n\t\tpageTitle.addStyleName(\"posPageTitle\");\n\t\thorPageTitle.addComponent(pageTitle);\n\t\troot.addComponent(horPageTitle);\n\t\troot.setComponentAlignment(horPageTitle, Alignment.TOP_CENTER);\n\t}", "public void Title ()\n {\n\tTitle = new Panel ();\n\tTitle.setBackground (Color.white);\n\tchessboard (Title);\n\tp_screen.add (\"1\", Title);\n }", "public void configure(T aView)\n {\n aView.setMinSize(120,60);\n aView.setText(\"Title\");\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}", "public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(String title){\n this.title = title;\n }", "protected abstract void setSize();", "public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "void setConsoleTitle(String title);", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "void updateTitle() {\n leftBtn = (Button) findViewById(com.ek.mobilebapp.R.id.custom_title_btn_left);\n leftBtn.setCompoundDrawablesWithIntrinsicBounds(null,\n getResources().getDrawable(com.ek.mobilebapp.R.drawable.more_icon), null, null);\n leftBtn.setOnClickListener(clickListener);\n\n title = (TextView) findViewById(R.id.custom_title_label);\n title.setText(R.string.app_name);\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String newTitle)\r\n {\r\n title = newTitle;\r\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}" ]
[ "0.8238397", "0.7122603", "0.69031227", "0.6720976", "0.6686943", "0.66030073", "0.6570764", "0.65221304", "0.65160394", "0.63565373", "0.6316098", "0.6310936", "0.6308724", "0.6304169", "0.63021547", "0.62654793", "0.6217323", "0.6206083", "0.6206083", "0.6206083", "0.6206083", "0.6206083", "0.619431", "0.61940664", "0.6184574", "0.6176578", "0.61668515", "0.61544466", "0.6152016", "0.6152016", "0.6152016", "0.6150619", "0.61495495", "0.6128254", "0.6118365", "0.61182916", "0.611553", "0.61125934", "0.61026084", "0.61013037", "0.6080962", "0.608086", "0.60548073", "0.6052063", "0.6038144", "0.6031139", "0.6029379", "0.6012716", "0.6011784", "0.6004043", "0.60008013", "0.5998066", "0.5995412", "0.59836924", "0.59832394", "0.59825057", "0.5980853", "0.59762645", "0.5976005", "0.59753436", "0.5966499", "0.59630257", "0.59594756", "0.5949819", "0.5946748", "0.5946332", "0.59444106", "0.59412205", "0.5937246", "0.59328866", "0.5922912", "0.59227407", "0.5921533", "0.59173435", "0.5915959", "0.59096354", "0.59065723", "0.5905238", "0.59027165", "0.5901579", "0.5897244", "0.58919567", "0.58856857", "0.58706", "0.58696663", "0.5859851", "0.5859345", "0.58559686", "0.58505434", "0.58470863", "0.5836716", "0.58345294", "0.58313245", "0.58313245", "0.58297884", "0.5829231", "0.5829231", "0.58287126", "0.5815039", "0.58150333" ]
0.7505754
1
set title text size
public ComDialogBuilder setTitleTextColor(int color) { if(dialogTitle!=null){ dialogTitle.setTextColor(color); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}", "public ComDialogBuilder setTitleTextSize(int textsize) {\n if(dialogTitle!=null){\n dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "public int getTitleFontSize() {\n\t\treturn this.title_fontsize;\n\t}", "public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}", "private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataHandler().getCurrentLevel())); \n\t\ttitle.setFont(new Font(\"Arial Rounded MT Bold\", Font.BOLD, 65));\n\t\ttitle.setForeground(new Color(254, 157, 79));\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(title);\n\t\ttitle.setBounds(32, 24, 1136, 119);\n\t\ttitle.setOpaque(false);\n\t}", "private Font getTitleFont() {\n\t\tFont f = lblTitle.getFont();\n\t\tf = f.deriveFont(Font.BOLD, PosUIManager.getTitleFontSize());\n\t\treturn f;\n\t}", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "public TitleLabel(String title) {\n\t\tsuper(title);\n\t\tthis.setOpaque(false);\n\t\tthis.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tthis.setVerticalAlignment(SwingConstants.CENTER);\n\t\tthis.setMinimumSize(new Dimension(IConfigGUI.TITLE_WIDTH, IConfigGUI.TITLE_HEIGHT));\n\t\tthis.setMaximumSize(new Dimension(IConfigGUI.TITLE_WIDTH, IConfigGUI.TITLE_HEIGHT));\n\t\tthis.setPreferredSize(new Dimension(IConfigGUI.TITLE_WIDTH, IConfigGUI.TITLE_HEIGHT));\n\t\tthis.setBackground(IConfigGUI.TITLE_BACKGROUND_COLOR);\n\t\tthis.setBorder(new MatteBorder(0, 0, 3, 0, IConfigGUI.BLACK_BORDER_COLOR));\n\t\tthis.setFont(new Font(IConfigGUI.FONT_LOBSTER, 1, IConfigGUI.HUGE_FONT_SIZE * 2));\n\t\t\n\t\tint nbPictures = 16;\n\t\tint wp = (int) (Math.random() * nbPictures) + 1;\n\t\t\n\t\tthis.setForeground(IConfigGUI.TITLE_COLORS[wp - 1]);\n\t\tthis.setIcon(new ImageIcon(\"resources/wallpaper/wp\" + wp + \"_cropped_resized.jpg\"));\n\t\tthis.setIconTextGap(- IConfigGUI.TITLE_WIDTH * 5 / 6);\n\t}", "public void setTitle(String s){\n\t\tJLabel title = new JLabel(s);\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(title, BorderLayout.PAGE_START);\r\n\t}", "public void setTitle(String title) {\n\t\tborder.setTitle(title);\n\t}", "public void title(){\n textFont(select,30);\n fill(150);\n text(\"PLANE SELECT\",482,72);\n fill(0);\n text(\"PLANE SELECT\",480,70);\n}", "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }", "private void addTitle() {\n\t\tJXPanel titlePanel = new JXPanel();\n\t\ttitlePanel.setLayout(null);\n\t\ttitlePanel.setSize(180, 60);\n\t\ttitlePanel.setLocation(60, 10);\n\t\ttitlePanel.setToolTipText(\"www.i.hsr.ch\");\n\t\ttitlePanel.setBorder(new DropShadowBorder(new Color(0, 0, 0), 7, 0.5f, 12, true, true, true, true));\n\t\t\n\t\tJLabel title = GUIComponents.createLabel(YAETMMainView.PROGRAM, new Point(45, 12));\n\t\ttitle.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\t\n\t\tJLabel titleExtend = GUIComponents.createLabel(YAETMMainView.PROGRAMEXT, new Point(10, 33));\n\t\ttitleExtend.setSize(200, 20);\n\t\ttitleExtend.setFont(new Font(\"Arial\", Font.PLAIN, 11));\n\t\t\n\t\ttitlePanel.add(titleExtend);\n\t\ttitlePanel.add(title);\n\t\tpanel.add(titlePanel);\n\t}", "public void displayTitle() {\n\t\tthis.theScreen.setFont(Preferences.TITLE_FONT);\n\t\tthis.theScreen.setColor(Preferences.TITLE_COLOR);\n\t\tthis.theScreen.drawString(Preferences.TITLE,\n\t\t\t\tPreferences.TITLE_X, Preferences.TITLE_Y);\n\t}", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "private void setWindowTitle(String title) {\n this.title = title;\n }", "public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }", "void setTitle(java.lang.String title);", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "@Override\n\tpublic void setTitle(String type, String name) {\n\t\ttxtTitle.setText(String.format(\"%s:%s\", new String[]{type,name}));\n\t}", "public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);\n emptyLabel.setFont(labelFont);\n errorLabel.setFont(labelFont);\n }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "public void setTitle(java.lang.String title);", "public void setTitle(String title) {\r\n this.title = title;\r\n impl.setTitle(getElement(),legend, title);\r\n }", "private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }", "public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "protected void drawTitle(){\n titleBox = new Rectangle(155,380, 490, 200);\n titleBorder = new Rectangle(150, 375, 500, 210);\n titleBorder.setFillColor(pink);\n titleBorder.setFilled(true);\n titleBox.setFillColor(Color.BLACK);\n titleBox.setFilled(true);\n title = new Image(206, 400, \"124-hw4/BreakoutText/breakoutText.png\");\n\n canvas.add(titleBorder);\n canvas.add(titleBox);\n canvas.add(title);\n }", "public static void printTitle(int width, String title)\n {\n title = ConsoleForm.getCentered(width, title);\n System.out.printf(\"\\n%s\\n\\n\", title);\n }", "public void setTitle(String title){\n\t\tplot.setTitle(title);\n\t}", "public void setDefaultTitlesTimes() {\n this.titleFadeIn = 10;\n this.titleDisplayTime = 70;\n this.titleFadeOut = 20;\n }", "@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n SWTStringUtil.DEFAULT_FONT);\n\n view.setWindowTitle(modificationFlag\n + FRAME_PREFIX\n + \": \"\n + project.getName()\n + \" > \"\n + design.getName()\n + \" > \"\n + frameName\n + ((OSUtils.MACOSX) ? \"\" : UI.WINDOW_TITLE));\n }", "public abstract void resizeFrame(JFrame frame, int fontSize);", "public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }", "void setPaperSize(short size);", "public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }", "protected abstract void setTitle();", "public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }", "public MyDialog titleLineHeight(float titleLineHeight_DP) {\n this.mTitleLineHeight = titleLineHeight_DP;\n return this;\n }", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "public void setSize();", "@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}", "protected void SetTitle(String newTitle){ title = newTitle; }", "public void setLabelFont(Font f);", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "private Label createTitle() {\n Label titleLbl = new Label(\"Tank Royale\");\n titleLbl.setFont(Font.loadFont(getClass().getResourceAsStream(\"/resources/fonts/ToetheLineless.ttf\"), 50));\n titleLbl.setPrefWidth(400);\n titleLbl.setLayoutX(545 - titleLbl.getWidth() - 157);\n titleLbl.setLayoutY(125);\n return titleLbl;\n }", "@Override\r\n public void setTitle(String title) {\r\n this.title = title;\r\n gaugeName.setText(title);\r\n gauge.setTitle(title);\r\n }", "public void setTitle(String title) { this.title = title; }", "private void constructTitlePanel() {\n titlePanel = new JPanel();\n titlePanel.setPreferredSize(relativeSize(0.8f, 0.03f));\n \n JLabel titleLabel = new JLabel(\"JMarkets Server Interface\");\n titleLabel.setFont(new Font(\"Arial\", Font.BOLD, 18));\n titleLabel.setForeground(new Color(102, 51, 0));\n \n titlePanel.add(titleLabel);\n }", "public void setLblWidth(int width) {\n lblWidth = width;\n }", "public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }", "public void setTitle(String text) {\n title.setText(text);\n }", "public void setTitle(String title) {\n this.title = title;\n etvTitle.setText(title);\n }", "public ModernAutoSizeLabel(String text, int width) {\r\n super(text, width);\r\n }", "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public void setTitle(String text) {\n if(mLayoutStyle != LayoutStyle.HotseatStyle) {\n Resources res = getContext().getResources();\n int paddingLeft = res.getDimensionPixelSize(R.dimen.bubble_textview_padding_left);\n int paddingRight = res.getDimensionPixelSize(R.dimen.bubble_textview_padding_right);\n if(getPaddingLeft() != paddingLeft) {\n setPadding(paddingLeft, getPaddingTop(), paddingRight, getPaddingBottom());\n }\n }\n\n int textWidth = getTextWidth(text);\n boolean isExcessed = isTextWidthExcessed(textWidth);\n if(isExcessed && hasIndicator()) {\n setText(mDecorateSpaces + text);\n } else {\n setText(text);\n }\n }", "public static void setTitleTextAppearance(\n TextView title, boolean isIncognito, boolean isLargeMessageCard) {\n int titleTextAppearance = (isLargeMessageCard)\n ? TabUiThemeProvider.getLargeMessageCardTitleTextAppearance(isIncognito)\n : TabUiThemeProvider.getMessageCardTitleTextAppearance(isIncognito);\n ApiCompatibilityUtils.setTextAppearance(title, titleTextAppearance);\n }", "private void setFont() {\n\t\tsessionTitle.setFont(FONT_TITLE);\n\t\tdetailedDescription.setFont(FONT_DESCRIPTION);\n\t\texitButton.setFont(FONT_BUTTON);\n\t}", "public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }", "private void basicSize(){\n setSize(375,400);\n }", "public void setFront_label_size(int size) {\n\t\tfront_label_size = size;\n\t}", "public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "public void setTitle(String title){\n \tthis.title = title;\n }", "private void initHorPageTitle() {\n\t\tLabel pageTitle = new Label(\"Reports\");\n\t\tpageTitle.setSizeFull();\n\t\tpageTitle.setWidth(\"800px\");\n\t\tpageTitle.setHeight(\"45px\");\n\t\tpageTitle.addStyleName(\"posPageTitle\");\n\t\thorPageTitle.addComponent(pageTitle);\n\t\troot.addComponent(horPageTitle);\n\t\troot.setComponentAlignment(horPageTitle, Alignment.TOP_CENTER);\n\t}", "public void Title ()\n {\n\tTitle = new Panel ();\n\tTitle.setBackground (Color.white);\n\tchessboard (Title);\n\tp_screen.add (\"1\", Title);\n }", "public void configure(T aView)\n {\n aView.setMinSize(120,60);\n aView.setText(\"Title\");\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}", "public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(String title){\n this.title = title;\n }", "protected abstract void setSize();", "public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "void setConsoleTitle(String title);", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "void updateTitle() {\n leftBtn = (Button) findViewById(com.ek.mobilebapp.R.id.custom_title_btn_left);\n leftBtn.setCompoundDrawablesWithIntrinsicBounds(null,\n getResources().getDrawable(com.ek.mobilebapp.R.drawable.more_icon), null, null);\n leftBtn.setOnClickListener(clickListener);\n\n title = (TextView) findViewById(R.id.custom_title_label);\n title.setText(R.string.app_name);\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String newTitle)\r\n {\r\n title = newTitle;\r\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}" ]
[ "0.8238397", "0.7505754", "0.7122603", "0.69031227", "0.6720976", "0.6686943", "0.66030073", "0.6570764", "0.65221304", "0.65160394", "0.63565373", "0.6316098", "0.6310936", "0.6308724", "0.6304169", "0.63021547", "0.62654793", "0.6217323", "0.6206083", "0.6206083", "0.6206083", "0.6206083", "0.6206083", "0.619431", "0.61940664", "0.6184574", "0.6176578", "0.61668515", "0.61544466", "0.6152016", "0.6152016", "0.6152016", "0.6150619", "0.61495495", "0.6128254", "0.6118365", "0.61182916", "0.611553", "0.61125934", "0.61026084", "0.61013037", "0.6080962", "0.608086", "0.60548073", "0.6052063", "0.6038144", "0.6031139", "0.6029379", "0.6012716", "0.6011784", "0.6004043", "0.60008013", "0.5998066", "0.5995412", "0.59836924", "0.59832394", "0.59825057", "0.5980853", "0.59762645", "0.5976005", "0.59753436", "0.5966499", "0.59630257", "0.59594756", "0.5949819", "0.5946748", "0.5946332", "0.59444106", "0.59412205", "0.5937246", "0.59328866", "0.5922912", "0.59227407", "0.5921533", "0.59173435", "0.5915959", "0.59096354", "0.59065723", "0.5905238", "0.59027165", "0.5901579", "0.5897244", "0.58919567", "0.58856857", "0.58706", "0.58696663", "0.5859851", "0.5859345", "0.58559686", "0.58505434", "0.58470863", "0.5836716", "0.58345294", "0.58313245", "0.58313245", "0.58297884", "0.5829231", "0.5829231", "0.58287126", "0.5815039", "0.58150333" ]
0.0
-1
set positive btn BackgroundResouce
public ComDialogBuilder setConfirmBackgroundResouce(int resID) { if (confrimBtn == null) { confrimBtn = getView(R.id.dialog_posi_btn); } if (confrimBtn != null && resID != -1) { confirmBtnBG = resID; confrimBtn.setBackgroundResource(resID); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_goles);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_rojas);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_amarillas);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_victorias);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_empates);\n\t\t\t}", "private void changeButtonBackground(final int row, final int col, final boolean mode){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if(mode)\n buttons[row][col].setBackground(new BitmapDrawable(getResources(), buttons[row][col].getBitmap()));\n\n else{\n buttons[row][col].setBackgroundResource(android.R.drawable.btn_default);\n }\n }\n });\n }", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t if( bFlagQiuzhi == false )\r\n\t\t\t\t {\r\n\t\t\t\t\t btn_qiuzhi_switch.setBackgroundResource(R.drawable.btn_anniu_b);\r\n\t\t\t\t }\r\n\t\t\t\t else\r\n\t\t\t\t {\r\n\t\t\t\t\t btn_qiuzhi_switch.setBackgroundResource(R.drawable.btn_anniu_a);\r\n\t\t\t\t }\r\n\t\t\t\t bFlagQiuzhi = !bFlagQiuzhi;\r\n\r\n\t\t\t }", "private void setButtonBackground(Button button, String bgImgName) {\n BackgroundImage backgroundImage = new BackgroundImage(\n new Image( getClass().getResource(\"resources/\" + bgImgName).toExternalForm()),\n BackgroundRepeat.NO_REPEAT,\n BackgroundRepeat.NO_REPEAT,\n BackgroundPosition.CENTER,\n BackgroundSize.DEFAULT);\n Background background = new Background(backgroundImage);\n button.setBackground(background);\n }", "@Override\r\n\tpublic void setBackgroundResource(int resid) {\n\t\tsuper.setBackgroundResource(resid);\r\n\t}", "@Override\n public void onClick(View v) {\n animMove = AnimationUtils.loadAnimation(getApplicationContext(),R.anim.fade_out);\n m_rad_DA1.startAnimation(animMove);\n m_rad_DA3.startAnimation(animMove);\n btnFiftyPercen.setEnabled(false);\n btnFiftyPercen.setBackgroundResource(R.drawable.button_black);\n }", "public abstract void setBackgroundPressed(final int rgba);", "public void cambiarFondobtnPagoTarjeta(){\n btnPagoTarjeta.setBackgroundResource(R.drawable.btn_met_pgo_seleccion);\n btnPagoBancolo.setChecked(false);\n btnPagoNequi.setChecked(false);\n btnPagoPSE.setChecked(false);\n }", "public void setBg(){\n this.setBackground(color);\n }", "public void Back(){\n setImage(\"button-blue.png\");\n }", "private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}", "@Override\n public void onClick(View v) {\n Intent PreviousScreen = new Intent(RoundSetting.this, MainPage.class);\n startActivity(PreviousScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }", "@Override\n public void onClick(View v) {\n Intent PreviousScreen = new Intent(RoundSetting.this, MainPage.class);\n startActivity(PreviousScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }", "@Override\n public void onClick(View v) {\n Intent PreviousScreen = new Intent(RoundSetting.this, MainPage.class);\n startActivity(PreviousScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }", "public ComDialogBuilder setCancelBackgroundResouce(int resID) {\n if (cancelBtn == null) {\n cancelBtn = getView(R.id.dialog_neg_btn);\n }\n if (cancelBtn != null && resID != -1) {\n cancelBtnBG = resID;\n cancelBtn.setBackgroundResource(resID);\n }\n return this;\n }", "public void highlightButton(ImageButton imageButtonClicked) {\n imageButtonClicked.setColorFilter(0x77000000, PorterDuff.Mode.SRC_ATOP);\n\n if (buttonNemo(imageButtonClicked))\n AppController.getInstance().setCover(1);\n else if (buttonPets(imageButtonClicked))\n AppController.getInstance().setCover(0);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n btnAdicionar.setBackground(new Color(176, 196, 222));\n btnCalcular.setBackground(new Color(176, 196, 222));\n btnLimpar.setBackground(new Color(176, 196, 222));\n btnRemover.setBackground(new Color(176, 196, 222));\n }", "void changeResumeButtonColor(Color color);", "@Override\n public void setPressed()\n {\n setImage(\"MinusPressed.png\");\n }", "private void settingNormalButton(Button button1, Button button2, Button button3) {\n button1.setBackgroundResource(R.drawable.my_btn_bg);\n button1.setTextColor(getResources().getColor(R.color.test_dark_blue));\n button2.setBackgroundResource(R.drawable.my_btn_bg);\n button2.setTextColor(getResources().getColor(R.color.test_dark_blue));\n button3.setBackgroundResource(R.drawable.my_btn_bg);\n button3.setTextColor(getResources().getColor(R.color.test_dark_blue));\n }", "protected void addopqueueonBackground() {\n\t\tlv.setClickable(false);\n\t\tlvx.setClickable(false);\n\t\trefresh.setClickable(false);\n\t\tsearch.setClickable(false);\n\t\tsearch.setEnabled(false);\n\t\tlv.setEnabled(false);\n\t\tlvx.setEnabled(false);\n\t\trefresh.setEnabled(false);\n\t\tcancelButton.setClickable(false);\n\t\tcancelButton.setEnabled(false);\n\t\tlistbackground.setAlpha(0.5f);\n\t\tbackground.setAlpha(0.5f);\n\t}", "public void changeBackground(Bitmap bg){\n Drawable newbackground = new BitmapDrawable(getResources(), bg);\n this.setBackground(newbackground);\n\n }", "private void clearxuan() {\n\t\tbtn_Fourgroup6_xuan_big.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_little.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_all.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_odd.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_even.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_clear.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_big.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_little.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_all.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_odd.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_even.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_clear.setTextColor(0xffcfcfcf);\r\n\r\n\t}", "private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttotalLayout.setBackgroundColor(getResources().getColor(R.color.red));\n\t\t\t\tconfirmButton.setEnabled(false);\n\t\t\t\tconfirmRequest1();\n\t\t\t}", "public void resetButtonStyles() {\n\t\tint drawable_id = R.drawable.stockbutton;\n\t\tDrawable stockbutton = getResources().getDrawable(drawable_id);\n\t\t\n\t\t// For now I'm just going to set the bg colors\n\t\tButton outsideButton = (Button) findViewById(R.id.outside);\n\t\toutsideButton.setBackground(stockbutton);\n\t\tButton fridgeButton = (Button) findViewById(R.id.fridge);\n\t\tfridgeButton.setBackground(stockbutton);\n\t\tButton freezerButton = (Button) findViewById(R.id.freezer);\n\t\tfreezerButton.setBackground(stockbutton);\n\t}", "@Override\r\n\tprotected void setFooterClickBg() {\n\t\tlayout_footer_mycard.setBackgroundResource(R.drawable.footer_over_bg);\r\n\t\tiv_footer_mycard.setBackgroundResource(R.drawable.footer_mycard_click);\r\n\t}", "private void setPressedStyle() {\n this.setStyle(BUTTON_PRESSED);\n this.setPrefHeight(43);\n this.setLayoutY(getLayoutY() + 4);\n }", "private void themeDynamicAdd() {\n try {\n Background=getBitmapFromURL(base_image);\n Drawable dr = new BitmapDrawable((Background));\n test_rules_background.setBackgroundDrawable(dr);\n\n Bitmap back_bitmap;\n String back_shrd= AarambhThemeSharedPrefreence.loadBackArrowIconFromPreference(this);\n back_bitmap = getBitmapFromURL(back_shrd);\n Drawable dr1 = new BitmapDrawable((back_bitmap));\n back_btn_test_rules.setBackgroundDrawable(dr1);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "public void newBtnStyle(Button btn) {\n btn.setStyle(\"-fx-background-color: #3c7fb1, linear-gradient(#fafdfe, #e8f5fc), linear-gradient(#eaf6fd 0%, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%)\");\n btn.setPrefHeight(90);\n btn.setPrefWidth(260);\n btn.setFont(new Font(39));\n btn.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n changeActive(btn);\n }\n });\n }", "private void updateBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMousePressed\n updateBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "@Override\r\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tif (mBtnState) {\r\n\t\t\t\tsetUnfocusBg();\r\n\t\t\t} else {\r\n\t\t\t\tsetDefaultBg();\r\n\t\t\t}\r\n\t\t}", "public void setBackground(){\r\n Image background = new Image(\"Cards/table.jpg\", 192, 80, false, true);\r\n BackgroundImage backgroundImg = new BackgroundImage(background, BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT,BackgroundPosition.DEFAULT, null);\r\n mainPane.setBackground(new Background(backgroundImg));\r\n }", "public static void setActiveBtnStyle(Button btn) {\n btn.setStyle(\"-fx-background-color: #42b13c,linear-gradient(#fafdfe, #e8f5fc), linear-gradient(#eaf6fd 0%, #d2fcd4 49%, #bdfdc9 50%, #70f575 100%)\");\n }", "private void setBackgrond(){\t\n this.background = new JLabel();\n this.background.setIcon(backgrondP);\n this.background.setVisible(true);\n this.background.setLocation(0, 0);\n this.background.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.add(background);\n\t}", "private void buttonDemo(Stage stage) {\n // this demonstrates how to create a button and attach a foreground and\n // background image to it.\n Button button = new Button();\n Image laserImg = new Image(getClass().getResourceAsStream(\"resources/laser.png\"));\n ImageView laserIcon = new ImageView(laserImg);\n button.setGraphic(laserIcon);\n setButtonBackground(button, \"yellow.png\");\n button.setOnAction(e -> {\n // toggles background between yellow and red\n if (!status) {\n setButtonBackground(button, \"yellow.png\");\n } else {\n setButtonBackground(button, \"red.png\");\n }\n status = !status;\n });\n\n Scene scene = new Scene(button);\n stage.setScene(scene);\n }", "@Override\n public void onClick(View v) {\n findViewById(R.id.parent).setBackgroundColor(getResources().getColor(R.color.purple_700));\n }", "private void setBackgroundColor(int backColor){\n backgroundColor = backColor;\n touchArea.setBackgroundColor(backgroundColor);\n }", "@Override\n public void onClick(View v) {\n saveRoundSetting();\n Intent NextScreen = new Intent(RoundSetting.this, Scoring.class);\n // NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\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 }", "@Override\n public void onClick(View v) {\n saveRoundSetting();\n Intent NextScreen = new Intent(RoundSetting.this, Scoring.class);\n //NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }", "@Override\n public void onDismiss() {\n backgroundAlpha(1f);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetContentView(R.layout.set_bg_menu);\r\n\r\n\t\t\t\tfinal Integer[] mImageIds = { R.drawable.dot_blue,\r\n\t\t\t\t\t\tR.drawable.dot_orange, R.drawable.dot_pb,\r\n\t\t\t\t\t\tR.drawable.dot_pink, R.drawable.dot_purple,\r\n\t\t\t\t\t\tR.drawable.dot_yellow, R.drawable.line_blue,\r\n\t\t\t\t\t\tR.drawable.line_green, R.drawable.line_pink,\r\n\t\t\t\t\t\tR.drawable.line_purple };\r\n\r\n\t\t\t\tres = getResources();\r\n\r\n\t\t\t\tView layout = (View) findViewById(R.id.layout2);\r\n\t\t\t\tlayout.setBackgroundColor(Color.BLACK);\r\n\t\t\t\tGridView gridView01 = (GridView) findViewById(R.id.GridView01);\r\n\t\t\t\tgridView01.setAdapter(new ImageAdapter(BackgroundChange.this,\r\n\t\t\t\t\t\t120, 120, mImageIds, res)); // �]�w image ���f\r\n\t\t\t\tgridView01.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\t\tfinal int position, long id) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tfinal PopupWindow popWin = new PopupWindow(\r\n\t\t\t\t\t\t\t\tBackgroundChange.this);\r\n\r\n\t\t\t\t\t\tImageView iv = new ImageView(BackgroundChange.this);\r\n\t\t\t\t\t\t// �b ImageView ���]�w�ϼ�\r\n\t\t\t\t\t\tiv.setImageDrawable(getResources().getDrawable(\r\n\t\t\t\t\t\t\t\tmImageIds[position]));\r\n\r\n\t\t\t\t\t\tAlertDialog alert = null;\r\n\r\n\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\r\n\t\t\t\t\t\t\t\tBackgroundChange.this);\r\n\t\t\t\t\t\tbuilder.setTitle(\"�I���˦�\");\r\n\t\t\t\t\t\tbuilder.setView(iv);\r\n\t\t\t\t\t\tbuilder.setCancelable(true);\r\n\r\n\t\t\t\t\t\tbuilder.setPositiveButton(\"�T�w\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tSharedPreferences preferences = getSharedPreferences(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"clickDate\", 0);\r\n\t\t\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = preferences\r\n\t\t\t\t\t\t\t\t\t\t\t\t.edit();\r\n\t\t\t\t\t\t\t\t\t\teditor.putInt(\"background\",\r\n\t\t\t\t\t\t\t\t\t\t\t\tmImageIds[position]);\r\n\t\t\t\t\t\t\t\t\t\teditor.commit();\r\n\r\n\t\t\t\t\t\t\t\t\t\tbgColor = mImageIds[position];\r\n\r\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"tw.com.irons.try_case2.BG\");\r\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\r\n\t\t\t\t\t\t\t\t\t\tsetContentView(R.layout.set_bg_main);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tbuilder.setNegativeButton(\"���\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\talert = builder.create();\r\n\t\t\t\t\t\talert.show();\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t}", "private void updateBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseReleased\n updateBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "private void resetButton() {\n for(int x=0;x<buttons.size();x++) {\n if(buttons.get(x).isOpaque())\n buttons.get(x).setOpaque(false);\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetContentView(R.layout.set_bg_menu);\r\n\r\n\t\t\t\tfinal Integer[] mImageIds = { R.drawable.onef1,\r\n\t\t\t\t\t\tR.drawable.onef2, R.drawable.one2finish };\r\n\r\n\t\t\t\t// res = getResources();\r\n\r\n\t\t\t\tGridView gridView01 = (GridView) findViewById(R.id.GridView01);\r\n\t\t\t\tgridView01.setAdapter(new ImageAdapter(BackgroundChange.this,\r\n\t\t\t\t\t\t85, 85, mImageIds, res)); // �]�w image ���f\r\n\t\t\t\tgridView01.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\t\tfinal int position, long id) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tfinal PopupWindow popWin = new PopupWindow(\r\n\t\t\t\t\t\t\t\tBackgroundChange.this);\r\n\t\t\t\t\t\t// �w�q PopupWindow ���t�� ImageView\r\n\t\t\t\t\t\tImageView iv = new ImageView(BackgroundChange.this);\r\n\t\t\t\t\t\t// �b ImageView ���]�w�ϼ�\r\n\t\t\t\t\t\tiv.setImageDrawable(getResources().getDrawable(\r\n\t\t\t\t\t\t\t\tmImageIds[position]));\r\n\r\n\t\t\t\t\t\tAlertDialog alert = null;\r\n\r\n\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\r\n\t\t\t\t\t\t\t\tBackgroundChange.this);\r\n\t\t\t\t\t\tbuilder.setTitle(\"�D���I���˦�\");\r\n\t\t\t\t\t\tbuilder.setView(iv);\r\n\t\t\t\t\t\tbuilder.setCancelable(true);\r\n\r\n\t\t\t\t\t\tbuilder.setPositiveButton(\"�T�w\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tSharedPreferences preferences = getSharedPreferences(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"clickDate\", 0);\r\n\t\t\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = preferences\r\n\t\t\t\t\t\t\t\t\t\t\t\t.edit();\r\n\t\t\t\t\t\t\t\t\t\teditor.putInt(\"backgroundMain\",\r\n\t\t\t\t\t\t\t\t\t\t\t\tmImageIds[position]);\r\n\t\t\t\t\t\t\t\t\t\teditor.commit();\r\n\r\n\t\t\t\t\t\t\t\t\t\t// bgColor = mImageIds[position];\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tbuilder.setNegativeButton(\"���\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\talert = builder.create();\r\n\t\t\t\t\t\talert.show();\r\n\r\n\t\t\t\t\t\tView layout = (View) findViewById(R.id.layout1);\r\n\t\t\t\t\t\tlayout.setBackgroundDrawable(getResources()\r\n\t\t\t\t\t\t\t\t.getDrawable(mImageIds[position]));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t}", "public void updateStartButton(){\n if (getPrimHasRun() == true){\n startButton.setAlpha(0.5f);\n startButton.setClickable(false);\n } else {\n startButton.setAlpha(1f);\n startButton.setClickable(true);\n }\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tsetContentView(R.layout.set_bg_main);\r\n\r\n\t\tSharedPreferences preferences = getSharedPreferences(\"clickDate\", 0);\r\n\t\tint bg = preferences.getInt(\"background\", 0);\r\n\t\tif (bg != 0) {\r\n\t\t\tView layout = (View) findViewById(R.id.layout1);\r\n\t\t\tlayout.setBackgroundDrawable(getResources().getDrawable(bg));\r\n\t\t}\r\n\r\n\t\tbutton = (Button) findViewById(R.id.button1);\r\n\t\tbutton2 = (Button) findViewById(R.id.button2);\r\n\r\n\t\tbutton.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\tsetContentView(R.layout.set_bg_menu);\r\n\r\n\t\t\t\tfinal Integer[] mImageIds = { R.drawable.onef1,\r\n\t\t\t\t\t\tR.drawable.onef2, R.drawable.one2finish };\r\n\r\n\t\t\t\t// res = getResources();\r\n\r\n\t\t\t\tGridView gridView01 = (GridView) findViewById(R.id.GridView01);\r\n\t\t\t\tgridView01.setAdapter(new ImageAdapter(BackgroundChange.this,\r\n\t\t\t\t\t\t85, 85, mImageIds, res)); // �]�w image ���f\r\n\t\t\t\tgridView01.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\t\tfinal int position, long id) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tfinal PopupWindow popWin = new PopupWindow(\r\n\t\t\t\t\t\t\t\tBackgroundChange.this);\r\n\t\t\t\t\t\t// �w�q PopupWindow ���t�� ImageView\r\n\t\t\t\t\t\tImageView iv = new ImageView(BackgroundChange.this);\r\n\t\t\t\t\t\t// �b ImageView ���]�w�ϼ�\r\n\t\t\t\t\t\tiv.setImageDrawable(getResources().getDrawable(\r\n\t\t\t\t\t\t\t\tmImageIds[position]));\r\n\r\n\t\t\t\t\t\tAlertDialog alert = null;\r\n\r\n\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\r\n\t\t\t\t\t\t\t\tBackgroundChange.this);\r\n\t\t\t\t\t\tbuilder.setTitle(\"�D���I���˦�\");\r\n\t\t\t\t\t\tbuilder.setView(iv);\r\n\t\t\t\t\t\tbuilder.setCancelable(true);\r\n\r\n\t\t\t\t\t\tbuilder.setPositiveButton(\"�T�w\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tSharedPreferences preferences = getSharedPreferences(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"clickDate\", 0);\r\n\t\t\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = preferences\r\n\t\t\t\t\t\t\t\t\t\t\t\t.edit();\r\n\t\t\t\t\t\t\t\t\t\teditor.putInt(\"backgroundMain\",\r\n\t\t\t\t\t\t\t\t\t\t\t\tmImageIds[position]);\r\n\t\t\t\t\t\t\t\t\t\teditor.commit();\r\n\r\n\t\t\t\t\t\t\t\t\t\t// bgColor = mImageIds[position];\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tbuilder.setNegativeButton(\"���\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\talert = builder.create();\r\n\t\t\t\t\t\talert.show();\r\n\r\n\t\t\t\t\t\tView layout = (View) findViewById(R.id.layout1);\r\n\t\t\t\t\t\tlayout.setBackgroundDrawable(getResources()\r\n\t\t\t\t\t\t\t\t.getDrawable(mImageIds[position]));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbutton2.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\tsetContentView(R.layout.set_bg_menu);\r\n\r\n\t\t\t\tfinal Integer[] mImageIds = { R.drawable.dot_blue,\r\n\t\t\t\t\t\tR.drawable.dot_orange, R.drawable.dot_pb,\r\n\t\t\t\t\t\tR.drawable.dot_pink, R.drawable.dot_purple,\r\n\t\t\t\t\t\tR.drawable.dot_yellow, R.drawable.line_blue,\r\n\t\t\t\t\t\tR.drawable.line_green, R.drawable.line_pink,\r\n\t\t\t\t\t\tR.drawable.line_purple };\r\n\r\n\t\t\t\tres = getResources();\r\n\r\n\t\t\t\tView layout = (View) findViewById(R.id.layout2);\r\n\t\t\t\tlayout.setBackgroundColor(Color.BLACK);\r\n\t\t\t\tGridView gridView01 = (GridView) findViewById(R.id.GridView01);\r\n\t\t\t\tgridView01.setAdapter(new ImageAdapter(BackgroundChange.this,\r\n\t\t\t\t\t\t120, 120, mImageIds, res)); // �]�w image ���f\r\n\t\t\t\tgridView01.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\t\tfinal int position, long id) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tfinal PopupWindow popWin = new PopupWindow(\r\n\t\t\t\t\t\t\t\tBackgroundChange.this);\r\n\r\n\t\t\t\t\t\tImageView iv = new ImageView(BackgroundChange.this);\r\n\t\t\t\t\t\t// �b ImageView ���]�w�ϼ�\r\n\t\t\t\t\t\tiv.setImageDrawable(getResources().getDrawable(\r\n\t\t\t\t\t\t\t\tmImageIds[position]));\r\n\r\n\t\t\t\t\t\tAlertDialog alert = null;\r\n\r\n\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\r\n\t\t\t\t\t\t\t\tBackgroundChange.this);\r\n\t\t\t\t\t\tbuilder.setTitle(\"�I���˦�\");\r\n\t\t\t\t\t\tbuilder.setView(iv);\r\n\t\t\t\t\t\tbuilder.setCancelable(true);\r\n\r\n\t\t\t\t\t\tbuilder.setPositiveButton(\"�T�w\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t\tSharedPreferences preferences = getSharedPreferences(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"clickDate\", 0);\r\n\t\t\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = preferences\r\n\t\t\t\t\t\t\t\t\t\t\t\t.edit();\r\n\t\t\t\t\t\t\t\t\t\teditor.putInt(\"background\",\r\n\t\t\t\t\t\t\t\t\t\t\t\tmImageIds[position]);\r\n\t\t\t\t\t\t\t\t\t\teditor.commit();\r\n\r\n\t\t\t\t\t\t\t\t\t\tbgColor = mImageIds[position];\r\n\r\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"tw.com.irons.try_case2.BG\");\r\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\r\n\t\t\t\t\t\t\t\t\t\tsetContentView(R.layout.set_bg_main);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tbuilder.setNegativeButton(\"���\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\talert = builder.create();\r\n\t\t\t\t\t\talert.show();\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tIntentFilter filter = new IntentFilter(\"tw.com.irons.try_case2.BG\");\r\n\t\treceiver = new myResetReceiver();\r\n\t\tregisterReceiver(receiver, filter);\r\n\r\n\t}", "void updateBackground() {\n float f = this.getDimension(R.dimen.fab_stroke_width);\n float f2 = f / 2.0f;\n Resources resources = this.getResources();\n int n = this.mSize == 0 ? R.drawable.fab_bg_normal : R.drawable.fab_bg_mini;\n resources = new LayerDrawable(new Drawable[]{resources.getDrawable(n), this.createFillDrawable(f), this.createOuterStrokeDrawable(f), this.getIconDrawable()});\n n = (int)(this.mCircleSize - this.getDimension(R.dimen.fab_icon_size)) / 2;\n int n2 = (int)this.mShadowRadius;\n int n3 = (int)(this.mShadowRadius - this.mShadowOffset);\n int n4 = (int)(this.mShadowRadius + this.mShadowOffset);\n resources.setLayerInset(1, n2, n3, n2, n4);\n resources.setLayerInset(2, (int)((float)n2 - f2), (int)((float)n3 - f2), (int)((float)n2 - f2), (int)((float)n4 - f2));\n resources.setLayerInset(3, n2 + n, n3 + n, n2 + n, n4 + n);\n this.setBackgroundCompat((Drawable)resources);\n }", "@Override\n public void setBackgroundColor(int backgroundColor) {\n }", "private void buttonMouseExit(Button btn){\r\n\t\tbtn.setBackground(\r\n\t\t\t\tnew Background(new BackgroundFill(Color.ALICEBLUE, new CornerRadii(0), new Insets(0)))); // set login button aliceblue with mouse exit\r\n\t\tbtn.setTextFill(Color.BLACK); // set text black\r\n\t}", "public void restaura(){ \n super.restauraE();\n setImage(\"FrtEA1.png\"); \n check = false; \n }", "public void updateResetButton(){\n if (vertexImages.size() < 1){\n resetButton.setAlpha(0.5f);\n resetButton.setClickable(false);\n }\n else {\n resetButton.setAlpha(1f);\n resetButton.setClickable(true);\n }\n }", "private void styleApp(String backgroundColor){\n MenuPane.setStyle(backgroundColor);\n ingredBtn.setStyle(backgroundColor);\n mealsBtn.setStyle(backgroundColor);\n plannerBtn.setStyle(backgroundColor);\n }", "private void trocaCor(int btn) {\n bt_Home.setColorFilter(getResources().getColor(R.color.white));\n bt_Resultado.setColorFilter(getResources().getColor(R.color.white));\n bt_Triangulo.setColorFilter(getResources().getColor(R.color.white));\n bt_Compatibilidade.setColorFilter(getResources().getColor(R.color.white));\n bt_Arcanos.setColorFilter(getResources().getColor(R.color.white));\n bt_Descricao.setColorFilter(getResources().getColor(R.color.white));\n bt_Home.setColorFilter(getResources().getColor(R.color.white));\n // COR PARA PRAGMENTO DESATIVO\n\n // COR PARA FRAGMENTO ATIVO\n ImageButton bt = findViewById(btn);\n bt.setColorFilter(getResources().getColor(R.color.TODO));\n // COR PARA FRAGMENTO ATIVO\n }", "@SuppressWarnings(\"deprecation\")\n public Builder setPositiveButtonColorRes(@ColorRes int color) {\n return this.setPositiveButtonColor(context.getResources().getColor(color));\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\targ0.setBackgroundResource(R.drawable.btn_packs2);\n\t\t\t\tIntent myIntent =new Intent(arg0.getContext(), Premierfechaj5Activity.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}", "public void run() {\n mShakeButton.setBackgroundResource(R.drawable.button_red);\n mIsShakePlayable = true;\n\n }", "public void setBackground(Color back) {\r\n this.back = back;\r\n }", "public void enterBackground();", "void onDismissByBgPressed();", "@Override\r\n public void mousePressed(MouseEvent e) {\n setBackground(Color.BLUE);\r\n \r\n \r\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\targ0.setBackgroundResource(R.drawable.btn_ayuda2);\n\t\t\t\tIntent myIntent =new Intent(arg0.getContext(), Bundfechaj1Activity.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}", "public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }", "public void setIcon(Button buttonPlayed){\n if(game.getPlayerTurn() == player1){\n buttonPlayed.setBackgroundResource(drawable.o);\n buttonPlayed.setEnabled(false);\n }\n else{\n buttonPlayed.setBackgroundResource(drawable.cross);\n buttonPlayed.setEnabled(false);\n }\n }", "private void clearbackground() {\n\t\tfive_direct_single.setBackgroundResource(0);\r\n\t\tfour_direct_single.setBackgroundResource(0);\r\n\t\ttopthree_group_three_single.setBackgroundResource(0);\r\n\t\ttopthree_group_six_single.setBackgroundResource(0);\r\n\t\ttopthree_direct_single.setBackgroundResource(0);\r\n\t\tbottomthree_direct_single.setBackgroundResource(0);\r\n\t\tbottompthree_group_three_single.setBackgroundResource(0);\r\n\t\tbottompthree_group_six_single.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_single.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_single.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_single.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_single.setBackgroundResource(0);\r\n\t\ttopthree_mix_group.setBackgroundResource(0);\r\n\t\tbottompthree_mix_group.setBackgroundResource(0);\r\n\t\tfive_direct_double.setBackgroundResource(0);\r\n\t\tfive_group_120.setBackgroundResource(0);\r\n\t\tfive_group_60.setBackgroundResource(0);\r\n\t\tfive_group_30.setBackgroundResource(0);\r\n\t\tfive_group_20.setBackgroundResource(0);\r\n\t\tfive_group_10.setBackgroundResource(0);\r\n\t\tfive_group_5.setBackgroundResource(0);\r\n\t\tfour_direct_double.setBackgroundResource(0);\r\n\t\tfour_group_24.setBackgroundResource(0);\r\n\t\tfour_group_12.setBackgroundResource(0);\r\n\t\ttopthree_direct_double.setBackgroundResource(0);\r\n\t\ttopthree_group_three.setBackgroundResource(0);\r\n\t\ttopthree_group_six.setBackgroundResource(0);\r\n\t\ttopthree_group_sum.setBackgroundResource(0);\r\n\t\ttopthree_group_container.setBackgroundResource(0);\r\n\t\tbottomthree_direct_double.setBackgroundResource(0);\r\n\t\tbottomthree_group_span.setBackgroundResource(0);\r\n\t\tbottomthree_group_three.setBackgroundResource(0);\r\n\t\tbottomthree_group_six.setBackgroundResource(0);\r\n\t\tbottomthree_group_sum.setBackgroundResource(0);\r\n\t\tbottomthree_group_container.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_double.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_sum.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_span.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_double.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_span.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_double.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_double.setBackgroundResource(0);\r\n\t\tfixed_position.setBackgroundResource(0);\r\n\t\tthree_bottomthree_one_notposition.setBackgroundResource(0);\r\n\t\tthree_bottomthree_two_notposition.setBackgroundResource(0);\r\n\t\tthree_topthree_one_notposition.setBackgroundResource(0);\r\n\t\tthree_topthree_two_notposition.setBackgroundResource(0);\r\n\t\tfour_bottomfour_two_notposition.setBackgroundResource(0);\r\n\t\tfive_bottomfive_two_notposition.setBackgroundResource(0);\r\n\t\tfive_bottomfive_three_notposition.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_sum.setBackgroundResource(0);\r\n\t\tfour_group_6.setBackgroundResource(0);\r\n\t\tfour_group_4.setBackgroundResource(0);\r\n\t\tbottomthree_direct_sum.setBackgroundResource(0);\r\n\t\ttopthree_direct_sum.setBackgroundResource(0);\r\n\t\ttopthree_direct_span.setBackgroundResource(0);\r\n\t\ttopthree_sum_end.setBackgroundResource(0);\r\n\t\tbottomthree_sum_end.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_sum.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_container.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_container.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_sum.setBackgroundResource(0);\r\n\t\tfour_bottomfour_one_notposition.setBackgroundResource(0);\r\n\t\tmaxmin_bottomtwo.setBackgroundResource(0);\r\n\t\tmaxmin_bottomthree.setBackgroundResource(0);\r\n\t\tmaxmin_toptwo.setBackgroundResource(0);\r\n\t\tmaxmin_topthree.setBackgroundResource(0);\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetBackground(color);\t\r\n\t\t\t\tvazioSouth.setBackground(color);\r\n\t\t\t\tvazioEast.setBackground(color);\r\n\t\t\t\tbtsPaintJPanel.setBackground(color);\r\n\t\t\t\tbotaoJPanel.setBackground(color);\r\n\t\t\t}", "private void updateBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseEntered\n updateBtn.setBackground(Color.decode(\"#339966\"));\n }", "private static void continueButtonCreator(int continueWidth, int continueHeight){\n continueButton = shadowEffect(configureImageView(\"\",\"button-continue\",\".png\",continueWidth,continueHeight));\n }", "private void rHintButton(Button button){\r\n button.getStyleClass().remove(\"closedButton\");\r\n button.getStyleClass().add(\"chooseButtons\");\r\n button.setMouseTransparent(false);\r\n }", "@Override\n\t\t\tpublic void onFocusChange(View button, boolean isFocus) {\n\t\t\t\tif(isFocus){\n\t\t\t\t\tbutton.setBackgroundColor(getResources().getColor(R.color.blue));\n\t\t\t\t}else \n\t\t\t\t\tbutton.setBackground(getResources().getDrawable(R.drawable.button_style)); \n\t\t\t}", "@Override\r\n\tprotected Drawable getPopupBackground() {\n\t\tdrawable = context.getResources().getDrawable(ResUtil.getInstance(context).getDrawable(\"ct_traffic__tip_pointer_button_normal\"));\r\n\t\treturn drawable;\r\n\t}", "private void setReleasedStyle() {\n this.setStyle(BUTTON_FREE);\n this.setPrefHeight(47);\n this.setLayoutY(getLayoutY() - 4);\n }", "@Override\n public void onClick(View v) {\n btn.setBackgroundColor(ContextCompat.getColor(context, onColor));\n MediaPlayer mp = MediaPlayer.create(btn.getContext(), audios.get(btn));\n mp.start();\n //Change color of other buttons to off\n for (Button other : audios.keySet()) {\n if (other != btn) {\n other.setBackgroundColor(ContextCompat.getColor(context, offColor));\n }\n }\n\n }", "@FXML\n public void subMenuButtonResetColor(Event mouseEvent){\n Button thisButton = (Button) mouseEvent.getSource();\n thisButton.setStyle(\"-fx-background-color: #\" + standardSubMenuButtonColor);\n }", "public void onEscPressed(){\n if(!timerStopped){\n App.getTimer().stop();\n timerStopped=true;\n ImageView bg = new ImageView(new Image(\"Sprites\\\\pause_screen.png\"));\n BackgroundImage backgroundImage = new BackgroundImage( new Image( \"Sprites\\\\Button_bg.png\"), BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, new BackgroundSize(300,100,false,false,false,false));\n Background background = new Background(backgroundImage);\n bg.setFitHeight(App.getHEIGHT());\n bg.setFitWidth(App.getWIDTH());\n App.getRoot().getChildren().add(bg);\n ImageView pause = new ImageView(new Image(\"Sprites\\\\Pause.png\"));\n pause.setFitWidth(400);\n pause.setFitHeight(150);\n pause.setX((App.getWIDTH()-pause.getFitWidth())/2);\n pause.setY(30);\n App.getRoot().getChildren().add(pause);\n Button cont = new Button(\"Continue\");\n cont.setBackground(background);\n cont.setTextFill(Color.web(\"ffffff\"));\n cont.setFont(new Font(50));\n cont.setPrefWidth(300);\n cont.setTranslateX(350);\n cont.setTranslateY(250);\n App.getRoot().getChildren().add(cont);\n Button exit = new Button(\"Exit\");\n exit.setFont(new Font(50));\n exit.setBackground(background);\n exit.setTextFill(Color.web(\"ffffff\"));\n exit.setPrefWidth(300);\n exit.setTranslateX(350);\n exit.setTranslateY(400);\n App.getRoot().getChildren().add(exit);\n Button plus = new Button(\"+\");\n //plus.setBackground(background);\n plus.setPrefWidth(50);\n plus.setPrefHeight(50);\n plus.setTranslateX(155);\n plus.setTranslateY(540);\n plus.setStyle(\"-fx-background-color: Orange\");\n plus.setFont(new Font(20));\n plus.setOnAction(event -> {\n try {\n if(App.getVolume()<1) {\n App.setVolume(App.getVolume() + 0.1);\n App.getApp().getMediaPlayer().setVolume(App.getVolume()/2);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n Button minus = new Button(\"-\");\n //minus.setBackground(background);\n minus.setPrefWidth(50);\n minus.setPrefHeight(50);\n minus.setTranslateX(45);\n minus.setTranslateY(540);\n minus.setStyle(\"-fx-background-color: Orange\");\n minus.setFont(new Font(20));\n minus.setOnAction(event -> {\n try {\n if(App.getVolume()>0) {\n App.setVolume(App.getVolume() - 0.1);\n App.getApp().getMediaPlayer().setVolume(App.getVolume()/2);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n ImageView volume = new ImageView(new Image(\"Sprites/Sound.png\"));\n volume.setFitWidth(50);\n volume.setFitHeight(50);\n volume.setX(100);\n volume.setY(540);\n cont.setOnAction(event -> {\n try {\n App.getRoot().getChildren().remove(bg);\n App.getRoot().getChildren().remove(pause);\n App.getRoot().getChildren().remove(cont);\n App.getRoot().getChildren().remove(exit);\n App.getRoot().getChildren().remove(plus);\n App.getRoot().getChildren().remove(minus);\n App.getRoot().getChildren().remove(volume);\n App.getTimer().start();\n timerStopped=false;\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n exit.setOnAction(event -> {\n try {\n GameEngine.cleanScreen();\n App.getApp().initMainMenu();\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n App.getRoot().getChildren().add(volume);\n App.getRoot().getChildren().add(plus);\n App.getRoot().getChildren().add(minus);\n\n }\n\n }", "private void showBack() {\n Drawable buttonDrawableBack = new TextureRegionDrawable(new TextureRegion((Texture)game.getAssetManager().get(\"buttonBack.png\")));\n BackButton = new ImageButton(buttonDrawableBack);\n BackButton.setSize(MENU_WIDTH/7,MENU_HEIGHT/7);\n BackButton.setPosition(7*MENU_WIDTH/8 - BackButton.getWidth()/2, MENU_HEIGHT/7 -DELTA_Y_MENU);\n stage.addActor(BackButton);\n }", "private static void backButtonCreator(int backWidth, int backHeight){\n backButton = shadowEffect(configureImageView(\"\",\"button-back\",\".png\",backWidth,backHeight));\n }", "public void setBackGroundColor(String color){\n\t\tif(color.equalsIgnoreCase(\"white\")){\n\t\t\tbutton.setBackground(Color.WHITE);\n\t\t}else{\n\t\t\tbutton.setBackground(Color.green);\n\t\t}\n\t\t\n\t}", "public void run() {\n mEmoteButton.setBackgroundResource(R.drawable.button_yellow);\n mIsEmotePlayable = true;\n\n }", "private void updateBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseExited\n updateBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "private void updateBackgroundID() {\n if ((x + 1) % 2 == (y + 1) % 2) {\n switch (c) {\n case BLACK:\n background = R.drawable.pawngame_black_black;\n break;\n case WHITE:\n background = R.drawable.pawngame_black_white;\n break;\n default:\n background = R.drawable.pawngame_black_empty;\n }\n } else {\n switch (c) {\n case BLACK:\n background = R.drawable.pawngame_white_black;\n break;\n case WHITE:\n background = R.drawable.pawngame_white_white;\n break;\n default:\n background = R.drawable.pawngame_white_empty;\n }\n }\n }", "private void groupButton() {\n ButtonGroup bg1 = new ButtonGroup();\n \n bg1.add(excellentbtn);\n bg1.add(goodbtn);\n bg1.add(normalbtn);\n bg1.add(badbtn);\n bg1.add(worstbtn);\n }", "public Color getBackground(){\r\n return back;\r\n }", "public void setActivingColor(){\n this.setBackground(new Color( 213, 228, 242));\n this.forceupdateUI();\n }", "private void setBackground() {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String status = city.getStatus();\n switch (status) {\n case \"Clear\":\n background.setBackgroundResource(R.drawable.sunny_day);\n break;\n case\"Rain\":\n case \"Drizzle\":\n case \"Thunderstorm\":\n background.setBackgroundResource(R.drawable.rainy_day);\n break;\n default:\n background.setBackgroundResource(R.drawable.cloudy_day);\n }\n }\n });\n }", "public void setBackgroundToDefault(){\n\t\tcurrentBackgroundImage = defaultBackgroundImage;\n\t\tbackgroundPanel.changeBackground(defaultBackgroundImage);\n\t}", "private void drawButtonBackground(int x, int y)\n {\n this.drawSprite(x, y, 0, 0);\n }", "public void h(View view) {\n col(view); // This also calls reset\r\n buttons[2][2].setBackgroundColor(getResources().getColor(R.color.orange));\r\n buttons[0][3].setBackgroundColor(getResources().getColor(R.color.orange));\r\n buttons[1][3].setBackgroundColor(getResources().getColor(R.color.orange));\r\n buttons[2][3].setBackgroundColor(getResources().getColor(R.color.orange));\r\n buttons[3][3].setBackgroundColor(getResources().getColor(R.color.orange));\r\n }", "public NewButton(String backgroundPath) {\n super(backgroundPath);\n\n initialiseEvents();\n }", "@SuppressLint(\"NewApi\")\n\tprivate void ResetBoard() {\n\t\tButton btnBottom_left = (Button) findViewById(R.id.btnBottom_left);\n\t\tButton btnBottom_center = (Button) findViewById(R.id.btnBottom_center);\n\t\tButton btnBottom_right = (Button) findViewById(R.id.btnBottom_right);\n\t\tButton btnTop_left = (Button) findViewById(R.id.btnTop_left);\n\t\tButton btnTop_center = (Button) findViewById(R.id.btnTop_center);\n\t\tButton btnTop_right = (Button) findViewById(R.id.btnTop_right);\n\t\tButton btnCenter_left = (Button) findViewById(R.id.btnCenter_left);\n\t\tButton btnCenter_center = (Button) findViewById(R.id.btnCenter_center);\n\t\tButton btnCenter_right = (Button) findViewById(R.id.btnCenter_right);\n\t\t\n\t\tbtnBottom_left.setEnabled(true);\n\t\tbtnBottom_left.setVisibility(View.VISIBLE);\n\t\tbtnBottom_left.setBackground(null);\n\t\t\n\t\tbtnBottom_center.setEnabled(true);\n\t\tbtnBottom_center.setVisibility(View.VISIBLE);\n\t\tbtnBottom_center.setBackground(null);\n\t\t\n\t\tbtnBottom_right.setEnabled(true);\n\t\tbtnBottom_right.setVisibility(View.VISIBLE);\n\t\tbtnBottom_right.setBackground(null);\n\t\t\n\t\tbtnTop_left.setEnabled(true);\n\t\tbtnTop_left.setVisibility(View.VISIBLE);\n\t\tbtnTop_left.setBackground(null);\n\t\t\n\t\tbtnTop_center.setEnabled(true);\n\t\tbtnTop_center.setVisibility(View.VISIBLE);\n\t\tbtnTop_center.setBackground(null);\n\t\t\n\t\tbtnTop_right.setEnabled(true);\n\t\tbtnTop_right.setVisibility(View.VISIBLE);\n\t\tbtnTop_right.setBackground(null);\n\t\t\n\t\tbtnCenter_left.setEnabled(true);\n\t\tbtnCenter_left.setVisibility(View.VISIBLE);\n\t\tbtnCenter_left.setBackground(null);\n\t\t\n\t\tbtnCenter_center.setEnabled(true);\n\t\tbtnCenter_center.setVisibility(View.VISIBLE);\n\t\tbtnCenter_center.setBackground(null);\n\t\t\n\t\tbtnCenter_right.setEnabled(true);\n\t\tbtnCenter_right.setVisibility(View.VISIBLE);\n\t\tbtnCenter_right.setBackground(null);\n\t\t\n\t\tfor(int i = 0;i<9;i++){\n\t\t\tgameBoard[i]=0;\n\t\t\tsquare_empty[i]= true;\n\t\t}\n\t}", "public void setBackgroundImage(BackgroundImage image) {\n this.backgroundImage = image;\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\r\n\t\t\t\t popuWindow.dismiss();\r\n\t\t\t\t WindowManager.LayoutParams params=context.getWindow().getAttributes(); \r\n\t\t\t params.alpha=1f; \r\n\t\t\t context.getWindow().setAttributes(params); \r\n\t\t\t}", "public static void GameOverEffect(ArrayList<JButton> myGameButton){\n enableButtons(myGameButton);\n for(int i=0; i<myGameButton.size(); ++i){\n myGameButton.get(i).setBackground(Color.red); // set buttons back-ground color\n myGameButton.get(i).setForeground(Color.white); // set buttons fore-ground color\n } \n }", "public CommonPopWindow setBackgroundDrawable(Drawable drawable) {\n/* 152 */ this.mDrawable = drawable;\n/* 153 */ return this;\n/* */ }", "public void lightPause() {\n stopPawn.setStyle(\"-fx-background-color: RED;\"\n + \"-fx-background-radius: 30;\"\n + \"-fx-border-radius: 30;\"\n + \"-fx-border-color: 363507;\");\n movePawn.setStyle(\"-fx-background-color: null\");\n buildPawn.setStyle(\"-fx-background-color: null\");\n }" ]
[ "0.71045816", "0.7094422", "0.6886284", "0.6878574", "0.6782073", "0.6677122", "0.66624206", "0.65982693", "0.64791864", "0.6452627", "0.6422506", "0.6422013", "0.63793904", "0.63419825", "0.6316363", "0.63002884", "0.63002884", "0.63002884", "0.62859154", "0.6254489", "0.62532234", "0.61994284", "0.613992", "0.6101061", "0.60983044", "0.6094077", "0.5998134", "0.59763646", "0.59724385", "0.593933", "0.5911501", "0.5902932", "0.58957964", "0.58871937", "0.5882286", "0.5878237", "0.58771986", "0.58552104", "0.5846328", "0.58343697", "0.5815691", "0.5808224", "0.57857585", "0.57698685", "0.5766262", "0.5763369", "0.57557064", "0.57542133", "0.57500273", "0.57462156", "0.57458556", "0.5728809", "0.57145566", "0.5686194", "0.56825954", "0.56779814", "0.5662627", "0.56620383", "0.5657482", "0.5657128", "0.56525505", "0.5652277", "0.56509376", "0.56479865", "0.56472754", "0.56448805", "0.56370306", "0.5633553", "0.5633307", "0.5629532", "0.5617517", "0.5617252", "0.561611", "0.56033444", "0.5603322", "0.5601044", "0.5596955", "0.55961066", "0.55955106", "0.55872136", "0.55846447", "0.5577686", "0.55758524", "0.5569003", "0.5565829", "0.5565717", "0.5560835", "0.5551224", "0.55503535", "0.5546004", "0.5534421", "0.5524591", "0.5522737", "0.55107605", "0.5498759", "0.5497209", "0.5496899", "0.54897976", "0.5486442", "0.54783607" ]
0.6585371
8
set negative btn BackgroundResouce
public ComDialogBuilder setCancelBackgroundResouce(int resID) { if (cancelBtn == null) { cancelBtn = getView(R.id.dialog_neg_btn); } if (cancelBtn != null && resID != -1) { cancelBtnBG = resID; cancelBtn.setBackgroundResource(resID); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_goles);\n\t\t\t}", "private void changeButtonBackground(final int row, final int col, final boolean mode){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if(mode)\n buttons[row][col].setBackground(new BitmapDrawable(getResources(), buttons[row][col].getBitmap()));\n\n else{\n buttons[row][col].setBackgroundResource(android.R.drawable.btn_default);\n }\n }\n });\n }", "@Override\r\n\tpublic void setBackgroundResource(int resid) {\n\t\tsuper.setBackgroundResource(resid);\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_rojas);\n\t\t\t}", "private void setButtonBackground(Button button, String bgImgName) {\n BackgroundImage backgroundImage = new BackgroundImage(\n new Image( getClass().getResource(\"resources/\" + bgImgName).toExternalForm()),\n BackgroundRepeat.NO_REPEAT,\n BackgroundRepeat.NO_REPEAT,\n BackgroundPosition.CENTER,\n BackgroundSize.DEFAULT);\n Background background = new Background(backgroundImage);\n button.setBackground(background);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_victorias);\n\t\t\t}", "@Override\n public void setPressed()\n {\n setImage(\"MinusPressed.png\");\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_amarillas);\n\t\t\t}", "protected void addopqueueonBackground() {\n\t\tlv.setClickable(false);\n\t\tlvx.setClickable(false);\n\t\trefresh.setClickable(false);\n\t\tsearch.setClickable(false);\n\t\tsearch.setEnabled(false);\n\t\tlv.setEnabled(false);\n\t\tlvx.setEnabled(false);\n\t\trefresh.setEnabled(false);\n\t\tcancelButton.setClickable(false);\n\t\tcancelButton.setEnabled(false);\n\t\tlistbackground.setAlpha(0.5f);\n\t\tbackground.setAlpha(0.5f);\n\t}", "public void Back(){\n setImage(\"button-blue.png\");\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 }", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t if( bFlagQiuzhi == false )\r\n\t\t\t\t {\r\n\t\t\t\t\t btn_qiuzhi_switch.setBackgroundResource(R.drawable.btn_anniu_b);\r\n\t\t\t\t }\r\n\t\t\t\t else\r\n\t\t\t\t {\r\n\t\t\t\t\t btn_qiuzhi_switch.setBackgroundResource(R.drawable.btn_anniu_a);\r\n\t\t\t\t }\r\n\t\t\t\t bFlagQiuzhi = !bFlagQiuzhi;\r\n\r\n\t\t\t }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbtnPrincipal.setBackgroundResource(R.drawable.est_premier_empates);\n\t\t\t}", "public abstract void setBackgroundPressed(final int rgba);", "public void setBg(){\n this.setBackground(color);\n }", "private void resetButton() {\n for(int x=0;x<buttons.size();x++) {\n if(buttons.get(x).isOpaque())\n buttons.get(x).setOpaque(false);\n }\n }", "@Override\n public void onClick(View v) {\n animMove = AnimationUtils.loadAnimation(getApplicationContext(),R.anim.fade_out);\n m_rad_DA1.startAnimation(animMove);\n m_rad_DA3.startAnimation(animMove);\n btnFiftyPercen.setEnabled(false);\n btnFiftyPercen.setBackgroundResource(R.drawable.button_black);\n }", "public void resetButtonStyles() {\n\t\tint drawable_id = R.drawable.stockbutton;\n\t\tDrawable stockbutton = getResources().getDrawable(drawable_id);\n\t\t\n\t\t// For now I'm just going to set the bg colors\n\t\tButton outsideButton = (Button) findViewById(R.id.outside);\n\t\toutsideButton.setBackground(stockbutton);\n\t\tButton fridgeButton = (Button) findViewById(R.id.fridge);\n\t\tfridgeButton.setBackground(stockbutton);\n\t\tButton freezerButton = (Button) findViewById(R.id.freezer);\n\t\tfreezerButton.setBackground(stockbutton);\n\t}", "public ComDialogBuilder setConfirmBackgroundResouce(int resID) {\n if (confrimBtn == null) {\n confrimBtn = getView(R.id.dialog_posi_btn);\n }\n if (confrimBtn != null && resID != -1) {\n confirmBtnBG = resID;\n confrimBtn.setBackgroundResource(resID);\n }\n return this;\n }", "@Override\n public void setNormal()\n {\n setImage(\"Minus.png\");\n }", "private void clearxuan() {\n\t\tbtn_Fourgroup6_xuan_big.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_little.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_all.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_odd.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_even.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_clear.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_big.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_little.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_all.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_odd.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_even.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_clear.setTextColor(0xffcfcfcf);\r\n\r\n\t}", "private static void backButtonCreator(int backWidth, int backHeight){\n backButton = shadowEffect(configureImageView(\"\",\"button-back\",\".png\",backWidth,backHeight));\n }", "public CssBackgroundClip() {\r\n\tbgclip = border;\r\n }", "public void cambiarFondobtnPagoTarjeta(){\n btnPagoTarjeta.setBackgroundResource(R.drawable.btn_met_pgo_seleccion);\n btnPagoBancolo.setChecked(false);\n btnPagoNequi.setChecked(false);\n btnPagoPSE.setChecked(false);\n }", "@Override\n\tpublic Drawable background() {\n\t\treturn null;\n\t}", "private void settingNormalButton(Button button1, Button button2, Button button3) {\n button1.setBackgroundResource(R.drawable.my_btn_bg);\n button1.setTextColor(getResources().getColor(R.color.test_dark_blue));\n button2.setBackgroundResource(R.drawable.my_btn_bg);\n button2.setTextColor(getResources().getColor(R.color.test_dark_blue));\n button3.setBackgroundResource(R.drawable.my_btn_bg);\n button3.setTextColor(getResources().getColor(R.color.test_dark_blue));\n }", "public void setBackground(Color back) {\r\n this.back = back;\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n btnAdicionar.setBackground(new Color(176, 196, 222));\n btnCalcular.setBackground(new Color(176, 196, 222));\n btnLimpar.setBackground(new Color(176, 196, 222));\n btnRemover.setBackground(new Color(176, 196, 222));\n }", "void updateBackground() {\n float f = this.getDimension(R.dimen.fab_stroke_width);\n float f2 = f / 2.0f;\n Resources resources = this.getResources();\n int n = this.mSize == 0 ? R.drawable.fab_bg_normal : R.drawable.fab_bg_mini;\n resources = new LayerDrawable(new Drawable[]{resources.getDrawable(n), this.createFillDrawable(f), this.createOuterStrokeDrawable(f), this.getIconDrawable()});\n n = (int)(this.mCircleSize - this.getDimension(R.dimen.fab_icon_size)) / 2;\n int n2 = (int)this.mShadowRadius;\n int n3 = (int)(this.mShadowRadius - this.mShadowOffset);\n int n4 = (int)(this.mShadowRadius + this.mShadowOffset);\n resources.setLayerInset(1, n2, n3, n2, n4);\n resources.setLayerInset(2, (int)((float)n2 - f2), (int)((float)n3 - f2), (int)((float)n2 - f2), (int)((float)n4 - f2));\n resources.setLayerInset(3, n2 + n, n3 + n, n2 + n, n4 + n);\n this.setBackgroundCompat((Drawable)resources);\n }", "private void themeDynamicAdd() {\n try {\n Background=getBitmapFromURL(base_image);\n Drawable dr = new BitmapDrawable((Background));\n test_rules_background.setBackgroundDrawable(dr);\n\n Bitmap back_bitmap;\n String back_shrd= AarambhThemeSharedPrefreence.loadBackArrowIconFromPreference(this);\n back_bitmap = getBitmapFromURL(back_shrd);\n Drawable dr1 = new BitmapDrawable((back_bitmap));\n back_btn_test_rules.setBackgroundDrawable(dr1);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "@Override\r\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tif (mBtnState) {\r\n\t\t\t\tsetUnfocusBg();\r\n\t\t\t} else {\r\n\t\t\t\tsetDefaultBg();\r\n\t\t\t}\r\n\t\t}", "public Color getBackground(){\r\n return back;\r\n }", "@SuppressWarnings(\"deprecation\")\n public Builder setNegativeButtonColorRes(@ColorRes int color) {\n return this.setNegativeButtonColor(context.getResources().getColor(color));\n }", "@Override\r\n\tprotected void setFooterClickBg() {\n\t\tlayout_footer_mycard.setBackgroundResource(R.drawable.footer_over_bg);\r\n\t\tiv_footer_mycard.setBackgroundResource(R.drawable.footer_mycard_click);\r\n\t}", "public Builder setNegativeButtonColor(@ColorInt int color) {\n this.negativeButtonColor = color;\n return this;\n }", "private void setReleasedStyle() {\n this.setStyle(BUTTON_FREE);\n this.setPrefHeight(47);\n this.setLayoutY(getLayoutY() - 4);\n }", "public void reverseNextCount(View view) {\n \tButton minus = (Button) findViewById(R.id.minus);\n \t\n if (countBackwards) {\n \tcountBackwards = false;\n \tminus.setBackgroundDrawable(defaultDrawable);\n } else {\n \tcountBackwards = true;\n \tdefaultDrawable = minus.getBackground();\n \tminus.setBackgroundColor(Color.RED);\n }\n\t}", "private void showBack() {\n Drawable buttonDrawableBack = new TextureRegionDrawable(new TextureRegion((Texture)game.getAssetManager().get(\"buttonBack.png\")));\n BackButton = new ImageButton(buttonDrawableBack);\n BackButton.setSize(MENU_WIDTH/7,MENU_HEIGHT/7);\n BackButton.setPosition(7*MENU_WIDTH/8 - BackButton.getWidth()/2, MENU_HEIGHT/7 -DELTA_Y_MENU);\n stage.addActor(BackButton);\n }", "private void clearbackground() {\n\t\tfive_direct_single.setBackgroundResource(0);\r\n\t\tfour_direct_single.setBackgroundResource(0);\r\n\t\ttopthree_group_three_single.setBackgroundResource(0);\r\n\t\ttopthree_group_six_single.setBackgroundResource(0);\r\n\t\ttopthree_direct_single.setBackgroundResource(0);\r\n\t\tbottomthree_direct_single.setBackgroundResource(0);\r\n\t\tbottompthree_group_three_single.setBackgroundResource(0);\r\n\t\tbottompthree_group_six_single.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_single.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_single.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_single.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_single.setBackgroundResource(0);\r\n\t\ttopthree_mix_group.setBackgroundResource(0);\r\n\t\tbottompthree_mix_group.setBackgroundResource(0);\r\n\t\tfive_direct_double.setBackgroundResource(0);\r\n\t\tfive_group_120.setBackgroundResource(0);\r\n\t\tfive_group_60.setBackgroundResource(0);\r\n\t\tfive_group_30.setBackgroundResource(0);\r\n\t\tfive_group_20.setBackgroundResource(0);\r\n\t\tfive_group_10.setBackgroundResource(0);\r\n\t\tfive_group_5.setBackgroundResource(0);\r\n\t\tfour_direct_double.setBackgroundResource(0);\r\n\t\tfour_group_24.setBackgroundResource(0);\r\n\t\tfour_group_12.setBackgroundResource(0);\r\n\t\ttopthree_direct_double.setBackgroundResource(0);\r\n\t\ttopthree_group_three.setBackgroundResource(0);\r\n\t\ttopthree_group_six.setBackgroundResource(0);\r\n\t\ttopthree_group_sum.setBackgroundResource(0);\r\n\t\ttopthree_group_container.setBackgroundResource(0);\r\n\t\tbottomthree_direct_double.setBackgroundResource(0);\r\n\t\tbottomthree_group_span.setBackgroundResource(0);\r\n\t\tbottomthree_group_three.setBackgroundResource(0);\r\n\t\tbottomthree_group_six.setBackgroundResource(0);\r\n\t\tbottomthree_group_sum.setBackgroundResource(0);\r\n\t\tbottomthree_group_container.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_double.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_sum.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_span.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_double.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_span.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_double.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_double.setBackgroundResource(0);\r\n\t\tfixed_position.setBackgroundResource(0);\r\n\t\tthree_bottomthree_one_notposition.setBackgroundResource(0);\r\n\t\tthree_bottomthree_two_notposition.setBackgroundResource(0);\r\n\t\tthree_topthree_one_notposition.setBackgroundResource(0);\r\n\t\tthree_topthree_two_notposition.setBackgroundResource(0);\r\n\t\tfour_bottomfour_two_notposition.setBackgroundResource(0);\r\n\t\tfive_bottomfive_two_notposition.setBackgroundResource(0);\r\n\t\tfive_bottomfive_three_notposition.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_sum.setBackgroundResource(0);\r\n\t\tfour_group_6.setBackgroundResource(0);\r\n\t\tfour_group_4.setBackgroundResource(0);\r\n\t\tbottomthree_direct_sum.setBackgroundResource(0);\r\n\t\ttopthree_direct_sum.setBackgroundResource(0);\r\n\t\ttopthree_direct_span.setBackgroundResource(0);\r\n\t\ttopthree_sum_end.setBackgroundResource(0);\r\n\t\tbottomthree_sum_end.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_sum.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_container.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_container.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_sum.setBackgroundResource(0);\r\n\t\tfour_bottomfour_one_notposition.setBackgroundResource(0);\r\n\t\tmaxmin_bottomtwo.setBackgroundResource(0);\r\n\t\tmaxmin_bottomthree.setBackgroundResource(0);\r\n\t\tmaxmin_toptwo.setBackgroundResource(0);\r\n\t\tmaxmin_topthree.setBackgroundResource(0);\r\n\t}", "private void setBackgroundColor(int backColor){\n backgroundColor = backColor;\n touchArea.setBackgroundColor(backgroundColor);\n }", "public void setBackgroundToDefault(){\n\t\tcurrentBackgroundImage = defaultBackgroundImage;\n\t\tbackgroundPanel.changeBackground(defaultBackgroundImage);\n\t}", "public void updateResetButton(){\n if (vertexImages.size() < 1){\n resetButton.setAlpha(0.5f);\n resetButton.setClickable(false);\n }\n else {\n resetButton.setAlpha(1f);\n resetButton.setClickable(true);\n }\n }", "private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}", "private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}", "void changeResumeButtonColor(Color color);", "public BackgroundRippleObject revive(){\n return this.revive(\n randomPosInObjBounds(),\n makeRandomColor()\n );\n }", "private void setBackgrond(){\t\n this.background = new JLabel();\n this.background.setIcon(backgrondP);\n this.background.setVisible(true);\n this.background.setLocation(0, 0);\n this.background.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.add(background);\n\t}", "public void changeBackground(Bitmap bg){\n Drawable newbackground = new BitmapDrawable(getResources(), bg);\n this.setBackground(newbackground);\n\n }", "@Override\r\n\tprotected Drawable getPopupBackground() {\n\t\tdrawable = context.getResources().getDrawable(ResUtil.getInstance(context).getDrawable(\"ct_traffic__tip_pointer_button_normal\"));\r\n\t\treturn drawable;\r\n\t}", "public void setBackground(){\r\n Image background = new Image(\"Cards/table.jpg\", 192, 80, false, true);\r\n BackgroundImage backgroundImg = new BackgroundImage(background, BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT,BackgroundPosition.DEFAULT, null);\r\n mainPane.setBackground(new Background(backgroundImg));\r\n }", "public void newBtnStyle(Button btn) {\n btn.setStyle(\"-fx-background-color: #3c7fb1, linear-gradient(#fafdfe, #e8f5fc), linear-gradient(#eaf6fd 0%, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%)\");\n btn.setPrefHeight(90);\n btn.setPrefWidth(260);\n btn.setFont(new Font(39));\n btn.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n changeActive(btn);\n }\n });\n }", "private void setUpBackButton() {\n mBackButton = mDetailToolbar.getChildAt(0);\n if (null != mBackButton && mBackButton instanceof ImageView) {\n\n // the scrim makes the back arrow more visible when the image behind is very light\n mBackButton.setBackgroundResource(R.drawable.scrim);\n\n ViewGroup.MarginLayoutParams lpt = (ViewGroup.MarginLayoutParams) mBackButton.getLayoutParams();\n lpt.setMarginStart((int) getResources().getDimension(R.dimen.keyline_1));\n\n ViewGroup.LayoutParams lp = mBackButton.getLayoutParams();\n lp.height = (int) getResources().getDimension(R.dimen.small_back_arrow);\n lp.width = (int) getResources().getDimension(R.dimen.small_back_arrow);\n\n // tapping the back button or the Up button should return to the list of articles\n mBackButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onBackPressed();\n supportFinishAfterTransition();\n }\n });\n }\n }", "private void buttonMouseExit(Button btn){\r\n\t\tbtn.setBackground(\r\n\t\t\t\tnew Background(new BackgroundFill(Color.ALICEBLUE, new CornerRadii(0), new Insets(0)))); // set login button aliceblue with mouse exit\r\n\t\tbtn.setTextFill(Color.BLACK); // set text black\r\n\t}", "private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }", "@Override\n public void onClick(View v) {\n Intent PreviousScreen = new Intent(RoundSetting.this, MainPage.class);\n startActivity(PreviousScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }", "@Override\n public void onClick(View v) {\n Intent PreviousScreen = new Intent(RoundSetting.this, MainPage.class);\n startActivity(PreviousScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }", "@Override\n public void onClick(View v) {\n Intent PreviousScreen = new Intent(RoundSetting.this, MainPage.class);\n startActivity(PreviousScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }", "private void drawButtonBackground(int x, int y)\n {\n this.drawSprite(x, y, 0, 0);\n }", "private void resetBoard(){\n\n int [] ids = new int[]{\n R.id.box1, R.id.box2, R.id.box3, R.id.box4, R.id.box5, R.id.box6,\n R.id.box7, R.id.box8, R.id.box9\n };\n\n for (int i = 0; i < ids.length; i++)\n {\n ImageButton btnToDisable = (ImageButton)findViewById(ids[i]);\n btnToDisable.setEnabled(true);\n btnToDisable.setBackgroundResource(R.drawable.tile);\n }\n\n\n\n }", "protected boolean hasNegativeButton() {\n return false;\n }", "public void highlightButton(ImageButton imageButtonClicked) {\n imageButtonClicked.setColorFilter(0x77000000, PorterDuff.Mode.SRC_ATOP);\n\n if (buttonNemo(imageButtonClicked))\n AppController.getInstance().setCover(1);\n else if (buttonPets(imageButtonClicked))\n AppController.getInstance().setCover(0);\n }", "@Source(\"control_panel_bg.gif\")\n\tpublic DataResource controlPanelBackgroundResource();", "public void setIcon(Button buttonPlayed){\n if(game.getPlayerTurn() == player1){\n buttonPlayed.setBackgroundResource(drawable.o);\n buttonPlayed.setEnabled(false);\n }\n else{\n buttonPlayed.setBackgroundResource(drawable.cross);\n buttonPlayed.setEnabled(false);\n }\n }", "public static void setActiveBtnStyle(Button btn) {\n btn.setStyle(\"-fx-background-color: #42b13c,linear-gradient(#fafdfe, #e8f5fc), linear-gradient(#eaf6fd 0%, #d2fcd4 49%, #bdfdc9 50%, #70f575 100%)\");\n }", "public RectYellowWorldButton(World world) \n {\n super(world,\n \"buttonUnpressed.png\",\n \"buttonHovered.png\",\n \"buttonPressed.png\");\n }", "public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }", "@Override\n public void onDismiss() {\n backgroundAlpha(1f);\n }", "@FXML\n public void subMenuButtonResetColor(Event mouseEvent){\n Button thisButton = (Button) mouseEvent.getSource();\n thisButton.setStyle(\"-fx-background-color: #\" + standardSubMenuButtonColor);\n }", "private void rHintButton(Button button){\r\n button.getStyleClass().remove(\"closedButton\");\r\n button.getStyleClass().add(\"chooseButtons\");\r\n button.setMouseTransparent(false);\r\n }", "private void setPressedStyle() {\n this.setStyle(BUTTON_PRESSED);\n this.setPrefHeight(43);\n this.setLayoutY(getLayoutY() + 4);\n }", "public final void mo39711K() {\n setBackgroundColor(0);\n }", "void disableBackgroundDate();", "private void updateBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseReleased\n updateBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "@SuppressLint(\"NewApi\")\n\tprivate void ResetBoard() {\n\t\tButton btnBottom_left = (Button) findViewById(R.id.btnBottom_left);\n\t\tButton btnBottom_center = (Button) findViewById(R.id.btnBottom_center);\n\t\tButton btnBottom_right = (Button) findViewById(R.id.btnBottom_right);\n\t\tButton btnTop_left = (Button) findViewById(R.id.btnTop_left);\n\t\tButton btnTop_center = (Button) findViewById(R.id.btnTop_center);\n\t\tButton btnTop_right = (Button) findViewById(R.id.btnTop_right);\n\t\tButton btnCenter_left = (Button) findViewById(R.id.btnCenter_left);\n\t\tButton btnCenter_center = (Button) findViewById(R.id.btnCenter_center);\n\t\tButton btnCenter_right = (Button) findViewById(R.id.btnCenter_right);\n\t\t\n\t\tbtnBottom_left.setEnabled(true);\n\t\tbtnBottom_left.setVisibility(View.VISIBLE);\n\t\tbtnBottom_left.setBackground(null);\n\t\t\n\t\tbtnBottom_center.setEnabled(true);\n\t\tbtnBottom_center.setVisibility(View.VISIBLE);\n\t\tbtnBottom_center.setBackground(null);\n\t\t\n\t\tbtnBottom_right.setEnabled(true);\n\t\tbtnBottom_right.setVisibility(View.VISIBLE);\n\t\tbtnBottom_right.setBackground(null);\n\t\t\n\t\tbtnTop_left.setEnabled(true);\n\t\tbtnTop_left.setVisibility(View.VISIBLE);\n\t\tbtnTop_left.setBackground(null);\n\t\t\n\t\tbtnTop_center.setEnabled(true);\n\t\tbtnTop_center.setVisibility(View.VISIBLE);\n\t\tbtnTop_center.setBackground(null);\n\t\t\n\t\tbtnTop_right.setEnabled(true);\n\t\tbtnTop_right.setVisibility(View.VISIBLE);\n\t\tbtnTop_right.setBackground(null);\n\t\t\n\t\tbtnCenter_left.setEnabled(true);\n\t\tbtnCenter_left.setVisibility(View.VISIBLE);\n\t\tbtnCenter_left.setBackground(null);\n\t\t\n\t\tbtnCenter_center.setEnabled(true);\n\t\tbtnCenter_center.setVisibility(View.VISIBLE);\n\t\tbtnCenter_center.setBackground(null);\n\t\t\n\t\tbtnCenter_right.setEnabled(true);\n\t\tbtnCenter_right.setVisibility(View.VISIBLE);\n\t\tbtnCenter_right.setBackground(null);\n\t\t\n\t\tfor(int i = 0;i<9;i++){\n\t\t\tgameBoard[i]=0;\n\t\t\tsquare_empty[i]= true;\n\t\t}\n\t}", "@Override\n public void setBackgroundColor(int backgroundColor) {\n }", "public void restaura(){ \n super.restauraE();\n setImage(\"FrtEA1.png\"); \n check = false; \n }", "public static void GameOverEffect(ArrayList<JButton> myGameButton){\n enableButtons(myGameButton);\n for(int i=0; i<myGameButton.size(); ++i){\n myGameButton.get(i).setBackground(Color.red); // set buttons back-ground color\n myGameButton.get(i).setForeground(Color.white); // set buttons fore-ground color\n } \n }", "private void setupBackButton(){\n\t\tImageIcon back_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"back.png\");\n\t\tJButton back_button = new JButton(\"\", back_button_image);\n\t\tback_button.setBorderPainted(false);\n\t\tback_button.setContentAreaFilled(false);\n\t\tback_button.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tboolean leave_result = askToLeave();\n\t\t\t\tif (leave_result){\n\t\t\t\t\t//no point speaking any more words if exiting\n\t\t\t\t\tparent_frame.getFestival().emptyWorkerQueue();\n\t\t\t\t\tparent_frame.changePanel(PanelID.MainMenu);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tback_button.addMouseListener(new VoxMouseAdapter(back_button,null));\n\t\tadd(back_button);\n\t\tback_button.setBounds(1216, 598, 100, 100);\n\t}", "@Override\n protected void negativeClick() {\n\n }", "public abstract View getBlackBackground();", "protected void drawBackButton() {\n backButton = new TextButton(\"Back\", skin);\n stage.addActor(backButton);\n\n setPrevious();\n }", "private ImageView m25219a(Context context, boolean z) {\n ImageView backgroundImageView = new BackgroundImageView(context, z);\n backgroundImageView.setScaleType(ScaleType.CENTER_CROP);\n int i = !z ? SizeUtil.dp20 : null;\n backgroundImageView.setImageBitmap(this.options.getBackgroundImage());\n z = new ShapeDrawable();\n z.setShape(m25217a(i));\n z.getPaint().setColor(this.options.getBackgroundColor());\n if (VERSION.SDK_INT >= 16) {\n backgroundImageView.setBackground(z);\n } else {\n backgroundImageView.setBackgroundDrawable(z);\n }\n backgroundImageView.setLayoutParams(new LayoutParams(-1, -1));\n return backgroundImageView;\n }", "@Override\n public void setFocused()\n {\n setImage(\"MinusFocused.png\");\n }", "void paintViews() {\n\n //Paint the back button in white\n int paintColour = android.graphics.Color.rgb(253, 195, 204);\n Drawable d = VectorDrawableCompat.create(getResources(), R.drawable.kids_ui_back_anim, null);\n d = DrawableCompat.wrap(d);\n DrawableCompat.setTint(d, paintColour);\n back.setImageDrawable(d);\n }", "public BackgroundRippleObject revive(ButtonObject b){\n return this.revive(new Vector2D(b.getPos()), b.getObjectColour());\n }", "public void setDropDownBackgroundResource(int id) {\n/* 287 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Source(\"images/deleteButton.png\")\n @ImageOptions(flipRtl = true)\n ImageResource removeIcon();", "private javax.swing.JButton getJButtonCancelar() {\n\t\tif(jButtonCancelar == null) {\n\t\t\tjButtonCancelar = new JHighlightButton();\n\t\t\tjButtonCancelar.setText(\"Cancelar\");\n\t\t\tjButtonCancelar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/delete2.png\")));\n\t\t}\n\t\treturn jButtonCancelar;\n\t}", "private void updateBackgroundID() {\n if ((x + 1) % 2 == (y + 1) % 2) {\n switch (c) {\n case BLACK:\n background = R.drawable.pawngame_black_black;\n break;\n case WHITE:\n background = R.drawable.pawngame_black_white;\n break;\n default:\n background = R.drawable.pawngame_black_empty;\n }\n } else {\n switch (c) {\n case BLACK:\n background = R.drawable.pawngame_white_black;\n break;\n case WHITE:\n background = R.drawable.pawngame_white_white;\n break;\n default:\n background = R.drawable.pawngame_white_empty;\n }\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttotalLayout.setBackgroundColor(getResources().getColor(R.color.red));\n\t\t\t\tconfirmButton.setEnabled(false);\n\t\t\t\tconfirmRequest1();\n\t\t\t}", "public abstract void setForegroundPressed(final int rgba);", "public void h(View view) {\n col(view); // This also calls reset\r\n buttons[2][2].setBackgroundColor(getResources().getColor(R.color.orange));\r\n buttons[0][3].setBackgroundColor(getResources().getColor(R.color.orange));\r\n buttons[1][3].setBackgroundColor(getResources().getColor(R.color.orange));\r\n buttons[2][3].setBackgroundColor(getResources().getColor(R.color.orange));\r\n buttons[3][3].setBackgroundColor(getResources().getColor(R.color.orange));\r\n }", "public static void clearEffect(ArrayList<JButton> myGameButton){\n for(int i=0; i<myGameButton.size(); ++i){\n myGameButton.get(i).setBackground(Color.LIGHT_GRAY);\n }\n }", "@Override\n public void setDrawableResource(int resId) {\n ivColorSet.setBackgroundResource(resId);\n }", "private void makeTransparent(JButton component)\n {\n component.setOpaque(false);\n component.setContentAreaFilled(false);\n component.setBorderPainted(false);\n }", "private void updateBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMousePressed\n updateBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "@Override\n\t\tprotected JButton createDecreaseButton(int o) {\n\t\t\tJButton jbutton = new JButton();\n\t\t\tjbutton.setVisible(false);\n\t\t\tjbutton.setEnabled(false);\n\t\t\tjbutton.setPreferredSize(new Dimension(0, 0));\n\t\t\tjbutton.setMinimumSize(new Dimension(0, 0));\n\t\t\tjbutton.setMaximumSize(new Dimension(0, 0));\n\t\t\treturn jbutton;\n\t\t}", "private void unsetWorking(){\n\t\tcalibrationButtonImageView.setClickable(true);\n\t\tcalibrationButtonImageView.setEnabled(true);\n progressDialog.dismiss();\n\t}", "public void onEscPressed(){\n if(!timerStopped){\n App.getTimer().stop();\n timerStopped=true;\n ImageView bg = new ImageView(new Image(\"Sprites\\\\pause_screen.png\"));\n BackgroundImage backgroundImage = new BackgroundImage( new Image( \"Sprites\\\\Button_bg.png\"), BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, new BackgroundSize(300,100,false,false,false,false));\n Background background = new Background(backgroundImage);\n bg.setFitHeight(App.getHEIGHT());\n bg.setFitWidth(App.getWIDTH());\n App.getRoot().getChildren().add(bg);\n ImageView pause = new ImageView(new Image(\"Sprites\\\\Pause.png\"));\n pause.setFitWidth(400);\n pause.setFitHeight(150);\n pause.setX((App.getWIDTH()-pause.getFitWidth())/2);\n pause.setY(30);\n App.getRoot().getChildren().add(pause);\n Button cont = new Button(\"Continue\");\n cont.setBackground(background);\n cont.setTextFill(Color.web(\"ffffff\"));\n cont.setFont(new Font(50));\n cont.setPrefWidth(300);\n cont.setTranslateX(350);\n cont.setTranslateY(250);\n App.getRoot().getChildren().add(cont);\n Button exit = new Button(\"Exit\");\n exit.setFont(new Font(50));\n exit.setBackground(background);\n exit.setTextFill(Color.web(\"ffffff\"));\n exit.setPrefWidth(300);\n exit.setTranslateX(350);\n exit.setTranslateY(400);\n App.getRoot().getChildren().add(exit);\n Button plus = new Button(\"+\");\n //plus.setBackground(background);\n plus.setPrefWidth(50);\n plus.setPrefHeight(50);\n plus.setTranslateX(155);\n plus.setTranslateY(540);\n plus.setStyle(\"-fx-background-color: Orange\");\n plus.setFont(new Font(20));\n plus.setOnAction(event -> {\n try {\n if(App.getVolume()<1) {\n App.setVolume(App.getVolume() + 0.1);\n App.getApp().getMediaPlayer().setVolume(App.getVolume()/2);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n Button minus = new Button(\"-\");\n //minus.setBackground(background);\n minus.setPrefWidth(50);\n minus.setPrefHeight(50);\n minus.setTranslateX(45);\n minus.setTranslateY(540);\n minus.setStyle(\"-fx-background-color: Orange\");\n minus.setFont(new Font(20));\n minus.setOnAction(event -> {\n try {\n if(App.getVolume()>0) {\n App.setVolume(App.getVolume() - 0.1);\n App.getApp().getMediaPlayer().setVolume(App.getVolume()/2);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n ImageView volume = new ImageView(new Image(\"Sprites/Sound.png\"));\n volume.setFitWidth(50);\n volume.setFitHeight(50);\n volume.setX(100);\n volume.setY(540);\n cont.setOnAction(event -> {\n try {\n App.getRoot().getChildren().remove(bg);\n App.getRoot().getChildren().remove(pause);\n App.getRoot().getChildren().remove(cont);\n App.getRoot().getChildren().remove(exit);\n App.getRoot().getChildren().remove(plus);\n App.getRoot().getChildren().remove(minus);\n App.getRoot().getChildren().remove(volume);\n App.getTimer().start();\n timerStopped=false;\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n exit.setOnAction(event -> {\n try {\n GameEngine.cleanScreen();\n App.getApp().initMainMenu();\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n App.getRoot().getChildren().add(volume);\n App.getRoot().getChildren().add(plus);\n App.getRoot().getChildren().add(minus);\n\n }\n\n }", "public void repaint(View v) {\n Button btn = (Button) v;\n\n switch (this.status) {\n case \"Empty\":\n btn.setBackgroundResource(R.drawable.cell_default_button);\n break;\n case \"Start\":\n if (this.orientation.length() != 0) {\n switch (this.orientation) {\n // This is not good but I couldn't find any way around\n case \"North\":\n this.setBackgroundResource(R.drawable.arrow_up_bold_box_outline);\n break;\n case \"South\":\n this.setBackgroundResource(R.drawable.arrow_down_bold_box_outline);\n break;\n case \"East\":\n this.setBackgroundResource(R.drawable.arrow_right_bold_box_outline);\n break;\n case \"West\":\n this.setBackgroundResource(R.drawable.arrow_left_bold_box_outline);\n break;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + this.orientation);\n }\n } else\n btn.setBackgroundResource(R.drawable.start_button);\n break;\n case \"Obstacle\":\n btn.setBackgroundResource(R.drawable.obstacle_button);\n break;\n case \"End\":\n btn.setBackgroundResource(R.drawable.end_button);\n break;\n case \"Solution\":\n btn.setBackgroundResource(R.drawable.solution_button);\n break;\n }\n }" ]
[ "0.64506364", "0.64462596", "0.64431083", "0.64399576", "0.63006186", "0.6285685", "0.62720704", "0.6263771", "0.6248271", "0.62455016", "0.61887467", "0.6177592", "0.6158966", "0.6157447", "0.607227", "0.60540193", "0.60525733", "0.60465765", "0.6044177", "0.599944", "0.5977036", "0.5936409", "0.5852917", "0.58522886", "0.5827964", "0.58230925", "0.580803", "0.5804146", "0.57625186", "0.573884", "0.5722025", "0.57086957", "0.5705943", "0.5701848", "0.5698436", "0.5697111", "0.5686066", "0.5685274", "0.56851274", "0.56829935", "0.56806886", "0.56652176", "0.56421834", "0.5629839", "0.56246126", "0.56228894", "0.5609651", "0.5601354", "0.55957633", "0.5595691", "0.5595214", "0.55717635", "0.5565972", "0.5558367", "0.55439436", "0.55439436", "0.55439436", "0.55400485", "0.55289835", "0.5527815", "0.5511189", "0.55042386", "0.5496052", "0.54890865", "0.5486734", "0.548665", "0.54791266", "0.54599726", "0.5456423", "0.54541755", "0.5452577", "0.54518604", "0.5444046", "0.54428005", "0.5438335", "0.5419874", "0.5415142", "0.54103607", "0.5405183", "0.53982013", "0.5383146", "0.53797174", "0.5379675", "0.53775364", "0.53741974", "0.53695095", "0.5369327", "0.5366742", "0.53577507", "0.53450567", "0.53443396", "0.5341769", "0.5330535", "0.5328199", "0.53276414", "0.532461", "0.531875", "0.5311677", "0.5307372", "0.5307" ]
0.6543625
0
set progress style dialog has timeout limit
public ComDialogBuilder setProgressTimeOutLimit(boolean TimeOutLimit){ this.progressTimeOutLimit = TimeOutLimit; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n//\n// }\n// });\n\n //thiet lap k the huy - co the huy\n dialog.setCancelable(false);\n\n //show dialog\n dialog.show();\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n dialog.dismiss();\n }\n }, 20000000);\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\ttry {\n\t\t\t\tdialog.setIndeterminate(false);\n\t\t\t\tdialog.setMax(100);\n\t\t\t\tdialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n\t\t\t\tdialog.setCancelable(false);\n\t\t\t\tdialog.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void timeout(){\n // close open loading dialogs\n Fragment dialog = getSupportFragmentManager().findFragmentByTag(\"loading\");\n if (dialog != null) {\n loadingDialog.dismiss();\n }\n timeoutDialog.show(getSupportFragmentManager(), \"timeout\");\n }", "private void setTimer(){\n\n //initialize the time variable\n int time = 10;\n\n //calculate the totaltime\n totalTimeCountInMilliseconds = time * 1000;\n\n //set the maximum time of the progress bar timer\n mProgressBar1.setMax( time * 1000);\n }", "@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n dialog = new ProgressDialog(MainActivity.this);\n dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n dialog.setMax(Integer.parseInt(etNumber.getText().toString().trim()));\n dialog.show();\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n progress = new ProgressDialog(activity);\n progress.setMessage(\"please wait.. \");\n progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progress.setIndeterminate(true);\n progress.setCancelable(false);\n progress.show();\n\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tprgDlg.setMax(nTotalPage);\r\n\t\t\t\t\t\t\tprgDlg.setProgress(nPage);\r\n\t\t\t\t\t\t}", "private ProgressDialog constructDialog(int retryCount) {\n ProgressDialog pd = new ProgressDialog(ActivityPortrait.this);\r\n pd.setTitle(getText(R.string.alarm1));\r\n pd.setMessage(\"df\");\r\n pd.setIndeterminate(true);\r\n pd.setCancelable(false);\r\n// pd.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);\r\n pd.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);\r\n // show the dialog\r\n pd.show();\r\n \r\n// ProgressDialog progressDialog = ProgressDialog.show(ActivityPortrait.this, \"Loading...\", \"Please wait...\", true, false); \r\n \r\n return pd;\r\n }", "public void showCustomLoadingDialog() {\n\n //..show gif\n viewDialog.showDialog();\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n //...here i'm waiting 5 seconds before hiding the custom dialog\n //...you can do whenever you want or whenever your work is done\n viewDialog.hideDialog();\n }\n }, 1000);\n }", "private void popupTimeoutTrap() {\n\n LayoutInflater inflater = (LayoutInflater)\n getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n final View npView = inflater.inflate(R.layout.number_picker_dialog_layout, null);\n\n String[] values = new String[] {\"5\", \"10\", \"15\", \"20\", \"25\", \"30\"};\n NumberPicker np = ((NumberPicker) npView);\n np.setMinValue(0);\n np.setMaxValue(values.length - 1);\n np.setDisplayedValues(values);\n np.setWrapSelectorWheel(true);\n np.setValue(trap.getTimeout()/5 - 1);\n setNumberPickerTextColor(np, R.color.colorPrimaryDark);\n\n new AlertDialog.Builder(this)\n .setTitle(\"Timeout\")\n .setView(npView)\n .setPositiveButton(android.R.string.ok,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n\n MqttClient.getInstance().publish(Topic.TIMEOUT, trap.getId(),\n String.valueOf((((NumberPicker) npView).getValue() + 1)*5));\n }\n })\n .setNegativeButton(android.R.string.cancel,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.cancel();\n }\n })\n .show();\n }", "@Override\r\n\t\t\tpublic void onTimeoutDoInUI(String[] values) {\n\t\t\t\tMyProgressDialog.Dismiss();\r\n\t\t\t\tMyUtils.showToast2(activity, getResources().getString(R.string.timeout));\r\n\t\t\t}", "protected void createProgressDialog() {\r\t\tif (pd == null) {\r\t\t\tpd = new ProgressDialog(this);\r\t\t\tpd.setCanceledOnTouchOutside(false);\r\t\t\tpd.getWindow().setGravity(Gravity.CENTER);\r\t\t\tpd.setOnCancelListener(new DialogInterface.OnCancelListener() {\r\t\t\t\t@Override\r\t\t\t\tpublic void onCancel(DialogInterface dialogInterface) {\r\t\t\t\t\tonPdCancel();\r\t\t\t\t}\r\t\t\t});\r\t\t}\r\t}", "public void setProgressDuration(int duration){\n this.mProgressDuration = duration;\n }", "@Override\r\n\tprotected Dialog onCreateDialog(int id) {\r\n\t\tProgressDialog dialog = new ProgressDialog(this);\r\n\t\tdialog.setMessage(\"Please wait while saving...\");\r\n\t\tdialog.setIndeterminate(true);\r\n\t\tdialog.setCancelable(true);\r\n\t\treturn dialog;\r\n\t}", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "@Override\n public void run() {\n try {\n Thread.sleep(25000);\n dialog.cancel();\n Intent intent=new Intent(ProgressActivity.this,SudokuActivity.class);\n startActivity(intent);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public abstract DialogBox showProgressBox(String message);", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "@Override\r\n public void run() {\n if (D) Log.w(TAG, \"Wait Progress Timeout\");\r\n // stop timer\r\n cancelProgressBar();\r\n\r\n if (mProgressBarSupperCallback != null) {\r\n mProgressBarSupperCallback.onSupperTimeout();\r\n }\r\n }", "public void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\twait_time = 50;\r\n\t\t\t\t\t\t\t\t}", "public void setProgressDialog(Progress pb)\n {\n progressBar = pb;\n }", "void setProgress(int progress);", "void setProgress(int progress);", "public void startProgressBar(View v) {\r\n\t\tshowDialog(1);\r\n\t\tnew Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (setValues()) {\r\n\t\t\t\t\t\tdismissDialog(1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tdismissDialog(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.out.println(\"Found an exception: \" + e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}).start();\r\n\t}", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "private void \t\t\t\t\tcreateDialogProgressBar(String mess)\n\t{\n\t\tthis.progress_dialog = new ProgressDialog(this);\n\t\tthis.progress_dialog.setMessage(mess);\n\t\tthis.progress_dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\t\tthis.progress_dialog.setIndeterminate(true);\n\t\tthis.progress_dialog.setCancelable(false);\n\t\tthis.progress_dialog.show();\n\t}", "@Override\n public long progressInterval() {\n return 500;\n }", "public void setProgress(int value);", "void alertTimeout(String msg)\n { /* alertTimeout */\n this.sleepFlag= false;\t/* flag for waiting */ \n updatePopupDialog(msg, \"\", null, 0);\n }", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tprogressDialog = new ProgressDialog(context);\n\t\t\t\t\t\t\tprogressDialog.setCancelable(true);\n\t\t\t\t\t\t\tprogressDialog.setMessage(context.getString(R.string.initialising_runtime));\n\t\t\t\t\t\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n\t\t\t\t\t\t\tprogressDialog.setIndeterminate(true);\n\t\t\t\t\t\t\tprogressDialog.show();\n\t\t\t\t\t\t}", "private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n progress.setMessage(getResources().getString(R.string.loading));\n progress.setIndeterminate(false);\n progress.setCancelable(true);\n // progress.show();\n }", "@Override\n public void onInvokeTimeout(CAPDialog arg0, Long arg1) {\n\n }", "public void setNortpTimeout(int seconds);", "private Dialog buildLoadingDialog() {\n ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n dialog.setMessage(getText(R.string.dialog_loading));\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n return dialog;\n }", "private void setProgDialDownload(){\n sProgDialDownload.setMessage(getResources().getString(R.string.pdBuffer_inProgress));\n sProgDialDownload.setIndeterminate(true);\n sProgDialDownload.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n sProgDialDownload.setCancelable(false);\n }", "private void updateUI() {\n handler_.post(new Runnable() {\n public void run() {\n bar_.setProgress(time_);\n String remTimeStr = \"\" + (maxTime_ - time_);\n timeRemaining_.setText(REM_STRING.replace(\"?\", remTimeStr));\n }\n });\n }", "@Override\r\n\t\t\tpublic void onTimeoutDoInUI(String[] values) {\n\t\t\t\tif (isFirst) {\r\n\t\t\t\t\tMyProgressDialog.Dismiss();\r\n\t\t\t\t\tisFirst = false;\r\n\t\t\t\t}\r\n\t\t\t\tMyUtils.showToast2(activity, getResources().getString(R.string.timeout));\r\n\t\t\t}", "private void displayProgressDialog() {\n pDialog.setMessage(\"Logging in.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "@Override\n protected void onPreExecute() {\n\n progressDialog = new SafeProgressDialog(PlanningSettings.this);\n progressDialog.setMessage(\"Creating...\");\n progressDialog.setIndeterminate(false);\n progressDialog.setCancelable(true);\n progressDialog.show();\n super.onPreExecute();\n }", "@Override\n\tprotected void onPreExecute() {\n\t\t\n\t\t pDialog = new ProgressDialog(context);\n\t\t\ttry{\n\t\t\t\tthis.pDialog.setMessage(\"Please wait ...\");\n\t\t this.pDialog.setIndeterminateDrawable(context.getResources().getDrawable(R.drawable.red_progress));\n\t\t this.pDialog.setIndeterminate(false);\n\t\t this.pDialog.setCancelable(false);\n\t\t this.pDialog.show();\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t}", "@Override\n protected void onPreExecute() {\n pDialog = new ProgressDialog(homeActivity);\n pDialog.setMessage(\"Retrieving Details... \");\n // pDialog.setMax(16);\n pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\n pDialog.setCancelable(false);\n pDialog.show();\n\n\n }", "@Override\n protected void onPreExecute() {\n dialog= ProgressDialog.show(DetailsActivity.this, \"Please wait...\",\"Your connection speed is bad\", true);\n dialog.setCancelable(true);\n dialog.setOnCancelListener(new DialogInterface.OnCancelListener(){\n public void onCancel(DialogInterface dialog) {\n task.cancel(true);\n finish();\n }\n });\n }", "private void startTimeOut(int seconds){\n\n timeoutTimer = new CountDownTimer(seconds* 1000 + 1000, 1000) {\n\n public void onTick(long millisUntilFinished) {}\n\n public void onFinish() {\n progressDialog.cancel();\n showErrorDialog(getString(R.string.msgNoConnection));\n }\n }.start();\n }", "@Override\n protected void onPreExecute() {\n pDialog = new ProgressDialog(homeActivity);\n pDialog.setMessage(\"Changing Password... \");\n // pDialog.setMax(16);\n pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\n pDialog.setCancelable(false);\n pDialog.show();\n }", "@Override\n protected void onPreExecute() {\n pDialog = new ProgressDialog(getActivity());\n pDialog.setMessage(\"Please wait...\");\n pDialog.setCancelable(false);\n pDialog.setIndeterminate(false);\n pDialog.setMax(100);\n pDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n pDialog.show();\n// progressBar.setVisibility(View.VISIBLE);\n// progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}", "private void showProgressDialog()\n {\n if (showProgressDialog && !getStatus().equals(AsyncTask.Status.FINISHED)) {\n //show the dialog if valid activity. If the OS is lollipop or higher then set the theme.\n //dialog = ProgressDialog.show(activity, \"In progress..\", message, true);\n if (Build.VERSION.SDK_INT >= 21) {\n dialog = new ProgressDialog(activity, R.style.progressoAlertDialogStyle);\n dialog.setTitle(\"In progress..\");\n dialog.setMessage(message);\n dialog.setIndeterminate(true);\n dialog.show();\n }\n else {\n dialog = ProgressDialog.show(activity, \"In progress..\", message, true);\n }\n\n dialog.setCancelable(false);\n } \n }", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t \n\t progressDialog= new Dialog(ListKotaActivity.this);\n\t progressDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);\n\t progressDialog.setContentView(R.layout.progress);\n\t progressDialog.setCancelable(false);\n\t progressDialog.show();\t \n\t }", "public void setTimeout(double timeout){\n this.timeout = timeout;\n }", "private void setWorking(int mode) {\n calibrationButtonImageView.setClickable(false);\n calibrationButtonImageView.setEnabled(false);\n\n progressDialog = new ProgressDialog(mActivity);\n\n switch(mode){\n case DIALOG_CALIBRATING:\n progressDialog.setTitle(mActivity.getString(R.string.calibrating));\n break;\n case DIALOG_PROCESSING:\n progressDialog.setTitle(mActivity.getString(R.string.processing));\n break;\n }\n\n progressDialog.setMessage(mActivity.getString(R.string.please_wait));\n progressDialog.setCancelable(false);\n progressDialog.setIndeterminate(true);\n progressDialog.show();\n }", "private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }", "void showModalProgress();", "private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n this.dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n this.dialog.setCancelable(false);\n this.dialog.show();\n }", "@Override\n\t\tprotected void onProgressUpdate(String... values) {\n\t\t\tlong total = Long.parseLong(values[0]);\n\t\t\tdialog.setProgress((int) ((total * 100) / lengthOfFile));\n\t\t\tdialog.setMessage((total / (1024 * 1014)) + \"MB/\"\n\t\t\t\t\t+ (lengthOfFile / (1024 * 1024)) + \"MB\");\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "private void displayProgressDialog() {\n pDialog.setMessage(\"Logging In.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }", "private void timmer() {\n showTimmerOptions();\n\n\n\n final int val = 500;\n taskProgressInner = (ProgressBar) findViewById(com.ryansplayllc.ryansplay.R.id.TaskProgress_Inner);\n new Thread(new Runnable() {\n public void run() {\n int tmp = (val / 100);\n\n for (int incr = 0; incr <= val; incr++) {\n\n try {\n taskProgressInner.setProgress(incr);\n if ((incr % 100) == 0) {\n tmp--;\n }\n Thread.sleep(10);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }).start();\n\n // intilaizating count down timer object\n progressDialog.dismiss();\n countDownTimer = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n countDownTextView.setText(Long\n .toString(millisUntilFinished / 1000));\n\n\n }\n\n public void onFinish() {\n\n countDownTextView.setText(\"0\");\n\n\n isSelectable = false;\n\n\n // changing text view if player is not umpire\n if (!Utility.isUmpire) {\n\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n String message = \"Waiting for the Umpire result.\";\n// showWaitingPopUp(message);\n showBallinPlayView();\n final ImageView gamescreenbackground = (ImageView) findViewById(com.ryansplayllc.ryansplay.R.id.umpirescreenfield);\n gamescreenbackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field);\n\n\n }\n });\n }\n // calling method to submit result\n submitPlayerPrediction();\n }\n };\n isSelectable = true;\n countDownTimer.start();\n\n }", "void setProgress(float progress);", "T setStartTimeout(Integer timeout);", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n iniProgressDialog(text.length());\n }", "private void startRecognitionTimeout() {\n if (mRecognitionTimeoutAnimation != null) mRecognitionTimeoutAnimation.cancel();\n\n mRecognitionTimeoutAnimation = ValueAnimator.ofFloat(0, 1);\n mRecognitionTimeoutAnimation.setInterpolator(new LinearInterpolator());\n mRecognitionTimeoutAnimation.setDuration(10000);\n mRecognitionTimeoutAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\n float progress = (float) valueAnimator.getAnimatedValue();\n int barProgress = (int) (100 * progress);\n mTimeClockBar.setProgress(barProgress);\n }\n });\n\n // Add an onTimeout listener\n mRecognitionTimeoutAnimation.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n displayResults(null, null);\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n // Make the animation cancelable without calling the endListener\n animation.removeAllListeners();\n }\n });\n\n mRecognitionTimeoutAnimation.start();\n }", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "public void progressBarTimer() {\r\n progressBar.setProgress(0);\r\n TimerTask task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n if(!pause) progressBar.incrementProgressBy(1);\r\n\r\n //Game over\r\n if (progressBar.getProgress() >= 100) gameOver();\r\n }\r\n };\r\n\r\n //schedule starts after 0.01 seconds and repeats every second.\r\n timer.schedule(task, 10, 1000);\r\n }", "private void showProgress() {\n if (dialogProgress == null) {\n dialogProgress = new Dialog(this);\n dialogProgress.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialogProgress.setContentView(R.layout.custom_progress);\n dialogProgress.setCancelable(false);\n }\n\n dialogProgress.getWindow().getDecorView().getRootView().setBackgroundColor(getResources().getColor(android.R.color.transparent));\n dialogProgress.show();\n }", "public void setTimeout(Integer timeout) {\n\t\tthis.timeout = timeout;\n\t}", "@Override\n\t\t \tprotected void onPreExecute() {\n\t\t try {\n\t\t\t \tpd=new ProgressDialog(Styles_Dialog.this);\n\t\t\t \tpd.setMessage(\"Loading\");\n\t\t\t \tpd.show();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \t\n\t\t \t}", "private JProgressBar setProgressBar(JProgressBar PB)\r\n\t{\r\n\t\tPB = new JProgressBar(0, 100);\r\n\t\tPB.setMinimum(0);\r\n\t\tPB.setMaximum(100);\r\n\t\tPB.setStringPainted(true);\r\n\t\treturn PB;\r\n\t}", "public void setTimeOut(int value) {\n this.timeOut = value;\n }", "@Override\n public void run() {\n waitDialog.dismiss();\n\n //show an error dialog\n\n\n }", "public void showSavingHint(int count) {\n if (count != 0) {\n if (this.mProgressDialog == null) {\n this.mProgressDialog = new ProgressDialog(this.mActivity);\n this.mProgressDialog.setOnKeyListener(this.mProgressDialogKeyListener);\n this.mProgressDialog.setProgressStyle(0);\n this.mProgressDialog.setCancelable(false);\n }\n this.mProgressDialog.setMessage(String.format(this.mActivity.getAndroidContext().getResources().getString(R.string.burst_saving_hint), new Object[]{Integer.valueOf(count)}));\n this.mProgressDialog.show();\n }\n }", "private void showProgressDialog(){\n progressDialog=ProgressDialog.show(context,\"\",\"Loading...Please wait...\");\n\n\n }", "private void setUiDuringBackgroundTask(String progress) {\n progressDialog.setMessage(progress);\n\n setInfo(progress);\n }", "public void setTimeout(int timeout) {\r\n this.timeout = timeout;\r\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n runOnUiThread(()->{\n pDialog = new ProgressDialog(ImageClassificationActivity.this);\n pDialog.setMessage(\"Initializing\");\n pDialog.setIndeterminate(false);\n pDialog.setMax(100);\n pDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n pDialog.setCancelable(true);\n pDialog.setOnCancelListener(this);\n pDialog.show();\n });\n }", "@Override\n public void onProgressUpdate(Integer... progress)\n {\n _dialog.setProgress(progress[0]);\n }", "private void setProgressPercent(Integer integer) {\n\t\t\n\t}", "private void hideProgressDialogWithTitle() {\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.dismiss();\n }", "public void setTimeout( int timeout ) {\n this.timeout = timeout;\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }", "@BindingAdapter(value = {\"app:progressScaled\", \"android:max\"}, requireAll = true)\n public static void setProgress(ProgressBar progressBar,int like,int max){\n if((like * max / 5)>max){\n progressBar.setProgress(max);\n }else{\n progressBar.setProgress(like * max / 5);\n }\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n showProgressDialog(R.string.please_wait);\n //showDialog(progress_bar_type);\n }", "@Override\n protected void onPreExecute() {\n progress = new ProgressDialog(hostContext);\n progress.setMessage(\"Wait while books are being downloaded...\");\n progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progress.show();\n }", "@Override\n public void showProgress() {\n\n }", "private void initialView(){\n // 进度条还有二级进度条的那种形式,这里就不演示了\n final ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);// 设置水平进度条\n dialog.setCancelable(true);// 设置是否可以通过点击Back键取消\n dialog.setCanceledOnTouchOutside(false);// 设置在点击Dialog外是否取消Dialog进度条\n\n dialog.setTitle(\"正在下载\");\n dialog.setMax(100);\n dialog.setMessage(\"请等待\");\n dialog.show();\n\n\n /*ThreadA t1 = new ThreadA(\"t1\");\n\n synchronized (t1){\n t1.start();\n while(!isExists()){\n try{\n t1.wait();\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }*/\n\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n // TODO Auto-generated method stub\n try {\n Thread.sleep(25000);\n dialog.cancel();\n Intent intent=new Intent(ProgressActivity.this,SudokuActivity.class);\n startActivity(intent);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }).start();\n }", "public void setTimeout(int timeout) {\n this.timeout = timeout;\n }", "protected int maxTimeout() { return 15*1000*1000; }", "public void initProgressLoader() {\n progressDialog = new ProgressDialog(this);\n progressDialog.setIndeterminate(true);\n progressDialog.setCancelable(false);\n }", "public void setTimeout(int timeout) {\r\n\t\tthis.TIMEOUT = timeout;\r\n\t}", "private void setupProgressBar() {\n\t\tprogress_bar = new JProgressBar(0,words_to_spell.size());\n\t\tprogress_bar.setBounds(32, 170, 1284, 34);\n\t\tprogress_bar.setBorderPainted(false);\n\t\tprogress_bar.setBackground(Color.WHITE);\n\t\tprogress_bar.setStringPainted(true);\n\t\tprogress_bar.setString(\"\");\n\t\tadd(progress_bar);\n\t}", "public S<T> progress(Boolean active){\n\t\t\n\t\tif(pDialog==null){\n\t\t\t\n\t\t\t pDialog = new ProgressDialog(activity);\n\t\t pDialog.setMessage(\"Please wait...\");\n\t\t pDialog.setCancelable(false);\n\t\t}\n\t\t\n\t\tif(active){\n\t\t\tif (!pDialog.isShowing())\n\t pDialog.show();\n\t\t}else{\n\t\t\tif (pDialog.isShowing())\n\t pDialog.dismiss();;\n\t\t}\n\t\t\n\t\treturn this;\n\t}", "@Override\n\t\tprotected void onCancelled(String result) {\n\t\t\tsuper.onCancelled(result);\n\t\t\tif ((pDialog != null) && pDialog.isShowing()) { \n\t\t\t\tpDialog.dismiss();\n\t\t\t}\n\t\t\tCrouton.makeText(activity, \"Network connection is slow, Try again\", Style.ALERT).show();\n\t\t}", "@Override\n\t\tprotected void onCancelled(String result) {\n\t\t\tsuper.onCancelled(result);\n\t\t\tif ((pDialog != null) && pDialog.isShowing()) { \n\t\t\t\tpDialog.dismiss();\n\t\t\t}\n\t\t\tCrouton.makeText(activity, \"Network connection is slow, Try again\", Style.ALERT).show();\n\t\t}", "public BProgressDialog(Context context) {\n super(context, R.style.ProgressDialogStyle);\n this.context = context;\n }", "@Override\n public void onError(List<String> errors) {\n DialogUtils.showLong(context, errors.get(0));\n progressBar.setVisibility(View.INVISIBLE);\n }", "@Override\n public void onVideoSizeChanged(MediaPlayer mp, int arg1,\n int arg2) {\n progressBar.setVisibility(View.GONE);\n mp.start();\n }" ]
[ "0.6826092", "0.6426566", "0.63540685", "0.6272871", "0.6228815", "0.61570036", "0.61545765", "0.613054", "0.6116076", "0.609378", "0.60851634", "0.60451114", "0.6027038", "0.5947963", "0.59471816", "0.59428126", "0.58631915", "0.5856935", "0.5848357", "0.5832779", "0.58054286", "0.58054286", "0.5805212", "0.5802664", "0.5791312", "0.57771826", "0.57715875", "0.57715875", "0.5755802", "0.5754451", "0.57502186", "0.57318676", "0.5728654", "0.57231104", "0.57135284", "0.57127845", "0.5709955", "0.56984854", "0.5696731", "0.56888944", "0.5679214", "0.5671953", "0.565835", "0.565742", "0.56497055", "0.56466573", "0.56458217", "0.5635633", "0.5634204", "0.56331325", "0.56289244", "0.5613033", "0.56041497", "0.5600695", "0.5599422", "0.5591422", "0.55624163", "0.55610645", "0.55604666", "0.55558485", "0.5546379", "0.5542182", "0.5541677", "0.5539068", "0.5538867", "0.5536863", "0.55328816", "0.55258167", "0.552453", "0.55072683", "0.5502647", "0.54971", "0.549534", "0.54845077", "0.54797566", "0.54766184", "0.547356", "0.54689556", "0.54580957", "0.54493934", "0.5443911", "0.54383683", "0.5438337", "0.5429096", "0.5427445", "0.54242826", "0.5424164", "0.5415474", "0.54051566", "0.5398418", "0.5397485", "0.53956646", "0.538123", "0.53775185", "0.5376431", "0.5363407", "0.5363407", "0.5361344", "0.53567153", "0.53555167" ]
0.7366894
0
Construct a new ActionModeCallback
public TagSelectedActionModeCallback(@NonNull TagEditorFragment caller, @NonNull LinearLayout rows) { super(caller, rows); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Action createAction();", "Action createAction();", "Action createAction();", "static interface ActionRequestObserverFactory {\n MultiViewElementCallback createElementCallback(MultiViewDescription desc);\n }", "public ActionState createActionState();", "CaseAction createCaseAction();", "public Action(GameManager gameManager){\n this.gameManager = gameManager;\n }", "private void initializeActionModeHelper() {\n mActionModeHelper = new ActionModeHelper(mAdapter, R.menu.menu_action_header, this) {\n // Override to customize the title\n @Override\n public void updateContextTitle(int count) {\n // You can use the internal mActionMode instance\n if (mActionMode != null) {\n int position = mAdapter.getSelectedPositions().get(0);\n AbstractFlexibleItem item = mAdapter.getItem(position);\n mActionMode.setTitle(fontifyString(getActivity(), getString(R.string.action_edit_category, item)));\n }\n }\n }.withDefaultMode(SelectableAdapter.Mode.SINGLE);\n mActionModeHelper.withDefaultMode(SelectableAdapter.Mode.SINGLE);\n mAdapter.setMode(SelectableAdapter.Mode.SINGLE);\n }", "TurnAction createTurnAction();", "public void createAction() {\n }", "@Override\n public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {\n MenuInflater inflater = actionMode.getMenuInflater();\n inflater.inflate(R.menu.contextual_action_mode, menu);\n return true;\n }", "@Override\n\t\t\tpublic void onDestroyActionMode(ActionMode arg0) {\n\t\t\t\t\n\t\t\t}", "ActionBlock createActionBlock();", "@Override\n\tpublic void createCB(CB cb) {\n\t\t\n\t}", "@Override\n protected Action[] createActions() {\n return new Action[0];\n }", "public void setOnOpenChatActionCallback(ChatActionCallback callback){\n this.callback=callback;\n }", "@Override\n public void onSupportActionModeStarted(ActionMode mode) {\n //let's leave this empty, for now\n }", "@Override\r\n\t\t\t\tpublic void onDestroyActionMode(ActionMode mode) {\n\t\t\t\t}", "public Action newAction(Object data) throws Exception;", "@Override\n public void onSupportActionModeFinished(ActionMode mode) {\n }", "public ActionManager() {\n\t\tsuper();\n\t}", "private PSAAClientActionFactory()\n {\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }", "ActionType createActionType();", "public ActionManager(Editor editor) {\n\t\tthis.editor = editor;\n\t}", "protected void init_actions()\r\n {\r\n action_obj = new CUP$MJParser$actions(this);\r\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$PCLParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$FractalParser$actions(this);\n }", "public void activate(){\n callback.action();\n }", "IFMLAction createIFMLAction();", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "public Method getActionFactory() {\n return this.actionFactory;\n }", "public static AnnotatedActionFactory getActionFactory() {\n/* 84 */ return actionFactory;\n/* */ }", "@Override\n\t\t\tpublic void onDestroyActionMode(ActionMode mode) {\n\t\t\t}", "ActionDefinition createActionDefinition();", "@Override\n public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {\n actionMode.getMenuInflater().inflate(R.menu.action_menu, menu);\n return true;\n }", "ActionEvent createActionEvent();", "public interface Actionable {\n /**\n * Performs an action on something\n * @param actionType The type of action to perform\n * @param id The identifier for the item to perform the action on\n * (could be a position, index, ID, etc.)\n * @return {@code true} if the associated {@code ActionMode} should be ended, {@code false} if not\n */\n public boolean performAction(int actionType, int id);\n}", "public CallbackHandler() {\r\n // TODO Auto-generated constructor stub\r\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "@Override\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n\n // Inflate a menu resource providing context menu items\n //MenuInflater inflater = mode.getMenuInflater();\n //getMenuInflater().inflate(R.menu.geo, menu);\n return false;\n }", "public interface ActionCallBack {\n void acceptOrder(int position);\n void cancelOrder(int position);\n void readyToDeliver(int position);\n void showDetails(int position);\n\n\n\n}", "protected void init_actions()\n {\n action_obj = new CUP$CompParser$actions(this);\n }", "@Override\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n MenuInflater inflater = mode.getMenuInflater();\n inflater.inflate(R.menu.context_menu, menu);\n return true;\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "@Override\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n MenuInflater inflater = mode.getMenuInflater();\n inflater.inflate(R.menu.context_menu, menu);\n return true;\n }", "public static final PSAAClientActionFactory getInstance()\n {\n if(ms_instance == null)\n ms_instance = new PSAAClientActionFactory();\n return ms_instance;\n }", "public Target setActionFactory(Method actionFactory) {\n this.actionFactory = actionFactory;\n return this;\n }", "protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$include$actions(this);\n }", "protected ActionFactory getActionFactory() {\n\t\treturn this.actionFactory;\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$Asintactico$actions(this);\n }", "void actionChanged( final ActionAdapter action );", "protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }", "protected ConvActionSelector() {\n super();\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$LuaGrammarCup$actions(this);\r\n }", "public int onAction(int r11, int r12, int r13) {\n /*\n r10 = this;\n r9 = 9;\n r8 = 4;\n r7 = 3;\n r6 = 1;\n r5 = 0;\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener onAction Start command: \";\n r3 = r3.append(r4);\n r3 = r3.append(r11);\n r4 = \" cmdAttr: \";\n r3 = r3.append(r4);\n r3 = r3.append(r12);\n r4 = \" priority: \";\n r3 = r3.append(r4);\n r3 = r3.append(r13);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r1 = 1;\n switch(r12) {\n case 1: goto L_0x005d;\n case 2: goto L_0x005f;\n case 3: goto L_0x0061;\n default: goto L_0x0036;\n };\n L_0x0036:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener onAction cmdAttr invalid :!!!\";\n r3 = r3.append(r4);\n r3 = r3.append(r12);\n r3 = r3.toString();\n android.util.Log.e(r2, r3);\n L_0x004e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r0 = r2.mDestType;\n switch(r11) {\n case 3: goto L_0x01e5;\n case 4: goto L_0x0063;\n case 5: goto L_0x0063;\n case 6: goto L_0x01e5;\n default: goto L_0x0055;\n };\n L_0x0055:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener Unknown CMD!\";\n android.util.Log.i(r2, r3);\n L_0x005c:\n return r5;\n L_0x005d:\n r1 = 1;\n goto L_0x004e;\n L_0x005f:\n r1 = 2;\n goto L_0x004e;\n L_0x0061:\n r1 = 3;\n goto L_0x004e;\n L_0x0063:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener: CBM_STOP!\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mSrcType;\n r3 = r3.append(r4);\n r4 = \", mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r2 = r1 ^ -1;\n r0 = r0 & r2;\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mDestType;\n if (r2 == 0) goto L_0x00a8;\n L_0x0096:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mDestType;\n if (r0 != r2) goto L_0x00a8;\n L_0x009c:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener: CBM_STOP, do nothing mDestType == destDir!\";\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r6;\n goto L_0x005c;\n L_0x00a8:\n if (r0 != 0) goto L_0x00f7;\n L_0x00aa:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r6) goto L_0x00cd;\n L_0x00b0:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener CBM_STOP Already Stoped mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n goto L_0x005c;\n L_0x00cd:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCurrentStatus;\n if (r2 != r6) goto L_0x00e0;\n L_0x00d3:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener CBM_STOP Already been stoped because there is other activity in front\";\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r6;\n goto L_0x005c;\n L_0x00e0:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2._stop();\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r6;\n L_0x00e9:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.notifymsg(r8, r5, r1);\n L_0x00ee:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener onAction End!!!\";\n android.util.Log.d(r2, r3);\n goto L_0x005c;\n L_0x00f7:\n if (r6 != r1) goto L_0x016e;\n L_0x00f9:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener CBM_STOP All mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r7) goto L_0x0139;\n L_0x011b:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener Already STOP_FRONT mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n goto L_0x005c;\n L_0x0139:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n if (r2 != r9) goto L_0x014e;\n L_0x0143:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 2;\n r2.setDestination(r3);\n L_0x0149:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r7;\n goto L_0x00e9;\n L_0x014e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n r3 = 10;\n if (r2 != r3) goto L_0x0167;\n L_0x015a:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 2;\n r2.setDestination(r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 0;\n r2.setDisplay(r3);\n goto L_0x0149;\n L_0x0167:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 0;\n r2.setDisplay(r3);\n goto L_0x0149;\n L_0x016e:\n r2 = 2;\n if (r2 != r1) goto L_0x00e9;\n L_0x0171:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener CBM_STOP All mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r8) goto L_0x01b1;\n L_0x0193:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener Already STOP_REAR mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n goto L_0x005c;\n L_0x01b1:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n if (r2 != r9) goto L_0x01c6;\n L_0x01bb:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.setDestination(r6);\n L_0x01c0:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r8;\n goto L_0x00e9;\n L_0x01c6:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n r3 = 10;\n if (r2 != r3) goto L_0x01de;\n L_0x01d2:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.setDestination(r6);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 0;\n r2.setRearDisplay(r3);\n goto L_0x01c0;\n L_0x01de:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 0;\n r2.setRearDisplay(r3);\n goto L_0x01c0;\n L_0x01e5:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener CBM_START mSrcType is !\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mSrcType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != 0) goto L_0x0225;\n L_0x0207:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener Already Started mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n goto L_0x005c;\n L_0x0225:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCurrentStatus;\n if (r2 != r6) goto L_0x0238;\n L_0x022b:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener CBM_START been stoped by other activity in front just return resource\";\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r5;\n goto L_0x005c;\n L_0x0238:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r6) goto L_0x024e;\n L_0x023e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2._play();\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r5;\n L_0x0247:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.notifymsg(r8, r6, r1);\n goto L_0x00ee;\n L_0x024e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r7) goto L_0x0274;\n L_0x0254:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n if (r2 == r9) goto L_0x026a;\n L_0x025e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n r3 = 10;\n if (r2 != r3) goto L_0x026f;\n L_0x026a:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.setDestination(r7);\n L_0x026f:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r5;\n goto L_0x0247;\n L_0x0274:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r8) goto L_0x0247;\n L_0x027a:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n if (r2 == r9) goto L_0x0290;\n L_0x0284:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n r3 = 10;\n if (r2 != r3) goto L_0x0295;\n L_0x0290:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.setDestination(r7);\n L_0x0295:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r5;\n goto L_0x0247;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.autochips.inputsource.InputSourceClient.1.onAction(int, int, int):int\");\n }", "protected void init_actions()\n {\n action_obj = new CUP$ParserForms$actions(this);\n }", "BackwardAction createBackwardAction();", "public interface ButtonClickCallback {\n void onOk();\n\n void onCancel();\n\n ButtonClickCallback NULL = new ButtonClickCallback() {\n @Override\n public void onOk() {\n\n }\n\n @Override\n public void onCancel() {\n\n }\n };\n}", "public Action() {\n //ensureInterpolator();\n }", "public abstract void onAction();", "public interface IActionCallBack {\n\n /**\n *\n * @param action action\n * @return will be execute this action\n */\n boolean onPreExecute(IAction action);\n\n /**\n *\n * @param action\n * @param result\n */\n void onExecuteDone(IAction action, ActionResult result);\n\n void onExecuteCancel(IAction action);\n\n}", "String getActionName(Closure action);", "public ComposedCallbackBuilder() {}", "public Callback mo14031a(Callback callback) {\n return new C7591a(callback);\n }", "public UpcomingContestsManagerAction() {\r\n }", "AllowAction(ModeUsage modeUsage) {\n super(modeUsage);\n }", "StopAction createStopAction();", "CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }", "@Override\n public void onDestroyActionMode(ActionMode mode) {\n mActionMode = null;\n }", "@Override\n\t public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n\t // Inflate a menu resource providing context menu items\n\t MenuInflater inflater = mode.getMenuInflater();\n\t inflater.inflate(R.menu.context_tables, menu);\n\t return true;\n\t }", "@Override\r\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\r\n // Inflate a menu resource providing context menu items\r\n MenuInflater inflater = mode.getMenuInflater();\r\n inflater.inflate(R.menu.context_menu, menu);\r\n return true;\r\n }", "TurnDegAction createTurnDegAction();", "public Callback mo16235a() {\n return (Callback) this.f8227a.get();\n }", "public interface Callback{\n //Required public empty constructor\n public void buttonClicked();\n }", "@Override\n public boolean isInCustomActionMode() {\n return mActionMode != null;\n }", "public ActionItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}", "private Action(){\r\n\t\tthis(-1);\r\n\t}" ]
[ "0.6285135", "0.6285135", "0.6285135", "0.6118889", "0.5903171", "0.58311963", "0.5830903", "0.5778315", "0.5625966", "0.5616043", "0.55976754", "0.5595659", "0.554261", "0.55197746", "0.5504972", "0.5477317", "0.5437551", "0.54175806", "0.54061127", "0.53994983", "0.53899896", "0.5388654", "0.5384358", "0.5369213", "0.53641546", "0.5363878", "0.534609", "0.53415126", "0.53414226", "0.53414226", "0.532564", "0.53222144", "0.5310551", "0.5306083", "0.5306083", "0.5306083", "0.5306083", "0.5306083", "0.52927727", "0.5285309", "0.52821434", "0.5267462", "0.52393603", "0.5226585", "0.5223997", "0.52150804", "0.52077264", "0.5203488", "0.5202061", "0.51947796", "0.51940256", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.5161704", "0.51600313", "0.51599926", "0.5158629", "0.5152699", "0.5152699", "0.51324534", "0.5127242", "0.5124996", "0.5119009", "0.5118023", "0.5110574", "0.51076275", "0.51063395", "0.50954527", "0.50940764", "0.5094069", "0.5094004", "0.50729114", "0.50710714", "0.5063586", "0.50469166", "0.50247115", "0.5020633", "0.50183", "0.50017583", "0.50013804", "0.50000596", "0.49898988", "0.49890345", "0.49865556", "0.4980458", "0.49740058", "0.49739385", "0.49647662", "0.4959832" ]
0.0
-1
Copy tags to the internal and system clipboard
private void copyTags(@NonNull List<TagEditRow> selectedRows, boolean deleteEachRow) { if (!selectedRows.isEmpty()) { TagEditorFragment fragment = (TagEditorFragment) caller; Map<String, String> copiedTags = new LinkedHashMap<>(); for (TagEditRow row : selectedRows) { addKeyValue(copiedTags, row); if (deleteEachRow) { row.delete(); } } App.getTagClipboard(fragment.getActivity()).copy(copiedTags); ClipboardUtils.copyTags(fragment.getActivity(), copiedTags); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void copy() {\n clipboard.setContents(getSelectionAsList(false));\n }", "public void copySelection() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n StringBuffer sb = new StringBuffer();\n Iterator<String> it = (myrc.filterEntities(getRTParent().getSelectedEntities())).iterator();\n while (it.hasNext()) sb.append(it.next() + \"\\n\");\n StringSelection selection = new StringSelection(sb.toString());\n clipboard.setContents(selection, null);\n }", "protected void genericClipboard(SetOp op) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n Transferable trans = clipboard.getContents(this);\n if (trans != null && trans.isDataFlavorSupported(DataFlavor.stringFlavor)) {\n try {\n\t // Extract the entities\n String clip = (String) trans.getTransferData(DataFlavor.stringFlavor);\n List<SubText> al = EntityExtractor.list(clip);\n\n // Also, extract just the single lines\n\t if (strictMatches() == false) {\n StringTokenizer st = new StringTokenizer(clip, \"\\n\");\n\t while (st.hasMoreTokens()) {\n\t String str = st.nextToken();\n\t // Remove before and after whitespaces...\n\t while (str.length() > 0 && (str.charAt(0) == ' ' || str.charAt(0) == '\\t')) \n\t str = str.substring(1,str.length());\n\t while (str.length() > 0 && (str.charAt(str.length()-1) == ' ' || str.charAt(str.length()-1) == '\\t'))\n\t str = str.substring(0,str.length()-1);\n al.add(new Entity(str,str,null,0,0));\n\t }\n }\n\n\t // Get the new items\n\t Set<String> new_set = new HashSet<String>();\n for (int i=0;i<al.size();i++) { \n\t String clip_str = al.get(i).toString();\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n\t String entity = it.next();\n\t // Check for a concat\n\t if (entity.indexOf(BundlesDT.DELIM) >= 0) entity = entity.substring(entity.lastIndexOf(BundlesDT.DELIM)+1, entity.length());\n\t if (Utils.isIPv4CIDR(clip_str) && Utils.isIPv4(entity) && Utils.ipMatchesCIDR(entity, clip_str))\n\t new_set.add(entity);\n\t if (entity.indexOf(clip_str) >= 0) \n\t new_set.add(entity);\n }\n\t }\n\n\t // Get the old items\n\t Set<String> old_set = new HashSet<String>(myrc.filterEntities(getRTParent().getSelectedEntities()));\n\n\t // Do the set operation\n\t switch (op) {\n\t case SELECT: getRTParent().setSelectedEntities(new_set);\n\t break;\n\t case ADD: new_set.addAll(old_set);\n\t getRTParent().setSelectedEntities(new_set);\n\t\t\t break;\n\t case REMOVE: old_set.removeAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t case INTERSECT: old_set.retainAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t }\n } catch (UnsupportedFlavorException ufe) {\n System.err.println(\"genericClipboard failed... unsupported data flavor : \" + ufe);\n ufe.printStackTrace(System.err);\n } catch (IOException ioe) {\n System.err.println(\"genericClipboard failed... io exception : \" + ioe);\n ioe.printStackTrace(System.err);\n }\n }\n }", "public void addFromClipboard() { genericClipboard(SetOp.ADD); }", "public void copySelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.copy();\r\n \t}", "public void pasteSystemSelection() {\n Clipboard systemSelection = getToolkit().getSystemSelection();\n if (systemSelection != null) {\n pasteClipboard(systemSelection);\n }\n }", "@Override\n\tpublic void editorCopy()\n\t{\n\t\tclipboard = stringBuffer.substring(selectionStart,selectionEnd);\n\n\t\tSystem.out.println(\"DEBUG: performing Copy\" + clipboard) ;\n\t}", "public void copy(ICopyContext context) {\n\tPictogramElement[] pes = context.getPictogramElements();\n\tObject[] bos = new Object[pes.length];\n\tfor (int i = 0; i < pes.length; i++) {\n\t PictogramElement pe = pes[i];\n\t bos[i] = getBusinessObjectForPictogramElement(pe);\n\t}\n\t// put all business objects to the clipboard\n\tputToClipboard(bos);\n }", "public void intersectFromClipboard() { genericClipboard(SetOp.INTERSECT); }", "public void doCopy() {\n if (renderPieces.size() == 0) {\n System.out.println(\"Nothing is selected for copy operation.\");\n return;\n }\n StringBuffer sb = new StringBuffer();\n\n textBuffer.renderInit();\n Text text;\n if (!reversed) {\n while ((text = textBuffer.getTextToRender()) != null) {\n sb.append(text.getText());\n }\n } else {\n while ((text = textBuffer.getPreToRender()) != null) {\n sb.append(text);\n }\n String reversedText = sb.toString();\n sb = new StringBuffer();\n for (int i = reversedText.length()-1; i >= 0; i -= 1) {\n sb.append(reversedText.charAt(i));\n }\n }\n Clipboard clipboard = Clipboard.getSystemClipboard();\n ClipboardContent content = new ClipboardContent();\n content.putString(sb.toString());\n clipboard.setContent(content);\n System.out.println(\"Copy succeed.\");\n }", "protected void copyLinkToClipboard() {\r\n\t\tapp.copyTextToSystemClipboard(getURL());\r\n\t\tlink.selectAll();\r\n\t}", "public void setClipboard(Collection<Object> clipboard)\n {\n this.clipboard = clipboard;\n }", "public void onTextCopy()\n\t{\n\t}", "public void paste() {\n pasteClipboard(getToolkit().getSystemClipboard());\n }", "public void copyText(){\n try{\n if(mCursor.isSelected()){\n mClipboardManager.setTextToClipboard(getText().subContent(mCursor.getLeftLine(),\n mCursor.getLeftColumn(),\n mCursor.getRightLine(),\n mCursor.getRightColumn()).toString());\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void cut() {\n clipboard.setContents(getSelectionAsList(true));\n }", "public void copy() {\n\t\tcmd = new CopyCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void performCopy() {\n \t\ttext.copy();\n \t}", "public void removeFromClipboard() { genericClipboard(SetOp.REMOVE); }", "public void copyText() {\n ((ClipboardManager) getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(\"textFromCoolapk\", this.mBinding.text.getText()));\n Toast.show(getActivity(), \"结果已复制\");\n }", "public void onPressCopyDescription(View view) {\r\n TextView textView = findViewById(R.id.textDescription);\r\n String text = textView.getText().toString();\r\n\r\n if (text.equals(\"\"))\r\n return;\r\n\r\n ClipboardManager clipManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\r\n ClipData data = ClipData.newPlainText(\"text\", text);\r\n clipManager.setPrimaryClip(data);\r\n }", "public void copyNode ()\n {\n Clipboard clipboard = _tree.getToolkit().getSystemClipboard();\n clipboard.setContents(_tree.createClipboardTransferable(), ConfigEditor.this);\n _clipclass = group.getConfigClass();\n _paste.setEnabled(!_readOnly);\n }", "private void copyToClipboard(String text)\n {\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n cb.setContents(new StringSelection(text), null);\n }", "private void directToClipboard(String text) {\n\t\tthis.systemClipboard.setContents(new StringSelection(text), null);\n\t}", "public void selectFromClipboard() { genericClipboard(SetOp.SELECT); }", "void performPaste(){\n\r\n List pasteList = (TShapeClipboard.fGlobalClipboard).getShapeList();\r\n\r\n\r\n\r\n\r\n if ( (TShapeClipboard.fGlobalClipboard).clipboardValidForPaste(fShapes)) {\r\n // we have to check this because the User can bypass the menu by using the keyboard\r\n\r\n TUndoablePaste newEdit = new TUndoablePaste();\r\n\r\n newEdit.stateChanged(new ChangeEvent(this));\r\n\r\n Point whereToPaste;\r\n Rectangle unionRect=unionOfSelectees();\r\n\r\n if (unionRect!=null)\r\n whereToPaste=unionRect.getLocation();\r\n else\r\n whereToPaste=fListener.fAnchorPt; //last click\r\n\r\n if (deleteSelectedShapes(fShapes))\r\n repaint(); // it's going to repaint anyway\r\n\r\n if (pasteList.size() > 0) {\r\n Iterator iter = pasteList.iterator();\r\n TShape newShape;\r\n\r\n (TShapeClipboard.fGlobalClipboard).prepareForPaste(); // sets the top left to 00\r\n\r\n while (iter.hasNext()){\r\n newShape= ((TShape) iter.next()).copy();\r\n\r\n Rectangle boundsRect=newShape.getBoundsRect();\r\n\r\n boundsRect.translate(whereToPaste.x,whereToPaste.y);\r\n\r\n newShape.setBoundsRect(boundsRect);\r\n\r\n addShape(newShape); //more to it THAN THIS eg resolve interpr board reference\r\n }\r\n }\r\n\r\n\r\n\r\n\r\n /* newEdit.doEdit(); */\r\n\r\n /* (TShapeClipboard.fGlobalClipboard).setShapeList(copySelectedShapes());\r\n if (deleteSelectedShapes(fShapes))\r\n repaint(); */\r\n }\r\n\r\n }", "@Override\r\n\tpublic void paste() {\n\t\t\r\n\t}", "private static void copyToClipBoard(){\n String password= passwordGenerator.generatePassword();\r\n\r\n /* For copying in windows\r\n * This will copy the password in clipboard in windows\r\n */\r\n//\t\tInitialising the toolkit and clipboard\r\n Toolkit toolkit = Toolkit.getDefaultToolkit();\r\n Clipboard clipboard = toolkit.getSystemClipboard();\r\n\r\n//\t\tclipboard.setContents takes to argument 1st is the string which has to store and 2nd is the name of clipboard owner\r\n StringSelection selection=new StringSelection(password);\r\n clipboard.setContents(selection,null);\r\n\r\n /* For copying in linux distribution\r\n * This will copy the password in xclip in linux\r\n */\r\n Runtime runtime=Runtime.getRuntime();\r\n Process p=null;\r\n try {\r\n p=runtime.exec(new String[]{\"sh\",\"-c\",\"echo\"+password+\" | xclip -selection clipboard\"});\r\n }\r\n catch (Exception e){\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Password copied into clipboard\");\r\n }", "public RibbonMenuContainerClipboard() {\r\n super(\"Clipboard tools\");\r\n\r\n }", "public void pasteText(){\n try{\n CharSequence text = mClipboardManager.getTextFromClipboard();\n if(text != null && mConnection != null){\n mConnection.commitText(text, 0);\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View arg0) {\n CopyText3 = copyTxt3.getText().toString();\n if (CopyText3.length() != 0) {\n if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) {\n android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n clipboard.setText(CopyText3);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n } else {\n android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n android.content.ClipData clip = android.content.ClipData.newPlainText(\"Clip\", CopyText3);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n clipboard.setPrimaryClip(clip);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Nothing to Copy\", Toast.LENGTH_SHORT).show();\n }\n }", "@FXML\n private void copyGoto() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(GOTO_MESSAGE);\n clipboard.setContent(url);\n }", "@FXML\n private void copyEdit() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(EDIT_MESSAGE);\n clipboard.setContent(url);\n }", "@FXML\n private void copyHelp() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(HELP);\n clipboard.setContent(url);\n }", "public void copyToClipboard(View view) {\n //Get the text from the text view\n TextView resultTextView = findViewById(R.id.result_text_view);\n String resultText = resultTextView.getText().toString();\n\n //Copy the Text to the clipboard\n ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\n ClipData dataClip = ClipData.newPlainText(CLIP_TEXT_KEY, resultText);\n clipboardManager.setPrimaryClip(dataClip);\n\n //Tell the user that the text has been copied to the clipboard\n Toast.makeText(this, \"Copied to Clipboard\", Toast.LENGTH_SHORT).show();\n\n\n }", "@FXML\n private void copyAdd() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(ADD_MESSAGE);\n clipboard.setContent(url);\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View arg0) {\n CopyText4 = copyTxt4.getText().toString();\n if (CopyText4.length() != 0) {\n if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) {\n android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n clipboard.setText(CopyText4);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n } else {\n android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n android.content.ClipData clip = android.content.ClipData.newPlainText(\"Clip\", CopyText4);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n clipboard.setPrimaryClip(clip);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Text Kosong, Tidak ada apapun yang ter-Copy\", Toast.LENGTH_SHORT).show();\n }\n }", "public void showCopyMenu() {\n new AlertDialog.Builder(getContext()).setItems(\n R.array.copypaste_menu_items,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n String intentStr = null;\n switch (which) {\n case 0:\n ClipboardManager clip = (ClipboardManager) getContext()\n .getSystemService(\n Context.CLIPBOARD_SERVICE);\n if (clip != null) {\n clip.setText(mSelectedText);\n Toast.makeText(getContext(),\n R.string.text_copied,\n Toast.LENGTH_SHORT).show();\n }\n break;\n case 1:\n try {\n Uri uri = Uri.parse(\"sms:\");\n Intent intent = new Intent(\n Intent.ACTION_SENDTO, uri);\n intent.putExtra(\"sms_body\", mSelectedText);\n intent.putExtra(\"exit_on_send\", true);\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n case 2:\n try {\n Intent intent = new Intent();\n intent.setAction(\"com.motorola.createnote\");\n intent.putExtra(\"CLIPBOARD\", mSelectedText);\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n case 3:\n try {\n String broadcastAddress = String.format(\n \"%s://%s/%s\", \"searchWord\",\n \"powerword\", mSelectedText);\n Intent intent = new Intent(\n Intent.ACTION_VIEW, Uri\n .parse(broadcastAddress));\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n default:\n break;\n }\n\n clearSelection(true);\n\n }\n }).setOnCancelListener(new DialogInterface.OnCancelListener() {\n public void onCancel(DialogInterface dialog) {\n clearSelection(true);\n }\n }).show();\n }", "public static void copySel() {\r\n DataClipboard.clearContent();\r\n if (DataClipboard.getSelectionLineBegin() != -1) {\r\n DataClipboard.updateContentLineBegin(DataClipboard.getSelectionLineBegin());\r\n DataClipboard.updateContentLineEnd(DataClipboard.getSelectionLineEnd());\r\n for (MeasureLine ml : DataClipboard.getSelectionTrimmed()) {\r\n if (ml != null) {\r\n DataClipboard.getContent().set(ml.getLineNumber(), ml);\r\n }\r\n }\r\n }\r\n }", "public static void copy(AbstractViewController c, final List<OperationData> os) {\n content.clear();\n\n if (os != null && !os.isEmpty()) {\n content.addAll(os);\n final String message = content.size() + \" Element(s) Copied to clipboard\";\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(message)\n .buildAccent(c).show(true);\n }\n else {\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(\"No selected items!\")\n .buildAccent(c).show(true);\n }\n }", "@Override\n\tpublic void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) {\n\t\tsuper.onCreateContextMenu(menu, v, menuInfo);\n\t\t\n\t\tmenu.add(0, v.getId(), 0, \"Copy\");\n\t\t\n\t\tTextView cop = (TextView) v;\n\t\t\n\t\tClipboardManager cb = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\n\t\tcb.setText(cop.getText());\n\t}", "@FXML\n private void copyUrl() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(HELP_URL);\n clipboard.setContent(url);\n }", "@Override\n\tpublic void editorPaste()\n\t{\n editorInsert(clipboard);\n\t\tSystem.out.println(\"DEBUG: performing Paste\") ;\n\t}", "@FXML\n private void copySummary() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(SUMMARY_MESSAGE);\n clipboard.setContent(url);\n }", "private void paste() {\n FileTreeNode treeNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource targetRes = treeNode.getResource();\n\n if (fileTreeNodeFactory.getParentDirId(targetRes.getId()) == rootId && targetRes instanceof VMFile) {\n for (VMResource resource : getSelectedResources()) {\n copyPaste(resource, rootId, tree.getRoot());\n }\n } else {\n long targetId = 0;\n TreeNode targetTreeNode = treeNode;\n if (targetRes instanceof VMDirectory) {\n targetId = ((VMDirectory) targetRes).getId();\n } else if (targetRes instanceof VMFile) {\n targetTreeNode = tree.getParent(targetTreeNode);\n targetId = ((VMDirectory) fileTreeNodeFactory.getResource(targetTreeNode)).getId();\n }\n for (VMResource resource : getSelectedResources()) {\n copyPaste(resource, targetId, targetTreeNode);\n }\n }\n }", "public void copy() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"copyButton\").click();\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\r\n\t\t\t\tString copyString = ta_content.getText().toString();\r\n\t\t\t\tif (copyString != null) {\r\n\t\t\t\t\tStringSelection contents = new StringSelection(copyString);\r\n\t\t\t\t\tclipboard.setContents(contents, null);\r\n\t\t\t\t}\r\n\t\t\t}", "public void doHandlepasteshortcut ( RunData data)\n\t{\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// get the items to be pasted\n\t\tVector pasteItems = new Vector ();\n\n\t\tif (((String) state.getAttribute (STATE_COPY_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\tpasteItems = (Vector) ( (Vector) state.getAttribute (STATE_COPIED_IDS)).clone ();\n\t\t}\n\t\tif (((String) state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"choosecp\"));\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tString collectionId = params.getString (\"collectionId\");\n\n\t\t\tString originalDisplayName = NULL_STRING;\n\n\t\t\tfor (int i = 0; i < pasteItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteItem = (String) pasteItems.get (i);\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteItem);\n\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the collection\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteItem);\n\t\t\t\t\t\tString displayName = SHORTCUT_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(displayName);\n\n\t\t\t\t\t\t//int countNumber = 2;\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif ((!properties.isLiveProperty (propertyName)) && (!propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// %%%%% should be _blank for items that can be displayed in browser, _self for others\n\t\t\t\t\t\t// resourceProperties.addProperty (ResourceProperties.PROP_OPEN_NEWWINDOW, \"_self\");\n\t\t\t\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DISPLAY_NAME, displayName);\n\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tContentResource referedResource= ContentHostingService.getResource (currentPasteItem);\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, ResourceProperties.TYPE_URL, referedResource.getUrl().getBytes (), resourceProperties, referedResource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t // pasted shortcut to the same folder as before; add countNumber to the id\n\t\t\t\t\t\t\tdisplayName = \"Shortcut (\" + countNumber + \") to \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\tcountNumber++;\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\t// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepasteshortcut ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis9\") + \" \" + currentPasteItem.substring (currentPasteItem.lastIndexOf (Entity.SEPARATOR)+1) + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + currentPasteItem.substring (currentPasteItem.lastIndexOf (Entity.SEPARATOR)+1) + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\n\t\t\t}\t// for\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tif (((String) state.getAttribute (STATE_COPY_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\t// reset the copy flag\n\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// paste shortcut sucessful\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\t\t}\n\n\t}", "public void cutSelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.cut();\r\n \t}", "public static void copy(AbstractViewController c, OperationData o) {\n content.clear();\n\n if (o != null) {\n content.add(o);\n final String message = content.size() + \" Element(s) Copied to clipboard\";\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(message)\n .buildAccent(c).show(true);\n }\n else {\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(\"No selected items!\")\n .buildAccent(c).show(true);\n }\n }", "public void copy() {\n\n\t}", "public void addToClipboard(ArrayList<String> paths) {\n try {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(this.clipboardPath, true)));\n for (String path : paths) {\n out.println(path);\n }\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void pasteNode ()\n {\n PasteHelper paster = createPasteHelper(group);\n Clipboard clipboard = _tree.getToolkit().getSystemClipboard();\n if (_tree.getTransferHandler().importData(_tree, clipboard.getContents(this))) {\n paster.didPaste();\n }\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void lostOwnership(Clipboard clipboard, Transferable contents) {\n\t\t\t\t\t\t\t\t}", "public abstract OtTreeNodeWidget copy();", "public void lostOwnership (Clipboard clipboard, Transferable contents)\n {\n _paste.setEnabled(false);\n _clipclass = null;\n }", "public void cutCopyEnabled(boolean enabled);", "public void paste() {\n\t\tcmd = new PasteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public Collection<Object> getClipboard()\n {\n return clipboard;\n }", "private void copyToClipboard(int contentType) {\n\n String clipboardText = null;\n ClipData clip;\n\n switch (contentType) {\n case COPY_STATION_ALL:\n // set clip text\n if (mThisStation.getMetadata() != null) {\n clipboardText = mThisStation.getStationName() + \" - \" + mThisStation.getMetadata() + \" (\" + mThisStation.getStreamUri().toString() + \")\";\n } else {\n clipboardText = mThisStation.getStationName() + \" (\" + mThisStation.getStreamUri().toString() + \")\";\n }\n // notify user\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_station_copied), Toast.LENGTH_SHORT).show();\n break;\n\n case COPY_STATION_METADATA:\n // set clip text and notify user\n if (mThisStation.getMetadata() != null) {\n clipboardText = mThisStation.getMetadata();\n }\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_copied_to_clipboard_metadata), Toast.LENGTH_SHORT).show();\n break;\n\n case COPY_STREAM_URL:\n // set clip text and notify user\n if (mThisStation.getStreamUri() != null) {\n clipboardText = mThisStation.getStreamUri().toString();\n }\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_copied_to_clipboard_url), Toast.LENGTH_SHORT).show();\n break;\n\n }\n\n // create clip and to clipboard\n if (clipboardText != null) {\n clip = ClipData.newPlainText(\"simple text\", clipboardText);\n ClipboardManager cm = (ClipboardManager) mActivity.getSystemService(Context.CLIPBOARD_SERVICE);\n cm.setPrimaryClip(clip);\n }\n\n }", "@Override\n public boolean canPaste(Clipboard clipboard) {\n return false;\n }", "public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().compareTo(\"Copy\")==0) {\n StringBuilder sbf=new StringBuilder();\n // Check to ensure we have selected only a contiguous block of\n // cells\n int numcols=jTable1.getSelectedColumnCount();\n int numrows=jTable1.getSelectedRowCount();\n int[] rowsselected=jTable1.getSelectedRows();\n int[] colsselected=jTable1.getSelectedColumns();\n if (rowsselected.length==0 || colsselected.length==0) return;\n if (!((numrows-1==rowsselected[rowsselected.length-1]-rowsselected[0] &&\n numrows==rowsselected.length) &&\n (numcols-1==colsselected[colsselected.length-1]-colsselected[0] &&\n numcols==colsselected.length)))\n {\n JOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n \"Invalid Copy Selection\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n for (int i=0;i<numrows;i++) {\n for (int j=0;j<numcols;j++) {\n sbf.append(jTable1.getValueAt(rowsselected[i],colsselected[j]));\n if (j<numcols-1) sbf.append(\"\\t\");\n }\n sbf.append(\"\\n\");\n }\n stsel = new StringSelection(sbf.toString());\n system = Toolkit.getDefaultToolkit().getSystemClipboard();\n system.setContents(stsel,stsel);\n }\n if (e.getActionCommand().compareTo(\"Paste\")==0) {\n int[] rows=jTable1.getSelectedRows();\n int[] cols=jTable1.getSelectedColumns();\n if (rows.length==0 || cols.length==0) return;\n int startRow=rows[0];\n int startCol=cols[0];\n try\n {\n String trstring= (String)(system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n //System.out.println(\"String is:\"+trstring);\n StringTokenizer st1=new StringTokenizer(trstring,\"\\n\");\n for(int i=0;st1.hasMoreTokens();i++)\n {\n rowstring=st1.nextToken();\n StringTokenizer st2=new StringTokenizer(rowstring,\"\\t\");\n for(int j=0;st2.hasMoreTokens();j++)\n {\n value=(String)st2.nextToken();\n if (startRow+i==jTable1.getRowCount() && expandable) { // add row if necessary\n TableModel model = jTable1.getModel();\n if (model instanceof DefaultTableModel) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=\"\";\n ((DefaultTableModel)model).addRow(newrow);\n }\n }\n if (startRow+i<jTable1.getRowCount()&& startCol+j<jTable1.getColumnCount()) {\n Object typeValue=value;\n if (value!=null && convertNumerical!=CONVERT_NONE) {\n try {\n Double doubleval=Double.parseDouble(value);\n if (convertNumerical==CONVERT_TO_INTEGER || (convertNumerical==CONVERT_TO_DOUBLE_OR_INTEGER && doubleval.intValue()==doubleval.doubleValue())) typeValue=new Integer(doubleval.intValue());\n else typeValue=doubleval;\n } catch (NumberFormatException ex) {}\n }\n if (jTable1.isCellEditable(startRow+i,startCol+j)) {\n jTable1.setValueAt(typeValue,startRow+i,startCol+j);\n //System.out.println(\"Convert[\"+typeValue.getClass().getSimpleName()+\"] \"+value+\"=>\"+typeValue+\" at row=\"+startRow+i+\" column=\"+startCol+j+\" convertNumerical=\"+convertNumerical);\n }\n }\n }\n }\n }\n catch(Exception ex){}\n } \n if (e.getActionCommand().compareTo(\"Delete\")==0) {\n int[] rows=jTable1.getSelectedRows();\n int[] cols=jTable1.getSelectedColumns(); \n if (cols.length==jTable1.getColumnCount() && (jTable1.getModel() instanceof DefaultTableModel) && expandable) { // delete complete rows\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n for (int i=0;i<rows.length;i++) {\n model.removeRow(rows[i]-i);\n } \n if (model.getRowCount()==0) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n model.addRow(newrow); \n }\n } else { // delete only cell content\n for (int i=0;i<rows.length;i++) {\n for (int j=0;j<cols.length;j++) {\n jTable1.setValueAt(null,rows[i],cols[j]);\n }\n }\n }\n }\n if (e.getActionCommand().compareTo(\"PressedTab\")==0) {\n if (jTable1.getModel() instanceof DefaultTableModel && expandable) {\n int currentRow=jTable1.getSelectedRow();\n int currentColumn=jTable1.getSelectedColumn();\n if (currentRow+1==jTable1.getRowCount() && currentColumn+1==jTable1.getColumnCount()) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n ((DefaultTableModel)jTable1.getModel()).addRow(newrow);\n }\n }\n oldTabAction.actionPerformed(e);\n }\n if (e.getActionCommand().compareTo(\"PressedArrowdown\")==0) {\n if (jTable1.getModel() instanceof DefaultTableModel && expandable) {\n int currentRow=jTable1.getSelectedRow();\n if (currentRow+1==jTable1.getRowCount()) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n ((DefaultTableModel)jTable1.getModel()).addRow(newrow);\n }\n }\n oldArrowdownAction.actionPerformed(e);\n } \n }", "public CompoundTag getCopy() {\n return data.copy();\n }", "@Override\n\t\t\tpublic void onPrimaryClipChanged() {\n\t\t\t\tClipData data = mClipboard.getPrimaryClip();\n\t\t\t\tItem item = data.getItemAt(0);\n\t\t\t\tLog.e(ClientSocketThread.TAG, \"复制文字========:\"+item.getText());\t\n \t\t\t\tsendSocketDataTotalLen = item.getText().toString().getBytes().length+4;\n\t\t\t\tsendTotalLen = FileUtil.intToByte(sendSocketDataTotalLen);\n\t\t\t\tsendSocketDataCategories =7;\n\t\t\t\tsendCategories = FileUtil.intToByte(sendSocketDataCategories);\n\t\t\t\tbyte[] sendDataBuffer = new byte[sendSocketDataTotalLen+4];\n\t\t\t\tSystem.arraycopy(sendTotalLen, 0, sendDataBuffer, 0, 4);\n\t\t\t\tSystem.arraycopy(sendCategories, 0, sendDataBuffer, 4, 4);\n\t\t\t\tSystem.arraycopy(item.getText().toString().getBytes(), 0, sendDataBuffer, 8, item.getText().toString().getBytes().length);\n\t\t\t\tThreadReadWriterIOSocket.writeDataToSocket(sendDataBuffer);\n\t\t\t}", "public void paste() {\r\n getToolkit().beep();\r\n }", "@Override\n public void copyToClipboard (boolean shft, boolean alt) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc;\n if (shft == false && alt == false) copySelection();\n else if (shft == true && myrc != null) Utils.copyToClipboard(myrc.getBase());\n }", "@SuppressLint({\"NewApi\"})\n private void copyHintToClipboard(String str, String str2) {\n if (Build.VERSION.SDK_INT >= 11) {\n ((ClipboardManager) this.cordova.getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(str2, str));\n }\n }", "private void handleCopyingTextToClipboard(String text){\n Intent intent = new Intent(getContext(), ClipboardEventHandler.class);\n intent.putExtra(\"action\", \"switch\");\n intent.putExtra(\"content\", text);\n\n getContext().startService(intent);\n\n Snackbar.make(getView(), getString(R.string.COPIED_BEGINNIG) + \" \" +\"\\\"\"+ text +\"\\\"\" + \" \" + getString(R.string.COPIED_END), Snackbar.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void editorCut()\n\t{\n\t\teditorCopy();\n\t\teditorInsert(\"\");\n\t\tSystem.out.println(\"DEBUG: performing Cut\") ;\n\t}", "public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().compareTo(\"Copy\") == 0) {\n StringBuffer sbf = new StringBuffer();\n // Check to ensure we have selected only a contiguous block of\n // cells\n int numCols = jTable.getSelectedColumnCount();\n int numRows = jTable.getSelectedRowCount();\n int[] rowsSelected = jTable.getSelectedRows();\n int[] colsSelected = jTable.getSelectedColumns();\n if (!((numRows - 1 == rowsSelected[rowsSelected.length - 1] - rowsSelected[0] &&\n numRows == rowsSelected.length) &&\n (numCols - 1 == colsSelected[colsSelected.length - 1] - colsSelected[0] &&\n numCols == colsSelected.length))) {\n JOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n \"Invalid Copy Selection\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numCols; j++) {\n sbf.append(jTable.getValueAt(rowsSelected[i], colsSelected[j]));\n if (j < numCols - 1) sbf.append(\"\\t\");\n }\n sbf.append(\"\\n\");\n }\n StringSelection stSel = new StringSelection(sbf.toString());\n system = Toolkit.getDefaultToolkit().getSystemClipboard();\n system.setContents(stSel, stSel);\n }\n if (e.getActionCommand().compareTo(\"Paste\") == 0) {\n int startRow = (jTable.getSelectedRows())[0];\n int startCol = (jTable.getSelectedColumns())[0];\n try {\n String trString = (String) (system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n StringTokenizer st1 = new StringTokenizer(trString, \"\\n\");\n for (int i = 0; st1.hasMoreTokens(); i++) {\n String rowString = st1.nextToken();\n StringTokenizer st2 = new StringTokenizer(rowString, \"\\t\");\n for (int j = 0; st2.hasMoreTokens(); j++) {\n String value = st2.nextToken();\n\n if (startRow + i < jTable.getRowCount() && startCol + j < jTable.getColumnCount()) {\n mapTable.getData()[startRow + i][startCol + j] = Double.valueOf(value);\n }\n }\n\n mapTable.setTableData(mapTable.getData());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCheckBoxTreeNode node=(CheckBoxTreeNode)path.getLastPathComponent();\n\t\t\t\tString nodeName=(String)node.getUserObject();\n\t\t\t\tStringSelection nodeNameSelection=new StringSelection(nodeName);\n\t\t\t\tClipboard clip=websiteListTree.getToolkit().getSystemClipboard();\n\t\t\t\tclip.setContents(nodeNameSelection, null);\n\t\t\t}", "void copyItemInEdt() {\n\t\tedtMessage.setText(messageToPasteFromTheListView);\n\t}", "public String getClipboardContents() {\n\t\tString result = \"\";\n\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t// odd: the Object param of getContents is not currently used\n\t\tTransferable contents = clipboard.getContents(null);\n\t\tboolean hasTransferableText = (contents != null) && contents.isDataFlavorSupported(DataFlavor.stringFlavor);\n\t\tif (hasTransferableText) {\n\t\t\ttry {\n\t\t\t\tresult = (String) contents.getTransferData(DataFlavor.stringFlavor);\n\t\t\t\ttfURL.setText(result);\n\t\t\t} catch (UnsupportedFlavorException | IOException ex) {\n\t\t\t\tSystem.out.println(ex);\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@FXML\n private void copyDelete() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(DELETE_MESSAGE);\n clipboard.setContent(url);\n }", "@Override\n public void pasteFromClipboard (boolean shft, boolean alt) {\n if (shft == false && alt == false) selectFromClipboard();\n }", "private static MenuItem createCopyMenuItem(SongManager model, TreeView<Item> tree) {\n MenuItem copy = new MenuItem(COPY);\n\n copy.setOnAction((event) -> {\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n List<Item> itemsToCopy = new ArrayList<>();\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item != null) {\n itemsToCopy.add(item);\n }\n }\n model.setM_itemsToCopy(itemsToCopy);\n });\n\n return copy;\n }", "@Override\r\n\tpublic void copy(String from, String to) {\n\t\t\r\n\t}", "public void doHandlepaste ( RunData data)\n\t{\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// get the cut items to be pasted\n\t\tVector pasteCutItems = (Vector) state.getAttribute (STATE_CUT_IDS);\n\n\t\t// get the copied items to be pasted\n\t\tVector pasteCopiedItems = (Vector) state.getAttribute (STATE_COPIED_IDS);\n\n\t\tString collectionId = params.getString (\"collectionId\");\n\t\tString originalDisplayName = NULL_STRING;\n\n\t\t// handle cut and paste\n\t\tif (((String) state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\tfor (int i = 0; i < pasteCutItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteCutItem = (String) pasteCutItems.get (i);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteCutItem);\n\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t/*\n\t\t\t\t\tif (Boolean.TRUE.toString().equals(properties.getProperty (ResourceProperties.PROP_IS_COLLECTION)))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t*/\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteCutItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteCutItem);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(p.getProperty(ResourceProperties.PROP_DISPLAY_NAME));\n\n\t\t\t\t\t\t// cut-paste to the same collection?\n\t\t\t\t\t\tboolean cutPasteSameCollection = false;\n\t\t\t\t\t\tString displayName = p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t\t\t\t// till paste successfully or it fails\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif (!properties.isLiveProperty (propertyName))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)&&(displayName.length ()>0))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\n\t\t\t\t\t\t\t\t}\t// if-else\n\t\t\t\t\t\t\t}\t// if\n\t\t\t\t\t\t}\t// while\n\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// paste the cutted resource to the new collection - no notification\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, resource.getContentType (), resource.getContent (), resourceProperties, resource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t\tString uuid = ContentHostingService.getUuid(resource.getId());\n\t\t\t\t\t\t\tContentHostingService.setUuid(id, uuid);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// this represents temporary unavailability of server's filesystem\n\t\t\t\t\t\t\t// for server configured to save resource body in filesystem\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// cut and paste to the same collection; stop adding new resource\n\t\t\t\t\t\t\tif (id.equals(currentPasteCutItem))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcutPasteSameCollection = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t// pasted to the same folder as before; add \"Copy of \"/ \"copy (n) of\" to the id\n\t\t\t\t\t\t\t\tif (countNumber==1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tdisplayName = DUPLICATE_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tdisplayName = \"Copy (\" + countNumber + \") of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcountNumber++;\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// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!cutPasteSameCollection)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// remove the cutted resource\n\t\t\t\t\t\t\tContentHostingService.removeResource (currentPasteCutItem);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// }\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (InUseException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"someone\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis7\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + originalDisplayName + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t}\n\n\t\t\t}\t// for\n\t\t}\t// cut\n\n\t\t// handling copy and paste\n\t\tif (Boolean.toString(true).equalsIgnoreCase((String) state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tfor (int i = 0; i < pasteCopiedItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteCopiedItem = (String) pasteCopiedItems.get (i);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteCopiedItem);\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t// copy, cut and paste not operated on collections\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteCopiedItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteCopiedItem);\n\t\t\t\t\t\tString displayName = DUPLICATE_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(displayName);\n\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif (!properties.isLiveProperty (propertyName))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)&&(displayName.length ()>0))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// paste the copied resource to the new collection\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, resource.getContentType (), resource.getContent (), resourceProperties, resource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t// copying\n\t\t\t\t\t\t\t// pasted to the same folder as before; add \"Copy of \" to the id\n\t\t\t\t\t\t\tif (countNumber > 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName = \"Copy (\" + countNumber + \") of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (countNumber == 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName = \"Copy of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\tcountNumber++;\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\t// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis8\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + originalDisplayName + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\n\t\t\t}\t// for\n\t\t}\t// copy\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\t// delete sucessful\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t\t// reset the cut flag\n\t\t\tif (((String)state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_CUT_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// reset the copy flag\n\t\t\tif (Boolean.toString(true).equalsIgnoreCase((String)state.getAttribute (STATE_COPY_FLAG)))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// try to expand the collection\n\t\t\tSortedSet expandedCollections = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\t\tif(expandedCollections == null)\n\t\t\t{\n\t\t\t\texpandedCollections = new TreeSet();\n\t\t\t}\n\t\t\tif(! expandedCollections.contains(collectionId))\n\t\t\t{\n\t\t\t\texpandedCollections.add(collectionId);\n\t\t\t}\n\t\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, expandedCollections);\n\t\t}\n\n\t}", "public void setClipboardContents( String aString ){\n StringSelection stringSelection = new StringSelection( aString );\n Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n clipboard.setContents( stringSelection, (ClipboardOwner) this );\n }", "private void setClipboard(Shape c) { clipboard = c; }", "public void lostOwnership( Clipboard aClipboard, Transferable aContents) {\n //do nothing\n }", "public void addToClipboard(String path) {\n try {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(this.clipboardPath, true)));\n out.println(path);\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void setup()\n {\n putValue(NAME, \"Copy\");\n putValue(SMALL_ICON, new ImageIcon(getClass().getResource(\"/res/copy16.gif\")));\n putValue(SHORT_DESCRIPTION, \"Copy the selected data record\");\n putValue(LONG_DESCRIPTION, \"Copy the selected data record\");\n putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_C));\n putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.SHIFT_MASK));\n putValue(ACTION_COMMAND_KEY, \"copy-command\");\n }", "void onTopQDMPasteClicked();", "Prototype makeCopy();", "public void paste() {\n\t\t\tpaste(grid);\n\t\t}", "public void pasteData(PrimitiveDeepCopy pasteBuffer) {\n List<PrimitiveData> bufferCopy = new ArrayList<PrimitiveData>();\n Map<Long, Long> newNodeIds = new HashMap<Long, Long>();\n Map<Long, Long> newWayIds = new HashMap<Long, Long>();\n Map<Long, Long> newRelationIds = new HashMap<Long, Long>();\n for (PrimitiveData data: pasteBuffer.getAll()) {\n if (data.isIncomplete()) {\n continue;\n }\n PrimitiveData copy = data.makeCopy();\n copy.clearOsmMetadata();\n if (data instanceof NodeData) {\n newNodeIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof WayData) {\n newWayIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof RelationData) {\n newRelationIds.put(data.getUniqueId(), copy.getUniqueId());\n }\n bufferCopy.add(copy);\n }\n\n // Update references in copied buffer\n for (PrimitiveData data:bufferCopy) {\n if (data instanceof NodeData) {\n NodeData nodeData = (NodeData)data;\n\t\t\t\tnodeData.setEastNorth(nodeData.getEastNorth());\n } else if (data instanceof WayData) {\n List<Long> newNodes = new ArrayList<Long>();\n for (Long oldNodeId: ((WayData)data).getNodes()) {\n Long newNodeId = newNodeIds.get(oldNodeId);\n if (newNodeId != null) {\n newNodes.add(newNodeId);\n }\n }\n ((WayData)data).setNodes(newNodes);\n } else if (data instanceof RelationData) {\n List<RelationMemberData> newMembers = new ArrayList<RelationMemberData>();\n for (RelationMemberData member: ((RelationData)data).getMembers()) {\n OsmPrimitiveType memberType = member.getMemberType();\n Long newId = null;\n switch (memberType) {\n case NODE:\n newId = newNodeIds.get(member.getMemberId());\n break;\n case WAY:\n newId = newWayIds.get(member.getMemberId());\n break;\n case RELATION:\n newId = newRelationIds.get(member.getMemberId());\n break;\n }\n if (newId != null) {\n newMembers.add(new RelationMemberData(member.getRole(), memberType, newId));\n }\n }\n ((RelationData)data).setMembers(newMembers);\n }\n }\n\n /* Now execute the commands to add the duplicated contents of the paste buffer to the map */\n\n Main.main.undoRedo.add(new AddPrimitivesCommand(bufferCopy));\n Main.map.mapView.repaint();\n }", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public void screenshotToClipboard() {\n Image image = getScreenshot();\n Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent content = new ClipboardContent();\n content.putImage(image);\n clipboard.setContent(content);\n LOGGER.atInfo().log(\"Copied screenshot to clipboard\");\n }", "private static Object getContents(final Clipboard clipboard, final Transfer transfer, Shell shell) {\n\t\tfinal Object[] result= new Object[1];\n\t\tshell.getDisplay().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tresult[0]= clipboard.getContents(transfer);\n\t\t\t}\n\t\t});\n\t\treturn result[0];\n\t}", "private static Object getContents(final Clipboard clipboard, final Transfer transfer, Shell shell) {\n\t\tfinal Object[] result= new Object[1];\n\t\tshell.getDisplay().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tresult[0]= clipboard.getContents(transfer);\n\t\t\t}\n\t\t});\n\t\treturn result[0];\n\t}", "void onBottomQDMPasteClicked();", "public interface IClipboard\n extends IInterface {\n public static abstract class Stub extends Binder\n implements IClipboard {\n private static class Proxy\n implements IClipboard {\n\n public void addPrimaryClipChangedListener(IOnPrimaryClipChangedListener ionprimaryclipchangedlistener) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IBinder ibinder;\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n if(ionprimaryclipchangedlistener == null)\n break MISSING_BLOCK_LABEL_59;\n ibinder = ionprimaryclipchangedlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(ibinder);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n ibinder = null;\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public String getInterfaceDescriptor() {\n return \"android.content.IClipboard\";\n }\n\n public ClipData getPrimaryClip(String s) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n parcel.writeString(s);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n ClipData clipdata = (ClipData)ClipData.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return clipdata;\n_L2:\n clipdata = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public ClipDescription getPrimaryClipDescription() throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n ClipDescription clipdescription = (ClipDescription)ClipDescription.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return clipdescription;\n_L2:\n clipdescription = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean hasClipboardText() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean hasPrimaryClip() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void removePrimaryClipChangedListener(IOnPrimaryClipChangedListener ionprimaryclipchangedlistener) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IBinder ibinder;\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n if(ionprimaryclipchangedlistener == null)\n break MISSING_BLOCK_LABEL_60;\n ibinder = ionprimaryclipchangedlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(ibinder);\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n ibinder = null;\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void setPrimaryClip(ClipData clipdata) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n if(clipdata == null)\n break MISSING_BLOCK_LABEL_56;\n parcel.writeInt(1);\n clipdata.writeToParcel(parcel, 0);\n_L1:\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n private IBinder mRemote;\n\n Proxy(IBinder ibinder) {\n mRemote = ibinder;\n }\n }\n\n\n public static IClipboard asInterface(IBinder ibinder) {\n Object obj;\n if(ibinder == null) {\n obj = null;\n } else {\n IInterface iinterface = ibinder.queryLocalInterface(\"android.content.IClipboard\");\n if(iinterface != null && (iinterface instanceof IClipboard))\n obj = (IClipboard)iinterface;\n else\n obj = new Proxy(ibinder);\n }\n return ((IClipboard) (obj));\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j) throws RemoteException {\n int k;\n boolean flag;\n k = 0;\n flag = true;\n i;\n JVM INSTR lookupswitch 8: default 80\n // 1: 103\n // 2: 149\n // 3: 199\n // 4: 245\n // 5: 279\n // 6: 303\n // 7: 327\n // 1598968902: 94;\n goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9\n_L1:\n flag = super.onTransact(i, parcel, parcel1, j);\n_L11:\n return flag;\n_L9:\n parcel1.writeString(\"android.content.IClipboard\");\n continue; /* Loop/switch isn't completed */\n_L2:\n parcel.enforceInterface(\"android.content.IClipboard\");\n ClipData clipdata1;\n if(parcel.readInt() != 0)\n clipdata1 = (ClipData)ClipData.CREATOR.createFromParcel(parcel);\n else\n clipdata1 = null;\n setPrimaryClip(clipdata1);\n parcel1.writeNoException();\n continue; /* Loop/switch isn't completed */\n_L3:\n parcel.enforceInterface(\"android.content.IClipboard\");\n ClipData clipdata = getPrimaryClip(parcel.readString());\n parcel1.writeNoException();\n if(clipdata != null) {\n parcel1.writeInt(flag);\n clipdata.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L4:\n parcel.enforceInterface(\"android.content.IClipboard\");\n ClipDescription clipdescription = getPrimaryClipDescription();\n parcel1.writeNoException();\n if(clipdescription != null) {\n parcel1.writeInt(flag);\n clipdescription.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L5:\n parcel.enforceInterface(\"android.content.IClipboard\");\n boolean flag2 = hasPrimaryClip();\n parcel1.writeNoException();\n if(flag2)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L6:\n parcel.enforceInterface(\"android.content.IClipboard\");\n addPrimaryClipChangedListener(IOnPrimaryClipChangedListener.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n continue; /* Loop/switch isn't completed */\n_L7:\n parcel.enforceInterface(\"android.content.IClipboard\");\n removePrimaryClipChangedListener(IOnPrimaryClipChangedListener.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n continue; /* Loop/switch isn't completed */\n_L8:\n parcel.enforceInterface(\"android.content.IClipboard\");\n boolean flag1 = hasClipboardText();\n parcel1.writeNoException();\n if(flag1)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n if(true) goto _L11; else goto _L10\n_L10:\n }\n\n private static final String DESCRIPTOR = \"android.content.IClipboard\";\n static final int TRANSACTION_addPrimaryClipChangedListener = 5;\n static final int TRANSACTION_getPrimaryClip = 2;\n static final int TRANSACTION_getPrimaryClipDescription = 3;\n static final int TRANSACTION_hasClipboardText = 7;\n static final int TRANSACTION_hasPrimaryClip = 4;\n static final int TRANSACTION_removePrimaryClipChangedListener = 6;\n static final int TRANSACTION_setPrimaryClip = 1;\n\n public Stub() {\n attachInterface(this, \"android.content.IClipboard\");\n }\n }\n\n\n public abstract void addPrimaryClipChangedListener(IOnPrimaryClipChangedListener ionprimaryclipchangedlistener) throws RemoteException;\n\n public abstract ClipData getPrimaryClip(String s) throws RemoteException;\n\n public abstract ClipDescription getPrimaryClipDescription() throws RemoteException;\n\n public abstract boolean hasClipboardText() throws RemoteException;\n\n public abstract boolean hasPrimaryClip() throws RemoteException;\n\n public abstract void removePrimaryClipChangedListener(IOnPrimaryClipChangedListener ionprimaryclipchangedlistener) throws RemoteException;\n\n public abstract void setPrimaryClip(ClipData clipdata) throws RemoteException;\n}", "public static void copyToClipboard(Context context, String location) {\n ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);\n ClipData clip = ClipData.newPlainText(context.getString(R.string.pref_file_location_output_title), location);\n clipboard.setPrimaryClip(clip);\n }", "public void actionPerformed(ActionEvent e)\n\t{\n\t\tif (e.getActionCommand().compareTo(\"Copy\")==0)\n\t\t{\n\t\t\tStringBuffer sbf=new StringBuffer();\n\t\t\t// Check to ensure we have selected only a contiguous block of\n\t\t\t// cells\n\t\t\tint numcols=jTable1.getSelectedColumnCount();\n\t\t\tint numrows=jTable1.getSelectedRowCount();\n\t\t\tint[] rowsselected=jTable1.getSelectedRows();\n\t\t\tint[] colsselected=jTable1.getSelectedColumns();\n\t\t\tif (!((numrows-1==rowsselected[rowsselected.length-1]-rowsselected[0] &&\n\t\t\t\t\tnumrows==rowsselected.length) &&\n\t\t\t\t\t(numcols-1==colsselected[colsselected.length-1]-colsselected[0] &&\n\t\t\t\t\t\t\tnumcols==colsselected.length)))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n\t\t\t\t\t\t\"Invalid Copy Selection\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfor (int i=0;i<numrows;i++)\n\t\t\t{\n\t\t\t\tfor (int j=0;j<numcols;j++)\n\t\t\t\t{\n\t\t\t\t\tsbf.append(jTable1.getValueAt(rowsselected[i],colsselected[j]));\n\t\t\t\t\tif (j<numcols-1) sbf.append(\"\\t\");\n\t\t\t\t}\n\t\t\t\tsbf.append(\"\\n\");\n\t\t\t}\n\t\t\tstsel = new StringSelection(sbf.toString());\n\t\t\tsystem = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t\tsystem.setContents(stsel,stsel);\n\t\t}\n\t\tif (e.getActionCommand().compareTo(\"Paste\")==0)\n\t\t{\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(\"Trying to Paste\");\n\t\t\t}\n\t\t\tint[] selectedRows = jTable1.getSelectedRows();\n\t\t\tint[] selectedColumns = jTable1.getSelectedColumns();\n\t\t\t\n\t\t\tint startRow = 0;\n\t\t\tint startCol = 0;\n\t\t\tif (selectedRows.length > 0) {\n\t\t\t\tstartRow=selectedRows[0];\n\t\t\t}\n\t\t\tif (selectedColumns.length > 0) {\n\t\t\t\tstartCol=selectedColumns[0];\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString trstring= (String)(system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\tlogger.debug(\"String is:\"+trstring);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] s;\n\t\t\t\tString[] rows = trstring.split(\"\\n\", -1);\n\t\t\t\tPattern p = Pattern.compile(\"\\t\");\n\t\t\t\tfor (int i = 0; i < rows.length; i++) {\n\t\t\t\t\tif (rows[i].length() == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ts = p.split(rows[i]);\n\t\t\t\t\tfor (int j = 0; j < s.length ; j++) {\n\t\t\t\t\t\tjTable1.setValueAt(s[j], startRow + i, startCol + j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch(Exception ex){\n\t\t\t\tlogger.error(\"Error pasting data\", ex);\n\t\t\t}\n\t\t}\n\t}", "public void performPaste() {\n \t\ttext.paste();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "public void testEditor() {\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass1Node = new JavaNode(sample1Node, SAMPLE1_FILE_NAME);\n sampleClass1Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE1_FILE_NAME);\n eo.setCaretPosition(\"public static void main\", true);\n int insertLine = eo.getLineNumber() + 2;\n eo.insert(\"\\n\", insertLine, 1); // NOI18N\n // Need to disable verification because shortcut \"sout\" is replaced\n // by \"System.out.println(\"\");\" and \"sout\" is not found in Editor\n eo.setCaretPositionToLine(insertLine);\n eo.txtEditorPane().setVerification(false);\n eo.txtEditorPane().typeText(\"sout\"); // NOI18N\n eo.txtEditorPane().typeKey('\\t');\n eo.txtEditorPane().setVerification(true);\n eo.insert(\"Hello\"); // NOI18N\n //eo.insert(\"System.out.println(\\\"Hello\\\");\\n\", insertLine+1, 1); // NOI18N\n final String textToCopy = \"System.out.println(\\\"Hello\\\");\"; // NOI18N\n eo.select(textToCopy);\n int oldDispatchingModel = JemmyProperties.getCurrentDispatchingModel();\n // \"Copy\"\n CopyAction copyAction = new CopyAction();\n try {\n copyAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n copyAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n // wait until clipboard contains text to copy\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object obj) {\n try {\n String text = Toolkit.getDefaultToolkit().getSystemClipboard().\n getContents(null).getTransferData(DataFlavor.stringFlavor).toString();\n return textToCopy.equals(text) ? Boolean.TRUE : null;\n } catch (UnsupportedFlavorException e) {\n // The following exception can be thrown when clipboard is empty.\n // java.awt.datatransfer.UnsupportedFlavorException: Unicode String\n // at org.openide.util.datatransfer.ExTransferable$Empty.getTransferData(ExTransferable.java:461)\n // Ignore this exception.\n return null;\n } catch (IOException ioe) {\n throw new JemmyException(\"Failed getting clipboard content.\", ioe);\n }\n }\n\n @Override\n public String getDescription() {\n return (\"Clipboard contains \" + textToCopy); // NOI18N\n }\n }).waitAction(null);\n } catch (Exception ie) {\n throw new JemmyException(\"Interrupted.\", ie);\n }\n eo.insert(\"int xxxx;\\n\", insertLine + 1, 1); // NOI18N\n eo.select(\"int xxxx;\"); // NOI18N\n PasteAction pasteAction = new PasteAction();\n try {\n pasteAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n pasteAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n eo.select(\"Hello\", 1); // NOI18N\n // \"Delete\"\n DeleteAction deleteAction = new DeleteAction();\n deleteAction.performMenu(eo);\n // wait Hello is deleted\n eo.txtEditorPane().waitText(\"System.out.println(\\\"\\\");\"); // NOI18N\n eo.insert(\"Good bye\"); // NOI18N\n // test cut action\n eo.select(3);\n // \"Cut\"\n CutAction cutAction = new CutAction();\n try {\n cutAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n cutAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n // need to wait a little until editor content is refreshed after cut action\n new EventTool().waitNoEvent(500);\n // select from column 1 to 2 at line 3 \n eo.select(2, 1, 2);\n try {\n pasteAction.perform(eo);\n } catch (TimeoutExpiredException e) {\n // if not succed try it second time in Robot mode\n JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);\n pasteAction.perform(eo);\n } finally {\n // set previous dispatching model\n JemmyProperties.setCurrentDispatchingModel(oldDispatchingModel);\n }\n }", "public boolean isCopyEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0;\n \t}", "public static void copy(String s) {\n Clipboard c = Toolkit.getDefaultToolkit().getSystemClipboard();\n StringSelection t = new StringSelection(s);\n c.setContents(t, t);\n }", "@Override\n public void paste() {\n super.paste();\n pasteActionHandler.handle();\n }" ]
[ "0.63926214", "0.6349195", "0.62323546", "0.6218228", "0.62121654", "0.6041182", "0.6037461", "0.60213894", "0.59420526", "0.5927928", "0.58839977", "0.58756244", "0.58384085", "0.5832372", "0.5826057", "0.5805135", "0.5803859", "0.5715895", "0.56527245", "0.5651472", "0.5611187", "0.55415934", "0.55413467", "0.5518316", "0.55093384", "0.55024225", "0.5493533", "0.5472736", "0.5455752", "0.5449095", "0.54223245", "0.54186285", "0.54165393", "0.5403952", "0.5403778", "0.53953505", "0.5388259", "0.5380291", "0.53785664", "0.53762865", "0.53374845", "0.53360236", "0.5329788", "0.5313529", "0.5309212", "0.53033936", "0.52951264", "0.5285669", "0.5264723", "0.52558786", "0.5254823", "0.5211119", "0.51819426", "0.5179595", "0.5173315", "0.5172408", "0.5172286", "0.51698697", "0.51594317", "0.51253414", "0.51193595", "0.51124054", "0.5106132", "0.5095437", "0.5084709", "0.50544703", "0.50515604", "0.5039186", "0.50337535", "0.50196314", "0.49995416", "0.49828842", "0.49807283", "0.49677223", "0.49658433", "0.49634388", "0.49536636", "0.4943174", "0.49366626", "0.49233294", "0.49163947", "0.48915544", "0.48905268", "0.48860073", "0.4885461", "0.48775387", "0.48602843", "0.4857895", "0.4853227", "0.4833685", "0.4833685", "0.48317686", "0.4831621", "0.48243386", "0.48241523", "0.48241022", "0.48115173", "0.4809812", "0.4804609", "0.48015034" ]
0.4788649
100
Build a map of the keys and values to add to the clipboards
private void addKeyValue(@NonNull Map<String, String> tags, @NonNull final TagEditRow row) { String key = row.getKey().trim(); if (!"".equals(key)) { tags.put(key, row.getValue().trim()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String,Boolean> copyMapFromPreferenceStore(){\n \tMap<String,Boolean> preferences = new HashMap<String,Boolean>();\n \tIPreferenceStore store = EMFTextEditUIPlugin.getDefault().getPreferenceStore();\n \tpreferences.put(ResourcePackageGenerator.GENERATE_PRINTER_STUB_ONLY_NAME,store.getBoolean(ResourcePackageGenerator.GENERATE_PRINTER_STUB_ONLY_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_ANTLR_SPEC_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_ANTLR_SPEC_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_PRINTER_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_PRINTER_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_PROXY_RESOLVERS_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_PROXY_RESOLVERS_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_TOKEN_RESOLVER_FACTORY_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_TOKEN_RESOLVER_FACTORY_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_TOKEN_RESOLVERS_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_TOKEN_RESOLVERS_NAME));\n \tpreferences.put(ResourcePackageGenerator.OVERRIDE_TREE_ANALYSER_NAME,store.getBoolean(ResourcePackageGenerator.OVERRIDE_TREE_ANALYSER_NAME));\n \treturn preferences;\n }", "private static Map generateCharacterMappings() {\n Log.debug(\"Generating default character mappings\");\n Map map = new HashMap();\n Iterator iter = keycodes.keySet().iterator();\n while (iter.hasNext()) {\n Object key = iter.next();\n map.put(keycodes.get(key), key);\n }\n return map;\n }", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }", "public void addFromClipboard() { genericClipboard(SetOp.ADD); }", "private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }", "public Map<T, V> copyData(Map<T, V> map) {\n Map<T, V> newMap = new HashMap<>();\n for (Map.Entry<T, V> entrySet : map.entrySet()) {\n T key = entrySet.getKey();\n V value = entrySet.getValue();\n newMap.put(key, value);\n }\n return newMap;\n }", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "Map<String, List<List<Attribution>>> getAttributionMap();", "private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}", "public CharCharMap clone() {\n char[] k = new char[key.length], v = new char[value.length];\n System.arraycopy(key, 0, k, 0, key.length);\n System.arraycopy(value, 0, v, 0, value.length);\n return new CharCharMap(k, v, f);\n }", "HashMap <String, Command> getMap();", "private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }", "private static Map generateKeyStrokeMappings() {\n Log.debug(\"Generating default keystroke mappings\");\n // character, keycode, modifiers\n int shift = InputEvent.SHIFT_MASK;\n //int alt = InputEvent.ALT_MASK;\n //int altg = InputEvent.ALT_GRAPH_MASK;\n int ctrl = InputEvent.CTRL_MASK;\n //int meta = InputEvent.META_MASK;\n // These are assumed to be standard across all keyboards (?)\n int[][] universalMappings = {\n { '\u001b', KeyEvent.VK_ESCAPE, 0 }, // No escape sequence exists\n { '\\b', KeyEvent.VK_BACK_SPACE, 0 },\n { '', KeyEvent.VK_DELETE, 0 }, // None for this one either\n { '\\n', KeyEvent.VK_ENTER, 0 },\n { '\\r', KeyEvent.VK_ENTER, 0 },\n };\n // Add to these as needed; note that this is based on a US keyboard\n // mapping, and will likely fail for others.\n int[][] mappings = {\n { ' ', KeyEvent.VK_SPACE, 0, },\n { '\\t', KeyEvent.VK_TAB, 0, },\n { '~', KeyEvent.VK_BACK_QUOTE, shift, },\n { '`', KeyEvent.VK_BACK_QUOTE, 0, },\n { '!', KeyEvent.VK_1, shift, },\n { '@', KeyEvent.VK_2, shift, },\n { '#', KeyEvent.VK_3, shift, },\n { '$', KeyEvent.VK_4, shift, },\n { '%', KeyEvent.VK_5, shift, },\n { '^', KeyEvent.VK_6, shift, },\n { '&', KeyEvent.VK_7, shift, },\n { '*', KeyEvent.VK_8, shift, },\n { '(', KeyEvent.VK_9, shift, },\n { ')', KeyEvent.VK_0, shift, },\n { '-', KeyEvent.VK_MINUS, 0, },\n { '_', KeyEvent.VK_MINUS, shift, },\n { '=', KeyEvent.VK_EQUALS, 0, },\n { '+', KeyEvent.VK_EQUALS, shift, },\n { '[', KeyEvent.VK_OPEN_BRACKET, 0, },\n { '{', KeyEvent.VK_OPEN_BRACKET, shift, },\n // NOTE: The following does NOT produce a left brace\n //{ '{', KeyEvent.VK_BRACELEFT, 0, },\n { ']', KeyEvent.VK_CLOSE_BRACKET, 0, },\n { '}', KeyEvent.VK_CLOSE_BRACKET, shift, },\n { '|', KeyEvent.VK_BACK_SLASH, shift, },\n { ';', KeyEvent.VK_SEMICOLON, 0, },\n { ':', KeyEvent.VK_SEMICOLON, shift, },\n { ',', KeyEvent.VK_COMMA, 0, },\n { '<', KeyEvent.VK_COMMA, shift, },\n { '.', KeyEvent.VK_PERIOD, 0, },\n { '>', KeyEvent.VK_PERIOD, shift, },\n { '/', KeyEvent.VK_SLASH, 0, },\n { '?', KeyEvent.VK_SLASH, shift, },\n { '\\\\', KeyEvent.VK_BACK_SLASH, 0, },\n { '|', KeyEvent.VK_BACK_SLASH, shift, },\n { '\\'', KeyEvent.VK_QUOTE, 0, },\n { '\"', KeyEvent.VK_QUOTE, shift, },\n };\n HashMap map = new HashMap();\n // Universal mappings\n for (int i=0;i < universalMappings.length;i++) {\n int[] entry = universalMappings[i];\n KeyStroke stroke = KeyStroke.getKeyStroke(entry[1], entry[2]);\n map.put(new Character((char)entry[0]), stroke);\n }\n\n // If the locale is not en_US/GB, provide only a very basic map and\n // rely on key_typed events instead\n Locale locale = Locale.getDefault();\n if (!Locale.US.equals(locale) && !Locale.UK.equals(locale)) {\n Log.debug(\"Not US: \" + locale);\n return map;\n }\n\n // Basic symbol/punctuation mappings\n for (int i=0;i < mappings.length;i++) {\n int[] entry = mappings[i];\n KeyStroke stroke = KeyStroke.getKeyStroke(entry[1], entry[2]);\n map.put(new Character((char)entry[0]), stroke);\n }\n // Lowercase\n for (int i='a';i <= 'z';i++) {\n KeyStroke stroke = \n KeyStroke.getKeyStroke(KeyEvent.VK_A + i - 'a', 0);\n map.put(new Character((char)i), stroke);\n // control characters\n stroke = KeyStroke.getKeyStroke(KeyEvent.VK_A + i - 'a', ctrl);\n Character key = new Character((char)(i - 'a' + 1));\n // Make sure we don't overwrite something already there\n if (map.get(key) == null) {\n map.put(key, stroke);\n }\n }\n // Capitals\n for (int i='A';i <= 'Z';i++) {\n KeyStroke stroke = \n KeyStroke.getKeyStroke(KeyEvent.VK_A + i - 'A', shift);\n map.put(new Character((char)i), stroke);\n }\n // digits\n for (int i='0';i <= '9';i++) {\n KeyStroke stroke = \n KeyStroke.getKeyStroke(KeyEvent.VK_0 + i - '0', 0);\n map.put(new Character((char)i), stroke);\n }\n return map;\n }", "ActionMap createActionMap() {\n ActionMap map = new ActionMapUIResource();\n Action[] actions = editor.getActions();\n //System.out.println(\"building map for UI: \" + getPropertyPrefix());\n int n = actions.length;\n for (int i = 0; i < n; i++) {\n Action a = actions[i];\n map.put(a.getValue(Action.NAME), a);\n //System.out.println(\" \" + a.getValue(Action.NAME));\n }\n map.put(TransferHandler.getCutAction().getValue(Action.NAME),\n TransferHandler.getCutAction());\n map.put(TransferHandler.getCopyAction().getValue(Action.NAME),\n TransferHandler.getCopyAction());\n map.put(TransferHandler.getPasteAction().getValue(Action.NAME),\n TransferHandler.getPasteAction());\n return map;\n }", "public void setClipboard(Collection<Object> clipboard)\n {\n this.clipboard = clipboard;\n }", "private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}", "private void addStandardBindings() {\n inmap = new InputMap();\n acmap = new ActionMap();\n\n Action copy = ActionTable.getAction(Actions.COPY_ACTION);\n inmap.put((KeyStroke) copy.getValue(Action.ACCELERATOR_KEY), copy.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(copy.getValue(Action.ACTION_COMMAND_KEY), copy);\n\n Action cut = ActionTable.getAction(Actions.CUT_ACTION);\n inmap.put((KeyStroke) cut.getValue(Action.ACCELERATOR_KEY), cut.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(cut.getValue(Action.ACTION_COMMAND_KEY), cut);\n\n Action paste = ActionTable.getAction(Actions.PASTE_ACTION);\n inmap.put((KeyStroke) paste.getValue(Action.ACCELERATOR_KEY), paste.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(paste.getValue(Action.ACTION_COMMAND_KEY), paste);\n\n Action help = ActionTable.getAction(Actions.HELP_ACTION);\n inmap.put((KeyStroke) help.getValue(Action.ACCELERATOR_KEY), help.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(help.getValue(Action.ACTION_COMMAND_KEY), help);\n\n Action open = ActionTable.getAction(OPEN_ACTION);\n inmap.put((KeyStroke) open.getValue(Action.ACCELERATOR_KEY), open.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(open.getValue(Action.ACTION_COMMAND_KEY), open);\n\n Action save = ActionTable.getAction(SAVE_ACTION);\n inmap.put((KeyStroke) save.getValue(Action.ACCELERATOR_KEY), save.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(save.getValue(Action.ACTION_COMMAND_KEY), save);\n\n Action newA = ActionTable.getAction(NEW_ACTION);\n inmap.put((KeyStroke) newA.getValue(Action.ACCELERATOR_KEY), newA.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(newA.getValue(Action.ACTION_COMMAND_KEY), newA);\n\n Action close = ActionTable.getAction(CLOSE_ACTION);\n inmap.put((KeyStroke) close.getValue(Action.ACCELERATOR_KEY), close.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(close.getValue(Action.ACTION_COMMAND_KEY), close);\n\n Action select = ActionTable.getAction(SELECT_ALL_ACTION);\n inmap.put((KeyStroke) select.getValue(Action.ACCELERATOR_KEY), select.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(select.getValue(Action.ACTION_COMMAND_KEY), select);\n\n Action find = ActionTable.getAction(FIND_ACTION);\n inmap.put((KeyStroke) find.getValue(Action.ACCELERATOR_KEY), find.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(find.getValue(Action.ACTION_COMMAND_KEY), find);\n\n Action group = ActionTable.getAction(GROUP_ACTION);\n inmap.put((KeyStroke) group.getValue(Action.ACCELERATOR_KEY), group.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(group.getValue(Action.ACTION_COMMAND_KEY), group);\n\n Action ungroup = ActionTable.getAction(UNGROUP_ACTION);\n inmap.put((KeyStroke) ungroup.getValue(Action.ACCELERATOR_KEY), ungroup.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(ungroup.getValue(Action.ACTION_COMMAND_KEY), ungroup);\n\n Action zoomout = ActionTable.getAction(ZOOMOUT_ACTION);\n inmap.put((KeyStroke) zoomout.getValue(Action.ACCELERATOR_KEY), zoomout.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(zoomout.getValue(Action.ACTION_COMMAND_KEY), zoomout);\n\n Action zoomin = ActionTable.getAction(ZOOMIN_ACTION);\n inmap.put((KeyStroke) zoomin.getValue(Action.ACCELERATOR_KEY), zoomin.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(zoomin.getValue(Action.ACTION_COMMAND_KEY), zoomin);\n\n Action incIn = ActionTable.getAction(INC_INPUT_NODES_ACTION);\n inmap.put((KeyStroke) incIn.getValue(Action.ACCELERATOR_KEY), incIn.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(incIn.getValue(Action.ACTION_COMMAND_KEY), incIn);\n\n Action incOut = ActionTable.getAction(INC_OUTPUT_NODES_ACTION);\n inmap.put((KeyStroke) incOut.getValue(Action.ACCELERATOR_KEY), incOut.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(incOut.getValue(Action.ACTION_COMMAND_KEY), incOut);\n\n Action decIn = ActionTable.getAction(DEC_INPUT_NODES_ACTION);\n inmap.put((KeyStroke) decIn.getValue(Action.ACCELERATOR_KEY), decIn.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(decIn.getValue(Action.ACTION_COMMAND_KEY), decIn);\n\n Action decOut = ActionTable.getAction(DEC_OUTPUT_NODES_ACTION);\n inmap.put((KeyStroke) decOut.getValue(Action.ACCELERATOR_KEY), decOut.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(decOut.getValue(Action.ACTION_COMMAND_KEY), decOut);\n }", "@Override\n protected void populateLocalisationMap() {\n localisationKeyConstantToKeyMap.put(ADDRESSES_TITLE, \"receiveBitcoinPanel.receivingAddressesTitle\"); \n localisationKeyConstantToKeyMap.put(CREATE_NEW_TOOLTIP, \"createOrEditAddressAction.createReceiving.tooltip\"); \n }", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "public void createDictionary() \n {\n dictionary = new HashMap<String, Map<String, String>>();\n \n addTranslations(\n \"EN\", // Language code\n \"OK\", \"Ok\",\n \"UPDATE\", \"Update\",\n \"OPEN\", \"Open\",\n \"CLOSE\", \"Close\",\n \"CANCEL\", \"Cancel\",\n \"MESSAGES\", \"Messages\",\n \"NO_MESSAGES_TO_DISPLAY\", \"No messages to display\",\n \"EVALUATE\", \"Evaluate\",\n \"RUN\", \"Run\",\n \"RUN_AS_ACTIVITY\", \"Run Activity\",\n \"OPEN_SCRIPT\", \"Open script\",\n \"START_SERVER\", \"Start server\",\n \"STOP_SERVER\", \"Stop server\",\n \"SHOW_MESSAGES\", \"Messages\",\n \"UPDATE_APP_SCRIPTS\", \"Update\",\n \"THIS_WILL_OVERWRITE_ALL_APP_SCRIPTS\", \"This will overwrite all application scripts!\",\n \"ENTER_FILE_OR_URL\", \"Enter file or url:\",\n \"UPDATE_APP_SCRIPTS_DONE\", \"Update complete!\",\n \"UPDATE_APP_SCRIPTS_DONE_RESTART\", \"Restart the application to make changes take effect\",\n \"QUIT_APP\", \"Quit\",\n \"CLOSE\", \"Close\",\n \"BE_KIND\", \"Be kind\",\n \"BE_KIND_MESSAGE\", \"Be a kind person\"\n );\n }", "public Map<String, PhiFunction> copyAddPhiMap(){\n Map<String, PhiFunction> current_phi_map = this.ssa_stack.peek();\n Map<String, PhiFunction> new_phi_map = new HashMap<String, PhiFunction>();\n for(PhiFunction phi : current_phi_map.values()){\n new_phi_map.put(phi.id, (PhiFunction)phi.clone());\n }\n this.ssa_stack.push(new_phi_map);\n return new_phi_map;\n }", "private Map getAsMap(BuildStatus bs) {\n String lines[] = bs.toExternalForm().split(\"\\n\");\n Map m = new HashMap();\n for (int i = 0; i < lines.length; i++) {\n String line = lines[i];\n String parts[] = line.split(\"=\");\n String name = parts[0];\n String value = parts[1];\n m.put(name + \"=\", value);\n }\n return m;\n }", "private static Map<Character, Color> createColorMap() {\n\n final Map<Character, Color> map = new HashMap<Character, Color>();\n map.put(' ', NO_COLOR);\n map.put(Block.I.getChar(), I_COLOR);\n map.put(Block.O.getChar(), O_COLOR);\n map.put(Block.J.getChar(), J_COLOR);\n map.put(Block.L.getChar(), L_COLOR);\n map.put(Block.Z.getChar(), Z_COLOR);\n map.put(Block.S.getChar(), S_COLOR);\n map.put(Block.T.getChar(), T_COLOR);\n return map;\n }", "private void initializeMaps() {\n\tcodon1 = new HashMap<String,String>();\n\tcodon3 = new HashMap<String,String>();\n\tiupac = new HashMap<String,String>();\n\t\n\tcodon1.put(\"AAA\",\"K\");\n\tcodon1.put(\"AAC\",\"N\");\n\tcodon1.put(\"AAG\",\"K\");\n\tcodon1.put(\"AAT\",\"N\");\n\tcodon1.put(\"ACA\",\"T\");\n\tcodon1.put(\"ACC\",\"T\");\n\tcodon1.put(\"ACG\",\"T\");\n\tcodon1.put(\"ACT\",\"T\");\n\tcodon1.put(\"AGA\",\"R\");\n\tcodon1.put(\"AGC\",\"S\");\n\tcodon1.put(\"AGG\",\"R\");\n\tcodon1.put(\"AGT\",\"S\");\n\tcodon1.put(\"ATA\",\"I\");\n\tcodon1.put(\"ATC\",\"I\");\n\tcodon1.put(\"ATG\",\"M\");\n\tcodon1.put(\"ATT\",\"I\");\n\tcodon1.put(\"CAA\",\"Q\");\n\tcodon1.put(\"CAC\",\"H\");\n\tcodon1.put(\"CAG\",\"Q\");\n\tcodon1.put(\"CAT\",\"H\");\n\tcodon1.put(\"CCA\",\"P\");\n\tcodon1.put(\"CCC\",\"P\");\n\tcodon1.put(\"CCG\",\"P\");\n\tcodon1.put(\"CCT\",\"P\");\n\tcodon1.put(\"CGA\",\"R\");\n\tcodon1.put(\"CGC\",\"R\");\n\tcodon1.put(\"CGG\",\"R\");\n\tcodon1.put(\"CGT\",\"R\");\n\tcodon1.put(\"CTA\",\"L\");\n\tcodon1.put(\"CTC\",\"L\");\n\tcodon1.put(\"CTG\",\"L\");\n\tcodon1.put(\"CTT\",\"L\");\n\tcodon1.put(\"GAA\",\"E\");\n\tcodon1.put(\"GAC\",\"D\");\n\tcodon1.put(\"GAG\",\"E\");\n\tcodon1.put(\"GAT\",\"D\");\n\tcodon1.put(\"GCA\",\"A\");\n\tcodon1.put(\"GCC\",\"A\");\n\tcodon1.put(\"GCG\",\"A\");\n\tcodon1.put(\"GCT\",\"A\");\n\tcodon1.put(\"GGA\",\"G\");\n\tcodon1.put(\"GGC\",\"G\");\n\tcodon1.put(\"GGG\",\"G\");\n\tcodon1.put(\"GGT\",\"G\");\n\tcodon1.put(\"GTA\",\"V\");\n\tcodon1.put(\"GTC\",\"V\");\n\tcodon1.put(\"GTG\",\"V\");\n\tcodon1.put(\"GTT\",\"V\");\n\tcodon1.put(\"TAA\",\"*\");\n\tcodon1.put(\"TAC\",\"Y\");\n\tcodon1.put(\"TAG\",\"*\");\n\tcodon1.put(\"TAT\",\"Y\");\n\tcodon1.put(\"TCA\",\"S\");\n\tcodon1.put(\"TCC\",\"S\");\n\tcodon1.put(\"TCG\",\"S\");\n\tcodon1.put(\"TCT\",\"S\");\n\tcodon1.put(\"TGA\",\"*\");\n\tcodon1.put(\"TGC\",\"C\");\n\tcodon1.put(\"TGG\",\"W\");\n\tcodon1.put(\"TGT\",\"C\");\n\tcodon1.put(\"TTA\",\"L\");\n\tcodon1.put(\"TTC\",\"F\");\n\tcodon1.put(\"TTG\",\"L\");\n\tcodon1.put(\"TTT\",\"F\");\n\n\tcodon3.put(\"AAA\",\"Lys\");\n\tcodon3.put(\"AAC\",\"Asn\");\n\tcodon3.put(\"AAG\",\"Lys\");\n\tcodon3.put(\"AAT\",\"Asn\");\n\tcodon3.put(\"ACA\",\"Thr\");\n\tcodon3.put(\"ACC\",\"Thr\");\n\tcodon3.put(\"ACG\",\"Thr\");\n\tcodon3.put(\"ACT\",\"Thr\");\n\tcodon3.put(\"AGA\",\"Arg\");\n\tcodon3.put(\"AGC\",\"Ser\");\n\tcodon3.put(\"AGG\",\"Arg\");\n\tcodon3.put(\"AGT\",\"Ser\");\n\tcodon3.put(\"ATA\",\"Ile\");\n\tcodon3.put(\"ATC\",\"Ile\");\n\tcodon3.put(\"ATG\",\"Met\");\n\tcodon3.put(\"ATT\",\"Ile\");\n\tcodon3.put(\"CAA\",\"Gln\");\n\tcodon3.put(\"CAC\",\"His\");\n\tcodon3.put(\"CAG\",\"Gln\");\n\tcodon3.put(\"CAT\",\"His\");\n\tcodon3.put(\"CCA\",\"Pro\");\n\tcodon3.put(\"CCC\",\"Pro\");\n\tcodon3.put(\"CCG\",\"Pro\");\n\tcodon3.put(\"CCT\",\"Pro\");\n\tcodon3.put(\"CGA\",\"Arg\");\n\tcodon3.put(\"CGC\",\"Arg\");\n\tcodon3.put(\"CGG\",\"Arg\");\n\tcodon3.put(\"CGT\",\"Arg\");\n\tcodon3.put(\"CTA\",\"Leu\");\n\tcodon3.put(\"CTC\",\"Leu\");\n\tcodon3.put(\"CTG\",\"Leu\");\n\tcodon3.put(\"CTT\",\"Leu\");\n\tcodon3.put(\"GAA\",\"Glu\");\n\tcodon3.put(\"GAC\",\"Asp\");\n\tcodon3.put(\"GAG\",\"Glu\");\n\tcodon3.put(\"GAT\",\"Asp\");\n\tcodon3.put(\"GCA\",\"Ala\");\n\tcodon3.put(\"GCC\",\"Ala\");\n\tcodon3.put(\"GCG\",\"Ala\");\n\tcodon3.put(\"GCT\",\"Ala\");\n\tcodon3.put(\"GGA\",\"Gly\");\n\tcodon3.put(\"GGC\",\"Gly\");\n\tcodon3.put(\"GGG\",\"Gly\");\n\tcodon3.put(\"GGT\",\"Gly\");\n\tcodon3.put(\"GTA\",\"Val\");\n\tcodon3.put(\"GTC\",\"Val\");\n\tcodon3.put(\"GTG\",\"Val\");\n\tcodon3.put(\"GTT\",\"Val\");\n\tcodon3.put(\"TAA\",\"*\");\n\tcodon3.put(\"TAC\",\"Tyr\");\n\tcodon3.put(\"TAG\",\"*\");\n\tcodon3.put(\"TAT\",\"Tyr\");\n\tcodon3.put(\"TCA\",\"Ser\");\n\tcodon3.put(\"TCC\",\"Ser\");\n\tcodon3.put(\"TCG\",\"Ser\");\n\tcodon3.put(\"TCT\",\"Ser\");\n\tcodon3.put(\"TGA\",\"*\");\n\tcodon3.put(\"TGC\",\"Cys\");\n\tcodon3.put(\"TGG\",\"Trp\");\n\tcodon3.put(\"TGT\",\"Cys\");\n\tcodon3.put(\"TTA\",\"Leu\");\n\tcodon3.put(\"TTC\",\"Phe\");\n\tcodon3.put(\"TTG\",\"Leu\");\n\tcodon3.put(\"TTT\",\"Phe\");\n\t\n\tiupac.put(\"-\",\"-\");\n\tiupac.put(\".\",\"-\");\n\tiupac.put(\"A\",\"AA\");\n\tiupac.put(\"B\",\"CGT\");\n\tiupac.put(\"C\",\"CC\");\n\tiupac.put(\"D\",\"AGT\");\n\tiupac.put(\"G\",\"GG\");\n\tiupac.put(\"H\",\"ACT\");\n\tiupac.put(\"K\",\"GT\");\n\tiupac.put(\"M\",\"AC\");\n\tiupac.put(\"N\",\"ACGT\");\n\tiupac.put(\"R\",\"AG\");\n\tiupac.put(\"S\",\"GC\");\n\tiupac.put(\"T\",\"TT\");\n\tiupac.put(\"V\",\"ACG\");\n\tiupac.put(\"W\",\"AT\");\n\tiupac.put(\"Y\",\"CT\");\n \n }", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "public Map<String, Property> keyValueMap(){\n int paddingCount = 1;\n Map<String, Property> result = new HashMap<String, Property>();\n String lastKey = null;\n for (Property parameter : this.getProperties()) {\n String newKey = new String(parameter.getKey());\n if (lastKey != null && lastKey.equalsIgnoreCase(newKey)){\n newKey = newKey + \"_\" + paddingCount++;\n }\n result.put(newKey, new Property(parameter));\n lastKey = newKey;\n }\n return result;\n }", "private Map<String, String> toMap(final Attributes atts) {\r\n\t\tfinal Map<String, String> values = Maps.newLinkedHashMap();\r\n\t\t\r\n\t\tfor (int index = 0; index < atts.getLength(); index++) {\r\n\t\t\tvalues.put(atts.getLocalName(index), atts.getValue(index));\r\n\t\t}\r\n\t\t\r\n\t\treturn values;\r\n\t}", "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "public static <K, V extends Copy<V>> Hashtable<K, V> deepCopy(Map<K, V> map) {\n Hashtable<K, V> copy = new Hashtable<K, V>();\n for (K key : map.keySet()) copy.put(key, map.get(key).copy());\n return copy;\n }", "private void setup()\n {\n putValue(NAME, \"Copy\");\n putValue(SMALL_ICON, new ImageIcon(getClass().getResource(\"/res/copy16.gif\")));\n putValue(SHORT_DESCRIPTION, \"Copy the selected data record\");\n putValue(LONG_DESCRIPTION, \"Copy the selected data record\");\n putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_C));\n putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.SHIFT_MASK));\n putValue(ACTION_COMMAND_KEY, \"copy-command\");\n }", "Map<String, Object> getFilterScratchpad();", "public static void fill_map(){\n\t\tcategory_links_map.put(\"Categories\", \"Movies\");\n\t\tcategory_links_map.put(\"Actors\", \"Movies\");\n\t\tcategory_links_map.put(\"Movies\", \"Actors\");\n\t\tcategory_links_map.put(\"Artists\", \"Creations\");\n\t\tcategory_links_map.put(\"Creations\", \"Artists\");\n\t\tcategory_links_map.put(\"Countries\", \"Locations\");\n\t\tcategory_links_map.put(\"Locations\", \"Countries\");\n\t\tcategory_links_map.put(\"NBA players\", \"NBA teams\");\n\t\tcategory_links_map.put(\"NBA teams\", \"NBA players\");\n\t\tcategory_links_map.put(\"Israeli soccer players\", \"Israeli soccer teams\");\n\t\tcategory_links_map.put(\"Israeli soccer teams\", \"Israeli soccer players\");\n\t\tcategory_links_map.put(\"World soccer players\", \"World soccer teams\");\n\t\tcategory_links_map.put(\"World soccer teams\", \"World soccer players\");\n\t}", "public static Map<String, Set<String>> collectStringMapByValue(Map<String, String> aToB) {\n\t\t// The reversed list to return\n\t\tMap<String, Set<String>> bToAList = new HashMap<>();\n\n\t\t// Fore every entry in the input map\n\t\tfor (Entry<String, String> entry : aToB.entrySet()) {\n\t\t\t// Get the value\n\t\t\tString b = entry.getValue();\n\t\t\t// Check if the value is already a key.\n\t\t\tif (!bToAList.containsKey(b)) {\n\t\t\t\t// If not add it as a key to a hashset (there can be more than one key for this\n\t\t\t\t// value)\n\t\t\t\tbToAList.put(b, new HashSet<>());\n\t\t\t}\n\t\t\t// Add the key to the set\n\t\t\tbToAList.get(b).add(entry.getKey());\n\t\t}\n\n\t\treturn bToAList;\n\t}", "private void buildCharMap() {\n\t\tcharMap = new HashMap<Character , Integer>();\n\t\tcharMap.put('a', 0);\n\t\tcharMap.put('b', 1);\n\t\tcharMap.put('c', 2);\n\t\tcharMap.put('d', 3);\n\t\tcharMap.put('e', 4);\n\t\tcharMap.put('f', 5);\n\t\tcharMap.put('g', 6);\n\t\tcharMap.put('h', 7);\n\t\tcharMap.put('i', 8);\n\t\tcharMap.put('j', 9);\n\t\tcharMap.put('k', 10);\n\t\tcharMap.put('l', 11);\n\t\tcharMap.put('m', 12);\n\t\tcharMap.put('n', 13);\n\t\tcharMap.put('o', 14);\n\t\tcharMap.put('p', 15);\n\t\tcharMap.put('q', 16);\n\t\tcharMap.put('r', 17);\n\t\tcharMap.put('s', 18);\n\t\tcharMap.put('t', 19);\n\t\tcharMap.put('u', 20);\n\t\tcharMap.put('v', 21);\n\t\tcharMap.put('w', 22);\n\t\tcharMap.put('x', 23);\n\t\tcharMap.put('y', 24);\n\t\tcharMap.put('z', 25);\t\n\t}", "private static Map<String, String> m36195a(Rect rect) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"x\", String.valueOf(rect.left));\n hashMap.put(\"y\", String.valueOf(rect.top));\n hashMap.put(\"w\", String.valueOf(rect.right - rect.left));\n hashMap.put(\"h\", String.valueOf(rect.bottom - rect.top));\n return hashMap;\n }", "public static HashMap<Integer, String> createCopy(HashMap<Integer, String> students) {\n\t\tHashMap<Integer, String> newMap = new HashMap<Integer, String>();\n\t\tnewMap.putAll(students);\n\t\treturn newMap;\n\n\t}", "protected Map createCloneFromFields(Map fields_p) throws Exception\r\n {\r\n Map result = new HashMap();\r\n Set keys = fields_p.keySet();\r\n for (Iterator iterator = keys.iterator(); iterator.hasNext();)\r\n {\r\n String name = (String) iterator.next();\r\n OwEditField value = (OwEditField) fields_p.get(name);\r\n OwEditField clonedValue = new OwEditField(value.getFieldDefinition(), value.getValue());\r\n result.put(name, clonedValue);\r\n }\r\n return result;\r\n }", "public void copy(ICopyContext context) {\n\tPictogramElement[] pes = context.getPictogramElements();\n\tObject[] bos = new Object[pes.length];\n\tfor (int i = 0; i < pes.length; i++) {\n\t PictogramElement pe = pes[i];\n\t bos[i] = getBusinessObjectForPictogramElement(pe);\n\t}\n\t// put all business objects to the clipboard\n\tputToClipboard(bos);\n }", "public static <K, V> Hashtable<K, V> copy(Map<K, V> map) {\n Hashtable<K, V> copy = new Hashtable<K, V>();\n for (K key : map.keySet()) copy.put(key, map.get(key));\n return copy;\n }", "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 }", "private static <K extends Comparable<K>, V>\n ImmutableSortedMap<K, SortedSet<V>>\n copyMap(Map<K, ? extends SortedSet<V>> map) {\n final ImmutableSortedMap.Builder<K, SortedSet<V>> b =\n ImmutableSortedMap.naturalOrder();\n for (Map.Entry<K, ? extends SortedSet<V>> e : map.entrySet()) {\n b.put(e.getKey(), ImmutableSortedSet.copyOf(e.getValue()));\n }\n return b.build();\n }", "private Map<javax.swing.JTextField, String> setFieldDefaults(){\n \tMap<javax.swing.JTextField, String> map = new HashMap<javax.swing.JTextField, String>();\n \t\n \tmap.put(jFieldDBFile, \"enter folder path\");\n \tmap.put(jTextFieldZipcodes, \"zipcode1, zipcode2, etc\");\n \tmap.put(jTextFieldStart, \"address street zipcode\");\n \tmap.put(jTextFieldEnd, \"address street zipcode\");\n \t\n \treturn map;\n }", "private ArrayListMultimap<PreferencesTab, Labeled> getPrefsTabLabelMap() {\n ArrayListMultimap<PreferencesTab, Labeled> prefsTabLabelMap = ArrayListMultimap.create();\n for (PreferencesTab preferencesTab : preferenceTabs) {\n Node builder = preferencesTab.getBuilder();\n if (builder instanceof Parent) {\n Parent parentBuilder = (Parent) builder;\n scanLabeledControls(parentBuilder, prefsTabLabelMap, preferencesTab);\n }\n }\n return prefsTabLabelMap;\n }", "public Map<String, String> getBookmarks() {\n return Collections.unmodifiableMap(bookmarks);\n }", "public HashMap<String, String> toHashMap() {\n\n // Parse if needed\n run();\n\n if (cachedMap == null) {\n cachedMap = new LinkedHashMap<String, String>();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n\n cachedMap.put(\"File name\", fileName);\n cachedMap.put(\"File size\", \"\" + fileSize);\n cachedMap.put(\"PDF version\", pdfVersion);\n cachedMap.put(\"Page count\", \"\" + numberOfPages);\n cachedMap.put(\"Page size\", \"\" + mediaBoxWidthInPoints + \" x \"\n + mediaBoxHeightInPoints + \" points\");\n cachedMap.put(\"Page width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Page height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Page layout\", pageLayout);\n cachedMap.put(\"Title\", title);\n cachedMap.put(\"Author\", author);\n cachedMap.put(\"Subject\", subject);\n cachedMap.put(\"PDF producer\", producer);\n cachedMap.put(\"Content creator\", contentCreator);\n if (creationDate != null) {\n cachedMap.put(\"Creation date\",\n dateFormat.format(creationDate.getTime()));\n } else {\n cachedMap.put(\"Creation date\", \"\");\n }\n if (modificationDate != null) {\n cachedMap.put(\"Modification date\",\n dateFormat.format(modificationDate.getTime()));\n } else {\n cachedMap.put(\"Modification date\", \"\");\n }\n\n // \"Others\"\n cachedMap.put(\"Encrypted\", \"\" + isEncrypted);\n cachedMap.put(\"Keywords\", keywords);\n cachedMap.put(\"Media box width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Media box height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Crop box width\", \"\" + cropBoxWidthInPoints);\n cachedMap.put(\"Crop box height\", \"\" + cropBoxHeightInPoints);\n \n if(permissions != null) {\n cachedMap.put(\"Can Print\", Boolean.toString(permissions.canPrint()));\n cachedMap.put(\"Can Modify\", Boolean.toString(permissions.canModify()));\n cachedMap.put(\"Can Extract\", Boolean.toString(permissions.canExtractContent()));\n cachedMap.put(\"Can Modify Annotations\", Boolean.toString(permissions.canModifyAnnotations()));\n cachedMap.put(\"Can Fill Forms\", Boolean.toString(permissions.canFillInForm()));\n cachedMap.put(\"Can Extract for Accessibility\", Boolean.toString(permissions.canExtractForAccessibility()));\n cachedMap.put(\"Can Assemble\", Boolean.toString(permissions.canAssembleDocument()));\n cachedMap.put(\"Can Print Degraded\", Boolean.toString(permissions.canPrintDegraded()));\n }\n }\n\n return cachedMap;\n }", "public static Map<String, String> m3185a(Map<String, String> map) {\n Map<String, String> hashMap = new HashMap();\n map = map.entrySet().iterator();\n while (map.hasNext()) {\n Entry entry = (Entry) map.next();\n Object obj = (String) entry.getKey();\n Object obj2 = (String) entry.getValue();\n if (obj.length() > 40) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"cd key length over:\");\n stringBuilder.append(obj);\n C0784a.m3253a(stringBuilder.toString());\n obj = obj.substring(0, 40);\n }\n if (obj2 != null && obj2.length() > 1024) {\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"cd value length over:\");\n stringBuilder.append(obj2);\n C0784a.m3253a(stringBuilder.toString());\n obj2 = obj2.substring(0, 1024);\n }\n hashMap.put(obj, obj2);\n }\n return hashMap;\n }", "public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}", "public static HashMap<String, String> readFromExcel() throws IOException, WriteException, BiffException {\n\t\t\t\tList<String> keyList = new ArrayList<String>(); \r\n\t\t\t\tList<String> list = new ArrayList<String>(); \r\n\t\t\t\tHashMap<String, String> map = new HashMap<String, String>(); \r\n\t\t\t\tString str = null;\r\n\t\t\t\r\n\t\t\t\ttry\r\n\t\t {\r\n\t\t File f1=new File(\"//ecs-9844/DoNotDelete/JenkinsData/input.xls\");\r\n\t\t //the excel sheet which contains data\r\n\t\t WorkbookSettings ws=new WorkbookSettings();\r\n\t\t ws.setLocale(new Locale(\"er\",\"ER\"));\r\n\t\t Workbook workbook=Workbook.getWorkbook(f1,ws);\r\n\t\t Sheet readsheet=workbook.getSheet(0);\r\n\t\t //Loop to read the KEYS from Excel i.e, 1st column of the Excel\r\n\t\t for(int i=0;i<readsheet.getColumns();i++) {\r\n\t\t \tstr=readsheet.getCell(i,0).getContents().toString();\r\n\t\t \tlist.add(str);\r\n\t\t }\r\n\t\t \tkeyList.addAll(list);\r\n\t\t \t// Hardcoding the first map (key, value) values \r\n\t\t \tmap.put(keyList.get(0), readsheet.getCell(0, 1).getContents().toString());\r\n\t\t \t// Loop to read TEST DATA from the Excel\r\n\t\t for(int i=1;i<readsheet.getRows();i++) {\r\n\t\t for(int j=1;j<readsheet.getColumns();j++) {\t\r\n\t\t str=readsheet.getCell(j,i).getContents().toString();\r\n\t\t list.add(str);\r\n\t\t System.out.println(str);\r\n\t\t map.put(keyList.get(j),str); \r\n\t\t \t}\r\n\t\t }\r\n\t\t //Print the map(key, value) \r\n\t\t System.out.println(\"Print map\");\r\n\t\t System.out.println(map);\r\n\t\t \r\n\t\t }\r\n\t\t catch(IOException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\r\n\t\t catch(BiffException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t } catch (Exception e) {\r\n\t\t e.printStackTrace(); \r\n\t\t }\r\n\t\t\t\t\treturn map;\r\n\t}", "private static void putCopies(Hashtable target, Enumeration funcs) {\n\t\t// populate the map\n\t\twhile (funcs.hasMoreElements()) {\n\t\t\tFunction func = (Function) funcs.nextElement();\n\t\t\ttarget.put(func.declaration.name, new Function(func));\n\t\t}\n\t}", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "private static String[] getMapStrings(boolean desc) {\n\n\n\n ArrayList list = new ArrayList();\n Locale locale = Locale.getDefault();\n String name = locale.toString();\n if (desc)\n name = \"locale=\" + name;\n list.add(0, name);\n\n String os = \"-\" + getOSType();\n if (desc)\n os = \" (os=\" + System.getProperty(\"os.name\")\n + \", \" + System.getProperty(\"os.version\") + \")\";\n name += os;\n list.add(0, name);\n\n // Allow the invoker to override the keyStrokeMap to support\n // case where you are working on a remote machine with a different\n // local or platform.\n \n String override = System.getProperty(\"abbot.keyStrokeMap\");\n if (override!=null) {\n list.add(0, override);\n }\n \n \n /*\n String vm = System.getProperty(\"java.version\");\n name += \" vm=\" + vm;\n list.add(0, name);\n String version = System.getProperty(\"os.version\");\n name += \" version=\" + version;\n list.add(0, name);\n String arch = System.getProperty(\"os.arch\");\n name += \" arch=\" + arch;\n list.add(0, name);\n */\n return (String[])list.toArray(new String[list.size()]);\n }", "private static <T> Map<Character,Node<T>> newNodeMap(Map<Character,Node<T>> prev)\n\t\t{\n\t\t\treturn new HashMap<Character,Node<T>>(prev);\n\t\t}", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "public HashMap<PhoneNumber, BookEntry> cloneBook() {\n\t\tHashMap<PhoneNumber, BookEntry> clonedBook = new HashMap<>(); //Just for practice...\n\t\t//Create a Collection \n\t\tCollection<BookEntry> sourcePhoneBookValues = this.phoneBook.values(); //Based on the object instance's phoneBook field\n\t\t//Iterate through the collection and copy each entry to the cloneBook map\n\t\tfor (BookEntry currentEntry : sourcePhoneBookValues) {\n\t\t\tclonedBook.put(currentEntry.getNumber(), currentEntry);\n\t\t}\n\t\treturn clonedBook;\n\t}", "private void insertStrings(Map<String,String> mapValues) {\n mapFieldsStrings.putAll(mapValues);\n }", "public Map<String, List<String>> mo133923b() {\n Map<String, List<String>> map = this.f114455b;\n if (map != null) {\n return map;\n }\n TreeMap treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\n for (Map.Entry<String, String> entry : this.f114454a) {\n ArrayList arrayList = new ArrayList();\n if (treeMap.containsKey(entry.getKey())) {\n arrayList.addAll((Collection) treeMap.get(entry.getKey()));\n }\n arrayList.add(entry.getValue());\n treeMap.put(entry.getKey(), Collections.unmodifiableList(arrayList));\n }\n this.f114455b = Collections.unmodifiableMap(treeMap);\n return this.f114455b;\n }", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "private static HashMap<String, TColor> createColors(){\n\t\tHashMap<String, TColor> iconColors = new HashMap<String, TColor>();\n\t\ticonColors.put(\"Arts & Entertainment\", TColor.newHex(\"E62733\"));\n\t\ticonColors.put(\"College & University\", TColor.newHex(\"E0006D\"));\n\t\ticonColors.put(\"Food\", TColor.newHex(\"917A2C\"));\n\t\ticonColors.put(\"Nightlife Spot\", TColor.newHex(\"582583\"));\n\t\ticonColors.put(\"Outdoors & Recreation\", TColor.newHex(\"00A43C\"));\n\t\ticonColors.put(\"Professional & Other Places\", TColor.newHex(\"00A38C\"));\n\t\ticonColors.put(\"Residence\", TColor.newHex(\"FFED00\"));\n\t\ticonColors.put(\"Shop & Service\", TColor.newHex(\"0067B2\"));\n\t\ticonColors.put(\"Travel & Transport\", TColor.newHex(\"F39200\"));\n//\t\tfor(Entry<String, TColor> e: iconColors.entrySet()){\n//\t\t\te.getValue().saturate(0.15f);\n//\t\t}\n\t\treturn iconColors;\n\t}", "public void generateComposedValues () {\n \n String onValue = map.get ( \"on\" ).getDisplayText ();\n String offValue = map.get ( \"off\" ).getDisplayText ();\n if ( onValue != null && offValue != null ) {\n setValue ( \"light\", onValue + \" bis \" + offValue );\n }\n else {\n setValue ( \"light\", \"Werte nicht verf�gbar\" );\n }\n \n String dateValue = map.get ( \"date\" ).getDisplayText ();\n String timeValue = map.get ( \"time\" ).getDisplayText ();\n if ( dateValue != null && timeValue != null ) {\n setValue ( \"now\", dateValue + \" \"+ timeValue );\n }\n else {\n setValue ( \"now\", \"Werte nicht verf�gbar\" );\n }\n \n }", "private TreeMap<Character, Character> generateMap() {\r\n this.charMap = new TreeMap<Character, Character>();\r\n // generates an array of characters representing the alphabet\r\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\r\n for (int i=0; i<26; i++) {\r\n this.charMap.put(alphabet[i], alphabet[(i+key) % 26]);\r\n }\r\n\r\n return this.charMap;\r\n }", "private void buildKeyMap() {\n\t\tcharMapKey = new HashMap<Character , Integer>();\n\t\tcharMapKey.put('a', 0);\n\t\tcharMapKey.put('b', 0);\n\t\tcharMapKey.put('c', 1);\n\t\tcharMapKey.put('d', 1);\n\t\tcharMapKey.put('e', 2);\n\t\tcharMapKey.put('f', 2);\n\t\tcharMapKey.put('g', 3);\n\t\tcharMapKey.put('h', 3);\n\t\tcharMapKey.put('i', 4);\n\t\tcharMapKey.put('j', 4);\n\t\tcharMapKey.put('k', 5);\n\t\tcharMapKey.put('l', 5);\n\t\tcharMapKey.put('m', 6);\n\t\tcharMapKey.put('n', 6);\n\t\tcharMapKey.put('o', 7);\n\t\tcharMapKey.put('p', 7);\n\t\tcharMapKey.put('q', 8);\n\t\tcharMapKey.put('r', 8);\n\t\tcharMapKey.put('s', 9);\n\t\tcharMapKey.put('t', 9);\n\t\tcharMapKey.put('u', 10);\n\t\tcharMapKey.put('v', 10);\n\t\tcharMapKey.put('w', 11);\n\t\tcharMapKey.put('x', 11);\n\t\tcharMapKey.put('y', 12);\n\t\tcharMapKey.put('z', 12);\n\t}", "private void saveValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n // If the field is disabled, add the DEACTIVATED marker to the value of the field\n if (e.getKey().isEnabled())\n Pref.put(this, e.getValue(), e.getKey().getText().toString());\n else\n Pref.put(this, e.getValue(), Data.DEACTIVATED_MARKER + e.getKey().getText().toString());\n }\n\n }", "private Map<String,List<String>> createExtentionMap()\r\n\t{\r\n\t\tMap<String,List<String>> extMap = new HashMap<String, List<String>>();\t\r\n\t\t\r\n\t\tfor(String material :this.materialWorkflow.getMaterial())\r\n\t\t{\r\n\t\t\tString extentions = material.substring(material.indexOf(\".\")+1,material.length());\r\n\t\t\t\r\n\t\t\tif(!extMap.containsKey(extentions))\r\n\t\t\t{\r\n\t\t\t\tList<String> materialList = new ArrayList<String>();\t\t\r\n\t\t\t\tmaterialList.add(material);\r\n\t\t\t\t\r\n\t\t\t\textMap.put(extentions, materialList);\r\n\t\t\t}else\t\t\t\r\n\t\t\t\textMap.get(extentions).add(material);\t\t\t\r\n\t\t}\t\r\n\t\t\r\n\t\treturn extMap;\t\t\r\n\t}", "public Map getTutorInfo() {\n //Create a map of arraylists to hold all data\n Map<Integer, ArrayList<String>> info = new HashMap<Integer, ArrayList<String>>();\n\n //Grab info from screen\n EditText t = (EditText) findViewById(R.id.BioField);\n ArrayList<String> bioField = new ArrayList<String>();\n bioField.add(t.getText().toString());\n\n //Put info in Map\n info.put(1, bioField);\n info.put(2, subjectList);\n\n return info;\n }", "private Map<Integer, Integer> buildRenaming() {\n\t\tMap<Integer, Integer> map = new HashMap<>();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++)\n\t\t\t\tmap.put(board_p[i][j].var(), board[i][j].var());\n\t\t}\n\n\t\treturn map;\n\t}", "public void intersectFromClipboard() { genericClipboard(SetOp.INTERSECT); }", "public RibbonMenuContainerClipboard() {\r\n super(\"Clipboard tools\");\r\n\r\n }", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "public Map<String, VisualizationStyleParameter> getChangedParameterKeyToParameterMap()\r\n {\r\n return myChangedParameterSet.stream().collect(Collectors.toUnmodifiableMap(v -> v.getKey(), v -> v));\r\n }", "private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "HashMap<String, String> getAdditionalDescriptions();", "Map getIDPEXDataMap();", "Map<String, String> mo14888a();", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "private void appendMap(StringBuilder strBuilder, Map<String, String> map) {\n strBuilder.append(\"(\");\n for (Map.Entry<String, String> entry : map.entrySet()) {\n strBuilder.append(\"'\")\n .append(entry.getKey().replaceAll(\"'\", \"\\\\\\\\'\"))\n .append(\"'='\")\n .append(entry.getValue().replaceAll(\"'\", \"\\\\\\\\'\"))\n .append(\"', \");\n }\n // remove trailing \", \"\n strBuilder.deleteCharAt(strBuilder.length() - 1)\n .deleteCharAt(strBuilder.length() - 1)\n .append(\")\");\n }", "private static void addEntriesToMap(\n\t\tMap<Character,Integer> map,String toSort, String poolOfOccurances\n\t\t){\n\n\t\t//Loop the toStort\n\t\tfor(int i=0;i<toSort.length();i++){\n\t\t\tmap.put(toSort.charAt(i),new Integer(getCharacterFrequence(toSort.charAt(i),poolOfOccurances)));\n\t\t}\n\n\t}", "protected Map createAttachmentsMap() {\n return new HashMap();\n }", "public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }", "MAP createMAP();", "public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}", "private void prepSupplementalKeys() {\r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), \"clear\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"clear\", new KeyAction(\"C\"));\r\n \r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke('('), \"rightParen\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"rightParen\", new KeyAction(\"(\"));\r\n \r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke(')'), \"leftParen\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"leftParen\", new KeyAction(\")\"));\r\n \r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke('.'), \"decimal\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"decimal\", new KeyAction(\".\"));\r\n \r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, 0), \"backSpace\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"backSpace\", new KeyAction(BACKSPACE_SYMBOL));\r\n \r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke('='), \"equals\");\r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), \"equals\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"equals\", new KeyAction(\"=\"));\r\n }", "private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}", "private void copyMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (map[i][j] instanceof Player) {\n\t\t\t\t\tnewMap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof BlankSpace) {\n\t\t\t\t\tnewMap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Mho) {\n\t\t\t\t\tnewMap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Fence) {\n\t\t\t\t\tnewMap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public HashMap<String, String> convertToHashMapOfStrings()\n {\n HashMap<String, String> hashMapOfStrings = new HashMap<String, String>();\n for (DataPreferenceEnum key : preferencesHashMap.keySet())\n {\n String valueString = preferencesHashMap.get(key).toString();\n hashMapOfStrings.put(key.toString(), valueString);\n }\n\n return (hashMapOfStrings);\n }", "public static void main(String[] args) {\n\tMap <String, Integer>phones=new HashMap<>();\r\n\tphones.put(\"Mila\", 98232433);\r\n\tphones.put(\"Jenia\", 2834732);\r\n\tphones.put(\"Yerlan\", 77398274);\r\n\tphones.put(\"Mila\",1263584);\r\n\t//last one will override the first one\r\n\t\r\n\tIterator <String> iterator=phones.keySet().iterator();\r\n\twhile (iterator.hasNext()){\r\n\t\tString key=iterator.next();\r\n\t\tInteger value=phones.get(key);\r\n\t\tSystem.out.println(key+\" \"+value);\r\n\t}\r\n\t\r\n\t//store keys in Set\r\n\tSet<String> keys=phones.keySet();\r\n\tfor (String key : keys) {\r\n\t\tSystem.out.println(key);\r\n\t}\r\n\t//store values in Collection\r\n Collection <Integer> val=phones.values();\r\n for (Integer values : val) {\r\n \tSystem.out.println(values);\r\n\t\t\r\n\t}\r\n \r\n Set<Entry<String,Integer>> entry=phones.entrySet();\r\n for (Entry<String, Integer> entry2 : entry) {\r\n\t\t//System.out.println(entry2);\r\n\t\tSystem.out.println(entry2.getKey()+\" \"+entry2.getValue());\r\n\t}\r\n}", "private void initializeKeyBoardActions(){\n\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n cutMenuItem_actionPerformed(e);}},\r\n \"Cut\",\r\n KeyStroke.getKeyStroke('X', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n copyMenuItem_actionPerformed(e);}},\r\n \"Copy\",\r\n KeyStroke.getKeyStroke('C', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n pasteMenuItem_actionPerformed(e);}},\r\n \"Paste\",\r\n KeyStroke.getKeyStroke('V', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n selectAllMenuItem_actionPerformed(e);}},\r\n \"Select All\",\r\n KeyStroke.getKeyStroke('A', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n deleteMenuItem_actionPerformed(e);}},\r\n \"Delete\",\r\n KeyStroke.getKeyStroke(KeyEvent.VK_DELETE,0),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n\r\n}", "private Map<String, List<String>> getDictionary() {\n\t\tMap<String, List<String>> dictMap = dictionary.getMultiValueDict();\n\t\treturn dictMap;\n\t}", "Map<String, String> getCombinedMap() {\n Map<String, String> all = new HashMap<String, String>(plainProps);\n all.putAll(xProps);\n all.putAll(xxProps);\n all.putAll(sysProps);\n return all;\n }", "private void generateSampleKeys()\n {\n Iterator<ArrayList<String>> di = data.iterator();\n String key2;\n\n while (di.hasNext())\n {\n ArrayList<String> row = di.next();\n\n Iterator<Integer> kci = keyCols.iterator();\n StringBuffer buf = new StringBuffer();\n while (kci.hasNext())\n {\n Integer i = kci.next();\n String value = row.get(i);\n buf.append(value + '_');\n }\n key2 = new String(StringUtils.chop(buf.toString()));\n key2 = key2.toUpperCase();\n\n SampleWithProperties s = new SampleWithProperties(key2);\n\n // now have to add properties\n Iterator<Integer> pi = spts.keySet().iterator();\n while (pi.hasNext())\n {\n Integer key3 = pi.next();\n String val = row.get(key3);\n val = val.toUpperCase();\n s.addProperty(spts.get(key3), val);\n }\n swp.add(s);\n }\n }", "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "public static Map mapFrom(Object[][] keyValueSets) {\r\n\t\tMap map = new HashMap(keyValueSets.length);\r\n\t\tfor (int i=0; i<keyValueSets.length; i++) {\r\n\t\t\tmap.put(keyValueSets[i][0], keyValueSets[i][1]);\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "@Override\r\n public byte[] pack(Map<String, String> value) {\n return null;\r\n }", "private static HashMap<String,String> buildColumnMap() {\n HashMap<String,String> map = new HashMap<String,String>();\n map.put( STATE_NAME, STATE_NAME );\n map.put( CAPITAL_NAME, CAPITAL_NAME );\n map.put( STATE_ABBR, STATE_ABBR );\n map.put( STATE_FOUNDING_DATE, STATE_FOUNDING_DATE );\n map.put( STATE_FUN_FACT, STATE_FUN_FACT );\n map.put( BaseColumns._ID, \"rowid AS \" +\n BaseColumns._ID );\n map.put( SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, \"rowid AS \" +\n SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID );\n map.put( SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, \"rowid AS \" +\n SearchManager.SUGGEST_COLUMN_SHORTCUT_ID );\n return map;\n }", "@Basic\n Map<String, String> getLabelsMap();", "public static HashMap<Integer, String> createDictionary(HashSet<Integer> byteKey, ArrayList<String> bitsValue){\n HashMap<Integer, String> dictionary = new HashMap<>();\n ArrayList <Integer> bytesKey = new ArrayList<>(byteKey);\n for (int i = 0; i < bytesKey.size(); i++) {\n dictionary.put(bytesKey.get(i), bitsValue.get(i));\n }\n return dictionary;\n }", "private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }", "private void populateHashMap(Integer[] possibleValues) {\n for (JButton button : productButtons) {\n JComboBox prodAvail = new JComboBox(possibleValues);\n prodAvail.setSelectedIndex(inventoryManager.getQuantity(button.getText()));\n updateInv.put(button.getText(), prodAvail);\n }\n }", "private String createCustomInfoString() {\r\n String CustomInfo = \"\";\r\n Iterator<String> iterator = mCustomParameters.keySet().iterator();\r\n while (iterator.hasNext()) {\r\n String CurrentKey = iterator.next();\r\n String CurrentVal = mCustomParameters.get(CurrentKey);\r\n CustomInfo += CurrentKey + \" = \" + CurrentVal + \"\\n\";\r\n }\r\n return CustomInfo;\r\n }", "private void initializeNamesMap (Workspace[] wss) {\n // fill name mapping with proper values\n namesMap = new HashMap(wss.length * 2);\n for (int i = 0; i < wss.length; i++) {\n // create new string for each display name to be able to search\n // using '==' operator in findProgrammaticName(String displayName) method\n namesMap.put(wss[i].getName(), new String(wss[i].getDisplayName()));;\n }\n }", "private Map createSpecimenArrayMap(SpecimenArrayForm specimenArrayForm)\r\n\t{\r\n\t\tfinal Map arrayContentMap = new HashMap();\r\n\t\tString value = \"\";\r\n\t\tfinal int rowCount = specimenArrayForm.getOneDimensionCapacity();\r\n\t\tfinal int columnCount = specimenArrayForm.getTwoDimensionCapacity();\r\n\r\n\t\tfor (int i = 0; i < rowCount; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < columnCount; j++)\r\n\t\t\t{\r\n\t\t\t\tfor (int k = 0; k < AppletConstants.ARRAY_CONTENT_ATTRIBUTE_NAMES.length; k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tvalue = \"\";\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_ONE_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(i + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_TWO_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(j + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tarrayContentMap.put(SpecimenArrayAppletUtil\r\n\t\t\t\t\t\t\t.getArrayMapKey(i, j, columnCount, k), value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arrayContentMap;\r\n\t}" ]
[ "0.5729559", "0.5606878", "0.5587624", "0.5432009", "0.53962606", "0.5380115", "0.53657776", "0.5293852", "0.5277772", "0.5268455", "0.51977885", "0.5163469", "0.51582605", "0.5152403", "0.5133646", "0.5116195", "0.5083972", "0.5079812", "0.50687546", "0.5058627", "0.50525063", "0.5033914", "0.50230396", "0.49990404", "0.4983525", "0.49488854", "0.4937841", "0.49371284", "0.49332288", "0.49303225", "0.49141955", "0.4911755", "0.49050048", "0.48777393", "0.4861776", "0.48610055", "0.48539153", "0.48530254", "0.4838947", "0.48272017", "0.48239738", "0.48178345", "0.4811783", "0.48059496", "0.4786743", "0.4784689", "0.4782511", "0.4774894", "0.47716308", "0.475999", "0.47548467", "0.47532535", "0.47527066", "0.47510606", "0.47389", "0.47382078", "0.47345904", "0.4730332", "0.47264007", "0.47254315", "0.47184253", "0.4713693", "0.4711561", "0.47079918", "0.47024134", "0.47023985", "0.47010776", "0.46980187", "0.4697992", "0.46976483", "0.4697535", "0.46971238", "0.4695771", "0.4686254", "0.46859673", "0.46793216", "0.46787888", "0.4678402", "0.46771318", "0.4672421", "0.46707517", "0.46685866", "0.46613106", "0.46592575", "0.4657913", "0.46545118", "0.46498138", "0.4647509", "0.46472684", "0.46374846", "0.46357158", "0.4632446", "0.46313137", "0.46293414", "0.46287143", "0.46267486", "0.46252245", "0.4624768", "0.46233153", "0.46229124", "0.46194768" ]
0.0
-1
Perform whatever was selected on the menu
private boolean performAction(int action) { TagEditorFragment tagEditorFragment = (TagEditorFragment) caller; final int size = rows.getChildCount(); List<TagEditRow> selected = new ArrayList<>(); for (int i = 0; i < size; ++i) { View view = rows.getChildAt(i); TagEditRow row = (TagEditRow) view; if (row.isSelected()) { selected.add(row); } } switch (action) { case MENU_ITEM_DELETE: if (!selected.isEmpty()) { for (TagEditRow r : selected) { r.delete(); } tagEditorFragment.updateAutocompletePresetItem(null); } if (currentAction != null) { currentAction.finish(); } break; case MENU_ITEM_COPY: copyTags(selected, false); tagEditorFragment.updateAutocompletePresetItem(null); if (currentAction != null) { currentAction.finish(); } break; case MENU_ITEM_CUT: copyTags(selected, true); if (currentAction != null) { currentAction.finish(); } break; case MENU_ITEM_CREATE_PRESET: CustomPreset.create(tagEditorFragment, selected); tagEditorFragment.presetFilterUpdate.update(null); break; case MENU_ITEM_SELECT_ALL: ((PropertyRows) caller).selectAllRows(); return true; case MENU_ITEM_DESELECT_ALL: ((PropertyRows) caller).deselectAllRows(); return true; case MENU_ITEM_HELP: HelpViewer.start(caller.getActivity(), R.string.help_propertyeditor); return true; default: return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selected(String action);", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "public void menuClicked(MenuItem menuItemSelected);", "public void run(){\n int selection = -1;\n super.myConsole.listOptions(menuOptions);\n selection = super.myConsole.getInputOption(menuOptions);\n branchMenu(selection);\n }", "public void menu() {\n\t\tstate.menu();\n\t}", "public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}", "void clickAmFromMenu();", "protected void onSelectionPerformed(boolean success) {\n }", "void clickFmFromMenu();", "@Override\n public void menuSelected(MenuEvent e) {\n \n }", "public void toSelectingAction() {\n }", "public void run()\n {\n getMenuChoice();\n }", "@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}", "public void select() {\n \t\t\tString sinput = \"\";\r\n \t\t\tOption selected = null;\r\n \t\t\tErrorLog.debug(name + \" selected.\");\r\n \t\t\t\r\n \t\t\twhile (true) {\r\n \t\t\t\tSystem.out.println(toString()); //Print menu.\r\n \t\t\t\tsinput = read(); //Get user selection.\r\n \t\t\t\tif (!sinput.equalsIgnoreCase(\"exit\")) {\r\n \t\t\t\t\tselected = options.get(sinput); //Find corresponding option.\r\n \r\n \t\t\t\t\tif (selected != null) //Sinput corresponds to an extant option.\r\n \t\t\t\t\t\tselected.select(); //Select the selected.\r\n \t\t\t\t\telse\r\n \t\t\t\t\t\tprint(sinput + \" is not a valid option\");\r\n \t\t\t\t} else\r\n \t\t\t\t\t{print(\"Returning to previous menu.\"); break;}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tErrorLog.debug (\"Quitting \" + name + \". Sinput:\"+sinput);\r\n \t\t\t\r\n \t\t\treturn;\r\n \t\t}", "public void actionPerformed(ActionEvent ae) {\n rb_selection = ae.getActionCommand(); \t \n }", "protected void ACTION_B_SELECT(ActionEvent arg0) {\n\t\tchoseInterface();\r\n\t}", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "@Override\n public boolean onMenuItemSelected(int featureId, MenuItem item) {\n int lSelectedItemID = item.getItemId(); // 액션 메뉴 아이디 확인함.\n if(lSelectedItemID == R.id.action_example){\n // To-do something\n }\n return super.onMenuItemSelected(featureId, item);\n }", "default public void clickMenu() {\n\t\tremoteControlAction(RemoteControlKeyword.MENU);\n\t}", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "private void menuOptionOne(){\n SimulatorFacade.printTransactions();\n pressAnyKey();\n }", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "void onMenuItemClicked();", "public void select(int action) {\n\t\tselected = true;\n\t\tthis.action = action;\n\t}", "@Override\n public void select(Menu context) {\n updateControllable(context);\n currentStructure.assignWorkersToPowerHarvest(context.getFocus(), PopUpMenuWindow.WorkerMenu());\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgsv.startSelectState();\n\t\t\t}", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "public void setButtonSelection(String action);", "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 menuSelected (MenuEvent event) {\n TreeEditorPanel panel = (TreeEditorPanel)SwingUtilities.getAncestorOfClass(\n TreeEditorPanel.class, getFocusOwner());\n if (panel != null) {\n edit.getItem(CUT_INDEX).setAction(panel.getCutAction());\n edit.getItem(CUT_INDEX + 1).setAction(panel.getCopyAction());\n edit.getItem(CUT_INDEX + 2).setAction(panel.getPasteAction());\n edit.getItem(CUT_INDEX + 3).setAction(panel.getDeleteAction());\n } else {\n restoreActions();\n }\n }", "@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public void userForm(){\n\t\tSystem.out.print(menu);\n\t\tScanner input = new Scanner(System.in);\n\t\tselection = input.nextInt();\n\t\tmenuActions(selection);\n\t\t}", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public static void menuActions(int selection){\n\t\tselection = 1;\n\t\tswitch (selection){\n\t\t\tcase 1: //prompt user to input a new record, save response.\n\t\t\t\t//call method addNew here\n\t\t\tbreak; \n\t\t\tcase 2: //prompt user to search using first, last, or telephone\n\t\t\t//call method to search\n\t\t\t//display results\n\t\t\t//if multiple, select which to delete\n\t\t\t//call method for arraylist to delete \n\t\t\tbreak;\n\t\t\tcase 3: //prompt user to search by telephone\n\t\t\t//call method to search by #\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 4: //prompt user to search by first name\n\t\t\t//call method to search by firstName\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 5: //prompt user to search by last name\n\t\t\t//call method to search by LastName\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 6: //prompt user to search by methods 1,2, or 3\n\t\t\t//call method to search\n\t\t\t//display results\n\t\t\t//verify selection with user\n\t\t\t//prompt user to replace input\n\t\t\tbreak;\n\t\t\tcase 7: //terminate program;\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\t\tdefault: \n\t\t\tSystem.out.print(\"Please enter a valid selection (1-7)\");\n\t\t\t//call userForm to prompt a new menu box;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }", "abstract public void cabMultiselectPrimaryAction();", "@Override public void doAction(int option)\r\n{\r\n switch(option)\r\n {\r\n case 1: //view the map\r\n viewMap();\r\n break;\r\n case 2: //view/print a list\r\n viewList();\r\n break;\r\n case 3: // Move to a new location\r\n moveToNewLocation();\r\n break;\r\n case 4: // Manage the crops\r\n manageCrops();\r\n break;\r\n case 5: // Return to Main Menu\r\n System.out.println(\"You will return to the Main Menu now\");\r\n \r\n }\r\n}", "public void selectionChanged(Action item);", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tguiManager.getGameController().processMenuInput(MENU_ITEM.MNU_LEVEL_CHOOSE);\n\t\t\t\t}", "private void doSelect() {\n this.setVisible(false);\n }", "protected final void onSelect(CommandSender sender) {\n setInteracting(sender);\n onSelect();\n }", "private void doSelect(MouseEvent e) {\n if (e != null && e.getClickCount() > 1)\n doOK();\n }", "public void consoleSelectItem() throws SQLException{\n System.out.println(\"came here\");\n ConsoleClass obj = new ConsoleClass();\n String item = console_actionItemList.getSelectionModel().getSelectedItem();\n obj.consoleSelectItem(this,item);\n }", "default public void clickSelect() {\n\t\tremoteControlAction(RemoteControlKeyword.SELECT);\n\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenu.setMouseClick(true);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tif (evt.getSource() == jMenuItem7) {\n\t\t\t\t\tSystem.out.println(\"Selected: \"\n\t\t\t\t+ evt.getActionCommand());\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t\t.getComponents()[0]).setMode(2);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n MenuItemCommand command = menuCommandHandler.getCommand(e.getActionCommand());\n if (command != null) {\n command.execute();\n return;\n }\n command = menuCommandHandler.getCommand(MenuItem.findMenuItem(e.getActionCommand()));\n if (command != null) command.execute();\n }", "@Override\r\n public void run() {\n opsi_menu();\r\n\r\n }", "public void getMenuChoice()\n {\n boolean finished = false;\n \n while(!finished)\n {\n printHeading();\n String choice = Menu.getMenuChoice(menuChoices);\n executeMenuChoice(choice);\n \n if(choice.startsWith(\"quit\"))\n {\n finished = true;\n }\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item)\n\t{\n\t\tsuper.onOptionsItemSelected(item);\n\t\treturn visitor.handleMenuItemSelection(item);\n\t}", "void onItemSelected(Bundle args);", "abstract public boolean cabOnMenuItemClicked(ActionMode mode, MenuItem item);", "public void pressMainMenu() {\n }", "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}", "public void mousePressed(MouseEvent e) {\n JMenu menu = (JMenu)menuItem;\n if (!menu.isEnabled())\n return;\n MenuSelectionManager manager = \n MenuSelectionManager.defaultManager();\n if(menu.isTopLevelMenu()) {\n if(menu.isSelected()) {\n manager.clearSelectedPath();\n } else {\n Container cnt = menu.getParent();\n if(cnt != null && cnt instanceof JMenuBar) {\n MenuElement me[] = new MenuElement[2];\n me[0]=(MenuElement)cnt;\n me[1]=menu;\n manager.setSelectedPath(me); } } }\n MenuElement selectedPath[] = manager.getSelectedPath();\n if (selectedPath.length > 0 && \n selectedPath[selectedPath.length-1] != menu.getPopupMenu()) {\n if(menu.isTopLevelMenu() || \n menu.getDelay() == 0) {\n appendPath(selectedPath, menu.getPopupMenu());\n } else {\n setupPostTimer(menu); } } }", "public void openMenu() {\r\n\t\tmenu.click();\r\n\t}", "public void menuSelected(MenuEvent evt) {\n JMenu source = (JMenu) evt.getSource();\n\n if (source.getText().equals(\"View...\")) {\n ((JMenuItem) source).setSelected(false);\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tif (evt.getSource() == jMenuItem6) {\n\t\t\t\t\tSystem.out.println(\"Selected: \"\n\t\t\t\t+ evt.getActionCommand());\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t\t.getComponents()[0]).setMode(1);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t\treturn onMenuItemSelected(item.getItemId());\r\n\t}", "void askMenu();", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tif (evt.getSource() == jMenuItem4) {\n\t\t\t\t\tSystem.out.println(\"Selected: \"\n\t\t\t\t+ evt.getActionCommand());\n\t\t\t\t((Echiquier) panelChess\n\t\t\t\t.getComponents()[0]).setUci(\n\t\t\t\tnew CommunicationUCI(\"src\\\\moteurs\\\\\"\n\t\t\t\t+ \"Rybka v2.3.2a.mp.w32.exe\"),\n\t\t\t\tnew CommunicationUCI(\"src\\\\moteurs\\\\\"\n\t\t\t\t+ \"Rybkav2.3.exe\"));\n\t\t\t\t}\n\t\t\t}", "private void hookSingleClickAction() {\n\t\tthis.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tsingleClickAction.run();\n\t\t\t}\n\t\t});\n\t}", "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "public void menu()\r\n\t{\r\n\t\t//TODO\r\n\t\t//Exits for now\r\n\t\tSystem.exit(0);\r\n\t}", "void stateSelected(State state);", "public void act() \n {\n if(Greenfoot.mouseClicked(this)){\n storeMenu.getLastPressed(this,item,cost);\n changeImage();\n } \n }", "private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}", "@Listen(\"onClick = #selectTree\")\n\tpublic void select(){\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\ttree.setSelectedItem(items[items.length - 1]);\n\t}", "public void buildSelectedAction() {\n\t\tfinal List<Project> selectedItems = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (!selectedItems.isEmpty()) {\n\t\t\tnavigationController.clickProgress();\n\t\t\tprojectService.build(selectedItems, false);\n\t\t}\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\teventHandler.invoke(new HarvestSelectedEvent());\n\t\t}", "public void updateSelection() {\n\t\t\n\t}", "private void use() {\n switch (choices.get(selection)) {\n case INFO : { \n AbstractInMenu newMenu = new ItemInfo(sourceMenu, item);\n this.sourceMenu.setMenu(newMenu);\n newMenu.setVisible(true);\n } break;\n case USE : {\n entity.use(item); \n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case EQUIP : {\n entity.equip(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case ACTIVE : {\n entity.setActiveItem(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case UNEQUIP : {\n entity.equip(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case UNACTIVE : {\n entity.setActiveItem(null);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case DROP : {\n entity.drop(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break; \n case PLACE : {\n entity.placeItem(item);\n entity.removeItem(item); \n sourceMenu.activate();\n sourceMenu.setState(true); \n } break;\n case CLOSE : { \n sourceMenu.activate();\n } break;\n case DESTROY : {\n entity.removeItem(item);\n sourceMenu.activate();\n sourceMenu.setState(true); \n } break;\n }\n }", "public void beginSelection()\n {\n\tisMultiSelection = true;\n\tsetMaxCheckCount(-1);\n }", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tif (evt.getSource() == jMenuItem9) {\n\t\t\t\t\tSystem.out.println(\"Selected: \"\n\t\t\t\t+ evt.getActionCommand());\n\t\t\t\t\t/*\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t.getComponents()[0])\n\t\t\t\t\t.setLightColor(Color.black);*/\n\t\t\t\t}\n\t\t\t}", "public void branchMenu(int option){\n switch(option){\n case 1:\n System.out.println(\"Starting security view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.SECURITY);\n break;\n case 2:\n System.out.println(\"Starting application view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.APPLICATION);\n break;\n case 3:\n System.out.println(\"Starting manager view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.MANAGER);\n break;\n case 4:\n System.out.println(\"Starting swipe view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.SWIPE);\n break;\n case 5:\n System.out.println(\"Quitting application...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.QUIT);\n break;\n }\n }", "@Override\n public void perform() {\n pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last()).select();\n pickList.advanced().getAddButtonElement().click();\n pickList.advanced().getRemoveButtonElement().click();\n }", "@Override\n public boolean onPrepareActionMode(final ActionMode mode, Menu menu) {\n isEnable = true;\n //create method\n clickItem(holder);\n //set observer on to get text method\n mainViewModel.getSelectedLiveData().observe((LifecycleOwner) activity,\n new Observer<String>() {\n @Override\n public void onChanged(String s) {\n //when text change\n //set text on action mode title\n mode.setTitle(String.format(\"%s %s %s\",context.getResources()\n .getString(R.string.selected),s ,\n context.getResources().getString(R.string.item) ));\n }\n });\n return true;\n }", "public void selectAProduct() {\n specificProduct.click();\n }", "private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }", "public void buttonAction(int selectedFeature) {\n\t\tmyParent.stopCustomCursor(this.couplerMullionPanel);\n\t\t\n\t\tthis.myParent.setActionTypeEvent(1);\n\t\t\n\t\tif (selectedLevel == 1) {\n\t\t\t\n\t\t\tif (selectedFeature == 1) {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"vCouplerCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t} else {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"hCouplerCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t}\n\t\t} else {\n\t\t\tif (selectedFeature == 1) {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"vMullionCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t} else {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"hMullionCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void menuItemClicked( Menu2DEvent e );", "public void actionPerformed (ActionEvent press){\r\n\t\t\tif(press.getSource() == sushimenu){\r\n\t\t\r\n\t\t\tnew rollMenu();\r\n\t\t}else if(press.getSource() == meatmenu){\r\n\t\t\t\r\n\t\t\tnew meatMenu();\r\n\t\t}else if(press.getSource() == soupsaladmenu){\r\n\t\t\t\r\n\t\t\tnew saladMenu();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t}", "@Override\n public void inputHandling() {\n if (input.clickedKeys.contains(InputHandle.DefinedKey.ESCAPE.getKeyCode())\n || input.clickedKeys.contains(InputHandle.DefinedKey.RIGHT.getKeyCode())) { \n if (sourceMenu != null) {\n exit();\n sourceMenu.activate(); \n return;\n }\n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.UP.getKeyCode())) { \n if (selection > 0) {\n selection--;\n }\n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.DOWN.getKeyCode())) { \n if (selection < choices.size() - 1) {\n selection++;\n } \n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.ENTER.getKeyCode())) {\n if (choices.size() > 0) {\n use();\n }\n exit(); \n }\n }", "public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}", "public void category1() {\r\n\t\tmySelect1.click();\r\n\t}", "void onItemSelected();", "void onItemSelected();", "public void itemSelected(boolean selected);", "private void menu(){\n System.out.println(\"\");\n System.out.println(\"Round: \"+round);\n System.out.println(\"Please choose your action: \");\n\n Scanner tokenizer = parser.getCommand(); // prompt the user to put a new command in\n Command command = parser.parseCommand(tokenizer); // send the \"scanner\" result to make it into a command\n processCommand(command); // process the command\n\n }", "public native MenuItem getSelectedItem();", "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}", "private void selectMenu()\n\t{\n\t\t//clear the panel first\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"Select two rows to inspect data:\");\n\t\t\n\t\t//set up panel\n\t\tgetPanel1().setLayout(null);\n\t\tadd(getPanel1(),BorderLayout.CENTER);\n\t\t\n\t\t//add buttons to panel\n\t\tgetPanel1().add(getButton1());\n\t\tgetPanel1().add(getTopics1());\n\t\tgetPanel1().add(getTopics2());\n\t\tgetPanel1().add(label1);\n\t\t\n\t\t\n\t\t//manually set their position\n\t\tlabel1.setBounds(380,10,400,40);\n\t\tgetButton1().setBounds(430,350,230,60);\n\t\tgetTopics1().setBounds(430,80,230,60);\n\t\tgetTopics2().setBounds(430,215,230,60);\n\n\t\tlabel1.setFont(new Font(\"Serif\", Font.CENTER_BASELINE, 24));\t\n\t}", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tif (getSelected() == null)\n\t\t\t{\n\t\t\t\tprintMsg(\"Select cards to play.\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgame.makeMove(activePlayer, getSelected());\n\t\t\t}\n\t\t}", "private void selectedMenuItemAtPosition(int position) {\n switch (DrawerIndex.fromInteger(position)) {\n case INDEX_VIDEO:\n Log.d(Constants.LOG_TAG, \"Selected Video\");\n FullscreenVideoWebviewFragment videoFragment = new FullscreenVideoWebviewFragment();\n showFragment(videoFragment, TAG_VIDEO_FRAGMENT);\n break;\n case INDEX_KITTENS:\n Log.d(Constants.LOG_TAG, \"Selected Kittens!\");\n KittensFragment kittensFragment = new KittensFragment();\n showFragment(kittensFragment, TAG_KITTENS_FRAGMENT);\n break;\n case INDEX_TEXT_SPAN:\n Log.d(Constants.LOG_TAG, \"Selected Text Span!\");\n SpannedTextFragment spannedTextFragment = new SpannedTextFragment();\n showFragment(spannedTextFragment, TAG_TEXT_SPAN_FRAGMENT);\n break;\n// case INDEX_IMMERSIVE:\n// Log.d(Constants.LOG_TAG, \"Selected Immersive!\");\n// ImmersiveFragment immersiveFragment = new ImmersiveFragment();\n// showFragment(immersiveFragment, TAG_IMMERSIVE_FRAGMENT);\n// break;\n case INDEX_NOTIFICATION:\n Log.d(Constants.LOG_TAG, \"Selected Notifications!\");\n NotificationFragment notificationFragment = new NotificationFragment();\n showFragment(notificationFragment, TAG_NOTIFICATION_FRAGMENT);\n break;\n default:\n Log.e(Constants.LOG_TAG, \"Unhandled position selection from drawer \" + position);\n break;\n }\n }" ]
[ "0.7679045", "0.759307", "0.7402322", "0.7402322", "0.7336232", "0.7182099", "0.70760673", "0.70628226", "0.7026349", "0.700215", "0.6969819", "0.6927075", "0.69259125", "0.69074327", "0.6862163", "0.6851109", "0.6842173", "0.6830213", "0.68054944", "0.6800413", "0.6767077", "0.67584604", "0.6723501", "0.6693653", "0.66929483", "0.6692166", "0.66613215", "0.6627225", "0.6623562", "0.65923005", "0.658039", "0.6529281", "0.65274096", "0.6526127", "0.6523198", "0.65017575", "0.64976144", "0.6495257", "0.64879656", "0.64871156", "0.6483035", "0.6480868", "0.6476334", "0.6466193", "0.6451122", "0.64486986", "0.6441642", "0.64363855", "0.64051527", "0.64045376", "0.6403958", "0.6399824", "0.6399307", "0.6398055", "0.6387788", "0.637748", "0.6369755", "0.6356618", "0.6350162", "0.6346754", "0.6338403", "0.63319445", "0.63251185", "0.63132083", "0.6282408", "0.62757003", "0.6275258", "0.6261257", "0.6254788", "0.62535894", "0.6246976", "0.6243954", "0.62398726", "0.6236916", "0.62292033", "0.6218765", "0.6213719", "0.62066305", "0.62043655", "0.620082", "0.619962", "0.619262", "0.6192474", "0.61919767", "0.61861545", "0.6183488", "0.6168291", "0.6154623", "0.6151812", "0.6146224", "0.6145266", "0.6145266", "0.6140193", "0.61319053", "0.61290693", "0.61179656", "0.61140245", "0.61124784", "0.6111374", "0.610091", "0.6100899" ]
0.0
-1
Sets the month, provided it is between 0 and 11; otherwise no changes are made. month must be consistent with the year and day of month. For example, if month is 1 (Februray), but year is 2016 and day of month is 30 as stored in the DateInterface object, the month stored in the DateInterface object must not be changed. The client must do some extra work to effect the change: for example, change the day to 1 and then change month. Anther example is changing month to 3 (April) when day of month is 31. 2
@Override public boolean setMonth(int month) { try { GregorianCalendar tempCalendar =(GregorianCalendar) calendar.clone(); tempCalendar.setLenient(false); tempCalendar.set(Calendar.MONTH, month); tempCalendar.getTime(); } catch (Exception e) { return false; } calendar.set(Calendar.MONTH, month); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMonth(int month) {\n if(month < 1 || month > 12) {\n this.month = 1;\n } else {\n this.month = month;\n }\n }", "public void setMonth(int month)\n {\n this.month = month;\n }", "public void setMonth(int month) {\n\t\tthis.date.setMonth(month);\n\t}", "public void setMonth(Integer month) {\r\n this.month = month;\r\n }", "public void setMonth(final int month) {\n this.month = month;\n }", "public void setMonth(Integer month) {\n this.month = month;\n }", "public void setMonth(Integer month) {\n this.month = month;\n }", "public void setMonth(final int month) {\n\t\tthis.month = month;\n\t}", "public void changeMonth(int newMonth) {\n this.month = newMonth;\n }", "public void setMonth(int month) {\n\t\tthis.month = month;\n\t}", "public void setMonth(int newMonth) {\n setMonth(newMonth, true);\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "public void setMonth(byte value) {\r\n this.month = value;\r\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "public final native double setMonth(int month) /*-{\n this.setMonth(month);\n return this.getTime();\n }-*/;", "public void setMonth(String month) {\r\n this.month = month;\r\n }", "public void setMonth(int month) throws InvalidDateException {\r\n\t\tif (month <= 12 & month >= 1) {\r\n\t\t\tthis.month = month;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic month for the date (between 1 and 12) !\");\r\n\t\t}\r\n\t}", "public DueDateBuilder setMonth(int month) {\n this.month = month;\n return this;\n }", "public boolean setMonth(int newMonth) {\n\t\tthis.month = newMonth;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\treturn true;\n\t}", "public static final Function<Date,Date> setMonth(final int value) {\r\n return new Set(Calendar.MONTH, value);\r\n }", "public final native double setMonth(int month, int dayOfMonth) /*-{\n this.setMonth(month, dayOfMonth);\n return this.getTime();\n }-*/;", "public void setMonths(int months) {\n this.months = months;\n }", "public void setMonth(java.lang.String r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: gov.nist.javax.sip.header.SIPDate.setMonth(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setMonth(java.lang.String):void\");\n }", "public void setMonthParam(String monthParam) {\r\n this.monthParam = monthParam;\r\n }", "public boolean setMonth(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mMonth = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }", "public void setDate(int year, int month, int dayOfMonth)\n {\n this.date = new GregorianCalendar(year, month-1, dayOfMonth);\n }", "public CinemaDate setMonth(String m) {\n return new CinemaDate(m, this.day, this.time);\n }", "public void setDate(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }", "public boolean setMonth(int newMonth, boolean check) {\n\t\tthis.month = newMonth;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\tif (check) {\n\t\t\tdouble oldYear = this.year;\n\t\t\tdouble oldDay = this.day;\n\t\t\tIDate dt = swe_revjul(this.jd, this.calType); // -> erzeugt neues\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Datum\n\t\t\tthis.year = dt.year;\n\t\t\tthis.month = dt.month;\n\t\t\tthis.day = dt.day;\n\t\t\tthis.hour = dt.hour;\n\t\t\treturn (this.year == oldYear && this.month == newMonth && this.day == oldDay);\n\t\t}\n\t\treturn true;\n\t}", "public Month(int month, Day startDay, boolean isLeapYear) {\n switch (month) {\n case 0:\n case 2:\n case 4:\n case 6:\n case 7:\n case 10:\n case 11:\n this.days = 31;\n break;\n case 3:\n case 5:\n case 8:\n case 9:\n this.days = 30;\n break;\n case 1:\n if (isLeapYear) {\n this.days = 29;\n } else {\n this.days = 28;\n }\n break;\n }\n this.start = startDay.getValue();\n }", "public void setDate(int month, int day) {\r\n\t\tString dayString = \"\";\r\n\t\tif(day < 10)\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < 10; i++)\r\n\t\t\t{\r\n\t\t\t\tif(day == i)\r\n\t\t\t\t{\r\n\t\t\t\t\tdayString = \"0\" + i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.date = month + \"-\" + dayString;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.date = month + \"-\" + day;\r\n\t\t}\r\n\t}", "public final native double setUTCMonth(int month) /*-{\n this.setUTCMonth(month);\n return this.getTime();\n }-*/;", "public void setMonths(String months) {\n this.months = parseMonths(months);\n }", "public void setMonths(int[] months) {\n if (months == null)\n months = new int[] {};\n this.months = months;\n }", "public void setMonth(int d)\n\t{\n\t\tm_calendar.set(Calendar.MONTH,d);\n\n\t}", "public int getMonthInt() {\n return month;\r\n }", "public int getMonth(){\n\t\treturn month;\n\t}", "public int getMonth() {\n\t\treturn month;\n\t}", "public void updateMonth(int value)\n {\n this.currentCalendar.add(Calendar.MONTH, value);\n }", "public int getMonth() {\n return month;\n }", "public Integer getMonth() {\r\n return month;\r\n }", "public int getMonth() {\n\t\treturn month;\n\t}", "@Override\n public void onMonthChanged(Date date) {\n }", "private void setMonthSelection() {\n int displayMonth = getIntent().getIntExtra(\"month\", -1);\n if (displayMonth == -1) {\n Calendar cal = Calendar.getInstance();\n selectMonth.setSelection(cal.get(Calendar.MONTH) + 1);\n } else {\n selectMonth.setSelection(displayMonth);\n }\n }", "private void monthChanged(int oldMonthValue, int oldYearValue) {\r\n updateControlsFromTable();\r\n\r\n // fire property change\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, getMonth());\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n\r\n // clear selection when changing the month in view\r\n calendarTable.getSelectionModel().clearSelection();\r\n\r\n calendarTable.repaint();\r\n }", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "@JsonCreator\n public BirthYearMonth(\n @JsonProperty(\"year\") @JsonPropertyDescription(\"4-digit year\") int year,\n @JsonProperty(\"month\") @JsonPropertyDescription(\"1-2-digit month from 1-12\") int month\n ) {\n AgeUtil.checkYear(year);\n if (month<1 || month>12) throw new IllegalArgumentException(\"Month must be 1-12 but was: \"+month+\"!\");\n this.year = year;\n this.month = month;\n }", "public void setMonthDateTime(int nHour, int nMin, int nMonthDate)\n\t{\n\t\tsetType(AT_MONTH_DATE);\n\t\tsetHour(nHour);\n\t\tsetMinute(nMin);\n\t\tsetData(new Integer(nMonthDate));\n\t}", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "public void setId(int aMonthId) {\r\n\t\tid = aMonthId;\r\n\t}", "public int getMonth()\n {\n return month;\n }", "public Month () {\n monthNumber = 1;\n }", "@JsonSetter(\"exp_month\")\r\n public void setExpMonth (int value) { \r\n this.expMonth = value;\r\n }", "public String getMonth() {\r\n return month;\r\n }", "public final native double setUTCMonth(int month, int dayOfMonth) /*-{\n this.setUTCMonth(month, dayOfMonth);\n return this.getTime();\n }-*/;", "@FXML\n private void changeMonth() throws NoSuchMethodException\n {\n String selected = cmbMonth.getValue();\n for (int i = 0; i < months.size(); i++)\n {\n if (selected.equals(months.get(i)))\n {\n month = i;\n }\n }\n fillCalendar();\n setMonth();\n parentContr.updatePieChart();\n\n }", "public int getMonth() {\r\n // ersetzt deprecated Methode Date.getMonth()\r\n return this.month;\r\n }", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public void setMonthOfYear(String monthOfYear) {\r\n this.monthOfYear = monthOfYear;\r\n }", "public static int getCurrentMonth(int month) {\n month++;\n return month;\n }", "private int checkMonth(int testMonth) {\n\t\tif (testMonth > 0 && testMonth <= 12) // validate month\n\t\t\treturn testMonth;\n\t\telse // month is invalid\n\t\t\tthrow new IllegalArgumentException(\"month must be 1-12\");\n\t}", "public void setJP_AcctMonth (String JP_AcctMonth);", "public String getMonth() {\n return month;\n }", "@Override\n\tpublic int updateMonth(Month11DTO mon) {\n\t\treturn getSqlSession().update(\"monUpdate\", mon);\n\t}", "public Date(String month, int year) {\n\t\t\tthis.weekday = 0;\n\t\t\tthis.day = 0;\n\t\t\tthis.month = notEmpty(month);\n\t\t\tthis.year = zeroOrMore(year);\n\t\t}", "public int getMonthValue(){\n\t\treturn monthValue;\n\t}", "public void setStartMonth(java.math.BigInteger startMonth) {\r\n this.startMonth = startMonth;\r\n }", "public byte getMonth() {\n return month;\n }", "public void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\tmView.goTo(dayOfMonth, monthOfYear, year);\n\t\t\t\t\tc.set(year, monthOfYear, dayOfMonth);\t\t\n\t\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t\t\n\t\t\t}", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public void setDay(int year, int month, int day)\n\t{\n\t\t m_calendar.set(year,month-1,day);\n\n\t}", "public CopticMonth getMonth() {\n\n return CopticMonth.valueOf(this.cmonth);\n\n }", "public static void printMonth(int year, int month) {\n System.out.println(month + \" : \" + year);\n }", "public Month getMonth(){\n\t return this.month;\n }", "public byte getMonth() {\r\n return month;\r\n }", "public int getMonth() {\r\n return FormatUtils.uint8ToInt(mMonth);\r\n }", "public void setSMonth(int m)\n\t{\n\t\tsmonth = getMonthAdapter().getPosition(Integer.toString(m));\n\t}", "public static void printMonth(int year, int month) {\n System.out.println(\" \");\n System.out.println(\" \");\n getMonthName(month,year);\n printTitle(year,month);//call the method printTitle with the values year and month\n printMonthBody(year,month);//call the method printMonthBody with the values year and month\n }", "public static void setEndOfMonth(Calendar calendar) {\r\n\t\tcalendar.set(Calendar.MONTH, calendar.get(Calendar.MONTH) + 1);\r\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, 1);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\tcalendar.set(Calendar.MILLISECOND, 0);\r\n\t}", "public void setDayOfMonth(int d)\n\t{\n\t\tm_calendar.set(Calendar.DAY_OF_MONTH,d);\n\n\t}", "public void setDay(int year, int month, int day) {\n cal = Calendar.getInstance();\n cal.set(year, month, day);\n }", "protected void setMonthDisplayed(MonthAdapter.CalendarDay date) {\n mCurrentMonthDisplayed = date.month;\n }", "private int getCalendarMonth(String month){\n month = month.toUpperCase();\n if (month.indexOf(\"JAN\") == 0 ) {\n return Calendar.JANUARY;\n } else if (month.indexOf(\"FEB\") == 0) {\n return Calendar.FEBRUARY;\n } else if (month.indexOf(\"MAR\") == 0) {\n return Calendar.MARCH ;\n } else if (month.indexOf(\"APR\") == 0) {\n return Calendar.APRIL;\n } else if (month.indexOf(\"MAY\") == 0) {\n return Calendar.MAY;\n } else if (month.indexOf(\"JUN\") == 0) {\n return Calendar.JUNE;\n } else if (month.indexOf(\"JUL\") == 0) {\n return Calendar.JULY;\n } else if (month.indexOf(\"AUG\") == 0) {\n return Calendar.AUGUST;\n } else if (month.indexOf(\"SEP\") == 0) {\n return Calendar.SEPTEMBER;\n } else if (month.indexOf(\"OCT\") == 0) {\n return Calendar.OCTOBER;\n } else if (month.indexOf(\"NOV\") == 0) {\n return Calendar.NOVEMBER;\n } else if (month.indexOf(\"DEC\") == 0) {\n return Calendar.DECEMBER;\n } else {\n throw new IllegalArgumentException(\"month must be one of {JAN, \" +\n \"FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV ,DEC)\");\n }\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, month);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "public byte getMonth() {\n return month;\n }", "public void setDayOfMonth(int dayOfMonth){\n\t\tthis.dayOfMonth = dayOfMonth;\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(Integer.toString(i), mnths[i]);\n } else {\n\n months.put(Integer.toString(i), mnths[i]);\n }\n }\n // get day,month,year\n month = month + 1;\n String date = month + \"-\" + dayOfMonth + \"-\" + year;\n this.day = dayOfMonth;\n this.stringDay = String.valueOf(dayOfMonth);\n this.year = String.valueOf(year);\n this.month = months.get(String.valueOf(month));\n monthCollection = month + \"-\" + year;\n // set date in view\n dateText.setText(date);\n }", "public final native int getMonth() /*-{\n return this.getMonth();\n }-*/;", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "private void resetCalendarToMonth(Calendar calendar) {\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, 1);\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\n\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\tcalendar.set(Calendar.SECOND, 0);\n\t\tcalendar.set(Calendar.MILLISECOND, 0);\n\t}", "public BirthYearMonth(@NotNull String year, @NotNull String month) throws IllegalArgumentException {\n this(Integer.parseInt(year,10), Integer.parseInt(month,10));\n }", "private void adjustDayInMonthIfNeeded(int month, int year) {\n int day = mCurrentDate.get(Calendar.DAY_OF_MONTH);\n int daysInMonth = getDaysInMonth(month, year);\n if (day > daysInMonth) {\n mCurrentDate.set(Calendar.DAY_OF_MONTH, daysInMonth);\n }\n }", "public void set(int year, int month, int day) {\r\n\t\tthis.year = year;\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\r\n\t\tlabel = MONTHS[month] + \" \" + day + \", \" + year;\r\n\t\trepaint();\r\n\r\n\t\t// // let all listeners know that the date has changed.\r\n\t\tTextEvent e = new TextEvent(this, TextEvent.TEXT_VALUE_CHANGED);\r\n\t\tfor (int i = 0; i < listeners.size(); i++) {\r\n\t\t\tTextListener tl = (TextListener) listeners.elementAt(i);\r\n\t\t\ttl.textValueChanged(e);\r\n\t\t}\r\n\t}" ]
[ "0.76652247", "0.75799286", "0.75550914", "0.75256556", "0.74927694", "0.7477999", "0.7477999", "0.74282056", "0.73804843", "0.7378452", "0.7345561", "0.7097163", "0.7094455", "0.7094455", "0.7094455", "0.7077449", "0.7072431", "0.70204735", "0.69860065", "0.6951002", "0.69027805", "0.66791946", "0.6659893", "0.6617557", "0.65304506", "0.6516778", "0.64786285", "0.64693594", "0.64681226", "0.64608216", "0.64452404", "0.64257485", "0.63788164", "0.63567626", "0.6340947", "0.63137907", "0.6307051", "0.63024247", "0.62789845", "0.62770486", "0.6265502", "0.626007", "0.6221495", "0.62140554", "0.6210871", "0.619299", "0.61514986", "0.6149139", "0.6129895", "0.6129895", "0.6122491", "0.6063391", "0.6062585", "0.6062585", "0.6039854", "0.60307384", "0.60278517", "0.6013683", "0.6011275", "0.6002748", "0.5999233", "0.5990929", "0.5974949", "0.5944546", "0.593725", "0.59360456", "0.5934317", "0.58996856", "0.5877613", "0.5875142", "0.5868331", "0.5863347", "0.58614373", "0.5858625", "0.58520246", "0.58520246", "0.58520246", "0.58480257", "0.58467025", "0.58371484", "0.58165765", "0.5800407", "0.5790462", "0.57867724", "0.57797664", "0.577565", "0.57658607", "0.57477456", "0.5741993", "0.5741526", "0.57403225", "0.57331586", "0.57241887", "0.57105064", "0.56964576", "0.56909347", "0.56539464", "0.5647972", "0.5647896", "0.5630973" ]
0.7628366
1
Sets the hour. Should be between 0 and 23 or no action is taken
@Override public boolean setHours(int hours) { if(hours<0||hours>23) { return false; } calendar.set(Calendar.HOUR_OF_DAY, hours); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHour(int hour){\n if(hour < 0 || hour > 23) {System.out.println(\"wrong input!\"); return;}\n this.hour = hour;\n }", "public void setHour(int hour) \n { \n if (hour < 0 || hour >= 24)\n throw new IllegalArgumentException(\"hour must be 0-23\");\n\n this.hour = hour;\n }", "public void setHour(int hour)\n {\n this.hour = hour;\n }", "public void setHour(int hour) throws BlablakidException {\n\t\tif(checkTime(hour,this.minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The hour introduced is wrong : \"+hour);\n\t\t}\n\t\telse {\n\t\tthis.hour = hour;\n\t\t}\n\t}", "public void setHour(int nHour) { m_nTimeHour = nHour; }", "public void setHour(Integer hour) {\n this.hour = hour;\n }", "public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }", "public void setHour(int hour) {\n\t\tthis.hour = hour;\n\t}", "public Time4 setHour( int hour ) \r\n { \r\n this.hour = ( hour >= 0 && hour < 24 ? hour : 0 ); \r\n\r\n return this; // enables chaining\r\n }", "public void setHour(int hour) throws InvalidDateException {\r\n\t\tif (hour < 24 & hour >= 0) {\r\n\t\t\tthis.hour = hour;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic hour for the date (between 0 and 23) !\");\r\n\t\t}\r\n\t}", "public void setHour(Pair<Double, Double> value) {\r\n\t\thour = value;\r\n\t}", "public void setHour(int hour) {\n/* 51 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static void setHour(String HourString) {\n\t\thour = HourString;\n\t}", "private void setTime(int hour, int minute){\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n persistLong(calendar.getTimeInMillis());\n\n notifyChanged();\n notifyDependencyChange(shouldDisableDependents());\n }", "public Builder setStartHour(int value) {\n \n startHour_ = value;\n onChanged();\n return this;\n }", "public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }", "public Builder setHour(final int hour) {\n this.hour = hour;\n return this;\n }", "public void setHours(int hours) {\n this.hours = hours;\n }", "public void setHours(double hours) {\r\n this.hours = hours;\r\n }", "public void setTime(String newHour) { // setTime sets the appointment's hour in standard time\n \n // this divides the newHour string into the hour part and the 'am'/'pm' part\n int timeHour = Integer.parseInt(newHour.substring(0, newHour.length()-2)); // the number of the hour\n String timeAmPm = newHour.substring(newHour.length()-2); // whether it is 'am' or 'pm'\n\n // 4 possible cases exist and are handled in this order:\n // 1. after midnight/before noon\n // 2. midnight (12am)\n // 3. noon (12pm)\n // 4. afternoon\n if(timeAmPm.equalsIgnoreCase(\"am\") && timeHour != 12) {\n this.hour = timeHour;\n }\n else if(timeAmPm.equalsIgnoreCase(\"am\")) {\n this.hour = 0;\n }\n else if(timeHour == 12){\n this.hour = timeHour;\n }\n else {\n this.hour = timeHour + 12;\n }\n }", "public void setHours(int hours) {\n\t\tthis.hours = hours;\n\t}", "public Builder setFinishHour(int value) {\n \n finishHour_ = value;\n onChanged();\n return this;\n }", "public void setEHour(int ehour)\r\n\t{\r\n\t\tthis.ehour = ehour;\r\n\t}", "public void setHours(int x, double h) {\r\n hours[x] = h;\r\n }", "public void setSleepHour(int hours) {\n\t\tif (hours >= 0)\n\t\t\tsleepHours = hours;\n\t\telse\n\t\t\tsleepHours = -1;\n\t}", "public static final Function<Date,Date> setHour(final int value) {\r\n return new Set(Calendar.HOUR, value);\r\n }", "public boolean setHour(double newHour) {\n\t\tthis.hour = newHour;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t\treturn true;\n\t}", "public void setHours(String hours) {\n this.hours = parseHours(hours);\n }", "public void sethourNeed(Integer h){hourNeed=h;}", "public Time4( int hour ) \r\n { \r\n this.setTime( hour, 0, 0 ); \r\n }", "public DateHour(int year, int month, int day, int hour)\n\t{\n\t\tm_year = year;\n\t\tm_month = month;\n\t\tm_day = day;\n\t\tm_hour = hour;\n\t}", "public Time( int hour, int minute ) {\n this( hour * MINS_PER_HR + minute );\n }", "public static void setTime(Clock clock, int hour, int minute, int second) {\n\t\tif (hour < 0 || hour > 24) {\r\n\t\t\thour = 0;\r\n\t\t}\r\n\t\tif (minute < 0 || minute > 60) {\r\n\t\t\tminute = 0;\r\n\t\t}\r\n\t\tif (second < 0 || second > 60) {\r\n\t\t\tsecond = 0;\r\n\t\t}\r\n\r\n\t\tclock.setHour(hour);\r\n\t\tclock.setMinute(minute);\r\n\t\tclock.setSecond(second);\r\n\r\n\t}", "public boolean setHours(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mHours = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }", "public void advanceHour(long hour) {\n clock = Clock.offset(clock, Duration.ofHours(hour));\n }", "public void setTime(int hour, int minute, int second)\r\n\t{\r\n\t\tHours.setValue(hour);\r\n\t\tMinutes.setValue(minute);\r\n\t\tSeconds.setValue(second);\r\n\t\t\r\n\t\tupdateTime();\r\n\t}", "public void setHour(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setHour(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setHour(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setHour(int):void\");\n }", "public static void set24Hour( boolean hour24 ) {\n AM_PM = !hour24;\n }", "public void setHours(int[] hours) {\n if (hours == null)\n hours = new int[] {};\n this.hours = hours;\n }", "public void setHours(double hours) {\r\n // if hours is negative, hours is 0\r\n if (hours < 0) {\r\n this.hours = 0;\r\n }\r\n else {\r\n this.hours = hours;\r\n }\r\n // calls calculateSalary to update the salary once hours is changed\r\n calculateSalary();\r\n }", "public int getHour() { return this.hour; }", "public void setWorkingHour (int newWorkingHour) {\n this.workingHour = newWorkingHour;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }", "public void updateChangedTime(int hour, int minute);", "@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getStarttime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getStarttime().set(Calendar.MINUTE, minute);\n updateStartTime();\n }", "public void setPriceperhour(int priceperhour) {\n this.priceperhour = priceperhour;\n }", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "public final native double setHours(int hours) /*-{\n this.setHours(hours);\n return this.getTime();\n }-*/;", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }", "@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getEndtime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getEndtime().set(Calendar.MINUTE, minute);\n updateEndTime();\n }", "public static void setGreeting(int hourOfDay) {\n if (hourOfDay >= 0 && hourOfDay < 12) {\n dayHourGreeting = MORNING;\n } else if (hourOfDay >= 12 && hourOfDay < 16) {\n dayHourGreeting = AFTERNOON;\n } else if (hourOfDay >= 16 && hourOfDay < 21) {\n dayHourGreeting = EVENING;\n } else if (hourOfDay >= 21 && hourOfDay < 24) {\n dayHourGreeting = NIGHT;\n }\n }", "public Builder clearStartHour() {\n \n startHour_ = 0;\n onChanged();\n return this;\n }", "public void setMaxHour(Integer maxHour) {\r\n this.maxHour = maxHour;\r\n }", "public void setAditionalNightHours(int hours){\r\n\t this.addings = (double)(40*hours);\r\n }", "Integer getHour();", "public void setOne(int day, int hour, Integer newValue) {\r\n weekData[day][hour] = newValue;\r\n }", "public int getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n\t\treturn hour;\n\t}", "float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }", "private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }", "public void setPerHour(double perHour) {\r\n if (perHour < 0 || Double.isNaN(perHour)){\r\n throw new IllegalArgumentException();\r\n }\r\n this.perHour = perHour;\r\n }", "public void setHours(double hoursWorked){\n if ((hoursWorked >= 0.0) && (hoursWorked <= 168.0))\n hours = hoursWorked;\n else\n throw new IllegalArgumentException(\"Hours worked must be >= 0 and <= 168\");\n }", "public void goToHour(int hour) {\n if (viewState.areDimensionsInvalid) {\n viewState.setScrollToHour(hour);\n return;\n }\n\n hour = min(hour, HOURS_PER_DAY);\n float verticalOffset = config.hourHeight * hour;\n\n final float dayHeight = config.getTotalDayHeight();\n final double viewHeight = getHeight();\n\n final double desiredOffset = dayHeight - viewHeight;\n verticalOffset = min((float)desiredOffset, verticalOffset);\n\n config.drawingConfig.currentOrigin.y = -verticalOffset;\n invalidate();\n }", "public int getHour()\n {\n return hour;\n }", "public Time( int hour, int minute, Meridiem meridiem ) {\n this(\n hour == Time.HALF_DAY_HRS ?\n meridiem == Meridiem.AM ?\n 0 :\n Time.HALF_DAY_HRS\n :\n meridiem == Meridiem.AM ?\n hour :\n hour + Time.HALF_DAY_HRS,\n minute\n );\n }", "public Time4( int hour, int minute ) \r\n { \r\n this.setTime( hour, minute, 0 ); \r\n }", "@Override\n public String onHourChange(long hour) {\n return null;\n }", "public WorkHours() {\n //default if not yet initialised\n this._startingHour=0.00;\n this._endingHour=0.00;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n editASLTStime.setText((((hourOfDay < 10) ? \"0\" + hourOfDay : hourOfDay) + \":\" + ((minute < 10) ? \"0\" + minute : minute) + \":00\"));\n }", "Integer getStartHour();", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n et_time.setText(et_time.getText() + \"\" + hourOfDay + \":\" + minute);\n }", "protected void runEachHour() {\n \n }", "public Integer getHour() {\n\t\treturn hour;\n\t}", "private void setClock(int day, int hour, int minute) {\n String dayString;\n switch(day) {\n case 0: dayString = \"Maandag\";\n break;\n case 1: dayString = \"Dinsdag\";\n break;\n case 2: dayString = \"Woensdag\";\n break;\n case 3: dayString = \"Donderdag\";\n break;\n case 4: dayString = \"Vrijdag\";\n break;\n case 5: dayString = \"Zaterdag\";\n break;\n case 6: dayString = \"Zondag\";\n break;\n default: dayString = \"Ongeldige dag\";\n break;\n }\n //\tLaat de tijd 02 zijn in plaats van 2\n String hourString = String.format(\"%02d\", hour);\n String minuteString = String.format(\"%02d\", minute);\n clock.setText(\"<html><h2>\"+dayString + \" \" + hourString + \":\" + minuteString+\"</h2></html>\");\n }", "public final void mT__107() throws RecognitionException {\n try {\n int _type = T__107;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:105:8: ( 'hour' )\n // InternalMyDsl.g:105:10: 'hour'\n {\n match(\"hour\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private boolean checkValidHour() {\n return numHours >= 0 && numHours <= 23;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n }", "void setTime(final int time);", "public void setOccupiedHours(int hours){\n \t\tif(hours > 0 && hours*60 > 0)\n \t\t\tsetOccupiedMinutes(hours*60);\n \t}", "public final native double setHours(int hours, int mins) /*-{\n this.setHours(hours, mins);\n return this.getTime();\n }-*/;", "@Deprecated\n/* */ public void setCurrentHour(@RecentlyNonNull Integer currentHour) {\n/* 89 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int getHour() {\n\t\treturn this.hour;\n\t}", "public Integer getHour() {\n return hour;\n }", "public int getHour() \n { \n return hour; \n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n DateEdit.setText(DateEdit.getText() + \" -\" + hourOfDay + \":\" + minute);\n }", "public int getHour(){\n return hour;\n }", "public Time(int hour, int minutes) throws BlablakidException{\n\t\tif(checkTime(hour,minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The hour or the minutes introduced are wrong , \"+hour+\":\"+minutes);\n\t\t}\n\t\telse {\n\t\t\tthis.hour = hour;\n\t\t\tthis.minutes = minutes;\n\t\t}\n\t}", "public JobLog setHours(String hours) {\n this.hours = hours;\n return this;\n }", "public final native double setHours(int hours, int mins, int secs) /*-{\n this.setHours(hours, mins, secs);\n return this.getTime();\n }-*/;", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }", "@Override\n public void onTimeSet(TimePicker timePicker, int hour, int minute) {\n String str_min = \"\" + minute;\n if (minute < 10) {\n str_min = \"0\" + minute;\n }\n btnHoraCitaver.setText(hour + \":\" + str_min);\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n String newValue = String.format(\"%d:%02d\", hourOfDay, minute);\n mPrefs.edit().putString(mPreference.getKey(), newValue).apply();\n mPreference.setSummary(DateFormatter.getSummaryTimestamp(getActivity(), newValue));\n mListener.onPreferenceChange(mPreference, newValue);\n SettingsFragment.updateAlarmManager(getActivity(), true);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }", "@Override\n public void onTimeSet(TimePicker timePicker, int hour, int minute) {\n String hourText = \"\";\n String minuteText = \"\";\n\n if(hour < 10){\n hourText = \"0\" + hour;\n }else{\n hourText = \"\" + hour;\n }\n\n if(minute < 10){\n minuteText = \"0\" + minute;\n }else{\n minuteText = \"\" + minute;\n }\n\n orderTextDepatureTime.setText(\"\" + hourText + \":\" + minuteText);\n }", "public Time4 setTime( int hour, int minute, int second )\r\n {\r\n this.setHour( hour ); // set hour\r\n this.setMinute( minute ); // set minute\r\n this.setSecond( second ); // set second\r\n\r\n return this; // enables chaining\r\n }" ]
[ "0.8486753", "0.84648514", "0.8195641", "0.81142384", "0.81136924", "0.801033", "0.7987016", "0.7957913", "0.78854746", "0.785114", "0.7753492", "0.73335105", "0.7290565", "0.72451025", "0.7203493", "0.7193073", "0.7151544", "0.71288115", "0.71231943", "0.70901364", "0.69019973", "0.6860878", "0.6844127", "0.68344325", "0.6829894", "0.68181205", "0.6808161", "0.6793137", "0.6726234", "0.67190796", "0.66025835", "0.6591539", "0.6590194", "0.65883106", "0.6577955", "0.6543589", "0.6520095", "0.65057844", "0.6490947", "0.64830226", "0.64464766", "0.6445408", "0.64343196", "0.6423189", "0.63634664", "0.6341535", "0.633979", "0.6336634", "0.6279802", "0.626486", "0.6254511", "0.6186295", "0.6181233", "0.6180858", "0.61661375", "0.6158874", "0.6146142", "0.6146142", "0.6121854", "0.61106735", "0.61083084", "0.6078992", "0.6070718", "0.6057913", "0.6057131", "0.60380715", "0.6023311", "0.6022221", "0.6013093", "0.6007578", "0.5996167", "0.59869444", "0.59815055", "0.5977762", "0.59733284", "0.5971167", "0.596955", "0.5969423", "0.5959487", "0.595804", "0.59570324", "0.59416693", "0.5934663", "0.5929825", "0.59255594", "0.5922986", "0.58862495", "0.5885587", "0.5884944", "0.5881674", "0.5874887", "0.58673507", "0.5860499", "0.58554256", "0.5850849", "0.58492124", "0.58418125", "0.5838657", "0.58301294", "0.58288634" ]
0.7266072
13
Create a new MdParser which uses the specified provider
@Inject public MdParser(ParserStateProvider provider) { this.provider = provider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Provider createProvider();", "Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;", "Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;", "protected static IParser getParser(final FhirContext ctx, FHIRMediaType mt) {\n\t\tIParser parser = null;\n\n\t\tfinal ParserType parserType = mt.getParserType();\n\t\tswitch (parserType) {\n\t\tcase JSON:\n\t\t\tparser = ctx.newJsonParser();\n\t\t\tbreak;\n\t\tcase XML:\n\t\tdefault:\n\t\t\tparser = ctx.newXmlParser();\n\t\t\tbreak;\n\t\t}\n\t\treturn parser;\n\t}", "Parse createParse();", "private SAXParserProvider() {\n // empty\n }", "public PsiFile createFile(FileViewProvider viewProvider) {\n return new BytemanFileImpl(viewProvider);\n }", "public JsonParser createParser(Reader r)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 829 */ IOContext ctxt = _createContext(r, false);\n/* 830 */ return _createParser(_decorate(r, ctxt), ctxt);\n/* */ }", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public abstract ArgumentParser makeParser();", "protected Provider(String providerClass) {\n this(providerClass, null);\n }", "public JsonParser createParser(DataInput in)\n/* */ throws IOException\n/* */ {\n/* 920 */ IOContext ctxt = _createContext(in, false);\n/* 921 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "protected ASTParser createASTParser() {\n ASTParser parser = ASTParser.newParser(this.testLevel);\n return parser;\n }", "public Builder setProvider(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n provider_ = value;\n onChanged();\n return this;\n }", "protected Provider() {}", "public interface ClassParserFactory {\n\n ClassParser createParser(Class<?> clazz);\n}", "public JsonParser createParser(char[] content, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 908 */ if (this._inputDecorator != null) {\n/* 909 */ return createParser(new CharArrayReader(content, offset, len));\n/* */ }\n/* 911 */ return _createParser(content, offset, len, _createContext(content, true), false);\n/* */ }", "Builder addProvider(String value);", "Object create(String uri) throws IOException, SAXException, ParserConfigurationException;", "public Parser() {}", "public ConfigurationProvider load(PersistenceUnitInfo pinfo, Map m)\n throws IOException {\n if (pinfo == null)\n return null;\n if (!isOpenJPAPersistenceProvider(pinfo, null)) {\n warnUnknownProvider(pinfo);\n return null;\n }\n\n ConfigurationProviderImpl cp = new ConfigurationProviderImpl();\n cp.addProperties(PersistenceUnitInfoImpl.toOpenJPAProperties(pinfo));\n cp.addProperties(m);\n if (pinfo instanceof PersistenceUnitInfoImpl) {\n PersistenceUnitInfoImpl impl = (PersistenceUnitInfoImpl) pinfo;\n if (impl.getPersistenceXmlFileUrl() != null)\n cp.setSource(impl.getPersistenceXmlFileUrl().toString());\n }\n return cp;\n }", "public static Factory<C11804c> m30986a(Provider<OAuth2Manager> provider, Provider<C11766a> provider2, Provider<String> provider3, Provider<Fingerprint> provider4) {\n return new C11805d(provider, provider2, provider3, provider4);\n }", "public static Parser getInstance(Context ctx){\n if(instance == null){\n instance = new Parser(ctx);\n }\n return instance;\n }", "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "public Builder setProviderId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n providerId_ = value;\n onChanged();\n return this;\n }", "public JsonParser createParser(byte[] data, int offset, int len)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 861 */ IOContext ctxt = _createContext(data, true);\n/* */ \n/* 863 */ if (this._inputDecorator != null) {\n/* 864 */ InputStream in = this._inputDecorator.decorate(ctxt, data, offset, len);\n/* 865 */ if (in != null) {\n/* 866 */ return _createParser(in, ctxt);\n/* */ }\n/* */ }\n/* 869 */ return _createParser(data, offset, len, ctxt);\n/* */ }", "public Provider1Builder() {\r\n provider1 = new Provider1();\r\n }", "public JsonParser createParser(File f)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 755 */ IOContext ctxt = _createContext(f, true);\n/* 756 */ InputStream in = new FileInputStream(f);\n/* 757 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public SimpleHtmlParser createNewParserFromHereToText(String text) throws ParseException {\n return new SimpleHtmlParser(getStringToTextAndSkip(text));\n }", "public void initParser() {;\r\n lp = DependencyParser.loadFromModelFile(\"edu/stanford/nlp/models/parser/nndep/english_SD.gz\");\r\n tokenizerFactory = PTBTokenizer\r\n .factory(new CoreLabelTokenFactory(), \"\");\r\n }", "public Parser getParser(String mimeType) {\n return parsers.get(mimeType);\n }", "public TypedXmlParser getNewDecoder(Object token) {\n TypedXmlParser result = new DefaultXmlParser();\n if (factories != null && factories.size() > 0) {\n ContentDecoder dec = (ContentDecoder) result.getProperty(XasUtil.PROPERTY_CONTENT_CODEC);\n for (Enumeration e = factories.elements(); e.hasMoreElements();) {\n ContentCodecFactory fac = (ContentCodecFactory) e.nextElement();\n dec = fac.getChainedDecoder(dec);\n }\n try {\n result.setProperty(XasUtil.PROPERTY_CONTENT_CODEC, dec);\n } catch (XmlPullParserException ex) {\n /*\n * If we got the property, we should be able to set it too.\n */\n }\n }\n return result;\n }", "public Provider() {\n\t\t\tsuper(SCHEME);\n\t\t}", "public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }", "Pair<T, U> build(ConfigurationSourceProvider provider, String path) throws IOException, ConfigurationException;", "public void setProvider(String provider) {\n\t\tthis.provider = provider;\n\t}", "public void setProvider(String provider) {\n\t\tthis.provider = provider;\n\t}", "public static IPSGroupProviderInstance newInstance(Element source)\n throws PSUnknownNodeTypeException\n {\n validateElementName(source, XML_NODE_NAME);\n PSXmlTreeWalker tree = new PSXmlTreeWalker(source);\n String className = getRequiredElement(tree, CLASSNAME_ATTR);\n IPSGroupProviderInstance newInstance = null;\n try\n {\n Class newClass = Class.forName(className);\n if (validateClass(newClass))\n {\n newInstance = (IPSGroupProviderInstance)newClass.newInstance();\n }\n }\n catch (IllegalAccessException e) {}\n catch (ClassNotFoundException e) {}\n catch (InstantiationException e) {}\n\n if (newInstance == null)\n {\n Object[] args = {XML_NODE_NAME, CLASSNAME_ATTR, className};\n throw new PSUnknownNodeTypeException(\n IPSObjectStoreErrors.XML_ELEMENT_INVALID_CHILD, args);\n }\n\n newInstance.fromXml(source, null, null);\n return newInstance;\n }", "public StringParseable getParser(String input) {\n\t\treturn new XMLStringParser(input);\n\t}", "@Deprecated\n/* */ public JsonParser createJsonParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1057 */ return createParser(content);\n/* */ }", "public interface Md2ContentProvider {\n /**\n * Gets key.\n *\n * @return the key\n */\n String getKey();\n\n /**\n * Gets content.\n *\n * @return the content\n */\n Md2Entity getContent();\n\n /**\n * Sets content.\n *\n * @param content the content\n */\n void setContent(Md2Entity content);\n\n /** set content directly without loading it from the database */\n void overwriteContent(Md2Entity content);\n void overwriteContent(List<Md2Entity> content);\n\n /**\n * Register attribute on change handler.\n *\n * @param attribute the attribute\n * @param onAttributeChangedHandler the on attribute changed handler\n */\n void registerAttributeOnChangeHandler(String attribute, Md2OnAttributeChangedHandler onAttributeChangedHandler);\n\n /**\n * Unregister attribute on change handler.\n *\n * @param attribute the attribute\n */\n void unregisterAttributeOnChangeHandler(String attribute);\n\n /**\n * Gets on attribute changed handler.\n *\n * @param attribute the attribute\n * @return the on attribute changed handler\n */\n Md2OnAttributeChangedHandler getOnAttributeChangedHandler(String attribute);\n\n /**\n * Gets value.\n *\n * @param attribute the attribute\n * @return the value\n */\n Md2Type getValue(String attribute);\n\n /**\n * Sets value.\n *\n * @param attribute the attribute\n * @param value the value\n */\n void setValue(String attribute, Md2Type value);\n\n /**\n * Reset content provider to empty element.\n */\n void reset();\n\n /**\n * Reset local content provider to the remote element.\n */\n void resetLocal();\n\n /**\n * Load from the database.\n */\n void load();\n\n /**\n * Save a new or existing element to the database.\n */\n void save();\n\n /**\n * Remove from database.\n */\n void remove();\n\n /** Replace current version of content from the most recent version from the datastore */\n void update();\n\n /** Replace current version of content from the most recent version in the list of elements */\n void updateContent(List<Md2Entity> updates);\n /** Remove current version of content if it has been removed in the meantime */\n void purgeContent(List<Md2Entity> updates);\n}", "@Deprecated\n/* */ public JsonParser createJsonParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1002 */ return createParser(in);\n/* */ }", "private CachingMetadataManager getMetadata(ParserPool parserPool, KeyManager keyManager) throws Exception {\n\t\tList<MetadataProvider> providers = new ArrayList<>();\n\t\tMetadataProvider provider = getIdpExtendedMetadataProvider(parserPool);\n\t\tif (provider != null) {\n\t\t\tproviders.add(provider);\n\t\t}\n\n\t\tExtendedMetadataDelegate spMetadataProvider = getSpExtendedMetadataProvider(parserPool);\n\t\tif (spMetadataProvider != null) {\n\t\t\tproviders.add(spMetadataProvider);\n\t\t}\n\n\t\tCachingMetadataManager metadata = new CachingMetadataManager(providers);\n\t\tmetadata.setDefaultIDP(samlProps.get(\"defaultIdp\"));\n\t\tmetadata.setKeyManager(keyManager);\n\t\tmetadata.setTLSConfigurer(getTlsProtocolConfigurer(keyManager));\n\n\t\tmetadata.afterPropertiesSet();\n\t\treturn metadata;\n\t}", "private Parser () { }", "public JsonParser createParser(URL url)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 782 */ IOContext ctxt = _createContext(url, true);\n/* 783 */ InputStream in = _optimizedStreamFromURL(url);\n/* 784 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "@Deprecated\n/* */ public JsonParser createJsonParser(Reader r)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1021 */ return createParser(r);\n/* */ }", "public DerParser( InputStream in ) throws IOException {\n this.in = in;\n }", "eu.europeana.uim.repox.rest.client.xml.Provider retrieveProviderByMetadata(String mnemonic)\n throws RepoxException;", "private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;\r\n\t}", "protected JsonParser _createParser(Reader r, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1288 */ return new ReaderBasedJsonParser(ctxt, this._parserFeatures, r, this._objectCodec, this._rootCharSymbols.makeChild(this._factoryFeatures));\n/* */ }", "public Provider() {\n super(PROVIDER_NAME, 0.1, \"WebID-TLS Provider\");\n }", "public MailProvider(ProviderProperties providerProperties) {\n super(providerProperties);\n }", "public MetaDataCache() throws org.opensaml.xml.ConfigurationException {\r\n // Create a parser pool for later use\r\n parser = new BasicParserPool();\r\n // Choose to use the Bouncy Castle JCE provider most often\r\n Security.insertProviderAt(new BouncyCastleProvider(), 2);\r\n // Provide some default values\r\n setMetaTimeout(60000);\r\n setMetaFile(\"metadata-backing-file.xml\");\r\n setMetaUrl(\"http://127.0.0.1/metadata.xml\");\r\n}", "public static DirectoryParser getParser() {\n return DirectoryParser.INSTANCE;\n }", "Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;", "private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }", "public LineItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}", "java.lang.String getProvider();", "public abstract DataType<T> newInstance(String format, Locale locale);", "public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }", "public void setProvider(String value) { _provider = value; }", "public static C2652a m51825a(Provider<bk> provider, Provider<C2634g> provider2, Provider<ManagerNetwork> provider3, Provider<ManagerApp> provider4, Provider<FacebookManager> provider5, Provider<C10698c> provider6, Provider<C10333h> provider7, Provider<C8277d> provider8, Provider<C8281o> provider9, Provider<C16576a> provider10) {\n return new C2652a((bk) provider.get(), (C2634g) provider2.get(), (ManagerNetwork) provider3.get(), (ManagerApp) provider4.get(), (FacebookManager) provider5.get(), (C10698c) provider6.get(), (C10333h) provider7.get(), (C8277d) provider8.get(), (C8281o) provider9.get(), (C16576a) provider10.get());\n }", "public FilePane(DownloadProvider provider) {\n super();\n this.provider = provider;\n }", "@Bean\n @Qualifier(\"metadata\")\n public CachingMetadataManager metadata(\n final ExtendedMetadataDelegate ssoCircleExtendedMetadataProvider\n ) throws MetadataProviderException {\n return new CachingMetadataManager(Lists.newArrayList(ssoCircleExtendedMetadataProvider));\n }", "private PLPParser makeParser(String input) throws LexicalException {\n\t\t\tshow(input); //Display the input \n\t\t\tPLPScanner scanner = new PLPScanner(input).scan(); //Create a Scanner and initialize it\n\t\t\tshow(scanner); //Display the Scanner\n\t\t\tPLPParser parser = new PLPParser(scanner);\n\t\t\treturn parser;\n\t\t}", "private EntityManagerProvider(){}", "public CCNDigestHelper() {\n super();\n if (!_md.getAlgorithm().equals(CCNDigestHelper.DEFAULT_DIGEST_ALGORITHM)) {\n Log.severe(\"Incorrect constructor in CCNDigestHelper -- picking up wrong digest algorithm!\");\n }\n }", "public IProvider provider();", "private static IRIProvider makeProviderJDK() { return new IRIProviderJDK(); }", "public FolderItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}", "public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }", "public JsonParser createParser(byte[] data)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 840 */ IOContext ctxt = _createContext(data, true);\n/* 841 */ if (this._inputDecorator != null) {\n/* 842 */ InputStream in = this._inputDecorator.decorate(ctxt, data, 0, data.length);\n/* 843 */ if (in != null) {\n/* 844 */ return _createParser(in, ctxt);\n/* */ }\n/* */ }\n/* 847 */ return _createParser(data, 0, data.length, ctxt);\n/* */ }", "public Builder setProviderName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n providerName_ = value;\n onChanged();\n return this;\n }", "eu.europeana.uim.repox.rest.client.xml.Provider retrieveProvider(String providerId)\n throws RepoxException;", "public static void setParser(PackerFileParser newParser) {\r\n\t\tparser = newParser;\r\n\t}", "@Override\n public SummaryLoader.SummaryProvider createSummaryProvider(Activity activity,\n SummaryLoader summaryLoader) {\n return new SummaryProvider(activity,summaryLoader);\n //return new SummaryProvider(summaryLoader);\n //end zhixiong.liu.hz for XR 6107743 2018/3/14\n }", "protected Provider(String providerClass, String version) {\n assert !(null == providerClass || \"\".equals(providerClass.trim())) : \"Provider class must be given!\";\n this.providerClass = providerClass;\n this.version = version;\n this.vendorSpecificProperties = initPropertyNames();\n }", "@Deprecated\n/* */ public JsonParser createJsonParser(File f)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 951 */ return createParser(f);\n/* */ }", "DerParser getParser() throws IOException {\n\n\t\t\tif (!isConstructed()) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: can't parse primitive entity\");\n\t\t\t}\n\n\t\t\treturn new DerParser(this.value);\n\t\t}", "public interface PdfProvider {\n /**\n * Create a thumbnail image for a given PDF file.\n *\n * @param inputFile Input file.\n * @param outputStream OutputStream, to which the thumbnail is written. Important: Stream is not closed!\n * @param format Output file format given as a MIME type.\n * @param width Width in pixel.\n * @param height Height in pixel.\n * @param quality Quality factor for output compression.\n * @param speedHint Speed factor for conversion.\n * @throws Exception on any error opening the file, converting the file or writing to the output.\n */\n\n void createThumbNail(File inputFile, OutputStream outputStream,\n String format, int width, int height,\n ConversionCommand.CompressionQuality quality,\n ConversionCommand.SpeedHint speedHint) throws Exception;\n\n PdfDocumentInformation getDocumentInformation(File pdfFile) throws Exception;\n\n int countPages(File pdfFile) throws Exception;\n\n void createPdfFromImages(File[] imageFiles, PdfDocumentInformation documentInformation, File outputPdfFile) throws Exception;\n\n void createPdfFromImages(byte[][] imageFileByteArrays, PdfDocumentInformation documentInformation,\n int width, int height, OutputStream outputStream) throws Exception;\n}", "public void setProvider(String provider) {\r\n this.provider = provider == null ? null : provider.trim();\r\n }", "public EPPSchemaCachingParser() {\n\t\ttry {\n\t\t\tinit();\n\t\t}\n\t\t catch (EPPParserException e) {\n\t\t\tcat.error(\"Couldn't instantiate parser instance\", e);\n\t\t}\n\t}", "public EdgeItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}", "@Deprecated\n/* */ public JsonParser createJsonParser(URL url)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 976 */ return createParser(url);\n/* */ }", "public EntityAttributeItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}", "public PostBibTeXParser() {\n\t\tthis.resourceFactory = new ResourceFactory();\n\t}", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "public interface AstFactory\n{\n\tIdNode IdNode(Token t, String text);\n\tExtIdNode ExtIdNode(Token t, String text);\n\n\tAmbigNameNode AmbigNameNode(Token t, String text);\t // Deprecate? Never need to make ambigname \"manually\" via af? (constructed only by ScribbleParser)\n\tDataParamNode DataParamNode(Token t, String text);\n\tOpNode OpNode(Token t, String text);\n\tRecVarNode RecVarNode(Token t, String text);\n\tRoleNode RoleNode(Token t, String text);\n\tSigParamNode SigParamNode(Token t, String text);\n\n\tDataNameNode DataNameNode(Token t, List<IdNode> elems);\n\tGProtoNameNode GProtoNameNode(Token t, List<IdNode> elems);\n\tLProtoNameNode LProtoNameNode(Token t, List<IdNode> elems);\n\tModuleNameNode ModuleNameNode(Token t, List<IdNode> elems);\n\tSigNameNode SigNameNode(Token t, List<IdNode> elems);\n\t\n\tModule Module(Token t, ModuleDecl mdecl,\n\t\t\tList<? extends ImportDecl<?>> imports,\n\t\t\tList<? extends NonProtoDecl<?>> nonprotos,\n\t\t\tList<? extends ProtoDecl<?>> protos);\n\n\tModuleDecl ModuleDecl(Token t, ModuleNameNode fullname);\n\tImportModule ImportModule(Token t, ModuleNameNode modname,\n\t\t\tModuleNameNode alias); // alias == null for no alias (child not added)\n\n\tDataDecl DataDecl(Token t, IdNode schema, ExtIdNode extName,\n\t\t\tExtIdNode extSource, DataNameNode name);\n\tSigDecl SigDecl(Token t, IdNode schema, ExtIdNode extName,\n\t\t\tExtIdNode extSource, SigNameNode name);\n\tGProtoDecl GProtoDecl(Token t, ProtoModList mods, GProtoHeader header,\n\t\t\tGProtoDef def);\n\n\t// TODO: refactor to use ProtoModList, etc.\n\tProtoModList ProtoModList(Token t, List<ProtoModNode> mods);\n\tAuxMod AuxMod(Token t);\n\tExplicitMod ExplicitMod(Token t);\n\n\tGProtoHeader GProtocolHeader(Token t, GProtoNameNode name, RoleDeclList rs,\n\t\t\tNonRoleParamDeclList ps);\n\tRoleDeclList RoleDeclList(Token t, List<RoleDecl> ds);\n\tRoleDecl RoleDecl(Token t, RoleNode r);\n\tNonRoleParamDeclList NonRoleParamDeclList(Token t, \n\t\t\tList<NonRoleParamDecl<? extends NonRoleParamKind>> ds);\n\tDataParamDecl DataParamDecl(Token t, DataParamNode p);\n\tSigParamDecl SigParamDecl(Token t, SigParamNode p);\n\n\tGProtoDef GProtoDef(Token t, GProtoBlock block);\n\tGProtoBlock GProtoBlock(Token t, GInteractionSeq seq);\n\tGInteractionSeq GInteractionSeq(Token t, List<GSessionNode> elems); // CHECKME: ? extends GSessionNode ? -- and similar others?\n\n\tSigLitNode SigLitNode(Token t, OpNode op, PayElemList pay);\n\tPayElemList PayElemList(Token t, List<PayElem<?>> elems);\n\t<K extends PayElemKind> UnaryPayElem<K> UnaryPayElem(Token t, \n\t\t\tPayElemNameNode<K> name);\n\tGDelegPayElem GDelegPayElem(Token t, GProtoNameNode name, RoleNode r);\n\n\tGMsgTransfer GMsgTransfer(Token t, RoleNode src, MsgNode msg,\n\t\t\tList<RoleNode> dsts);\n\tGConnect GConnect(Token t, RoleNode src, MsgNode msg, RoleNode dst);\n\tGDisconnect GDisconnect(Token t, RoleNode left, RoleNode right);\n\tGWrap GWrap(Token t, RoleNode client, RoleNode server);\n\n\tGContinue GContinue(Token t, RecVarNode rv);\n\tGDo GDo(Token t, GProtoNameNode proto, NonRoleArgList args, RoleArgList rs);\n\n\tRoleArgList RoleArgList(Token t, List<RoleArg> rs);\n\tRoleArg RoleArg(Token t, RoleNode r);\n\tNonRoleArgList NonRoleArgList(Token t, List<NonRoleArg> args);\n\tNonRoleArg NonRoleArg(Token t, NonRoleArgNode arg);\n\n\tGChoice GChoice(Token t, RoleNode subj, List<GProtoBlock> blocks);\n\tGRecursion GRecursion(Token t, RecVarNode rv, GProtoBlock block);\n\n\t/*LProtoDecl LProtoDecl(Token t, ProtoModList mods,\n\t\t\tLProtoHeader header, LProtoDef def); // Not currently used -- local protos not yet parsed, only projected*/\n\n\tLProjectionDecl LProjectionDecl(Token t, ProtoModList mods,\n\t\t\tLProtoHeader header, LProtoDef def, GProtoNameNode fullname,\n\t\t\tRoleNode self); // del extends that of LProtoDecl\n\n\tLProtoHeader LProtoHeader(Token t, LProtoNameNode name, RoleDeclList rs,\n\t\t\tNonRoleParamDeclList ps);\n\tLSelfDecl LSelfDecl(Token t, RoleNode r);\n\n\tLProtoDef LProtoDef(Token t, LProtoBlock block);\n\tLProtoBlock LProtoBlock(Token t, LInteractionSeq seq);\n\tLInteractionSeq LInteractionSeq(Token t, List<LSessionNode> elems);\n\n\t// Following take \"self\" param in case of parsed Token (not actually supported yet)\n\tLSend LSend(Token t, RoleNode self, MsgNode msg, RoleNode dst);\n\tLRecv LRecv(Token t, RoleNode src, MsgNode msg, RoleNode self);\n\tLAcc LAcc(Token t, RoleNode src, MsgNode msg, RoleNode self);\n\tLReq LReq(Token t, RoleNode self, MsgNode msg, RoleNode dst);\n\tLDisconnect LDisconnect(Token t, RoleNode self, RoleNode peer); \n\tLClientWrap LClientWrap(Token t, RoleNode client, RoleNode server);\n\tLServerWrap LServerWrap(Token t, RoleNode client, RoleNode server);\n\n\tLContinue LContinue(Token t, RecVarNode rv); \n\tLDo LDo(Token t, LProtoNameNode proto, NonRoleArgList as, RoleArgList rs);\n\n\tLChoice LChoice(Token t, RoleNode subj, List<LProtoBlock> blocks);\n\tLRecursion LRecursion(Token t, RecVarNode rv, LProtoBlock block);\n}", "public Parser()\n {\n //nothing to do\n }", "public static CSVParser getParser() {\n if (instance == null) {\n instance = new CSVParser();\n }\n return instance;\n }", "private TraceParser genParser() throws ParseException {\n TraceParser parser = new TraceParser();\n parser.addRegex(\"^(?<VTIME>)(?<TYPE>)$\");\n parser.addPartitionsSeparator(\"^--$\");\n return parser;\n }", "public ApkParser() {}", "public ResolvingXMLReader(CatalogManager manager) {\n/* 86 */ super(manager);\n/* 87 */ SAXParserFactory spf = JdkXmlUtils.getSAXFactory(this.catalogManager.overrideDefaultParser());\n/* 88 */ spf.setValidating(validating);\n/* */ try {\n/* 90 */ SAXParser parser = spf.newSAXParser();\n/* 91 */ setParent(parser.getXMLReader());\n/* 92 */ } catch (Exception ex) {\n/* 93 */ ex.printStackTrace();\n/* */ } \n/* */ }", "public abstract DataType<T> newInstance(String format);", "MeterProvider create();", "@Deprecated\n/* */ public JsonParser createJsonParser(byte[] data, int offset, int len)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1046 */ return createParser(data, offset, len);\n/* */ }", "public static @NonNull DataParser get(DataFormat format, RtSchemaRoot schemaRoot) {\n return new DataParser(format, schemaRoot);\n }", "private Formatter makeFormatter(String formatterName) {\r\n Class c = null;\r\n Formatter f = null;\r\n\r\n try {\r\n c = Class.forName(formatterName);\r\n f = (Formatter) c.newInstance();\r\n } catch (Exception e) {\r\n f = new SimpleFormatter();\r\n }\r\n return f;\r\n }", "@NotNull public Builder provider(@NotNull Person person) {\n putValue(\"provider\", person);\n return this;\n }" ]
[ "0.5674803", "0.5364007", "0.5364007", "0.52711654", "0.49225816", "0.4911476", "0.49095905", "0.4870372", "0.48546124", "0.47945076", "0.47816977", "0.4779985", "0.47707394", "0.47371677", "0.47143626", "0.46950006", "0.467965", "0.46488765", "0.46047172", "0.45980442", "0.4597998", "0.45912498", "0.45435184", "0.45429048", "0.45407394", "0.4533994", "0.45330352", "0.45023242", "0.44893163", "0.44887888", "0.44874316", "0.44855154", "0.4485236", "0.4482134", "0.44777116", "0.44561094", "0.44525155", "0.44525155", "0.44420353", "0.44385538", "0.44330344", "0.44220477", "0.44106376", "0.4404167", "0.4403861", "0.43971136", "0.43744746", "0.43663043", "0.43604952", "0.43544674", "0.43499425", "0.43468204", "0.43401054", "0.43362048", "0.43250605", "0.4319829", "0.43180335", "0.43121365", "0.43117747", "0.43099436", "0.4306578", "0.43047902", "0.43008006", "0.4297774", "0.42921567", "0.427258", "0.4271319", "0.42684665", "0.42672977", "0.4264422", "0.42616135", "0.42557526", "0.4246516", "0.42461747", "0.4237314", "0.42366925", "0.4234815", "0.42303598", "0.4230303", "0.4229702", "0.42258853", "0.42214644", "0.42205927", "0.42164704", "0.42140076", "0.42053148", "0.42050365", "0.42034146", "0.4199595", "0.41918468", "0.41897747", "0.41848052", "0.4182752", "0.41798145", "0.41779536", "0.41769165", "0.4174482", "0.41731954", "0.41724333", "0.41710573" ]
0.7511606
0
Parse the markdown into the document tree
public DocumentNode parse(Reader reader) throws IOException { DocumentRoot root = new DocumentRoot(); ParserState state = provider.get("root", root); int ch; while ((ch = reader.read()) != -1) state = state.accept((char) ch); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DocumentNode parse(String markdown) {\n Reader reader = new StringReader(markdown);\n DocumentNode ret = null;\n try {\n ret = parse(reader);\n reader.close();\n } catch (IOException e) {\n throw new Error(\"StringReader threw exception\", e);\n }\n return ret;\n }", "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }", "private Document parseFile() throws IOException {\n\tString contents = instream_to_contents();\n\tDocument doc = Jsoup.parse(contents);\n\treturn doc;\n }", "@Test\n\tpublic void probandoConParser() {\n\t\tString dBoxUrl = \"/home/julio/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_4_text_mining/material/tp3/\";\n\t\tString modelUrl = dBoxUrl + \"NER/models/es-ner-person.bin\";\n\t\tString filesUrl = dBoxUrl + \"NER/archivoPrueba\";\n\t\tString sampleFile = filesUrl + \"/viernes-23-05-14-alan-fitzpatrick-gala-cordoba.html\";\n\t\tList<String> docs = getMyDocsFromSomewhere(filesUrl);\n\n\t\ttry {\n\t\t\t// detecting the file type\n\t\t\tBodyContentHandler handler = new BodyContentHandler();\n\t\t\tMetadata metadata = new Metadata();\n\t\t\tFileInputStream inputstream = new FileInputStream(new File(sampleFile));\n\t\t\tParseContext pcontext = new ParseContext();\n\n\t\t\t// Html parser\n\t\t\tHtmlParser htmlparser = new HtmlParser();\n\t\t\thtmlparser.parse(inputstream, handler, metadata, pcontext);\n\t\t\tSystem.out.println(\"Contents of the document:\" + handler.toString());\n\t\t\tSystem.out.println(\"Metadata of the document:\");\n\t\t\tString[] metadataNames = metadata.names();\n\n\t\t\tfor (String name : metadataNames) {\n\t\t\t\tSystem.out.println(name + \": \" + metadata.get(name));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\n\t}", "Collection<Markdown> getMarkdowns();", "protected void page () throws HTMLParseException {\r\n while (block.restSize () == 0) {\r\n switch (nextToken) {\r\n case END:\r\n return;\r\n case LT:\r\n lastTagStart = tagStart;\r\n tagmode = true;\r\n match (LT);\r\n tag (lastTagStart);\r\n break;\r\n case COMMENT:\r\n //block.addToken (new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n match (COMMENT);\r\n break;\r\n case SCRIPT:\r\n //block.addToken (new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n addTokenCheck(new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n match (SCRIPT);\r\n break;\r\n case STRING:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n break;\r\n case MT:\r\n if(!tagmode) {\r\n scanString();\r\n }\r\n default:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n }\r\n }\r\n }", "public DOECorpus loadFromHTML() {\n\t\tFile[] files = getFileList();\n\t\t\n\t\tSystem.out.println(\"Found \" + files.length + \" documents in \" + this.sourceDir);\n\t\tSystem.out.println(\"Parsing their contents...\");\n\t\tint totalLineCount = 0;\n\t\t\n\t\tDOECorpus corpus = new DOECorpus();\n\t\t\n\t\tfor(File file : files) {\n\t\t\ttry {\n\t\t\t\tDocument htmlDoc = Jsoup.parse(file, null);\n\t\t\t\tString originalLocation = htmlDoc.location();\n\t\t\t\tString shortTitle = htmlDoc.title();\n\t\t\t\tString shortShortTitle = \"\";\n\t\t\t\tString cameronNumber = \"\";\n\t\t\t\t\n\t\t\t\tDOECorpusDocument corpusDoc = new DOECorpusDocument(shortTitle, shortShortTitle, cameronNumber, originalLocation);\n\t\t\t\t\t\t\n\t\t\t\tElements paragraphElements = htmlDoc.select(\"p\");\n\t\t\t\tDOECorpusLine lineBefore = null;\n\t\t\t\t\n\t\t\t\tfor(Element p : paragraphElements) {\n\t\t\t\t\tString text = p.text();\n\t\t\t\t\t\n\t\t\t\t\tif(ignoreLine(text))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(SHORT_SHORT_TITLE))\n\t\t\t\t\t\tshortShortTitle = text.replace(SHORT_SHORT_TITLE, \"\");\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(CAMERON_NUMBER))\n\t\t\t\t\t\tcameronNumber = text.replace(CAMERON_NUMBER, \"\");\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(\"[\")) {\n\t\t\t\t\t\tString lineID = \"\";\n\t\t\t\t\t\tString line = \"\";\n\t\t\t\t\t\tPattern linePattern = Pattern.compile(\"\\\\[([0-9]+\\\\s\\\\([0-9a-zA-Z\\\\.,\\\\s\\\\(\\\\)]+\\\\))\\\\]\\\\s(.*)\");\n\t\t\t\t\t\tMatcher m = linePattern.matcher(text);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t lineID = m.group(1).trim();\n\t\t\t\t\t\t line = m.group(2).trim();\n\t\t\t\t\t\t \n\t\t\t\t\t\t DOECorpusLine newLine = new DOECorpusLine(lineID, line, shortTitle);\n\t\t\t\t\t\t newLine.setLineBefore(lineBefore);\n\t\t\t\t\t\t if(lineBefore != null)\n\t\t\t\t\t\t\t lineBefore.setLineAfter(newLine);\n\t\t\t\t\t\t corpusDoc.addLine(newLine);\n\t\t\t\t\t\t lineBefore = newLine;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(!text.isEmpty())\t// This should be the full title\n\t\t\t\t\t\tcorpusDoc.setFullTitle(text);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttotalLineCount += corpusDoc.getLineCount();\n\t\t\t\tcorpus.addDocument(corpusDoc);\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Parsing their contents...DONE\");\n\t\tSystem.out.println(\"Total number of lines: \" + totalLineCount);\n\t\t\n\t\tSystem.out.println(\"Splitting lines into sentences...\");\n\t\tcorpus.splitIntoSentences();\n\t\tSystem.out.println(\"Splitting lines into sentences...DONE\");\n\t\t\n\t\tSystem.out.println(\"Tokenizing sentences...\");\n\t\tcorpus.tokenize();\n\t\tSystem.out.println(\"Tokenizing sentences...DONE\");\n\t\tSystem.out.println(\"Total number of tokens: \" + corpus.getTokenCount());\n\t\tSystem.out.println(\"Total number of types: \" + corpus.getTypeCount());\n\t\tSystem.out.println(\"Total number of sentences: \" + corpus.getSentenceCount());\n\t\tSystem.out.println(\"Average sentence length: \" + corpus.getAvgSenLength());\n\t\tSystem.out.println(\"Minimum sentence length: \" + corpus.getMinSenLength());\n\t\tSystem.out.println(\"Maximum sentence length: \" + corpus.getMaxSenLength());\n\t\t\n\t\treturn corpus;\n\t}", "@Override\n protected void processPages(PDPageTree pages) throws IOException {\n\n List<ObjectRef> pageRefs = new ArrayList<>();\n //STEP 1: get the page refs\n findPages(pdDocument.getPages().getCOSObject().getItem(COSName.KIDS), pageRefs);\n //confirm the right number of pages was found\n if (pageRefs.size() != pdDocument.getNumberOfPages()) {\n throw new IOException(new TikaException(\n \"Couldn't find the right number of page refs (\" + pageRefs.size() +\n \") for pages (\" + pdDocument.getNumberOfPages() + \")\"));\n }\n\n PDStructureTreeRoot structureTreeRoot =\n pdDocument.getDocumentCatalog().getStructureTreeRoot();\n\n //STEP 2: load the roleMap\n Map<String, HtmlTag> roleMap = loadRoleMap(structureTreeRoot.getRoleMap());\n\n //STEP 3: load all of the text, mapped to MCIDs\n Map<MCID, String> paragraphs = loadTextByMCID(pageRefs);\n\n //STEP 4: now recurse the the structure tree root and output the structure\n //and the text bits from paragraphs\n\n try {\n recurse(structureTreeRoot.getK(), null, 0, paragraphs, roleMap);\n } catch (SAXException e) {\n throw new IOException(e);\n }\n\n //STEP 5: handle all the potentially unprocessed bits\n try {\n if (state.hrefAnchorBuilder.length() > 0) {\n xhtml.startElement(\"p\");\n writeString(state.hrefAnchorBuilder.toString());\n xhtml.endElement(\"p\");\n }\n for (MCID mcid : paragraphs.keySet()) {\n if (!state.processedMCIDs.contains(mcid)) {\n if (mcid.mcid > -1) {\n //TODO: LOG! piece of text that wasn't referenced in the marked content\n // tree\n // but should have been. If mcid == -1, this was a known item not part of\n // content tree.\n }\n\n xhtml.startElement(\"p\");\n writeString(paragraphs.get(mcid));\n xhtml.endElement(\"p\");\n }\n }\n } catch (SAXException e) {\n throw new IOException(e);\n }\n //Step 6: for now, iterate through the pages again and do all the other handling\n //TODO: figure out when we're crossing page boundaries during the recursion\n // step above and do the page by page processing then...rather than dumping this\n // all here.\n for (PDPage page : pdDocument.getPages()) {\n startPage(page);\n endPage(page);\n }\n\n }", "public static void lmd_parseTree(){\n\n e_stack.push(\"$\");\n e_stack.push(pc.first_rule);\n head_node=new node(pc.first_rule);\n\n // Evaluate\n // Building the tree as well\n\n node cur=head_node;\n\n for(int i=0;i<token_stream.length;i++){\n System.out.println(e_stack);\n if(!pc.isTerminal(e_stack.peek())){\n String rule_token =pc.parse_Table.get(e_stack.pop(),token_stream[i]).right;\n\n if(!rule_token.equals(\"empty\")) {\n String to_put[]=rule_token.split(\" \");\n for(int j=to_put.length-1;j>=0;j--)\n e_stack.push(to_put[j]);\n\n // add children\n for(int j=0;j<to_put.length;j++)\n addNode(cur,to_put[j]);\n // set cur\n cur=cur.next;\n }\n else {\n // if rule_token is empty\n addNode(cur,\"empty\");\n cur=cur.next.next; // as \"empty\" node will not have any children\n }\n i--;\n }\n else {\n // if(e_stack.peek().equals(token_stream[i]))\n e_stack.pop();\n if(cur.next!=null ) cur=cur.next;\n }\n }\n }", "public void parsePage() {\n seen = true;\n int first = id.indexOf('_', 0);\n int second = id.indexOf('_', first + 1);\n String firstDir = \"result_\" + id.substring(0, first);\n String secondDir = id.substring(0, second);\n String fileName = id + \".page\";\n String wholePath = pagePath + firstDir + File.separator + secondDir\n + File.separator + fileName;\n try {\n BufferedReader reader = new BufferedReader(new FileReader(wholePath));\n String line = null;\n while((line = reader.readLine()) != null) {\n if (line.equals(\"#ThisURL#\")) {\n url = reader.readLine();\n }\n// else if (line.equals(\"#Length#\")) {\n// length = Integer.parseInt(reader.readLine());\n// }\n else if (line.equals(\"#Title#\")) {\n title = reader.readLine();\n }\n else if (line.equals(\"#Content#\")) {\n content = reader.readLine();\n lowerContent = content.toLowerCase();\n break;\n }\n }\n reader.close();\n if (content == null) {\n return;\n }\n valid = true;\n } catch (IOException e) {\n// System.out.println(\"Parse page \" + id + \" not successful\");\n }\n }", "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparsePageForPageObjects();\n\t\tparsePageForSections();\n\t}", "private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }", "@Override\n\tpublic Document parse(final CharSequence content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "private void contentWalker(OdfFileDom content) {\n\n\t\tOdfElement root = content.getRootElement();\n\t\t//TextDocument textDoc = TextDocument.loadDocument(documentFile);\n\t\t\n\t\t//if we want just the content of the text we can treat the document\n\t\t//as a TextDocument. Then use TextDocument.loadDocument(file)\n\t\t// and getContentRoot for it\n\n\t\t\n\t\t//Node textRoot = textDoc.getContentRoot();\n\n\t\tXPathNode rootXNode = xPathRoot.addChild(root, false);\n\t\trootXNode.setParent(xPathRoot);\n\t\t\n\t\twalkNode(root, rootXNode);\n\t}", "public String generateMarkdown() {\n return MarkdownDocumentationFormatter.generateMarkdownOutput(getFlowDocs());\n }", "public static Document parse(String filename) throws ParserException {\n\t\tif (filename == null) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile file = new File(filename);\n\t\tif (!file.exists() || !file.isFile()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile subDir = file.getParentFile();\n\t\tif (!subDir.exists() || !subDir.isDirectory()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t// Document should be valid by here\n\t\tDocument doc = new Document();\n\t\tFieldNames field = FieldNames.TITLE;\n\t\tList<String> authors = new LinkedList<String>();\n\t\tString content = new String();\n\t\tboolean startContent = false;\n\n\t\tdoc.setField(FieldNames.FILEID, file.getName());\n\t\tdoc.setField(FieldNames.CATEGORY, subDir.getName());\n\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tString line = reader.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tif (!line.isEmpty()) {\n\t\t\t\t\tswitch (field) {\n\t\t\t\t\tcase TITLE:\n\t\t\t\t\t\tdoc.setField(field, line);\n\t\t\t\t\t\tfield = FieldNames.AUTHOR;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase AUTHOR:\n\t\t\t\t\tcase AUTHORORG:\n\t\t\t\t\t\tif (line.startsWith(\"<AUTHOR>\") || !authors.isEmpty()) {\n\t\t\t\t\t\t\tString[] seg = null;\n\t\t\t\t\t\t\tString[] author = null;\n\n\t\t\t\t\t\t\tline = line.replace(\"<AUTHOR>\", \"\");\n\t\t\t\t\t\t\tseg = line.split(\",\");\n\t\t\t\t\t\t\tauthor = seg[0].split(\"and\");\n\t\t\t\t\t\t\tauthor[0] = author[0].replaceAll(\"BY|By|by\", \"\");\n\t\t\t\t\t\t\t// Refines author names\n\t\t\t\t\t\t\tfor (int i = 0; i < author.length; ++i) {\n\t\t\t\t\t\t\t\tauthor[i] = author[i].trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tauthor[author.length - 1] = author[author.length - 1]\n\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim();\n\t\t\t\t\t\t\tauthors.addAll(Arrays.asList(author));\n\n\t\t\t\t\t\t\t// Saves author organization\n\t\t\t\t\t\t\tif (seg.length > 1) {\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHORORG, seg[1]\n\t\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (line.endsWith(\"</AUTHOR>\")) {\n\t\t\t\t\t\t\t\t// Saves author\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHOR, authors\n\t\t\t\t\t\t\t\t\t\t.toArray(new String[authors.size()]));\n\t\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// This should be a PLACE\n\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t}\n\t\t\t\t\tcase PLACE:\n\t\t\t\t\t\tif (!line.contains(\"-\")) {\n\t\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] seg = line.split(\"-\");\n\t\t\t\t\t\t\tString[] meta = seg[0].split(\",\");\n\t\t\t\t\t\t\tif (seg.length != 0 && !seg[0].isEmpty()) {\n\n\t\t\t\t\t\t\t\tif (meta.length > 1) {\n\t\t\t\t\t\t\t\t\tdoc.setField(\n\t\t\t\t\t\t\t\t\t\t\tFieldNames.PLACE,\n\t\t\t\t\t\t\t\t\t\t\tseg[0].substring(0,\n\t\t\t\t\t\t\t\t\t\t\t\t\tseg[0].lastIndexOf(\",\"))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.trim());\n\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\tmeta[meta.length - 1].trim());\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmeta[0] = meta[0].trim();\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tnew SimpleDateFormat(\"MMM d\",\n\t\t\t\t\t\t\t\t\t\t\t\tLocale.ENGLISH).parse(meta[0]);\n\t\t\t\t\t\t\t\t\t\t// This is a news date\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\t\tmeta[0]);\n\t\t\t\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// This is a place\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.PLACE, meta[0]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\tcase CONTENT:\n\t\t\t\t\t\tif (!startContent) {\n\t\t\t\t\t\t\t// First line of content\n\t\t\t\t\t\t\tString[] cont = line.split(\"-\");\n\t\t\t\t\t\t\tif (cont.length > 1) {\n\t\t\t\t\t\t\t\tfor (int i = 1; i < cont.length; ++i) {\n\t\t\t\t\t\t\t\t\tcontent += cont[i];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontent += \" \" + line;\n\t\t\t\t\t\t}\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t\tdoc.setField(FieldNames.CONTENT, content);\n\t\t\tdoc.setField(FieldNames.LENGTH, Integer.toString(content.trim().split(\"\\\\s+\").length));\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new ParserException();\n\t\t}\n\n\t\treturn doc;\n\t}", "public static Document parse(String filename) throws ParserException {\n\t\t// TODO YOU MUST IMPLEMENT THIS\n\t\t// girish - All the code below is mine\n\t\t\t\n\t\t// Creating the object for the new Document\n\t\t\n\t\t\n\t\tif (filename == null){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t\n\t\t// Variable indexPos to track the current pointer location in the String Array\n\t\tint indexPos = 0;\n\t\t\n\t\t// Creating an instance of the document class to store the parsed content\n\t\tDocument d = new Document();\n\t\t\n\t\t// to store the result sent from the regexAuthor method and regexPlaceDate method\n\t\tObject[] resultAuthor = {null, null, null};\n\t\tObject[] resultPlaceDate = {null, null, null};\n\t\tStringBuilder news = new StringBuilder();\n\t\t\n\t\t// Next 4 lines contains the code to get the fileID and Category metadata\n\t\tString[] fileCat = new String[2];\n\t\t\n\t\tfileCat = regexFileIDCat(\"/((?:[a-z]|-)+)/([0-9]{7})\", filename);\n\t\t// System.out.println(filename);\n\t\t// throw an exception if the file is blank, junk or null\n\t\tif (fileCat[0] == null){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\td.setField(FieldNames.CATEGORY, fileCat[0]);\n\t\td.setField(FieldNames.FILEID, fileCat[1]);\n\t\t\n\t\t\n\t\t// Now , parsing the file\n\t\tFile fileConnection = new File(filename);\n\t\t\n\t\t// newscollated - it will store the parsed file content on a line by line basis\n\t\tArrayList<String> newscollated = new ArrayList<String>();\n\t\t\n\t\t// String that stores the content obtained from the . readline() operation\n\t\tString temp = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\tBufferedReader getInfo = new BufferedReader(new FileReader(fileConnection));\n\t\t\twhile ((temp = getInfo.readLine()) != null)\n\t\t\t{\n\t\t\t\tif(temp.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\n\t\t\t\t\ttemp = temp + \" \";\n\t\t\t\t\tnewscollated.add(temp);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tgetInfo.close();\n\t\t\t\n\t\t\t//-- deprecated (REMOVE THIS IF OTHER WORKS)\n\t\t\t// setting the title using the arraylist's 0th index element\n\t\t\t//d.setField(FieldNames.TITLE, newscollated.get(0));\n\t\t\t\n\t\t\t// Appending the lines into one big string using StringBuilder\n\t\t\t\n\t\t\tfor (String n: newscollated)\n\t\t\t{\n\t\t\t\tnews.append(n);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Obtaining the TITLE of the file\n\t\t\tObject[] titleInfo = new Object[2];\n\t\t\t\n\t\t\ttitleInfo = regexTITLE(\"([^a-z]+)\\\\s{2,}\", news.toString());\n\t\t\td.setField(FieldNames.TITLE, titleInfo[0].toString().trim());\n\t\t\tindexPos = (Integer) titleInfo[1];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// Getting the Author and Author Org\n\t\t\tresultAuthor = regexAuthor(\"<AUTHOR>(.*)</AUTHOR>\", news.toString());\n\t\t\t\n\t\t\tif (resultAuthor[0] != null)\n\t\t\t{\n\t\t\t\td.setField(FieldNames.AUTHOR, resultAuthor[0].toString());\n\t\t\t}\n\t\t\t\n\t\t\tif (resultAuthor[1] != null)\n\t\t\t{\n\t\t\t\td.setField(FieldNames.AUTHORORG, resultAuthor[1].toString());\n\t\t\t}\n\t\t \n\t\t \n\t\t \n\t\t if ((Integer) resultAuthor[2] != 0)\n\t\t {\n\t\t \tindexPos = (Integer) resultAuthor[2];\n\t\t }\n\t\t\t\n\t\t \n\t\t \n\t\t // Getting the Place and Date\n \t\t\tresultPlaceDate = regexPlaceDate(\"\\\\s{2,}(.+),\\\\s(?:([A-Z][a-z]+\\\\s[0-9]{1,})\\\\s{1,}-)\", news.toString());\n \t\t\t\n \t\t\tif (resultPlaceDate[0] != null)\n \t\t\t{\n \t\t\t\td.setField(FieldNames.PLACE, resultPlaceDate[0].toString().trim());\n \t\t\t}\n \t\t \n \t\t\tif (resultPlaceDate[1] != null)\n \t\t\t{\n \t\t\t\td.setField(FieldNames.NEWSDATE, resultPlaceDate[1].toString().trim());\n \t\t\t}\n \t\t\t\n \t\t // getting the content\n \t\t \n \t\t if ((Integer) resultPlaceDate[2] != 0)\n\t\t {\n\t\t \tindexPos = (Integer) resultPlaceDate[2];\n\t\t }\n \t\t \n \t\t \n \t\t d.setField(FieldNames.CONTENT, news.substring(indexPos + 1));\n \t\t \n \t\t return d;\n \t\t \n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(FileNotFoundException e){\n\t\t\tthrow new ParserException();\n\t\t\t\n\t\t}\n\n\t\tcatch(IOException e){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn d;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void parsePageForNewLines() {\n\t\tArrayList<String> escapeOpenText = new ArrayList<String>();\n\t\tArrayList<String> escapeCloseText = new ArrayList<String>();\n\t\tescapeOpenText.add(\"<!--\");\n\t\tescapeCloseText.add(\"-->\");\n\n\t\tfor (int i = 0; i != -1; i = rawText.indexOf('\\n', i+1)) {\n\t\t\tif (isPositionParsedAsMediawiki(i, escapeOpenText, escapeCloseText)) {\n\t\t\t\tlinePositions.add(i);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "String extractContentFromDocument(BotswanaCourtDocument bcd, String htmlfile,int startpage,int endpage){\n\t\t//dom tree structured in two formats example for 1st format(47-98) USA.1947.002 and for 2nd format(1998.25 - 2013) USA.2000.003\n\t\tDocument document = null;\n\t\tFile input = new File(htmlfile);\n\t\tString textContent = null;\n\t \t\n\t\tif( htmlfile == null ){\n\t\t\tSystem.out.println(\"File name is not valid\");\n\t\t}\n\t\telse{\n\t\t\ttry{\n\t\t\t\tdocument = Jsoup.parse(input,\"UTF-8\");\n\t\t\t\tString htmlText = document.body().toString();\n\t\t\t\tString textToBeExtracted = document.select(\"title\").text();\n\t \tSystem.out.println(\"text extracted =\"+textToBeExtracted);\n\t \t\n\t \t\n\t \tPattern pattern = Pattern.compile(\"\\\\((.*?)\\\\)\");\n\t \tMatcher matcher = pattern.matcher(textToBeExtracted);\n\t \tArrayList<String> matchedDataArray = new ArrayList<String>();\n\t \twhile(matcher.find()){\n\t \t\tmatchedDataArray.add(matcher.group());\n\t \t}\n\t \tif(matchedDataArray.size()>0){\n\t \t\tint firstIndex = textToBeExtracted.indexOf(matchedDataArray.get(matchedDataArray.size()-2)); \n\t\t \tif(firstIndex == -1){\n\t\t \t\tbcd.setParticipantsName(textToBeExtracted);\n\t\t \t}\n\t\t \telse{\n\t\t \t\tbcd.setParticipantsName(textToBeExtracted.substring(0,firstIndex-1));\n\t\t \t}\n\t\t \tbcd.setDecisionDate( matchedDataArray.get(matchedDataArray.size()-1));\n\t\t \tbcd.setCaseId(matchedDataArray.get(matchedDataArray.size()-2));\n\t\t \t\n\t \t}\n\t \telse{\n\t \t\tbcd.setParticipantsName(textToBeExtracted);\n\t \t\tbcd.setDecisionDate(\"\");\n\t\t \tbcd.setCaseId(\"\");\n\t \t}\n\t \t\n//\t \tint indexOfParticipantsEnd = textToBeExtracted.indexOf(\"[\");\n//\t \tString participantsName = textToBeExtracted.substring(0,indexOfParticipantsEnd-1);\n//\t \tbcd.setParticipantsName(participantsName);\n//\t \t\n//\t \tint indexOfDateStart = textToBeExtracted.indexOf(\"(\");\n//\t \tint indexOfDateEnd = textToBeExtracted.indexOf(\")\");\n//\t \tString decideDate = textToBeExtracted.substring(indexOfDateStart+1, indexOfDateEnd-1);\n//\t \tbcd.setDecisionDate(decideDate);\n//\t \t\n//\t \t\n//\t \tString caseIDPatternString = \"SC ([0-9]+/[0-9]+|CRI [0-9]+/[0-9]+)\";\n//\t \tPattern caseidPattern = Pattern.compile(caseIDPatternString);\n//\t \tMatcher caseidMatcher = caseidPattern.matcher(htmlText);\n//\t \t\n//\t \tString caseID =\"\";\n//\t \twhile (caseidMatcher.find()) {\n//\t \t\tcaseID = caseidMatcher.group();\n//\t \t \n//\t \t}\n//\t \tbcd.setCaseId(caseID);\n\t \t\n\t \ttextContent = htmlText;\n\t \t\n\t \t\n\t \t}\n\t \tcatch(Exception e){\n\t \t\tSystem.out.println(\"Error in parsing html : \" + e.getMessage());\n\t \t}\n\t\t}\n\t\treturn textContent;\n\t}", "public REparser (String input) throws IOException {\n fileIn = new FileReader(input);\n cout.printf(\"%nEchoing File: %s%n\", input);\n echoFile();\n fileIn = new FileReader(input);\n pbIn = new PushbackReader(fileIn);\n temp = new FileReader(input);\n currentLine = new BufferedReader(temp);\n curr_line = \"\";\n curr_line = currentLine.readLine();\n AbstractNode root;\n while(curr_line != null) {\n getToken();\n root = parse_re(0);\n printTree(root);\n curr_line = currentLine.readLine();\n }\n }", "public void reParse() {\r\n \r\n \t\tSystem.out.println(\"Starting reparse\");\r\n \r\n \t\t// to reparse an entire document\r\n \r\n \t\t// A. remove all document positions & problem markers\r\n \t\tSystem.out.println(\"DUMPING POSITIONS\");\r\n \t\tdumpPositions();\r\n \t\ttry {\r\n \t\t\tgetFile().deleteMarkers(IMarker.PROBLEM, true, IResource.DEPTH_ZERO);\r\n \t\t\t_parseErrors.clear();\r\n \t\t} catch (CoreException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \r\n \t\t// if this is not set, the document is new and has never been parsed before.\r\n \t\tif (_doc == null) {\r\n \t\t\tgetProjectNature().addToModel(this);\r\n \t\t} else {\r\n \r\n \t\t\t// B. remove compilation unit from model tree\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t System.out.println(\"removing compilation unit from tree\");\r\n \t\t\t}\r\n \t\t\t// C. remove Document from project\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t\tSystem.out.println(\"Remove document from project\");\r\n \t\t\t}\r\n \t\t\tgetProjectNature().removeDocument(this);\r\n \r\n \t\t\t// D. Re-add Document to the project (wich will cause it to be parsed)\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t System.out.println(\"Re-add document to project\");\r\n \t\t\t}\r\n \t\t\tNamespace root = getProjectNature().getModel();\r\n \t\t\tgetProjectNature().addModelElement(this, root);\r\n \t\t}\r\n \r\n \t\tSystem.out.println(\"Einde reparse\");\r\n \t}", "public static String transformMarkdown(String markdown, Linker linkRenderer) {\r\n\t\tMutableDataHolder options;\r\n\r\n\t\tif (linkRenderer == null) {\r\n\t\t\toptions = PegdownOptionsAdapter.flexmarkOptions(ALL & ~SMARTYPANTS & ~ANCHORLINKS & ~HARDWRAPS).toMutable();\r\n\t\t} else {\r\n\t\t\toptions = PegdownOptionsAdapter.flexmarkOptions(ALL & ~SMARTYPANTS & ~ANCHORLINKS & ~HARDWRAPS, new CustomExtension(linkRenderer)).toMutable();\r\n\t\t}\r\n\t\tNode document = Parser.builder(options).build().parse(markdown);\r\n\t\treturn HtmlRenderer.builder(options).build().render(document);\r\n\t}", "public void parseDocument(String fileLocation) {\n List<Object> objects = FileUtility.readObjectsFromFile(fileLocation);\n new File(FILE_DIRECTORY_NAME).mkdir();\n\n // TODO: Parellize the processing of html parsing for each html page\n\n objects.parallelStream().forEach((object) -> {\n HtmlPage htmlPage = (HtmlPage) object;\n String title = DocumentUtility.extractDocumentID(htmlPage.getURL());\n String parsedText = parseTitle(title) + NEWLINE + parseHtmlText(htmlPage);\n parsedHtmlPages.add(new ParsedHtmlPage(title, parsedText));\n });\n }", "@Test\n \tpublic void testListAndHeaderInBlockquote() throws IOException{\n \t\tString testString = \"> * Item 1\\n> * Item 2\\n> 1. #### SubItem 2a\\n> 2. SubItem 2b\\n> ``` r\\n> Then a code block!\\n> ```\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n\t\tString expectedResult = \"<blockquote>\\n <ul>\\n <li>Item 1</li>\\n <ul>\\n <li>Item 2</li>\\n <ol>\\n <li><h4 id=\\\"synapseheading0\\\" level=\\\"h4\\\" toc-style=\\\"toc-indent0\\\">SubItem 2a</h4></li>\\n <li>SubItem 2b</li>\\n </ol>\\n </ul>\\n </ul>\\n <pre><code class=\\\"r\\\">Then a code block!</code></pre>\\n <br /> \\n </blockquote>\";\n\t\tassertTrue(actualResult.contains(expectedResult));\n \t}", "private void parse() {\n stack.push(documentNode);\n try {\n Token token = lexer.nextToken();\n boolean tagOpened = false;\n\n while (token.getType() != TokenType.EOF) {\n\n if (token.getType() == TokenType.TEXT) {\n TextNode textNode = new TextNode((String) token.getValue());\n ((Node) stack.peek()).addChild(textNode);\n\n } else if (token.getType() == TokenType.TAG_OPEN) {\n if (tagOpened) {\n throw new SmartScriptParserException(\"The tag was previously open but is not yet closed.\");\n }\n tagOpened = true;\n lexer.setState(LexerState.TAG);\n\n } else if (token.getType() == TokenType.TAG_NAME && token.getValue().equals(\"=\")) {\n parseEchoTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ff][Oo][Rr]\")) {\n parseForTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ee][Nn][Dd]\")) {\n parseEndTag();\n tagOpened = false;\n } else {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n token = lexer.nextToken();\n }\n if (!(stack.peek() instanceof DocumentNode)) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n } catch (LexerException | EmptyStackException exc) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n}", "private RSTTreeNode readParseOutput(String s, JCas jCas, boolean dryRun)\n {\n String[] lines = s.split(\"\\n\");\n Queue<String> inputQueue = new ArrayDeque<>();\n\n for (String line : lines) {\n // this is a one-liner -- split it!\n // e.g.: (Elaboration[N][S] _!The friends!_ _!I had!_)\n String trim = line.trim();\n if (trim.startsWith(\"(\") && trim.endsWith(\")\")) {\n String[] split = trim.split(\"_!\");\n\n // (Elaboration[N][S]\n inputQueue.add(split[0]);\n\n // _!The friends!_\n inputQueue.add(\"_!\" + split[1]);\n\n // _!I had!_)\n inputQueue.add(\"_!\" + split[2]);\n }\n else {\n // otherwise add the whole line\n inputQueue.add(trim);\n }\n }\n\n // stack\n Stack<RSTTreeNode> stack = new Stack<>();\n\n // final root node\n RSTTreeNode result = null;\n\n while (!inputQueue.isEmpty()) {\n // process line (and remove leading whitespaces)\n String line = inputQueue.poll().trim();\n\n // the new RST tree node\n RSTTreeNode treeNode;\n\n // if starts with \"(\", it's a relation\n if (line.startsWith(\"(\")) {\n treeNode = new DiscourseRelation(jCas);\n // temporarily; need to adjust on the next run\n ((DiscourseRelation) treeNode).setRelationType(line);\n\n }\n // or it's a text - EDU\n else if (line.startsWith(\"_!\")) {\n treeNode = new EDU(jCas);\n // temporarily; need to map to tokens later\n ((EDU) treeNode).setOriginalText(line);\n }\n else {\n throw new IllegalStateException(\"Unknown line type: \" + line);\n }\n\n // add to indexes in jcas\n if (!dryRun) {\n treeNode.addToIndexes();\n }\n\n // now connect it to the parent relation\n if (!stack.isEmpty()) {\n DiscourseRelation parent = (DiscourseRelation) stack.peek();\n\n // is it the first or the second argument?\n if (parent.getArg1() == null) {\n parent.setArg1(treeNode);\n }\n else if (parent.getArg2() == null) {\n parent.setArg2(treeNode);\n }\n else {\n throw new IllegalStateException(\"Parent already has arg1 and arg2\");\n }\n }\n\n // and, in case of relation, add it to the stack\n if (treeNode instanceof DiscourseRelation) {\n stack.push(treeNode);\n }\n\n // now check, whether the current line closes some parent relations (and pop them\n // out of the stack)\n while (line.endsWith(\")\")) {\n // System.out.println(line);\n result = stack.pop();\n line = line.substring(0, line.length() - 1);\n }\n }\n\n return result;\n }", "private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}", "@Override\n\tpublic Document parse(final char[] content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "public void parseDirectory(File directory) throws IOException {\n this.parsedFiles.clear();\n File[] contents = directory.listFiles();\n for (File file : contents) {\n if (file.isFile() && file.canRead() && file.canWrite()) {\n String fileName = file.getPath();\n if (fileName.endsWith(\".html\")) {\n Document parsed;\n parsed = Jsoup.parse(file, \"UTF-8\");\n if (this.isWhiteBearArticle(parsed)) {\n HTMLFile newParsedFile = new HTMLFile(parsed, false);\n String name = file.getName();\n this.parsedFiles.put(name, newParsedFile);\n } else if (this.isMenuPage(parsed)) {\n //HTMLFile newParsedFile = new HTMLFile(parsed, false);\n //String name = file.getName();\n //this.parsedFiles.put(name, newParsedFile);\n }\n }\n }\n }\n }", "public ParsedPage parse(String src);", "@Override\npublic\tvoid parseInput() {\n InputStream is = new ByteArrayInputStream(this.body.toString().getBytes());\n\t\t\n\t\t\n\t\ttry {\n\t\t\tthis.domIn = new XMLInputConversion(is);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.rootXML = this.domIn.extractDOMContent();\n\t}", "public void processDocument(String url) throws PageReadException {\n // TODO: reset the results.\n impossible = false;\n givenUrl = url;\n nextPageLink = null;\n if (!notFirstPage) {\n xmlImages = new ArrayList<String>();\n title = null;\n }\n\n String content = pageReader.readPage(url);\n\n document = Jsoup.parse(content);\n\n if (document.getElementsByTag(\"body\").size() == 0) {\n LOG.error(\"no body to parse \" + url);\n impossible = true;\n throw new PageReadException(\"no body to parse\");\n }\n\n init(); // this needs another name, it does all the work.\n if (readAllPages && nextPageLink != null) {\n try {\n String textSoFar = articleText;\n notFirstPage = true;\n processDocument(nextPageLink);\n if (articleText != null) {\n articleText = textSoFar + articleText;\n }\n } finally {\n notFirstPage = false;\n System.out.println(articleText);\n }\n }\n\n }", "public void run()\n {\n mkdStack = translateMacroStack(mkdStack);\n //translate mkd to html\n translateMkdToHtml();\n //send html string to global variable\n Compiler.htmlString = htmlStackToString();\n }", "private static TreeNode parseTreeNode(Scanner in)\n {\n int numberOfChildren = in.nextInt();\n int numberOfMetadata = in.nextInt();\n TreeNode newNode = new TreeNode(numberOfChildren, numberOfMetadata);\n\n // Recursively resolve children\n for (int i = 0; i < numberOfChildren; i++)\n {\n newNode.mChildren[i] = parseTreeNode(in);\n }\n\n // Now resolve the metadata by consuming tokens\n for (int i = 0; i < numberOfMetadata; i++)\n {\n newNode.mMetadata[i] = in.nextInt();\n }\n\n return newNode;\n }", "public Document parse(DocumentParser parser, InputStream InputStream) throws RedPenException {\n return parser.parse(InputStream, sentenceExtractor, configuration.getTokenizer());\n }", "public void refineManualPageBuffer() throws IOException, JSONException {\n\n // parse and refine mark up\n // this.manualPageBuffer -> this.title + this.description ...\n\n String[] lines = manualPageBuffer.split(System.getProperty(\"line.separator\"));\n\n for (int i=0; i < lines.length; i++) {\n\n if (lines[i].contains(\"<h2>\")) {\n if (lines[i].contains(\"Syntax\")) {\n String syn = new String();\n\n while (!lines[i].contains(\"<pre>\")) {\n i++;\n }\n i++;\n if (lines[i].isEmpty()) {\n i++;\n }\n\n while (!lines[i].contains(\"</pre>\")) {\n syn += lines[i];\n i++;\n }\n\n this.syntax = trim(syn);\n System.out.println(\"Syntax : \" + syntax);\n\n }\n else if (lines[i].contains(\"Parameters\")) {\n\n String paramName = \"\";\n String paramInOut = \"\";\n String paramDescription = \"\";\n\n\n\n // TODO retrieve from markup\n\n JsonObject parameters = Json.createObjectBuilder()\n .add(\"name\", paramName)\n .add(\"inout\", paramInOut)\n .add(\"description\", paramDescription)\n .build();\n }\n\n // reference http://www.java2s.com/Tutorials/Java/JSON/0100__JSON_Java.htm\n\n ArrayList<JsonObject> parameters = new ArrayList<JsonObject>();\n\n this.parameters = parameters;\n System.out.println(\"Parameters : \" + this.parameters.toString());\n\n }\n\n\n else if (lines[i].contains(\"Return value\")) {\n\n }\n else if (lines[i].contains(\"Requirements\")) {\n\n }\n else if (lines[i].toLowerCase().contains(\"example\")) {\n\n }\n else if (lines[i].contains(\"See also\")) {\n\n }\n System.out.println(lines[i]);\n }\n\n }", "public static final Document parse(final InputStream is) {\r\n final InputSource in = new InputSource(is);\r\n\r\n return parse(in);\r\n }", "public void visit(TreeBuilder tree){\n\t\tString line;\n\t\twhile ((line = file.readLine(true)) != null)\n\t {\t\t \n \t\tString[] words = line.split(\" \");\n \t\tfor(String word : words){\n \t\t\tif(!word.equals(\"\")){\n \t\t\t\ttree.insertNode(word);\n \t\t\t}\n \t\t}\n \t}\n\t}", "public void testMetaHTMLParsing() {\n\n try {\n\n /* loop through the test documents and validate result */\n for (int t = 0; t < docs.length; t++) {\n\n Content content = getContent(docs[t]);\n Parser parser = ParserFactory.getParser(\"text/html\", URL);\n Parse parse = parser.getParse(content);\n\n assertEquals(metalanguages[t], (String) parse.getData().get(\n HTMLLanguageParser.META_LANG_NAME));\n\n }\n } catch (Exception e) {\n e.printStackTrace(System.out);\n fail(e.toString());\n }\n\n }", "@Test\n public void main() throws IOException {\n currentArticle = null;\n\n for(String line: FileUtils.readLines(new File(\"D:\\\\projects\\\\вёрстка томов ИИ\\\\9 том\\\\термины.txt\"))) {\n\n Matcher matcher = compile(\"\\\\|([^\\\\|]+)\\\\|\\\\s[–\\\\-—]\\\\s(.+)\").matcher(line);\n if (matcher.find()) {\n if (currentArticle != null) {\n saveItem();\n currentArticle = null;\n }\n String term = matcher.group(1);\n String body = matcher.group(2);\n if(body.indexOf(\"см. \") != 0) {\n currentArticle = new Article(term, body);\n } /*else {\n String alias = body.replace(\"см. \", \"\").replace(\"«\", \"\").replace(\"»\", \"\").replace(\".\", \"\");\n saveAliases(alias, term);\n }*/\n } else if (currentArticle != null) {\n currentArticle.setContent(currentArticle.getContent() + \"<br/>\"+line);\n }\n }\n if (currentArticle != null) {\n saveItem();\n }\n }", "private void startParsing(){\r\n pondred = new ArrayList<>();\r\n //extract docs from corpus\r\n for (String xml:parseDocsFile(docs_file))\r\n {\r\n try {\r\n pondred.add(loadXMLFromString(xml));\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n System.out.println(\"Ending parsing\");\r\n for (Core pon:pondred){\r\n for (String string:pon.abstractTerm){\r\n Double tf = pon.getAbstractFerq(string)/pon.getAbstractSize();\r\n Double idf = Math.log10(Core.count/countingDuplicates(string));\r\n pon.abstractFrequence.put(string,tf*idf);\r\n }\r\n pon.finish();\r\n }\r\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tparseFile(\"english_file.txt\");\r\n\t\t\t\t}", "public void testContentsParsing() throws Throwable {\n long start = System.currentTimeMillis();\n PluginTokenizer tokenizer = new PluginTokenizer();\n\n System.out.println(\"\\nStart extracting contents in \\\"\" + _path + \"\\\"\");\n \n tokenizer.setSource(new InputStreamSource(_reader));\n tokenizer.setParseFlags(Tokenizer.F_NO_CASE | Tokenizer.F_TOKEN_POS_ONLY);\n tokenizer.setWhitespaceHandler(this);\n tokenizer.setSequenceHandler(this);\n\n while (tokenizer.hasMoreToken()) {\n tokenizer.nextToken();\n System.out.println(tokenizer.current());\n assertTrue(\"Method current() returned null.\", tokenizer.current() != null);\n }\n \n long diff = System.currentTimeMillis() - start;\n System.out.println(\"Finished after \" + diff + \" milliseconds\");\n }", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "public static String transformMarkdown(String markdown) {\r\n\t\treturn transformMarkdown(markdown, null);\r\n\t}", "public static String md2html() throws ScriptException, FileNotFoundException, NoSuchMethodException {\n ScriptEngineManager manager = new ScriptEngineManager();\n ScriptEngine engine = manager.getEngineByName(\"JavaScript\");\n\n File functionscript = new File(\"public/lib/marked.js\");\n Reader reader = new FileReader (functionscript);\n engine.eval(reader);\n\n Invocable invocableEngine = (Invocable) engine;\n Object marked = engine.get(\"marked\");\n Object lexer = invocableEngine.invokeMethod(marked, \"lexer\", \"**hello**\");\n Object result = invocableEngine.invokeMethod(marked, \"parser\", lexer);\n //invocableEngine.invokeFunction (\"yourFunction\", \"param\");\n return result.toString();\n\n }", "public static void process(PDDocument pdDocument, ContentHandler handler,\n ParseContext context,\n Metadata metadata, PDFParserConfig config)\n throws SAXException, TikaException {\n\n PDFMarkedContent2XHTML pdfMarkedContent2XHTML = null;\n try {\n pdfMarkedContent2XHTML =\n new PDFMarkedContent2XHTML(pdDocument, handler, context, metadata, config);\n } catch (IOException e) {\n throw new TikaException(\"couldn't initialize PDFMarkedContent2XHTML\", e);\n }\n try {\n pdfMarkedContent2XHTML.writeText(pdDocument, new Writer() {\n @Override\n public void write(char[] cbuf, int off, int len) {\n }\n\n @Override\n public void flush() {\n }\n\n @Override\n public void close() {\n }\n });\n } catch (IOException e) {\n if (e.getCause() instanceof SAXException) {\n throw (SAXException) e.getCause();\n } else {\n throw new TikaException(\"Unable to extract PDF content\", e);\n }\n }\n if (pdfMarkedContent2XHTML.exceptions.size() > 0) {\n //throw the first\n throw new TikaException(\"Unable to extract PDF content\",\n pdfMarkedContent2XHTML.exceptions.get(0));\n }\n }", "@Override\n public List<MetadataWrapper> extractContent(InputStream stream, String filename, String mimeType, List<String> tags, String from, String to, boolean recursive) {\n\n Logger.getLogger(\"DefaultFileConverter\").log(Level.INFO, filename + \": \" + mimeType + \" :recursive = \" + recursive);\n try (InputStream fileStream = stream) {\n\n List<MetadataWrapper> contents =new ArrayList<>();\n\n\n //parse Document\n AutoDetectParser parser = new AutoDetectParser();\n Metadata metadata = new Metadata();\n BodyContentHandler handler = new BodyContentHandler();\n TikaInputStream tikaInputStream = TikaInputStream.get(fileStream);\n parser.parse(tikaInputStream, handler, metadata);\n\n contents.add(new FileMetadataWrapper(filename, mimeType, handler.toString(), tags, from, to));\n\n if(recursive) {\n //parse embedded contents\n List<MetadataWrapper> extracted = extractEmbeddedContent(tikaInputStream, filename, from, to);\n contents.addAll(extracted);\n }\n\n Logger.getLogger(\"DefaultFileConverter\").log(Level.INFO, filename + \": \" + \"contents: \" + contents);\n return contents;\n\n } catch (IOException | SAXException | TikaException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public Map<String,WikiArticle> parse() throws Exception {\n \n DocumentBuilder dB = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n \n Document doc = dB.parse(xmlFile);\n \n \n NodeList allPages = doc.getElementsByTagName(\"page\");\n \n for (int i = 0; i < allPages.getLength(); i++) {\n\n WikiArticle e = new WikiArticle();\n \n Node page = allPages.item(i);\n \n NodeList pageAttribs = page.getChildNodes();\n \n for (int j = 0; j < pageAttribs.getLength(); j++) {\n \n Node pageAttr = pageAttribs.item(j);\n String attrName = pageAttr.getNodeName();\n String attrValue = pageAttr.getTextContent();\n \n if (attrName.equals(\"id\")) {\n \n e.setId(attrValue);\n }\n \n if (attrName.equals(\"title\")) {\n \n e.setTitle(attrValue);\n }\n \n if (attrName.equals(\"revision\")) {\n \n NodeList revAttribs = pageAttr.getChildNodes();\n \n for (int k = 0; k < revAttribs.getLength(); k++) {\n \n Node revAttr = revAttribs.item(k);\n String revAttrName = revAttr.getNodeName();\n String revAttrVal = revAttr.getTextContent();\n \n if (revAttrName.equals(\"text\")) {\n \n e.setText(revAttrVal);\n } \n }\n }\n }\n \n if (!e.isEmpty()) {\n \n String eTitle = e.parseTitle();\n e.parseLinks();\n \n //TODO: Test\n //e.parseProps();\n \n this.entries.put(eTitle, e);\n }\n }\n \n return entries;\n \n }", "private String parseHtmlText(HtmlPage htmlPage) {\n\n Document doc = Jsoup.parse(htmlPage.getRawHTML(), htmlPage.getURL());\n StringBuilder sb = new StringBuilder();\n doc.getElementsByClass(MAIN_CONTENT_CLASS).forEach(element -> {\n element.getElementsByTag(PARAGRAPH_TAG).forEach(paragraph_element -> {\n sb.append(paragraph_element.text()).append(SPACE);\n });\n });\n\n String parsedText = sb.toString();\n // IF case folding is set, perform it\n if (this.isCaseFolding) {\n parsedText = parsedText.toLowerCase();\n }\n\n // IF punctuation handling is set, perform it\n if (this.isPunctuationHandling) {\n parsedText = punctuationHandler(parsedText);\n }\n\n return parsedText;\n }", "public static Document parse(InputStream is) throws IOException\n {\n return parse(is, false);\n }", "private void parseTree(BufferedReader in, VssProject vssProject) {\r\n try {\r\n String line;\r\n boolean start = false;\r\n while ((line = in.readLine()) != null) {\r\n if (!start) {\r\n if (line.startsWith(\"$\") && line.endsWith(\":\")) {\r\n start = true;\r\n continue;\r\n }\r\n } else {\r\n if (line.length() == 0)\r\n break;\r\n if (line.startsWith(\"$\")) {\r\n \t\r\n String projectName = line.substring(1);\r\n if ( config.getProjectsToIgnore().contains( projectName ) )\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t// Ignore list!\r\n \t\t\t\t\t\tLOG.warn( \"Ignore project \" + projectName + \" found in : \" + vssProject.getVssPath() );\r\n \t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t}\r\n \r\n VssProject newProject = new VssProject();\r\n newProject.setName(projectName);\r\n newProject.setParent(vssProject);\r\n vssProject.addSubproject(newProject);\r\n \r\n } else \r\n {\r\n if (line.startsWith(\"No items found under $\")) {\r\n continue;\r\n } \r\n String filename = line;\r\n String parent = vssProject.getVssPath().substring(config.getProject().length());\r\n if (parent.length() > 0) {\r\n if (parent.startsWith(\"/\"))\r\n parent = parent.substring(1);\r\n if (!parent.endsWith(\"/\"))\r\n parent += \"/\";\r\n }\r\n String path = parent + filename;\r\n VssFile newFile = new VssFile(path, filename);\r\n newFile.setParent(vssProject);\r\n vssProject.addFile(newFile);\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n throw new VssException(\"readLine\", e);\r\n }\r\n }", "private Tree<Token> tree(String description) {\n Tree<String> treeOfStrings = Tree.parse(description);\n return convertToTreeOfTokens(treeOfStrings);\n }", "public abstract WalkerDocument newDocument(String path, IOptions options) throws HtmlWalkerException;", "public HtmlDocument(Content htmlTree) {\n docContent = htmlTree;\n }", "public MinedMainDocument parseMainArtifact() {\n\t\ttry {\n\t\t\tInputStream is = this.getNuxeoInstance().getDocumentInputStream(mainArtefact.getId());\n\t\t\t\n\t\t\tString title = this.getNuxeoInstance().getLastDocTitle();\n\t\t\tif(title==null) title = \"Main Document\";\n\t\t\t\n\t\t\tDocxParser docx = new DocxParser(is);\n\t\t\tdocx.parseDocxAndChapters();\n\t\t\tMinedMainDocument mainDoc = new MinedMainDocument(title, docx.getFullText());\n\t\t\tmainDoc.addChapters(docx.getChapterHeadlines(), docx.getChapterTexts());\n\t\t\tis.close();\n\t\t\treturn mainDoc;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "void process(Document document, Repository repository) throws Exception;", "@Override\n public void textFileLoaded(File file, int wc, String contents)\n {\n cur_file = file;\n this.action_panel.setWordCount(wc);\n \n new Thread(new MarkdownProcessor(file, this)).start();\n }", "public static Document parse(String filename) throws ParserException {\n\n\t\tString FileID, Category, Title = null, Author = null, AuthorOrg = null, Place = null, NewsDate = null, Content = null, FileN;\n\t\tDocument d = new Document();\n\t\tif (filename == null || filename == \"\")\n\t\t\tthrow new ParserException();\n\t\tFileN = filename;\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\n\t\tBufferedReader r = null;\n\t\tFile file = new File(FileN);\n\t\tif (!file.exists())\n\t\t\tthrow new ParserException();\n\t\tFileID = file.getName();\n\t\tCategory = file.getParentFile().getName();\n\t\ttry {\n\t\t\tr = new BufferedReader(new FileReader(file));\n\t\t\tint i = 1, j = 3;\n\t\t\tBoolean isTitle = true, hasAuthor = false;\n\t\t\tString line;\n\t\t\twhile ((line = r.readLine()) != null) {\n\t\t\t\tline = line.trim();\n\t\t\t\tif (!line.equals(\"\")) {\n\t\t\t\t\tmap.put(i, line);\n\t\t\t\t\tif (isTitle) {\n\t\t\t\t\t\tTitle = line;\n\t\t\t\t\t\tisTitle = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (hasAuthor == false && i == 2) {\n\t\t\t\t\t\tPattern pattern = Pattern\n\t\t\t\t\t\t\t\t.compile(\"<AUTHOR>(.+?)</AUTHOR>\");\n\t\t\t\t\t\tMatcher matcher = pattern.matcher(line);\n\t\t\t\t\t\tif (matcher.find()) {\n\t\t\t\t\t\t\tAuthor = matcher.group(1).replace(\"BY\", \"\");\n\t\t\t\t\t\t\tAuthorOrg = Author.substring(\n\t\t\t\t\t\t\t\t\tAuthor.lastIndexOf(\",\") + 1).trim();\n\t\t\t\t\t\t\tAuthor = Author.split(\",\")[0].trim();\n\t\t\t\t\t\t\thasAuthor = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!hasAuthor && i == 2) {\n\t\t\t\t\t\tString[] str = checkPlace(line);\n\t\t\t\t\t\tContent = str[0];\n\t\t\t\t\t\tPlace = str[1];\n\t\t\t\t\t\tNewsDate = str[2];\n\t\t\t\t\t} else if (hasAuthor && i == 3) {\n\t\t\t\t\t\tString[] str = checkPlace(line);\n\t\t\t\t\t\tContent = str[0];\n\t\t\t\t\t\tPlace = str[1];\n\t\t\t\t\t\tNewsDate = str[2];\n\t\t\t\t\t\tj = 4;\n\t\t\t\t\t}\n\t\t\t\t\tif (i >= j) {\n\t\t\t\t\t\tContent = Content + map.get(i) + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tr.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (Author != null) {\n\t\t\tAuthor = Author.replace(\"By\", \"\").trim();\n\t\t\td.setField(FieldNames.AUTHOR, Author);\n\t\t\td.setField(FieldNames.AUTHORORG, AuthorOrg);\n\t\t} \n\t\td.setField(FieldNames.FILEID, FileID);\n\t\td.setField(FieldNames.CATEGORY, Category);\n\t\td.setField(FieldNames.TITLE, Title);\n\t\td.setField(FieldNames.PLACE, Place);\n\t\td.setField(FieldNames.NEWSDATE, NewsDate);\n\t\td.setField(FieldNames.CONTENT, Content);\n\n\t\treturn d;\n\t}", "public String parseHTML(String html) {\n\n int endIndex;\n for (int startIndex = html.indexOf(\"<figure\");\n startIndex >= 0;\n startIndex = html.indexOf(\"<figure\")) {\n endIndex = html.indexOf(\"figure>\", startIndex);\n if (endIndex == -1) {\n break;\n }\n String sub = html.substring(startIndex, endIndex + 7);\n html = html.replace(sub, \"\");\n }\n\n for (int startIndex = html.indexOf(\"<span class=\\\"editsection\");\n startIndex >= 0;\n startIndex = html.indexOf(\"<span class=\\\"editsection\")) {\n endIndex = html.indexOf(\"span>\", startIndex);\n if (endIndex == -1) {\n break;\n }\n String sub = html.substring(startIndex, endIndex + 5);\n html = html.replace(sub, \"\");\n }\n\n for (int startIndex = html.indexOf(\"<img\");\n startIndex >= 0;\n startIndex = html.indexOf(\"<img\")) {\n endIndex = html.indexOf(\"img>\", startIndex);\n if (endIndex == -1) {\n break;\n }\n String sub = html.substring(startIndex, endIndex + 5);\n html = html.replace(sub, \"\");\n }\n\n return html;\n }", "public void ParseDir(String dirname)\n\t{\n\t\ttry {\n\t\t\tfor(File f: getFileListing(new File(dirname)))\n\t\t\t{\n\t\t\t\tString s = readFileAsString(f.getAbsolutePath());\n\t\t\t\ts = filterComments(s);\n\t\t\t\tdna.setParser(this);\n\t\t\t\tdna.createFromString(s);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void parse() {\n }", "@Override\n public void storeParsedText() {\n parsedHtmlPages.parallelStream().forEach(parsedHtmlPage -> {\n FileUtility.writeToFile(parsedHtmlPage, FILE_DIRECTORY_NAME + FILE_SEPARATOR + parsedHtmlPage.getTitle());\n });\n }", "private Document parse(String path) throws DocumentException, MalformedURLException {\n File file = new File(path);\r\n SAXReader saxReader = new SAXReader();\r\n return saxReader.read(file);\r\n }", "@Test\n public void parserHtml() throws JSONException, IOException {\n }", "static void parseIt() {\n try {\n long start = System.nanoTime();\n int[] modes = {DET_MODE, SUM_MODE, DOUBLES_MODE};\n String[] filePaths = {\"\\\\catalogue_products.xml\", \"\\\\products_to_categories.xml\", \"\\\\doubles.xml\"};\n HashMap<String, String[]> update = buildUpdateMap(remainderFile);\n window.putLog(\"-------------------------------------\\n\" + updateNodes(offerNodes, update) +\n \"\\nФайлы для загрузки:\");\n for (int i = 0; i < filePaths.length; i++) {\n // Define location for output file\n File outputFile = new File(workingDirectory.getParent() + filePaths[i]);\n pushDocumentToFile(outputFile, modes[i]);\n printFileInfo(outputFile);\n }\n window.putLog(\"-------------------------------------\\nВсего обработано уникальных записей: \" +\n offerNodes.size());\n long time = (System.nanoTime() - start) / 1000000;\n window.putLog(\"Завершено без ошибок за \" + time + \" мс.\");\n offerNodes = null;\n //window.workshop.setParseButtonDisabled();\n } catch (TransformerException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \" (\" + e.getException() + \")\\n\\t\" + e.getMessageAndLocation()));\n } catch (ParserConfigurationException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getLocalizedMessage()));\n } catch (SAXException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(\"SAXexception: \" + e.getMessage()));\n\n } catch (IOException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getMessage() + \". \" + e.getStackTrace()[0]));\n }\n }", "public static String transformMarkdown(Reader markdownReader) throws IOException {\r\n\t\t// Read raw markdown content and transform it to html\r\n\t\tStringWriter writer = new StringWriter();\r\n\t\ttry {\r\n\t\t\tIOUtils.copy(markdownReader, writer);\r\n\t\t\tString markdown = writer.toString();\r\n\t\t\treturn transformMarkdown(markdown);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\twriter.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// IGNORE\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Document parse (String filePath) {\n Document document = null;\n try {\n /* DOM parser instance */\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n /* parse an XML file into a DOM tree */\n document = builder.parse(filePath);\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return document;\n }", "void normalize(ILineStartFinder finder) {\n // perform final changes to the open and close body ranges\n int openBodyEnd, openBodyStart, closeBodyStart, closeBodyEnd;\n DOMNode first = (DOMNode) getFirstChild();\n DOMNode lastNode = null;\n // look for the open body\n Scanner scanner = new Scanner();\n scanner.setSource(this.fDocument);\n scanner.resetTo(this.fNameRange[1] + 1, this.fDocument.length);\n try {\n int currentToken = scanner.getNextToken();\n while (currentToken != TerminalTokens.TokenNameLBRACE && currentToken != TerminalTokens.TokenNameEOF) {\n currentToken = scanner.getNextToken();\n }\n if (currentToken == TerminalTokens.TokenNameLBRACE) {\n openBodyEnd = scanner.currentPosition - 1;\n openBodyStart = scanner.startPosition;\n } else {\n openBodyEnd = this.fDocument.length;\n openBodyStart = this.fDocument.length;\n }\n } catch (InvalidInputException e) {\n openBodyEnd = this.fDocument.length;\n openBodyStart = this.fDocument.length;\n }\n if (first != null) {\n int lineStart = finder.getLineStart(first.getStartPosition());\n if (lineStart > openBodyEnd) {\n openBodyEnd = lineStart - 1;\n } else {\n openBodyEnd = first.getStartPosition() - 1;\n }\n lastNode = (DOMNode) first.getNextNode();\n if (lastNode == null) {\n lastNode = first;\n } else {\n while (lastNode.getNextNode() != null) {\n lastNode = (DOMNode) lastNode.getNextNode();\n }\n }\n scanner.setSource(this.fDocument);\n scanner.resetTo(lastNode.getEndPosition() + 1, this.fDocument.length);\n try {\n int currentToken = scanner.getNextToken();\n while (currentToken != TerminalTokens.TokenNameRBRACE && currentToken != TerminalTokens.TokenNameEOF) {\n currentToken = scanner.getNextToken();\n }\n if (currentToken == TerminalTokens.TokenNameRBRACE) {\n closeBodyStart = scanner.startPosition;\n closeBodyEnd = scanner.currentPosition - 1;\n } else {\n closeBodyStart = this.fDocument.length;\n closeBodyEnd = this.fDocument.length;\n }\n } catch (InvalidInputException e) {\n closeBodyStart = this.fDocument.length;\n closeBodyEnd = this.fDocument.length;\n }\n } else {\n scanner.resetTo(openBodyEnd, this.fDocument.length);\n try {\n int currentToken = scanner.getNextToken();\n while (currentToken != TerminalTokens.TokenNameRBRACE && currentToken != TerminalTokens.TokenNameEOF) {\n currentToken = scanner.getNextToken();\n }\n if (currentToken == TerminalTokens.TokenNameRBRACE) {\n closeBodyStart = scanner.startPosition;\n closeBodyEnd = scanner.currentPosition - 1;\n } else {\n closeBodyStart = this.fDocument.length;\n closeBodyEnd = this.fDocument.length;\n }\n } catch (InvalidInputException e) {\n closeBodyStart = this.fDocument.length;\n closeBodyEnd = this.fDocument.length;\n }\n openBodyEnd = closeBodyEnd - 1;\n }\n setOpenBodyRangeEnd(openBodyEnd);\n setOpenBodyRangeStart(openBodyStart);\n setCloseBodyRangeStart(closeBodyStart);\n setCloseBodyRangeEnd(closeBodyEnd);\n this.fInsertionPosition = finder.getLineStart(closeBodyStart);\n if (lastNode != null && this.fInsertionPosition < lastNode.getEndPosition()) {\n this.fInsertionPosition = getCloseBodyPosition();\n }\n if (this.fInsertionPosition <= openBodyEnd) {\n this.fInsertionPosition = getCloseBodyPosition();\n }\n super.normalize(finder);\n }", "public WalkerDocument newDocument(String path) throws HtmlWalkerException { return newDocument(path, null); }", "public CountDownLatch fetchMarkdown(PitchParams pp) {\n\n final String mdmKey = MarkdownModel.genKey(pp);\n\n CountDownLatch freshLatch = new CountDownLatch(1);\n CountDownLatch activeLatch =\n markdownLatchMap.putIfAbsent(mdmKey, freshLatch);\n\n if (activeLatch != null) {\n /*\n * A non-null activeLatch implies a fetchMarkdown()\n * operation is already in progress for the current\n * /{user}/{repo}?b={branch}.\n */\n log.debug(\"fetchMarkdown: pp={}, already in progress, \" +\n \"returning existing activeLatch={}\", pp, activeLatch);\n return activeLatch;\n\n } else {\n\n CompletableFuture<Void> syncFuture =\n CompletableFuture.supplyAsync(() -> {\n\n GRS grs = grsManager.get(pp);\n GRSService grsService = grsManager.getService(grs);\n\n int downStatus = grsService.download(pp, PITCHME_MD);\n\n if (downStatus == STATUS_OK) {\n\n String ssmKey = SlideshowModel.genKey(pp);\n Optional<SlideshowModel> ssmo =\n Optional.ofNullable(pitchCache.get(ssmKey));\n\n /*\n * The SSM in the pitchCache can be absent if\n * we are currently processing a print or offline\n * download. In these caes, quickly reconstitute\n * the SSM using YAML on disk so markdown rendering\n * can honor all custom YAML configurations.\n */\n if(!ssmo.isPresent()) {\n\n SlideshowModel ssm =\n SlideshowModel.build(pp, true, grsService, diskService);\n ssmo = Optional.of(ssm);\n }\n\n MarkdownRenderer mrndr = MarkdownRenderer.build(pp,\n ssmo, grsService, diskService);\n\n // MarkdownModel mdm = MarkdownModel.consume(mrndr);\n MarkdownModel mdm =\n (MarkdownModel) markdownModelFactory.create(mrndr);\n pitchCache.set(mdmKey, mdm, cacheTimeout.mdm(pp));\n\n } else {\n log.debug(\"fetchMarkdown: pp={}, failed status={}\",\n pp, downStatus);\n }\n\n /*\n * Current operation completed, so remove latch associated\n * with operation from markdownLatchMap to permit future\n * operations on this /{user}/{repo}?b={branch}.\n */\n releaseCountDownLatch(markdownLatchMap, mdmKey);\n\n /*\n * Operation completed, valid result cached, no return required.\n */\n return null;\n\n }, backEndThreads.POOL)\n .handle((result, error) -> {\n\n if (error != null) {\n\n log.warn(\"fetchMarkdown: pp={}, fetch error={}\",\n pp, error);\n releaseCountDownLatch(markdownLatchMap, mdmKey);\n }\n\n return null;\n });\n\n return freshLatch;\n }\n\n }", "public static void main (String[] args) {\r\n try {\r\n BufferedReader in = new BufferedReader(\r\n new InputStreamReader(\r\n new FileInputStream(new File(\"D:\\\\bitext.html\")), \"UTF-8\"));\r\n\r\n String s;\r\n StringBuffer b = new StringBuffer();\r\n while( (s = in.readLine()) != null) {\r\n b.append(s );\r\n }\r\n String page= b.toString();\r\n HTMLParser parser = new HTMLParser(page.getBytes(\"UTF-8\"));\r\n //parser.getTagValue (\"meta\");\r\n //System.out.println();\r\n\r\n System.out.println(parser.htmlParsing (false, null, null, false));\r\n //System.out.println(htmlParsing (page3, \"euc-kr\"));\r\n\r\n\r\n } catch (Throwable t) {\r\n t.printStackTrace ();\r\n }\r\n }", "public static void htmlExtractor() throws IOException {\t\n\t\tString inizio=\"Inizio:\"+new Date();\n\t\tfinal File sourceDocDir = new File(\"datasetWarc\");\n\t\tif (sourceDocDir.canRead()) {\n\t\t\tif (sourceDocDir.isDirectory()) {\n\t\t\t\tString[] files = sourceDocDir.list();\n\t\t\t\t// an IO error could occur\n\t\t\t\tif (files != null) {\n\t\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\t\tSystem.out.println(files[i]);\n\t\t\t\t\t\tFromWarcToHtml.WarcExtractor(new File(sourceDocDir, files[i]));\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\n\n\n\t\t}\n\n\t\tSystem.out.println(\"Tempo Estrazione HTML:\"+\"Inizio: \"+inizio+\"Fine: \"+new Date());\n\n\t}", "public void initParser() {;\r\n lp = DependencyParser.loadFromModelFile(\"edu/stanford/nlp/models/parser/nndep/english_SD.gz\");\r\n tokenizerFactory = PTBTokenizer\r\n .factory(new CoreLabelTokenFactory(), \"\");\r\n }", "public static void demoDP(LexicalizedParser lp, String filename) {\n\t\t// This option shows loading and sentence-segmenting and tokenizing\n\t\t// a file using DocumentPreprocessor.\n\t\tTreebankLanguagePack tlp = new PennTreebankLanguagePack();\n\t\tGrammaticalStructureFactory gsf = tlp.grammaticalStructureFactory();\n\t\t// You could also create a tokenizer here (as below) and pass it\n\t\t// to DocumentPreprocessor\n\t\tfor (List<HasWord> sentence : new DocumentPreprocessor(filename)) {\n\t\t\tTree parse = lp.apply(sentence);\n\t\t\tList<Tree> testTree = new ArrayList<Tree>();\n\n\t\t\t// for (Tree subtree : parse) {\n\t\t\t// if (subtree.label().value().equals(\"VP\")) {\n\t\t\t// testTree.add(subtree);\n\t\t\t// }\n\t\t\t// }\n\t\t\t//\n//\t\t\tString pattern = \"VP < ((/VB.?/ < am|is|are|was|were) $+ (RB < /n['o]t/)) [< NP | < VP]\";// \"\\\\(VP \\\\([am|is|was|were|are]\\\\) .*\\\\)\";//\n//\t\t\tString pat = \"@NP < /NN.?/\";\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"\\\\(VP \\\\(.* [am|is|are|was|were]\\\\) \\\\(RB n[o’]t\\\\) \\\\(*\\\\)\\\\)\";\n//\t\t\tTregexPattern tgrepPattern = TregexPattern.compile(pattern);\n//\t\t\tTregexMatcher m = tgrepPattern.matcher(parse);\n//\t\t\twhile (m.find()) {\n//\t\t\t\tTree subtree = m.getMatch();\n//\t\t\t\ttestTree.add(subtree);\n//\t\t\t\tSystem.out.println(subtree.toString());\n//\t\t\t}\n\n\t\t\tTregexPatternCompiler tpc = new TregexPatternCompiler();\n\t\t\ttpc.addMacro(\"@VB\", \"/^VB/\");\n\t\t\ttpc.addMacro(\"@Be\", \"am|is|are|was|were\");\n\t\t\ttpc.addMacro(\"@Aux\", \"have|has|had|do|does|did\");\n\t\t\ttpc.addMacro(\"@NEGTerm\", \"(RB < /n['o]t/)\");\n\t\t\ttpc.addMacro(\"@PRN\", \"NP|ADJP|PP|ADVP|SBAR|S\");\n\t\t\ttpc.addMacro(\"@Modal\", \"can|could|may|might|will|would|must|shall|should|ought\");\n\t\t\ttpc.addMacro(\"@Be-Not\", \"(@VB < @Be $+ @NEGTerm)\");\n//\t\t\tTregexPattern test = tpc.compile(\"NP = cnp < DT !$ PP\");\n//\t\t\tTregexPattern test = tpc.compile(\"VP < ((@VB < @Be) $+ @NEGTerm) <@PRN\");\n//\t\t\tTregexPattern test = tpc.compile(\"VP < ((@VB < @Be) $+ @NEGTerm) < @PRN\");\n//\t\t\tTregexPattern test = tpc.compile(\"VP < @VB =vb < @NEGTerm < @PRN =xc \");\n//\t\t\tTregexPattern test = tpc.compile(\"VP < ((MD < @Modal) $+ @NEGTerm) < @PRN\");\n//\t\t\tTregexPattern test = tpc.compile(\"VP < (MD $+ @NEGTerm) < VP \"); //GOOD\n//\t\t\tTregexPattern test = tpc.compile(\"VP < MD=md < VP: =md $+ @NEGTerm \");\n//\t\t\tTregexPattern test = tpc.compile(\"VP < @VB=vb : =vb < @Be : =vb $+ @NEGTerm\");\n//\t\t\tTregexPattern test = tpc.compile(\"VP < @VB=vb < @PRN :(=vb < @Be $+ @NEGTerm)\");\n//\t\t\tTregexPattern test = tpc.compile(\"@VB < @Be $+ @NEGTerm\");\n\n\t\t\tTregexPattern test = tpc.compile(\"VP < ((@VB < @Aux) $+ @NEGTerm) < VP\");\n\t\t\t\n\n\t\t\tTregexMatcher mth = test.matcher(parse);\n\t\t\tif (mth.find()) {\n\t\t\t\tTree subtree = mth.getMatch();\n\t\t\t\ttestTree.add(subtree);\n\t\t\t\tSystem.out.println(\"Ter Compiler: \"+subtree.toString());\n\t\t\t}\n//\t\t\tfor (Tree subTree : testTree) {\n//\t\t\t\tString prdPattern = \"NP\";\n//\t\t\t\t TregexPattern prd = TregexPattern.compile(prdPattern);\n//\t\t\t\t TregexMatcher macher = prd.matcher(subTree);\n//\t\t\t\t if (macher.find()) {\n//\t\t\t\t Tree prdTree = m.getMatch();\n//\t\t\t\t System.out.println(\"PRD pattern: \"+prdTree.toString());\n//\t\t\t\t }\n//\t\t\t}\n\t\t\tSystem.out.println(\"--- Pattern: \" + testTree.toString());\n\t\t\t System.out.println(\"***\" + parse.toString());\n//\t\t\tparse.pennPrint();\n//\t\t\tSystem.out.println(parse.pennString());\n\t\t\tSystem.out.println();\n\n\t\t\tGrammaticalStructure gs = gsf.newGrammaticalStructure(parse);\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tCollection tdl = gs.typedDependenciesCCprocessed();\n\t\t\t System.out.println(\"td1: \"+tdl);\n\t\t\t System.out.println();\n\t\t}\n\t}", "private LazyParsedPage parse(\n\t PageTitle title,\n\t LazyPreprocessedPage ppAst,\n\t EntityMap entityMap,\n\t ContentNode parentLog)\n\t throws CompilerException\n\t{\n\t\tParserLog log = new ParserLog();\n\t\tparentLog.getContent().add(log);\n\t\t\n\t\tStopWatch stopWatch = new StopWatch();\n\t\tstopWatch.start();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tPreprocessedWikitext preprocessedWikitext =\n\t\t\t PreprocessorToParserTransformer.transform(\n\t\t\t ppAst,\n\t\t\t entityMap,\n\t\t\t true);\n\t\t\t\n\t\t\tLazyParser parser = new LazyParser(wikiConfig);\n\t\t\t\n\t\t\tLazyParsedPage parsedAst =\n\t\t\t (LazyParsedPage) parser.parseArticle(\n\t\t\t preprocessedWikitext,\n\t\t\t title.getTitle());\n\t\t\t\n\t\t\tparsedAst.getWarnings().addAll(ppAst.getWarnings());\n\t\t\t\n\t\t\treturn parsedAst;\n\t\t}\n\t\tcatch (xtc.parser.ParseException e)\n\t\t{\n\t\t\tlog.getContent().add(new ParseException(e.getMessage()));\n\t\t\t\n\t\t\tthrow new CompilerException(\"Parsing failed!\", e);\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t\tlogger.error(\"Parsing failed!\", e);\n\t\t\t\n\t\t\tStringWriter w = new StringWriter();\n\t\t\te.printStackTrace(new PrintWriter(w));\n\t\t\tlog.getContent().add(new UnhandledException(e, w.toString()));\n\t\t\t\n\t\t\tthrow new CompilerException(\"Parsing failed!\", e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tstopWatch.stop();\n\t\t\tlog.setTimeNeeded(stopWatch.getElapsedTime());\n\t\t}\n\t}", "public static void parsepage(String sourcecode) {\r\n\t\tint indexfrom = 0;\r\n\t\tint indexto = 0;\r\n\t\t\r\n\t\tindexfrom = sourcecode.indexOf(\"<title>\", indexfrom + 1);\r\n\t\tindexto = sourcecode.indexOf(\"</title>\", indexto + 1);\r\n\t\tif(indexfrom != -1 && indexto != -1) {\r\n\t\t\tSystem.out.println(sourcecode.substring(indexfrom + 7, indexto) + \"\\n\\r\");\r\n\t\t}\r\n\r\n\t\tindexfrom = 0;\r\n\t\tindexto = 0;\r\n\t\twhile(true) {\r\n\t\t\tindexfrom = sourcecode.indexOf(\"<\", indexfrom + 1);\r\n\t\t\tif(indexfrom != -1) {\r\n\t\t\t\tif(sourcecode.substring(indexfrom, indexfrom+6).contains(\"<p>\")) {\r\n\t\t\t\t\tindexto = sourcecode.indexOf(\"</p>\", indexfrom + 2);\r\n\t\t\t\t\tif(indexto != -1) {\r\n\t\t\t\t\t\tSystem.out.println(sourcecode.substring(indexfrom + 3, indexto) + \"\\n\\r\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(sourcecode.substring(indexfrom, indexfrom+6).contains(\"<img\")) {\r\n\r\n\t\t\t\t\tindexto = sourcecode.indexOf(\"src=\\\"\", indexfrom + 2);\r\n\t\t\t\t\tif(indexto != -1) {\r\n\t\t\t\t\t\tString imagepath = sourcecode.substring(indexto+5, sourcecode.indexOf(\"\\\"\", indexto+5));\r\n\t\t\t\t\t\tif(!imagepath.contains(host)) {\r\n\t\t\t\t\t\t\tif(imagepath.contains(\":\")) {\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\tString[] tokens = url.split(\"\\\\/(?=[^\\\\/]+$)\");\r\n\t\t\t\t\t\t\t\thost = tokens[0];\r\n\t\t\t\t\t\t\t\tif(host.startsWith(\"http://\")) {\r\n\t\t\t\t\t\t\t\t\thost = host.substring(host.indexOf(\"//\") + 2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(!host.startsWith(\"www.\")) {\r\n\t\t\t\t\t\t\t\t\thost = \"www.\" + host;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(imagepath.startsWith(\"/\")) {\r\n\t\t\t\t\t\t\t\t\timagepath = \"http://\" + host + imagepath;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tif(host.endsWith(\"/\")) {\r\n\t\t\t\t\t\t\t\t\t\timagepath = \"http://\" + host + imagepath;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\timagepath = \"http://\" + host + \"/\" + imagepath;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tdownloadimage(imagepath);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch(IOException e) {\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\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public List<Section> processDocument(String path) throws FileNotFoundException {\n\t\tList<Section> finalSections = new ArrayList<Section>();\r\n\t\t// Load file to process...\r\n\t\tInputStream input = new FileInputStream(\r\n\t\t\t\tpath.replace(\"\\\\\", \"/\").substring(1, path.replace(\"\\\\\", \"/\").length() - 1));\r\n\t\tFile file = new File(path);\r\n\t\ttry {\r\n\t\t\t// Use PdfBox library to load PDF Stream with their geometric descriptors...\r\n\t\t\tPDDocument doc = PDDocument.load(input);\r\n\t\t\tDocument resultDoc = new Document();\r\n\t\t\t// Create maps to hold fonts used in the processed document .\r\n\t\t\tfinal Map<Object, Integer> fonts = new HashMap<Object, Integer>();\r\n\t\t\tfinal Map<Integer, Font> idToFont = new HashMap<Integer, Font>();\r\n\t\t\t// If the document have multiple pages, manages the segmentation page by page...\r\n\t\t\tfor (int i = 0; i < doc.getNumberOfPages(); i++) {\r\n\t\t\t\tPDPage page = (PDPage) doc.getDocumentCatalog().getAllPages().get(i);\r\n\t\t\t\t// Set up pdf page object.\r\n\t\t\t\tPage pdfPage = new Page();\r\n\t\t\t\tpdfPage.setPageRotation(page.findRotation());\r\n\t\t\t\tpdfPage.setPageWidth(page.findMediaBox().getWidth());\r\n\t\t\t\tpdfPage.setPageHeight(page.findMediaBox().getHeight());\r\n\t\t\t\tpdfPage.setOffsetUpperRightX(\r\n\t\t\t\t\t\tpage.findMediaBox().getUpperRightX() - page.findCropBox().getUpperRightX());\r\n\t\t\t\tpdfPage.setOffsetUpperRightY(\r\n\t\t\t\t\t\tpage.findMediaBox().getUpperRightY() - page.findCropBox().getUpperRightY());\r\n\t\t\t\tpdfPage.setNumber(i);\r\n\t\t\t\t// Extracting textual content of each page.\r\n\t\t\t\tPDStream contents = page.getContents();\r\n\t\t\t\tif (contents != null) {\r\n\t\t\t\t\tif (true) {\r\n\t\t\t\t\t\tTextExtractor extractor = new TextExtractor(pdfPage, idToFont, fonts);\r\n\t\t\t\t\t\textractor.processStream(page, page.findResources(), contents.getStream());\r\n\t\t\t\t\t\tpdfPage.setLines(extractor.getLines());\r\n\t\t\t\t\t\textractor.getTextMatrix();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Add pages decorated by geometric descriptors to the doc to segment ...\r\n\t\t\t\tresultDoc.getPages().add(pdfPage);\r\n\t\t\t\tfor (Entry<Integer, Font> e : idToFont.entrySet()) {\r\n\t\t\t\t\tresultDoc.getFonts().add(e.getValue());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Process extracting document Sections...\r\n\t\t\tPdfBlockExtractor pdfExtractor = new PdfBlockExtractor();\r\n\t\t\tList<Block> extractedBlocks = pdfExtractor.extractBlocks(resultDoc,\r\n\t\t\t\t\tpath.split(File.separator + File.separator)[1]);\r\n\r\n\t\t\t// Generating final result....\r\n\t\t\tgenerateFinalSegmentationResults(finalSections, extractedBlocks);\r\n\r\n\t\t\tdoc.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn finalSections;\r\n\t}", "public void buildDocument( InputStream is ) {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch ( ParserConfigurationException ex ) {\n Global.warning( \"Parser configuration exception: \" + ex.getMessage() );\n }\n try {\n doc = dBuilder.parse( is );\n } catch ( SAXException ex ) {\n Global.warning( \"SAX parser exception: \" + ex.getMessage() );\n } catch ( IOException ex ) {\n Global.warning( \"IO exception: \" + ex.getMessage() );\n }\n\n }", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "public GitTree getTree() { return _cmt.getTree(); }", "@Test\n public void testParse()\n {\n System.out.println(\"parse\");\n System.out.println(\" Test simple case\");\n final File file = new File(\"src/test/data/test.example.txt\");\n final Lexer lexer = new Lexer();\n final Token token = lexer.analyze(file);\n Model model = token.parse();\n assertTrue(model.isCompiled());\n System.out.println(\" Test complex case\");\n final File complexFile = new File(\"src/test/data/balancer.example.txt\");\n final Token complexToken = lexer.analyze(complexFile);\n model = complexToken.parse();\n assertTrue(model.isCompiled());\n }", "public String getMarkdownInputLine() {\n if (markdownReader == null) {\n return null;\n } else {\n return markdownReader.readLine();\n }\n }", "@Test\n public void testCanGrabMarkdownFromFileSystem() throws Exception {\n String id = this.getClass().getClassLoader().getResource(\"carTaxService\").getFile();\n when(cache.get(id)).thenReturn(null);\n when(FSRepositoryInformationExtractor.get(any(RepositoryUri.class))).thenReturn(StandardTestObjects.getStandardService());\n String html = underTest.generateContent(id);\n assertThat(html).isNotNull();\n assertThat(html).isNotEmpty();\n }", "public Document decoratePosition (Document parseTree);", "Parse createParse();", "public interface MediaWikiParser {\n\t/**\n\t * Parses MediaWiki Source, given as parameter src, and returns a ParsedPage.\n\t */\n\tpublic ParsedPage parse(String src);\n\t\n\t/**\n\t * Retruns information abour the configuration of the parser.\n\t */\n\tpublic String configurationInfo();\n\t\n\t/**\n\t * Retruns the String which is uses as line separator, usually it \n\t * will be \"\\n\" or \"\\r\\n\"\n\t */\n\tpublic String getLineSeparator();\n}", "public static Document parse(InputStream in) throws ParserConfigurationException, SAXException, IOException {\n\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\t \n\n\t return db.parse(in);\n\t }", "private void processContentEn() {\n if (this.content == null || this.content.equals(\"\")) {\r\n _logger.error(\"{} - The sentence is null or empty\", this.traceId);\r\n }\r\n\r\n // process input using ltp(Segmentation, POS, DP, SRL)\r\n this.nlp = new NLP(this.content, this.traceId, this.setting);\r\n }", "public static void main(String[] args) throws ParseException {\n String text;\n\n File file;\n\n /* pdfStripper = null;\n pdDoc = null;\n cosDoc = null;\n */ String parsed = parseWithTika();\n file = new File(filePath);\n try {\n /* parser = new PDFParser(new FileInputStream(file)); // update for PDFBox V 2.0\n parser.parse();\n cosDoc = parser.getDocument();\n pdfStripper = new PDFTextStripper();\n pdDoc = new PDDocument(cosDoc);\n pdDoc.getNumberOfPages();\n */ //pdfStripper.setStartPage(1);\n //pdfStripper.setEndPage(10);\n /* text = pdfStripper.getText(pdDoc);\n String resultString = text.replaceAll(\"\\\\p{C}|\\\\p{Sm}|\\\\p{Sk}|\\\\p{So}\", \" \");\n */\n\n //testDictionary();\n testOpenNlp(parsed);\n testOpenNlp(\"anas al bassit\");\n testOpenNlp(\"Anas Al Bassit\");\n testOpenNlp(\"barack obama\");\n testOpenNlp(\"Barack Obama\");\n\n\n System.out.println();\n } catch (IOException e) {\n e.printStackTrace();\n }\n// catch (ParseException e) {\n// e.printStackTrace();\n// }\n }", "public static void TextFromFile(JTextPane tp)\n \t {\n try{\n //the file path\n String path = \"readMe.md\";\n File file = new File(path);\n FileReader fr = new FileReader(file);\n while(fr.read() != -1){\n tp.read(fr,null);\n }\n fr.close();\n } catch(Exception ex){\n ex.printStackTrace();\n }\n }", "private void openTreeML()\r\n {\r\n// // Create the file filter.\r\n// SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n// new SimpleFileFilter(\"xml\", \"Tree ML (*.xml)\")\r\n// };\r\n// \r\n// // Open the file.\r\n// String file = openFileChooser(true, filters);\r\n// \r\n// // Process the file. \r\n// if (file != null)\r\n// {\r\n// m_gtree = Loader.loadTreeML(file);\r\n// TreeDisplay disp = new TreeDisplay(m_gtree,0);\r\n// TreePanel panel = new TreePanel(disp, LEGEND, ORIENTATION_CONTROL_WIDGET);\r\n// m_tabbedPane.setComponentAt(1, panel);\r\n// }\r\n }", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public HTMLParser (byte[] page) {\r\n //page = parseToHTML(page);\r\n\r\n setText (page);\r\n }", "@Override\r\n\tpublic DocumentData read(File in) throws Exception {\r\n\t\tDocumentData doc = new DocumentData(in);\r\n\t\tBufferedReader reader = FileHandler.getBufferedReader(in);\r\n\t\tBufferedReader nested = null;\r\n\t\tString inpath = in.getAbsolutePath();\r\n\t\tFile nestin = new File (inpath.substring(0,inpath.length()-5)+SUBSUFFIX);\r\n\t\tif(nestin.exists())\r\n\t\t\tnested = FileHandler.getBufferedReader(nestin);\r\n\t\tint lcnt=0;\r\n\t\tint scnt=0;\r\n\t\tint start=-1;\r\n\t\tint nstart = -1;\r\n\t\tSentenceData sent = null;\r\n\t\twhile(true){\r\n\t\t\tString line = reader.readLine();\r\n\t\t\tString nline = null;\r\n\t\t\tif(nested!=null)\r\n\t\t\t\tnline = nested.readLine();\r\n\t\t\tif(line==null) {\r\n\t\t\t\tif(sent!=null){\r\n\t\t\t\t\tdoc.addSentenceData(sent);\r\n\t\t\t\t\tsent=null;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tline = line.trim();\r\n\t\t\tlcnt++;\r\n\t\t\tif(line.length()==0){\r\n\t\t\t\tif(sent!=null){\r\n\t\t\t\t\tdoc.addSentenceData(sent);\r\n\t\t\t\t\tsent=null;\r\n\t\t\t\t\tscnt=0;\r\n\t\t\t\t}else\r\n\t\t\t\t\tSystem.out.println(\"Skip empty line in line:\"+lcnt);\r\n\t\t\t}else if(line.startsWith(\"#\")){\r\n\t\t\t\tSystem.out.println(\"Skip comments in line:\"+lcnt+\"; \"+line);\r\n\t\t\t}else{\r\n\t\t\t\tif(sent==null)\r\n\t\t\t\t\tsent = new SentenceData();\r\n\t\t\t\tscnt++;\r\n\t\t\t\t\r\n\t\t\t\tString tmp[] = line.split(\"\\t\");\r\n\t\t\t\tsent.addTokens(tmp[0]);\r\n\t\t\t\tString mark = tmp[tmp.length-1];// last column is the markables;\r\n\t\t\t\tif(mark.equals(\"O\")){\r\n\t\t\t\t\tif(start>=0)\r\n\t\t\t\t\t\tsent.addMarkables(start, scnt-1);\r\n\t\t\t\t\tstart=-1;\r\n\t\t\t\t}else if(mark.startsWith(\"I-\")||mark.startsWith(\"B-\")){\r\n\t\t\t\t\tif(start<0)\r\n\t\t\t\t\t\tstart = scnt;//support both IOB1 and IOB2\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthrow new Exception(\"Please input only IOB or IOB2 scheme (main): \"+lcnt+\": \"+line);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nline!=null){\r\n\t\t\t\t\tString ntmp[] = nline.split(\"\\t\");\r\n\t\t\t\t\tString nmark = ntmp[ntmp.length-1];\r\n\t\t\t\t\tif(nmark.equals(\"O\")){\r\n\t\t\t\t\t\tif(nstart>=0)\r\n\t\t\t\t\t\t\tsent.addMarkables(start, scnt-1);\r\n\t\t\t\t\t\tnstart=-1;\r\n\t\t\t\t\t}else if(nmark.startsWith(\"I-\")||nmark.startsWith(\"B-\")){\r\n\t\t\t\t\t\tif(nstart<0)\r\n\t\t\t\t\t\t\tnstart = scnt;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthrow new Exception(\"Please input only IOB or IOB2 scheme (nested): \"+lcnt+\": \"+nline);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn doc;\r\n\t}", "public void parseNewickTree(String newickTree) {\n\t\tTree<String> t = Tree.createNewickTree(newickTree);\n\t\tthis.setTreeList(Tree.iterateTree(t));\n\t\tfor(int i = 0; i < this.treeList.size(); i++) {\n\t\t\tthis.dialogueList.add(this.treeList.get(i).data);\n\t\t}\n\t\treturn;\n\t}", "@Override\n\tpublic TemplatePage extract(String htmlContent) {\n\t\ttry {\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tParser parser = new Parser(htmlContent);\n\t\t\tMyNodeVisitor visitor = new MyNodeVisitor(true, true);\n\t\t\tparser.visitAllNodesWith(visitor);\n\t\t\t\n\t\t\tString content = visitor.getContent();\n\t\t\tif ( content == null || content.length() == 0 ) {\n\t\t\t\treturn new TemplatePage(\"\", \"\");\n\t\t\t}\n\t\t\t\n\t\t\tcontent = HtmlContentHelper.escape(content);\t\n\t\t\t\n\t\t\tString title = visitor.getTitle();\n\t\t\tif ( title == null ) {\n\t\t\t\ttitle = \"\";\n\t\t\t} else {\n\t\t\t\ttitle = HtmlContentHelper.escape(title);\n\t\t\t}\n\t\t\t\n\t\t\treturn new TemplatePage(title, content);\n\t\t\t\n\t\t} catch(ParserException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn new TemplatePage(\"\", \"\");\n\t\t\n\t}", "public PageList() { \n// fileIO = new CharFileIO(\"utf-8\");\n// We are not currently using this to extract 'title' because it doesn't work \n// for whose title and meta-description tags are not explicitly specified;\n// Such as pages written in scripting languages like .jsp, .asp etc \n// parseJob = new ParseJob();\n }" ]
[ "0.6972723", "0.5797385", "0.56383806", "0.5567019", "0.55035275", "0.5435764", "0.53937346", "0.53754777", "0.5281835", "0.5280323", "0.5230259", "0.5175711", "0.51697886", "0.5163803", "0.5150021", "0.512046", "0.50825703", "0.5082218", "0.50666225", "0.50387573", "0.49848336", "0.49489042", "0.4941046", "0.49221882", "0.49111488", "0.49026906", "0.48746818", "0.48736563", "0.4859991", "0.48565257", "0.48551068", "0.48483747", "0.48225242", "0.47942746", "0.47875753", "0.4767395", "0.47562382", "0.4720582", "0.47181886", "0.47179207", "0.4712872", "0.47020066", "0.46946412", "0.46808174", "0.4649381", "0.46433237", "0.46432036", "0.46420953", "0.46290368", "0.46266934", "0.4626422", "0.4619226", "0.46131703", "0.45924187", "0.4592028", "0.45909518", "0.45819482", "0.45782015", "0.45707715", "0.45706975", "0.45611387", "0.45525864", "0.45501453", "0.45487052", "0.45286775", "0.45270452", "0.45196515", "0.45123303", "0.45090508", "0.45047712", "0.44847366", "0.4479434", "0.44644582", "0.4461443", "0.44588095", "0.4448183", "0.44438374", "0.44321612", "0.44275126", "0.44258514", "0.44196248", "0.44150874", "0.44123024", "0.44114658", "0.44066915", "0.44041374", "0.44040763", "0.43932477", "0.43868488", "0.4385926", "0.4385394", "0.4385057", "0.43722445", "0.43717638", "0.4368111", "0.43654293", "0.4347886", "0.4345171", "0.43378684", "0.43257412" ]
0.43585756
96
Wrapper around parser function which automatically creates a reader around the string
DocumentNode parse(String markdown) { Reader reader = new StringReader(markdown); DocumentNode ret = null; try { ret = parse(reader); reader.close(); } catch (IOException e) { throw new Error("StringReader threw exception", e); } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StringParser getStringParser();", "public abstract T parse(String str);", "public abstract T parse(String s);", "public StringParseable getParser(String input) {\n\t\treturn new XMLStringParser(input);\n\t}", "public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }", "public String parseString() {\n\t\tString string = scanner.next();\n\t\treturn string;\n\t}", "public abstract String read_string();", "String readString();", "TokenReader reader(TokenType tokenType);", "StreamReader underlyingReader();", "public void parse(String string) {\n\t\t\n\t}", "Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;", "CParser getParser();", "public IStrStream(String str) {\n\t// the second parameter is the set of token delimeter characters\n\ttokenizer = new StringTokenizer(str, \" \\n\\t\");\n }", "public abstract Object parseRecord(String input);", "public T parse(String value);", "public GenericLineByLineParser(InputStreamReader reader) {\n this.br = new BufferedReader(reader);\n }", "public parser(Scanner s) {super(s);}", "protected abstract SimpleType doParseString(String s);", "public abstract T parseLine(String inputLine);", "public StringParser() {\n this(ParserOptions.DEFAULT);\n }", "public interface Parser<T> {\n\t\n\t/**\n\t * Il metodo che deve essere completato per poter analizzare la stringa\n\t * @param value la stringa da analizzare\n\t * @return il tipo di dato voluto\n\t */\n\tpublic T parse(String value);\n\t\n}", "public abstract void fromString(String s, String context);", "private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;\r\n\t}", "private String readString() throws ParseException {\n int stringStart = pos;\n while (pos < length) {\n char c = src.charAt(pos++);\n if (c <= '\\u001F') {\n throw new ParseException(\"String contains control character\");\n } else if (c == '\\\\') {\n break;\n } else if (c == '\"') {\n return src.substring(stringStart, pos - 1);\n }\n }\n\n /*\n * Slow case: string contains escaped characters. Copy a maximal sequence\n * of unescaped characters into a temporary buffer, then an escaped\n * character, and repeat until the entire string is consumed.\n */\n StringBuilder b = new StringBuilder();\n while (pos < length) {\n assert src.charAt(pos - 1) == '\\\\';\n b.append(src, stringStart, pos - 1);\n if (pos >= length) {\n throw new ParseException(\"Unterminated string\");\n }\n char c = src.charAt(pos++);\n switch (c) {\n case '\"':\n b.append('\"');\n break;\n case '\\\\':\n b.append('\\\\');\n break;\n case '/':\n b.append('/');\n break;\n case 'b':\n b.append('\\b');\n break;\n case 'f':\n b.append('\\f');\n break;\n case 'n':\n b.append('\\n');\n break;\n case 'r':\n b.append('\\r');\n break;\n case 't':\n b.append('\\t');\n break;\n case 'u':\n if (length - pos < 5) {\n throw new ParseException(\"Invalid character code: \\\\u\" + src.substring(pos));\n }\n int code = fromHex(src.charAt(pos + 0)) << 12\n | fromHex(src.charAt(pos + 1)) << 8\n | fromHex(src.charAt(pos + 2)) << 4\n | fromHex(src.charAt(pos + 3));\n if (code < 0) {\n throw new ParseException(\"Invalid character code: \" + src.substring(pos, pos + 4));\n }\n pos += 4;\n b.append((char) code);\n break;\n default:\n throw new ParseException(\"Unexpected character in string: '\\\\\" + c + \"'\");\n }\n stringStart = pos;\n while (pos < length) {\n c = src.charAt(pos++);\n if (c <= '\\u001F') {\n throw new ParseException(\"String contains control character\");\n } else if (c == '\\\\') {\n break;\n } else if (c == '\"') {\n b.append(src, stringStart, pos - 1);\n return b.toString();\n }\n }\n }\n throw new ParseException(\"Unterminated string literal\");\n }", "private SourceFile _parseString(String txt) throws ParseException {\n ACParser p = new ACParser(txt);\n return p.SourceFile();\n }", "private JSONDocument parseString(String data){\n JSONDocument temp = null;\n int pointer = 0;\n boolean firstValidCharReached = false;\n do{\n char c = data.charAt(pointer ++);\n switch (c) {\n case '{':\n HashMap thm = this.parseMap(this.getFull(data.substring(pointer),0));\n temp = new JSONDocument(thm);\n firstValidCharReached = true;\n break;\n case '[':\n ArrayList tal = this.parseList(this.getFull(data.substring(pointer),1));\n temp = new JSONDocument(tal);\n firstValidCharReached = true;\n break;\n }\n }while (!firstValidCharReached);\n return temp;\n }", "public static Object parse(Reader r) throws ParseException, IOException {\n return parse(new PushbackReader(r), new AtomicInteger(1), new AtomicInteger(), new AtomicInteger(), false);\n }", "public Object getReaderCtor(String paramString) {\n }", "public E parse(String argument);", "private String readString(int startCh, int endCh, boolean strEscapes) {\n stringBuilder.setLength(0);\n\n // Assumes first char read already.\n // int ch0 = reader.readChar() ;\n // if ( ch0 != startCh )\n // exception(\"Broken org.rdf4led.sparql.parser\", y, x) ;\n\n for (; ; ) {\n int ch = reader.readChar();\n if (ch == Chars.EOF) {\n // if ( endNL ) return stringBuilder.toString() ;\n exception(\"Broken token: \" + stringBuilder.toString());\n }\n\n if (ch == '\\n') exception(\"Broken token (newline): \" + stringBuilder.toString());\n\n if (ch == endCh) {\n // sb.append(((char)ch)) ;\n return stringBuilder.toString();\n }\n\n if (ch == '\\\\') {\n ch = strEscapes ? readLiteralEscape() : readUnicodeEscape();\n // Drop through.\n }\n insertCodepoint(stringBuilder, ch);\n }\n }", "static String readString() throws Exception {\n\t\twhile (!st.hasMoreTokens()) {\n\t\t\tst = new StringTokenizer(stdin.readLine());\n\t\t}\n\t\treturn st.nextToken();\n\t}", "public REparser (String input) throws IOException {\n fileIn = new FileReader(input);\n cout.printf(\"%nEchoing File: %s%n\", input);\n echoFile();\n fileIn = new FileReader(input);\n pbIn = new PushbackReader(fileIn);\n temp = new FileReader(input);\n currentLine = new BufferedReader(temp);\n curr_line = \"\";\n curr_line = currentLine.readLine();\n AbstractNode root;\n while(curr_line != null) {\n getToken();\n root = parse_re(0);\n printTree(root);\n curr_line = currentLine.readLine();\n }\n }", "public JsonParser createParser(Reader r)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 829 */ IOContext ctxt = _createContext(r, false);\n/* 830 */ return _createParser(_decorate(r, ctxt), ctxt);\n/* */ }", "public StringParser(String str) {\n this.str = str;\n currentPosition = 0;\n maxPosition = str == null ? 0 : str.length();\n }", "public IValuable parse(String value);", "public ProgramParser(String[] args) throws InterpreterException {\n java.util.Scanner scanner;\n String text = \"\";\n try {\n scanner = new java.util.Scanner(new java.io.File(args[0]));\n text = scanner.useDelimiter(\"\\u005c\\u005cA\").next();\n scanner.close();\n ProgramParser.programCode = new java.io.StringReader(text);\n } catch (FileNotFoundException ex) {\n throw new InterpreterException(\"FileNotFoundException\", \"Check file path.\", ex.getMessage());\n }\n ProgramParser.stringInput = args[1];\n System.out.println(\"Program: \" + args[0] + \" - input: \" + stringInput);\n //System.out.println(\"code\\n\" + text + \"\\n---Done\");\n }", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public Scanner(String inString)\n {\n in = new BufferedReader(new StringReader(inString));\n eof = false;\n getNextChar();\n }", "public Object parse(String arg) {\n return (arg);\n }", "private String readString( InputStream stream ) throws IOException {\n char delimiter = (char) stream.read();\n buffer = new StringBuffer();\n while ( true ) {\n int c = stream.read();\n if ( c == delimiter ) {\n break;\n }\n else {\n switch ( (char) c ) {\n case '\\r':\n case '\\n':\n throw new TableFormatException(\n \"End of line within a string literal\" );\n case '\\\\':\n buffer.append( (char) stream.read() );\n break;\n case END:\n throw new TableFormatException(\n \"End of file within a string literal\" );\n default:\n buffer.append( (char) c );\n }\n }\n }\n return buffer.toString();\n }", "T read(String identifier) throws IOException;", "public StreamReader() {}", "public JsonParser createParser(char[] content, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 908 */ if (this._inputDecorator != null) {\n/* 909 */ return createParser(new CharArrayReader(content, offset, len));\n/* */ }\n/* 911 */ return _createParser(content, offset, len, _createContext(content, true), false);\n/* */ }", "private static XMLReaders\n\treaders(final Function<? super String, Length> lengthParser) {\n\t\treturn new XMLReaders()\n\t\t\t.v00(XMLReader.elem(\"name\"))\n\t\t\t.v00(XMLReader.elem(\"cmt\"))\n\t\t\t.v00(XMLReader.elem(\"desc\"))\n\t\t\t.v00(XMLReader.elem(\"src\"))\n\t\t\t.v11(XMLReader.elems(Link.READER))\n\t\t\t.v10(XMLReader.elem(\"url\").map(Format::parseURI))\n\t\t\t.v10(XMLReader.elem(\"urlname\"))\n\t\t\t.v00(XMLReader.elem(\"number\").map(UInt::parse))\n\t\t\t.v00(XMLReader.elem(\"type\"))\n\t\t\t.v00(XMLReader.doc(\"extensions\"))\n\t\t\t.v10(XMLReader.elems(TrackSegment.xmlReader(Version.V10, lengthParser)))\n\t\t\t.v11(XMLReader.elems(TrackSegment.xmlReader(Version.V11, lengthParser)));\n\t}", "Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "@Test\n public void testCreateReader() {\n System.out.println(\"createReader\");\n String data = \"\";\n Reader expResult = null;\n Reader result = IOUtil.createReader(data);\n assertNotNull(\"empty string reader should not be null\", result);\n result = IOUtil.createReader(null);\n assertNull(\"null string reader should be null\", result);\n result = IOUtil.createReader(\"hello\");\n assertNotNull(\"hello string reader should not be null\", result);\n\n }", "public interface Parser<T> {\n T parse(String str);\n\n default void throwUnparsable(String unparsable) {\n throw new IllegalArgumentException(\n \"Could not parse input: \" + unparsable);\n }\n}", "public static String readString(){\n\t\tstringInput = readInput();\n\t\treturn stringInput; \n\t}", "public static Object parse(String s) throws ParseException {\n try {\n return parse(new StringReader(s));\n } catch (IOException e) {\n // We cannot get an IOException when reading from String.\n throw new AssertionError(e);\n }\n }", "public abstract ArgumentParser makeParser();", "public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }", "public String read();", "String read();", "String read();", "public Parse(String str)\r\n {\r\n super(str);\r\n }", "protected JsonParser _createParser(char[] data, int offset, int len, IOContext ctxt, boolean recyclable)\n/* */ throws IOException\n/* */ {\n/* 1300 */ return new ReaderBasedJsonParser(ctxt, this._parserFeatures, null, this._objectCodec, this._rootCharSymbols.makeChild(this._factoryFeatures), data, offset, offset + len, recyclable);\n/* */ }", "public JsonParser createParser(DataInput in)\n/* */ throws IOException\n/* */ {\n/* 920 */ IOContext ctxt = _createContext(in, false);\n/* 921 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "private String scanString(char[] input,\n int offset,\n int end,\n int[] lineNr)\n throws XMLParseException {\n char delim = input[offset];\n\n if ((delim == '\"') || (delim == '\\'')) {\n int begin = offset;\n offset++;\n\n while ((offset < end) && (input[offset] != delim)) {\n if (input[offset] == '\\r') {\n lineNr[0]++;\n\n if ((offset != end) && (input[offset + 1] == '\\n')) {\n offset++;\n }\n }\n else if (input[offset] == '\\n') {\n lineNr[0]++;\n }\n\n offset++;\n }\n\n if (offset == end) {\n return null;\n }\n else {\n return new String(input, begin, offset - begin + 1);\n }\n }\n else {\n return this.scanIdentifier(input, offset, end);\n }\n }", "public RingFactoryTokenizer() {\n this(new BufferedReader(new InputStreamReader(System.in,Charset.forName(\"UTF8\"))));\n }", "protected abstract void parse(String line);", "@Override\n\tpublic void parse(String s) throws MalformedFileException {\n\t\t\n\t}", "public static Object parse(PushbackReader r) throws ParseException, IOException {\n return parse(r, new AtomicInteger(1), new AtomicInteger(), new AtomicInteger(), false);\n }", "private Object read() throws XMLParseException {\n\t\tswitch (_tokenizer.next()) {\n\t\tdefault: break;\n\t\tcase ERROR: throw new XMLParseException(_tokenizer.getCurrentText());\n\t\tcase TEXT: return _tokenizer.getCurrentText();\n\t\tcase OPEN:\n\t\t\tElement result = new Element(_tokenizer.getCurrentName());\n\t\t\twhile (_tokenizer.next() == XMLTokenType.ATTR) {\n\t\t\t\tif (result.setAttr(_tokenizer.getCurrentName(), _tokenizer.getCurrentText()) != null) {\n\t\t\t\t\tthrow new XMLParseException(\"duplicate attribute: \" + _tokenizer.getCurrentName());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (_tokenizer.current() == XMLTokenType.ECLOSE) {\n\t\t\t\t// System.out.println(\"ended /> for \" + result.getName());\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tif (_tokenizer.current() != XMLTokenType.CLOSE) {\n\t\t\t\tthrow new XMLParseException(_tokenizer.getCurrentText());\n\t\t\t}\n\t\t\t_pending.push(result.getName());\n\t\t\twhile (_tokenizer.next() != XMLTokenType.ETAG) {\n\t\t\t\t/*if (_tokenizer.current() == XMLTokenType.END) {\n\t\t\t\t\tthrow new XMLParseException(\"Unexpected end of file\");\n\t\t\t\t}*/\n\t\t\t\tif (_tokenizer.current() == XMLTokenType.END) {\n\t\t\t\t\tif (isHTML) {\n\t\t\t\t\t\t_pending.pop();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new XMLParseException(\"Missing end tag for <\" + result.getName() + \">\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_tokenizer.saveToken();\n\t\t\t\tresult.addContent(read());\n\t\t\t}\n\t\t\t_pending.pop();\n\t\t\tif (!_tokenizer.getCurrentName().equals(result.getName())) {\n\t\t\t\tif (isHTML) {\n\t\t\t\t\t// System.out.println(\"HTML backup for \" + result.getName());\n\t\t\t\t\tfor (String p : _pending) {\n\t\t\t\t\t\tif (_tokenizer.getCurrentName().equals(p)) {\n\t\t\t\t\t\t\t_tokenizer.saveToken();\n\t\t\t\t\t\t\t//System.out.println(\"implicitly ended by </\" + p + \">\");\n\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthrow new XMLParseException(\"<\" + result.getName() + \"> ended with </\" + _tokenizer.getCurrentName() + \">\");\n\t\t\t}\n\t\t\treturn result;\n\t\tcase END: throw new XMLParseException(\"no XML element\");\n\t\t}\n\t\t// NB: if execution reaches here, we did something wrong.\n\t\tthrow new XMLParseException(\"internal error: what kind of token is this? \" + _tokenizer);\n\t}", "public static String readString() {\n return in.nextLine();\n }", "public ValueExp parse(Reader in)\n\t\tthrows IOException, EmptyStackException, UnknownOperationException, IncompleteExpressionException, ParseException;", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "protected JsonParser _createParser(Reader r, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1288 */ return new ReaderBasedJsonParser(ctxt, this._parserFeatures, r, this._objectCodec, this._rootCharSymbols.makeChild(this._factoryFeatures));\n/* */ }", "public java.io.Reader getReader (URL url) throws java.io.IOException;", "private void handleString() {\n while (peek() != '\"' && !reachedEnd()) {\n if (peek() == '\\n') {\n line++; // Rune supports multiline strings, unlike java\n }\n advance();\n }\n\n // Unterminated String\n if (reachedEnd()) {\n Rune.error(line, \"Unterminated string.\");\n return;\n }\n\n // advance to the closing \"\n advance();\n\n String value = source.substring(start + 1, current - 1);\n addToken(STRING, value);\n }", "public JsonReader(String source) {\n this.source = source;\n }", "public JsonReader(String source) {\n this.source = source;\n }", "public JsonReader(String source) {\n this.source = source;\n }", "public JsonReader(String source) {\n this.source = source;\n }", "protected abstract Reader getReader() throws IOException;", "SAPL parse(InputStream saplInputStream);", "public static String acceptString() {\n\t\tString stringData = null;\r\n\t\tBufferedReader input = null;\r\n\t\ttry {\r\n\t\t\t// chaining the streams\r\n\t\t\tinput = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\t\t\t// reading data from the reader\r\n\t\t\tstringData = input.readLine();\r\n\t\t} catch (IOException ioException) {\r\n\t\t\tSystem.out.println(\"Error in accepting data.\");\r\n\t\t} finally {\r\n\t\t\tinput = null;\r\n\t\t}\r\n\t\treturn stringData;\r\n\t}", "public interface Parser {\r\n String parse(String path) throws ParsingException;\r\n Map<String, String> parse(Map<String, String> paths) throws ParsingException;\r\n}", "public GetParse(String line){\r\n\r\n Inline = line;\r\n this.parseWord(line);\r\n }", "public interface XMLParser {\n\n String parse();\n}", "void parse();", "public ProgramParser(String prog, String input) {\n ProgramParser.programCode = new java.io.StringReader(prog);\n ProgramParser.stringInput = input;\n //System.out.println(\"Program: \" + prog + \" - input: \" + programInput);\n }", "public abstract void parse() throws IOException;", "public T getFromString(String str) throws NumberFormatException;", "Parse createParse();", "protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }", "public static Document parse(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new RuntimeException(e);\n }\n }", "public String readString() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_WORD || token == '\"') {\n return unescapeUnicode(fTokenizer.sval);\n }\n\n String msg = \"String expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }", "Argument<T> parse(Function<String, ParseResult<T>> parser);", "Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;", "public XmlReader(String xml, boolean keepXML)\n throws UnsupportedEncodingException {\n _reader = new InputStreamReader(\n new ByteArrayInputStream(xml.getBytes()), \"UTF-8\");\n _keepXML = keepXML;\n }", "Optional<T> parse(@Nonnull String s);", "default Parser<S, T, U> tr() {\n return s -> {\n int bak=s.pos;\n try {\n return parse(s);\n } catch (ParseException e) {\n s.seek(bak);\n throw e;\n }\n };\n }" ]
[ "0.72515666", "0.65586704", "0.6505846", "0.64113283", "0.6309066", "0.6206018", "0.61810243", "0.61516833", "0.610817", "0.6062693", "0.6032586", "0.59973454", "0.5940186", "0.593554", "0.59188116", "0.589705", "0.58727616", "0.58619964", "0.58581716", "0.5852609", "0.58311987", "0.5829533", "0.57662934", "0.57619786", "0.57308424", "0.5719869", "0.5718699", "0.5709497", "0.57077616", "0.568722", "0.5674351", "0.5666733", "0.56647587", "0.56237423", "0.56052256", "0.5603172", "0.5591163", "0.5573827", "0.55602664", "0.555699", "0.55554384", "0.55327696", "0.55306715", "0.5511247", "0.5505085", "0.5504667", "0.55046666", "0.549581", "0.54698396", "0.5463056", "0.54582715", "0.5449037", "0.5446738", "0.543781", "0.543781", "0.54353607", "0.5434486", "0.5429112", "0.54167914", "0.5410921", "0.54070944", "0.5403632", "0.5403531", "0.53927374", "0.5387642", "0.5378478", "0.5370134", "0.5370134", "0.5370134", "0.5370134", "0.5370134", "0.5370134", "0.5370134", "0.5370134", "0.5369912", "0.53649104", "0.5344654", "0.5340461", "0.5340461", "0.5340461", "0.5340461", "0.53304154", "0.5322329", "0.532093", "0.5319318", "0.53133744", "0.5307491", "0.5295408", "0.5293809", "0.5289006", "0.52767044", "0.52735555", "0.5273351", "0.5270765", "0.5268324", "0.524413", "0.52391785", "0.5237978", "0.52375245", "0.5231563" ]
0.53205675
84
Start the connection and use the plaintext upgrade mechanism from HTTP/1.1 to HTTP2.
private void startPlaintextUpgrade(final Http2Codec http2Codec) { // Register the plaintext upgrader Http2ClientUpgradeCodec upgradeCodec = new Http2ClientUpgradeCodec(http2Codec); HttpClientCodec httpClientCodec = new HttpClientCodec(); final HttpClientUpgradeHandler upgrader = new HttpClientUpgradeHandler(httpClientCodec, upgradeCodec, 1000); final UpgradeCompletionHandler completionHandler = new UpgradeCompletionHandler(); Channel channel = connect(new ChannelInitializer<SocketChannel>() { @Override public void initChannel(SocketChannel ch) throws Exception { ch.pipeline().addLast(upgrader); ch.pipeline().addLast(completionHandler); } }); try { // Trigger the HTTP/1.1 plaintext upgrade protocol by issuing an HTTP request // which causes the upgrade headers to be added Promise<Void> upgradePromise = completionHandler.getUpgradePromise(); DefaultHttpRequest upgradeTrigger = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "/"); channel.writeAndFlush(upgradeTrigger); // Wait for the upgrade to complete upgradePromise.get(5, TimeUnit.SECONDS); } catch (Exception e) { // Attempt to close the channel before propagating the error channel.close(); throw new IllegalStateException("Error waiting for plaintext protocol upgrade", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startPlaintext(final Http2Codec http2Codec) {\n connect(new ChannelInitializer<SocketChannel>() {\n @Override\n public void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(http2Codec);\n }\n });\n }", "public void upgrade(HttpClientConnection conn, HttpRoute route, HttpContext context) throws IOException {\n/* 322 */ Args.notNull(conn, \"Connection\");\n/* 323 */ Args.notNull(route, \"HTTP route\");\n/* 324 */ Asserts.check((conn == this.conn), \"Connection not obtained from this manager\");\n/* 325 */ this.connectionOperator.upgrade(this.conn, route.getTargetHost(), context);\n/* */ }", "public void run() {\n // variables to store key HTTP(S) request information\n String sReadLine;\n boolean bNewHTTPHeader = true;\n String sHTTPMethod = \"\";\n String sHTTPRequest = \"\";\n boolean bPersistentConnection = true;\n\n // print the client IP:port\n System.out.println(\"client \" + connectedClient.getInetAddress() + \":\"\n + connectedClient.getPort() + \" is connected\");\n System.out.println();\n\n // create BufferedReader to read in from socket & DataOutputStream to send out to socket\n try {\n inFromClient = new BufferedReader(new InputStreamReader(connectedClient.getInputStream()));\n outToClient = new DataOutputStream(connectedClient.getOutputStream());\n\n } catch (IOException e) {\n System.out.println(\"There was an error setting up the buffered reader, \" +\n \"data stream, or reading from the client:\");\n System.out.println(\" \" + e);\n }\n\n // process the HTTP(S) request\n try {\n // break apart the input to read the http method and request\n while ((sReadLine = inFromClient.readLine()) != null) {\n // create a tokenizer to parse the string\n StringTokenizer tokenizer = new StringTokenizer(sReadLine);\n\n // if new HTTP header, then pull out the Method and Request (first line)\n if (bNewHTTPHeader) {\n sHTTPMethod = tokenizer.nextToken().toUpperCase(); // HTTP method: GET, HEAD\n sHTTPRequest = tokenizer.nextToken().toLowerCase(); // HTTP query: file path\n bNewHTTPHeader = false; // next lines are not part of a new HTTP header\n\n // print to console\n System.out.println(\"New HTTP Header:\");\n System.out.println(\" HTTP Method: \" + sHTTPMethod);\n System.out.println(\" HTTP Request: \" + sHTTPRequest);\n\n // not a new HTTP header: check for key params Connection or empty line\n } else if (sReadLine.length() > 0) {\n // get the next token in the input line\n String sParam = tokenizer.nextToken();\n\n // check to update connection status\n if (sParam.equalsIgnoreCase(\"Connection:\")) {\n String sConnectionRequest = tokenizer.nextToken();\n bPersistentConnection = (sConnectionRequest.equalsIgnoreCase(\"keep-alive\"));\n // print param to console\n System.out.println(\" param: \" + sParam + \" \" + sConnectionRequest);\n } else {\n // otherwise just print param to console\n System.out.println(\" param: \" + sParam);\n }\n\n // no more lines to header: header is over\n } else {\n //print to console\n System.out.println(\"End of Header\");\n System.out.println();\n\n // get the status code & response, then send back to client\n int iStatusCode = getStatusCode(sHTTPMethod, sHTTPRequest);\n String sResponse = getResponse(sHTTPMethod, sHTTPRequest, iStatusCode);\n sendResponse(sHTTPMethod, sHTTPRequest, iStatusCode, sResponse, bPersistentConnection);\n\n // next line is part of a new HTTP header\n bNewHTTPHeader = true;\n }\n }\n\n // loop has ended: client input is null (client must want to disconnect)\n this.connectedClient.close();\n System.out.println(\"input from client \" + connectedClient.getInetAddress() +\n + connectedClient.getPort() + \" is null. This socket closed.\");\n } catch (IOException e) {\n System.out.println(\"There was an error reading the HTTP request:\");\n System.out.println(\" \" + e);\n }\n }", "private void startConnection() throws IOException {\n bos = new BufferedOutputStream(socket.getOutputStream(), 65536);\n\n byte[] key = new byte[16];\n Random random = new Random();\n random.nextBytes(key);\n String base64Key = Base64.encodeBase64String(key);\n\n byte[] handshake = createHandshake(base64Key);\n bos.write(handshake);\n bos.flush();\n\n InputStream inputStream = socket.getInputStream();\n verifyServerHandshake(inputStream, base64Key);\n\n writerThread.start();\n\n notifyOnOpen();\n\n bis = new BufferedInputStream(socket.getInputStream(), 65536);\n read();\n }", "void doClientSide() throws Exception {\n\n\t\tSSLSocketFactory sslsf = (SSLSocketFactory) SSLSocketFactory\n\t\t\t\t.getDefault();\n\t\tSSLSocket sslSocket = (SSLSocket) sslsf.createSocket(theServerName,\n\t\t\t\t12345);\n\t\t\n\t\tOutputStream sslOS = sslSocket.getOutputStream();\n\t\tsslOS.write(\"Hello SSL Server\".getBytes()); // Write to the Server\n\t\tsslOS.flush();\n\t\tsslSocket.close();\n\t}", "private void doHandshake()throws Exception {\n\t\tHttpClient httpClient = new HttpClient();\n\t\t// Here set up Jetty's HttpClient, for example:\n\t\t// httpClient.setMaxConnectionsPerDestination(2);\n\t\thttpClient.start();\n\n\t\t// Prepare the transport\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\tClientTransport transport = new LongPollingTransport(options, httpClient);\n\n\t\t// Create the BayeuxClient\n\t\tClientSession client = new BayeuxClient(\"http://localhost:8080/childrenguard-server/cometd\", transport);\n\n\t\tclient.handshake(null,new ClientSessionChannel.MessageListener()\n\t\t{\n\t\t public void onMessage(ClientSessionChannel channel, Message message)\n\t\t {\n\t\t \tSystem.out.println(\"fail to connect to server.\");\n\t\t if (message.isSuccessful())\n\t\t {\n\t\t \tSystem.out.println(message);\n\t\t // Here handshake is successful\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t// Here set up the BayeuxClient, for example:\n\t\t//client.getChannel(Channel.META_CONNECT).addListener(new ClientSessionChannel.MessageListener() { });\n\n\t\t\n\t}", "@Override\n public void start() {\n long originalSendNextNumber = sendNextNumber;\n sendNextNumber += 1L;\n\n // Send the first part of the handshake\n currentState = SYN_SENT;\n sendWithResend(createPacket(\n 0, // Data size (byte)\n originalSendNextNumber, // Seq number\n 0, // Ack number\n false, // ACK\n true, // SYN\n false // ECE\n ));\n\n // System.out.println(\"3-WAY HANDSHAKE: 0. Sender sent SYN.\");\n\n // Preserve space as this field will never be used\n this.selectiveAckSet = null;\n\n }", "public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }", "public Http2MultiplexHandler(ChannelHandler inboundStreamHandler, ChannelHandler upgradeStreamHandler) {\n/* 127 */ this.inboundStreamHandler = (ChannelHandler)ObjectUtil.checkNotNull(inboundStreamHandler, \"inboundStreamHandler\");\n/* 128 */ this.upgradeStreamHandler = upgradeStreamHandler;\n/* */ }", "private void shakeHands() throws IOException {\n HttpRequest req = new HttpRequest(inputStream);\n String requestLine = req.get(HttpRequest.REQUEST_LINE);\n handshakeComplete = checkStartsWith(requestLine, \"GET /\")\n && checkContains(requestLine, \"HTTP/\")\n && req.get(\"Host\") != null\n && checkContains(req.get(\"Upgrade\"), \"websocket\")\n && checkContains(req.get(\"Connection\"), \"Upgrade\")\n && \"13\".equals(req.get(\"Sec-WebSocket-Version\"))\n && req.get(\"Sec-WebSocket-Key\") != null;\n String nonce = req.get(\"Sec-WebSocket-Key\");\n if (handshakeComplete) {\n byte[] nonceBytes = BaseEncoding.base64().decode(nonce);\n if (nonceBytes.length != HANDSHAKE_NONCE_LENGTH) {\n handshakeComplete = false;\n }\n }\n // if we have met all the requirements\n if (handshakeComplete) {\n outputPeer.write(asUTF8(\"HTTP/1.1 101 Switching Protocols\\r\\n\"));\n outputPeer.write(asUTF8(\"Upgrade: websocket\\r\\n\"));\n outputPeer.write(asUTF8(\"Connection: upgrade\\r\\n\"));\n outputPeer.write(asUTF8(\"Sec-WebSocket-Accept: \"));\n HashFunction hf = Hashing.sha1();\n HashCode hc = hf.newHasher()\n .putString(nonce, StandardCharsets.UTF_8)\n .putString(WEBSOCKET_ACCEPT_UUID, StandardCharsets.UTF_8)\n .hash();\n String acceptKey = BaseEncoding.base64().encode(hc.asBytes());\n outputPeer.write(asUTF8(acceptKey));\n outputPeer.write(asUTF8(\"\\r\\n\\r\\n\"));\n }\n outputPeer.setHandshakeComplete(handshakeComplete);\n }", "@Test\n public void serverPingsClientHttp2() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 3);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n Assert.assertEquals(0, ping.streamId);\n Assert.assertEquals(2, ping.payload1);\n Assert.assertEquals(3, ping.payload2);\n Assert.assertTrue(ping.ack);\n }", "@Test\n public void clientCreatesStreamAndServerRepliesWithFin() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.sendFrame().ping(true, 1, 0);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), false);\n Assert.assertEquals(1, connection.openStreamCount());\n connection.writePingAndAwaitPong();// Ensure that the SYN_REPLY has been received.\n\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n }", "@Test\n public void clientCreatesStreamAndServerReplies() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// DATA\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.sendFrame().data(true, 3, new Buffer().writeUtf8(\"robot\"), 5);\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);// PING\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n BufferedSink out = Okio.buffer(stream.getSink());\n out.writeUtf8(\"c3po\");\n out.close();\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n assertStreamData(\"robot\", stream.getSource());\n connection.writePingAndAwaitPong();\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertFalse(synStream.outFinished);\n Assert.assertEquals(3, synStream.streamId);\n Assert.assertEquals((-1), synStream.associatedStreamId);\n Assert.assertEquals(TestUtil.headerEntries(\"b\", \"banana\"), synStream.headerBlock);\n MockHttp2Peer.InFrame requestData = peer.takeFrame();\n Assert.assertArrayEquals(\"c3po\".getBytes(StandardCharsets.UTF_8), requestData.data);\n }", "@Override\n protected void connectionEstablished()\n {\n peer.resetConnectionClosed();\n\n // send our handshake directly as it doesn't fit into peer message\n // and there is always space in send buffer on new connection\n //enqueue(pmCache.handshake(torrent.getTorrentId(), torrent.getClientId()));\n }", "void handshake() throws SyncConnectionException;", "private void handshakeRes(ClientMessageUnpacker unpacker, ProtocolVersion proposedVer)\n throws IgniteClientConnectionException, IgniteClientAuthenticationException {\n try (unpacker) {\n ProtocolVersion srvVer = new ProtocolVersion(unpacker.unpackShort(), unpacker.unpackShort(),\n unpacker.unpackShort());\n\n var errCode = unpacker.unpackInt();\n\n if (errCode != ClientErrorCode.SUCCESS) {\n var msg = unpacker.unpackString();\n\n if (errCode == ClientErrorCode.AUTH_FAILED)\n throw new IgniteClientAuthenticationException(msg);\n else if (proposedVer.equals(srvVer))\n throw new IgniteClientException(\"Client protocol error: unexpected server response.\");\n else if (!supportedVers.contains(srvVer))\n throw new IgniteClientException(String.format(\n \"Protocol version mismatch: client %s / server %s. Server details: %s\",\n proposedVer,\n srvVer,\n msg\n ));\n else { // Retry with server version.\n handshake(srvVer);\n }\n\n throw new IgniteClientConnectionException(msg);\n }\n\n var featuresLen = unpacker.unpackBinaryHeader();\n unpacker.skipValue(featuresLen);\n\n var extensionsLen = unpacker.unpackMapHeader();\n unpacker.skipValue(extensionsLen);\n\n protocolCtx = protocolContextFromVersion(srvVer);\n }\n }", "public void startSession() throws UnsupportedEncodingException\r\n {\n clientReader.setStopped(false);\r\n shellOutputWriter.setStopped(false);\r\n // shellErrorWriter.setStopped(false);\r\n shellExitListener.setStopped(false);\r\n tunnelsHandler.getConnection().setControlInputStream(connection.getTunnelControlInputStream());\r\n tunnelsHandler.getConnection().setControlOutputStream(connection.getTunnelControlOutputStream());\r\n tunnelsHandler.getConnection().setDataInputStream(connection.getMultiplexedConnectionInputStream());\r\n tunnelsHandler.getConnection().setDataOutputStream(connection.getMultiplexedConnectionOutputStream());\r\n // socksTunnelsHandler.getConnection().setControlOutputStream(connection.getSocksControlOutputStream());\r\n // socksTunnelsHandler.getConnection().setControlInputStream(connection.getSocksControlInputStream());\r\n // socksTunnelsHandler.getConnection().setDataInputStream(connection.getMultiplexedConnectionInputStream());\r\n // socksTunnelsHandler.getConnection().setDataOutputStream(connection.getMultiplexedConnectionOutputStream());\r\n pingService.setInputStream(connection.getPingInputStream());\r\n pingService.setOutputStream(connection.getPingOutputStream());\r\n // tunnelHandler.getConnection().start();\r\n }", "@Test\n public void receiveGoAwayHttp2() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM 3\n\n peer.acceptFrame();// SYN_STREAM 5\n\n peer.sendFrame().goAway(3, PROTOCOL_ERROR, Util.EMPTY_BYTE_ARRAY);\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);\n peer.acceptFrame();// DATA STREAM 3\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream1 = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), true);\n Http2Stream stream2 = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n connection.writePingAndAwaitPong();// Ensure the GO_AWAY that resets stream2 has been received.\n\n BufferedSink sink1 = Okio.buffer(stream1.getSink());\n BufferedSink sink2 = Okio.buffer(stream2.getSink());\n sink1.writeUtf8(\"abc\");\n try {\n sink2.writeUtf8(\"abc\");\n sink2.flush();\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream was reset: REFUSED_STREAM\", expected.getMessage());\n }\n sink1.writeUtf8(\"def\");\n sink1.close();\n try {\n connection.newStream(TestUtil.headerEntries(\"c\", \"cola\"), true);\n Assert.fail();\n } catch (ConnectionShutdownException expected) {\n }\n Assert.assertTrue(stream1.isOpen());\n Assert.assertFalse(stream2.isOpen());\n Assert.assertEquals(1, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream1 = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream1.type);\n MockHttp2Peer.InFrame synStream2 = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream2.type);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n MockHttp2Peer.InFrame data1 = peer.takeFrame();\n Assert.assertEquals(TYPE_DATA, data1.type);\n Assert.assertEquals(3, data1.streamId);\n Assert.assertArrayEquals(\"abcdef\".getBytes(StandardCharsets.UTF_8), data1.data);\n }", "@Override // javax.net.ssl.SSLSocket\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void startHandshake() {\n /*\n // Method dump skipped, instructions count: 634\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C58602mC.startHandshake():void\");\n }", "@Test\n public void serverWritesTrailersAndClientReadsTrailers() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"headers\", \"bam\"));\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"trailers\", \"boom\"));\n peer.sendFrame().ping(true, 1, 0);// PONG\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"artichaut\"), false);\n Assert.assertEquals(Headers.of(\"headers\", \"bam\"), stream.takeHeaders());\n connection.writePingAndAwaitPong();\n Assert.assertEquals(Headers.of(\"trailers\", \"boom\"), stream.trailers());\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertFalse(synStream.outFinished);\n Assert.assertEquals(3, synStream.streamId);\n Assert.assertEquals((-1), synStream.associatedStreamId);\n Assert.assertEquals(TestUtil.headerEntries(\"a\", \"artichaut\"), synStream.headerBlock);\n }", "private final static void setup() {\r\n\r\n supportedSchemes = new SchemeRegistry();\r\n\r\n // Register the \"http\" and \"https\" protocol schemes, they are\r\n // required by the default operator to look up socket factories.\r\n SocketFactory sf = PlainSocketFactory.getSocketFactory();\r\n supportedSchemes.register(new Scheme(\"http\", sf, 80));\r\n sf = SSLSocketFactory.getSocketFactory();\r\n supportedSchemes.register(new Scheme(\"https\", sf, 80));\r\n\r\n // prepare parameters\r\n HttpParams params = new BasicHttpParams();\r\n HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\r\n HttpProtocolParams.setContentCharset(params, \"UTF-8\");\r\n HttpProtocolParams.setUseExpectContinue(params, true);\r\n HttpProtocolParams.setHttpElementCharset(params, \"UTF-8\");\r\n HttpProtocolParams.setUserAgent(params, \"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/2008052906 Firefox/3.0\");\r\n defaultParameters = params;\r\n }", "private void initialize(final IOSession protocolSession) throws IOException {\n this.socketTimeout = this.session.getSocketTimeout();\n if (handshakeTimeout != null) {\n this.session.setSocketTimeout(handshakeTimeout);\n }\n\n this.session.getLock().lock();\n try {\n if (this.status.compareTo(Status.CLOSING) >= 0) {\n return;\n }\n switch (this.sslMode) {\n case CLIENT:\n this.sslEngine.setUseClientMode(true);\n break;\n case SERVER:\n this.sslEngine.setUseClientMode(false);\n break;\n }\n if (this.initializer != null) {\n this.initializer.initialize(this.targetEndpoint, this.sslEngine);\n }\n this.handshakeStateRef.set(TLSHandShakeState.HANDSHAKING);\n this.sslEngine.beginHandshake();\n\n this.inEncrypted.release();\n this.outEncrypted.release();\n doHandshake(protocolSession);\n updateEventMask();\n } finally {\n this.session.getLock().unlock();\n }\n }", "@Test\n public void serverFinishesStreamWithHeaders() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"headers\", \"bam\"));\n peer.sendFrame().ping(true, 1, 0);// PONG\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"artichaut\"), false);\n connection.writePingAndAwaitPong();\n Assert.assertEquals(Headers.of(\"headers\", \"bam\"), stream.takeHeaders());\n Assert.assertEquals(Util.EMPTY_HEADERS, stream.trailers());\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertFalse(synStream.outFinished);\n Assert.assertEquals(3, synStream.streamId);\n Assert.assertEquals((-1), synStream.associatedStreamId);\n Assert.assertEquals(TestUtil.headerEntries(\"a\", \"artichaut\"), synStream.headerBlock);\n }", "@Test\n public void close() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// GOAWAY\n\n peer.acceptFrame();// RST_STREAM\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), false);\n Assert.assertEquals(1, connection.openStreamCount());\n connection.close();\n Assert.assertEquals(0, connection.openStreamCount());\n try {\n connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), false);\n Assert.fail();\n } catch (ConnectionShutdownException expected) {\n }\n BufferedSink sink = Okio.buffer(stream.getSink());\n try {\n sink.writeByte(0);\n sink.flush();\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream finished\", expected.getMessage());\n }\n try {\n stream.getSource().read(new Buffer(), 1);\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream was reset: CANCEL\", expected.getMessage());\n }\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame goaway = peer.takeFrame();\n Assert.assertEquals(TYPE_GOAWAY, goaway.type);\n MockHttp2Peer.InFrame rstStream = peer.takeFrame();\n Assert.assertEquals(TYPE_RST_STREAM, rstStream.type);\n Assert.assertEquals(3, rstStream.streamId);\n }", "public synchronized boolean start(){\n \n\t\t/**\n\t\t * CONNECT TO SERVER\n\t\t */\n\t\tboolean connection = connectToServer(oml_server);\n \n\t\t/**\n\t\t * CREATE THE HEADER\n\t\t */\n\t\tcreate_head();\n \n\t\t/**\n\t\t * SEND THE HEADER\n\t\t */\n\t\tboolean injection = inject_head();\n\t\t\n\t\tif( connection && injection ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "void open(String nameNport) {\n\tString[] token=nameNport.split(\":\");\n\tString host=token[0];\n\tint port=Integer.parseInt(token[1]);\n\tint proceedFlag=1;\n\tIterator<Socket> iterator=Connection.connections.iterator();\n\tif(host.equalsIgnoreCase(\"localhost\") || host.equals(\"127.0.0.1\"))\n\t\thost=simpella.infoSocket.getLocalAddress().getHostAddress();\n\tif((host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getHostAddress())||host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getCanonicalHostName()))&&(simpella.serverPortNo==port || simpella.downloadPortNo==port)){\n\t\tproceedFlag=0;\n\t\tSystem.out.println(\"Client: Self Connect not allowed\");\n\t\t}\n\twhile(iterator.hasNext() && proceedFlag==1)\n\t{\n\t\tSocket sock=(Socket)iterator.next();\n\t\t\n\t\tif((host.equalsIgnoreCase(sock.getInetAddress().getHostAddress()) || host.equalsIgnoreCase(sock.getInetAddress().getCanonicalHostName())) && port==sock.getPort()){\n\t\t\tproceedFlag=0; \n\t\t\tSystem.out.println(\"Client: Duplicate connection to same IP/port not allowed\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\tif(proceedFlag==1)\n\t\t{\n\t\n\t\n\tbyte type=04;\n\tMessage msg=new Message(type);\n\ttry {\n\t\tConnection.outgoingConnPackRecv[noOfConn]=0;\n\t\tConnection.outgoingConnPackSent[noOfConn]=0;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]=0;\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]=0;\n\t\t\n\t\tclientSideSocket[noOfConn]=new Socket(host,port);\n\t\tSystem.out.println(\"Client:TCP Connection established...Begin handshake\");\n\t\toutToServer[noOfConn]=new ObjectOutputStream(clientSideSocket[noOfConn].getOutputStream());\n\t\tinFromServer[noOfConn]=new ObjectInputStream(clientSideSocket[noOfConn].getInputStream());\n\t\tString strToServer=\"SIMPELLA CONNECT/0.6\\r\\n\";\n\t\tbyte[] byteArray= strToServer.getBytes(\"UTF-16LE\");\n\t\tmsg.setPayload(byteArray);\n \t\n\t\tSystem.out.println(\"Client:\"+new String(byteArray));\n\t\t//outToServer.writeUTF(\"SIMPELLA CONNECT/0.6\\r\\n\");\n\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray.length+23;\n\t\toutToServer[noOfConn].writeObject((Object)msg);\n\t\tConnection.outgoingConnPackRecv[noOfConn]++;\n\t\t\n\t\tMessage msg1=(Message) inFromServer[noOfConn].readObject();\n\t\tbyte[] fromServer=msg1.getPayload();\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]+=fromServer.length+23;\n\t\tString strFromServer=new String(fromServer);\n\t\tSystem.out.println(\"Server:\"+strFromServer);\n\t\tif(msg1.getMessage_type()==05)\n\t\t\t{\n\t\t\tstrToServer=\"SIMPELLA/0.6 200 thank you for accepting me\\r\\n\";\n\t\t\tbyte[] byteArray1= strToServer.getBytes(\"UTF-16LE\");\n\t\t\tMessage m=new Message((byte)05);\n\t\t\tm.setPayload(byteArray1);\n\t\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray1.length+23;\n\t\t\toutToServer[noOfConn].writeObject((Object)m);\n\t\t\t\n\t\t\tConnection.connections.add(clientSideSocket[client.noOfConn]);\n\t\t\tConnection.outgoingConnection[client.noOfConn]=clientSideSocket[client.noOfConn];\n\t\t\tConnection.clientOutStream[client.noOfConn]=outToServer[client.noOfConn];\n\t\t\tnew clientSocketListen(clientSideSocket[noOfConn],outToServer[noOfConn],inFromServer[noOfConn]);\n\t\t\tupdate();\n\t\t\tnoOfConn++;\n\t\t\t//System.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"<open>:Cannot open connection to \"+host+\" at this time\");\n\t\t\t\tclientSideSocket[noOfConn].close();\n\t\t\t\tinFromServer[noOfConn].close();\n\t\t\t\toutToServer[noOfConn].close();\n//\t\t\t\tSystem.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\t\n\t\t\n\t} catch (UnknownHostException e) {\n\t\tSystem.out.println(\"Unknown Host: Destination host unreachable\");\n\t\t//e.printStackTrace();\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Connection Refused/Destination host unreachable\");\n\t}\n\t\t}\n\t}", "@Test\n public void remoteOmitsInitialSettings() throws Exception {\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// GOAWAY\n\n peer.play();\n Http2Connection connection = new Http2Connection.Builder(true).socket(peer.openSocket()).build();\n connection.start(false);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), false);\n try {\n stream.takeHeaders();\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream was reset: PROTOCOL_ERROR\", expected.getMessage());\n }\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame goaway = peer.takeFrame();\n Assert.assertEquals(TYPE_GOAWAY, goaway.type);\n Assert.assertEquals(PROTOCOL_ERROR, goaway.errorCode);\n }", "@Override\n\tpublic void run(){\n\t\tSystem.out.println(\"run\");\n\t\ttry {\n\t\t\tString firstLine = inFromClient.readLine();\n\t\t\tSystem.out.println(\"Received: \" + firstLine);\n\n\t\t\tboolean badRequest = false;\n\t\t\tString[] array = firstLine.split(\" \");\n\t\t\tString HTTPcommand = array[0];\n\t\t\tString URI = array[1];\n\t\t\tString HTTPversion = array[2];\n\t\t\tString path = \"\";\n\t\t\t\n\t\t\tint indexSlash = URI.lastIndexOf(\"/\");\n\t\t\tSystem.out.println(indexSlash);\n\t\t\tpath = URI.substring(indexSlash+1, URI.length());\n\n\t\t\t\n\t\t\tString secondLine = inFromClient.readLine();\n\t\t\tif (!HTTPversion.equals(\"HTTP/1.1\")) {\n\t\t\t\tbadRequest = true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (badRequest) {\n\t\t\t\tout.println(\"HTTP/1.1 400 Bad Request\");\n\t\t\t\tout.println('\\r' + '\\n' + '\\r' + '\\n');\n\t\t\t\tout.flush();\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tswitch(HTTPcommand){\n\t\t\t\tcase \"HEAD\": Head.head(clientSocket, inFromClient, out, path);\n\t\t\t\tbreak;\n\n\t\t\t\tcase \"GET\": Get.get(clientSocket, inFromClient, out, path);\n\t\t\t\tbreak;\n\n\t\t\t\tcase \"PUT\": {\n\t\t\t\t\tout.println(\"HTTP/1.1 200 OK\");\n\t\t\t\t\tout.println('\\r' + '\\n' + '\\r' + '\\n');\n\t\t\t\t\tout.flush();\n\t\t\t\t\tString Line3 = inFromClient.readLine();\n\t\t\t\t\tString Line4 = inFromClient.readLine();\n\t\t\t\t\tString Line5 = inFromClient.readLine();\n\t\t\t\t\tPut.put(inFromClient, path);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t\tcase \"POST\": {\n\t\t\t\t\tout.println(\"HTTP/1.1 200 OK\");\n\t\t\t\t\tout.println('\\r' + '\\n' + '\\r' + '\\n');\n\t\t\t\t\tout.flush();\n\t\t\t\t\tString Line3 = inFromClient.readLine();\n\t\t\t\t\tString Line4 = inFromClient.readLine();\n\t\t\t\t\tString Line5 = inFromClient.readLine();\n\t\t\t\t\tPost.post(inFromClient, path);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tdefault: {\n\t\t\t\t\tout.println(\"HTTP/1.1 501 Not Implemented\");\n\t\t\t\t\tout.println('\\r' + '\\n' + '\\r' + '\\n');\n\t\t\t\t\tout.flush();\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t\t//run();\n\n\t\t//inFromClient.close();\n\t\t//serverSocket.close();\n\t}", "public void setSslProtocol(String strUrl) throws Exception {\r\n \r\n URL url = new URL(strUrl);\r\n String host = url.getHost();\r\n int port = url.getPort();\r\n\r\n if (port <= 0) {\r\n port = SSL_PORT;\r\n }\r\n setSslHostPort(host, port);\r\n\r\n }", "private void startClientConnection() {\r\n\t\t\t\r\n\t//\tStringBuilder sbreq = new StringBuilder();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*making connection request*/\r\n\t\t\tclientsoc = new Socket(ip,port);\r\n\t\t\t\r\n\t\t\t/*Input and output streams for data sending and receiving through client and server sockets.*/\r\n\t\t\tdis = new DataInputStream(clientsoc.getInputStream());\t\r\n\t\t\tdos = new DataOutputStream(clientsoc.getOutputStream());\r\n\t\t\t\r\n\t\t\tStringBuilder sbconnreq = new StringBuilder();\r\n\r\n\t\t\t/*Building the Http Connection Request and passing Client name as body. Thus the Http Header\r\n\t\t\tare encoded around the client name data.*/\r\n\t\t\tsbconnreq.append(\"POST /\").append(\"{\"+clientname+\"}\").append(\"/ HTTP/1.1\\r\\n\").append(host).append(\"\\r\\n\").\r\n\t\t\tappend(userAgent).append(\"\\r\\n\").append(contentType).append(\"\\r\\n\").append(contentlength).append(clientname.length()).append(\"\\r\\n\").\r\n\t\t\tappend(date).append(new Date()).append(\"\\r\\n\");\r\n\t\t\t\r\n\t\t\tdos.writeUTF(sbconnreq.toString());\r\n\r\n\t\t\totherusers = new ArrayList<>(10);\r\n\t\t\tusertimestamp = new HashMap<>(10);\r\n\t\t\tJOptionPane.showMessageDialog(null, \"You have logged in. You can start Chatting: \" + clientname);\r\n\t\t\tconnected = true;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void test() throws IOException {\n SocketChannel socketChannel = SocketChannel.open();\n socketChannel.configureBlocking(false);\n socketChannel.connect(new InetSocketAddress(BuildConfig.API_URL, ServerIP.PORT));\n\n// Complete connection\n while (!socketChannel.finishConnect()) {\n // do something until connect completed\n }\n\n// Create byte buffers to use for holding application and encoded data\n SSLSession session = sslEngine.getSession();\n ByteBuffer myAppData = ByteBuffer.allocate(session.getApplicationBufferSize());\n ByteBuffer myNetData = ByteBuffer.allocate(session.getPacketBufferSize());\n ByteBuffer peerAppData = ByteBuffer.allocate(session.getApplicationBufferSize());\n ByteBuffer peerNetData = ByteBuffer.allocate(session.getPacketBufferSize());\n\n// Do initial handshake\n// doHandshake(socketChannel, sslEngine, myNetData, peerNetData);\n\n myAppData.put(\"hello\".getBytes());\n myAppData.flip();\n\n while (myAppData.hasRemaining()) {\n // Generate SSL/TLS encoded data (handshake or application data)\n SSLEngineResult res = sslEngine.wrap(myAppData, myNetData);\n\n // Process status of call\n if (res.getStatus() == SSLEngineResult.Status.OK) {\n myAppData.compact();\n\n // Send SSL/TLS encoded data to peer\n while(myNetData.hasRemaining()) {\n int num = socketChannel.write(myNetData);\n if (num == 0) {\n // no bytes written; try again later\n }\n }\n }\n\n // Handle other status: BUFFER_OVERFLOW, CLOSED\n }\n\n // Read SSL/TLS encoded data from peer\n int num = socketChannel.read(peerNetData);\n if (num == -1) {\n // The channel has reached end-of-stream\n } else if (num == 0) {\n // No bytes read; try again ...\n } else {\n // Process incoming data\n peerNetData.flip();\n SSLEngineResult res = sslEngine.unwrap(peerNetData, peerAppData);\n\n if (res.getStatus() == SSLEngineResult.Status.OK) {\n peerNetData.compact();\n\n if (peerAppData.hasRemaining()) {\n // Use peerAppData\n }\n }\n // Handle other status: BUFFER_OVERFLOW, BUFFER_UNDERFLOW, CLOSED\n }\n }", "protected void continueProtocol()\n {\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n try\n {\n key.setProtocolReadyOps(SelectionKey.OP_READ | SelectionKey.OP_WRITE);\n key.interestProtocol(SelectionKey.OP_READ | SelectionKey.OP_WRITE, 0);\n\n // wakeup the selector so we can continue to run the protocol\n key.selector().wakeup();\n }\n catch (CancelledKeyException e) {}\n }\n }", "public BasicLineParser(ProtocolVersion proto) {\n/* 91 */ this.protocol = (proto != null) ? proto : (ProtocolVersion)HttpVersion.HTTP_1_1;\n/* */ }", "public native int reEstablishConn() throws IOException,IllegalArgumentException;", "protected void doOpenConnection() throws Exception {\n connection.open\n (conn_route, request_spec.context, request_spec.params);\n }", "@Test\n public void clientPingsServer() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 5);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n long pingAtNanos = System.nanoTime();\n connection.writePingAndAwaitPong();\n long elapsedNanos = (System.nanoTime()) - pingAtNanos;\n Assert.assertTrue((elapsedNanos > 0));\n Assert.assertTrue((elapsedNanos < (TimeUnit.SECONDS.toNanos(1))));\n // verify the peer received what was expected\n MockHttp2Peer.InFrame pingFrame = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, pingFrame.type);\n Assert.assertEquals(0, pingFrame.streamId);\n Assert.assertEquals(1330343787, pingFrame.payload1);// OkOk\n\n Assert.assertEquals(-257978967, pingFrame.payload2);// donut\n\n Assert.assertFalse(pingFrame.ack);\n }", "private void doTunnelHandshake(Socket tunnel, String host, int port) throws IOException {\n OutputStream out = tunnel.getOutputStream();\n String msg = \"CONNECT \" + host + \":\" + port + \" HTTP/1.0\\n\"\n + \"\\r\\n\\r\\n\";\n out.write(msg.getBytes(StandardCharsets.UTF_8));\n out.flush();\n\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n tunnel.getInputStream(), encoding.name()));\n List<String> headers = getHeaderLines(reader);\n\n // verify successful connection\n if (!headers.get(0).contains(\"200 OK\")) {\n throw new IOException(\"Unable to connect to proxy, error message: \" + headers.get(0));\n }\n }", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "void connect() throws UnknownHostException, IOException {\n\t\tif (isConnected()) {\n\t\t\tdisconnect();\n\t\t}\n\t\t\n\t\tif (!ssl) {\n\t\t\tsock = new Socket();\n\t\t} else {\n\t\t\tsock = SSLSocketFactory.getDefault().createSocket();\n\t\t}\n\t\tsock.connect(new InetSocketAddress(host, port));\n\t\t\n\t\tif (sock != null) {\n\t\t\tsock.setKeepAlive(true);\n\t\t\tinStream = new UByteInputStream(new BufferedInputStream(sock.getInputStream(), sock.getReceiveBufferSize()));\n\t\t\tconnected();\n\t\t}\n\t}", "@Test\n public void serverClosesClientInputStream() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"b\", \"banana\"));\n peer.sendFrame().data(true, 3, new Buffer().writeUtf8(\"square\"), 6);\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), false);\n Source source = stream.getSource();\n assertStreamData(\"square\", source);\n connection.writePingAndAwaitPong();// Ensure that inFinished has been received.\n\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertTrue(synStream.inFinished);\n Assert.assertFalse(synStream.outFinished);\n }", "public void startInbound();", "protected void init(String endpoint, ObjectRef objectRef, PropertyMap connProps)\n {\n setHttpTunnelledPropsIfTrue(connProps);\n\n if(httpTunnelled)\n {\n httpInit(endpoint, connProps);\n return;\n }\n\n url = \"iiop://\" + endpoint;\n UrlInfo urlInfo = UrlInfo.getInstance(url);\n String host = urlInfo.getHost();\n int port = urlInfo.getPort();\n int socketTimeout = socketTimeoutProperty.getInt(endpoint, connProps);\n try\n {\n socket = new Socket(host, port);\n socketIn = socket.getInputStream();\n socketOut = socket.getOutputStream();\n socket.setSoTimeout(1000 * socketTimeout);\n }\n catch (Exception ex)\n {\n throw new SystemException(ex);\n }\n requestHeader = new RequestHeader_1_2();\n requestHeader.reserved = reservedBA;\n }", "public void upgrade_2_21_2() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.21.2\");\n\t\t\ttomcatHelper.stop();\n\t\t\tcyklotronHelper.setConfig(\"2_21_2\",\n\t\t\t\t\t\"org.objectledge.cache.CacheFactory.xml\");\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.21.2.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.20.rml\");\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.21.rml\");\n\t\t\tcyklotronHelper.executeFixMethod(\"fixes?action=fixes.CYKLO834\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.21.2 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "private synchronized void doConnect() {\n try {\n String host = agent.getHost();\n int port = agent.getPort();\n log.fine(\"Connecting to server \" + host + ':' + port);\n socket = new Socket(host, port);\n input = socket.getInputStream();\n output = new OutputStreamWriter(socket.getOutputStream());\n disconnected = false;\n new Thread(this).start();\n\n // Automatically login! -> give an auth to the agent...\n TACMessage msg = new TACMessage(\"auth\");\n msg.setParameter(\"userName\", agent.getUser());\n msg.setParameter(\"userPW\", agent.getPassword());\n msg.setMessageReceiver(agent);\n sendMessage(msg);\n\n } catch (Exception e) {\n disconnected = true;\n log.log(Level.SEVERE, \"connection to server failed:\", e);\n socket = null;\n }\n }", "private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }", "@Test\n public void clientCannotReadTrailersIfTheStreamFailed() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().rstStream(3, PROTOCOL_ERROR);\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);// PONG\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"artichaut\"), true);\n connection.writePingAndAwaitPong();\n try {\n stream.trailers();\n Assert.fail();\n } catch (StreamResetException expected) {\n }\n }", "@Test\n public void receiveGoAway() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM 1\n\n peer.acceptFrame();// SYN_STREAM 3\n\n peer.acceptFrame();// PING.\n\n peer.sendFrame().goAway(3, PROTOCOL_ERROR, EMPTY_BYTE_ARRAY);\n peer.sendFrame().ping(true, 1, 0);\n peer.acceptFrame();// DATA STREAM 1\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream1 = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), true);\n Http2Stream stream2 = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n connection.writePingAndAwaitPong();// Ensure the GO_AWAY that resets stream2 has been received.\n\n BufferedSink sink1 = Okio.buffer(stream1.getSink());\n BufferedSink sink2 = Okio.buffer(stream2.getSink());\n sink1.writeUtf8(\"abc\");\n try {\n sink2.writeUtf8(\"abc\");\n sink2.flush();\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream was reset: REFUSED_STREAM\", expected.getMessage());\n }\n sink1.writeUtf8(\"def\");\n sink1.close();\n try {\n connection.newStream(TestUtil.headerEntries(\"c\", \"cola\"), false);\n Assert.fail();\n } catch (ConnectionShutdownException expected) {\n }\n Assert.assertTrue(stream1.isOpen());\n Assert.assertFalse(stream2.isOpen());\n Assert.assertEquals(1, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream1 = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream1.type);\n MockHttp2Peer.InFrame synStream2 = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream2.type);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n MockHttp2Peer.InFrame data1 = peer.takeFrame();\n Assert.assertEquals(TYPE_DATA, data1.type);\n Assert.assertEquals(3, data1.streamId);\n Assert.assertArrayEquals(\"abcdef\".getBytes(StandardCharsets.UTF_8), data1.data);\n }", "protected HTTPConnection getConnectionToURL(URL url) throws ProtocolNotSuppException\r\n {\r\n\r\n HTTPConnection con = new HTTPConnection(url);\r\n con.setDefaultHeaders(new NVPair[] { new NVPair(\"User-Agent\", \"Mozilla/4.5\")});\r\n con.setDefaultAllowUserInteraction(false);\r\n\r\n if (proxyRequired)\r\n {\r\n con.addBasicAuthorization(proxyRealm, proxyName, proxyPswd);\r\n }\r\n\r\n return (con);\r\n }", "public static void startHttpsPost() {\n String reqUrl=\"https://222.221.16.170:80/coupon/webserver/get\";\n//\t\tString strRequest1=\"{\\\"phoneNo\\\":\\\"18088262389\\\",\\\"message\\\":\\\"测试一下\\\",\\\"act_code\\\":\\\"6\\\"}\";\n String strRequest2=\"{\\\"pay_user\\\":\\\"15393944645\\\",\\\"act_code\\\":\\\"2\\\"}\";\n // 红包充值\n String strRequest4=\"{'pay_user':'17787019595','act_code':'4','efCampaignId':'1305','packetId':'192374332','packetValue':'550','seqCode':'27364326432943947'}\";\n try{\n String strParm=TydicDES.encodeValue(strRequest4);\n String resultStr = sendHtpps(strParm,reqUrl);\n System.out.println(\"--------------返回密文:\"+resultStr);\n System.out.println(\"----解密后的结果:\"+TydicDES.decodedecodeValue(resultStr));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.println();\n }", "public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}", "void upgrade(final Transport transport) {\n mUpgrading.set(true);\n\n final Runnable cleanup = () -> {\n mUpgrading.set(false);\n transport.off(\"packet\");\n transport.off(\"close\");\n transport.off(\"error\");\n };\n\n final Listener onError = args -> {\n cleanup.run();\n transport.close();\n };\n\n transport.on(\"packet\", args -> {\n final Packet<?> packet = (Packet<?>) args[0];\n if(packet.type.equals(Packet.PING) && (packet.data != null) && packet.data.equals(\"probe\")) {\n final Packet<String> replyPacket = new Packet<>(Packet.PONG);\n replyPacket.data = \"probe\";\n\n transport.send(new ArrayList<Packet<?>>() {{\n add(replyPacket);\n }});\n\n if (mTransport.isWritable()) {\n mTransport.send(PAYLOAD_NOOP);\n }\n\n emit(\"upgrading\", transport);\n } else if(packet.type.equals(Packet.UPGRADE) && (mReadyState != ReadyState.CLOSED) && (mReadyState != ReadyState.CLOSING)) {\n cleanup.run();\n clearTransport();\n setTransport(transport);\n emit(\"upgrade\", transport);\n flush();\n\n schedulePing();\n } else {\n cleanup.run();\n transport.close();\n }\n });\n transport.once(\"close\", args -> onError.call(\"transport closed\"));\n transport.once(\"error\", onError);\n\n once(\"close\", args -> onError.call(\"socket closed\"));\n }", "@Test\n public void remoteSendsDataAfterInFinished() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.sendFrame().data(true, 3, new Buffer().writeUtf8(\"robot\"), 5);\n peer.sendFrame().data(true, 3, new Buffer().writeUtf8(\"c3po\"), 4);\n peer.acceptFrame();// RST_STREAM\n\n peer.sendFrame().ping(false, 2, 0);// Ping just to make sure the stream was fastforwarded.\n\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), false);\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n assertStreamData(\"robot\", stream.getSource());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame rstStream = peer.takeFrame();\n Assert.assertEquals(TYPE_RST_STREAM, rstStream.type);\n Assert.assertEquals(3, rstStream.streamId);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n Assert.assertEquals(2, ping.payload1);\n }", "private void establishConnection() throws IOException {\n\t\tthis.inReader = new BufferedReader(new InputStreamReader(this.conn.getInputStream()));\n\t\tthis.outWriter = new BufferedWriter(new OutputStreamWriter(this.conn.getOutputStream()));\n\t}", "public void startListeningForConnection() {\n startInsecureListeningThread();\n }", "public void upgrade_2_18_1() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.18.1\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.18.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.18.1.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.18.1 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "@Test\n public void remoteDoubleSynReply() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"b\", \"banana\"));\n peer.sendFrame().ping(true, 1, 0);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"c\", \"cola\"), false);\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n connection.writePingAndAwaitPong();// Ensure that the 2nd SYN REPLY has been received.\n\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public interface Client {\n\n\t/**\n\t * @throws Http2Exception\n\t */\n\tvoid init() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean start() throws Http2Exception;\n\n\t/**\n\t * @param request\n\t * @return\n\t * @throws Http2Exception\n\t */\n\t Http2Response request(Http2Request request) throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean isRuning() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean shutdown() throws Http2Exception;\n\n}", "private void connect() {\n ftp.connect();\n if (ftp.goodReply()) sendResponse(\"Connected\");\n else sendResponse(\"Could not connect to server\");\n }", "public void upgrade_2_23_0() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.23.0\");\n\t\t\ttomcatHelper.stop();\n\t\t\tpsqlHelper.executeSQL(\"upgrade_2.23.0.sql\");\n\t\t\tcyklotronHelper.setConfig(\"2_23_0\",\n\t\t\t\t\t\"org.objectledge.btm.BitronixTransactionManager.xml\");\n\t\t\tcyklotronHelper\n\t\t\t\t\t.deleteConfig(\"org.objectledge.database.XaPoolDataSource.xml\");\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.23.0.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.23.0 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "@Override\n\tpublic void open() throws TTransportException {\n\t}", "@Test\n public void serverPingsClient() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(0, ping.streamId);\n Assert.assertEquals(2, ping.payload1);\n Assert.assertEquals(0, ping.payload2);\n Assert.assertTrue(ping.ack);\n }", "private void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(Server.ADDRESS, Server.PORT_NUMBER);\n\t\t\tthis.oos = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tthis.ois = new ObjectInputStream(socket.getInputStream());\n\t\t\tServerListener serverlistener = new ServerListener();\n\t\t\tserverlistener.start();\n\t\t\tRequest request = new Request(RequestCode.START_DOCUMENT_STREAM);\n\t\t\trequest.setUsername(user.getUsername());\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "int getProtocolVersion();", "@Override\n protected void prepareHandshakeMessageContents() {\n }", "@Test\n public void peerSetsZeroFlowControl() throws Exception {\n peer.setClient(true);\n // Write the mocking script.\n peer.sendFrame().settings(new Settings().set(Settings.INITIAL_WINDOW_SIZE, 0));\n peer.acceptFrame();// ACK\n\n peer.sendFrame().windowUpdate(0, 10);// Increase the connection window size.\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);\n peer.acceptFrame();// HEADERS STREAM 3\n\n peer.sendFrame().windowUpdate(3, 5);\n peer.acceptFrame();// DATA STREAM 3 \"abcde\"\n\n peer.sendFrame().windowUpdate(3, 5);\n peer.acceptFrame();// DATA STREAM 3 \"fghi\"\n\n peer.play();\n // Play it back.\n Http2Connection connection = connect(peer);\n connection.writePingAndAwaitPong();// Ensure the SETTINGS have been received.\n\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), true);\n BufferedSink sink = Okio.buffer(stream.getSink());\n sink.writeUtf8(\"abcdefghi\");\n sink.flush();\n // Verify the peer received what was expected.\n peer.takeFrame();// PING\n\n MockHttp2Peer.InFrame headers = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, headers.type);\n MockHttp2Peer.InFrame data1 = peer.takeFrame();\n Assert.assertEquals(TYPE_DATA, data1.type);\n Assert.assertEquals(3, data1.streamId);\n Assert.assertArrayEquals(\"abcde\".getBytes(StandardCharsets.UTF_8), data1.data);\n MockHttp2Peer.InFrame data2 = peer.takeFrame();\n Assert.assertEquals(TYPE_DATA, data2.type);\n Assert.assertEquals(3, data2.streamId);\n Assert.assertArrayEquals(\"fghi\".getBytes(StandardCharsets.UTF_8), data2.data);\n }", "public void start() {\n \t\tinit();\n\t\tif(!checkBackend()){\n\t\t\tvertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {\n\t\t\t\tpublic void handle(HttpServerRequest req) {\n\t\t\t\t String query_type = req.path();\t\t\n\t\t\t\t req.response().headers().set(\"Content-Type\", \"text/plain\");\n\t\t\t\t\n\t\t\t\t if(query_type.equals(\"/target\")){\n\t\t\t\t\t String key = req.params().get(\"targetID\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequest(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t String key = \"1\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequestRange(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}).listen(80);\n\t\t} else {\n\t\t\tSystem.out.println(\"Please make sure that both your DCI are up and running\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public Handshake()\n\t{\n\t this(-1);\n\t}", "@Override\n public void openConnection(OperatedClientConnection operatedClientConnection, HttpHost httpHost, InetAddress inetAddress, HttpContext httpContext, HttpParams httpParams) throws IOException {\n if (operatedClientConnection == null) throw new IllegalArgumentException(\"Connection may not be null\");\n if (httpHost == null) throw new IllegalArgumentException(\"Target host may not be null\");\n if (httpParams == null) throw new IllegalArgumentException(\"Parameters may not be null\");\n if (operatedClientConnection.isOpen()) throw new IllegalStateException(\"Connection must not be open\");\n Object object = this.schemeRegistry.getScheme(httpHost.getSchemeName());\n SchemeSocketFactory schemeSocketFactory = ((Scheme)object).getSchemeSocketFactory();\n InetAddress[] arrinetAddress = this.resolveHostname(httpHost.getHostName());\n int n = ((Scheme)object).resolvePort(httpHost.getPort());\n int n2 = 0;\n while (n2 < arrinetAddress.length) {\n HttpInetSocketAddress httpInetSocketAddress;\n Socket socket;\n block16 : {\n boolean bl;\n block15 : {\n block14 : {\n block13 : {\n object = arrinetAddress[n2];\n int n3 = arrinetAddress.length;\n bl = true;\n if (n2 != n3 - 1) {\n bl = false;\n }\n socket = schemeSocketFactory.createSocket(httpParams);\n operatedClientConnection.opening(socket, httpHost);\n httpInetSocketAddress = new HttpInetSocketAddress(httpHost, (InetAddress)object, n);\n object = null;\n if (inetAddress != null) {\n object = new InetSocketAddress(inetAddress, 0);\n }\n if (this.log.isDebugEnabled()) {\n Log log = this.log;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Connecting to \");\n stringBuilder.append(httpInetSocketAddress);\n log.debug((Object)stringBuilder.toString());\n }\n object = schemeSocketFactory.connectSocket(socket, httpInetSocketAddress, (InetSocketAddress)object, httpParams);\n if (socket != object) {\n operatedClientConnection.opening((Socket)object, httpHost);\n break block13;\n }\n object = socket;\n }\n try {\n this.prepareSocket((Socket)object, httpContext, httpParams);\n operatedClientConnection.openCompleted(schemeSocketFactory.isSecure((Socket)object), httpParams);\n return;\n }\n catch (ConnectTimeoutException connectTimeoutException) {\n break block14;\n }\n catch (ConnectException connectException) {\n break block15;\n }\n catch (ConnectTimeoutException connectTimeoutException) {\n // empty catch block\n }\n }\n if (bl) throw object;\n break block16;\n catch (ConnectException connectException) {\n // empty catch block\n }\n }\n if (bl) throw new HttpHostConnectException(httpHost, (ConnectException)object);\n }\n if (this.log.isDebugEnabled()) {\n socket = this.log;\n object = new StringBuilder();\n ((StringBuilder)object).append(\"Connect to \");\n ((StringBuilder)object).append(httpInetSocketAddress);\n ((StringBuilder)object).append(\" timed out. \");\n ((StringBuilder)object).append(\"Connection will be retried using another IP address\");\n socket.debug((Object)((StringBuilder)object).toString());\n }\n ++n2;\n }\n }", "private void setupAndConnect() {\n URL url = getUrl(this.endpointUrl);\n connection = null;\n try {\n connection = (HttpURLConnection) url.openConnection();\n HttpURLConnection.setFollowRedirects(true);\n } catch (IOException e) {\n LOG.severe(\"Error connecting to Url : \" + url);\n LOG.severe(e.toString());\n }\n }", "private void connectUsingCertificate() {\n\t\tfinal String METHOD = \"connectUsingCertificate\";\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\t\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\t/* This isn't needed as the production messaging.internetofthings.ibmcloud.com \n\t\t\t * certificate should already be in trust chain.\n\t\t\t * \n\t\t\t * See: \n\t\t\t * http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection\n\t\t\t * https://gerrydevstory.com/2014/05/01/trusting-x509-base64-pem-ssl-certificate-in-java/\n\t\t\t * http://stackoverflow.com/questions/12501117/programmatically-obtain-keystore-from-pem\n\t\t\t * https://gist.github.com/sharonbn/4104301\n\t\t\t * \n\t\t\t * CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\t * InputStream certFile = AbstractClient.class.getResourceAsStream(\"messaging.pem\");\n\t\t\t * Certificate ca = cf.generateCertificate(certFile);\n\t\t\t *\n\t\t\t * KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t * keyStore.load(null, null);\n\t\t\t * keyStore.setCertificateEntry(\"ca\", ca);\n\t\t\t * TrustManager trustManager = TrustManagerUtils.getDefaultTrustManager(keyStore);\n\t\t\t * SSLContext sslContext = SSLContextUtils.createSSLContext(\"TLSv1.2\", null, trustManager);\n\t\t\t * \n\t\t\t */\n\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\t//Validate the availability of Server Certificate\n\t\t\t\n\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tserverCert = trimedValue(options.getProperty(\"Server-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Server Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Client Certificate\n\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tclientCert = trimedValue(options.getProperty(\"Client-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t//Validate the availability of Client Certificate Key\n\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")).contains(\".key\")){\n\t\t\t\t\tclientCertKey = trimedValue(options.getProperty(\"Client-Key\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only Certificate key in .key format is supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Key is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Certificate Password\n\t\t\ttry{\n\t\t\tif (trimedValue(options.getProperty(\"Certificate-Password\")) != null){\n\t\t\t\tcertPassword = trimedValue(options.getProperty(\"Certificate-Password\"));\n\t\t\t\t} else {\n\t\t\t\t\tcertPassword = \"\";\n\t\t\t\t}\n\t\t\t} catch (Exception e){\n\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Certificate Password is missing\", e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(getSocketFactory(serverCert, clientCert, clientCertKey, certPassword));\n\n\t\t} catch (Exception e) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, \"Unable to configure TLSv1.2 connection: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private HttpURLConnection prepareConnection() {\n URL url;\n\n HttpURLConnection connection;\n\n String connectionType = \"http\";\n if (this.connectionType == HTTPS)\n connectionType = \"https\";\n\n try {\n url = new URL(connectionType, printerAddress, printerPort, \"/\");\n Log.i(LOG_TAG, url.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"bad url\");\n return null;\n }\n\n try {\n connection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"can't connect\");\n return null;\n }\n\n connection.setReadTimeout(15000);\n connection.setReadTimeout(15000);\n connection.setDoInput(true);\n connection.setDoOutput(true);\n\n\n\n try {\n connection.setRequestMethod(\"POST\");\n } catch (ProtocolException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"protocol fail\");\n return null;\n }\n\n connection.setRequestProperty(\"Content-Type\", \"application/ipp\");\n connection.setRequestProperty(\"Accept\", \"text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\");\n\n return connection;\n }", "public Http2MultiplexHandler(ChannelHandler inboundStreamHandler) {\n/* 115 */ this(inboundStreamHandler, (ChannelHandler)null);\n/* */ }", "public interface Transport {\r\n /**\r\n * Prepares connection to server and returns connection output stream.\r\n * \r\n * @param info\r\n * connection information object containing target URL, content encoding, etc.\r\n * @return connection output stream\r\n * @throws TransportException\r\n */\r\n OutputStream prepare(ConnectionInfo info) throws TransportException;\r\n \r\n \r\n // this method used for wsg request -- by felix\r\n /**\r\n * Prepares connection to server and returns connection output stream.\r\n * \r\n * @param info\r\n * connection information object containing target URL, content encoding, etc.\r\n * @return connection output stream\r\n * @throws TransportException\r\n */\r\n void prepare(ConnectionInfo info,byte[] reqXml) throws TransportException;\r\n\tpublic InputStream configPrepare(ConnectionInfo info) throws TransportException;\r\n public InputStream prepareAndConnect(ConnectionInfo info) throws TransportException ;\r\n public void prepareWsgPost(ConnectionInfo info,byte[] reqXml) throws TransportException ;\r\n \r\n\r\n /**\r\n * Sends request to server and receives a response.\r\n * <em>{@link #prepare(ConnectionInfo)} should be called prior to performing an exchange.</em>\r\n * \r\n * @return input stream containing server response\r\n * \r\n * @throws TransportException\r\n */\r\n InputStream exchange() throws TransportException;\r\n\r\n /**\r\n * Closes any pending connections and frees transport resources.\r\n */\r\n void close();\r\n}", "@Test\n\tpublic void testGetCACerts_simpleEnroll_TLSwPoP() {\n\t\tSystem.out.println(\"Beginning TC2024\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tX509Certificate newCert = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\t\t\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\t\n\t\t/*\n\t\t * OK, we have the new trust anchor. Let's start a new session\n\t\t * using this TA and attempt a simple enroll.\n\t\t */\n\t\tec = new ESTClient();\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(newCACerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t// get a good cert to use for tls credentials\n\t\tmyCert1 = getTrustedCert();\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authTLS, mKey, Boolean.TRUE);\n\t\t} catch (InvalidKeyException | CertificateException | IOException\n\t\t\t\t| EncodingException | EnrollException\n\t\t\t\t| EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertNotNull(newCert);\n\t\tSystem.out.println(\"Ending TC2024\");\n\t}", "@Test\n public void clientClosesClientInputStream() throws Exception {\n // write the mocking script\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// RST_STREAM\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), false);\n Source in = stream.getSource();\n BufferedSink out = Okio.buffer(stream.getSink());\n in.close();\n try {\n in.read(new Buffer(), 1);\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream closed\", expected.getMessage());\n }\n try {\n out.writeUtf8(\"a\");\n out.flush();\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream finished\", expected.getMessage());\n }\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertTrue(synStream.inFinished);\n Assert.assertFalse(synStream.outFinished);\n MockHttp2Peer.InFrame rstStream = peer.takeFrame();\n Assert.assertEquals(TYPE_RST_STREAM, rstStream.type);\n Assert.assertEquals(CANCEL, rstStream.errorCode);\n }", "@Override\n protected String inferProtocol() {\n return \"http\";\n }", "public LWTRTPdu connectReq() throws IncorrectTransitionException;", "final public void openConnection() throws IOException {\n // Do not do anything if the connection is already open\n if (isConnected())\n return;\n\n // Create the sockets and the data streams\n try {\n clientSocket = new Socket(host, port);\n output = new DataOutputStream(clientSocket.getOutputStream());\n // input =\n // new BufferedReader(new InputStreamReader(clientSocket.getInputStream(), \"Big5_HKSCS\"));\n input = new DataInputStream(clientSocket.getInputStream());\n } catch (IOException ex)\n // All three of the above must be closed when there is a failure\n // to create any of them\n {\n try {\n closeAll();\n } catch (Exception exc) {\n }\n\n throw ex; // Rethrow the exception.\n }\n\n clientReader = new Thread(this); // Create the data reader thread\n readyToStop = false;\n clientReader.start(); // Start the thread\n }", "public void start() throws IOException {\n System.out.println(\"Starting USCL-Bot...\");\n System.out.println();\n cmd.init();\n conn = new Connection(hostName, hostPort, loginName, loginPass);\n conn.addDatagramListener(conn, Datagram.DG_PERSONAL_TELL);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_STATE);\n conn.addDatagramListener(conn, Datagram.DG_MY_GAME_RESULT);\n conn.addDatagramListener(conn, Datagram.DG_STARTED_OBSERVING);\n conn.addDatagramListener(conn, Datagram.DG_MOVE_LIST);\n conn.addDatagramListener(conn, Datagram.DG_SEND_MOVES);\n conn.addDatagramListener(conn, Datagram.DG_PLAYERS_IN_MY_GAME);\n conn.addDatagramListener(conn, Datagram.DG_GAME_MESSAGE);\n taskSwitchTracker.setUserService(userService);\n taskSwitchTracker.setTournamentService(tournamentService);\n taskSwitchTracker.setConnection(conn);\n taskSwitchTracker.setUSCLBot(this);\n taskSwitchTracker.start();\n conn.initiateConnect(hostName, hostPort);\n }", "public static void main(String[] args) {\n\t\t//DEFINE SETTINGS HERE\n\t\tString host = \"smtp.gmail.com\";\n\t\tint port = 587;\n\t\t\n BufferedReader sysIn = new BufferedReader(new InputStreamReader(System.in)); //Read from console\n PrintStream sysOut = System.out; //Print to console\n\t\t\n SSLSocketFactory mainFactory = (SSLSocketFactory) SSLSocketFactory.getDefault(); //Get default SSL socket factory\n try {\n\t\t\t//Regular connection\n\t\t\tSocket plainSocket = new Socket(host, port);\n\t\t\tSSLSocket clientSocket = null;\n\t\t\tBufferedWriter serverWriter = new BufferedWriter(new OutputStreamWriter(plainSocket.getOutputStream())); //Write to unsec server\n BufferedReader serverReader = new BufferedReader(new InputStreamReader(plainSocket.getInputStream())); //Read from unsec server\n\t\t\t\n\t\t\tString serverInput = null; //Stores latest line from server\n String userInput = \"\"; //Stores lastest input line from user\n\t\t\tboolean connSuccess = true; //Stores connection attempt state\n\t\t\t\n\t\t\t//Check for good greeting\n\t\t\tif ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"220\")) {\n\t\t\t\t//Check if server gave 220 code\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Server did not greet.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Send helo to server\n\t\t\tif (connSuccess) {\n\t\t\t\tuserInput = \"HELO \" + host;\n\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\tserverWriter.newLine();\n\t\t\t\tserverWriter.flush();\n\t\t\t}\n\t\t\t\n\t\t\t//Check for good helo response\n\t\t\tif (connSuccess && ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"250\"))) {\n\t\t\t\t//If HELO failed\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Bad HELO response.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Send starttls to server\n\t\t\tif (connSuccess) {\n\t\t\t\tuserInput = \"STARTTLS\";\n\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\tserverWriter.newLine();\n\t\t\t\tserverWriter.flush();\n\t\t\t}\n\t\t\t\n\t\t\t//Check for good starttls response\n\t\t\tif (connSuccess && ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"220\"))) {\n\t\t\t\t//If STARTTLS failed\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Bad STARTTLS response.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Upgrade if good starttls response\n\t\t\tif (connSuccess) {\n\t\t\t\t//create, connect, start handshake\n\t\t\t\tclientSocket = (SSLSocket) mainFactory.createSocket(plainSocket, plainSocket.getInetAddress().getHostAddress(), plainSocket.getPort(), true); \n\t\t\t\tprintSocketInfo(clientSocket); //Print connection info\n\t\t\t\t\n\t\t\t\tserverWriter = new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream())); //Write to server\n\t\t\t\tserverReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); //Read from server\n\t\t\t\t\n\t\t\t\tboolean tryRead = true; //Whether to read next line from serverReader (prevents blocking on multiline SMTP responses)\n\n\t\t\t\t//The below booleans, used to successully close the connection, might be unnecessary\n\t\t\t\tboolean quitUser = false; //Whether the user has entered quit, might be unnecessary\n\t\t\t\tboolean openRead = true; //Whether serverReader is still open (serverInput != null)\n\t\t\t\tboolean openSocket = true; //Whether clientSocket is still open (clientSocket != null)\n\n\t\t\t\t//SMTP input variables\n\t\t\t\tboolean sendingData = false;\n\t\t\t\tString cmdMode = \"regular\";\n\n\t\t\t\t//Main connection loop\n\t\t\t\twhile (openSocket && openRead && !quitUser) {\n\t\t\t\t\tif (clientSocket == null) { //Break if socket is closed\n\t\t\t\t\t\topenSocket = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Display server response/message\n\t\t\t\t\twhile (tryRead) {\n\t\t\t\t\t\tserverInput = serverReader.readLine();\n\t\t\t\t\t\tif (serverInput == null) { //If serverReader gets closed/connection broken\n\t\t\t\t\t\t\topenRead = false;\n\t\t\t\t\t\t\ttryRead = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsysOut.println(serverInput);\n\t\t\t\t\t\tif (serverInput.substring(3, 4).equals(\"-\")) { //Check if multiline response\n\t\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttryRead = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//Exit client if 221 stream close msg received\n\t\t\t\t\tif (serverInput != null && serverInput.substring(0, 3).equals(\"221\")) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Exit client if connection lost/closed prematurely\n\t\t\t\t\tif (openSocket == false || openRead == false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Enter data mode if data command sent and 354 confirmation received\n\t\t\t\t\tif (userInput.equalsIgnoreCase(\"data\") && serverInput.substring(0, 3).equals(\"354\")) {\n\t\t\t\t\t\tsendingData = true;\n\t\t\t\t\t\tcmdMode = \"data\";\n\t\t\t\t\t}\n\t\t\t\t\t//In data mode (multi-line) and sending data (. not entered)\n\t\t\t\t\twhile (sendingData && cmdMode.equals(\"data\")) {\n\t\t\t\t\t\tuserInput = sysIn.readLine();\n\t\t\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\t\t\tserverWriter.newLine();\n\t\t\t\t\t\tserverWriter.flush();\n\t\t\t\t\t\tif (userInput.equals(\".\")) { //End of message\n\t\t\t\t\t\t\tsendingData = false;\n\t\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//In regular command mode (single-line)\n\t\t\t\t\tif (cmdMode.equals(\"regular\")) {\n\t\t\t\t\t\tuserInput = \"\"; //Reset userInput to show prompt\n\t\t\t\t\t\t//Read user input, display prompt if blank enter, otherwise send to server\n\t\t\t\t\t\twhile (userInput.equals(\"\")) {\n\t\t\t\t\t\t\tsysOut.print(\"C: \");\n\t\t\t\t\t\t\tuserInput = sysIn.readLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\t\t\tserverWriter.newLine();\n\t\t\t\t\t\tserverWriter.flush();\n\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t}\n\t\t\t\t\tcmdMode = \"regular\"; //Force reset to regular mode after response-command cycle ends\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n //Clean up all connection objects\n serverWriter.close();\n serverReader.close();\n\t\t\tplainSocket.close();\n\t\t\tif (connSuccess) {\n\t\t\t\t\tclientSocket.close();\n\t\t\t}\n sysIn.close();\n sysOut.close();\n } catch (IOException e) {\n System.err.println(e.toString());\n }\n }", "@Test\n public void clientCannotReadTrailersWithoutExhaustingStream() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().data(false, 3, new Buffer().writeUtf8(\"robot\"), 5);\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"trailers\", \"boom\"));\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);// PONG\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"artichaut\"), true);\n connection.writePingAndAwaitPong();\n try {\n stream.trailers();\n Assert.fail();\n } catch (IllegalStateException expected) {\n }\n }", "@Override\r\n\tpublic void run() {\r\n\t\ttry {\r\n\t\t\tthis.inputStream = socket.getInputStream();\r\n\t\t\tthis.outputStream = socket.getOutputStream();\r\n\t\t\t// Get the peer that is asking me for fragments.\r\n\t\t\tpeerState = torrentClient.getPeerStateList().getByAddress(\r\n\t\t\t\t\tsocket.getInetAddress().getHostAddress(), socket.getPort());\r\n\t\t\t// read handhake\r\n\t\t\tbyte[] received = new byte[68];\r\n\t\t\tinputStream.read(received);\r\n\t\t\t//Parse the handshake received\r\n\t\t\tHandsake handshakeMessage = Handsake\r\n\t\t\t\t\t.parseStringToHandsake(new String(received));\r\n\t\t\t// validate hash\r\n\t\t\tString torrentHash = new String(torrentClient.getMetainf()\r\n\t\t\t\t\t.getInfo().getInfoHash());\r\n\t\t\t//if the received handshake is correct send my handshake\r\n\t\t\tif (Handsake.isValidHandsakeForBitTorrentProtocol(handshakeMessage,\r\n\t\t\t\t\ttorrentHash)) {\r\n\t\t\t\t// send handshake\r\n\t\t\t\tHandsake handShakeToSend = new Handsake(torrentHash,\r\n\t\t\t\t\t\tthis.torrentClient.getPeerId());\r\n\t\t\t\tthis.outputStream.write(handShakeToSend.getBytes());\r\n\t\t\t\t// enviar bitfield\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.sendBitfield();\r\n\t\t\t\t\t// leer\r\n\t\t\t\t\tPeerProtocolMessage message = this.readNormalMessage();\r\n\t\t\t\t\t// Check if I have received an interested message\r\n\t\t\t\t\tif (message.getType().equals(\r\n\t\t\t\t\t\t\tPeerProtocolMessage.Type.INTERESTED)) {\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tpeerState = torrentClient.getPeerStateList()\r\n\t\t\t\t\t\t\t\t\t.getByAddress(\r\n\t\t\t\t\t\t\t\t\t\t\tsocket.getInetAddress()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getHostAddress(),\r\n\t\t\t\t\t\t\t\t\t\t\tsocket.getPort());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//Set the peer status\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tthis.peerState.setPeer_interested(true);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// send unchoke to the peer\r\n\t\t\t\t\t\tthis.outputStream.write(new UnChokeMsg().getBytes());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//set the peer status\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tthis.peerState.setAm_choking(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Continue receiveing messages if the message type is Keep_alive, Request or Have.\r\n\t\t\t\t\t\tboolean continueReading = true;\r\n\t\t\t\t\t\twhile (continueReading) {\r\n\t\t\t\t\t\t\tmessage = this.readNormalMessage();\r\n\t\t\t\t\t\t\tcontinueReading = processMessage(message);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// if I have not received interested send unchoke\r\n\t\t\t\t\t\tthis.outputStream.write(new ChokeMsg().getBytes());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// close connection\r\n\t\t\tthis.inputStream.close();\r\n\t\t\tthis.outputStream.close();\r\n\t\t\tsocket.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Sending thread closed\");\r\n\t\t\te.printStackTrace();\r\n\t\t\ttry {\r\n\t\t\t\tthis.inputStream.close();\r\n\t\t\t\tthis.outputStream.close();\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void handshake() {\n JsonNode helloResponse = this.readNextResponse();\n\n if (!helloResponse.has(\"hello\")) {\n throw new JsiiError(\"Expecting 'hello' message from jsii-runtime\");\n }\n\n String runtimeVersion = helloResponse.get(\"hello\").asText();\n assertVersionCompatible(JSII_RUNTIME_VERSION, runtimeVersion);\n }", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "@Test\n public void serverClosesClientOutputStream() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().rstStream(3, CANCEL);\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), true);\n BufferedSink out = Okio.buffer(stream.getSink());\n connection.writePingAndAwaitPong();// Ensure that the RST_CANCEL has been received.\n\n try {\n out.writeUtf8(\"square\");\n out.flush();\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream was reset: CANCEL\", expected.getMessage());\n }\n try {\n out.close();\n Assert.fail();\n } catch (IOException expected) {\n // Close throws because buffered data wasn't flushed.\n }\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertFalse(synStream.inFinished);\n Assert.assertFalse(synStream.outFinished);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n }", "public interface Http2Client extends Closeable {\n\n /**\n * connect to remote address asynchronously\n * @return CompletableFuture contains {@link Void}\n */\n CompletableFuture<Void> connect();\n\n /**\n * send http request to remote address asynchronously\n * @param request http2 request\n * @return CompletableFuture contains response\n */\n CompletableFuture<HttpResponse> sendRequest(HttpRequest request);\n\n /**\n * send http request to remote address asynchronously,\n * and not wait far response\n * @param request http2 request\n * @return CompletableFuture contains nothing\n */\n CompletableFuture<Void> sendRequestOneWay(HttpRequest request);\n\n /**\n * send server-push ack to remote address asynchronously\n * @param pushAck server-push ack\n * @param streamId http2 streamId\n * @return CompletableFuture contains nothing\n */\n CompletableFuture<Void> sendPushAck(HttpPushAck pushAck, int streamId);\n}", "public void start() {\n\n // ask information\n String address = JOptionPane.showInputDialog(null, \"Connect to server:\", \"Input\", JOptionPane.QUESTION_MESSAGE);\n String ac = JOptionPane.showInputDialog(null, \"Username:\", \"Input\", JOptionPane.QUESTION_MESSAGE);\n String pw = JOptionPane.showInputDialog(null, \"Password:\", \"Input\", JOptionPane.QUESTION_MESSAGE);\n\n try {\n\n // connect to server\n Socket s = new Socket(address, 9000);\n\n ObjectOutputStream w = new ObjectOutputStream(s.getOutputStream());\n ObjectInputStream r = new ObjectInputStream(s.getInputStream());\n\n Hash h = new Hash(); // hash password\n w.writeObject(new Message(ac, \"Teacher\", \"LOGIN\", 0, h.getHashCode(pw), null)); // check login status\n w.flush();\n Message m = (Message) r.readObject();\n if (m.command.equals(\"LOGIN_FAILED\")) { // display message and exit if fail\n\n JOptionPane.showMessageDialog(null, \"Login fail\", \"Message\", JOptionPane.INFORMATION_MESSAGE);\n System.exit(1);\n\n }\n\n server = address;\n peerList = (PeerList) m.peerList;\n port = (int) m.data;\n\n new Thread(new GUI()).start();\n while (initialized == false){ // wait until setup all GUI components\n\n Thread.sleep(500);\n\n }\n\n new Thread(new upload()).start();\n new Thread(new updateList()).start();\n new Thread(new download(address, 9001)).start(); // try to connect server by port 9001, 9002, 9003...\n\n } catch (Exception e) {\n\n System.exit(1);\n\n }\n\n }", "public void start() throws Exception {\n PropertiesLoader properties = new PropertiesLoader();\n String jar = properties.get(\"h2.jar.file.path\");\n String port = properties.get(\"h2.port\");\n log.info(String.format(\"Starting H2 server: %s %s\", jar, port));\n\n String[] cmdArray = {\n \"java\", \"-cp\", jar, \"org.h2.tools.Server\",\n \"-tcp\", \"-tcpPort\", port, \"-tcpAllowOthers\",\n \"-ifNotExists\"\n };\n\n log.info(\"H2 > \" + Arrays.toString(cmdArray));\n\n process = Runtime.getRuntime().exec(cmdArray);\n InputStream is = process.getInputStream();\n InputStream err = process.getErrorStream();\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n BufferedReader errReader = new BufferedReader(new InputStreamReader(err));\n List<String> msgs = new ArrayList<>();\n final CountDownLatch latch = new CountDownLatch(1);\n Thread t = new Thread(() -> {\n try {\n String line;\n String errLine;\n while (process.isAlive()) {\n line = reader.readLine();\n if (line != null) {\n log.info(\"H2 > \" + line);\n msgs.add(line);\n if (line.contains(\"TCP server running\")) {\n log.info(\"H2 Server started ...\");\n latch.countDown();\n return;\n }\n }\n errLine = errReader.readLine();\n if (errLine != null) {\n log.error(\"H2 err > \" + errLine);\n msgs.add(\"e: \" + errLine);\n }\n }\n int exitValue = process.exitValue();\n if (exitValue == 0) {\n log.info(\"H2 Server process exited OK\");\n } else {\n log.error(\"H2 Server process exited with error: \" + exitValue + \", msgs: \" + msgs);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n latch.countDown();\n }, \"H2-thread\");\n t.start();\n latch.await();\n }", "public void go(StreamModule m1, StreamModule m2) throws Exception {\n \t\tStreamHeader header = in.getHeader();\n \t\theader = m1.init(header);\n \t\theader = m2.init(header);\n \t\tout.setHeader(header);\n \n \t\tStreamFrame frame;\n \t\twhile ((frame = in.recvFrame()) != null) {\n \t\t\tframe = m1.process(frame);\n \t\t\tframe = m2.process(frame);\n \t\t\tout.sendFrame(frame);\n \t\t}\n \n \t\tm1.close();\n \t\tm2.close();\n \t}", "public void initiateConnection() {\n\t\tif (Settings.getRemoteHostname() != null) {\n\t\t\ttry {\n\t\t\t\toutgoingConnection(new Socket(Settings.getRemoteHostname(), Settings.getRemotePort()));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \" + Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort() + \" :\" + e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "private void connectServerSide( URL url ) throws IOException\n\t{\n\t\tString host = url.getHost();\n\t\tint port = url.getPort();\n\t\tif ( port == -1 )\n\t\t\tport = 554;\n\n\t\tlog.debug( \"Connecting to '\" + host + \"' \" + port );\n\n\t\t// Create TCP/IP connector.\n\t\tSocketConnector socketConnector = new SocketConnector();\n\t\tIoProtocolConnector connector = new IoProtocolConnector( socketConnector );\n\n\t\tServerSideProvider serverSideProvider = new ServerSideProvider();\n\n\t\tlog.debug( \"Created new serverSideProvider\" );\n\n\t\t// Start communication.\n\t\tlog.debug( \"Trying to connect.\" );\n\t\tserverSession = connector.connect( new InetSocketAddress( host, port ),\n\t\t\t\tserverSideProvider );\n\n\t\tlog.debug( \"Connected!\" );\n\n\t\t// Save current ProxyHandler into the ProtocolSession\n\t\tserverSession.setAttribute( \"proxySession\", this );\n\n\t\tSystem.out.println( \"Server session: \" + serverSession.getAttributeKeys() );\n\t}", "@Test\n public void remoteSendsRefusedStreamBeforeReplyHeaders() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().rstStream(3, REFUSED_STREAM);\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), false);\n try {\n stream.takeHeaders();\n Assert.fail();\n } catch (IOException expected) {\n Assert.assertEquals(\"stream was reset: REFUSED_STREAM\", expected.getMessage());\n }\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n Assert.assertEquals(2, ping.payload1);\n }", "@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n ChannelPipeline pipeline = ch.pipeline();\n\n // add HTTPS client -> proxy support\n SSLEngine engine = SSLFactory.getInstance().sslContext().createSSLEngine();\n engine.setUseClientMode(false);\n pipeline.addLast(\"ssl inbound\", new SslHandler(engine));\n\n // add handler\n InetSocketAddress remoteSocketAddress = new InetSocketAddress(directRemoteHost, directRemotePort);\n pipeline.addLast(new DirectProxyUpstreamHandler(remoteSocketAddress, true, 1048576, new RequestInterceptor(remoteSocketAddress), \" -->\"));\n\n }", "public void upgrade_2_11() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.11\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper\n\t\t\t\t\t.setRootXml(\"cyklotron-2.11.war\", \"ledge.root\", \"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.11.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.11 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "@Override\n\tpublic void onOpen( ServerHandshake handshakedata ) {\n\t\tlog.info(\"opened connection\");\n\t\t// if you plan to refuse connection based on ip or httpfields overload: onWebsocketHandshakeReceivedAsClient\n\t}", "private void handshake() {\n JsonNode helloResponse = this.readNextResponse();\n\n if (!helloResponse.has(\"hello\")) {\n throw new JsiiException(\"Expecting 'hello' message from jsii-runtime\");\n }\n\n String runtimeVersion = helloResponse.get(\"hello\").asText();\n assertVersionCompatible(JSII_RUNTIME_VERSION, runtimeVersion);\n }", "@Override\n protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {\n\n final HttpsURLConnectionImpl httpsURLConnection = (HttpsURLConnectionImpl) super.openConnection(url, proxy);\n if (\"artisan.okta.com\".equals(url.getHost()) && \"/home/amazon_aws/0oad7khqw5gSO701p0x7/272\".equals(url.getPath())) {\n\n return new URLConnection(url) {\n @Override\n public void connect() throws IOException {\n httpsURLConnection.connect();\n }\n\n public InputStream getInputStream() throws IOException {\n byte[] content = IOUtils.toByteArray(httpsURLConnection.getInputStream());\n String contentAsString = new String(content, \"UTF-8\");\n\n //System.out.println(\"########################## got stream content ##############################\");\n //System.out.println(contentAsString);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //contentAsString = contentAsString.replaceAll(\",\\\"ENG_ENABLE_SCRIPT_INTEGRITY\\\"\", \"\"); // nested SRIs?\n baos.write(contentAsString.replaceAll(\"integrity ?=\", \"integrity.disabled=\").getBytes(\"UTF-8\"));\n return new ByteArrayInputStream(baos.toByteArray());\n }\n\n public OutputStream getOutputStream() throws IOException {\n return httpsURLConnection.getOutputStream();\n }\n\n };\n\n } else {\n return httpsURLConnection;\n }\n }", "@Test\n\tpublic void testGetCACerts_simpleEnroll_TLSv6() {\n\t\tSystem.out.println(\"Beginning TC2047\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tX509Certificate newCert = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\t// ipv6\n\t\tec.setServerName(\"ip6-localhost\");\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\t\t\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\t\n\t\t/*\n\t\t * OK, we have the new trust anchor. Let's start a new session\n\t\t * using this TA and attempt a simple enroll.\n\t\t */\n\t\tec = new ESTClient();\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(newCACerts);\n\t\t// ipv6\n\t\tec.setServerName(\"ip6-localhost\");\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t// get a good cert to use for tls credentials\n\t\tmyCert1 = getTrustedCert();\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authTLS, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException | CertificateException | IOException\n\t\t\t\t| EncodingException | EnrollException\n\t\t\t\t| EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertNotNull(newCert);\n\t\tSystem.out.println(\"Ending TC2047\");\n\t}" ]
[ "0.6452769", "0.5835286", "0.56072587", "0.5582879", "0.5578654", "0.54487073", "0.5443237", "0.5420704", "0.5367233", "0.5337619", "0.5301033", "0.527952", "0.52162075", "0.5176833", "0.5124579", "0.51178247", "0.50875634", "0.50362694", "0.5021053", "0.5004174", "0.49827933", "0.4969636", "0.49391803", "0.4937569", "0.4926691", "0.49225715", "0.4919041", "0.49046105", "0.48862028", "0.48640573", "0.4863346", "0.48337168", "0.4828226", "0.48210776", "0.48189923", "0.48186225", "0.48124474", "0.4808796", "0.48058704", "0.47979763", "0.47944087", "0.47873837", "0.47779232", "0.4774109", "0.47701597", "0.47701505", "0.47613773", "0.47610578", "0.4760231", "0.47595686", "0.47560742", "0.47519326", "0.47508597", "0.4748155", "0.47421542", "0.47395462", "0.4739492", "0.47394347", "0.47344172", "0.47174782", "0.47115058", "0.47110388", "0.47056445", "0.4696487", "0.46853137", "0.46831775", "0.46700606", "0.46642935", "0.46403304", "0.46340165", "0.4633158", "0.46270406", "0.4625858", "0.46216336", "0.46190318", "0.46169674", "0.46147877", "0.4611823", "0.46061772", "0.46035206", "0.46028754", "0.45969796", "0.45926046", "0.45890608", "0.45882183", "0.45877105", "0.45865226", "0.45799685", "0.4576071", "0.45745498", "0.45733127", "0.45721608", "0.4566268", "0.4559317", "0.4558427", "0.45551795", "0.45531127", "0.45506814", "0.45506415", "0.4550218" ]
0.76129735
0
Start the connection and simply assume the protocol to already be negotiated.
private void startPlaintext(final Http2Codec http2Codec) { connect(new ChannelInitializer<SocketChannel>() { @Override public void initChannel(SocketChannel ch) throws Exception { ch.pipeline().addLast(http2Codec); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "@ Override\r\n\tpublic void start(Connection connection)\r\n\t{\n\r\n\t}", "private void startConnection() throws IOException {\n bos = new BufferedOutputStream(socket.getOutputStream(), 65536);\n\n byte[] key = new byte[16];\n Random random = new Random();\n random.nextBytes(key);\n String base64Key = Base64.encodeBase64String(key);\n\n byte[] handshake = createHandshake(base64Key);\n bos.write(handshake);\n bos.flush();\n\n InputStream inputStream = socket.getInputStream();\n verifyServerHandshake(inputStream, base64Key);\n\n writerThread.start();\n\n notifyOnOpen();\n\n bis = new BufferedInputStream(socket.getInputStream(), 65536);\n read();\n }", "public static void openConnection() {\n\t\tarcade.startConnection();\n\t}", "public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}", "public void start() {\n if (Log.isLoggingEnabled())\n log.log(\"Start deadlock detection protocol\");\n }", "public void initiateConnection() {\n\t\tif (Settings.getRemoteHostname() != null) {\n\t\t\ttry {\n\t\t\t\toutgoingConnection(new Socket(Settings.getRemoteHostname(), Settings.getRemotePort()));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \" + Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort() + \" :\" + e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public void start() {\n gateway.openConnection();\n }", "@Override\n public void start() {\n long originalSendNextNumber = sendNextNumber;\n sendNextNumber += 1L;\n\n // Send the first part of the handshake\n currentState = SYN_SENT;\n sendWithResend(createPacket(\n 0, // Data size (byte)\n originalSendNextNumber, // Seq number\n 0, // Ack number\n false, // ACK\n true, // SYN\n false // ECE\n ));\n\n // System.out.println(\"3-WAY HANDSHAKE: 0. Sender sent SYN.\");\n\n // Preserve space as this field will never be used\n this.selectiveAckSet = null;\n\n }", "public synchronized boolean start(){\n \n\t\t/**\n\t\t * CONNECT TO SERVER\n\t\t */\n\t\tboolean connection = connectToServer(oml_server);\n \n\t\t/**\n\t\t * CREATE THE HEADER\n\t\t */\n\t\tcreate_head();\n \n\t\t/**\n\t\t * SEND THE HEADER\n\t\t */\n\t\tboolean injection = inject_head();\n\t\t\n\t\tif( connection && injection ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public void startSession() throws UnsupportedEncodingException\r\n {\n clientReader.setStopped(false);\r\n shellOutputWriter.setStopped(false);\r\n // shellErrorWriter.setStopped(false);\r\n shellExitListener.setStopped(false);\r\n tunnelsHandler.getConnection().setControlInputStream(connection.getTunnelControlInputStream());\r\n tunnelsHandler.getConnection().setControlOutputStream(connection.getTunnelControlOutputStream());\r\n tunnelsHandler.getConnection().setDataInputStream(connection.getMultiplexedConnectionInputStream());\r\n tunnelsHandler.getConnection().setDataOutputStream(connection.getMultiplexedConnectionOutputStream());\r\n // socksTunnelsHandler.getConnection().setControlOutputStream(connection.getSocksControlOutputStream());\r\n // socksTunnelsHandler.getConnection().setControlInputStream(connection.getSocksControlInputStream());\r\n // socksTunnelsHandler.getConnection().setDataInputStream(connection.getMultiplexedConnectionInputStream());\r\n // socksTunnelsHandler.getConnection().setDataOutputStream(connection.getMultiplexedConnectionOutputStream());\r\n pingService.setInputStream(connection.getPingInputStream());\r\n pingService.setOutputStream(connection.getPingOutputStream());\r\n // tunnelHandler.getConnection().start();\r\n }", "void startConnectionReader()\n {\n if (! synchronousMode)\n {\n connectionReader.start();\n }\n }", "protected void continueProtocol()\n {\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n try\n {\n key.setProtocolReadyOps(SelectionKey.OP_READ | SelectionKey.OP_WRITE);\n key.interestProtocol(SelectionKey.OP_READ | SelectionKey.OP_WRITE, 0);\n\n // wakeup the selector so we can continue to run the protocol\n key.selector().wakeup();\n }\n catch (CancelledKeyException e) {}\n }\n }", "public void startListeningForConnection() {\n startInsecureListeningThread();\n }", "private void attemptToConnect() {\n LOG.warn(\"Attempting to connect....\");\n \n if (// No connection configuration\n getConnectionConfiguration() == null &&\n (getServerHostname() == null || getServerPort() == 0 ||\n getServiceName() == null || getFromAddress() == null ||\n getPassword() == null || getResource() == null)\n \n ||\n \n // Already logged in.\n getConnection() != null && getConnection().isAuthenticated()) {\n \n return;\n }\n \n try {\n if (getConnectionConfiguration() == null) {\n setConnectionConfiguration(new ConnectionConfiguration(\n getServerHostname(), getServerPort(), getServiceName()));\n }\n\n connect();\n }\n catch (Throwable t) {\n LOG.error(t);\n }\n }", "public synchronized void startConnection ()\r\n\t{\r\n \t\tsynchronized (this)\r\n \t\t{\r\n \t\t\tif (_roboCOM!=null) return;\r\n\t\t\t\r\n\t\t\tuitoken++;\r\n\t\t\t_roboCOM = new TCPClient (MsgQueue,cm,uitoken);\r\n\r\n\t\t\t// debug parameters\r\n\t\t\t_roboCOM.msgHello=\"Start Connection ACCE\";\r\n\t\t\t\t\t\t\t\r\n\t \t \tnew Thread (_roboCOM).start();\r\n \t\t}\r\n\t}", "private void initialize(final IOSession protocolSession) throws IOException {\n this.socketTimeout = this.session.getSocketTimeout();\n if (handshakeTimeout != null) {\n this.session.setSocketTimeout(handshakeTimeout);\n }\n\n this.session.getLock().lock();\n try {\n if (this.status.compareTo(Status.CLOSING) >= 0) {\n return;\n }\n switch (this.sslMode) {\n case CLIENT:\n this.sslEngine.setUseClientMode(true);\n break;\n case SERVER:\n this.sslEngine.setUseClientMode(false);\n break;\n }\n if (this.initializer != null) {\n this.initializer.initialize(this.targetEndpoint, this.sslEngine);\n }\n this.handshakeStateRef.set(TLSHandShakeState.HANDSHAKING);\n this.sslEngine.beginHandshake();\n\n this.inEncrypted.release();\n this.outEncrypted.release();\n doHandshake(protocolSession);\n updateEventMask();\n } finally {\n this.session.getLock().unlock();\n }\n }", "@Override\n\tprotected void runProtocol() throws AtmException\n\t{\n\t\ttrace(\"runProtocol()\");\n\t\twhileConnected();\n\t}", "public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }", "@Override\n protected void startConnection() throws CoreException {\n }", "protected void doOpenConnection() throws Exception {\n connection.open\n (conn_route, request_spec.context, request_spec.params);\n }", "public void makeConnection() {\n\t\t// make a socket, output stream, and try connecting to the server\n\t\twhile (!connection) {\n\t\t\ttry {\n\t\t\t\tsocket = new Socket(address, port);\n\t\t\t\toutStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\t\tconnection = true;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void connect() {\n synchronized (globalLock) {\n if (isRunning) {\n throw new IllegalStateException(\"WebSocketClient is not reusable\");\n }\n\n this.isRunning = true;\n createAndStartConnectionThread();\n }\n }", "@Override // javax.net.ssl.SSLSocket\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void startHandshake() {\n /*\n // Method dump skipped, instructions count: 634\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C58602mC.startHandshake():void\");\n }", "@Override\n public void run() {\n String id = (identifier != \"\") ? identifier : socket.getInetAddress().toString();\n\n LOGGER.info(\"Got connection from \" + id + \".\");\n peerInput = new PeerInput(socket);\n peerInput.start();\n peerOutput = new PeerOutput(socket);\n initialized = true;\n LOGGER.info(\"Initialized connection \" + id);\n peerOutput.run();\n }", "public static void connect() {\n \t\tconnPool.start();\n \t}", "public void start() {\n\t\tconnection.start((sender, message) -> message.accept(new Visitor(sender)));\n\t\tloadData();\n\t}", "private void openConnection () {\n String[] labels = {\"Host :\", \"Port :\"};\n String[] initialValues = {\"localhost\", \"1111\"};\n StandardDialogClient openHandler = new StandardDialogClient () {\n\t@Override\n\tpublic void dialogDismissed (StandardDialog d, int code) {\n\t try {\n\t InputDialog inputD = (InputDialog)d;\n\t if (inputD.wasCancelled ()) return;\n\t String[] results = inputD.getResults ();\n\t String host = results[0];\n\t String port = results[1];\n\t TwGateway connection =\n\t (TwGateway)TwGateway.openConnection (host, port);\n\t // The following call will fail if the G2 is secure.\n\t connection.login();\n\t setConnection (connection);\n\t } catch (Exception e) {\n\t new WarningDialog (null, \"Error During Connect\", true, e.toString (), null).setVisible (true);\n\t }\n\t}\n };\t \n\n new ConnectionInputDialog (getCurrentFrame (), \"Open Connection\",\n\t\t\t\t true, labels, initialValues,\n\t\t\t\t (StandardDialogClient) openHandler).setVisible (true);\n }", "protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}", "@ReactMethod\n public void start() {\n ChirpError error = chirpConnect.start();\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n } else {\n isStarted = true;\n }\n }", "private void startKlient() {\n\t\tSystem.out.println(\"Trying to connect\");\r\n\t\ttry (Socket serverkontakt = new Socket(\"127.0.0.1\", 8000);\r\n\t\t// Step 2 - obtaining input/output streams\r\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(\r\n\t\t\t\t\t\tserverkontakt.getOutputStream())) {\r\n\t\t\toutput.flush();\r\n\t\t\tSystem.out.println(\"Connected\");\r\n\t\t\tsendObject(output);\r\n\t\t} catch (EOFException eofException) {\r\n\t\t\tSystem.out.println(\"Server closing connection\\n\");\r\n\t\t} catch (IOException ioException) {\r\n\t\t\tSystem.out.println(\"Problem with server connection\\n\");\r\n\t\t}\r\n\t}", "private void setupAndConnect() {\n URL url = getUrl(this.endpointUrl);\n connection = null;\n try {\n connection = (HttpURLConnection) url.openConnection();\n HttpURLConnection.setFollowRedirects(true);\n } catch (IOException e) {\n LOG.severe(\"Error connecting to Url : \" + url);\n LOG.severe(e.toString());\n }\n }", "private void openConnection(){}", "@Override\n\tpublic void testStartSubnegotiation() {\n\n\t\tint resp1[] = opthand1.startSubnegotiationLocal();\n\t\tint resp2[] = opthand1.startSubnegotiationRemote();\n\n\t\tassertEquals(resp1, null);\n\t\tassertEquals(resp2, null);\n\t}", "void handshake() throws SyncConnectionException;", "@Override\n protected void connectionEstablished()\n {\n peer.resetConnectionClosed();\n\n // send our handshake directly as it doesn't fit into peer message\n // and there is always space in send buffer on new connection\n //enqueue(pmCache.handshake(torrent.getTorrentId(), torrent.getClientId()));\n }", "public void connect() {\n try {\n socket = connectToBackEnd();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "private void InitiateRelevantActiveTransaction() {\n try {\n /**\n * Create a client socket with the host,\n * port, and timeout information.\n */\n mSocket = new Socket();\n mSocket.bind(null);\n mSocket.connect((new InetSocketAddress(mPeer.mIPAddr, Constants.WELCOME_SOCKET_PORT)), 3000);\n } catch (UnknownHostException e) {\n e.printStackTrace();\n return;\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n\n if (mSocket == null) {\n return;\n }\n\n switch (mQueryCode) {\n case Constants.CONNECTION_CODE_DISCOVER: {\n ActiveDiscoveryProcedure();\n break;\n }\n }\n\n }", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "private void createAndStartConnectionThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n boolean success = webSocketConnection.createAndConnectTCPSocket();\n if (success) {\n webSocketConnection.startConnection();\n }\n } catch (Exception e) {\n synchronized (globalLock) {\n if (isRunning) {\n webSocketConnection.closeInternal();\n\n onException(e);\n\n if (e instanceof IOException && automaticReconnection) {\n createAndStartReconnectionThread();\n }\n }\n }\n }\n }\n }).start();\n }", "public void startConnection(VpnProfile profile) {\n LogUtil.i(\"startConnection \"+profile.getName());\n mCurrentProfile = profile;\n mWorkHandler.post(new ConnectJob());\n }", "private void initProtocol() {\n\t\tprotocol = new MixingProtocol();\n\n\t\tRectangleMixingStep step1 = new RectangleMixingStep(1.25, true, true);\n\t\tRectangleMixingStep step2 = new RectangleMixingStep(2.50, true, false);\n\t\tRectangleMixingStep step3 = new RectangleMixingStep(3.75, false, true);\n\t\tRectangleMixingStep step4 = new RectangleMixingStep(4.0, false, false);\n\n\t\tprogram = new ArrayList<MixingStep>();\n\t\tprogram.add(step1);\n\t\tprogram.add(step2);\n\t\tprogram.add(step3);\n\t\tprogram.add(step4);\n\n\t\tprotocol.setProgram(program);\n\t}", "private void doHandshake()throws Exception {\n\t\tHttpClient httpClient = new HttpClient();\n\t\t// Here set up Jetty's HttpClient, for example:\n\t\t// httpClient.setMaxConnectionsPerDestination(2);\n\t\thttpClient.start();\n\n\t\t// Prepare the transport\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\tClientTransport transport = new LongPollingTransport(options, httpClient);\n\n\t\t// Create the BayeuxClient\n\t\tClientSession client = new BayeuxClient(\"http://localhost:8080/childrenguard-server/cometd\", transport);\n\n\t\tclient.handshake(null,new ClientSessionChannel.MessageListener()\n\t\t{\n\t\t public void onMessage(ClientSessionChannel channel, Message message)\n\t\t {\n\t\t \tSystem.out.println(\"fail to connect to server.\");\n\t\t if (message.isSuccessful())\n\t\t {\n\t\t \tSystem.out.println(message);\n\t\t // Here handshake is successful\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t// Here set up the BayeuxClient, for example:\n\t\t//client.getChannel(Channel.META_CONNECT).addListener(new ClientSessionChannel.MessageListener() { });\n\n\t\t\n\t}", "void connect() throws UnsupportedProtocolVersionException {\n if (isShutdown) return;\n\n List<Host> hosts = new ArrayList<Host>(cluster.metadata.getContactPoints());\n // shuffle so that multiple clients with the same contact points don't all pick the same control\n // host\n Collections.shuffle(hosts);\n setNewConnection(reconnectInternal(hosts.iterator(), true));\n }", "public static void doConnect() {\r\n\t\tlogger.info(\"Connecting to server......\");\r\n\t\tChannelFuture future = null;\r\n\t\ttry {\r\n\t\t\tfuture = bootstrap.connect(new InetSocketAddress(host, port));\r\n\t\t\tfuture.addListener(channelFutureListener);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t// future.addListener(channelFutureListener);\r\n\t\t\tlogger.warn(\"Closed connection.\");\r\n\t\t}\r\n\r\n\t}", "private void startClientConnection() {\r\n\t\t\t\r\n\t//\tStringBuilder sbreq = new StringBuilder();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*making connection request*/\r\n\t\t\tclientsoc = new Socket(ip,port);\r\n\t\t\t\r\n\t\t\t/*Input and output streams for data sending and receiving through client and server sockets.*/\r\n\t\t\tdis = new DataInputStream(clientsoc.getInputStream());\t\r\n\t\t\tdos = new DataOutputStream(clientsoc.getOutputStream());\r\n\t\t\t\r\n\t\t\tStringBuilder sbconnreq = new StringBuilder();\r\n\r\n\t\t\t/*Building the Http Connection Request and passing Client name as body. Thus the Http Header\r\n\t\t\tare encoded around the client name data.*/\r\n\t\t\tsbconnreq.append(\"POST /\").append(\"{\"+clientname+\"}\").append(\"/ HTTP/1.1\\r\\n\").append(host).append(\"\\r\\n\").\r\n\t\t\tappend(userAgent).append(\"\\r\\n\").append(contentType).append(\"\\r\\n\").append(contentlength).append(clientname.length()).append(\"\\r\\n\").\r\n\t\t\tappend(date).append(new Date()).append(\"\\r\\n\");\r\n\t\t\t\r\n\t\t\tdos.writeUTF(sbconnreq.toString());\r\n\r\n\t\t\totherusers = new ArrayList<>(10);\r\n\t\t\tusertimestamp = new HashMap<>(10);\r\n\t\t\tJOptionPane.showMessageDialog(null, \"You have logged in. You can start Chatting: \" + clientname);\r\n\t\t\tconnected = true;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "private final static void setup() {\r\n\r\n supportedSchemes = new SchemeRegistry();\r\n\r\n // Register the \"http\" and \"https\" protocol schemes, they are\r\n // required by the default operator to look up socket factories.\r\n SocketFactory sf = PlainSocketFactory.getSocketFactory();\r\n supportedSchemes.register(new Scheme(\"http\", sf, 80));\r\n sf = SSLSocketFactory.getSocketFactory();\r\n supportedSchemes.register(new Scheme(\"https\", sf, 80));\r\n\r\n // prepare parameters\r\n HttpParams params = new BasicHttpParams();\r\n HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\r\n HttpProtocolParams.setContentCharset(params, \"UTF-8\");\r\n HttpProtocolParams.setUseExpectContinue(params, true);\r\n HttpProtocolParams.setHttpElementCharset(params, \"UTF-8\");\r\n HttpProtocolParams.setUserAgent(params, \"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/2008052906 Firefox/3.0\");\r\n defaultParameters = params;\r\n }", "private void openConnection() throws IOException, CorruptedPacketException {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n Future futureResult = executorService.submit(new InitPacketReceiver(this));\n int timesSent = 0;\n while (!socket.isClosed() && connectionId == null && timesSent < 20) {\n this.sendInitPacket(socket, address, port);\n ++timesSent;\n try {\n futureResult.get(100, TimeUnit.MILLISECONDS);\n } catch (CancellationException e) {\n } catch (InterruptedException e) {\n } catch (ExecutionException e) {\n } catch (TimeoutException e) {\n if (connectionId == null) {\n System.err.println(\"Opening packet has been lost, sending a new one.\");\n }\n }\n }\n\n if (timesSent >= 20) {\n socket.close();\n System.out.printf(\"Could not connect to Karel on %s:%d\\n\", address.getHostAddress(), port);\n }\n futureResult.cancel(true);\n executorService.shutdown();\n\n }", "public void connect() {}", "abstract public void openConnection();", "public boolean setupStartSession() { \n\t\tthis.showNamedMessage(\"Initiating session with server...\");\n\t\ttry {\n\t\t\twhile (!this.requestSession()) {\n\t\t\t\ttextUI.getBoolean(\"Try again?\");\n\t\t\t}\n\t\t} catch (IOException | PacketException | UtilDatagramException e) {\n\t\t\ttextUI.showError(\"Something went wrong while starting the session: \" \n\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t}\n\t\t\n\t\treturn this.sessionActive;\n\t}", "public void run() {\n // Initial connect request comes in\n Request request = getRequest();\n\n if (request == null) {\n closeConnection();\n return;\n }\n\n if (request.getConnectRequest() == null) {\n closeConnection();\n System.err.println(\"Received invalid initial request from Remote Client.\");\n return;\n }\n\n ObjectFactory objectFactory = new ObjectFactory();\n Response responseWrapper = objectFactory.createResponse();\n responseWrapper.setId(request.getId());\n responseWrapper.setSuccess(true);\n responseWrapper.setConnectResponse(objectFactory.createConnectResponse());\n responseWrapper.getConnectResponse().setId(id);\n\n // Return connect response with our (statistically) unique ID.\n if (!sendMessage(responseWrapper)) {\n closeConnection();\n System.err.println(\"Unable to respond to connect Request from remote Client.\");\n return;\n }\n\n // register our thread with the server\n Server.register(id, this);\n\n // have handler manage the protocol until it decides it is done.\n while ((request = getRequest()) != null) {\n\n Response response = handler.process(this, request);\n\n if (response == null) {\n continue;\n }\n\n if (!sendMessage(response)) {\n break;\n }\n }\n\n // client is done so thread can be de-registered\n if (handler instanceof IShutdownHandler) {\n ((IShutdownHandler) handler).logout(Server.getState(id));\n }\n Server.unregister(id);\n\n // close communication to client.\n closeConnection();\n }", "public void start()\r\n {\r\n System.out.print(\"Server host? [localhost]: \");\r\n String host = scanner.nextLine().trim();\r\n if(host.length() == 0)\r\n {\r\n host = \"localhost\";\r\n }\r\n \r\n System.out.print(\"Server port? [2345]: \");\r\n String portString = scanner.nextLine().trim();\r\n if(portString.length() == 0)\r\n {\r\n portString = \"2345\";\r\n }\r\n int port = Integer.parseInt(portString);\r\n //trying to establish connection through the socket\r\n try(Socket socket = new Socket(host, port))\r\n {\r\n //creating i/o streams\r\n outputStream = new ObjectOutputStream(socket.getOutputStream());\r\n HelloRequest request = new HelloRequest();\r\n request.setName(\"world\");\r\n outputStream.writeObject(request);\r\n inputStream = new ObjectInputStream(socket.getInputStream());\r\n inputStream.readObject();\r\n System.out.println(\"Server connected.\");\r\n \r\n // login.\r\n while(!this.login())\r\n {\r\n ;\r\n }\r\n \r\n // Executing users input\r\n options:\r\n while(true)\r\n {\r\n try\r\n {\r\n int option = this.readOption(\"1. Create a game 2. Set commands 3. Get high scores 4. Delete a game 5. Start a game 6. Show a game 7. Logout : \", 1, 7);\r\n switch(option)\r\n {\r\n case 1: this.createGame(); break;\r\n case 2: this.setCommands(); break;\r\n case 3: this.getHighScores(); break;\r\n case 4: this.deleteGame(); break;\r\n case 5: this.startGame(); break;\r\n case 6: this.showGame(); break;\r\n case 7: this.logout(); break options;\r\n }\r\n }catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }catch(Exception e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n }", "private void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(Server.ADDRESS, Server.PORT_NUMBER);\n\t\t\tthis.oos = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tthis.ois = new ObjectInputStream(socket.getInputStream());\n\t\t\tServerListener serverlistener = new ServerListener();\n\t\t\tserverlistener.start();\n\t\t\tRequest request = new Request(RequestCode.START_DOCUMENT_STREAM);\n\t\t\trequest.setUsername(user.getUsername());\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "protected void connectionEstablished() {}", "public void establishSocketConnection() {\n\t\ttry {\n\t\t\tsocket = new Socket(serverIP, serverPort);\n\t\t\tlogger.info(\"Connection with JSON-RPC server opened at local endpoint \" + socket.getLocalAddress().getHostAddress() + \":\" + socket.getLocalPort());\n\t\t\t// create a writer to send JSON-RPC requests to the JSON-RPC server\n\t\t\twriter = new OutputStreamWriter(socket.getOutputStream(), \"utf-8\");\n\t\t\t// create a JsonReader object to receive JSON-RPC response\n\t\t\tjsonReader = new JsonReader(new InputStreamReader(socket.getInputStream(), \"utf-8\"));\n\t\t} catch (UnknownHostException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface Protocol {\n\n void startup();\n}", "@Override\n public void start() throws IOException\n {\n try\n {\n InetSocketAddress address = new InetSocketAddress(config.getHost(), config.getPort());\n sock = new Socket();\n sock.setSoTimeout(config.getReadTimeout());\n sock.connect(address, config.getReadTimeout());\n out = new ObjectOutputStream(new BufferedOutputStream(sock.getOutputStream()));\n out.flush();\n in = new ObjectInputStream(new BufferedInputStream(sock.getInputStream()));\n }\n catch (ConnectException ce)\n {\n log.info(\"Unable to connect to TCP socket on interface \" + config.getHost() + \" and port \" + config.getPort());\n throw ce;\n }\n }", "public void connect() {\n if (isShutdown)\n return;\n\n setNewConnection(reconnectInternal());\n }", "public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n mysqlUseUnicode);\n }\n catch (IOException e) {\n Log.error(e);\n }\n }\n }", "private void initialize(){\n\t\ttry\n\t\t{\n\t\t\tString[] packet = setPacket();\n\t\t\tif (validatePacket(packet))\n\t\t\t{\n\t\t\t\tsend(packet);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(\"Something went wrong...\");\n\t\t\tresetClient();\n\t\t}\n\t}", "@Override\n\tpublic void teleopInit() {\n\t\tbeenEnabled = true;\n\t\tif(!socket){\n\t\t\tlogger.startSocket(); socket = true;\n\t\t}\n\t}", "public synchronized void start() {\n if (D) Log.d(TAG, \"start\");\n\n // Cancel any thread attempting to make a connection\n if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;}\n\n // Cancel any thread currently running a connection\n if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;}\n\n setState(STATE_LISTEN);\n }", "private void start() {\n windowForCommunication.append(\"Awaiting client connection...\" + \"\\n\");\n\n //check if client is connected, if yes, add the following text to the chat window, then enable communication\n if (clientSocket.isConnected()) {\n windowForCommunication.append(\"Connection is established. Type 'stopconnection' to stop connection\" + \"\\n\");\n textField.setEditable(true);\n }\n\n //Begin communication, end if \"stopconnection\" is typed by Server/Client. If it is, call closeStreams method.\n try {\n String userInput;\n\n while((userInput = input.readLine()) != null) {\n if(userInput.contains(\"stopconnection\")){\n closeStreams();\n break;\n }\n\n displayMessage(userInput + \"\\n\");\n\n }\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }", "public Peer start() throws IOException {\n\t\tboolean isBehindFirewallSet = false;\n\t\tif (behindFirewall == null) {\n\t\t\tbehindFirewall = false;\n\t\t} else {\n\t\t\tisBehindFirewallSet = true;\n\t\t}\n\n\t\tboolean isTcpPortSet = false;\n\t\tif (tcpPort == -1) {\n\t\t\ttcpPort = Ports.DEFAULT_PORT;\n\t\t} else {\n\t\t\tisTcpPortSet = true;\n\t\t}\n\t\t\n\t\tboolean isUdpPortSet = false;\n\t\tif (udpPort == -1) {\n\t\t\tudpPort = Ports.DEFAULT_PORT;\n\t\t} else {\n\t\t\tisUdpPortSet = true;\n\t\t}\n\t\t\n\t\tif (channelServerConfiguration == null) {\n\t\t\tchannelServerConfiguration = createDefaultChannelServerConfiguration();\n\t\t} \n\t\t\n\t\t//post config\n\t\tif(isBehindFirewallSet) {\n\t\t\tchannelServerConfiguration.behindFirewall(behindFirewall);\n\t\t}\n\t\tif(isTcpPortSet || isUdpPortSet) {\n\t\t\tchannelServerConfiguration.ports(new Ports(tcpPort, udpPort));\n\t\t}\n\t\t\n\t\tif(tcpPortForwarding == -1 && udpPortForwarding == -1) {\n\t\t\tchannelServerConfiguration.portsForwarding(new Ports());\n\t\t} else {\n\t\t\tchannelServerConfiguration.portsForwarding(new Ports(tcpPortForwarding, udpPortForwarding));\n\t\t}\n\t\t\n\t\tif (channelClientConfiguration == null) {\n\t\t\tchannelClientConfiguration = createDefaultChannelClientConfiguration();\n\t\t}\n\t\tif (keyPair == null) {\n\t\t\tkeyPair = EMPTY_KEY_PAIR;\n\t\t}\n\t\tif (p2pID == -1) {\n\t\t\tp2pID = 1;\n\t\t}\n\t\t\n\t\t\n\t\tif (bindings == null) {\n\t\t\tbindings = new Bindings();\n\t\t} else {\n\t\t\tchannelServerConfiguration.bindings(bindings);\n\t\t\tchannelClientConfiguration.bindings(bindings);\n\t\t}\n\t\tif (peerMap == null) {\n\t\t\tpeerMap = new PeerMap(new PeerMapConfiguration(peerId));\n\t\t}\n\n\t\tif (masterPeer == null && scheduledExecutorService == null) {\n\t\t\tscheduledExecutorService = Executors.newScheduledThreadPool(1);\n\t\t}\n\n\t\tif(sendBehavior == null) {\n\t\t\tsendBehavior = new DefaultSendBehavior();\n\t\t}\n\t\t\n\t\tfinal PeerCreator peerCreator;\n\t\tif (masterPeer != null) {\n\t\t\tpeerCreator = new PeerCreator(masterPeer.peerCreator(), peerId, keyPair);\n\t\t} else {\n\t\t\tpeerCreator = new PeerCreator(p2pID, peerId, keyPair, channelServerConfiguration,\n\t\t\t channelClientConfiguration, scheduledExecutorService, sendBehavior);\n\t\t}\n\n\t\tfinal Peer peer = new Peer(p2pID, peerId, peerCreator);\n\t\t//add shutdown hook to master peer\n\t\tif (masterPeer != null) {\n\t\t\tmasterPeer.addShutdownListener(new Shutdown() {\n\t\t\t\t@Override\n\t\t\t\tpublic BaseFuture shutdown() {\n\t\t\t\t\treturn peer.shutdown();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tPeerBean peerBean = peerCreator.peerBean();\n\t\t\n\t\tpeerBean.addPeerStatusListener(peerMap);\n\t\t\n\t\tConnectionBean connectionBean = peerCreator.connectionBean();\n\n\t\tpeerBean.peerMap(peerMap);\n\t\tpeerBean.keyPair(keyPair);\n\n\t\tif (bloomfilterFactory == null) {\n\t\t\tpeerBean.bloomfilterFactory(new DefaultBloomfilterFactory());\n\t\t}\n\n\t\tif (broadcastHandler == null) {\n\t\t\tbroadcastHandler = new StructuredBroadcastHandler();\n\t\t}\n\t\tbroadcastHandler.init(peer);\n\t\t\n\t\t// set/enable RPC\n\n\t\tif (isEnableHandShakeRPC()) {\n\t\t\tPingRPC pingRPC = new PingRPC(peerBean, connectionBean);\n\t\t\tpeer.pingRPC(pingRPC);\n\t\t}\n\t\t\n\t\tif (isEnableQuitRPC()) {\n\t\t\tQuitRPC quitRPC = new QuitRPC(peerBean, connectionBean);\n\t\t\tquitRPC.addPeerStatusListener(peerMap);\n\t\t\tpeer.quitRPC(quitRPC);\n\t\t}\n\n\t\tif (isEnableNeighborRPC()) {\n\t\t\tNeighborRPC neighborRPC = new NeighborRPC(peerBean, connectionBean);\n\t\t\tpeer.neighborRPC(neighborRPC);\n\t\t}\n\n\t\tif (isEnableDirectDataRPC()) {\n\t\t\tDirectDataRPC directDataRPC = new DirectDataRPC(peerBean, connectionBean);\n\t\t\tpeer.directDataRPC(directDataRPC);\n\t\t}\n\n\t\tif (isEnableBroadcast()) {\n\t\t\tBroadcastRPC broadcastRPC = new BroadcastRPC(peerBean, connectionBean, broadcastHandler);\n\t\t\tpeer.broadcastRPC(broadcastRPC);\n\t\t}\n\t\t\n\t\tif (isEnableRouting() && isEnableNeighborRPC()) {\n\t\t\tDistributedRouting routing = new DistributedRouting(peerBean, peer.neighborRPC());\n\t\t\tpeer.distributedRouting(routing);\n\t\t}\n\n\t\tif (maintenanceTask == null && isEnableMaintenance()) {\n\t\t\tmaintenanceTask = new MaintenanceTask();\n\t\t}\n\n\t\tif (maintenanceTask != null) {\n\t\t\tmaintenanceTask.init(peer, connectionBean.timer());\n\t\t\tmaintenanceTask.addMaintainable(peerMap);\n\t\t}\n\t\tpeerBean.maintenanceTask(maintenanceTask);\n\n\t\t\t\t\n\t\tfor (PeerInit peerInit : toInitialize) {\n\t\t\tpeerInit.init(peer);\n\t\t}\n\t\t\n\t\treturn peer;\n\t}", "public void openConnection() {\n System.out.println(\"Opening connection...\");\n\n try {\n String HOST = \"192.168.4.1\";\n int PORT = 2323;\n connectionSocket = new Socket(HOST, PORT);\n connectionSocket.setTcpNoDelay(true);\n\n writer = new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(connectionSocket.getOutputStream())));\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n\n System.out.println(\"openConnection(): Success\");\n return;\n } catch (UnknownHostException e) {\n System.out.println(\"UnknownHostException at openConnection()\");\n } catch (IOException e) {\n System.out.println(\"IOException at openConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at openConnection()\");\n System.out.println(e.toString());\n }\n\n System.out.println(\"Failed to connect\");\n }", "boolean startNetwork() throws IOException;", "public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}", "public int initConnect(final Integer cmdId) throws JDEException {\n\t\n JDE.signal(procID, MESSAGE, \"initSIOConnect: starting standard I/O handshake.\", QUOTE);\n\t\n ServerSocket ss = null;\n try {\n ss = new ServerSocket(0);\n } catch (IOException ex) {\n throw new JDEException(\"Unable to create a server socket\");\n }\n\n final ServerSocket sstmp = ss;\n final int port = ss.getLocalPort();\n\n standardIOConnectThread = new Thread(\"Standard I/O Thread for App #\"+procID) {\n public void run() {\n try {\n sstmp.setSoTimeout(15000);\n\n // Note!!! Added to solve initial hang up problem\n JDE.commandResult(cmdId, String.valueOf(port), CMD_OK, NOQUOTE);\n\t\t\t\n JDE.signal(procID, MESSAGE, \"Debugger waiting for Emacs to connect to app SIO port \" +\n port + \".\", QUOTE);\n\t\t\t\n m_sioSocket = sstmp.accept();\n sstmp.close();\n initTransport();\n } catch (IOException ex) {\n JDE.signal(procID, ERROR, \"Gave up waiting for Emacs to connect to SIO port: \" + port, QUOTE);\n } catch (SecurityException ex1) {\n JDE.signal(procID, ERROR, \"Security exception occurred while connecting to app SIO port \" +\n port, QUOTE);\n }\n }\n };\n\n JDE.signal(procID, MESSAGE, \"initSIOConnect: starting SIO connect thread.\", QUOTE);\n standardIOConnectThread.start();\n return port;\n }", "public DuckSourceRemote initialize() throws Exception;", "public void Connect() {\n run = new Thread(\"Connect\") {\n @Override\n public void run() {\n running = true;\n try {\n server = new ServerSocket(9080);\n waitingForConnection();\n } catch (IOException ex) {\n Logger.getLogger(Dashboard.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n }\n };\n run.start();\n }", "@Override\n\tpublic boolean connect() {\n\t\treturn false;\n\t}", "private void start_Connexion()throws UnknownHostException, IOException{\n \tsocket = new Socket(IP,num_Socket);\n \tout = new ObjectOutputStream(socket.getOutputStream());\n \tin = new ObjectInputStream(socket.getInputStream());\n \t\n }", "public void connect() throws ConnectionFailedException\n {\n isConnected = true;\n }", "@Override\n\tpublic SwimConnection createInstance() {\n\t\tSwimConnection connection = null;\n\t\t\n\t\tif (this.hasSpecification()) {\n\t\t\tif (this.getSpecification().getId().equals(Specification.CONNECTION_SWIM_SIMULATED_ID)) {\n\t\t\t\tSimulatedSwimConnectionProperties properties = (SimulatedSwimConnectionProperties) this.getSpecification().getProperties();\n\t\t\t\tconnection = new SimulatedSwimConnection(\n\t\t\t\t\t\tproperties.getResourceDirectory(),\n\t\t\t\t\t\tDuration.ofMillis(properties.getUpdatePeriod()),\n\t\t\t\t\t\tproperties.getUpdateProbability(),\n\t\t\t\t\t\tproperties.getUpdateQuantity());\n\t\t\t\tif (properties.getSubscribesAIXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.AIXM);\n\t\t\t\tif (properties.getSubscribesFIXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.FIXM);\n\t\t\t\tif (properties.getSubscribesWXXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.WXXM);\n\t\t\t\tif (properties.getSubscribesIWXXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.IWXXM);\n\t\t\t\tif (properties.getSubscribesAMXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.AMXM);\n\t\t\t} else if (this.getSpecification().getId().equals(Specification.CONNECTION_SWIM_LIVE_ID)) {\n\t\t\t\tLiveSwimConnectionProperties properties = (LiveSwimConnectionProperties) this.getSpecification().getProperties();\n\t\t\t\tconnection = new LiveSwimConnection();\n\t\t\t\t// TODO: set properties for live SWIM connection\n\t\t\t\tif (properties.getSubscribesAIXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.AIXM);\n\t\t\t\tif (properties.getSubscribesFIXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.FIXM);\n\t\t\t\tif (properties.getSubscribesWXXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.WXXM);\n\t\t\t\tif (properties.getSubscribesIWXXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.IWXXM);\n\t\t\t\tif (properties.getSubscribesAMXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.AMXM);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn connection;\n\t}", "void connect() throws UnknownHostException, IOException {\n\t\tif (isConnected()) {\n\t\t\tdisconnect();\n\t\t}\n\t\t\n\t\tif (!ssl) {\n\t\t\tsock = new Socket();\n\t\t} else {\n\t\t\tsock = SSLSocketFactory.getDefault().createSocket();\n\t\t}\n\t\tsock.connect(new InetSocketAddress(host, port));\n\t\t\n\t\tif (sock != null) {\n\t\t\tsock.setKeepAlive(true);\n\t\t\tinStream = new UByteInputStream(new BufferedInputStream(sock.getInputStream(), sock.getReceiveBufferSize()));\n\t\t\tconnected();\n\t\t}\n\t}", "void open(String nameNport) {\n\tString[] token=nameNport.split(\":\");\n\tString host=token[0];\n\tint port=Integer.parseInt(token[1]);\n\tint proceedFlag=1;\n\tIterator<Socket> iterator=Connection.connections.iterator();\n\tif(host.equalsIgnoreCase(\"localhost\") || host.equals(\"127.0.0.1\"))\n\t\thost=simpella.infoSocket.getLocalAddress().getHostAddress();\n\tif((host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getHostAddress())||host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getCanonicalHostName()))&&(simpella.serverPortNo==port || simpella.downloadPortNo==port)){\n\t\tproceedFlag=0;\n\t\tSystem.out.println(\"Client: Self Connect not allowed\");\n\t\t}\n\twhile(iterator.hasNext() && proceedFlag==1)\n\t{\n\t\tSocket sock=(Socket)iterator.next();\n\t\t\n\t\tif((host.equalsIgnoreCase(sock.getInetAddress().getHostAddress()) || host.equalsIgnoreCase(sock.getInetAddress().getCanonicalHostName())) && port==sock.getPort()){\n\t\t\tproceedFlag=0; \n\t\t\tSystem.out.println(\"Client: Duplicate connection to same IP/port not allowed\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\tif(proceedFlag==1)\n\t\t{\n\t\n\t\n\tbyte type=04;\n\tMessage msg=new Message(type);\n\ttry {\n\t\tConnection.outgoingConnPackRecv[noOfConn]=0;\n\t\tConnection.outgoingConnPackSent[noOfConn]=0;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]=0;\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]=0;\n\t\t\n\t\tclientSideSocket[noOfConn]=new Socket(host,port);\n\t\tSystem.out.println(\"Client:TCP Connection established...Begin handshake\");\n\t\toutToServer[noOfConn]=new ObjectOutputStream(clientSideSocket[noOfConn].getOutputStream());\n\t\tinFromServer[noOfConn]=new ObjectInputStream(clientSideSocket[noOfConn].getInputStream());\n\t\tString strToServer=\"SIMPELLA CONNECT/0.6\\r\\n\";\n\t\tbyte[] byteArray= strToServer.getBytes(\"UTF-16LE\");\n\t\tmsg.setPayload(byteArray);\n \t\n\t\tSystem.out.println(\"Client:\"+new String(byteArray));\n\t\t//outToServer.writeUTF(\"SIMPELLA CONNECT/0.6\\r\\n\");\n\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray.length+23;\n\t\toutToServer[noOfConn].writeObject((Object)msg);\n\t\tConnection.outgoingConnPackRecv[noOfConn]++;\n\t\t\n\t\tMessage msg1=(Message) inFromServer[noOfConn].readObject();\n\t\tbyte[] fromServer=msg1.getPayload();\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]+=fromServer.length+23;\n\t\tString strFromServer=new String(fromServer);\n\t\tSystem.out.println(\"Server:\"+strFromServer);\n\t\tif(msg1.getMessage_type()==05)\n\t\t\t{\n\t\t\tstrToServer=\"SIMPELLA/0.6 200 thank you for accepting me\\r\\n\";\n\t\t\tbyte[] byteArray1= strToServer.getBytes(\"UTF-16LE\");\n\t\t\tMessage m=new Message((byte)05);\n\t\t\tm.setPayload(byteArray1);\n\t\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray1.length+23;\n\t\t\toutToServer[noOfConn].writeObject((Object)m);\n\t\t\t\n\t\t\tConnection.connections.add(clientSideSocket[client.noOfConn]);\n\t\t\tConnection.outgoingConnection[client.noOfConn]=clientSideSocket[client.noOfConn];\n\t\t\tConnection.clientOutStream[client.noOfConn]=outToServer[client.noOfConn];\n\t\t\tnew clientSocketListen(clientSideSocket[noOfConn],outToServer[noOfConn],inFromServer[noOfConn]);\n\t\t\tupdate();\n\t\t\tnoOfConn++;\n\t\t\t//System.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"<open>:Cannot open connection to \"+host+\" at this time\");\n\t\t\t\tclientSideSocket[noOfConn].close();\n\t\t\t\tinFromServer[noOfConn].close();\n\t\t\t\toutToServer[noOfConn].close();\n//\t\t\t\tSystem.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\t\n\t\t\n\t} catch (UnknownHostException e) {\n\t\tSystem.out.println(\"Unknown Host: Destination host unreachable\");\n\t\t//e.printStackTrace();\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Connection Refused/Destination host unreachable\");\n\t}\n\t\t}\n\t}", "public boolean startSession() {\n boolean success = true;\n if (sc == null) {\n sc = new Scanner(System.in);\n }\n if (sqlMngr == null) {\n sqlMngr = SQLController.getInstance();\n }\n try {\n success = sqlMngr.connect(this.getCredentials());\n } catch (ClassNotFoundException e) {\n success = false;\n System.err.println(\"Establishing connection triggered an exception!\");\n e.printStackTrace();\n sc = null;\n sqlMngr = null;\n }\n return success;\n }", "public void clientStart()\n\t{\n\t\tint cnt = 0;\n\t\tfor(ConnectionThread i : connectionPool)\n\t\t{\n\t\t\ti.sendMessage(\"Rock and Roll\");\n\t\t\taddText(\"send start signal to Player\" + cnt++);\n\t\t}\n\t\tchangePicture();\n\t}", "default void connect() { }", "protected void init(String endpoint, ObjectRef objectRef, PropertyMap connProps)\n {\n setHttpTunnelledPropsIfTrue(connProps);\n\n if(httpTunnelled)\n {\n httpInit(endpoint, connProps);\n return;\n }\n\n url = \"iiop://\" + endpoint;\n UrlInfo urlInfo = UrlInfo.getInstance(url);\n String host = urlInfo.getHost();\n int port = urlInfo.getPort();\n int socketTimeout = socketTimeoutProperty.getInt(endpoint, connProps);\n try\n {\n socket = new Socket(host, port);\n socketIn = socket.getInputStream();\n socketOut = socket.getOutputStream();\n socket.setSoTimeout(1000 * socketTimeout);\n }\n catch (Exception ex)\n {\n throw new SystemException(ex);\n }\n requestHeader = new RequestHeader_1_2();\n requestHeader.reserved = reservedBA;\n }", "public void connected() {\n\t\tthis.model.setClient(this);\n\t\tfor (Option o : options) {\n\t\t\to.initiate(this);\n\t\t}\n\t}", "public void start()\r\n\t\t{\r\n\t\tDebug.assert(serverSocket != null, \"(Server/123)\");\r\n\r\n \t// flag the server as running\r\n \tstate = RUNNING;\r\n\r\n // Loop while still listening, accepting new connections from the server socket\r\n while (state == RUNNING)\r\n \t{\r\n // Get a connection from the server socket\r\n\t\t\tSocket socket = null;\r\n\t\t\ttry {\r\n socket = serverSocket.accept();\r\n \tif (state == RUNNING) \r\n \t createLogin(socket);\r\n }\r\n \r\n // The socket timeout allows us to check if the server has been shut down.\r\n // In this case the state will not be RUNNING and the loop will end.\r\n\t\t catch ( InterruptedIOException e )\r\n\t\t \t{\r\n\t\t \t// timeout happened\r\n\t\t \t}\r\n\t\t \r\n\t\t // This shouldn't happen...\r\n \t catch ( IOException e )\r\n \t \t{\r\n log(\"Server: Error creating Socket\");\r\n \t \tDebug.printStackTrace(e);\r\n \t }\r\n\t }\r\n\t \r\n\t // We've finished, clean up\r\n disconnect();\r\n\t\t}", "@Override\n public void start(int connectionId, Connections<Serializable> connections) {\n\n }", "public void start() throws Exception {\n ServerSocket socket = new ServerSocket(0);\n port = socket.getLocalPort();\n socket.close();\n\n final String[] localArgs = {\"-inMemory\", \"-port\", String.valueOf(port)};\n server = ServerRunner.createServerFromCommandLineArgs(localArgs);\n server.start();\n url = \"http://localhost:\" + port;\n\n // internal client connection so we can easily stop, cleanup, etc. later\n this.dynamodb = getClient();\n }", "private void makeBackgroundConnection() {\n connectionPending = true;\n try {\n Thread connectThread = new Thread(this);\n connectThread.start();\n } catch (OutOfMemoryError oome) {\n // Give up on new connection\n }\n }", "private void makeBackgroundConnection() {\n connectionPending = true;\n try {\n Thread connectThread = new Thread(this);\n connectThread.start();\n } catch (OutOfMemoryError oome) {\n // Give up on new connection\n }\n }", "private static void setupConnection() {\r\n\t\t\r\n\t\t// Variable used to keep track of if a connection is sucessful\r\n\t\tboolean connectionSuccess;\r\n\t\t\r\n\t\t// Loop until a sucessful connection is made\r\n\t\tdo {\r\n\t\t\tconnectionSuccess = true;\r\n\t\t\t\r\n\t\t\t// Get server info from user\r\n\t\t\tString serverInfo = JOptionPane.showInputDialog(null, \"Please input the server IP and port\"\r\n\t\t\t\t\t+ \" in the form \\\"IP:Port\\\"\", \"Server Connection Details\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\r\n\t\t\t// If the X button or cancel is clicked exit the program\r\n\t\t\tif(serverInfo == null) {\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString[] serverInfoArray = serverInfo.split(\":\", 2);\r\n\t\t\tint port = 0;\r\n\t\t\t\r\n\t\t\t// Check that both the port and IP have been inputted\r\n\t\t\tif(serverInfoArray.length > 1) {\r\n\t\t\t\t\r\n\t\t\t\t// Check that the port inputted is valid\r\n\t\t\t\ttry{\r\n\t\t\t\t\tport = Integer.parseInt(serverInfoArray[1]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(port > 65536 || port < 0) {\r\n\t\t\t\t\t\tshowMSG(PORT_ERROR_MSG);\r\n\t\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch(NumberFormatException e) {\r\n\t\t\t\t\tshowMSG(PORT_ERROR_MSG);\r\n\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tshowMSG(\"Please input a port number and IP address\");\r\n\t\t\t\tconnectionSuccess = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// After port validation try to connect to the server\r\n\t\t\tif(connectionSuccess == true) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsock = new Socket(serverInfoArray[0], port);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tshowMSG(CONNECTION_ERROR_MSG);\r\n\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Loop until a successful connection to the server is made\r\n\t\t} while(connectionSuccess == false);\r\n\t\t\r\n\t\t\r\n\t\t// Setup buffered reader to read from the server\r\n\t\ttry {\r\n\t\t\tserverReader = new BufferedReader(new InputStreamReader(sock.getInputStream()));\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tshowMSG(CONNECTION_ERROR_MSG);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "private static boolean AttemptConnect() {\n try {\n if (Connect()) {\n Log.Confirmation(\"Connected to server on: \" + socket);\n // send connection type\n dos.writeUTF(\"viewer\");\n return true;\n } else {\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }", "private void createConnection() {\n this.callbacks = getCallbacks();\n\n Properties props = new Properties();\n props.putAll(getTestProps());\n props.putAll(getProps());\n this.connection = Connections.create((ConnectionCallbacks) callbacks, props);\n configureConnection(connection);\n }", "public void connect() {\n\t\tint index = shell.getConnectionsCombo().getSelectionIndex();\n\t\tif (profiles.length == 0 || index < 0 || index >= profiles.length) {\n\t\t\tupdateSelection();\n\t\t\treturn;\n\t\t}\n\t\tIConnectionProfile profile = profiles[index];\n\t\tshell.setEnabled(false);\n\t\tnetworkManager.connect(profile, (s, r) -> {\n\t\t\tif (s) {\n\t\t\t\tcompleted = true;\n\t\t\t\tclose();\n\t\t\t} else {\n\t\t\t\tplugin.sync(() -> {\n\t\t\t\t\tMessageBox messageBox = new MessageBox(shell.isDisposed() ? null : shell, SWT.ICON_ERROR);\n\t\t\t\t\tmessageBox.setMessage(\"Failed to connect!\\n\" + r);\n\t\t\t\t\tmessageBox.open();\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "private void initialize() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n } catch (ClassNotFoundException e) {\n LOGGER.error(\"DB: Unable to find sql driver.\", e);\n throw new AppRuntimeException(\"Unable to find sql driver\", e);\n }\n\n DbCred cred = getDbCred();\n this.connection = getConnection(cred);\n this.isInitialized.set(Boolean.TRUE);\n }", "private void doConnect(Stage stage) {\n try {\n if (validateInput() && isConnectionValid()) {\n Connection con = new Connection(connectionsCB.getEditor().getText(), rpcPort.getText(), asyncPort.getText(), nameTF.getText(), fullControlRB.isSelected());\n // remove it if connection already exists\n if (connectionMap.get(connectionsCB.getEditor().getText()) != null) {\n connectionMap.remove(connectionsCB.getEditor().getText());\n }\n con.setLastUsed(true);\n connectionMap.put(connectionsCB.getEditor().getText(), con);\n updateConnectionsList();\n ConnectionManager.getInstance().setConnected(true);\n\n stage.hide();\n }\n } catch (Exception ex) {\n LOG.error(\"Error durring connection to TRex server\", ex);\n }\n }", "@Test\n\tpublic void testHandshakesExecuted() throws KeyManagementException, NoSuchAlgorithmException, IOException {\n\t\tExperimentalTrustManager handler = new ExperimentalTrustManager();\n\t\tinitContext(handler);\n\t\tURL fbUrl = new URL(\"https://www.facebook.com\");\n\t\tHttpsURLConnection con = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Firstime handshake should occur\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Second handshake didn't occur because of shared ssl session\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tURL ytUrl = new URL(\"https://www.youtube.com/\");\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Connection to other location is in other ssl session so handshage occurs\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Seccond session is also shared - no handshake\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\t// once again try first connection if session was forgotten or not\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"First session is still valid - no handshage\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t}", "public void start() throws IOException {\n System.out.println(\"Starting USCL-Bot...\");\n System.out.println();\n cmd.init();\n conn = new Connection(hostName, hostPort, loginName, loginPass);\n conn.addDatagramListener(conn, Datagram.DG_PERSONAL_TELL);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_STATE);\n conn.addDatagramListener(conn, Datagram.DG_MY_GAME_RESULT);\n conn.addDatagramListener(conn, Datagram.DG_STARTED_OBSERVING);\n conn.addDatagramListener(conn, Datagram.DG_MOVE_LIST);\n conn.addDatagramListener(conn, Datagram.DG_SEND_MOVES);\n conn.addDatagramListener(conn, Datagram.DG_PLAYERS_IN_MY_GAME);\n conn.addDatagramListener(conn, Datagram.DG_GAME_MESSAGE);\n taskSwitchTracker.setUserService(userService);\n taskSwitchTracker.setTournamentService(tournamentService);\n taskSwitchTracker.setConnection(conn);\n taskSwitchTracker.setUSCLBot(this);\n taskSwitchTracker.start();\n conn.initiateConnect(hostName, hostPort);\n }", "protected void doStart() throws JMSException {\n // Lazily establish a shared Connection, if necessary.\n if (sharedConnectionEnabled()) {\n establishSharedConnection();\n }\n\n // Reschedule paused tasks, if any.\n synchronized (this.lifecycleMonitor) {\n this.running = true;\n this.lifecycleMonitor.notifyAll();\n resumePausedTasks();\n }\n\n // Start the shared Connection, if any.\n if (sharedConnectionEnabled()) {\n startSharedConnection();\n }\n }", "private void startPlaintextUpgrade(final Http2Codec http2Codec) {\n // Register the plaintext upgrader\n Http2ClientUpgradeCodec upgradeCodec = new Http2ClientUpgradeCodec(http2Codec);\n HttpClientCodec httpClientCodec = new HttpClientCodec();\n final HttpClientUpgradeHandler upgrader = new HttpClientUpgradeHandler(httpClientCodec,\n upgradeCodec, 1000);\n final UpgradeCompletionHandler completionHandler = new UpgradeCompletionHandler();\n\n Channel channel = connect(new ChannelInitializer<SocketChannel>() {\n @Override\n public void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(upgrader);\n ch.pipeline().addLast(completionHandler);\n }\n });\n\n try {\n // Trigger the HTTP/1.1 plaintext upgrade protocol by issuing an HTTP request\n // which causes the upgrade headers to be added\n Promise<Void> upgradePromise = completionHandler.getUpgradePromise();\n DefaultHttpRequest upgradeTrigger =\n new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, \"/\");\n channel.writeAndFlush(upgradeTrigger);\n // Wait for the upgrade to complete\n upgradePromise.get(5, TimeUnit.SECONDS);\n } catch (Exception e) {\n // Attempt to close the channel before propagating the error\n channel.close();\n throw new IllegalStateException(\"Error waiting for plaintext protocol upgrade\", e);\n }\n }", "protected NegotiationParty init() throws InstantiateException {\n\t\tNegotiationParty party1 = load();\n\t\tprotocolClassPath = party1.getProtocol().getCanonicalName();\n\t\tinitialized = true;\n\t\treturn party1;\n\t}", "@Override\r\n\tpublic void start(Socket socket){}" ]
[ "0.625869", "0.59606624", "0.5890276", "0.5881293", "0.58701545", "0.5770565", "0.5759169", "0.5723266", "0.5713405", "0.5699178", "0.5690135", "0.56802934", "0.56494075", "0.5563003", "0.5548065", "0.5537912", "0.5505542", "0.55018544", "0.5490213", "0.548487", "0.54362637", "0.54162735", "0.54087377", "0.5384851", "0.53687644", "0.53498566", "0.53223723", "0.53176266", "0.5316693", "0.53119123", "0.5272225", "0.5260042", "0.5247618", "0.5246122", "0.52298886", "0.5226765", "0.5215969", "0.5212457", "0.5207648", "0.51907927", "0.51779056", "0.516927", "0.51656353", "0.5163788", "0.51617104", "0.5154746", "0.51532656", "0.5143501", "0.51402795", "0.5124348", "0.5117678", "0.51150835", "0.5114234", "0.5113557", "0.5111747", "0.51070505", "0.51034373", "0.50934213", "0.50882083", "0.508443", "0.50827694", "0.50774086", "0.5056817", "0.5055349", "0.50548846", "0.5042321", "0.5038595", "0.5032912", "0.5031957", "0.50248253", "0.5020187", "0.50189376", "0.5009637", "0.5008339", "0.50063837", "0.5003763", "0.5002054", "0.49977618", "0.49951628", "0.49906847", "0.49903646", "0.49898395", "0.49680603", "0.49663547", "0.49662676", "0.4948661", "0.49435985", "0.49435985", "0.49308303", "0.49242222", "0.4923818", "0.4918377", "0.49133775", "0.4913285", "0.49122193", "0.49096882", "0.4908341", "0.4904556", "0.49010727", "0.48987857" ]
0.5455291
20
Configure the bootstrap options for the connection.
private Channel connect(ChannelInitializer<SocketChannel> handler) { // Configure worker pools and buffer allocator EventLoopGroup workerGroup = new NioEventLoopGroup(); Bootstrap b = new Bootstrap(); b.group(workerGroup); b.channel(NioSocketChannel.class); b.option(ChannelOption.SO_KEEPALIVE, true); // TODO(user): Evaluate use of pooled allocator b.option(ChannelOption.ALLOCATOR, UnpooledByteBufAllocator.DEFAULT); // Install the handler b.handler(handler); // Connect and wait for connection to be available ChannelFuture channelFuture = b.connect(host, port); try { // Wait for the connection channelFuture.get(5, TimeUnit.SECONDS); channel = channelFuture.channel(); ChannelFuture closeFuture = channel.closeFuture(); closeFuture.addListener(new WorkerCleanupListener(b.group())); return channel; } catch (TimeoutException te) { throw new IllegalStateException("Timeout waiting for connection to " + host + ":" + port, te); } catch (Throwable t) { throw new IllegalStateException("Error connecting to " + host + ":" + port, t); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBootstrapProperties(BootstrapProperties bootstrapProperties);", "private ClientBootstrap() {\r\n init();\r\n }", "@Override\r\n public void initialize(Bootstrap<Configuration> bootstrap) {\n }", "@Override\n public void initialize(Bootstrap<SkyeWorkerConfiguration> bootstrap) {\n this.bootstrap = bootstrap;\n }", "@Override\n public void initialize(Bootstrap<TwitterLabConfiguration> bootstrap) {\n }", "public KafkaConfig(String bootstrapServer) {\n this.bootstrapServer = bootstrapServer;\n kafkaGroupName = \"group1\";\n autoOffsetReset = \"earliest\";\n autoCommit = false;\n kafkaTopics = new HashMap<>();\n }", "@Override\n public void initialize(Bootstrap<AppConfig> bootstrap) {\n bootstrap.setConfigurationSourceProvider(\n new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(),\n new EnvironmentVariableSubstitutor(false)\n )\n );\n \n bootstrap.addBundle(new FlywayBundle<AppConfig>() {\n \n @Override\n public DataSourceFactory getDataSourceFactory(AppConfig configuration) {\n return configuration.getDataSourceFactory();\n }\n \n @Override\n public FlywayFactory getFlywayFactory(AppConfig configuration) {\n return configuration.getFlywayFactory();\n }\n });\n }", "@Override\n public void initialize(Bootstrap bootstrap) {\n }", "@Override\n public void initialize(Bootstrap<ApiConfiguration> bootstrap) {\n\n //hibernate bootstrapping\n bootstrap.addBundle(hibernateBundle);\n bootstrap.addBundle(new MigrationsBundle<ApiConfiguration>() {\n @Override\n public DataSourceFactory getDataSourceFactory(ApiConfiguration configuration){\n return configuration.getDataSourceFactory();\n }\n });\n }", "public ArmPayPlanConfigBootStrap() {\n }", "public void activateOptions() {\n try {\n sh = new SocketHandler(port);\n sh.start();\n }\n catch(InterruptedIOException e) {\n Thread.currentThread().interrupt();\n e.printStackTrace();\n } catch(IOException e) {\n e.printStackTrace();\n } catch(RuntimeException e) {\n e.printStackTrace();\n }\n super.activateOptions();\n }", "@Override\n public void initialize(Bootstrap<ExampleConfiguration> bootstrap)\n {\n ConfigAccessor<ExampleConfiguration> configAccessor = new ConfigAccessor<ExampleConfiguration>()\n {\n @Override\n public WebConfiguration getAppConfiguration(ExampleConfiguration configuration)\n {\n return configuration.web;\n }\n\n @Override\n public Optional<WebConfiguration> getAdminConfiguration(ExampleConfiguration configuration)\n {\n return Optional.empty(); // in this example, we're not using Sobase Web for admin\n }\n };\n bootstrap.addBundle(new WebBundle<>(this::makeModel, configAccessor));\n }", "protected void setupZanataOptions() {\n // Set the zanata url\n if (this.zanataUrl != null) {\n // Find the zanata server if the url is a reference to the zanata server name\n for (final String serverName : getClientConfig().getZanataServers().keySet()) {\n if (serverName.equals(zanataUrl)) {\n zanataUrl = getClientConfig().getZanataServers().get(serverName).getUrl();\n break;\n }\n }\n \n getCspConfig().getZanataDetails().setServer(ClientUtilities.fixHostURL(zanataUrl));\n }\n \n // Set the zanata project\n if (this.zanataProject != null) {\n getCspConfig().getZanataDetails().setProject(zanataProject);\n }\n \n // Set the zanata version\n if (this.zanataVersion != null) {\n getCspConfig().getZanataDetails().setVersion(zanataVersion);\n }\n }", "private void bootstrap() {\n\t\t// configure default values\n\t\t// maxPoolSize = 5;\n\t\tthis.parserPool.setMaxPoolSize(50);\n\t\t// coalescing = true;\n\t\tthis.parserPool.setCoalescing(true);\n\t\t// expandEntityReferences = false;\n\t\tthis.parserPool.setExpandEntityReferences(false);\n\t\t// ignoreComments = true;\n\t\tthis.parserPool.setIgnoreComments(true);\n\t\t// ignoreElementContentWhitespace = true;\n\t\tthis.parserPool.setIgnoreElementContentWhitespace(true);\n\t\t// namespaceAware = true;\n\t\tthis.parserPool.setNamespaceAware(true);\n\t\t// schema = null;\n\t\tthis.parserPool.setSchema(null);\n\t\t// dtdValidating = false;\n\t\tthis.parserPool.setDTDValidating(false);\n\t\t// xincludeAware = false;\n\t\tthis.parserPool.setXincludeAware(false);\n\n\t\tMap<String, Object> builderAttributes = new HashMap<>();\n\t\tthis.parserPool.setBuilderAttributes(builderAttributes);\n\n\t\tMap<String, Boolean> parserBuilderFeatures = new HashMap<>();\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/disallow-doctype-decl\", TRUE);\n\t\tparserBuilderFeatures.put(XMLConstants.FEATURE_SECURE_PROCESSING, TRUE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-general-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/validation/schema/normalized-value\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-parameter-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/dom/defer-node-expansion\", FALSE);\n\t\tthis.parserPool.setBuilderFeatures(parserBuilderFeatures);\n\n\t\ttry {\n\t\t\tthis.parserPool.initialize();\n\t\t}\n\t\tcatch (ComponentInitializationException x) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3 ParserPool\", x);\n\t\t}\n\n\t\ttry {\n\t\t\tInitializationService.initialize();\n\t\t}\n\t\tcatch (InitializationException e) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3\", e);\n\t\t}\n\n\t\tXMLObjectProviderRegistry registry;\n\t\tsynchronized (ConfigurationService.class) {\n\t\t\tregistry = ConfigurationService.get(XMLObjectProviderRegistry.class);\n\t\t\tif (registry == null) {\n\t\t\t\tregistry = new XMLObjectProviderRegistry();\n\t\t\t\tConfigurationService.register(XMLObjectProviderRegistry.class, registry);\n\t\t\t}\n\t\t}\n\n\t\tregistry.setParserPool(this.parserPool);\n\t}", "public void activateOptions() {\n if (!isActive()) {\n setActive(true);\n if (advertiseViaMulticastDNS) {\n zeroConf = new ZeroConfSupport(ZONE, port, getName());\n zeroConf.advertise();\n }\n\n fireConnector(false);\n }\n }", "@Override\n\tpublic void initialize(Bootstrap<MicroServicioRequerimientosConfig> bootstrap) {\n\t\t\n\t}", "@Override\n public void initialize(Bootstrap<KafkaExampleConfiguration> bootstrap) {\n bootstrap.addBundle(ConfigurationSubstitutionBundle.builder().build());\n bootstrap.addBundle(kafka);\n }", "@Override\n public void initialize(ServerConfiguration config) {\n }", "protected void beforeConnect()\n throws IOException {\n // Bootstrap once for clients\n if (!isConnected()) {\n mContext.loadConfIfNotLoaded(getConfAddress());\n }\n }", "@Override\n protected void configure() {\n bind(EurekaInstanceConfig.class).toProvider(MyDataCenterInstanceConfigProvider.class).in(Scopes.SINGLETON);\n }", "protected void buildBootstrap() {\n String command = \"-prod -mac -o2 rom -strip:d j2me imp\";\n if (includeDebugger) {\n command += \" debugger\";\n }\n command += \" -- translator\";\n builder(command);\n }", "public Options() {\n init();\n }", "@Override\n\tpublic void initialize(Bootstrap<SeqNumConfiguration> bootstrap) {\n\t}", "public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }", "public static void init()\n {\n try\n {\n // The newInstance() call is a work around for some broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\n // Create a new configuration object\n BoneCPConfig config = new BoneCPConfig();\n\n // Setup the configuration\n config.setJdbcUrl(\"jdbc:mysql://cs304.c0mk5mvcjljr.us-west-2.rds.amazonaws.com/cs304\"); // jdbc url specific to your database, eg jdbc:mysql://127.0.0.1/yourdb\n config.setUsername(\"cs304\");\n config.setPassword(\"ubccs304\");\n config.setConnectionTestStatement(\"SELECT 1\");\n config.setConnectionTimeout(10, TimeUnit.SECONDS);\n config.setMinConnectionsPerPartition(5);\n config.setMaxConnectionsPerPartition(10);\n config.setPartitionCount(1);\n\n // Setup the connection pool\n _pool = new BoneCP(config);\n\n // Log\n LogManager.getLogger(DatabasePoolManager.class).info(\"Database configuration initialized\");\n }\n catch (Exception ex)\n {\n // Log\n LogManager.getLogger(DatabasePoolManager.class).fatal(\"Could not initialize Database configuration\", ex);\n }\n\n }", "public void initialConfig() {\n }", "void initialize(int options) {\n\n\t}", "public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "protected abstract void initializeOptions(Options options);", "public void setKafkaBootStrapServers(String bootstrapServers) {\n params.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, Objects.requireNonNull(bootstrapServers));\n }", "protected void configureConnectionPool() {\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n JdbcConnectionProvider cp = new JdbcConnectionProvider(this.translator, adapter);\n this.connectionPool = new PoolConnectionProvider(cp, this.maxConnectionPoolSize);\n this.transactionProvider = new SimpleTransactionProvider(this.connectionPool);\n }", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "public ServerConfig() {\n initComponents();\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ServerConfig.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(ServerConfig.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(ServerConfig.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedLookAndFeelException ex) {\n Logger.getLogger(ServerConfig.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "private void initialiseByHand() {\n Configuration production = new Configuration(\"api.example.com\", false, 2000);\n Configuration staging = new Configuration(\"api-staging.example.com\", false, 2000);\n Configuration debug = new Configuration(\"api-dev.example.com\", true, 1000);\n Map<String, Configuration> baseVariants = new HashMap<>();\n baseVariants.put(PRODUCTION, production);\n baseVariants.put(STAGING, staging);\n baseVariants.put(DEBUG, debug);\n Neanderthal.initialise(this, baseVariants, PRODUCTION);\n }", "void configure();", "private void initConfiguration() {\n\t\tseedList = new ArrayList<String>();\n\t\t// TODO: add other initialization here...\n\t}", "@Override\n public void initialize(Bootstrap<?> bootstrap) {\n bootstrap.setObjectMapper(io.dropwizard.jackson.Jackson.newMinimalObjectMapper());\n // avoids warning regarding com.fasterxml.jackson.databind.util.ClassUtil\n bootstrap.getObjectMapper().registerModule(new Jdk8Module());\n\n Jackson.initObjectMapper(bootstrap.getObjectMapper());\n bootstrap.getObjectMapper().setDateFormat(new StdDateFormat());\n // See https://github.com/dropwizard/dropwizard/issues/1558\n bootstrap.getObjectMapper().enable(MapperFeature.ALLOW_EXPLICIT_PROPERTY_RENAMING);\n }", "public void run() {\n try {\n peerBootstrap = createPeerBootStrap();\n\n peerBootstrap.setOption(\"reuseAddr\", true);\n peerBootstrap.setOption(\"child.keepAlive\", true);\n peerBootstrap.setOption(\"child.tcpNoDelay\", true);\n peerBootstrap.setOption(\"child.sendBufferSize\", Controller.SEND_BUFFER_SIZE);\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "@Override\r\n protected void configure() {\r\n bindRequiredName(\"LTAS_SERVICE_NAME\", \"LTAS_SERVICE_NAME\");\r\n bindRequiredName(\"RABBITMQ_HOST\", \"RABBITMQ_HOST\");\r\n bindRequiredName(\"RABBITMQ_PORT\", \"RABBITMQ_PORT\");\r\n bindRequiredName(\"RABBITMQ_USERNAME\", \"RABBITMQ_USERNAME\");\r\n bindRequiredName(\"RABBITMQ_PWD\", \"RABBITMQ_PWD\");\r\n bindRequiredName(\"RABBITMQ_VIRTUALHOST\", \"RABBITMQ_VIRTUALHOST\");\r\n\r\n bind(RabbitMQAPI.class);\r\n bind(RabbitMQService.class);\r\n\r\n }", "@Override\n public void configure() {\n }", "public SessionOpts() {\n traffic = TRAFFIC_MESSAGES;\n isMultipoint = false;\n proximity = PROXIMITY_ANY;\n transports = TRANSPORT_ANY;\n }", "private static Properties getConfiguration(\n String bootstrapInfo,\n boolean reinit\n ) throws Exception {\n Properties properties = null;\n Properties prop = new Properties();\n prop.setProperty(PROP_SECURITY_ENCRYPTOR, DEFAULT_SECURITY_ENCRYPTOR);\n prop.setProperty(Constants.SERVER_MODE, \"true\");\n \n boolean isLdap = false;\n // need to do this because URL class does not understand ldap://\n if (bootstrapInfo.startsWith(\"ldap://\")) {\n bootstrapInfo = \"http://\" + bootstrapInfo.substring(7);\n isLdap = true; \n }\n \n URL url = new URL(bootstrapInfo);\n String instanceName = null;\n String dshost = \"ds.opensso.java.net\";\n String dsport = \"389\";\n String dsbasedn = \"dc=opensso,dc=java,dc=net\";\n String dsmgr = \"cn=dsameuser,ou=DSAME Users,\" + dsbasedn;\n String dspwd = \"11111111\";\n Map mapQuery = queryStringToMap(url.getQuery());\n String pwd = (String)mapQuery.get(PWD);\n boolean proceed = true;\n \n //NOTE: need to add more protocol is we support more of them\n if (!isLdap) {\n prop.setProperty(PROP_SMS_OBJECT, PROP_SMS_OBJECT_FILE);\n prop.setProperty(PROP_SMS_FILE_DIR,\n (String)mapQuery.get(FF_BASE_DIR));\n instanceName = url.getPath();\n int idx = instanceName.lastIndexOf('/');\n if (idx != -1) {\n instanceName = instanceName.substring(idx+1);\n }\n instanceName = URLDecoder.decode(instanceName, \"UTF-8\");\n initializeSystemComponents(prop, dsbasedn, reinit, isLdap, dshost,\n dsport, dsmgr, dspwd, pwd);\n } else {\n prop.setProperty(PROP_SMS_OBJECT, PROP_SMS_OBJECT_LDAP);\n dshost = url.getHost();\n dsport = Integer.toString(url.getPort());\n dsbasedn = (String)mapQuery.get(DS_BASE_DN);\n dsmgr = (String)mapQuery.get(DS_MGR);\n dspwd = (String)mapQuery.get(DS_PWD);\n instanceName = URLDecoder.decode(url.getPath(), \"UTF-8\");\n if (instanceName.startsWith(\"/\")) {\n instanceName = instanceName.substring(1);\n }\n \n initializeSystemComponents(prop, dsbasedn, reinit, isLdap, dshost,\n dsport, dsmgr, dspwd, pwd);\n \n String embeddedDS = (String)mapQuery.get(EMBEDDED_DS);\n if ((embeddedDS != null) && (embeddedDS.length() > 0)) {\n proceed = startEmbeddedDS(embeddedDS);\n }\n }\n \n if (proceed) {\n String dsameUser = \"cn=dsameuser,ou=DSAME Users,\" + dsbasedn;\n SSOToken ssoToken = getSSOToken(dsbasedn, dsameUser,\n Crypt.decode(pwd, Crypt.getHardcodedKeyEncryptor()));\n try {\n properties = ServerConfiguration.getServerInstance(\n ssoToken, instanceName);\n if (properties != null) {\n SystemProperties.initializeProperties(\n properties, true, false);\n String serverConfigXML =\n ServerConfiguration.getServerConfigXML(\n ssoToken, instanceName);\n Crypt.reinitialize();\n loadServerConfigXML(serverConfigXML);\n AdminUtils.initialize();\n SMSAuthModule.initialize();\n SystemProperties.initializeProperties(\n properties, true, true);\n SystemProperties.setServerInstanceName(instanceName);\n \n ServiceConfigManager scm = new ServiceConfigManager(\n Constants.SVC_NAME_PLATFORM, (SSOToken)AccessController.\n doPrivileged(AdminTokenAction.getInstance()));\n scm.addListener(new ConfigurationObserver());\n }\n } catch (SMSException e) {\n //ignore. product is not configured yet.\n properties = null;\n }\n }\n return properties;\n }", "public static void transferConfigurationTo(IOptionSetter options) {\r\n options.setOption(HOST_EVENT, getEventHost());\r\n options.setOption(PORT_EVENT, getEventPort());\r\n options.setOption(CONFIG_KEY_STORM_NIMBUS_HOST, getNimbus());\r\n options.setOption(CONFIG_KEY_STORM_NIMBUS_PORT, getThriftPort());\r\n options.setOption(EVENT_DISABLE_LOGGING, getEventDisableLogging());\r\n options.setOption(PIPELINE_INTERCONN_PORTS, getPipelinePorts());\r\n options.setOption(MONITORING_VOLUME_ENABLED, enableVolumeMonitoring());\r\n options.setOption(RETRY_INTERVAL_ZOOKEEPER, getZookeeperRetryInterval());\r\n options.setOption(RETRY_TIMES_ZOOKEEPER, getZookeeperRetryTimes());\r\n options.setOption(WATCHER_WAITING_TIME, getWatcherWaitingTime());\r\n }", "@Override\n\tpublic void configure() {\n\n\t}", "@Override\n protected void configure() {\n }", "@Override\n\tpublic void configure() {\n\t\t\n\t}", "void init() throws CouldNotInitializeConnectionPoolException;", "@Override\r\n\tprotected void configure() {\n\t\t\r\n\t}", "@Override\n\tprotected void configure() {\n\n\t}", "public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}", "private void prepareOptions() {\n CommandFactory\n .getInstance()\n .getCommands()\n .forEach((s, command) -> options.addOption(s, true, command.getDefinition()));\n }", "@PostConstruct\r\n\tpublic void postConstruct() {\r\n\t\tthis.setVerbose(config.isBotVerbiose());\r\n\t\tthis.setName(config.getName());\r\n\t\tthis.setLogin(config.getName());\r\n\r\n\t\ttry {\r\n\t\t\tthis.connect(config.getServer(), config.getPort(), config.getOauth());\r\n\t\t} catch (IOException | IrcException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private RelayConfig () {}", "@Override\n protected void configure() {\n MorphiaLoggerFactory.reset();\n init();\n bind();\n }", "@Override\r\n\tpublic void configure() throws Exception {\n\t\t\r\n\t}", "@Override\n protected void createConnectionOptions(ClientOptions clientOptions) {\n if (clientOptions.getOption(ClientOptions.CON_SSL_TRUST_ALL).hasParsedValue()) {\n try {\n SSLContext ctx = SSLContext.getInstance(\"TLS\");\n ctx.init(new KeyManager[0], new TrustManager[]{new TrustingTrustManager()}, null);\n SSLContext.setDefault(ctx);\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n throw new RuntimeException(\"Could not set up the all-trusting TrustManager\", e);\n }\n }\n\n // Configure SSL options, which in case of activemq-client are set as Java properties\n // http://activemq.apache.org/how-do-i-use-ssl.html\n // https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html#CustomizingStores\n\n if (clientOptions.getOption(ClientOptions.CON_SSL_KEYSTORE_LOC).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.keyStore\", relativize(clientOptions.getOption(ClientOptions.CON_SSL_KEYSTORE_LOC).getValue()));\n }\n if (clientOptions.getOption(ClientOptions.CON_SSL_KEYSTORE_PASS).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.keyStorePassword\", clientOptions.getOption(ClientOptions.CON_SSL_KEYSTORE_PASS).getValue());\n }\n// System.setProperty(\"javax.net.ssl.keyStorePassword\", \"secureexample\");\n if (clientOptions.getOption(ClientOptions.CON_SSL_TRUSTSTORE_LOC).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.trustStore\", relativize(clientOptions.getOption(ClientOptions.CON_SSL_TRUSTSTORE_LOC).getValue()));\n }\n if (clientOptions.getOption(ClientOptions.CON_SSL_TRUSTSTORE_PASS).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.trustStorePassword\", clientOptions.getOption(ClientOptions.CON_SSL_TRUSTSTORE_PASS).getValue());\n }\n if (clientOptions.getOption(ClientOptions.CON_SSL_STORE_TYPE).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.keyStoreType\", clientOptions.getOption(ClientOptions.CON_SSL_STORE_TYPE).getValue());\n System.setProperty(\"javax.net.ssl.trustStoreType\", clientOptions.getOption(ClientOptions.CON_SSL_STORE_TYPE).getValue());\n }\n\n super.createConnectionOptions(clientOptions);\n }", "protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "public Bootstrap() {\r\n\t\t//Create or load UserList\r\n\t\tuserList = new CopyOnWriteArrayList<User>();\r\n\t\ttry {\r\n\t\t\tuserList = importUserList();\r\n\t\t} catch (FileNotFoundException e){\r\n\t\t\t\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.ip_adresse = StaticFunctions.loadPeerIp();\t\t\t//Load ip-address\r\n\t\t\r\n\t\t//Create a new Zone\r\n\t\tcreateZone(new Point(0.0, 0.0), new Point(1.0, 1.0));\t//initialize zone\r\n\t}", "public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n if (load(basedir, false) == null) {\n throw new ConfiguratorException(\n \"configurator.cannot.bootstrap\");\n }\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }", "public abstract void configure(String[] args);", "public NationalAccountBenchmarkWebOptions() {\r\n super();\r\n\r\n }", "protected void setBrokerOptions(ClientOptions clientOptions, String brokerUrl) {\n\n String uriProtocol = null;\n if (Boolean.parseBoolean(clientOptions.getOption(ClientOptions.CON_RECONNECT).getValue())) {\n // use failover mechanism by default, discovery otherwise\n uriProtocol = ClientOptions.FAILOVER_PROTO;\n }\n if (uriProtocol != null) {\n checkAndSetOption(ClientOptions.PROTOCOL, uriProtocol, clientOptions);\n // Set the whole url as failoverUrl. Do not parse it. connection options should come as input \"conn-*\"\n\n // failover:(dhcp-75-212.lab.eng.brq.redhat.com:5672,dhcp-75-219.lab.eng.brq.redhat.com:5672) -->\n // failover:(tcp://dhcp-75-212.lab.eng.brq.redhat.com:5672,tcp://dhcp-75-219.lab.eng.brq.redhat.com:5672) -->\n // TODO discovery..\n // discovery:(tcp://dhcp-75-212.lab.eng.brq.redhat.com:5672,tcp://dhcp-75-219.lab.eng.brq.redhat.com:5672) -->\n brokerUrl = appendMissingProtocol(brokerUrl);\n\n // If Failover-url list contains a broker value, add it here\n if (clientOptions.getOption(ClientOptions.CON_FAILOVER_URLS).hasParsedValue()) {\n StringBuilder failoverBrokers = new StringBuilder(\",\");\n String reconnectBrokers = clientOptions.getOption(ClientOptions.CON_FAILOVER_URLS).getValue();\n\n for (String brokerFailover : reconnectBrokers.split(\",\")) {\n failoverBrokers.append(appendMissingProtocol(brokerFailover)).append(\",\");\n }\n failoverBrokers.deleteCharAt(failoverBrokers.length() - 1);\n brokerUrl += failoverBrokers;\n }\n\n checkAndSetOption(ClientOptions.FAILOVER_URL, brokerUrl, clientOptions);\n } else {\n super.setBrokerOptions(clientOptions, brokerUrl);\n }\n }", "@BeforeClass\n\tpublic static void setUpBeforeClass() throws Exception {\n\t\tSystem.setProperty(\"spring.kafka.bootstrap-servers\", embeddedKafka.getBrokersAsString());\n\t}", "public BwaOptions() {\n\t}", "void configure (CallbackUtilities cus) throws RootException;", "public HttpServerConfiguration() {\n this.sessionsEnabled = true;\n this.connectors = new ArrayList<HttpConnectorConfiguration>();\n this.sslConnectors = new ArrayList<HttpSslConnectorConfiguration>();\n this.minThreads = 5;\n this.maxThreads = 50;\n }", "protected void initializeCommandLineConfiguration(RacfConfiguration config) throws IOException {\r\n config.setHostNameOrIpAddr(HOST_NAME);\r\n config.setUseSsl(USE_SSL);\r\n config.setHostTelnetPortNumber(HOST_TELNET_PORT);\r\n config.setCommandTimeout(60*1000);\r\n config.setReaperMaximumIdleTime(15*60*1000);\r\n config.setConnectScript(getLoginScript());\r\n config.setDisconnectScript(getLogoffScript());\r\n config.setUserNames(new String[] {SYSTEM_USER} );\r\n config.setPasswords(new GuardedString[] {new GuardedString(SYSTEM_PASSWORD.toCharArray())});\r\n config.setSegmentNames(new String[] { \r\n \"ACCOUNT.RACF\", \"ACCOUNT.TSO\", \"ACCOUNT.NETVIEW\",\r\n \"ACCOUNT.CICS\", \"ACCOUNT.OMVS\", \"ACCOUNT.CATALOG\", \r\n \"ACCOUNT.OMVS\", \"GROUP.RACF\" });\r\n config.setSegmentParsers(new String[] { \r\n loadParserFromFile(RACF_PARSER), loadParserFromFile(TSO_PARSER), loadParserFromFile(NETVIEW_PARSER), \r\n loadParserFromFile(CICS_PARSER), loadParserFromFile(OMVS_PARSER), loadParserFromFile(CATALOG_PARSER), \r\n loadParserFromFile(OMVS_PARSER), loadParserFromFile(GROUP_RACF_PARSER) });\r\n //config.setConnectionClassName(\"org.identityconnectors.rw3270.wrq.WrqConnection\");\r\n config.setConnectionClassName(\"org.identityconnectors.rw3270.hod.HodConnection\");\r\n //config.setConnectionClassName(\"org.identityconnectors.rw3270.freehost3270.FH3270Connection\");\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 initialize() {\n this.setLayout(new CardLayout());\n this.setName(Constant.messages.getString(\"ports.options.title\"));\n this.add(getPanelPortScan(), getPanelPortScan().getName());\n }", "public void createMiniKdcConf() {\n\t\tconf = MiniKdc.createConf();\n\t}", "protected void configureClient() {\n\t\tswitch (getVariant(ClientRegistration.class)) {\n\t\tcase STATIC_CLIENT:\n\t\t\tcallAndStopOnFailure(GetStaticClientConfiguration.class);\n\t\t\tconfigureStaticClient();\n\t\t\tbreak;\n\t\tcase DYNAMIC_CLIENT:\n\t\t\tcallAndStopOnFailure(StoreOriginalClientConfiguration.class);\n\t\t\tcallAndStopOnFailure(ExtractClientNameFromStoredConfig.class);\n\t\t\tconfigureDynamicClient();\n\t\t\tbreak;\n\t\t}\n\n\t\texposeEnvString(\"client_id\");\n\n\t\tcompleteClientConfiguration();\n\t}", "public ConfigGeneratorApi(ToolOptions options) {\n super(options);\n }", "@Override\n public void setupConfiguration(Configuration config)\n {\n\n }", "@PostConstruct\n\tpublic void config() {\n\t\tthis.configureSwaggerV1();\n\t}", "public MechanismReadOptions() {\n initComponents();\n }", "public ServerConfigImpl() {\n this.expectations = new ExpectationsImpl(globalEncoders, globalDecoders);\n this.requirements = new RequirementsImpl();\n }", "public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }", "private void init() {\n if (adminConnectionFactory != null) {\n throw new IllegalStateException(\"Provider already initialized.\");\n }\n\n // setup admin connection pool\n LdapConnectionConfig cc = createConnectionConfig();\n String bindDN = config.getBindDN();\n if (bindDN != null && !bindDN.isEmpty()) {\n cc.setName(bindDN);\n cc.setCredentials(config.getBindPassword());\n }\n adminConnectionFactory = new ValidatingPoolableLdapConnectionFactory(cc);\n if (config.getAdminPoolConfig().lookupOnValidate()) {\n adminConnectionFactory.setValidator(new LookupLdapConnectionValidator());\n } else {\n adminConnectionFactory.setValidator(new DefaultLdapConnectionValidator());\n }\n if (config.getAdminPoolConfig().getMaxActive() != 0) {\n adminPool = new LdapConnectionPool(adminConnectionFactory);\n adminPool.setTestOnBorrow(true);\n adminPool.setMaxTotal(config.getAdminPoolConfig().getMaxActive());\n adminPool.setBlockWhenExhausted(true);\n adminPool.setMinEvictableIdleTimeMillis(config.getAdminPoolConfig().getMinEvictableIdleTimeMillis());\n adminPool.setTimeBetweenEvictionRunsMillis(config.getAdminPoolConfig().getTimeBetweenEvictionRunsMillis());\n adminPool.setNumTestsPerEvictionRun(config.getAdminPoolConfig().getNumTestsPerEvictionRun());\n }\n\n // setup unbound connection pool. let's create a new version of the config\n cc = createConnectionConfig();\n\n userConnectionFactory = new PoolableUnboundConnectionFactory(cc);\n if (config.getUserPoolConfig().lookupOnValidate()) {\n userConnectionFactory.setValidator(new UnboundLookupConnectionValidator());\n } else {\n userConnectionFactory.setValidator(new UnboundConnectionValidator());\n }\n if (config.getUserPoolConfig().getMaxActive() != 0) {\n userPool = new UnboundLdapConnectionPool(userConnectionFactory);\n userPool.setTestOnBorrow(true);\n userPool.setMaxTotal(config.getUserPoolConfig().getMaxActive());\n userPool.setBlockWhenExhausted(true);\n userPool.setMinEvictableIdleTimeMillis(config.getUserPoolConfig().getMinEvictableIdleTimeMillis());\n userPool.setTimeBetweenEvictionRunsMillis(config.getUserPoolConfig().getTimeBetweenEvictionRunsMillis());\n userPool.setNumTestsPerEvictionRun(config.getUserPoolConfig().getNumTestsPerEvictionRun());\n }\n\n log.info(\"LdapIdentityProvider initialized: {}\", config);\n }", "private ClientBootstrap createPeerBootStrap() {\n\n if (workerThreads == 0) {\n execFactory = new NioClientSocketChannelFactory(\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"boss-%d\")),\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"worker-%d\")));\n return new ClientBootstrap(execFactory);\n } else {\n execFactory = new NioClientSocketChannelFactory(\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"boss-%d\")),\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"worker-%d\")),\n workerThreads);\n return new ClientBootstrap(execFactory);\n }\n }", "public void init(JobDataMap optionMap) {\n\t\tString ipAddress = \"\";\n\t\tString userName = \"\";\n\t\tString password = \"\";\n\n\t\tif (optionMap.get(\"IPAddress\") != null)\n\t\t\tipAddress = optionMap.get(\"IPAddress\").toString();\n\t\telse {\n\t\t\tlog.debug(\"IP Address is missing. Cannot connect to host \");\n\t\t\tThread.currentThread().interrupt();\n\t\t\treturn;\n\n\n\t\t}\n\t\tif (optionMap.get(\"UserName\") != null)\n\t\t\tuserName = optionMap.get(\"UserName\").toString();\n\t\telse {\n\t\t\tlog.debug(\"Username is missing. Cannot connect to host \");\n\t\t\tThread.currentThread().interrupt();\n\t\t\treturn;\n\n\t\t}\n\n\t\tif (optionMap.get(\"Password\") != null)\n\t\t\tpassword = optionMap.get(\"Password\").toString();\n\t\telse {\n\t\t\tlog.debug(\"Password is missing. Cannot connect to host \");\n\t\t\tThread.currentThread().interrupt();\n\t\t\treturn;\n\n\t\t}\n\n\t\tif (optionMap.get(\"DiskName\") != null)\n\t\t\tthis.diskName = optionMap.get(\"DiskName\").toString();\n\t\telse {\n\t\t\tlog.debug(\"Default disk will be used\");\n\n\t\t}\n\n\t\tif (optionMap.get(\"ByteSize\") != null)\n\t\t\tthis.byteSize = optionMap.get(\"ByteSize\").toString();\n\t\telse {\n\t\t\tlog.debug(\"Default byte size will be used\");\n\n\t\t}\n\n\t\tif (optionMap.get(\"BlockCount\") != null)\n\t\t\tthis.blockCount = optionMap.get(\"BlockCount\").toString();\n\t\telse {\n\t\t\tlog.debug(\"Default blockcount will be used\");\n\n\t\t}\n\n\t\tthis.newNode = new Node(ipAddress, userName, password);\n\n\n\t}", "private void init() {\n\t\t/* Add the DNS of your database instances here */\n\t\tdatabaseInstances[0] = \"ec2-52-0-167-69.compute-1.amazonaws.com\";\n\t\tdatabaseInstances[1] = \"ec2-52-0-247-64.compute-1.amazonaws.com\";\n\t}", "private void initialize() {\n this.setLayout(new CardLayout());\n this.setName(this.extension.getMessages().getString(\"spiderajax.options.title\"));\n \t if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {\n \t \tthis.setSize(391, 320);\n \t }\n this.add(getPanelProxy(), getPanelProxy().getName()); \n \t}", "public void configure(URLConnection c) {\n }", "@Override\n public void initialize(ConfigurableApplicationContext applicationContext) {\n\n System.out.println(\"========ApplicationContextInitializer===================\");\n\n ConfigurableEnvironment environment = applicationContext.getEnvironment();\n\n\n MutablePropertySources propertySources = environment.getPropertySources();\n\n // 模拟远程拉配置信息\n Map<String, Object> config = ConfigServer.getRemoteConfig();\n\n MapPropertySource propertySource = new MapPropertySource(\"test-config\", config);\n propertySources.addFirst(propertySource);\n }", "@PostConstruct\n public void init() {\n try {\n this.host = config.getConnectionHost();\n this.port = config.getConnectionPort();\n this.uri = config.getConnectionUri();\n } catch (final Exception e) {\n throw new IllegalStateException(\"Test failure: \" + e.getMessage(), e);\n }\n }", "public void activateOptions() {\n TopicConnectionFactory topicConnectionFactory;\n\n try {\n Context jndi;\n\n LogLog.debug(\"Getting initial context.\");\n if(initialContextFactoryName != null) {\n\tProperties env = new Properties( );\n\tenv.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactoryName);\n\tif(providerURL != null) {\n\t env.put(Context.PROVIDER_URL, providerURL);\n\t} else {\n\t LogLog.warn(\"You have set InitialContextFactoryName option but not the \"\n\t\t +\"ProviderURL. This is likely to cause problems.\");\n\t}\n\tif(urlPkgPrefixes != null) {\n\t env.put(Context.URL_PKG_PREFIXES, urlPkgPrefixes);\n\t}\n\t\n\tif(securityPrincipalName != null) {\n\t env.put(Context.SECURITY_PRINCIPAL, securityPrincipalName);\n\t if(securityCredentials != null) {\n\t env.put(Context.SECURITY_CREDENTIALS, securityCredentials);\n\t } else {\n\t LogLog.warn(\"You have set SecurityPrincipalName option but not the \"\n\t\t\t+\"SecurityCredentials. This is likely to cause problems.\");\n\t }\n\t}\t\n\tjndi = new InitialContext(env);\n } else {\n\tjndi = new InitialContext();\n }\n\n LogLog.debug(\"Looking up [\"+tcfBindingName+\"]\");\n topicConnectionFactory = (TopicConnectionFactory) lookup(jndi, tcfBindingName);\n LogLog.debug(\"About to create TopicConnection.\");\n if(userName != null) {\n\ttopicConnection = topicConnectionFactory.createTopicConnection(userName, \n\t\t\t\t\t\t\t\t password); \n } else {\n\ttopicConnection = topicConnectionFactory.createTopicConnection();\n }\n\n LogLog.debug(\"Creating TopicSession, non-transactional, \"\n\t\t +\"in AUTO_ACKNOWLEDGE mode.\");\n topicSession = topicConnection.createTopicSession(false,\n\t\t\t\t\t\t\tSession.AUTO_ACKNOWLEDGE);\n\n LogLog.debug(\"Looking up topic name [\"+topicBindingName+\"].\");\n Topic topic = (Topic) lookup(jndi, topicBindingName);\n\n LogLog.debug(\"Creating TopicPublisher.\");\n topicPublisher = topicSession.createPublisher(topic);\n \n LogLog.debug(\"Starting TopicConnection.\");\n topicConnection.start();\n\n jndi.close();\n } catch(Exception e) {\n errorHandler.error(\"Error while activating options for appender named [\"+name+\n\t\t\t \"].\", e, ErrorCode.GENERIC_FAILURE);\n }\n }", "private void initConfig() {\n Path walletPath;\n Wallet wallet;\n\n // load a CCP\n Path networkConfigPath; \n \n try {\n \t\n \tif (!isLoadFile) {\n // Load a file system based wallet for managing identities.\n walletPath = Paths.get(\"wallet\");\n wallet = Wallet.createFileSystemWallet(walletPath);\n\n // load a CCP\n networkConfigPath = Paths.get(\"\", \"..\", \"basic-network\", configFile);\n \n builder = Gateway.createBuilder();\n \n \tbuilder.identity(wallet, userId).networkConfig(networkConfigPath).discovery(false);\n \t\n \tisLoadFile = true;\n \t}\n } catch (Exception e) {\n \te.printStackTrace();\n \tthrow new RuntimeException(e);\n }\n\t}", "@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 }", "@Override\n protected List<ConfigIssue> init() {\n List<ConfigIssue> issues = super.init();\n\n // Connect to Couchbase DB\n LOG.info(\"Connecting to Couchbase \" + config.version + \" with details: \" + config.URL + \" \" + config.bucket);\n\n // Check Couchbase Version\n try {\n if (config.version == CouchbaseVersionTypes.VERSION4) {\n connector = CouchbaseConnector.getInstance(\n config.URL,\n config.bucket,\n config.bucketPassword.get()\n );\n } else {\n connector = CouchbaseConnector.getInstance(\n config.URL,\n config.bucket,\n config.userName.get(),\n config.userPassword.get()\n );\n }\n } catch (StageException e) {\n issues.add(getContext().createConfigIssue(\n \"CONNECTION\",\n \"config.URL\",\n Errors.ERROR_03,\n e.toString(),\n e\n ));\n }\n\n //Data Generator for JSON Objects to Couchbase\n DataGeneratorFactoryBuilder builder = new DataGeneratorFactoryBuilder(\n getContext(),\n DataFormat.JSON.getGeneratorFormat()\n );\n builder.setCharset(StandardCharsets.UTF_8);\n builder.setMode(Mode.MULTIPLE_OBJECTS);\n generatorFactory = builder.build();\n\n // If issues is not empty, the UI will inform the user of each configuration issue in the list.\n return issues;\n }", "private static Properties getConfiguration(\n BootstrapData bootstrapData,\n boolean reinit,\n boolean bStartDS\n ) throws Exception {\n Properties properties = null;\n bootstrapData.initSMS(bStartDS); \n if (reinit) {\n AdminUtils.initialize();\n SMSAuthModule.initialize();\n }\n \n LDAPConnection ld = null;\n DSConfigMgr dsCfg = DSConfigMgr.getDSConfigMgr();\n ServerGroup sg = dsCfg.getServerGroup(\"sms\");\n if (sg != null) {\n try {\n ld = dsCfg.getNewConnection(\"sms\", LDAPUser.Type.AUTH_ADMIN);\n } catch (LDAPServiceException e) {\n // ignore, DS is down\n }\n }\n if (ld == null) {\n return null;\n }\n \n String dsbasedn = bootstrapData.getBaseDN();\n String pwd = bootstrapData.getDsameUserPassword();\n String dsameUser = \"cn=dsameuser,ou=DSAME Users,\" + dsbasedn;\n String instanceName = bootstrapData.getInstanceName();\n \n SSOToken ssoToken = getSSOToken(dsbasedn, dsameUser,\n Crypt.decode(pwd, Crypt.getHardcodedKeyEncryptor()));\n try {\n properties = ServerConfiguration.getServerInstance(\n ssoToken, instanceName);\n if (properties != null) {\n SystemProperties.initializeProperties(\n properties, true, false);\n String serverConfigXML =\n ServerConfiguration.getServerConfigXML(\n ssoToken, instanceName);\n Crypt.reinitialize();\n BootstrapData.loadServerConfigXML(serverConfigXML);\n SMSEntry.initializeClass();\n AdminUtils.initialize();\n SMSAuthModule.initialize();\n SystemProperties.initializeProperties(\n properties, true, true);\n DebugPropertiesObserver.getInstance().notifyChanges();\n SMSPropertiesObserver.getInstance().notifyChanges();\n SystemProperties.setServerInstanceName(instanceName);\n \n // ConfigurationObserver is already added when \n // DebugPropertiesObserver.getInstance().notifyChanges();\n // is called. Adding again causes 2 notification events\n // to be sent.\n // ServiceConfigManager scm = new ServiceConfigManager(\n // Constants.SVC_NAME_PLATFORM, (SSOToken)\n // AccessController.doPrivileged(\n // AdminTokenAction.getInstance()));\n // scm.addListener(ConfigurationObserver.getInstance());\n }\n } catch (SMSException e) {\n //ignore. product is not configured yet.\n properties = null;\n }\n return properties;\n }", "private void realBootstrap() {\r\n\t\tString inputMsg = \"{\"\r\n\t\t\t\t+ \"'id': 0, \"\r\n\t\t\t\t+ \"'players': [\"\r\n\t\t\t\t+ \"{'id': 0, 'name': 'TestPlayer0'}, \"\r\n\t\t\t\t+ \"{'id': 1, 'name': 'TestPlayer1'},\"\r\n\t\t\t\t+ \"{'id': 2, 'name': 'TestPlayer2'},\"\r\n\t\t\t\t+ \"{'id': 3, 'name': 'TestPlayer3'},\"\r\n\t\t\t\t+ \"{'id': 4, 'name': 'TestPlayer4'},\"\r\n\t\t\t\t+ \"{'id': 5, 'name': 'TestPlayer5'},\"\r\n\t\t\t\t+ \"{'id': 6, 'name': 'TestPlayer6'},\"\r\n\t\t\t\t+ \"{'id': 7, 'name': 'TestPlayer7'},\"\r\n\t\t\t\t+ \"],\"\r\n\t\t\t\t+ \" 'playerId': 0\"\r\n\t\t\t\t+ \"}\";\r\n\t\tclient.processingMsg(new JSONObject(inputMsg));\r\n\t}", "@Override\n public void init(Map<String, String> config) {\n>>>>>>> DpStarterKit-fs:starter/src/main/java/com/datapipeline/starter/ConsoleOutputSinkPipe.java\n config.forEach((k, v) -> System.out.println(\"Key: \" + k + \" / Value: \" + v));\n String host = config.get(\"host\");\n String port = config.get(\"port\");\n MongoDBHelper.INSTANCE.getMongoClient(host, Integer.valueOf(port));\n }", "@Deprecated\n @GET\n @Path(\"bootstrap\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response bootstrap () {\n Map m = new HashMap();\n // m.put(\"settings\", new UserSettings().toObjectMap());\n m.put(\"ql\", BeansFactory.getKustvaktContext().getConfiguration()\n .getQueryLanguages());\n m.put(\"SortTypes\", null); // types of sorting that are supported!\n m.put(\"version\", ServiceInfo.getInfo().getVersion());\n return Response.ok(JsonUtils.toJSON(m)).build();\n }", "private void setOptions() {\n cliOptions = new Options();\n cliOptions.addOption(Option.builder(\"p\")\n .required(false)\n .hasArg()\n .desc(\"Paramaters file\")\n .type(String.class)\n .build());\n cliOptions.addOption(Option.builder(\"P\")\n .required(false)\n .hasArg()\n .desc(\"Overwrite of one or more parameters provided by file.\")\n .type(String.class)\n .hasArgs()\n .build());\n cliOptions.addOption(Option.builder(\"H\")\n .required(false)\n .desc(\"Create a parameter file model on the classpath.\")\n .type(String.class)\n .build());\n }", "public Options initOptions() {\n\n\t\tOptions privateOptions = new Options();\n\n\t\t//Algorithm options\n\t\t//Option algorithm = new Option(\"a\", \"algorithm\", true, \"Specify the algorithm to use during the alignment\");\n\t\t//algorithm.setArgName(\"mem | aln | bwasw\");\n\n\t\t//options.addOption(algorithm);\n\n\t\tOptionGroup algorithm = new OptionGroup();\n\n\t\tOption mem = new Option(\"m\",\"mem\", false,\"The MEM algorithm will be used\");\n\t\talgorithm.addOption(mem);\n\n\t\tOption aln = new Option(\"a\",\"aln\", false,\"The ALN algorithm will be used\");\n\t\talgorithm.addOption(aln);\n\n\t\tOption bwasw = new Option(\"b\", \"bwasw\", false, \"The bwasw algorithm will be used\");\n\t\talgorithm.addOption(bwasw);\n\n\t\tprivateOptions.addOptionGroup(algorithm);\n\n\t\t//Paired or single reads\n\t\t//Option reads = new Option(\"r\", \"reads\", true, \"Type of reads to use during alignment\");\n\t\t//reads.setArgName(\"paired | single\");\n\n\t\t//options.addOption(reads);\n\t\tOptionGroup reads = new OptionGroup();\n\n\t\tOption paired = new Option(\"p\", \"paired\", false, \"Paired reads will be used as input FASTQ reads\");\n\t\treads.addOption(paired);\n\n\t\tOption single = new Option(\"s\", \"single\", false, \"Single reads will be used as input FASTQ reads\");\n\t\treads.addOption(single);\n\n\t\tprivateOptions.addOptionGroup(reads);\n\n\t\t// Options to BWA\n\t\tOptionGroup bwaOptionsGroup = new OptionGroup();\n\t\tOption bwaArgs = new Option(\"w\", \"bwa\", true, \"Arguments passed directly to BWA\");\n\t\tbwaArgs.setArgName(\"\\\"BWA arguments\\\"\");\n\n\t\tbwaOptionsGroup.addOption(bwaArgs);\n\n\t\tprivateOptions.addOptionGroup(bwaOptionsGroup);\n\n\t\t//Index\n\t\tOptionGroup indexGroup = new OptionGroup();\n\t\tOption index = new Option(\"i\", \"index\", true, \"Prefix for the index created by bwa to use - setIndexPath(string)\");\n\t\tindex.setArgName(\"Index prefix\");\n\t\tindex.setRequired(true);\n\n\t\tindexGroup.addOption(index);\n\n\t\tprivateOptions.addOptionGroup(indexGroup);\n\n\t\t//Partition number\n\t\tOptionGroup sparkGroup = new OptionGroup();\n\t\tOption partitions = new Option(\"n\", \"partitions\", true,\n\t\t\t\t\"Number of partitions to divide input - setPartitionNumber(int)\");\n\t\tpartitions.setArgName(\"Number of partitions\");\n\n\t\tsparkGroup.addOption(partitions);\n\n\t\tprivateOptions.addOptionGroup(sparkGroup);\n\n\n\t\tOptionGroup reducerGroup = new OptionGroup();\n\t\tOption reducer = new Option(\"r\", \"reducer\", false, \"The program is going to merge all the final results in a reducer phase\");\n\n\t\treducerGroup.addOption(reducer);\n\n\t\tprivateOptions.addOptionGroup(reducerGroup);\n\n\t\t/* OptionGroup sorting = new OptionGroup();\n\n\t\tOption hdfs = new Option(\"f\", \"hdfs\", false, \"The HDFS is used to perform the input FASTQ reads sort\");\n\t\tsorting.addOption(hdfs);\n\n\t\tOption spark = new Option(\"k\", \"spark\", false, \"the Spark engine is used to perform the input FASTQ reads sort\");\n\t\tsorting.addOption(spark);\n\n\t\tprivateOptions.addOptionGroup(sorting);\n\t\t*/\n\t\t// Help\n\t\tOptionGroup helpGroup = new OptionGroup();\n\t\tOption help = new Option(\"h\", \"help\", false, \"Shows this help\");\n\n\t\thelpGroup.addOption(help);\n\n\t\tprivateOptions.addOptionGroup(helpGroup);\n\n\t\treturn privateOptions;\n\t}", "private void setDefaultOnRawConn(Connection rawConn) {\r\n try {\r\n rawConn.setAutoCommit(poolConfig.isDefaultAutoCommit());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})failed to set default on executing 'setAutoCommit',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})failed to set default on executing 'setAutoCommit'\", poolName);\r\n }\r\n\r\n try {\r\n rawConn.setTransactionIsolation(poolConfig.getDefaultTransactionIsolationCode());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setTransactionIsolation',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setTransactionIsolation'\", poolName);\r\n }\r\n\r\n try {\r\n rawConn.setReadOnly(poolConfig.isDefaultReadOnly());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setReadOnly',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setReadOnly'\", poolName);\r\n }\r\n\r\n if (!isBlank(poolConfig.getDefaultCatalog())) {\r\n try {\r\n rawConn.setCatalog(poolConfig.getDefaultCatalog());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setCatalog',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setCatalog'\", poolName);\r\n }\r\n }\r\n\r\n //for JDK1.7 begin\r\n if (supportSchema && !isBlank(poolConfig.getDefaultSchema())) {//test schema\r\n try {\r\n rawConn.setSchema(poolConfig.getDefaultSchema());\r\n } catch (Throwable e) {\r\n supportSchema = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'schema',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'schema'\", poolName);\r\n }\r\n }\r\n\r\n if (supportNetworkTimeout) {//test networkTimeout\r\n try {//set networkTimeout\r\n this.networkTimeout = rawConn.getNetworkTimeout();\r\n if (networkTimeout < 0) {\r\n supportNetworkTimeout = false;\r\n commonLog.warn(\"BeeCP({})driver not support 'networkTimeout'\", poolName);\r\n } else {\r\n rawConn.setNetworkTimeout(this.getNetworkTimeoutExecutor(), networkTimeout);\r\n }\r\n } catch (Throwable e) {\r\n supportNetworkTimeout = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'networkTimeout',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'networkTimeout'\", poolName);\r\n }\r\n }\r\n\r\n if (this.supportIsValid) {//test isValid\r\n try {//test Connection.isValid\r\n if (rawConn.isValid(connectionTestTimeout)) {\r\n this.connectionTester = new ConnValidTester();\r\n } else {\r\n supportIsValid = false;\r\n commonLog.warn(\"BeeCP({})driver not support 'isValid'\", poolName);\r\n }\r\n } catch (Throwable e) {\r\n supportIsValid = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'isValid',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'isValid'\", poolName);\r\n\r\n Statement st = null;\r\n try {\r\n st = rawConn.createStatement();\r\n st.setQueryTimeout(connectionTestTimeout);\r\n } catch (Throwable ee) {\r\n supportQueryTimeout = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'queryTimeout',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'queryTimeout'\", poolName);\r\n } finally {\r\n if (st != null) oclose(st);\r\n }\r\n }\r\n }\r\n //for JDK1.7 end\r\n }", "public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}", "private static void init() {\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\r\n }" ]
[ "0.6580267", "0.642084", "0.6185133", "0.603646", "0.5807243", "0.57621133", "0.57526946", "0.56517583", "0.5581851", "0.5564333", "0.55438393", "0.55307287", "0.5507309", "0.54349196", "0.54032534", "0.53569716", "0.52938", "0.52806264", "0.52798444", "0.52530485", "0.52434963", "0.52335066", "0.52316207", "0.5221457", "0.5215583", "0.5214437", "0.52142555", "0.5203479", "0.5198337", "0.5192219", "0.51905644", "0.5166532", "0.5161097", "0.51570845", "0.51059854", "0.5105174", "0.5103813", "0.5095552", "0.50922686", "0.50876576", "0.5087289", "0.5087074", "0.50843", "0.50611204", "0.5045975", "0.5042588", "0.50424004", "0.50356436", "0.50038856", "0.5002273", "0.4997225", "0.49967557", "0.49955004", "0.49923754", "0.4991392", "0.49871075", "0.4976232", "0.49741414", "0.4971414", "0.4969222", "0.49622986", "0.4947964", "0.49453133", "0.4939685", "0.49260595", "0.492293", "0.49223274", "0.49116984", "0.49063486", "0.48992547", "0.48934543", "0.48827907", "0.48540762", "0.48513335", "0.4844302", "0.4838143", "0.48299342", "0.4826928", "0.48238832", "0.48229215", "0.48021817", "0.4801255", "0.48001704", "0.47933435", "0.47866815", "0.47815114", "0.47814572", "0.47756934", "0.47739884", "0.47721753", "0.47715962", "0.4769435", "0.4754214", "0.4747437", "0.47465447", "0.4745943", "0.473941", "0.47367746", "0.47278303", "0.47241113", "0.47234908" ]
0.0
-1
Find Jetty's TLS NPN/ALPN extensions and attempt to use them
private static boolean installJettyTLSProtocolSelection(final SSLEngine engine, final SettableFuture<Void> protocolNegotiated) { for (String protocolNegoClassName : JETTY_TLS_NEGOTIATION_IMPL) { try { Class<?> negoClass; try { negoClass = Class.forName(protocolNegoClassName); } catch (ClassNotFoundException ignored) { // Not on the classpath. log.warningfmt("Jetty extension %s not found", protocolNegoClassName); continue; } Class<?> providerClass = Class.forName(protocolNegoClassName + "$Provider"); Class<?> clientProviderClass = Class.forName(protocolNegoClassName + "$ClientProvider"); Method putMethod = negoClass.getMethod("put", SSLEngine.class, providerClass); final Method removeMethod = negoClass.getMethod("remove", SSLEngine.class); putMethod.invoke(null, engine, Proxy.newProxyInstance( Http2Client.class.getClassLoader(), new Class[]{clientProviderClass}, new InvocationHandler() { @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { String methodName = method.getName(); switch (methodName) { case "supports": // both return true; case "unsupported": // both removeMethod.invoke(null, engine); protocolNegotiated.setException( new IllegalStateException("ALPN/NPN not supported by server")); return null; case "protocols": // ALPN only return ImmutableList.of(HTTP_VERSION_NAME); case "selected": // ALPN only // Only 'supports' one protocol so we know what was 'selected. removeMethod.invoke(null, engine); protocolNegotiated.set(null); return null; case "selectProtocol": // NPN only @SuppressWarnings("unchecked") List<String> names = (List<String>) args[0]; for (String name : names) { if (name.startsWith(HTTP_VERSION_NAME)) { protocolNegotiated.set(null); return name; } } protocolNegotiated.setException( new IllegalStateException("Protocol not available via ALPN/NPN: " + names)); removeMethod.invoke(null, engine); return null; } throw new IllegalStateException("Unknown method " + methodName); } })); return true; } catch (Exception e) { log.severefmt(e, "Unable to initialize protocol negotation for %s", protocolNegoClassName); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n @Generated\n @Selector(\"negotiatedTLSProtocolVersion\")\n public native NSNumber negotiatedTLSProtocolVersion();", "private void registerCustomProtocolHandler() {\n try {\n URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory() {\n @Override\n public URLStreamHandler createURLStreamHandler(String protocol) {\n if (\"https\".equals(protocol)) {\n return new sun.net.www.protocol.https.Handler() {\n @Override\n protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {\n // Leaving sysout comments here for debugging and clarity if the tool does break again because of an Okta Update\n //System.out.format(\"openConnection %s (%s, %s)\\n\", url, url.getHost(), url.getPath());\n\n final HttpsURLConnectionImpl httpsURLConnection = (HttpsURLConnectionImpl) super.openConnection(url, proxy);\n if (\"artisan.okta.com\".equals(url.getHost()) && \"/home/amazon_aws/0oad7khqw5gSO701p0x7/272\".equals(url.getPath())) {\n\n return new URLConnection(url) {\n @Override\n public void connect() throws IOException {\n httpsURLConnection.connect();\n }\n\n public InputStream getInputStream() throws IOException {\n byte[] content = IOUtils.toByteArray(httpsURLConnection.getInputStream());\n String contentAsString = new String(content, \"UTF-8\");\n\n //System.out.println(\"########################## got stream content ##############################\");\n //System.out.println(contentAsString);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //contentAsString = contentAsString.replaceAll(\",\\\"ENG_ENABLE_SCRIPT_INTEGRITY\\\"\", \"\"); // nested SRIs?\n baos.write(contentAsString.replaceAll(\"integrity ?=\", \"integrity.disabled=\").getBytes(\"UTF-8\"));\n return new ByteArrayInputStream(baos.toByteArray());\n }\n\n public OutputStream getOutputStream() throws IOException {\n return httpsURLConnection.getOutputStream();\n }\n\n };\n\n } else {\n return httpsURLConnection;\n }\n }\n\n };\n }\n return null;\n }\n });\n } catch (Throwable t) {\n System.out.println(\"Unable to register custom protocol handler\");\n }\n }", "@Override\r\n public SSLImplementation getSslImplementation() {\n return null;\r\n }", "@Nullable\n @Generated\n @Selector(\"negotiatedTLSCipherSuite\")\n public native NSNumber negotiatedTLSCipherSuite();", "public String name () {\n return \"tls\";\n }", "private static Socket m39192a(Socket socket) {\n if (socket instanceof SSLSocket) {\n SSLSocket sSLSocket = (SSLSocket) socket;\n ArrayList arrayList = new ArrayList(Arrays.asList(sSLSocket.getSupportedProtocols()));\n arrayList.retainAll(Arrays.asList(new String[]{\"TLSv1.2\", \"TLSv1.1\", \"TLSv1\"}));\n sSLSocket.setEnabledProtocols((String[]) arrayList.toArray(new String[arrayList.size()]));\n }\n return socket;\n }", "private static String sslContextAlgorithm(List<String> supportedProtocols) {\n if (supportedProtocols.isEmpty()) {\n throw new IllegalArgumentException(\"no SSL/TLS protocols have been configured\");\n }\n for (Entry<String, String> entry : ORDERED_PROTOCOL_ALGORITHM_MAP.entrySet()) {\n if (supportedProtocols.contains(entry.getKey())) {\n return entry.getValue();\n }\n }\n throw new IllegalArgumentException(\"no supported SSL/TLS protocol was found in the configured supported protocols: \"\n + supportedProtocols);\n }", "public void setSslProtocol(String strUrl) throws Exception {\r\n \r\n URL url = new URL(strUrl);\r\n String host = url.getHost();\r\n int port = url.getPort();\r\n\r\n if (port <= 0) {\r\n port = SSL_PORT;\r\n }\r\n setSslHostPort(host, port);\r\n\r\n }", "private ExtendedOpHandlerBean getTlsExtendedOpHandlerBean()\n {\n // Getting the LDAP Server\n LdapServerBean ldapServerBean = getLdapServerBean();\n\n // Getting the list of extended operation handlers\n List<ExtendedOpHandlerBean> extendedOpHandlers = ldapServerBean.getExtendedOps();\n \n for ( ExtendedOpHandlerBean extendedOpHandlerBean : extendedOpHandlers )\n {\n // Looking for the Start TLS extended operation handler \n if ( START_TLS_HANDLER_ID.equalsIgnoreCase( extendedOpHandlerBean.getExtendedOpId() ) )\n {\n return extendedOpHandlerBean;\n }\n }\n\n // We haven't found a corresponding extended operation handler,\n // we need to create it\n ExtendedOpHandlerBean extendedOpHandlerBean = new ExtendedOpHandlerBean();\n extendedOpHandlerBean.setExtendedOpId( START_TLS_HANDLER_ID );\n extendedOpHandlerBean.setExtendedOpHandlerClass( START_TLS_HANDLER_CLASS );\n extendedOpHandlerBean.setEnabled( false );\n extendedOpHandlers.add( extendedOpHandlerBean );\n \n return extendedOpHandlerBean;\n }", "public boolean isTls() {\n return tls;\n }", "private static void setupSSL() {\n\t\ttry {\n\t\t\tTrustManager[] trustAllCerts = createTrustAllCertsManager();\n\t\t\tSSLContext sslContext = SSLContext.getInstance(SSL_CONTEXT_PROTOCOL);\n\t\t\tSecureRandom random = new java.security.SecureRandom();\n\t\t\tsslContext.init(null, trustAllCerts, random);\n\t\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tLOGGER.error(INVALID_PROTOCOL_ERROR_MESSAGE, e);\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t} catch (GeneralSecurityException e) {\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}\n\n\t}", "private void m1388b(SSLSocket sSLSocket) {\n sSLSocket.setEnabledProtocols(new String[]{\"TLSv1.2\"});\n }", "@Test\n\tpublic void testExtensionNegotiation() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"0\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tMap<String,Integer> extensions = new HashMap<String,Integer>();\n\t\textensions.put (PeerProtocolConstants.EXTENSION_PEER_METADATA, (int)PeerProtocolConstants.EXTENDED_MESSAGE_TYPE_PEER_METADATA);\n\t\tBDictionary extra = new BDictionary();\n\t\textra.put (\"metadata_size\", BEncoder.encode (pieceDatabase.getInfo().getDictionary()).length);\n\t\textensions.put (\"bl_ah\", 1);\n\t\tMap<String,Integer> expectedExtensions = new HashMap<String,Integer>();\n\t\texpectedExtensions.put (PeerProtocolConstants.EXTENSION_PEER_METADATA, (int)PeerProtocolConstants.EXTENDED_MESSAGE_TYPE_PEER_METADATA);\n\t\tBitField wantedPieces = pieceDatabase.getPresentPieces().not();\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), mock (ExtensionManager.class));\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (false);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), false, true);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.bitfieldMessage (wantedPieces));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.extensionHandshakeMessage (extensions, null));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.extensionHandshakeMessage (expectedExtensions, extra));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tverify(peerSetContext.extensionManager).offerExtensionsToPeer (handler);\n\t\tverify(peerSetContext.extensionManager).enableDisablePeerExtensions (\n\t\t\t\teq (handler),\n\t\t\t\teq (new HashSet<String> (Arrays.asList (PeerProtocolConstants.EXTENSION_PEER_METADATA, \"bl_ah\"))),\n\t\t\t\teq (new HashSet<String>()),\n\t\t\t\targThat (new ArgumentMatcher<BDictionary>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean matches (Object argument) {\n\t\t\t\t\t\treturn ((BDictionary)argument).size() == 0;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t);\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}", "public String getTlsCertPath();", "protected String getDefaultProtocols() {\r\n\t\tString sp = System.getProperty(\"transport.client.protocol\");\r\n\t\tif (isEmpty(sp))\r\n\t\t\tsp = \"SSL_TLS,TLS,SSL\";\r\n\t\treturn sp;\r\n\t}", "public java.util.Map<java.lang.String, java.security.cert.Extension> getExtensions() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getExtensions():java.util.Map<java.lang.String, java.security.cert.Extension>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getExtensions():java.util.Map<java.lang.String, java.security.cert.Extension>\");\n }", "@Test\n public void testWildflyOpenSSL() throws Throwable {\n assumeThat(hasWildfly).isTrue();\n assertThat(bindSocketFactory(Default))\n .describedAs(\"Sockets from mode \" + Default)\n .isIn(OpenSSL, Default_JSSE);\n }", "public static final void registerTrustingSSLManager(String protocol) {\n Validate.notBlank(protocol, \"Invalid SSL protocol\");\n\n // Check SSL SocketFactory\n SSLSocketFactory trustingFact= getTrustingSocketFactory(protocol);\n SSLSocketFactory curFactory= HttpsURLConnection.getDefaultSSLSocketFactory();\n\n // Trusting factory not set?\n if (curFactory != trustingFact) {\n LOG.debug(\"Installing default trusting SSLSocketFactory!\");\n HttpsURLConnection.setDefaultSSLSocketFactory(trustingFact);\n }\n\n // Check HostnameVerifier\n HostnameVerifier trustingVerifier= getTrustingHostnameVerifier();\n HostnameVerifier curVerifier= HttpsURLConnection.getDefaultHostnameVerifier();\n\n // Install the all-trusting host verifier?\n if (curVerifier != trustingVerifier) {\n LOG.debug(\"Installing default trusting HostnameVertifier!\");\n HttpsURLConnection.setDefaultHostnameVerifier(trustingVerifier);\n }\n\n }", "Future<ListProtocolsResponse> listProtocols(\n ListProtocolsRequest request,\n AsyncHandler<ListProtocolsRequest, ListProtocolsResponse> handler);", "void reproduce(HandshakeContext context,\n SSLExtension[] extensions) throws IOException {\n for (SSLExtension extension : extensions) {\n if (extension.networkProducer == null) {\n if (SSLLogger.isOn && SSLLogger.isOn(\"ssl,handshake\")) {\n SSLLogger.warning(\n \"Ignore, no extension producer defined: \" +\n extension.name);\n }\n continue;\n }\n\n byte[] encoded = extension.produce(context, handshakeMessage);\n if (encoded != null) {\n if (extMap.containsKey(extension)) {\n byte[] old = extMap.replace(extension, encoded);\n if (old != null) {\n encodedLength -= old.length + 4;\n }\n } else {\n extMap.put(extension, encoded);\n }\n encodedLength += encoded.length + 4;\n // extension_type (2)\n // extension_data length(2)\n } else if (SSLLogger.isOn && SSLLogger.isOn(\"ssl,handshake\")) {\n // The extension is not available in the context.\n SSLLogger.fine(\n \"Ignore, context unavailable extension: \" +\n extension.name);\n }\n }\n }", "public interface TlsPolicy {\n \n boolean providesConfidentiality();\n \n boolean providesAuthentication();\n \n boolean providesIntegrity();\n \n\n X509ExtendedTrustManager getTrustManager();\n\n /**\n * NOTE: when using HttpsURLConnection, the hostname verifier is only \n * called if the server certificate does not match the address used to\n * connect. \n * When using Apache's StrictHostnameVerifier, the failure\n * message looks like \"HTTPS hostname wrong: should be <192.168.1.100>\"\n * When using our DenyAllHostnameVerifier, the failure message\n * looks like \"DENY-ALL\"\n * \n * \n * @return \n */\n X509HostnameVerifier getHostnameVerifier();\n \n /**\n * Due to the architecture of the Java SSLContext and the workaround for\n * connection pooling with TlsPolicyManager, the protocol selector must\n * be known prior to using the TlsPolicyManager. The TlsConnection \n * class provides a convenience function for creating the SSLContext \n * using the protocol selector.\n * be known \n * @return \n */\n ProtocolSelector getProtocolSelector();\n}", "List<String> protocols();", "public boolean hasExtensions() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.hasExtensions():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.hasExtensions():boolean\");\n }", "public String getTlsCert();", "@Override\n protected SessionTicketTLSExtensionMessage createExtensionMessage() {\n return new SessionTicketTLSExtensionMessage();\n }", "private ApplicationProtocolConfig()\r\n/* 40: */ {\r\n/* 41: 92 */ this.supportedProtocols = Collections.emptyList();\r\n/* 42: 93 */ this.protocol = Protocol.NONE;\r\n/* 43: 94 */ this.selectorBehavior = SelectorFailureBehavior.CHOOSE_MY_LAST_PROTOCOL;\r\n/* 44: 95 */ this.selectedBehavior = SelectedListenerFailureBehavior.ACCEPT;\r\n/* 45: */ }", "public int configTLS( String url ) {\n if (tlsIsConfigured) {\n log.debug(\"Already configured! Omit call of HttpCfgService!\");\n return CFG_RSP_ALREADY;\n }\n try {\n int rsp = ((Integer) server.invoke(xdsHttpCfgServiceName,\n \"configTLS\",\n new Object[] { url },\n new String[] { String.class.getName() } ) ).intValue();\n if ( rsp == CFG_RSP_OK || rsp == CFG_RSP_ALREADY ) {\n tlsIsConfigured = true;\n }\n log.debug(\"configTLS of HttpCfgService return (1..OK, 2..already configured, 0..ignored, -1..error):\"+rsp);\n return rsp;\n } catch ( Exception x ) {\n log.error( \"Exception occured in configTLS: \"+x.getMessage(), x );\n return CFG_RSP_ERROR;\n }\n }", "public void setTlsCertPath(String tlsCertPath);", "boolean isUsingTPExtension();", "long getCryptProviderTypeExt();", "public interface TusExtension {\n\n /**\n * The name of the Tus extension that can be used to disable or enable the extension.\n *\n * @return The name of the extension\n */\n String getName();\n\n /**\n * Validate the given request.\n *\n * @param method The HTTP method of this request (taking into account overrides)\n * @param servletRequest The HTTP request\n * @param uploadStorageService The current upload storage service\n * @param ownerKey Identifier of the owner of this upload\n * @throws TusException When the request is invalid\n * @throws IOException When unable to read upload information\n */\n void validate(\n HttpMethod method,\n HttpServletRequest servletRequest,\n UploadStorageService uploadStorageService,\n String ownerKey)\n throws TusException, IOException;\n\n /**\n * Process the given request.\n *\n * @param method The HTTP method of this request (taking into account overrides)\n * @param servletRequest The HTTP request\n * @param servletResponse The HTTP response\n * @param uploadStorageService The current upload storage service\n * @param ownerKey Identifier of the owner of this upload\n * @throws TusException When processing the request fails\n * @throws IOException When unable to read upload information\n */\n void process(\n HttpMethod method,\n TusServletRequest servletRequest,\n TusServletResponse servletResponse,\n UploadStorageService uploadStorageService,\n String ownerKey)\n throws IOException, TusException;\n\n /**\n * If a request is invalid, or when processing the request fails, it might be necessary to react\n * to this failure. This method allows extensions to react to validation or processing failures.\n *\n * @param method The HTTP method of this request (taking into account overrides)\n * @param servletRequest The HTTP request\n * @param servletResponse The HTTP response\n * @param uploadStorageService The current upload storage service\n * @param ownerKey Identifier of the owner of this upload\n * @throws TusException When handling the error fails\n * @throws IOException When unable to read upload information\n */\n void handleError(\n HttpMethod method,\n TusServletRequest servletRequest,\n TusServletResponse servletResponse,\n UploadStorageService uploadStorageService,\n String ownerKey)\n throws IOException, TusException;\n\n /**\n * The minimal list of HTTP methods that this extension needs to function properly.\n *\n * @return The list of HTTP methods required by this extension\n */\n Collection<HttpMethod> getMinimalSupportedHttpMethods();\n}", "public void setTls(boolean tls) {\n this.tls = tls;\n }", "protected void buildProtocols() {\n\n if (httpProtocol == null) {\n\n RESTProtocol p = new RESTProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n httpProtocol = p;\n\n }\n\n if (legacyProtocol == null) {\n\n LegacyProtocol p = new LegacyProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n legacyProtocol = p;\n\n }\n }", "public static final void registerTrustingSSLManager() {\n registerTrustingSSLManager(\"SSL\");\n }", "public static String getDefaultMtlsEndpoint() {\n return \"biglake.mtls.googleapis.com:443\";\n }", "@Test\n\tpublic void testExtensionHandshake() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"0\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tMap<String,Integer> extensions = new HashMap<String,Integer>();\n\t\textensions.put (PeerProtocolConstants.EXTENSION_PEER_METADATA, (int)PeerProtocolConstants.EXTENDED_MESSAGE_TYPE_PEER_METADATA);\n\t\tBDictionary extra = new BDictionary();\n\t\textra.put (\"metadata_size\", BEncoder.encode (pieceDatabase.getInfo().getDictionary()).length);\n\t\tBitField wantedPieces = pieceDatabase.getPresentPieces().not();\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), mock (ExtensionManager.class));\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (false);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), false, true);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.bitfieldMessage (wantedPieces));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.extensionHandshakeMessage (extensions, extra));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tverify(peerSetContext.extensionManager).offerExtensionsToPeer (handler);\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}", "public Protocol getProtocol(String sName);", "public static Set<String> getSupportedProtocols() {\n return SUPPORTED_PROTOCOLS;\n }", "public String getSslProtocolsProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_SSL_PROTOCOLS);\n }", "public SSLEngine openSSLEngine()\n {\n SSLSocketProvider.Dependencies deps = getSocketProvider().getDependencies();\n SSLEngine engine = deps.getSSLContext().createSSLEngine();\n String[] asCiphers = deps.getEnabledCipherSuites();\n String[] asProtocols = deps.getEnabledProtocolVersions();\n if (asCiphers != null)\n {\n engine.setEnabledCipherSuites(asCiphers);\n }\n\n if (asProtocols != null)\n {\n engine.setEnabledProtocols(asProtocols);\n }\n\n switch (deps.getClientAuth())\n {\n case wanted:\n engine.setNeedClientAuth(false);\n engine.setWantClientAuth(true);\n break;\n case required:\n engine.setWantClientAuth(true);\n engine.setNeedClientAuth(true);\n break;\n case none:\n default:\n engine.setWantClientAuth(false);\n engine.setNeedClientAuth(false);\n break;\n }\n\n return engine;\n }", "public TrustingSSLSocketFactory() throws SSLException {\n\t\tSecurity.addProvider(new com.sun.net.ssl.internal.ssl.Provider());\n\t\tSystem.setProperty(\"java.protocol.handler.pkgs\", \"com.sun.net.ssl.internal.www.protocol\");\n\t\ttry {\n\t\t\tSSLContext sslContext;\n\t\t\tsslContext = SSLContext.getInstance(\"SSLv3\");\n\t\t\tsslContext.init(null, new TrustManager[]{new UtilSSLSocketFactory.TrustingX509TrustManager()}, null);\n\t\t\tfactory = sslContext.getSocketFactory();\n\t\t} catch (NoSuchAlgorithmException nsae) {\n\t\t\tthrow new SSLException(\"Unable to initialize the SSL context: \", nsae);\n\t\t} catch (KeyManagementException kme) {\n\t\t\tthrow new SSLException(\"Unable to register a trust manager: \", kme);\n\t\t}\n\t\tciphers = factory.getDefaultCipherSuites();\n\t}", "List<String> getSubProtocols();", "protected Iterable<JStachioExtension> extensions(Jooby application) {\n return ServiceLoader.load(\n JStachioExtension.class, application.getEnvironment().getClassLoader());\n }", "@Before\n public void setup() throws Exception {\n ClassLoader loader = this.getClass().getClassLoader();\n try {\n loader.loadClass(\"org.wildfly.openssl.OpenSSLProvider\");\n hasWildfly = true;\n } catch (ClassNotFoundException e) {\n hasWildfly = false;\n }\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "String getProtocol();", "boolean hasSocketProtocol();", "private void init()\n {\n SystrayActivator.bundleContext\n .addServiceListener(new ProtocolProviderServiceListener());\n \n ServiceReference[] protocolProviderRefs = null;\n try\n {\n protocolProviderRefs\n = SystrayActivator.bundleContext.getServiceReferences(\n ProtocolProviderService.class.getName(),null);\n }\n catch (InvalidSyntaxException ex)\n {\n // this shouldn't happen since we're providing no parameter string\n // but let's log just in case.\n logger .error(\"Error while retrieving service refs\", ex);\n return;\n }\n \n // in case we found any\n if (protocolProviderRefs != null)\n {\n \n for (int i = 0; i < protocolProviderRefs.length; i++)\n {\n ProtocolProviderService provider\n = (ProtocolProviderService) SystrayActivator.bundleContext\n .getService(protocolProviderRefs[i]);\n \n this.addAccount(provider);\n }\n }\n }", "private static SslContextBuilder sslContextBuilder(final boolean nativeTlsEnabled) {\n SslProvider provider = nativeTlsEnabled && InitOnDemandHolder.OPENSSL_AVAILABLE ? SslProvider.OPENSSL : SslProvider.JDK;\n return SslContextBuilder.forClient().sslProvider(provider);\n }", "public void writeToTransport(INetworkContext context, ByteBuffer buffer) throws MqttsnException {\n if(context.getReceivePort() == options.getSecurePort()){\n\n //-- use the DTLS version...\n\n } else {\n super.writeToTransport(context, buffer);\n }\n }", "public List<String> supportedProtocols()\r\n/* 69: */ {\r\n/* 70:162 */ return this.supportedProtocols;\r\n/* 71: */ }", "int getProtocolVersion();", "@Test(timeout=300000)\n public void test2() throws Throwable {\n AuthenticatedServerSocketFactory authenticatedServerSocketFactory0 = new AuthenticatedServerSocketFactory((SSLServerSocketFactory) null);\n // Undeclared exception!\n try { \n authenticatedServerSocketFactory0.getSupportedCipherSuites();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.objectweb.cjdbc.common.net.AuthenticatedServerSocketFactory\", e);\n }\n }", "@java.lang.Override\n public boolean hasProtocol() {\n return protocol_ != null;\n }", "@Test\n public void skipSslTest() {\n // TODO: test skipSsl\n }", "public static void main(String args[]) {\n int saveCerts = 0;\n boolean noVerify = false;\n String proxyHost = \"127.0.0.1\";\n int proxyPort = 0;\n ProxyType ptype = ProxyType.NONE;\n boolean error = false;\n Getopt g = new Getopt(\"ssleepget\", args, \"p:y:sz\");\n try {\n int c;\n while ((c = g.getopt()) != -1) {\n switch (c) {\n case 'p':\n String s = g.getOptarg();\n int colon = s.indexOf(':');\n if (colon >= 0) {\n // Todo IPv6 [a:b:c]:4444\n proxyHost = s.substring(0, colon);\n String port = s.substring(colon + 1);\n proxyPort = Integer.parseInt(port);\n } else {\n proxyHost = s;\n // proxyPort remains default\n }\n break;\n\n case 'y':\n String y = g.getOptarg().toUpperCase(Locale.US);\n if (y.equals(\"HTTP\") || y.equals(\"HTTPS\")) {\n ptype = ProxyType.HTTP;\n } else if (y.equals(\"SOCKS4\")) {\n ptype = ProxyType.SOCKS4;\n } else if (y.equals(\"SOCKS5\")) {\n ptype = ProxyType.SOCKS5;\n } else if (y.equals(\"I2P\")) {\n ptype = ProxyType.INTERNAL;\n proxyHost = \"localhost\";\n proxyPort = 4444;\n } else {\n error = true;\n }\n break;\n\n case 's':\n saveCerts++;\n break;\n\n case 'z':\n noVerify = true;\n break;\n\n case '?':\n case ':':\n default:\n error = true;\n break;\n } // switch\n } // while\n } catch (RuntimeException e) {\n e.printStackTrace();\n error = true;\n }\n\n if (error || args.length - g.getOptind() != 1) {\n usage();\n System.exit(1);\n }\n String url = args[g.getOptind()];\n\n String saveAs = suggestName(url);\n\n SSLEepGet get;\n if (proxyHost != null) {\n if (proxyPort == 0) {\n if (ptype == ProxyType.HTTP)\n proxyPort = 8080;\n else\n proxyPort = 1080;\n }\n get = new SSLEepGet(I2PAppContext.getGlobalContext(), ptype, proxyHost, proxyPort, saveAs, url);\n } else {\n get = new SSLEepGet(I2PAppContext.getGlobalContext(), saveAs, url);\n }\n if (saveCerts > 0)\n get._saveCerts = saveCerts;\n if (noVerify)\n get._bypassVerification = true;\n get._commandLine = true;\n get.addStatusListener(get.new CLIStatusListener(1024, 40));\n if(!get.fetch(45*1000, -1, 60*1000))\n System.exit(1);\n }", "boolean hasProtocol();", "public static HashMap<String, List<String>> getExtensionsFromBindings(\n String exp)\n {\n HashMap<String, List<String>> bindingsMap = \n new HashMap<>();\n bindingsMap.put(SYS, parseExpression(SYS_PREFIX, exp));\n bindingsMap.put(USER, parseExpression(USER_PREFIX, exp));\n return bindingsMap;\n }", "public ProtocolProviderService getProtocolProvider() {\n return mPPS;\n }", "public static void loadCryptoProviders() {\n }", "@Override\n protected Pattern getServerFailurePattern() {\n return null;\n }", "public abstract T useTransportSecurity(File certChain, File privateKey);", "private String prepareExtension(final String ext) {\n if (ext.contains(\":\")) {\n return ext;\n }\n return \"org.apache.geronimo.arthur.knights:\" + ext + (ext.endsWith(\"-knight\") ? \"\" : \"-knight\") + ':' + lookupVersion();\n }", "@Override\npublic SSL_MODES getSSLMode() {\n\treturn null;\n}", "@Deprecated\n public List<V1IngressTLS> getTls();", "public String getProtocols() {\r\n\t\treturn protocols;\r\n\t}", "protected void initAvailableExtensions() {\n if (availableExtensionCache.isEmpty()) {\n GL gl = context.getGL();\n if (DEBUG) {\n System.err.println(\"!!! Pre-caching extension availability\");\n }\n String allAvailableExtensions =\n gl.glGetString(GL.GL_EXTENSIONS) + \" \" + context.getPlatformExtensionsString();\n if (DEBUG) {\n System.err.println(\"!!! Available extensions: \" + allAvailableExtensions);\n System.err.println(\"!!! GL vendor: \" + gl.glGetString(GL.GL_VENDOR));\n }\n StringTokenizer tok = new StringTokenizer(allAvailableExtensions);\n while (tok.hasMoreTokens()) {\n String availableExt = tok.nextToken().trim();\n availableExt = availableExt.intern();\n availableExtensionCache.add(availableExt);\n if (DEBUG) {\n System.err.println(\"!!! Available: \" + availableExt);\n }\n }\n \n // Put GL version strings in the table as well\n Version version = new Version(gl.glGetString(GL.GL_VERSION));\n int major = version.getMajor();\n int minor = version.getMinor();\n // FIXME: this needs to be adjusted when the major rev changes\n // beyond the known ones\n while (major > 0) {\n while (minor >= 0) {\n availableExtensionCache.add(\"GL_VERSION_\" + major + \"_\" + minor);\n if (DEBUG) {\n System.err.println(\"!!! Added GL_VERSION_\" + major + \"_\" + minor + \" to known extensions\");\n }\n --minor;\n }\n \n switch (major) {\n case 2:\n // Restart loop at version 1.5\n minor = 5;\n break;\n case 1:\n break;\n }\n \n --major;\n }\n \n // put a dummy var in here so that the cache is no longer empty even if\n // no extensions are in the GL_EXTENSIONS string\n availableExtensionCache.add(\"<INTERNAL_DUMMY_PLACEHOLDER>\");\n }\n }", "void setCryptProviderTypeExt(long cryptProviderTypeExt);", "private boolean isValidExtension(String url){\n for (String ext : IGNORED_EXTENSIONS) {\n if (url.contains(ext)) {\n return false;\n }\n }\n return true;\n }", "private static void loadExtensions( final File file,\n final ArrayList extensions )\n throws TaskException\n {\n try\n {\n final JarFile jarFile = new JarFile( file );\n final Extension[] extension =\n Extension.getAvailable( jarFile.getManifest() );\n for( int i = 0; i < extension.length; i++ )\n {\n extensions.add( extension[ i ] );\n }\n }\n catch( final Exception e )\n {\n throw new TaskException( e.getMessage(), e );\n }\n }", "private Set<Protocol> discoverSupportedProtocols() throws IOException {\n HttpHead head = new HttpHead(uri);\n head.addHeader(HttpHeaders.ACCEPT, \"text/xml, application/x-frpc\");\n HttpResponse response = httpClient.execute(head);\n // get all \"Accept\" header values as Set of strings\n Set<String> acceptHeaderValues = Arrays.stream(response.getHeaders(HttpHeaders.ACCEPT))\n .map(Header::getElements).flatMap(Arrays::stream).map(HeaderElement::getName)\n .collect(Collectors.toSet());\n // check if they contain \"application/x-frpc\" or \"text/xml\" or both\n Set<Protocol> result = EnumSet.noneOf(Protocol.class);\n if (acceptHeaderValues.contains(Protocol.FRPC.getContentType())) {\n result.add(Protocol.FRPC);\n }\n if (acceptHeaderValues.contains(Protocol.XML_RPC.getContentType())) {\n result.add(Protocol.XML_RPC);\n }\n // return the result as set of protocols supported by the server\n return result;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketProtocol getSocketProtocol();", "public boolean hasUnsupportedCriticalExtension() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.hasUnsupportedCriticalExtension():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.hasUnsupportedCriticalExtension():boolean\");\n }", "public ProtocolProviderService getProtocolProvider()\n {\n return providerService;\n }", "public boolean hasUnsupportedCriticalExtension() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.hasUnsupportedCriticalExtension():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.hasUnsupportedCriticalExtension():boolean\");\n }", "EnsureExtensionResponse ensureExtensions(EnsureExtensionRequest request);", "@Override\r\n\tpublic boolean hasVpnSupport() {\n\t\treturn false;\r\n\t}", "public Map getProtocols();", "@Stability.Internal\n public static List<String> defaultCiphers(final boolean nativeTlsEnabled) {\n if (nativeTlsEnabled && !InitOnDemandHolder.OPENSSL_AVAILABLE) {\n throw InvalidArgumentException.fromMessage(\"nativeTlsEnabled, but it is not available on this platform!\");\n }\n\n try {\n SslContextBuilder builder = SslHandlerFactory.sslContextBuilder(nativeTlsEnabled);\n return builder.build().cipherSuites();\n } catch (Exception ex) {\n throw new CouchbaseException(\"Could not get list of default ciphers\", ex);\n }\n }", "sun.security.x509.CertificateIssuerExtension getCertificateIssuerExtension() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.security.x509.X509CRLEntryImpl.getCertificateIssuerExtension():sun.security.x509.CertificateIssuerExtension, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getCertificateIssuerExtension():sun.security.x509.CertificateIssuerExtension\");\n }", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "private void asyncLoadServerCapabilities(final String url) {\n\t\tServerCapability capability = serverCapabilitiesList.get(url.toLowerCase());\n\t\tif (capability != null) {\n\t\t\treturn;\n\t\t}\n\t\t// else\n\t\t// we load it using an async thread. And we keep track of the threads in\n\t\t// order not to launch multiple threads for a identical URL\n\t\tThread t = threadsList.get(url.toLowerCase());\n\t\tif (t == null) {\n\t\t\tt = new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tServerCapability c = makeCapability(url);\n\t\t\t\t\t\tif (c != null) {\n\t\t\t\t\t\t\tserverCapabilitiesList.put(url.toLowerCase(), c);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tthreadsList.put(url.toLowerCase(), t);\n\t\t}\n\t\tif (!t.isAlive()) {\n\t\t\tt.start();\n\t\t}\n\t}", "private static SSLContext createSSLContext() {\n\t try {\n\t SSLContext context = SSLContext.getInstance(\"SSL\");\n\t if (devMode) {\n\t \t context.init( null, new TrustManager[] {new RESTX509TrustManager(null)}, null); \n\t } else {\n\t TrustManager[] trustManagers = tmf.getTrustManagers();\n\t if ( kmf!=null) {\n\t KeyManager[] keyManagers = kmf.getKeyManagers();\n\t \n\t // key manager and trust manager\n\t context.init(keyManagers,trustManagers,null);\n\t }\n\t else\n\t \t// no key managers\n\t \tcontext.init(null,trustManagers,null);\n\t }\n\t return context;\n\t } \n\t catch (Exception e) {\n\t \t logger.error(e.toString());\n\t throw new HttpClientError(e.toString());\n\t \t }\n }", "public void setTlsCert(String tlsCert);", "private Socket getSocketWithOnlySafeProtocolsEnabled(Socket socket) {\n if (!(socket instanceof SSLSocket)) {\n throw new IllegalArgumentException(\"The socket is not an instance of the SSL socket\");\n }\n SSLSocket sslSocket = (SSLSocket) socket;\n Set<String> allSupportedProtocols = new HashSet<>(Arrays.asList(sslSocket.getSupportedProtocols()));\n List<String> safeSupportedProtocols = new ArrayList<>();\n for (String safeProtocol : SAFE_PROTOCOLS) {\n if (allSupportedProtocols.contains(safeProtocol)) {\n safeSupportedProtocols.add(safeProtocol);\n }\n }\n if (safeSupportedProtocols.isEmpty()) {\n throw new SecurityException(\"No safe protocol version is supported for this SSL socket\");\n }\n sslSocket.setEnabledProtocols(safeSupportedProtocols.toArray(new String[0]));\n return sslSocket;\n }", "public String getTlsKeyPath();", "private Properties getProtocolProporties(String protocol) {\n\t\tProperties properties = new Properties();\n\t\tswitch (getProperty(protocol)) {\n\t\tcase POP3:\n\t\t\tproperties.put(\"mail.pop3.host\", getProperty(\"POP3_HOST\"));\n\t\t\tproperties.put(\"mail.pop3.port\", getProperty(\"POP3_PORT\"));\n\t\t\tproperties.put(\"mail.pop3.starttls.enable\", \"true\");\n\t\t\tbreak;\n\t\tcase SMTP:\n\t\t\tproperties.put(\"mail.smtp.port\", getProperty(\"SMTP_PORT\"));\n\t\t\tproperties.put(\"mail.smtp.host\", getProperty(\"SMTP_HOST\"));\n\t\t\t// properties.put(\"mail.smtp.ssl.enable\", \"true\");\n\t\t\tproperties.put(\"mail.smtp.auth\", \"true\");\n\t\t\tproperties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\t\tbreak;\n\t\tcase IMAP:\n\t\t\tproperties.put(\"mail.imap.user\", getProperty(\"username\"));\n\t\t\tproperties.put(\"mail.imap.host\", getProperty(\"IMAP4_HOST\"));\n\t\t\tproperties.put(\"mail.imap.port\", getProperty(\"IMAP4_PORT\"));\n\t\t\tproperties.put(\"mail.imap.ssl.enable\", \"true\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t\treturn properties;\n\t}", "public NettySslServer(@Nullable SSLConfiguration sslConfiguration) {\n this.sslConfiguration = sslConfiguration;\n }", "public static ETLgineServerJetty getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new ETLgineServerJetty();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public boolean isSslOffloaded() {\n return this.sslOffloaded;\n }", "List<HttpServletServer> getHttpServers();", "public SwitchOrder3 addRltdPtyDtls(Intermediary8 rltdPtyDtls) {\n getRltdPtyDtls().add(rltdPtyDtls);\n return this;\n }", "public static int getProtocol() {\n\t\treturn 0;\n\t}", "public static TcgProtocolBindingIdentifier getProtocolIdentifier() {\n return TcgTProtocolBindingEnum.TLS1;\n }", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public static void installTrustManagerNotValidatingCertificateChains() throws NoSuchAlgorithmException,\n KeyManagementException\n {\n // see http://code.google.com/p/misc-utils/wiki/JavaHttpsUrl\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, new TrustManager[] {createTrustManagerNotValidatingCertificateChains()}, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "public static boolean isTunnelDecodeEnabled(Context context)\n {\n return SystemPropertiesProxy.getBoolean(\n context, SYSTEM_PROP_TUNNEL_DECODE_ENABLED, false);\n }", "private String requestGet(URL url) throws CheckPasswordException {\n \n \tSSLContext ctx = null;\n \t\n \t// Try TLS algorithms until we find something we understand.\n \t// Should try from newest to oldest so that we use the most secure\n \t// TLS algorithm we can.\n \tfor(String algo : modernTls) { \n\t \ttry {\n\t \tctx = SSLContext.getInstance(algo);\n\t \tbreak;\n\t }catch(NoSuchAlgorithmException e) {\n\t \t// Move on to the next one\n\t }\n \t}\n \t\n \tif(ctx == null) {\n \t\tthrow new CheckPasswordException(\"Unable to find a supported, secure TLS version\", CheckPasswordErrorCode.BadConfiguration);\n \t}\n\n \t// The initial attempt should not count as a retry, so +1 \t\n \tfor(int attempts = getNumRetries() + 1; attempts >0; attempts--){\n\t \ttry {\n\t \t\t// Use default security controls, including certificate checks\n\t \t\tctx.init(null, null, null);\n\t \t} catch(KeyManagementException e){\n\t \t\tthrow new CheckPasswordException(\"Connection failed: could not read keystore\", e, CheckPasswordErrorCode.BadConfiguration);\n\t \t}\n\t SSLContext.setDefault(ctx);\n\t\n\t HttpsURLConnection connection;\n\t try {\n\t \tconnection = (HttpsURLConnection) url.openConnection();\n\t } catch (IOException e) {\n\t \tthrow new CheckPasswordException(\"Connection failed: HTTPS connection could not be created\", e, CheckPasswordErrorCode.BadConfiguration);\n\t }\n\t \n\t try {\n\t \tconnection.setRequestMethod(\"GET\");\n\t \tconnection.setRequestProperty(\"User-Agent\", userAgent);\n\t \tif(getApiKey() != null) {\n\t \t\tconnection.setRequestProperty(\"hibp-api-key\", getApiKey());\n\t \t}\n\t } catch (ProtocolException e) {\n\t \tthrow new CheckPasswordException(\"Connection failed: protocol exception\", e, CheckPasswordErrorCode.APICallFailure);\n\t }\n\t\n\t \n\t try {\n\t \t\n\t \t// Handle non-200 results. We can only \"fix\" a 429 Too Many Requests though.\n\t \tint status = connection.getResponseCode();\n\t \tif(status != 200) {\n\t \t\tif(status == 429) {\n\t \t\t\tString s_delay = connection.getHeaderField(\"retry-after\");\n\t \t\t\ttry {\n\t \t\t\t\tint delay = Integer.parseInt(s_delay);\n\t \t\t\t\tif(delay > getMaxWait()) {\n\t \t\t\t\t\tthrow new CheckPasswordException(\"API retry-after delay longer than maxWait\", CheckPasswordErrorCode.APICallFailure);\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t\t// sleep expects milliseconds\n\t \t\t\t\ttry {\n\t \t\t\t\t\tThread.sleep(delay * 1000);\n\t \t\t\t\t\tcontinue;\n\t \t\t\t\t}catch(InterruptedException ex) {\n\t \t\t\t\t\tthrow new CheckPasswordException(\"Interrupted while waiting to retry request\", ex, CheckPasswordErrorCode.BadConfiguration);\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t}catch(NumberFormatException ex) {\n\t \t\t\t\tthrow new CheckPasswordException(\"Unparsable retry-after value from API\", ex,CheckPasswordErrorCode.APICallFailure);\n\t \t\t\t}\n\t \t\t}\n\t \t\telse {\n\t \t\t\tthrow new CheckPasswordException(String.format(\"Received status code {0} from API\", status), CheckPasswordErrorCode.APICallFailure);\n\t \t\t}\n\t \t}\n\t \t\n\t \t// Read the response into a String because it's easier to work with.\n\t \tInputStream responseIS = (InputStream) connection.getInputStream();\n\t \tStringBuilder textBuilder = new StringBuilder();\n\t \tint c;\n\t \twhile( (c = responseIS.read()) != -1 ){\n\t \t\ttextBuilder.append((char) c);\n\t \t}\n\t \tString response = textBuilder.toString();\n\t\n\t \treturn response;\n\t } catch (IOException e) {\n\t \tthrow new CheckPasswordException(\"Could not read API response\", e, CheckPasswordErrorCode.APICallFailure);\n\t }\n \t}\n \t\n \t// If we were successful, we returned from inside the for loop. Only wait to get here\n \t// was to exhaust our retries on a 429 Too Many Requests\n \tthrow new CheckPasswordException(\"Exhausted retries and failed to get a successful response from API\", CheckPasswordErrorCode.APICallFailure);\n \n }", "public Provider() {\n super(PROVIDER_NAME, 0.1, \"WebID-TLS Provider\");\n }" ]
[ "0.54989064", "0.52412826", "0.50494057", "0.50033194", "0.49157125", "0.48929048", "0.4855658", "0.48435143", "0.48434573", "0.48318762", "0.48264503", "0.47967246", "0.4779623", "0.477519", "0.4772979", "0.47535944", "0.47230515", "0.47118974", "0.4711582", "0.47027943", "0.46784556", "0.4661643", "0.4656136", "0.46255547", "0.46255472", "0.4605032", "0.4576501", "0.4573771", "0.4534323", "0.45312822", "0.45273808", "0.45099282", "0.45050037", "0.44789842", "0.4477157", "0.44767043", "0.44702137", "0.44588792", "0.44513908", "0.4447248", "0.44470555", "0.44469064", "0.44371682", "0.43903485", "0.43893787", "0.4374556", "0.43712708", "0.43707228", "0.43652344", "0.43647778", "0.4360916", "0.4357908", "0.4355698", "0.43545774", "0.43508196", "0.4345328", "0.4343878", "0.43379784", "0.4337474", "0.43342027", "0.433376", "0.43289033", "0.43283412", "0.43224722", "0.4322376", "0.43143407", "0.4306975", "0.43021947", "0.43008006", "0.4298018", "0.4272241", "0.4269251", "0.4266159", "0.42639104", "0.42367792", "0.42290726", "0.422771", "0.42269865", "0.42264542", "0.42263559", "0.42136693", "0.42113176", "0.4208089", "0.4194853", "0.41908327", "0.41813597", "0.41804904", "0.41757214", "0.4171773", "0.41628307", "0.41594428", "0.41585824", "0.41532803", "0.41499263", "0.41490254", "0.414791", "0.41415533", "0.413955", "0.41219315", "0.41170698" ]
0.7121157
0
TODO Autogenerated method stub
public static void main(String[] args) { TestOwner to = new TestOwner(); //to.insert(); to.update1(); }
{ "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
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 912, 418); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(true); plf=new PlistFiles(false,true,false,true); list = new JList<String>(plf.vfiles); JMenuBar menuBar = new JMenuBar(); frame.setJMenuBar(menuBar); JMenu mnSelection = new JMenu("Selection"); menuBar.add(mnSelection); chckbxmntmSystem = new JCheckBoxMenuItem("System",plf.iscSystem()); chckbxmntmSystem.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { plf.setcSystem(chckbxmntmSystem.isSelected()); //list = new JList<String>(plf.vfiles); list.removeAll(); list.setListData(plf.vfiles); } }); mnSelection.add(chckbxmntmSystem); chckbxmntmUser = new JCheckBoxMenuItem("User",plf.iscUser()); chckbxmntmUser.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { plf.setcUser(chckbxmntmUser.isSelected()); plf.GetList(); //list = new JList<String>(plf.vfiles); list.removeAll(); list.setListData(plf.vfiles); } }); mnSelection.add(chckbxmntmUser); JSeparator separator = new JSeparator(); mnSelection.add(separator); chckbxmntmLaunchagents = new JCheckBoxMenuItem("LaunchAgents",plf.iscAgent()); chckbxmntmLaunchagents.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { plf.setcAgent(chckbxmntmLaunchagents.isSelected()); plf.GetList(); //list = new JList<String>(plf.vfiles); list.removeAll(); list.setListData(plf.vfiles); } }); mnSelection.add(chckbxmntmLaunchagents); chckbxmntmLaunchdaemons = new JCheckBoxMenuItem("LaunchDaemons",plf.iscSystem()); chckbxmntmLaunchdaemons.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { plf.setcDaemon(chckbxmntmLaunchdaemons.isSelected()); plf.GetList(); //list = new JList<String>(plf.vfiles); list.removeAll(); list.setListData(plf.vfiles); } }); mnSelection.add(chckbxmntmLaunchdaemons); mnView = new JMenu("View"); menuBar.add(mnView); chckbxmntmDisplayTreeView = new JCheckBoxMenuItem("Display Tree view"); chckbxmntmDisplayTreeView.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { myTree.setVisible(chckbxmntmDisplayTreeView.isSelected()); scrollPane.setVisible(chckbxmntmDisplayTreeView.isSelected()); //frame.getContentPane().remove(scrollPane); } }); mnView.add(chckbxmntmDisplayTreeView); GridBagLayout gridBagLayout = new GridBagLayout(); gridBagLayout.columnWidths = new int[]{264, 251, 266, 0}; gridBagLayout.rowHeights = new int[]{0, 315, 0}; gridBagLayout.columnWeights = new double[]{8.0, 1.0, 1.0, Double.MIN_VALUE}; gridBagLayout.rowWeights = new double[]{0.0, 1.0, Double.MIN_VALUE}; frame.getContentPane().setLayout(gridBagLayout); canvas = new Canvas(); GridBagConstraints gbc_canvas = new GridBagConstraints(); gbc_canvas.fill = GridBagConstraints.HORIZONTAL; gbc_canvas.insets = new Insets(0, 0, 5, 0); gbc_canvas.gridx = 2; gbc_canvas.gridy = 0; frame.getContentPane().add(canvas, gbc_canvas); JScrollPane scrollPane_1 = new JScrollPane(); GridBagConstraints gbc_scrollPane_1 = new GridBagConstraints(); gbc_scrollPane_1.fill = GridBagConstraints.BOTH; gbc_scrollPane_1.insets = new Insets(0, 0, 0, 5); gbc_scrollPane_1.gridx = 0; gbc_scrollPane_1.gridy = 1; frame.getContentPane().add(scrollPane_1, gbc_scrollPane_1); list.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { System.out.println(list.getSelectedValue()); String plistfile = list.getSelectedValue(); myTree.Init(plistfile); System.out.println("Opening file .... " + plistfile); Scanner in = null; String content = null; try { in = new Scanner(new File(plistfile)); } catch (FileNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } while (in.hasNext()) { // iterates each line in the file content += in.nextLine() + "\n"; // do something with line } in.close(); // don't forget to close resource leaks dtrpnPlistfile.setText(content); } }); scrollPane_1.setViewportView(list); plf.GetList(); int i=0; if (plf.files.length != 0) for(String afiles : plf.files) { System.out.println(i + " - " + afiles); i++; } list.setVisible(true); myTree = new XMLTree("/Users/rumi/helloworld.xml"); scrollPane = new JScrollPane(myTree); GridBagConstraints gbc_scrollPane = new GridBagConstraints(); gbc_scrollPane.insets = new Insets(0, 0, 0, 5); gbc_scrollPane.fill = GridBagConstraints.BOTH; gbc_scrollPane.gridx = 1; gbc_scrollPane.gridy = 1; frame.getContentPane().add(scrollPane, gbc_scrollPane); JTabbedPane tabbedPane_1 = new JTabbedPane(JTabbedPane.TOP); GridBagConstraints gbc_tabbedPane_1 = new GridBagConstraints(); gbc_tabbedPane_1.fill = GridBagConstraints.BOTH; gbc_tabbedPane_1.gridx = 2; gbc_tabbedPane_1.gridy = 1; frame.getContentPane().add(tabbedPane_1, gbc_tabbedPane_1); dtrpnPlistfile = new JEditorPane(); dtrpnPlistfile.setText("PlistFile"); dtrpnPlistfile.setEditable(true); dtrpnPlistfile.setVisible(true); dtrpnPlistfile.setFont(new Font("Courier New", Font.ITALIC, 10)); tabbedPane_1.addTab("com.apple.<example>.plist", null, dtrpnPlistfile, null); frame.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\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 MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void 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 initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\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\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "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 MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "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 addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\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\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
Pone valor al primer operador.
public void setX(int x) { this.x = x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int operar() {\n\t\treturn this.valor;\r\n\t}", "private int getPrio(int op){\n return ((Integer)opPrio.get(new Integer(op))).intValue();\n }", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public String getOperador() {\n\t\treturn operador;\n\t}", "int getOperationValue();", "public char getOper(){\n\t\treturn oper;\n\t}", "public int getValor() {\n return Valor;\n }", "public int getValor() {\r\n return valor;\r\n }", "public int getValor() {\n return valor;\n }", "public int TipoOpera(String operacion) {\r\n\t\tswitch (operacion) {\r\n\t\tcase \"+\": {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tcase \"-\": {\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\tcase \"*\": {\r\n\t\t\treturn 3;\r\n\t\t}\r\n\t\tcase \"/\": {\r\n\t\t\treturn 4;\r\n\t\t}\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operación no leída\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int getValor() {\n\t\treturn valor;\n\t}", "public String getOper() {\n return oper;\n }", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "public int obtenerMinuto() { return minuto; }", "public int getNumero() { return this.numero; }", "public int getValore() {\n return valore;\n }", "public int getValor() {\n\t\treturn this.valor;\n\t}", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "public E primero() {\n\t\tif(estaVacia()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn primero.getDato();\n\t}", "private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }", "public int getOperatorNum() {\n return operatorNum;\n }", "private int getNumero() {\n\t\treturn numero;\n\t}", "Integer getValue();", "Integer getValue();", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "public java.lang.Integer getOperator() throws java.rmi.RemoteException;", "public V valor() {\n return value;\n }", "public String getPriInicio () {\n return PriInicio;\n }", "public int getNumero() {\n return dado1;\n }", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public int getValue();", "public int getValue();", "public int getNumeroInicial()\r\n/* 180: */ {\r\n/* 181:194 */ return this.numeroInicial;\r\n/* 182: */ }", "public int getOp() {\n\t\treturn op;\n\t}", "public int oper() {\n int ope = getFilter().getExp().oper();\n return ope;\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public int getNumero() {\n return numero;\n }", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "public java.lang.Integer getOperator() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Integer) __getCache(\"operator\")));\n }", "public java.lang.String getOpNum() {\r\n return localOpNum;\r\n }", "public int getNumPrimo()\n {\n return numPrimo;\n\n }", "public BigDecimal getOP_NO() {\r\n return OP_NO;\r\n }", "public int getModopelea(){return modopelea;}", "SEIntegerVariable getOperand1();", "public Long getOperator() {\n return operator;\n }", "@Override\r\n\tpublic Integer getValue() {\r\n\r\n\t\treturn op.perform(left, right);\r\n\t}", "public double getOperand1()\r\n\t{\r\n\t\tSystem.out.println(\"enter the operand 1:\");\r\n\t\tdouble op1=sc.nextDouble();\r\n\t\treturn op1;\r\n\t}", "public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }", "public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setPriInicio (String val) {\n this.PriInicio = val;\n }", "public int getNumeroAnterior()\r\n/* 200: */ {\r\n/* 201:210 */ return this.numeroAnterior;\r\n/* 202: */ }", "public int obtenerSiguienteNumeroOrden() {\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return controlOC.obtenerSiguienteNumeroOrden();\n }", "public java.lang.Integer getOperator() {\n\treturn operator;\n}", "public int getValue() { return getValue(OPEN); }", "@Override\n public void actionPerformed(ActionEvent e) {\n operacion.setNumero1(Integer.parseInt(vistaCalculadora.numero_1.getText()));\n operacion.setNumero2(Integer.parseInt(vistaCalculadora.numero_2.getText()));\n /**\n * Se llama la funcion de \n */\n vistaCalculadora.resultado.setText(operacion.Resta());\n }", "public P primeiro() {\n\t\treturn this.primeiro;\n\t}", "@Override\r\n\t\tpublic long getValue() {\n\t\t\treturn -1;\r\n\t\t}", "public Integer getOpr() {\n return opr;\n }", "Object getValor();", "public void setOpr(Integer opr) {\n this.opr = opr;\n }", "int getMPValue();", "public int getCommand() {\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tint value = Integer.parseInt(getToken(\"\"));\r\n\t\t\t\tif (value >= EXIT && value <= SAVE) {\r\n\t\t\t\t\treturn value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new NumberFormatException();\r\n\t\t\t\t}\r\n\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\tSystem.out.print(\"Invalid entry please try again.\");\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "public Operator getOp() {\n return op;\n }", "public Integer getValue();", "public int rekisteroi() {\n this.tunnusNro = seuraavaNro;\n Tuote.seuraavaNro++;\n return tunnusNro;\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public int getValue(){\n return number;\n }", "public double getPreco();", "public double getPreco();", "public int value();", "public final T getValor() {\r\n return valor;\r\n }", "@Override\n public double calcValue() throws IllegalArgumentException {\n // calcolo ricorsivo del risultato dell'operazione\n double l = leftChild.calcValue();\n double r = rightChild.calcValue();\n // effettivo calcolo del risultato\n return oper.getOperation().calcValue(l, r);\n }", "public synchronized int get() { \n return this.soma_pares; \n }", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "public static int Menu(){\n \n String StrOp=JOptionPane.showInputDialog(null, \"Ingrese una opcion:\\n\"+\"0.- Salir\\n\"+\n \"1-Calificacion de notas\\n\"+\n \"2-Promedio de la clase\");\n return(Integer.parseInt(StrOp));\n }", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public java.lang.String getValor();", "public int getEquipe() {\r\n return this.equipe;\r\n }", "public int pedeCodigo() {\n int codigo = this.telaFuncionario.pedeCodigo();\n return codigo;\n }", "public int getValue(){\n return this.value;\n }", "public int exec(GerenciadorPerifericos gerenciadorPerifericos, ParametroMacroOperacao param){\n\r\n\t\tBigDecimal quantidadeNecessaria = (BigDecimal)gerenciadorPerifericos.getCmos().ler(CMOS.QUANTIDADE_ITEM_NECESSARIO_PARA_SEPARACAO);\r\n\t\t\r\n\t\tTelaAVInicial tela = (TelaAVInicial) ServiceLocator.getInstancia().getTela(ConstantesTela.TELA_AV_INICIAL);\r\n\t\ttela.setCampoQuantidade(\"\");\r\n\t\ttela.setCampoDesconto(\"\");\r\n\t\tgerenciadorPerifericos.atualizaTela(tela);\r\n\r\n\t\tProduto produto = (Produto)gerenciadorPerifericos.getCmos().ler(CMOS.PRODUTO_ATUAL);\r\n\r\n\t\tBigDecimal quantidade = BigDecimal.ZERO;\r\n\t\t\r\n\t\tif (produto.getTipo().getId().equals(TipoProduto.UNIDADE_VARIAVEL)) {\r\n\t\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, quantidadeNecessaria);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tEntradaDisplay entrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\twhile (entrada.getTeclaFinalizadora() == Tecla.CODIGO_ENTER) {\r\n\t\t\t\t\tquantidade = new BigDecimal(entrada.getDado());\r\n\t\t\t\t\tif (quantidade.doubleValue() == BigDecimal.ZERO.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Invalida [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\t\t} else if (quantidadeNecessaria.doubleValue() < quantidade.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Superior [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (AppException e) {\r\n\t\t\t\treturn ALTERNATIVA_2;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, BigDecimal.ONE);\r\n\t\t\r\n\t\r\n\t\treturn ALTERNATIVA_1;\r\n\t}", "public int obtenerSegundo() { return segundo; }", "public void operacao();", "int getResultValue();", "int getResultValue();", "public int dameValor(C carta)\n\t{\n\t\tint n= carta.getNumero();\n\t\tif(n>=2 && n<=9)//el 10 no se usa\n\t\t\treturn n;\n\t\telse\n\t\t\treturn 10;\n\t\t\n\t}", "public void setOper(String oper) {\n this.oper = oper;\n }", "public Operator operator() {\n\treturn this.op;\n }", "public int getValue()\r\n/* 21: */ {\r\n/* 22: 71 */ return this.value;\r\n/* 23: */ }", "public int getValue() \n {\n return value;\n }", "public int executeOperation(){\n\t\tswitch (operation){\n\t\tcase 1: \n\t\t\treturn var1 + var2;\n\t\tcase 2: \n\t\t\treturn var1 - var2;\n\t\tcase 3: \n\t\t\treturn var1 * var2;\n\t\tcase 4: \n\t\t\treturn var1 / var2;\n\t\t default:\n\t\t\treturn 0;\n\t\t\n\t\t}\n\t}" ]
[ "0.74781513", "0.69018894", "0.67388", "0.6577487", "0.6374738", "0.6295473", "0.6219436", "0.62130076", "0.6113707", "0.61050546", "0.6076546", "0.6055204", "0.6052199", "0.60321563", "0.6024422", "0.6004875", "0.598492", "0.59790754", "0.59790754", "0.59790754", "0.59790754", "0.59790754", "0.59568906", "0.5950398", "0.59292287", "0.5924352", "0.59196806", "0.59196806", "0.5900455", "0.5898168", "0.5887489", "0.58792794", "0.5873608", "0.5856045", "0.5856045", "0.5856045", "0.585602", "0.585602", "0.5840886", "0.5840143", "0.583513", "0.5828108", "0.5819028", "0.58156925", "0.5807575", "0.58046424", "0.57978326", "0.57896876", "0.5778782", "0.5775315", "0.57730824", "0.576928", "0.5758158", "0.5753351", "0.5731128", "0.5726986", "0.5726126", "0.57116926", "0.5711168", "0.56942666", "0.56789833", "0.5675915", "0.5673416", "0.56693757", "0.5656585", "0.565525", "0.565261", "0.5641927", "0.5637294", "0.5630574", "0.56147623", "0.5606266", "0.5602864", "0.5594284", "0.5581393", "0.55807364", "0.55807364", "0.557978", "0.5577285", "0.55714965", "0.55710214", "0.5567969", "0.5567969", "0.5567969", "0.5565869", "0.5559223", "0.5556831", "0.55532676", "0.55520153", "0.55504394", "0.55470055", "0.5538146", "0.5532343", "0.55303997", "0.55303997", "0.55291075", "0.55288017", "0.55245185", "0.5523349", "0.5523328", "0.55216056" ]
0.0
-1
Pone valor al segundo operador.
public void setY(int y) { this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int operar() {\n\t\treturn this.valor;\r\n\t}", "public String getOperador() {\n\t\treturn operador;\n\t}", "public int getValor() {\r\n return valor;\r\n }", "public int getValor() {\n return valor;\n }", "int getOperationValue();", "public java.lang.String getValor();", "public int getValor() {\n return Valor;\n }", "public V valor() {\n return value;\n }", "private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public int obtenerSegundo() { return segundo; }", "Object getValor();", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public final T getValor() {\r\n return valor;\r\n }", "public int getValor() {\n\t\treturn valor;\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n operacion.setNumero1(Integer.parseInt(vistaCalculadora.numero_1.getText()));\n operacion.setNumero2(Integer.parseInt(vistaCalculadora.numero_2.getText()));\n /**\n * Se llama la funcion de \n */\n vistaCalculadora.resultado.setText(operacion.Resta());\n }", "public String getValor() {\n return valor;\n }", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "public int getValore() {\n return valore;\n }", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public int obtenerMinuto() { return minuto; }", "public double calculaValor() throws QuartoDesocupadoException{\n\t\tif(this.getEstadia() != null){\n\t\t\treturn this.getEstadia().calculaValor(this.tipo);\t\t\t\n\t\t}\n\t\tthrow new QuartoDesocupadoException(String.format(\"Quarto %s nao esta ocupado.\", this.getNumero()));\n\t}", "public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }", "public int getValor() {\n\t\treturn this.valor;\n\t}", "public int getNumero() {\n return dado1;\n }", "public char getOper(){\n\t\treturn oper;\n\t}", "public int getCommand() {\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tint value = Integer.parseInt(getToken(\"\"));\r\n\t\t\t\tif (value >= EXIT && value <= SAVE) {\r\n\t\t\t\t\treturn value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new NumberFormatException();\r\n\t\t\t\t}\r\n\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\tSystem.out.print(\"Invalid entry please try again.\");\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "public byte obtenerDano(){\n\treturn dano;\n }", "public int TipoOpera(String operacion) {\r\n\t\tswitch (operacion) {\r\n\t\tcase \"+\": {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tcase \"-\": {\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\tcase \"*\": {\r\n\t\t\treturn 3;\r\n\t\t}\r\n\t\tcase \"/\": {\r\n\t\t\treturn 4;\r\n\t\t}\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operación no leída\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public void setValor(int valor) {\n this.valor = valor;\n }", "public void showValor() {\n String out = new String();\n this.setText(Integer.toString(valor));\n }", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "public int getNumero() { return this.numero; }", "public String getOper() {\n return oper;\n }", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "public void operacao();", "int getMove2Value();", "public void operation() {\n\t\tSystem.out.println(\"se obtuvo\" + nombre );\n\t}", "String getVal();", "@Override\r\n\tpublic Integer getValue() {\r\n\r\n\t\treturn op.perform(left, right);\r\n\t}", "public void sacar(double valor) {\n this.saldo -= valor;\n }", "public synchronized int get() { \n return this.soma_pares; \n }", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "public int getcontador2(){\nreturn contador2;}", "Integer getValue();", "Integer getValue();", "public double getResultado() {\n\t\treturn resultado;\n\t}", "private int getPrio(int op){\n return ((Integer)opPrio.get(new Integer(op))).intValue();\n }", "public int getValoracionMedia(){\n return valoracionMedia;\n }", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public double obtValor() {\r\n\t\treturn v;\r\n\t}", "int getMove1Value();", "public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }", "private byte getValue() {\n\t\treturn value;\n\t}", "public abstract java.lang.String getAcma_valor();", "@Override\n public double calcValue() throws IllegalArgumentException {\n // calcolo ricorsivo del risultato dell'operazione\n double l = leftChild.calcValue();\n double r = rightChild.calcValue();\n // effettivo calcolo del risultato\n return oper.getOperation().calcValue(l, r);\n }", "public void retorno(int dirValor){\n String valorRet = \"\";\n if(ManejadorMemoria.isGlobal(dirValor)){\n valorRet = this.registroGlobal.getValor(dirValor);\n } else if (ManejadorMemoria.isConstante(dirValor)){\n valorRet = this.directorioProcedimientos.getConstantes().get(dirValor).getValorConstante();\n } else {\n valorRet = this.pilaRegistros.peek().getValor(dirValor);\n }\n this.valorRetorno = valorRet;\n }", "public static double verificaValorQuarto(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n case 3:\n return valor + 570;\n case 4:\n return valor + 620;\n case 5:\n return valor + 360;\n case 6:\n return valor + 385;\n case 7:\n return valor + 440;\n default:\n break;\n }\n return valor;\n }", "SEIntegerVariable getOperand1();", "public int getTamanio(){\r\n return tamanio;\r\n }", "public int getcontador(){\nreturn contador;}", "public char getopcion(){\n return opciones;\n }", "public void setValor(int Valor) {\n this.Valor = Valor;\n }", "public Double getPotencia(){\n return this.valor;\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public int koko() {\n return this.arvoja;\n }", "public String balar() {\r\n return this.SONIDO;\r\n }", "private double valor() throws Excepciones{\n double resultado = 0.0;\n switch(tipoToken){\n case NUMERO:\n try {\n resultado = Double.parseDouble(token);\n } catch (NumberFormatException exc) {\n obtieneError(SYNTAXIS);\n }\n obtieneToken();\n break;\n default:\n obtieneError(SYNTAXIS);\n break;\n }\n return resultado;\n}", "public static String getOpResult (){\n \treturn opResult;\n }", "public int rekisteroi() {\n this.tunnusNro = seuraavaNro;\n Tuote.seuraavaNro++;\n return tunnusNro;\n }", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "public void recebeAumento(double valorDoAumento){\n\t\tdouble aumento = this.salario * valorDoAumento;\n\t\tthis.salario += aumento;\n\t}", "public abstract void sacar( Double valor);", "public Double getValor() {\n return valor;\n }", "public int getAnio(){\r\n \r\n \r\n return this.anio;\r\n \r\n }", "public static int executarOperacao(Calculo calculo, int a, int b){\n\n return calculo.calcular(a,b);\n }", "@Override\n public int getValue() {\n return Integer.parseInt(gValue.getText());\n }", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public int executeOperation(){\n\t\tswitch (operation){\n\t\tcase 1: \n\t\t\treturn var1 + var2;\n\t\tcase 2: \n\t\t\treturn var1 - var2;\n\t\tcase 3: \n\t\t\treturn var1 * var2;\n\t\tcase 4: \n\t\t\treturn var1 / var2;\n\t\t default:\n\t\t\treturn 0;\n\t\t\n\t\t}\n\t}", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "int getResultValue();", "int getResultValue();", "private StringBuilder getOperand() {\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\treturn firstNumber;\r\n\t\t} else {\r\n\t\t\treturn secondNumber;\r\n\t\t}\r\n\t}", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public int recuperar() {\r\n\t if (raiz == null)\r\n\t return -99999;\r\n\t ;\r\n\t int x = raiz.dato;\r\n\t raiz = raiz.sig;\r\n\t return x;\r\n\t }", "String getCurrentValue();", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public int getValue();", "public int getValue();", "public int getValue() \n {\n return value;\n }", "public String valorCromosoma() {\n\t return valueOf(getAltura(), getExtremidades(), getFuerza(), getTorax());\n\t }", "SEIntegerVariable getOperand2();" ]
[ "0.74326557", "0.65182394", "0.6405971", "0.6309212", "0.6256582", "0.6253255", "0.62481976", "0.6239835", "0.6239155", "0.62314427", "0.6223334", "0.61690843", "0.6134475", "0.6093929", "0.6091208", "0.60634655", "0.60609", "0.60394025", "0.6023454", "0.5995884", "0.5989324", "0.5958783", "0.59318167", "0.5901977", "0.5898609", "0.58972067", "0.5887586", "0.5878235", "0.58131534", "0.5806191", "0.57825243", "0.57810825", "0.57810825", "0.57810825", "0.57752484", "0.57715124", "0.57575077", "0.5720644", "0.5709096", "0.5701474", "0.5701474", "0.5701474", "0.5701474", "0.5701474", "0.56885535", "0.56693953", "0.5651602", "0.56507534", "0.5648643", "0.56403315", "0.5636582", "0.56334645", "0.5625028", "0.56206244", "0.56206244", "0.56131756", "0.5611768", "0.56060576", "0.55956393", "0.55925244", "0.5591299", "0.55847794", "0.5583879", "0.5579785", "0.55684274", "0.5561344", "0.55568683", "0.55535805", "0.5550926", "0.5550791", "0.554791", "0.5535632", "0.5527848", "0.5527151", "0.55188656", "0.55121756", "0.55118257", "0.5508904", "0.5508211", "0.55078614", "0.5506979", "0.55015224", "0.5491056", "0.5490478", "0.54884964", "0.548805", "0.54879165", "0.54853433", "0.5480546", "0.5480491", "0.5480491", "0.5478793", "0.5477261", "0.5475205", "0.54734606", "0.5472679", "0.54697156", "0.54697156", "0.5469225", "0.54686594", "0.54673314" ]
0.0
-1
Este metodo realiza una suma y lo muestra por pantalla.
public void suma(){ System.out.println(this.getX() + this.getY()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSumaAdunata();", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "double getSum();", "double getSum();", "int getSuma();", "public void sumar(){\n recogidaDatos();\n System.out.println(\"El resultado de la suma es: \" + (numerando1 + numerando2));\n System.out.println(\"***********************************\");\n\n }", "public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }", "public double sum() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n resultat += CalculatorArray.sum(tab.get(i));\n }\n System.out.println(\"Sum colonne:\" + resultat);\n return resultat;\n }", "public int sumar(){\n return this.a+this.b;\n }", "public Fraccion suma() {\r\n return new Fraccion(operador1.getNumerador()*operador2.getDenominador() + operador1.getDenominador()*operador2.getNumerador(),\r\n operador1.getDenominador()*operador2.getDenominador());\r\n }", "private void sumaApostado() {\n\t\tapostado.set(apostado.get() + 1.0);\n\t\tdiruField.setText(String.format(\"%.2f\", apostado.get()));\n\t\tactualizaPremio();\n\t}", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "@Override\n\tpublic int sum() {\n\t\treturn this.first + this.second + this.third;\n\t}", "private int syuneri_gumar(ArrayList<Integer> syun) {\n int summa = 0;\n for (int i = 0; i < syun.size(); i++)\n summa += syun.get(i);\n return summa;\n }", "private int sumaCen(){\n int kasa = 0;\n for(Restauracja r :zamowioneDania){\n kasa+=r.getCena();\n }\n return kasa;\n }", "public String getSum();", "public void sumarUnidad() {\r\n\t\tcantidad++;\r\n\t}", "public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}", "private int sum(AFormula o1){\n\t\t\t\t\n\t\t\t\treturn o1.calculate(customerType, weekdayCount, weekendCount);\n\t\t\t\t\n\t\t\t}", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "public int getSuma() {\n return suma_;\n }", "public int sum()\n {\n return sum(0,0,size);\n }", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }", "public int getSuma() {\n return suma_;\n }", "public void sumValues(){\n\t\tint index = 0;\n\t\tDouble timeIncrement = 2.0;\n\t\tDouble timeValue = time.get(index);\n\t\tDouble packetValue;\n\t\twhile (index < time.size()){\n\t\t\tDouble packetTotal = 0.0;\n\t\t\twhile (timeValue < timeIncrement && index < packets.size()){\n\t\t\t\ttimeValue = time.get(index);\n\t\t\t\tpacketValue = packets.get(index);\n\t\t\t\tpacketTotal= packetTotal + packetValue;\n\t\t\t\tindex = index + 1;\n\t\t\t}\n\t\t\tArrayList<Double> xy = new ArrayList<Double>();\n\t\t\txy.add(timeIncrement);\n\t\t\txy.add(packetTotal);\n\t\t\ttotalIncrements.add(xy);\n\t\t\t// to get max and min need separate arrays\n\t\t\ttimeIncrements.add(timeIncrement);\n\t\t\tbyteIncrements.add(packetTotal);\n\t\t\ttimeIncrement = timeIncrement + 2.0;\t\n\t\t}\n\t\treturn;\n\n\t}", "public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }", "private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}", "public T sum();", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "protected int sumAll() {\n\t\tint total = 0;\n\t\t//iterate all rows\n\t\tfor(int i = 0;i<size();i++){\n\t\t\t//itreate all columns\n\t\t\tfor(int j = 0;j<size();j++){\n\t\t\t\tInteger cell = matrix.get(i).get(j);\n\t\t\t\ttotal+=cell;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}", "public static void sumarSuma(int valor) {\n\t\tsuma += valor;\n\t}", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "public int getSum() {\n\t\t\treturn 0;\r\n\t\t}", "public static int getSuma() {\n\t\treturn suma;\n\t}", "private void getSum() {\n double sum = 0;\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n sum = sum + parseDouble(remindersTable.getValueAt(i, 3).toString());\n }\n String rounded = String.format(\"%.2f\", sum);\n ledgerTxtField.setText(rounded);\n }", "public double sum() {\n double sum = x;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n sum += iter.next.x;\n iter = iter.next;\n }\n return sum;\n }", "public int sumarConRetorno() {\n return a + b;\n }", "public static int tirarDados(){\n //elige valores aleatorios para los dados\n int dado1 = 1 + numerosAleatorios.nextInt(6);//<primer tiro del dado\n int dado2 = 1 + numerosAleatorios.nextInt(6);//< segundo tiro del dado\n \n int suma = dado1 + dado2;//< suma de los valores de los dados\n \n //muestra los resultados de este tiro\n System.out.printf(\"El jugador tiro %d + %d = %d%n\", dado1, dado2, suma);\n return suma;\n }", "private void sumarTotalVenta(int cantidad, double precioProducto) {\r\n\t\tdouble valorProductos = cantidad * precioProducto;\r\n\t\ttotalVenta += valorProductos;\r\n\t}", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "@Test\n public void testSuma() {\n assertEquals(new Fraccion(12.0, 9.0), instance.suma());\n assertEquals(12.0, instance.suma().getNumerador(), 0.001);\n assertEquals(9.0, instance.suma().getDenominador(), 1.0E-3); // 1.0 ^ -3 -> 1 / 1000\n }", "public void generarTotal(){\n\n\t\tfloat total = 0;\n\n\t\tfor (int con = 0; con < modelo.getRowCount(); con++) {\n\n\t\t\ttotal += (float) tabla.getValueAt(con, 3);\n\t\t\t\n\t\t}\n\n\t\tcampoTotal.setText(formato.format(total));\n\n\t\tlimpiarCampos();\n\n\t}", "public Integer calculateSum() {\n logger.debug(\"Calculating and returning the sum of expenses.\");\n return listOfTargets.stream().map(T::getAmount).reduce(0, Integer::sum);\n }", "@Test\n\tpublic void testSum() {\n\t\tassertEquals(155, g1.sum(), .0001);\n\t\tassertEquals(226, g2.sum(), .0001);\n\t\tassertEquals(298, g3.sum(), .0001);\n\t}", "public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}", "double getTotal();", "public int suma(int numero1, int numero2){\n //Estas variables solo tienen el alcance de este metodo\n return numero1 + numero2;\n }", "public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }", "int calculate() {\n return getSum() + b1;\n }", "public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\r\n\t}", "default int sumOfAll(int a, int b) {\n\t\t\treturn 0;\n\t\t}", "public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelectedItem().toString();\n switch(servico) {\n case \"Consulta\":\n valor += 100;\n break;\n case \"Limpeza\":\n valor += 130;\n break;\n case \"Clareamento\":\n valor += 450;\n break;\n case \"Aparelho\":\n valor += 100;\n break;\n case \"Raio-x\":\n valor += 80;\n break;\n case \"Cirurgia\":\n valor += 70;\n break;\n }\n Total.setText(String.valueOf(valor));\n }", "public void sumAte()\r\n {\r\n meanArk = 0;\r\n varArk = 0;\r\n double sumA = 0;\r\n double sumA2 = 0;\r\n float nArk = 0;\r\n for (SignatureSample s:keys) {\r\n nArk++;\r\n sumA += s.arklen;\r\n sumA2 += s.arklen * s.arklen;\r\n }\r\n meanArk = sumA / nArk;\r\n varArk = Math.sqrt((sumA2/nArk) - (meanArk*meanArk));\r\n }", "public void sumar() {\n Acumula.acumulador++;\n }", "public double getSUM() {\n return sum;\n }", "public int suma(){\r\n return x+y;\r\n }", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "public int Suma(){\r\n for (int i = 0; i < 9; i++) {\r\n mult = convert()[i] * arregloCo[i];\r\n // Si la suma e mayor o igual a 10 se le resta 9\r\n if (mult >= 10){\r\n mult = mult - 9;\r\n }\r\n suma = suma + mult;\r\n }\r\n return suma;\r\n }", "public String sumatoria(int columna) {\r\n\t\ttry {\r\n\t\t\tdouble total = 0;\r\n\t\t\tDouble cAux = new Double(total);\r\n\t\t\tString totalChar = \"\";\r\n\t\t\tString valchar = \"\";\r\n\t\t\tfor (int i = 1; i <= this.elemVS.size(); i++) {\r\n\t\t\t\tvalchar = (getObject(i, columna)).toString();\r\n\t\t\t\ttotal = total + (Double.valueOf(valchar)).doubleValue();\r\n\t\t\t}\r\n\t\t\ttotalChar = Double.toString(total);\r\n\t\t\treturn totalChar;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\treturn \"&nbsp;\";\r\n\t\t}\r\n\t}", "public void total() {\n\t\t\n\t}", "private Double calcularValorTotal(Aluguel aluguelPendente, Date dataDevolucao) {\n int quantFilmes = aluguelPendente.getFilmes().size();\n DateTime dateAluguel = new DateTime(aluguelPendente.getDataAluguel().getTime());\n DateTime dateDevolucao = new DateTime(dataDevolucao);\n int diferencaDias = Days.daysBetween(dateAluguel, dateDevolucao).getDays();\n int diasAtraso = diferencaDias - 2 - (quantFilmes - 1);\n Double multa = 1.2 * (diasAtraso > 0 ? diasAtraso : 0);\n Double valorTotal = aluguelPendente.getValor() + multa;\n return valorTotal;\n }", "private void calculadorNotaFinal() {\n\t\t//calculo notaFinal, media de las notas medias\n\t\tif(this.getAsignaturas() != null) {\n\t\t\t\tfor (Iterator<Asignatura> iterator = this.asignaturas.iterator(); iterator.hasNext();) {\n\t\t\t\t\tAsignatura asignatura = (Asignatura) iterator.next();\n\t\t\t\t\tif(asignatura.getNotas() != null) {\n\t\t\t\t\tnotaFinal += asignatura.notaMedia();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//curarse en salud con division entre 0\n\t\t\t\tif(this.getAsignaturas().size() != 0) {\n\t\t\t\tnotaFinal /= this.getAsignaturas().size();\n\t\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic double calcularSalario() {\n\n\t\tdouble salario = 0;\n\n\t\tdouble porcentajeAnios = calcularPorcentajePorAntiguedad();\n\t\tporcentajeAnios = this.sueldoBasico* (porcentajeAnios / 100);\n\t\tsalario = this.sueldoBasico + porcentajeAnios;\n\t\treturn salario;\n\t}", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "public double Sumar(double operador_1, double operador_2){\n return SumaC(operador_1, operador_2);\n }", "public void obtenertotales(double suma){\n double Total = suma;\n totalPagarVentaTB.setText(String.valueOf(Total));\n double iva = Total*0.19;\n ivaVentaTB.setText(String.valueOf(iva));\n double subtotal = Total-iva;\n subTotalVentaTB.setText(String.valueOf(subtotal)); \n \n }", "private void calcSum() {\n String numberVal = number.getText().toString();\n if (numberVal.isEmpty()) {\n numberVal = \"0\";\n }\n\n int count = Integer.parseInt(numberVal);\n\n if (count > 1e5) {\n Toast.makeText(\n this,\n \"The given number is too large for product of even items!\",\n Toast.LENGTH_SHORT).show();\n }\n\n\n // array initialization\n int[] arr = new int[count];\n for (int i = 0; i < count; i++) {\n arr[i] = i + 1;\n }\n\n // calculate sum\n long sum = 0;\n for (int i = 0; i < count; i++) {\n sum += arr[i];\n }\n\n result.setText(String.format(\"The sum is %d\", sum)); ;\n }", "public static Double sumarColeccion(ListaVinculada<Double> coleccionStrings) {\n double acumulador=0.0;\n for (Double dato : coleccionStrings) {\n acumulador =acumulador+dato;\n }\n return acumulador;\n }", "public String sumatoria(String columna) {\r\n\t\ttry {\r\n\t\t\tdouble total = 0;\r\n\t\t\tDouble cAux = new Double(total);\r\n\t\t\tString totalChar = \"\";\r\n\t\t\tString valchar = \"\";\r\n\t\t\tfor (int i = 1; i <= this.elemVS.size(); i++) {\r\n\t\t\t\tvalchar = (getObject(i, columna)).toString();\r\n\t\t\t\ttotal = total + (Double.valueOf(valchar)).doubleValue();\r\n\t\t\t}\r\n\t\t\ttotalChar = Double.toString(total);\r\n\t\t\treturn totalChar;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\treturn \"&nbsp;\" + elemVS.size();\r\n\t\t}\r\n\t}", "public void notaFinal() {\n\n for (int i = 0; i <= (nombres.size() - 1); i++) {\n\n notaFinal.add((notas.get(0) + notas.get(1) + notas.get(2)) / 3);\n\n }\n\n }", "@Override\r\n protected BigDecimal getSum() {\r\n boolean handleOutOfMemoryError = false;\r\n BigDecimal sum = BigDecimal.ZERO;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(false);\r\n double value;\r\n int row;\r\n int col;\r\n for (row = 0; row < nrows; row++) {\r\n for (col = 0; col < ncols; col++) {\r\n value = getCell(row, col);\r\n if (Double.isNaN(value) && Double.isFinite(value)) {\r\n if (value != noDataValue) {\r\n sum = sum.add(new BigDecimal(value));\r\n }\r\n }\r\n }\r\n }\r\n return sum;\r\n }", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n //Sumamos a la variable 'totalVentaFactura'\n totalVentaFactura = totalVentaFactura.add(det.getTotal());\n } \n }catch(Exception e){\n e.printStackTrace();\n }\n \n //Setemos al objeto Factura el valor de la variable 'totalFacturaVenta'\n factura.setTotalVenta(totalVentaFactura);\n \n }", "public void suma(View v){\n presenter.Operacion(main_number_one.getText().toString(),main_number_two.getText().toString(),1);\n }", "static int performSum(int[][] ar){\n\n int pDia = 0;\n int sDia = 0;\n int counter = ar.length;\n for (int i = 0; i < ar.length; i++) {\n\n pDia = pDia + ar[i][i];\n\n // keeping track of counter for second diagonal\n counter = counter-1;\n\n sDia = sDia + ar[i][counter];\n\n }\n System.out.println(sDia);\n return pDia;\n }", "public int getSumaAdunata() {\n return sumaAdunata_;\n }", "public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }", "private void sumarTropa(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.BARBARO:\n cantActual = Integer.parseInt(jTextFieldBarbaro.getText());\n jTextFieldBarbaro.setText(String.valueOf(cantActual+1));\n break;\n case vg.ARQUERA:\n cantActual = Integer.parseInt(jTextFieldArquera.getText());\n jTextFieldArquera.setText(String.valueOf(cantActual+1));\n break;\n case vg.GIGANTE:\n cantActual = Integer.parseInt(jTextFieldGigante.getText());\n jTextFieldGigante.setText(String.valueOf(cantActual+1));\n break;\n case vg.DUENDE:\n cantActual = Integer.parseInt(jTextFieldDuende.getText());\n jTextFieldDuende.setText(String.valueOf(cantActual+1));\n break;\n }\n }", "public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "Integer total();", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "public Integer getSum() {\n return sum;\n }", "public int getSumaAdunata() {\n return sumaAdunata_;\n }", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public static int obtenerSumauno(int x){\n // dclaracion de variable\n int suma = 0;\n // ciclo usado para la suma continua\n for (int i = 1; i <= x; i++) {\n suma += i;\n }\n // retorno del resultado\n return suma;\n }", "public void sumaNumeros(View view){\n\n String valor1=etNum1.getText().toString();\n String valor2=etNum2.getText().toString();\n\n int nro1=Integer.parseInt(valor1);\n int nro2=Integer.parseInt(valor2);\n\n int suma=nro1+nro2;\n\n String resulSuma=String.valueOf(suma);\n tvSalida.setText(resulSuma);\n\n }", "public Double darTiempoTotal(){\n\t\treturn tiempoComputacionalGrasp+tiempoComputacionalSetCovering;\n\t}", "private void sumarEdificio(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.CHOZA:\n cantActual = Integer.parseInt(jTextFieldChoza.getText());\n jTextFieldChoza.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAMPAMENTO:\n cantActual = Integer.parseInt(jTextFieldCampamento.getText());\n jTextFieldCampamento.setText(String.valueOf(cantActual+1));\n break;\n case vg.CUARTEL:\n cantActual = Integer.parseInt(jTextFieldCuartel.getText());\n jTextFieldCuartel.setText(String.valueOf(cantActual+1));\n break;\n case vg.MINA:\n cantActual = Integer.parseInt(jTextFieldMina.getText());\n jTextFieldMina.setText(String.valueOf(cantActual+1));\n break;\n case vg.RECOLECTOR:\n cantActual = Integer.parseInt(jTextFieldRecolector.getText());\n jTextFieldRecolector.setText(String.valueOf(cantActual+1));\n break;\n case vg.TORRE:\n cantActual = Integer.parseInt(jTextFieldTorre.getText());\n jTextFieldTorre.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAÑON:\n cantActual = Integer.parseInt(jTextFieldCañon.getText());\n jTextFieldCañon.setText(String.valueOf(cantActual+1));\n break;\n case vg.MORTERO:\n cantActual = Integer.parseInt(jTextFieldMortero.getText());\n jTextFieldMortero.setText(String.valueOf(cantActual+1));\n break;\n default:\n break;\n }\n }", "public static void main(String[] args){\n\t\tSystem.out.println(\"Resultado1: (a + b) = \" + Operaciones.sumar(3,4));\n\t\tSystem.out.println();\n\n\t\t//Metodo int double\n\t\tSystem.out.println(\"Resultado2: (a + b) = \" + Operaciones.sumar(5,4.1));\n\t\tSystem.out.println();\n\n\t\t//Metodo double int\n\t\tSystem.out.println(\"Resultado3: (a + b) = \" + Operaciones.sumar(7.1,6));\n\t\tSystem.out.println();\n\n\t\t//¿Cúal es el metodo que se manda a llamar si utilizamos los siguientes argumentos?\n\t\tSystem.out.println(\"Resultado4: (a + b) = \" + Operaciones.sumar(3,4L)); //Se manda a llamar un (int,double) ya que un double y un long son de 64 bytes\n\t\tSystem.out.println();\n\n\t\t//¿Cúal es el metodo que se manda a llamar si utilizamos los siguientes argumentos?\n\t\tSystem.out.println(\"Resultado4: (a + b) = \" + Operaciones.sumar(5F,'A')); //Se manda a llamar un (double,int) ya que un \"float\" lo soporta un \"double\" y el \"char\" lo soporta el \"int\"\n\t\tSystem.out.println();\n\t}", "public void add(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] += skalar;\r\n }\r\n }\r\n }", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "public void totalEntradas(int[][] entradas) {\n int totalProductos = 0;\n int costoTotal = 0;\n \n ciclo : {\n for (int i = 0; i < entradas.length; i++) {\n if (entradas[i][1] != 0) {\n totalProductos++;\n costoTotal += entradas[i][3];\n }\n } \n }\n \n DefaultTableModel modelo = (DefaultTableModel) jTableTotalEntradaCostos.getModel();\n Object[] filaNueva = { totalProductos, costoTotal };\n modelo.addRow(filaNueva);\n }", "public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t\treturn result;\n\t}", "public int getSum(List<Integer> a){\n\n int sum = 0;\n\n for(int i = 0; i<a.size(); i++){\n if(a.get(i)<0){\n continue;\n } else{\n sum +=a.get(i);\n }\n }\n return sum;\n }", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }" ]
[ "0.7460277", "0.74362326", "0.7339229", "0.7339229", "0.71971166", "0.7166386", "0.70282036", "0.6954082", "0.6943667", "0.6933946", "0.6922338", "0.68950427", "0.68597203", "0.6714783", "0.667316", "0.66689426", "0.66256386", "0.6606288", "0.6573647", "0.6569226", "0.65582937", "0.65450704", "0.6542268", "0.6527479", "0.6518908", "0.65178347", "0.6516292", "0.64890647", "0.6478205", "0.64735293", "0.6464257", "0.6455642", "0.64548266", "0.6448763", "0.643409", "0.64276284", "0.6426691", "0.6415149", "0.6407109", "0.63923055", "0.63828564", "0.63824314", "0.63653666", "0.6358618", "0.6338548", "0.63339734", "0.63226056", "0.6318809", "0.6297857", "0.62857765", "0.62817234", "0.62572265", "0.6253937", "0.6252642", "0.62484956", "0.62447965", "0.62441146", "0.62320954", "0.62239295", "0.6222758", "0.6222698", "0.621918", "0.6217336", "0.6210111", "0.6198841", "0.61988306", "0.6191663", "0.6183525", "0.61729", "0.61728907", "0.6162729", "0.615429", "0.61534995", "0.6142331", "0.6139143", "0.61383367", "0.6124106", "0.6121984", "0.6110847", "0.6106054", "0.6098283", "0.6096868", "0.6094593", "0.60853255", "0.6084917", "0.60816514", "0.6074991", "0.6069368", "0.6068866", "0.60671514", "0.6061628", "0.60592365", "0.60554445", "0.60553575", "0.6049642", "0.6047631", "0.6038932", "0.60376513", "0.6034459", "0.6033898", "0.6031827" ]
0.0
-1
Este metodo realiza una resta y lo muestra por pantalla.
public void resta(){ System.out.println("Esta es la :"); System.out.println(this.getX() - this.getY()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void remplirPrestaraireData() {\n\t}", "@Override\n\tpublic void recreo() {\n\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void remplirFabricantData() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private Celda rastrearAPacman() {\n // TODO implement here\n return null;\n }", "@Override\n public void alRechazarOperacion() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void remplirUtiliseData() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void remplirMaterielData() {\n\t}", "private void limpa() {\n\t\t// limpa Alfabeto\n\t\tsimbolos.limpar();\n\t\t// limpa conjunto de estados\n\t\testados.limpar();\n\t\t// limpa Funcao Programa\n\t\tfuncaoPrograma.limpar();\n\t\t// Limpa estados finais\n\t\testadosFinais.limpar();\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void trabajar() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "Reserva Obtener();", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}", "@Override\n\tpublic void rotiereNachRechts() {\n\n\t}", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "public void reiniciar() {\n // TODO implement here\n }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}", "void pasarALista();", "public void reiniciar() {\r\n\t\tauxiliar = primeira;//auxiliar recebe a primeira\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void Ordenamiento() {\n\n\t}", "public Proceso atender() {\n\t\tProceso proceso = raiz.sig;\n\t\tif (proceso == this.raiz) {\n\t\t\tSystem.out.println(\"Cola Vacia\");\n\t\t\treturn null;\n\t\t}\n\t\tProceso sig = proceso.sig;\n\t\tProceso padre = raiz;\n\t\tpadre.sig = sig;\n\t\tsig.padre = padre;\n\t\tcabeza = sig;\n\t\tthis.numProcesos--;\n\t\tthis.calcularTiemposProcesos();\n\t\treturn proceso;\n\t}", "@Override\n public void perish() {\n \n }", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }", "public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}", "@Override\n public void memoria() {\n \n }", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "private void reinit() {\n this.nodo1Sel = new Nodo1();\n this.objNodo1 = new Nodo1();\n this.objNodo1Buscar = new Nodo1();\n this.lstNodo1 = new ArrayList<Nodo1>();\n this.lstNodoB = new ArrayList<Nodo1>();\n this.lstNodoBuscar = new ArrayList<Nodo1>();\n this.estadoSel = -1;\n this.estadoSel1 = -1;\n this.comando1 = \"rman\";\n this.comando2 = \"rmaf\";\n this.comando5 = \"uuyy\";\n //this.cargarNodo1();\n this.obtenerNodo1DadoFecha();\n this.graficar();\n\n //fecha1 = sdf.format(date1);\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "public void aumentarReproducciones() {\n\t\treproducciones++;\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "private void poetries() {\n\n\t}", "Persoana(Tools t, int cr) { ob = null; ti = t; currentrowi = cr; }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void movimiento_especial(){\n\n movesp=ataque/2;\n defensa+=5;\n PP= PP-4;\n }", "public void mo38117a() {\n }", "@Override\r\n\tpublic void realizarTransacción() {\n\t\tSystem.out.println(\"Transaccion en progreso\");\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "public void revolver() {\n this.lista = Lista.escojerAleatorio(this, this.size()).lista;\n }", "public GestorAtracciones()\n {\n gestor_trabajadores = new GestorTrabajadores();\n atracciones = new ArrayList<>();\n lectura = new Scanner(System.in);\n crearAtracciones();\n calculoTipoAtraccion();\n calculoPersonal();\n }", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "public void anterior(){//executa metodo que volta pagina de regitro de funcionarios\r\n\t\tdao.anterior();\r\n\t}", "void berechneFlaeche() {\n\t}", "public static void atualizar(Tarefa tar) {\n }", "public void asetaTeksti(){\n }", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}", "private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}", "protected Asignatura()\r\n\t{}", "public void testaReclamacao() {\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "@Override\n public Nodo ejecutar() {\n listaNodos.add(nodoRaiz);\n //nodo almacenado temporalmente\n Nodo nodoActual;\n //cola de hijos producto de aplicar ops\n ArrayList <Nodo> cola;\n \n NODO:while(!(listaNodos.isEmpty()))\n {\n nodoActual=listaNodos.get(0);\n listaNodos.remove(0);\n //Detecto el nodo como un ciclo y salto si sí es luego verifico meta\n if(nodoCiclo(nodoActual))\n {\n \n// System.out.println(\"Es Ciclo: \"+nodoActual.getOperador());\n continue NODO;\n }\n else if(esMeta(nodoActual)){\n solucion(nodoActual);\n JOptionPane.showMessageDialog(null, \"nodos expandidos\"+nodoexpandidos+\"profundidad\"+profundidad);\n return nodoActual;\n }\n //Expando Nodo\n cola=expandirNodo(nodoActual);\n nodoexpandidos++;\n for(int i=0;i<cola.size();i++)\n {\n Nodo temporal=cola.get(i);\n cola.set(i, temporal);\n \n }\n //Armo cola general\n cola.addAll(listaNodos);\n listaNodos=(ArrayList <Nodo>)cola.clone();\n }\n return null;\n }", "protected void aktualisierenFirst() {\r\n\t\taktualisieren();\r\n\t\tfarbeSetzen(\"Weiss\");\r\n\t}", "public contrustor(){\r\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "public Repartidor(String nombre, String apellido, String direccion, String telefono, String cedula) {\n super(nombre, apellido, direccion, telefono, cedula);\n this.disponible = true; //empieza siendo disponible luego cuando lo utilicemos pasara a no estarlo y asi...\n this.salario = 50; //establecemos un salario inicial de 50 al que luego le adicionaremos segun la cantidad de envios que haya realizado con exito \n }", "private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public void disparar(){}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void trenneVerbindung();", "private Retorno( )\r\n {\r\n val = null;\r\n izq = null;\r\n der = null;\r\n\r\n }", "private List<Node<T>> completaCamino(Node<T> ret, List<Node<T>> camino) {\r\n\t\tboolean comp = true;// Comprobacion\r\n\t\tcamino.add(ret);// Aņadimos el nodo al camino\r\n\t\twhile (comp) {\r\n\t\t\tif (ret.getParent() != null) {// Mientras no sea la raiz\r\n\t\t\t\tcamino.add(ret.getParent(), 1);// Aņade al inicio de la lista\r\n\t\t\t\tret = ret.getParent();// Hace que el padre sea el nuevo nodo\r\n\t\t\t} else if (ret.getParent() == null) {// Si es la raiz\r\n\t\t\t\tcomp = false;// Cancela\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn camino;\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public Reparto(){\n\t\t\n\t}", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }", "public void aplicarDescuento();", "public void realiserAcahatProduit() {\n\t\t\n\t}", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "private String menorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoIzq().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn menorTurno(a.hijoIzq());\n\t}", "abstract void trataAltera();", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1531a() {\n }", "private UsineJoueur() {}", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }", "public String cargarDatos()\r\n/* 137: */ {\r\n/* 138:163 */ limpiar();\r\n/* 139:164 */ return \"\";\r\n/* 140: */ }", "@Override\n protected void regolaRisultato(String risultatoRequest) {\n HashMap mappa = null;\n super.regolaRisultato(risultatoRequest);\n\n if (risultatoRequest != null) {\n mappa = LibWiki.creaMappaQuery(risultatoRequest);\n }// fine del blocco if\n\n if (mappa != null) {\n if (mappa.get(PagePar.missing.toString()) != null && (Boolean) mappa.get(PagePar.missing.toString())) {\n setRisultato(TipoRisultato.nonTrovata);\n valida = false;\n }// end of if cycle\n\n if (mappa.get(PagePar.missing.toString()) != null && !(Boolean) mappa.get(PagePar.missing.toString())) {\n if (mappa.get(PagePar.content.toString()) != null) {\n setRisultato(TipoRisultato.letta);\n valida = true;\n }// end of if cycle\n }// end of if cycle\n }// fine del blocco if\n }", "public void busqueda_Aestrella(Estado estado_inicial, Estado estado_final) {\r\n\t\tabiertos.add(estado_inicial); // Añado como nodo abierto el punto de partida del laberinto\r\n\t\tEstado actual = abiertos.get(0); // Selecciono como punto actual el primero de los nodos abiertos (el punto de partida)\r\n\t\ttrata_repe = 1; // Variable para indicar al switch como tiene que tratar los repetidos en el switch del metodo tratar_repetidos\r\n\t\twhile (actual != estado_final && !abiertos.isEmpty()) { // Mientras que actual no sea el punto final y haya nodos abiertos\r\n\t\t\titeraciones++; // Contador de iteraciones del bucle while\r\n\t\t\tabiertos.remove(0); // Elimino el nodo actual de la lista de abiertos\r\n\t\t\tcerrados.add(actual); // Y lo añado a nodos cerrados\t\t\t\r\n\t\t\testados_cerrados = cerrados.size(); // Contador para estados cerrados\r\n\r\n\t\t\thijos = generar_sucesores(actual); // Genero los hijos del punto actual (Limpio de muros o punto de inicio)\r\n\t\t\thijos = tratar_repetidos(cerrados, abiertos, hijos); // Trato los repetidos\r\n\t\t\tinsertar(hijos); // Acolo los hijos en la lista de abiertos\r\n\t\t\testados_visitados += hijos.size(); // Contador para estados visitados\r\n\r\n\t\t\tCollections.sort(abiertos, getCompHeuristicaMasProf()); // Ordeno por heuristica Manhattan + Profundidad la cola de abiertos\r\n\r\n\t\t\tactual = abiertos.get(0); // Selecciono como actual el primero en la cola de abiertos\r\n\r\n\t\t\tif (actual.equals(estado_final)) { //Compruebo si estamos en el estado final\r\n\t\t\t\tmostrarcamino(actual, estado_final); // Muestro el camino solucion\r\n\t\t\t\tbreak; //Salgo del bucle while\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void recorrer(){\r\n \r\n NodoJugador temporal = primero;\r\n while(temporal != null){\r\n System.out.println(temporal.getDato());\r\n temporal = temporal.getSiguiente();\r\n \r\n }\r\n \r\n }", "private void restaApostado() {\n\t\tif(apostado.get() >= 1.0) apostado.set(apostado.get() -1.0);\n\t\t\tdiruField.setText(String.format(\"%.2f\", apostado.get()));\n\t\t\tactualizaPremio();\n\t\t\t\n\t}", "public void resta(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n }\n }\n }" ]
[ "0.6567296", "0.6501452", "0.6410025", "0.62252575", "0.61441237", "0.6133753", "0.611239", "0.6091769", "0.60687214", "0.5994966", "0.5971783", "0.59672576", "0.5936294", "0.5893424", "0.58729655", "0.5864107", "0.58529747", "0.5846332", "0.5845998", "0.5834249", "0.5833296", "0.5824368", "0.5823366", "0.58025783", "0.57975817", "0.5791719", "0.57699364", "0.5759238", "0.57481855", "0.5732448", "0.57256407", "0.57197523", "0.5716567", "0.5708789", "0.57039577", "0.57027066", "0.5700058", "0.5699288", "0.5696145", "0.56948787", "0.56916654", "0.56818753", "0.566784", "0.56520027", "0.5648392", "0.5643941", "0.5635286", "0.56253403", "0.56192917", "0.56146526", "0.56006694", "0.5600561", "0.5587431", "0.55862", "0.55825996", "0.55820066", "0.55691576", "0.5566555", "0.5558879", "0.5558154", "0.55564994", "0.5552653", "0.55448556", "0.55364853", "0.55350417", "0.5532902", "0.5532422", "0.55228937", "0.55227065", "0.5521731", "0.5520399", "0.5517733", "0.55059606", "0.5497325", "0.5491931", "0.54915816", "0.54909503", "0.548972", "0.5489641", "0.54850614", "0.5483613", "0.5481451", "0.5481047", "0.5480155", "0.54703325", "0.54697526", "0.5469236", "0.5461557", "0.5457937", "0.5451038", "0.544542", "0.54293483", "0.54284656", "0.5426575", "0.54226685", "0.542092", "0.5417879", "0.54168063", "0.5414698", "0.54126674", "0.5412007" ]
0.0
-1
(var peremennaya = 1; peremennaya < 12; peremennaya = peremennaya +1)
private boolean for_cond(){ int save = position; boolean for_cond = false; if (getNextLexeme() == Lexeme.LP) { if(init()){ if(log_exp() && getNextLexeme() == Lexeme.END){ if(getNextLexeme() == Lexeme.VAR && assign_op()) { if (getNextLexeme() == Lexeme.RP) { for_cond = true; } } } } } position = for_cond ? position : save; return for_cond; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int potencia(int x, int y){\r\n int potencia = x;\r\n if (y!=0){\r\n for (int i = 1; i<y; i++){\r\n potencia = potencia * x;\r\n }\r\n }else {\r\n potencia = 1;\r\n }\r\n return potencia;\r\n}", "public void plum() {\n plum = true;\n }", "public void sueldo(){\n if(horas <= 40){\n sueldo = horas * cuota;\n }else {\n if (horas <= 50) {\n sueldo = (40 * cuota) + ((horas - 40) * (cuota * 2));\n } else {\n sueldo = ((40 * cuota) + (10 * cuota * 2)) + ((horas - 50) + (cuota * 3));\n }\n }\n\n }", "private static void calc1(int x) {\n\t\tx+=1;\n\t}", "public static void main(String[] args) {\n\t\tint number = 2589;\n\t\tint y;\n\n\t\tint miavor = number / 1000;\n\t\tSystem.out.println(\"Miavor : \" + miavor);\n\n\t\tint tasnavor = (number / 100) % 10;\n\t\tSystem.out.println(\"Tasnavor : \" + tasnavor);\n\n\t\tint haryuravor = (number / 10) % 10;\n\t\tSystem.out.println(\"Haryuravor : \" + haryuravor);\n\n\t\tint hazaravor = number % 10;\n\t\tSystem.out.println(\"Hazaravor : \" + hazaravor);\n\n\t\tif ((miavor + tasnavor + haryuravor + hazaravor) > 20) {\n\t\t\ty = 1;\n\t\t\tSystem.out.println(y);\n\t\t} else {\n\t\t\ty = 0;\n\t\t\tSystem.out.println(y);\n\t\t}\n\n\t}", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public void increase_BUIBYDryingFactor(){\r\n\tBUO=BUO+DF;\r\n}", "public void setPoistumisaika(double poistumisaika) {\n\t\tthis.poistumisaika = poistumisaika + ThreadLocalRandom.current().nextDouble(1, 10);\n\t}", "public boolean restarVarios(int num){\n\t\tif (numero>0 && numero>num) {\n\t\t\tnumero -= num;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }", "static int logic(int x,int y){\n int z;\n if(x>y){\n z=x+y;\n }\n else\n {\n z=(x+y)*5;\n }\n return z;\n }", "private void increment() {\r\n salary = (int) (salary + salary * 0.2);\r\n }", "boolean incLowValue() { return true; }", "public static void metodo01 ( int x )\r\n {\r\n // repetir enquanto valor maior que zero\r\n while ( x > 0 )\r\n {\r\n // mostrar valor\r\n IO.println ( \"Valor = \" + x );\r\n // passar ao próximo\r\n x = x - 1;\r\n } // fim se\r\n }", "public static void main(String[] args) {\n\n double valorTotal = 36000;\n\n for (int parcela = (int) valorTotal; parcela >= 1; parcela--) {\n double valorParcela = valorTotal / parcela;\n if (valorParcela >= 1000) {\n System.out.println(parcela + \" parcelas de \" + valorParcela + \"R$\");\n }\n }\n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "public int incrementar(int contador){\nSystem.out.println(\"Escoge la cantidad a incrementar\");\nnum=teclado.nextInt();\nfor(int i=0 ; i<num ; i++){\ncontador=contador+1;}\nreturn contador;}", "static int sumOf1To100nos() {\r\n\t\t \r\n\t\t int sum =0;\r\n\t\t \r\n\t\t for(int i=1; i<=100;i++) {\r\n\t\t\t sum+=i;\r\n\t\t }\r\n\t\t \r\n\t\t return sum;\r\n\t }", "public int a() {\n return 366;\n }", "int kelilingPP(int a, int b){\r\n return 2*(a+b);\r\n }", "protected final int calculateInterst1(int pr){\n\t\t return pr*10*1/100;\n\t }", "public static void main(String[] args) {\n int nilai = 20;\n if (nilai * 2 < 40) {\n nilai += 5;\n }\n if (nilai <= 10) {\n System.out.println(\"algoritma \");\n if (nilai % 2 == 1) {\n System.out.println(\"pemrograman \");\n } else {\n System.out.println(\"java \");\n }\n } else {\n System.out.println(\"bukan algoritma \");\n if (nilai % 2 == 1) {\n System.out.println(\"pemrograman \");\n } else {\n System.out.println(\"java \");\n }\n }\n }", "public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "@Override\n\tpublic double calculsalaire() {\n\t\treturn 1500 + nbY*20;\n\t}", "public static void main(String[] args) {\nint n1=20;\r\nn1 =50;\r\nSystem.out.println(n1);\r\nn1+=50;\r\nSystem.out.println(n1);\r\nn1-=30;\r\nSystem.out.println(n1);\r\nn1*=2;\r\nSystem.out.println(n1);\r\n\t}", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public int resta(){\r\n return x-y;\r\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public void win(int wager){\n bankroll += wager;\n }", "void increase();", "void increase();", "private void asserEquals(int esperado, int resultado) {\n\t\t\r\n\t}", "int range(){\n return fuelcap*mpg;\n }", "public void minutoStamina(int minutoStamina){\n tiempoReal = (minutoStamina * 6)+10;\n }", "public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }", "protected void incrementarSalario(){\n this.setSalario(getSalario() * 1.5);\n\n }", "public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}", "int moverseY(int a,int b){ \n if(b<a){\n return 0;\n }else{\n return 1;\n }//fin else2\n //fin else\n }", "private static int getBonus(int sales) {\n if (sales > 5000) {\n\n return sales / 10;\n\n }\n return 0;\n }", "public void GanharPokemons(int x)\n {\n this.numPokemons = this.numPokemons + x;\n }", "public double ReLUPrime(double x){\n double y = 0.0;\n if(x>y){\n y = 1.0;\n }\n return y;\n }", "public double calcularIncremento(){\n double incremento=0.0;\n \n if (this.edad>=18&&this.edad<50){\n incremento=this.salario*0.05;\n }\n if (this.edad>=50&&this.edad<60){\n incremento=this.salario*0.10;\n }\n if (this.edad>=60){\n incremento=this.salario*0.15;\n }\n return incremento;\n }", "public int limitesY(){\n int v=0;\n if (columna==0 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else if (columna==15 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else{v=esquinas();}\n return v;\n }", "public int generateRoshambo(){\n ;]\n\n }", "public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }", "@Override\n public void calcularIntGanado() {\n intGanado = saldo;\n for(int i = 0; i < plazoInv; i++){\n intGanado += inve * 12;\n intGanado += intGanado * (intAnual / 100);\n }\n intGanado = intGanado - (inve + saldo);\n }", "void awardPoints(){\n if (currentPoints <= 100 - POINTSGIVEN) {\n currentPoints += POINTSGIVEN;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }\n }", "public void setCantidadAvenidasYCalles(int avenidas, int calles);", "private static int calc(int c) {\n\t\treturn 1;\n\t}", "void increase()\n {\n a++;\n b++ ;\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}", "public static int randomanint(int a, int b, int semilla){ \n Random rnd = new Random(semilla);\n int rndInd = (int)(b + ( a - b ) * rnd.nextDouble());\n return rndInd;\n }", "void modThresh1(int theValue){\n\t threshold1=10*theValue;\n\t // threshold2 = threshold1 + 1;\n\t println(\"mod t1: \" + threshold1) ;\n\t}", "public int disminuir(int contador){\nSystem.out.println(\"Escoge la cantidad a disminuir\");\nnum=teclado.nextInt();\nfor(int i=0 ; i<num ; i++){\ncontador=contador-1;}\nreturn contador;}", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "static boolean blanco(int numero){\n\t\tboolean resultado; \n\t\tif (numero > 43){\n\t\t\tresultado = true;\n\t\t}else{\n\t\t\tresultado = false;\n\t\t}\n\t\treturn resultado;\t\n\t}", "public static int foodperWeek(){\n return 1;\n }", "boolean incHighValue() { return true; }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public void engordar(double peso){\r\n\t\tthis.peso = this.peso + peso;\r\n\t}", "private void setK(int mu) {\r\n\t\tk = 1;\r\n\t\tint g = 0;\r\n\t\tint intervalLength = intervals.length;\r\n\t\twhile(g<intervalLength && mu>intervals[g]) {\r\n\t\t\tg++;\r\n\t\t\tk++;\r\n\t\t}\r\n\t}", "public void setIncrement( final int value ) {\n checkWidget();\n if( value >= 1 && value <= maximum - minimum ) {\n increment = value;\n }\n }", "bool setFrequency(double newFrequency)\n {\n if (newFrequency > 534 && newFrequency < 1606)\n {\n frequency = newFrequency\n return true;\n }\n return false;\n }", "public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n double originalMoney = scn.nextDouble();\n double yearlyP = scn.nextDouble();\n double desireK = scn.nextDouble();\n int years = 0;\n while (originalMoney < desireK) {\n originalMoney += originalMoney * yearlyP / 100;\n years++;\n }\n System.out.println(years);\n }", "public void increaseDay(){\n leapyear(year); //Call leapyear on year to check for leap year\r\n day++; //Increment day\r\n if(day > days[month-1]){ //If day reaches higher than the month's day\r\n day = 1; //Set day to zero\r\n month++; //Increment month\r\n }\r\n if(month > 12){ //If month reaches greater than 12\r\n year++; //Increment year\r\n month = 1; //Set month to 1\r\n }\r\n}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\tint a= 50;\n\t\ta= --a + a++ + a-- + a++;// pre hemen post bir sonrakinde\n\n\t\t//a= 49+49+50+49 = 197\n\t\t\n\t\t\n\t\tSystem.out.println(a);\n\n\t\t\n\t\t\n\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public void increaseScore(int p) {\n score += p;\n //Minden novelesnel megnezzuk, hogy elertuk-e a gyozelem szukseges pandaszamot.\n if(score >= 25 && game.getSelectedMode() == Game.GameMode.FinitPanda){\n //Ha elertuk, szolunk a jateknak hogy vege.\n game.SaveHighScore(score);\n game.gameOver();\n }\n }", "public static void main(String[] args) {\nint i;\nint sum=0;\nfor (i=1;i<=5; sum =sum + i++) \n\tSystem.out.println(\"сумма= \" +sum);\n\n\t}", "int calculaY(){\n int n;\n if(pratonl[0][1]==pquesol[0][1]){//evalua si esta en la misma fila\n n=0;\n }else{\n n=pquesol[0][1]-pratonl[0][1]; \n }\n return n;\n }", "public static void main(String[] args) {\n\t\r\nfor (int i=1; i<=20; i++) {\r\n\tif (i!=20) {\r\n\t\t\r\n\tSystem.out.print(i+\"+\");\r\n}\r\nelse {\r\n\tSystem.out.println(i);\r\n}\r\n\t}\r\n\r\n}", "public void setPapeles(int avenida, int calle, int cant);", "private int activate(float sum) {\r\n if (sum > 0) {\r\n return 1;\r\n } else {\r\n return -1;\r\n }\r\n }", "@Override\n public void setExperiencia(){\n experiencia1=Math.random()*50*nivel;\n experiencia=experiencia+experiencia1;\n subida();\n }", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "public void setPlayerRoll10()\r\n {\r\n \r\n roll1 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE10 + LOWEST_DIE_VALUE10);\r\n }", "int main()\n{\n int units,r;\n cin>>units;\n if (units<=200) {\n r=units*0.5;\n cout<<\"Rs.\"<<r;\n }\n else if (units>=200 && units<=400){\n r=0.65*units+100;\n cout<<\"Rs.\"<<r;\n }\n else if (units>=400 && units<=600){\n r=0.8*units+200;\n cout<<\"Rs.\"<<r;\n }\n else{\n r=1.25*units+425;\n cout<<\"Rs.\"<<r;\n }\n}", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "public static void code_fragment(){\n int[] a = new int[10];\n for(int i = 0; i < 10 ; i++){\n a[i] = 9 - i;\n // Custom code to print values\n print_value(i, a[i]);\n }\n for(int i = 0; i < 10 ; i++){\n a[i] = a[a[i]];\n // Custom code to print values\n print_value(i, a[i]);\n }\n for(int i = 0; i < 10 ; i++){\n System.out.println(i);\n }\n }", "public void speedRange1()\n\t{\n\t\trange = (gen.nextInt(upper1 - lower1)+1) + lower1;\n\t\tspeedBalloonY1 = range;\n\t}", "public void iniciar(){\nSystem.out.println(\"El primer contador comenzara en el número 0\");\ncontador=0;\nSystem.out.println(\"El segundo contador comenzara en el número 100\");\ncontador2=100;}", "public void VaciarPila()\n {\n this.tope = 0;\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public int getPapeles(int avenida, int calle);", "int lanzar(int n){\n int result = (int) (Math.random()* 6) + 1;\r\n if(result !=n ) result = (int) (Math.random()* 6) + 1;\r\n return result;\r\n \r\n /*\r\n * int result = (int) (Math.random()*9)+1;\r\n * if (result > 0 && result < 7) return result;\r\n * else if(result > 6 && result < 9) return n;\r\n * else return (int) (Math.random()*6)+1;\r\n *\r\n *\r\n */\r\n }", "public static int setStudentNumber(){\n countNumbers++;//1 2 3\n return countNumbers;\n\n }", "public static int randomabin(int semilla){ \n Random r = new Random();\n int valor = r.nextInt(2); // Entre 0 y 1.\n return valor;\n }", "public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}", "private void girar(int delta){\r\n\t\tang = angDestino;\r\n\t}", "private int p(final int x) {\n assert(valid(x));\n return (x-1)/2;\n }", "public void Down4()\r\n {\r\n if(By2>0 && By2<900){\r\n \r\n By2+=2.5;\r\n }\r\n }", "Period mo20733e();", "public static int f_total_people(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"imput the total people do you need?\");\n int v_total_people= keyboard.nextInt();\n while(v_total_people<1 || v_total_people>1000){\n System.out.println(\"ERROR the value should be between 1 to 1000, imput again the total people do you want:\");\n v_total_people=keyboard.nextInt();\n }\n return v_total_people;\n }", "int pacemodulator() {\n int buckpacedirector = ((rand.nextInt() >> rightshift) & 7);\n int rbuckpacedirector = 0;\n\n rbuckpacedirector = switch (buckpacedirector)\n {\n case 0 -> 2;\n case 1 -> 3;\n case 2 -> 4;\n case 3 -> 5;\n case 4 -> 6;\n case 5 -> 7;\n case 6 -> 8;\n default -> 1;\n };\n return rbuckpacedirector;\n }", "public static void main(String[] args) {\n var nilai = 75;\n String ucapan;\n if (nilai >= 75) {\n ucapan = \"Selamat Anda Lulus\";\n } else {\n ucapan = \"Silahkan Coba Lagi\";\n }\n\n // Dengan Ternary Operator\n String ucapan1 = nilai >= 75 ? \"Selamat Anda Lulus\": \"Silahkan Coba Lagi\";\n System.out.println(ucapan1);\n }" ]
[ "0.57993186", "0.5736528", "0.5653789", "0.55852765", "0.5516325", "0.54699206", "0.54632443", "0.54578984", "0.5423806", "0.5416574", "0.53975207", "0.53964686", "0.5361847", "0.53457135", "0.5327015", "0.5325496", "0.5321146", "0.5316633", "0.5313416", "0.5308347", "0.5290665", "0.5287617", "0.52862257", "0.5283781", "0.5259309", "0.52474934", "0.52364993", "0.5233216", "0.5222112", "0.52098477", "0.52011824", "0.52011824", "0.51953155", "0.5183864", "0.5179146", "0.51785886", "0.51757985", "0.5164654", "0.51559716", "0.5153286", "0.51509935", "0.5148285", "0.5147131", "0.5140464", "0.51361847", "0.51347196", "0.513112", "0.51286143", "0.5127291", "0.511185", "0.51079047", "0.51011944", "0.50993085", "0.5093223", "0.5091761", "0.5089237", "0.50829893", "0.507369", "0.507131", "0.50694764", "0.50672424", "0.50574523", "0.50553554", "0.50551295", "0.5054709", "0.50547016", "0.5050198", "0.5049934", "0.504395", "0.50437963", "0.5033404", "0.50327206", "0.50317127", "0.5030914", "0.5026061", "0.5023887", "0.5022918", "0.50210756", "0.50175756", "0.5015638", "0.5015245", "0.5014796", "0.5013562", "0.500981", "0.5005435", "0.49983457", "0.49903786", "0.4987736", "0.4972909", "0.49695748", "0.49681747", "0.4967695", "0.49670282", "0.4964813", "0.49646732", "0.4959668", "0.4954543", "0.49508122", "0.49503794", "0.49491638", "0.4945879" ]
0.0
-1
/ Events Adds EventSource(s) to this model's eventList.
public void addEvents(EventSource... events) { for (EventSource e : events) { // Create a deep-copy of each addition. this.eventList.add(new EventSource(e)); } notifyEventListListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListEventSourcesResult listEventSources() throws AmazonServiceException, AmazonClientException {\n return listEventSources(new ListEventSourcesRequest());\n }", "public void addEvents(List<TimelineEvent> events) {\n this.events.addAll(events);\n }", "public void addEvent(Event e){\r\n\t\tallEvents.add(e);\r\n\t}", "void addToModel(Model model, List<Event> eventsToAdd) throws Exception {\n for (Event p: eventsToAdd) {\n model.addEvent(p);\n }\n }", "public EventsListAdapter(List<Event> events) {\n this.events = events;\n }", "public List<EventSource> getEventList() {\n List<EventSource> result = new ArrayList<>();\n for (EventSource event : this.eventList) {\n // Create a deep-copy of each EventSource.\n result.add(new EventSource(event));\n }\n // Return an unmodifiable list.\n return Collections.unmodifiableList(result);\n }", "public ListEventSourcesResult listEventSources(ListEventSourcesRequest listEventSourcesRequest) {\n ExecutionContext executionContext = createExecutionContext(listEventSourcesRequest);\n AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();\n awsRequestMetrics.startEvent(Field.ClientExecuteTime);\n Request<ListEventSourcesRequest> request = null;\n Response<ListEventSourcesResult> response = null;\n \n try {\n awsRequestMetrics.startEvent(Field.RequestMarshallTime);\n try {\n request = new ListEventSourcesRequestMarshaller().marshall(super.beforeMarshalling(listEventSourcesRequest));\n // Binds the request metrics to the current request.\n request.setAWSRequestMetrics(awsRequestMetrics);\n } finally {\n awsRequestMetrics.endEvent(Field.RequestMarshallTime);\n }\n\n Unmarshaller<ListEventSourcesResult, JsonUnmarshallerContext> unmarshaller =\n new ListEventSourcesResultJsonUnmarshaller();\n JsonResponseHandler<ListEventSourcesResult> responseHandler =\n new JsonResponseHandler<ListEventSourcesResult>(unmarshaller);\n\n response = invoke(request, responseHandler, executionContext);\n\n return response.getAwsResponse();\n } finally {\n \n endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);\n }\n }", "public void addEvents(ArrayList<FbEvent> events) throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase();\n\t\ttry {\n\t\t\tfor (FbEvent event : events) {\n\t\t\t\tContentValues contents = prepareContentValues(event);\n\t\t\t\tdb.insert(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, contents);\n\t\t\t}\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public void setEventList(List<EventSource> events) {\n this.eventList.reset(events);\n notifyEventListListeners();\n }", "public void addEvent(Event event) {\n events.add(event);\n }", "private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }", "protected void AddEvents()\r\n {\r\n INotifyPropertyChanged propParent = (INotifyPropertyChanged)getProxyParent();\r\n propParent.getPropertyChanged().addObservers(filterPropertyChanges);\r\n }", "public List<Event> getEventsList() {\n List<Event> eventDetails = eventRepository.findAll();\n return eventDetails;\n }", "public ArrayList<Event> getEvents(){\n return this.events;\n }", "public Event addEvent(Event event) {\n\t\t\tif (events == null) {\n\t\t\t\tevents = new ArrayList<Event>();\n\t\t\t}\n\t\t\tif (!events.contains(event)) {\n\t\t\t\tevents.add(event);\n\t\t\t\tevent.addClient(this);\n\t\t\t}\n\t\t\n\t\t\treturn event;\n\t\t}", "public void addToEvents(final SapEvent value)\n\t{\n\t\taddToEvents( getSession().getSessionContext(), value );\n\t}", "public static ArrayList<Events> getEventsArrayList(){\n if (EVENTS_ARRAY_LIST.isEmpty()){\n EVENTS_ARRAY_LIST.addAll(generateEventList());\n }\n return EVENTS_ARRAY_LIST;\n }", "public void addEvent(Event event) {\n\t\t\n\t}", "public void addEvent(Event event) {\n getEvents().add(event);\n }", "public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}", "public void insert(List<Event> eventsList);", "@Override\n public void onChanged(@Nullable List<Event> events) {\n adapter.setEvents(events);\n for (Event event:events) {\n Log.e(\"** EVENT **\", \"CATEGORY: \" +event.getCategoryId() + \", Event : \" + event.getName());\n }\n }", "private void notifyListeners() \n\t{\n\t\tSystem.out.println(\"Event Source: Notifying all listeners\");\n\n\t\tfor(IListener listener : listeners)\n\t\t{\n\t\t\tlistener.eventOccured(new Event(this));//passing and object of source\n\t\t}\n\n\t}", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call eventSourceServiceListEventSourcesValidateBeforeCall(String namespace, String listOptionsLabelSelector, String listOptionsFieldSelector, Boolean listOptionsWatch, Boolean listOptionsAllowWatchBookmarks, String listOptionsResourceVersion, String listOptionsResourceVersionMatch, String listOptionsTimeoutSeconds, String listOptionsLimit, String listOptionsContinue, final ApiCallback _callback) throws ApiException {\n if (namespace == null) {\n throw new ApiException(\"Missing the required parameter 'namespace' when calling eventSourceServiceListEventSources(Async)\");\n }\n \n\n okhttp3.Call localVarCall = eventSourceServiceListEventSourcesCall(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, _callback);\n return localVarCall;\n\n }", "private void createEvents() {\n\t}", "public void readInEvents() {\n // read CSV file for events\n allEvents = new ArrayList<Event>();\n InputStream inputStream = getResources().openRawResource(R.raw.events);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] eventData = (String[]) scoreList.get(i);\n\n // group together description\n String description = getDescription(8, eventData);\n\n // inputs to Event constructor:\n // String name, String date, String startTime, String endTime, String location,\n // int photoID, String organizations, String categories, String description\n\n // get image ID according to its name\n int photoID = context.getResources().getIdentifier(eventData[5], \"drawable\", context.getPackageName());\n allEvents.add(new Event(eventData[0], eventData[1], eventData[2], eventData[3], eventData[4],\n photoID, eventData[6], eventData[7], description));\n\n\n //System.out.println(\"ADD Event: \" + eventData[0]);\n }\n\n }", "public void addEvent(TimelineEvent event) {\n events.add(event);\n }", "public void setEvents(List<TimelineEvent> events) {\n this.events = events;\n }", "public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "private void onAdd()\n {\n // get the source list selection\n Object selection[] = _lstSource.getSelectedValues();\n\n // iterate the selection\n EntityDobj table;\n TransferEntity te;\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the table\n table = (EntityDobj)selection[i];\n if(table != null)\n {\n // create new te\n te = new TransferEntity();\n te.setSourceEntityName(table.getName());\n\n // add to the target list and the datasource\n _lstTarget.addItem(te);\n _dt.addTransferEntity(te);\n }\n }\n\n // remove the selection from the source list\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the table\n table = (EntityDobj)selection[i];\n if(table != null)\n _lstSource.removeItem(table);\n }\n }", "public ArrayList<Event> getAllEvents()\r\n\t{\r\n\t\treturn dataService.getAllEvents();\r\n\t}", "@Override\n public void eventList(ArrayList<EventModel> eventList) {\n for (int i = 0; i < eventList.size(); i++) {\n //Log.e(\"tag\", \"eventList.getStrName:-\" + eventList.get(i).getStrName());\n }\n\n }", "public void setEvents(AbstractList<Event> events) {\r\n\t\tthis.events = (ArrayList<Event>) events;\r\n\t}", "public void addEvent(Event t, Room r, ArrayList<Speaker> s, LocalDateTime start, LocalDateTime end){\n EventMapFeatures q = new EventMapFeatures(r, s, start, end);\n eventMap.put(t, q);\n eventList.add(t);\n Collections.sort(eventList, Comparator.comparing(Event::getStartTime));\n eventIdsList.clear();\n for (Event e : eventList){\n eventIdsList.add(e.getEventId());\n }\n }", "public void addToEvents(final SessionContext ctx, final SapEvent value)\n\t{\n\t\tEVENTSHANDLER.addValue( ctx, this, value );\n\t}", "public void addDataSources(Collection<DataSource> sources) {\n if (containsDataSource(sources)) { // there are duplicates so trim the collection\n removeIdenticalDataSources(sources);\n }\n datasources.addAll(sources);\n }", "public void addEvent(Event e) {\n\t\t\n\t}", "public void addEvent(Event e) {\n\t\t\n\t}", "public void addEvent(String date, String name, String start, String end) {\n\n // Create event based on the parameters\n Event event = new Event(name, start, end);\n\n Boolean foundEventList = false;\n\n for (EventList e : events) {\n if (e.getDate().equals(date)) {\n e.add(event);\n foundEventList = true;\n break;\n }\n }\n\n if (!foundEventList) {\n EventList eventList = new EventList(date);\n eventList.add(event);\n events.add(eventList);\n }\n\n update();\n }", "@Override\r\n public List<Events> findAllEvents() {\r\n return em.createNamedQuery(\"Events.findAll\").getResultList();\r\n }", "@WebMethod public List<Event> getAllEvents();", "public AddEventSourceResult addEventSource(AddEventSourceRequest addEventSourceRequest) {\n ExecutionContext executionContext = createExecutionContext(addEventSourceRequest);\n AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();\n awsRequestMetrics.startEvent(Field.ClientExecuteTime);\n Request<AddEventSourceRequest> request = null;\n Response<AddEventSourceResult> response = null;\n \n try {\n awsRequestMetrics.startEvent(Field.RequestMarshallTime);\n try {\n request = new AddEventSourceRequestMarshaller().marshall(super.beforeMarshalling(addEventSourceRequest));\n // Binds the request metrics to the current request.\n request.setAWSRequestMetrics(awsRequestMetrics);\n } finally {\n awsRequestMetrics.endEvent(Field.RequestMarshallTime);\n }\n\n Unmarshaller<AddEventSourceResult, JsonUnmarshallerContext> unmarshaller =\n new AddEventSourceResultJsonUnmarshaller();\n JsonResponseHandler<AddEventSourceResult> responseHandler =\n new JsonResponseHandler<AddEventSourceResult>(unmarshaller);\n\n response = invoke(request, responseHandler, executionContext);\n\n return response.getAwsResponse();\n } finally {\n \n endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);\n }\n }", "public void registerEvents()\n {\n \t\tfinal pchestPlayerListener playerListener = new pchestPlayerListener(this, chestManager);\n \t\tfinal pchestEntityListener entityListener = new pchestEntityListener(this, chestManager);\n \t\tfinal pchestBlockListener blockListener = new pchestBlockListener(this, chestManager);\n \t\t\n \t\t\n pm = getServer().getPluginManager();\n \n /* Entity events */\n pm.registerEvent(Type.ENTITY_EXPLODE, entityListener, Event.Priority.Normal, this);\n \n /* Player events */\n pm.registerEvent(Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\n \n /* Block events */\n \t\tpm.registerEvent(Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\n \t\tpm.registerEvent(Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\n \n \t\t\n /* Spout Required events */\n \t\tif(SpoutLoaded)\n \t\t{\n \t\t\tfinal pchestInventoryListener inventoryListener = new pchestInventoryListener(this, chestManager);\n \n \t /* Inventory events */\n \t\t\tpm.registerEvent(Type.CUSTOM_EVENT, inventoryListener, Event.Priority.Normal, this);\n \t\t}\n }", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "private void setConnections(ObservableList<CalendarEvent> calendarEventList) {\n // populate the calendar\n // setting the appointment group applies the correct CSS to it\n calendarEventList.forEach((calendarEvent -> calendarEvent.setAppointmentGroup(appointmentGroup)));\n agenda.appointments().addAll(calendarEventList);\n\n // push the changes to agenda\n calendarEventList.addListener(this::forwardChanges);\n }", "@Override\n protected void initializeEventList()\n {\n }", "@Override\n public void addAll(Collection<Event> events) {\n events.forEach(this::persist);\n }", "public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }", "public WindowListChangeEvent(Object eventSource) {\n super(eventSource); \n }", "public void addRoverEventListeners( RoverEventListener... eventListeners )\n {\n for ( RoverEventListener eventListener : eventListeners )\n {\n subcribers.add(RoverEventListener.class, eventListener);\n }\n }", "public ArrayList<CampusEvent> fetchEvents() {\n SQLiteDatabase dbObj = getReadableDatabase();\n ArrayList<CampusEvent> entryList = new ArrayList<CampusEvent>();\n\n Cursor cursor = dbObj.query(TABLE_EVENT_ENTRIES, mColumnList, null,\n null, null, null, null);\n\n while (cursor.moveToNext()) {\n CampusEvent event = cursorToEvent(cursor);\n entryList.add(event);\n }\n\n cursor.close();\n dbObj.close();\n\n return entryList;\n }", "@Override\n\tpublic Set<Event> getEvents() {\n return events;\n }", "public static void eventList() {\n\t\tfor (Map.Entry<Calendar, TreeSet<Event>> entry : calendarToEvent.entrySet()) {\n\t\t\tTreeSet<Event> value = entry.getValue();\n\t\t\tfor (Event e: value) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\t\t}\n\t}", "public List<InputEvent> getEvents() {\n return new ArrayList<>(events);\n }", "private void initializeEvents() {\r\n\t}", "@Override\n\tpublic void loadEvents() {\n\t\t\n\t}", "@GetMapping(\"/events\")\n\t\tpublic List<Event> getEvents() {\n\t\t\t\t\treturn theEvents;\n\t\t}", "private void LoadEvent() {\n final String DB_NAME = \"testDB\";\n final String EVENT_TABLE = \"EVENT\";\n try (Connection con = ConnectionTest.getConnection(DB_NAME);\n Statement stmt = con.createStatement();) {\n String query = \"SELECT * FROM \" + EVENT_TABLE;\n try (ResultSet resultSet = stmt.executeQuery(query)) {\n while (resultSet.next()) {\n String date1 = resultSet.getString(\"eventDate\");\n LocalDate eventDate = LocalDate.parse(date1);\n String imageName = resultSet.getString(\"imageName\");\n Image image = new Image(\"file:Images/\" + imageName, 70, 70, false, false);\n String stat = resultSet.getString(\"status\");\n Status status = Status.valueOf(stat);\n Post evOb = new Event(resultSet.getString(\"postID\"), image, resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"creatorID\"),\n status, resultSet.getString(\"eventVenue\"), eventDate, resultSet.getInt(\"eventCapacity\"),\n resultSet.getInt(\"eventAttendCount\")); // Creating a new object\n // Adding it to the list\n events.add((Event) evOb);\n\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "void addToWhatsLeft(WhatsLeft whatsLeft, List<Event> eventsToAdd) throws Exception {\n for (Event p: eventsToAdd) {\n whatsLeft.addEvent(p);\n }\n }", "public AddEvent() {\n initComponents();\n }", "private CalendarModel() {\n events = new ArrayList<>();\n }", "AbstractList<Event> getEventByName(String eventName) {\r\n\t\treturn events;\r\n\t}", "@NotNull\n\tpublic Set<EventCreateRequest> getEvents() {\n\t\treturn events;\n\t}", "public void addEventSource(JComponent c)\n {\n\tc.addMouseListener(this);\n\tc.addMouseMotionListener(this);\n }", "public synchronized void pushEvents(Event[] events) {\r\n\r\n\t\tif (null == events) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (Event event : events) {\r\n\t\t\tif (!this.events.containsKey(event.getTime())) {\r\n\t\t\t\tthis.events.put(new Long(event.getTime()), new ArrayList<Event>());\r\n\t\t\t}\r\n\t\t\tthis.events.get(event.getTime()).add(event);\r\n\t\t}\r\n\t}", "public final void include(RuntimeEnv env, RuntimeStack stack, Scope3007 scope)\n throws IncludeEventException {\n env.addManualClassLoad(\"Swift_Events_EventListener\");\n }", "@RequestMapping(value = \"/allEvent\")\n\tpublic List<Events> getAllEvents() {\n\t\treturn eventDAO.getAllEventsList();\n\t}", "private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }", "public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}", "protected void listEvents(Calendar calendar) {\n List<Event> events = calendar.getEvents();\n List<String> list = new ArrayList<>();\n\n for (Event event : events) {\n list.add(event.getName());\n }\n\n listItem(list);\n }", "public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }", "public AbstractList<Event> getEvents() {\r\n\t\treturn (AbstractList<Event>) events;\r\n\t}", "private void addSources() {\n FeatureCollection emptyFeature = FeatureCollection.fromFeatures(new Feature[] {});\n\n if (mapboxMap.getSourceAs(LocationLayerConstants.LOCATION_SOURCE) == null) {\n mapboxMap.addSource(new GeoJsonSource(\n LocationLayerConstants.LOCATION_SOURCE,\n emptyFeature,\n new GeoJsonOptions().withMaxZoom(16))\n );\n }\n\n if (mapboxMap.getSourceAs(LocationLayerConstants.LOCATION_ACCURACY_SOURCE) == null) {\n mapboxMap.addSource(new GeoJsonSource(\n LocationLayerConstants.LOCATION_ACCURACY_SOURCE,\n emptyFeature,\n new GeoJsonOptions().withMaxZoom(16))\n );\n }\n }", "@NotNull\n\tpublic ArrayList<ArrayList<Event<?>>> getEvents() {\n\t\tif (events == null)\n\t\t\tevents = new ArrayList<>();\n\t\t\n\t\treturn events;\n\t}", "public void addSources(String[] sources) {\n if ( ! this.correlatedSources.isEmpty()) {\n throw new IllegalArgumentException(\"CORE: correlated sources have already been declared in this clause\");\n }\n this.correlatedSources.addAll(Arrays.asList(sources));\n }", "public void setCreatedEvents(List<Event> createdEvents) {\n this.createdEvents = createdEvents;\n }", "public Collection<SapEvent> getEvents(final SessionContext ctx)\n\t{\n\t\treturn EVENTSHANDLER.getValues( ctx, this );\n\t}", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.AddExecutionEventsResponse>\n addExecutionEvents(com.google.cloud.aiplatform.v1.AddExecutionEventsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getAddExecutionEventsMethod(), getCallOptions()), request);\n }", "public void addEvent(OrgEvent event) {\n if (event != null) {\n this.events.add(event);\n }\n }", "public List<EventDesc> getEvents()\r\n {\r\n return Collections.unmodifiableList(events);\r\n }", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n Source source = (Source)event.getSource();\n Cloner cloner = new Cloner();\n final Source clonedSource = cloner.deepClone(source);\n \n // Create wrapper for source clone:\n final TagsSource sourceLogic = new TagsSource(clonedSource);\n \n // Create and render progress information dialog:\n sourceLogic.off(SourceEvent.THREAD_PROGRESS);\n final ProgressInformationDialog progressInformationDialog =\n new ProgressInformationDialog(sourceLogic, SourceEvent.THREAD_PROGRESS);\n progressInformationDialog.render(\"Progress information\", Main.mainForm);\n \n sourceLogic.off(SourceEvent.THREAD_ERROR);\n sourceLogic.on(SourceEvent.THREAD_ERROR, new ThreadErrorEventHandler());\n \n // Subscribe on model's source initialization event:\n sourceLogic.off(SourceEvent.SOURCE_INITIALIZED);\n sourceLogic.on(SourceEvent.SOURCE_INITIALIZED, new CustomEventListener()\n {\n @Override\n public void customEventOccurred(CustomEvent evt)\n {\n progressInformationDialog.close();\n \n if (clonedSource.getTypeId() == SourcesTypes.INTOOLS_EXPORT_DOCUMENT.ID)\n DialogsFactory.produceIntoolsExportDataSourceDialog(sourceLogic, true, \"Edit selected Intools export data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ALARM_AND_TRIP_SCHEDULE.ID)\n DialogsFactory.produceDocumentDataSourceDialog(sourceLogic, true, \"Edit selected document data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.DCS_VARIABLE_TABLE.ID)\n DialogsFactory.produceDcsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected DCS Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ESD_VARIABLE_TABLE.ID)\n DialogsFactory.produceEsdVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected ESD Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.FGS_VARIABLE_TABLE.ID)\n DialogsFactory.produceFgsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected FGS Variable Table data source\");\n }// customEventOccurred\n });// on\n \n // Execute initialization thread:\n sourceLogic.initialize();\n }", "private void initEventList(){\r\n\t\t/*\r\n\t\t * we save a valid event list in internal storage so we can load them in\r\n\t\t * our main activity. So we make sure there is either a valid one alreay in storage\r\n\t\t * or we get a fresh one from our server and save it in storage.\r\n\t\t */\r\n\t\t\r\n\t\t// first try to get an existing eventlist from storage\r\n\t\tJSONObject eventList = FileUtils.readEventListFromStorage(this);\r\n\t\t\r\n\t\tif(eventList != null) {\r\n\t\t\tif(eventListIsValid(eventList)){\r\n\t\t\t\tstartMuseek();\r\n\t\t\t} else {\r\n\t\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t}\r\n\t\t\r\n\t}", "public okhttp3.Call eventSourceServiceListEventSourcesCall(String namespace, String listOptionsLabelSelector, String listOptionsFieldSelector, Boolean listOptionsWatch, Boolean listOptionsAllowWatchBookmarks, String listOptionsResourceVersion, String listOptionsResourceVersionMatch, String listOptionsTimeoutSeconds, String listOptionsLimit, String listOptionsContinue, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/api/v1/event-sources/{namespace}\"\n .replaceAll(\"\\\\{\" + \"namespace\" + \"\\\\}\", localVarApiClient.escapeString(namespace.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n if (listOptionsLabelSelector != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.labelSelector\", listOptionsLabelSelector));\n }\n\n if (listOptionsFieldSelector != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.fieldSelector\", listOptionsFieldSelector));\n }\n\n if (listOptionsWatch != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.watch\", listOptionsWatch));\n }\n\n if (listOptionsAllowWatchBookmarks != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.allowWatchBookmarks\", listOptionsAllowWatchBookmarks));\n }\n\n if (listOptionsResourceVersion != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.resourceVersion\", listOptionsResourceVersion));\n }\n\n if (listOptionsResourceVersionMatch != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.resourceVersionMatch\", listOptionsResourceVersionMatch));\n }\n\n if (listOptionsTimeoutSeconds != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.timeoutSeconds\", listOptionsTimeoutSeconds));\n }\n\n if (listOptionsLimit != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.limit\", listOptionsLimit));\n }\n\n if (listOptionsContinue != null) {\n localVarQueryParams.addAll(localVarApiClient.parameterToPair(\"listOptions.continue\", listOptionsContinue));\n }\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { };\n return localVarApiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public void setDataSources(ArrayList dataSources) {\n this.dataSources = dataSources;\n }", "public List<LogEvent> getEvents() {\n return publicEvents;\n }", "public String addCourseEvent(Events events);", "public void addDataSource(DataSource source) {\n if (!containsDataSource(source)) datasources.add(source);\n }", "public static List<Event> loadEvents() throws JSONException {\n \t\t\n \t\tString data = getJSON(Constants.GOOGLEEVENTS);\n \t\t\n \t\tJSONObject json_obj = new JSONObject(data).getJSONObject(\"feed\");\n \t\tJSONArray json_arr = json_obj.getJSONArray(\"entry\");\n \t\t\t\n \t\tList<Event> events = new ArrayList<Event>();\n \t\t\t\n \t\t//Collection the right content from JSON\n \t\tfor (int i = 0; i < json_arr.length(); i++){\n \t\t\tString title = json_arr.getJSONObject(i).getJSONObject(\"title\").optString(\"$t\");\n \t\t\tString description = json_arr.getJSONObject(i).getJSONObject(\"content\").optString(\"$t\");\n \t\t\tString time = json_arr.getJSONObject(i).getJSONArray(\"gd$when\").getJSONObject(0).optString(\"startTime\");\n \t\t\tString where = json_arr.getJSONObject(i).getJSONArray(\"gd$where\").getJSONObject(0).optString(\"valueString\");\n \t\t\t\t\n \t\t\t//If time is not an all day event\n \t\t\tif(time.length() > \"1967-09-03\".length()){\n \t\t\t\ttime = fromDate(time);\n \t\t\t}\n \t\t\t\n \t\t\t//Add events if it has i title\n \t\t\tif (!title.equals(\"\")){\n \t\t\t\tevents.add(new Event(title, description, where, time + \". \"));\n \t\t\t}\n \t\t}\t\n \t\treturn events;\n \t}", "private void setUpViewModels(){\n EventViewModelFactory factory = new EventViewModelFactory(mDatabase, mEventId);\n EventViewModel eventViewModel =\n ViewModelProviders.of(this, factory).get(EventViewModel.class);\n //Uses view model to get category list\n //listener is called any time the categories are changed or updated\n eventViewModel.getCategoryList().observe(this, new Observer<List<Category>>() {\n @Override\n public void onChanged(List<Category> categories) {\n mCategories = new ArrayList<>(categories);\n setUpSpinner(); //sets up spinner if categories change\n }\n });\n\n //creates a new Factory with database and current time\n AddScheduledEventViewModelFactory eventFactory =\n new AddScheduledEventViewModelFactory(mDatabase, Calendar.getInstance().getTimeInMillis());\n AddScheduledEventViewModel addScheduledEventViewModel =\n ViewModelProviders.of(this, eventFactory).get(AddScheduledEventViewModel.class);\n //attaches listener to events list\n addScheduledEventViewModel.getEvents().observe(this, new Observer<List<Event>>() {\n @Override\n public void onChanged(List<Event> events) {\n //updates the events that are given to mScheduler\n if(mScheduler == null){\n mScheduler = new Scheduler(events, Calendar.getInstance(), null);\n } else mScheduler.setEvents(events);\n }\n });\n }", "public void setEventos(List<Evento> eventos) {\r\n\t\tthis.eventos = eventos;\r\n\t}", "public void addEventInventoryList (List<Inventory> eventInventoryList) {\n requireNonNull(eventInventoryList);\n\n for (Inventory item : eventInventoryList) {\n\n Optional<Inventory> optional = this.list.stream().filter(item::isSameInventory).findAny();\n\n if (optional.isPresent()) {\n\n Inventory existingItem = optional.get();\n\n\n //This item is already in a different event\n if (existingItem.getEventInstances() > 0) {\n existingItem.setEventInstances(existingItem.getEventInstances() + 1);\n } else {\n existingItem.setIsRemovable(false);\n existingItem.setEventInstances(1);\n }\n\n } else {\n item.setIsRemovable(false);\n item.setEventInstances(1);\n this.list.add(item);\n }\n\n }\n }", "public ArrayList<String> getEvents() {\n // TODO\n return res;\n }", "public List<Event> getCreatedEvents() {\n return createdEvents;\n }", "@Override\n public void onChanged(List<Event> events) {\n if(mScheduler == null){\n mScheduler = new Scheduler(events, Calendar.getInstance(), null);\n } else mScheduler.setEvents(events);\n }", "protected void addEvent(BaseEvent event) {\n\t\tlevelEvent.add(event);\n\t}", "public final void loadEvents() {\n\n if (selectedUser == null || selectedUser.equals(\"All\")) {\n for (Absence a : AbsenceService.getAllUnacknowledged()) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n } else {\n for (Absence a : AbsenceService.getAbsenceByUserAndUnacknowledged(BenutzerverwaltungService.getUser(selectedUser))) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType() + \" \" + a.getReason(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n }\n\n DefaultScheduleEvent holidayevent;\n\n for (Holiday h : HolidayService.getList()) {\n holidayevent = new DefaultScheduleEvent(h.getHolidayComment(), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()));\n holidayevent.setAllDay(true);\n holidayevent.setStyleClass(\"feiertag\");\n\n this.addEvent(holidayevent);\n }\n }", "public void add(DiaryCalendarEvent event){\n this.dates.add(new CalendarDay(event.getYear(),event.getMonth(),event.getDay()));\n }", "private static void addEventTypes(Configuration cepConfig) {\n\t cepConfig.addEventType(\"Batch\", Batch.class.getName());\n\t cepConfig.addEventType(\"Span\", Span.class.getName());\n\t cepConfig.addEventType(\"Process\", Process.class.getName());\n\t cepConfig.addEventType(\"Log\", Log.class.getName());\n\t cepConfig.addEventType(\"Tag\", Tag.class.getName());\n\t cepConfig.addEventType(\"SpanRef\", SpanRef.class.getName());\n\t \n\t // SOCKET events\n\t // Metrics -> JSON influxDB\n\t // Events -> Custom definition\n\t // We register metrics and events as objects the engine will have to handle\n\t cepConfig.addEventType(\"Metric\", Metric.class.getName());\n\t cepConfig.addEventType(\"Event\", Event.class.getName());\n\t\t\n\t}", "private void fetchAllEvents() {\n progressDialog.show();\n StringRequest stringRequest = new StringRequest(Request.Method.GET,\n Constants.URL_ALL_EVENTS,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n progressDialog.dismiss();\n\n // response is a JSONArray\n JSONArray jArray = new JSONArray(response);\n\n // extracting JSONObjects from each element of JSONArray\n for (int i = 0; i < jArray.length(); i++) {\n JSONObject jb = jArray.getJSONObject(i);\n int id = jb.getInt(\"id\");\n String name = jb.getString(\"name\");\n String venue = jb.getString(\"venue\");\n String event_date = jb.getString(\"event_date\");\n String reg_deadline = jb.getString(\"reg_deadline\");\n String description = jb.getString(\"description\");\n int organizer_id = jb.getInt(\"organizer_id\");\n\n // creating a new Event object\n Event event = new Event(id, name, venue, event_date,\n reg_deadline, description, organizer_id);\n\n // add object to the array list\n arrayList.add(event);\n // notifying the adapter for the change\n adapter.notifyDataSetChanged();\n\n }\n } catch (JSONException e) {\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.hide();\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();\n }\n }) {\n\n };\n RequestHandler.getInstance(this).addToRequestQueue(stringRequest);\n }", "private void getEcoleList(){\r\n\t\tEcoleRequestFactory rf = GWT.create(EcoleRequestFactory.class);\r\n\t\trf.initialize(this.getEventBus(), new EventSourceRequestTransport(this.getEventBus()));\r\n\t\tEcoleRequestContext rc = rf.ecoleRequest();\r\n\t\trc.listAllActive().fire(new Receiver<List<EcoleProxy>>(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccess(List<EcoleProxy> response){\r\n\t\t\t\tgetView().setEcoleAddList(response);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onFailure(ServerFailure error){\r\n\t\t\t\tWindow.alert(error.getMessage());\r\n\t\t\t}\r\n\t\t});\r\n\t}" ]
[ "0.63438714", "0.62702096", "0.57705826", "0.5750346", "0.568427", "0.5684003", "0.565544", "0.5520026", "0.5429888", "0.54139066", "0.5375177", "0.53606683", "0.529171", "0.5231014", "0.5163576", "0.51473844", "0.5103193", "0.51012635", "0.50972265", "0.50764334", "0.50626135", "0.5043046", "0.50406295", "0.5032575", "0.5017197", "0.501363", "0.5004484", "0.49953997", "0.49952173", "0.49934918", "0.49887428", "0.49864826", "0.49687922", "0.4956051", "0.4933529", "0.49330467", "0.49165508", "0.49165508", "0.491649", "0.49086878", "0.4890565", "0.48860168", "0.48831847", "0.4876219", "0.48726448", "0.4866014", "0.4853134", "0.48494083", "0.4846504", "0.48443222", "0.4839619", "0.4838011", "0.48378006", "0.48374662", "0.48183095", "0.48070064", "0.48065248", "0.4786658", "0.47567225", "0.47553113", "0.4746969", "0.47443923", "0.4736477", "0.4736423", "0.47249752", "0.47237667", "0.47130686", "0.4692749", "0.46916696", "0.46857545", "0.46832305", "0.46786487", "0.46784723", "0.46770948", "0.4676904", "0.4664279", "0.46586317", "0.4653026", "0.46440095", "0.46436977", "0.4638263", "0.46304336", "0.46293265", "0.46183142", "0.461413", "0.46104577", "0.4600439", "0.45979548", "0.45903143", "0.4579743", "0.45731315", "0.4568542", "0.4566303", "0.45632344", "0.45615393", "0.45583245", "0.4555032", "0.45548198", "0.45474246", "0.45456058" ]
0.71775407
0
Removes an EventSource from this model.
public void removeEvent(EventSource event) { this.eventList.remove(event); notifyEventListListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeEventSource(RemoveEventSourceRequest removeEventSourceRequest) {\n ExecutionContext executionContext = createExecutionContext(removeEventSourceRequest);\n AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();\n awsRequestMetrics.startEvent(Field.ClientExecuteTime);\n Request<RemoveEventSourceRequest> request = null;\n \n try {\n awsRequestMetrics.startEvent(Field.RequestMarshallTime);\n try {\n request = new RemoveEventSourceRequestMarshaller().marshall(super.beforeMarshalling(removeEventSourceRequest));\n // Binds the request metrics to the current request.\n request.setAWSRequestMetrics(awsRequestMetrics);\n } finally {\n awsRequestMetrics.endEvent(Field.RequestMarshallTime);\n }\n\n JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null);\n invoke(request, responseHandler, executionContext);\n\n } finally {\n \n endClientExecution(awsRequestMetrics, request, null, LOGGING_AWS_REQUEST_METRIC);\n }\n }", "public void unsetSource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(SOURCE$0, 0);\r\n }\r\n }", "void removeSource(McastRoute route, HostId source);", "public boolean removeSource(Entity source) {\r\n boolean result = IServer.associationHasSource().remove(this, source);\r\n IServer.fireLinkUpdated(new LinkEvent(this));\r\n return result;\r\n }", "public void unsetSource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(SOURCE$30);\n }\n }", "final void removeSourceEvents(Object source) {\n\tToolkit toolkit = Toolkit.getDefaultToolkit();\n if (toolkit instanceof SunToolkit) {\n\t ((SunToolkit)toolkit).flushPendingEvents();\n\t}\n\n synchronized (this) {\n\t for (int i = 0; i < NUM_PRIORITIES; i++) {\n\t EventQueueItem entry = queues[i].head;\n\t\tEventQueueItem prev = null;\n\t\twhile (entry != null) {\n\t\t if (entry.event.getSource() == source) {\n\t\t if (prev == null) {\n\t\t\t queues[i].head = entry.next;\n\t\t\t} else {\n\t\t\t prev.next = entry.next;\n\t\t\t}\n\t\t } else {\n\t\t prev = entry;\n\t\t }\n\t\t entry = entry.next;\n\t\t}\n\t\tqueues[i].tail = prev;\n\t }\n\t}\n }", "private void removeSource(String sourceName) {\n\t\t\n\t}", "private void removeEvent() {\n Event event = selectEvent(\"Which event would you like to delete?\");\n world.removeEvent(event);\n System.out.println(\"Removed \" + event.getName() + \"!\");\n }", "void removeDataSourceListener(@Nonnull IDataSourceListener listener);", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "public void removeEvent(Event event) {\n\t\tTreeSet<Event> daily = this.events.get(event.date);\n\t\tif (daily != null) {\n\t\t\tdaily.remove(event);\n\t\t}\n\t}", "public void removeActionSourceListener( ActionSourceListener l) {\n lm.removeListener(l);\n l.removeActionValueListener(this);\n }", "@Override\r\n\tpublic void excluir(Evento evento) {\n\t\trepository.delete(evento);\r\n\t}", "void removeSources(McastRoute route, Set<ConnectPoint> sources);", "public void removeDataSourcesWithSameOrigin(DataSource source) {\n Iterator<DataSource> iter=datasources.iterator();\n while (iter.hasNext()) {\n DataSource old=iter.next();\n if (old.hasSameOrigin(source)) iter.remove();\n }\n }", "public NameValue<String, String> removeSourceURL() {\n return removeURL(mSourceMap);\n }", "void removeSources(McastRoute route);", "@Subscribe public void onEvent(RemoveEvent event) {\n if (event.isRemove()) {\n this.trackStories.remove(selectPosition);\n adapter.notifyItemRemoved(selectPosition);\n }\n }", "public static ApproxsimEvent getRemoved(Object source, Object initiator) {\n return new ApproxsimEvent(source, REMOVED, initiator, null);\n }", "public Builder clearConfigSource() {\n if (configSourceBuilder_ == null) {\n configSource_ = null;\n onChanged();\n } else {\n configSource_ = null;\n configSourceBuilder_ = null;\n }\n\n return this;\n }", "public EventEmitter removeListener(String event, EventListener listener) {\n ConcurrentLinkedQueue<EventListener> eventListeners = listeners.get(event);\n if(eventListeners != null){\n eventListeners.remove(listener);\n }\n return this;\n }", "public void removeFromEvents(final SapEvent value)\n\t{\n\t\tremoveFromEvents( getSession().getSessionContext(), value );\n\t}", "public void deleteEvent() {\r\n database.eventDao().delete(event.uid);\r\n finish();\r\n }", "@Override\n public void remove(UUID id) {\n EventAdapter ea = em.find(EventAdapter.class, id.toString());\n\n em.remove(ea);\n }", "public void unwatch(final Source source) {\n logger.debug(\"Unwatching configuration {}\", source);\n watchers.remove(source);\n }", "public void unassignEnergyToShip(AbstractObject source) {\n\t\tenergyToShip.remove(source.getId());\n\t}", "public void removeFromEvents(final SessionContext ctx, final SapEvent value)\n\t{\n\t\tEVENTSHANDLER.removeValue( ctx, this, value );\n\t}", "public Event removeRecord(){\n Event removed = eventArray[0];\n swap(numEvents-1, 0);\n numEvents--;\n siftDown(0);\n return removed;\n }", "public Builder clearSource() {\n bitField0_ = (bitField0_ & ~0x00000001);\n source_ = getDefaultInstance().getSource();\n onChanged();\n return this;\n }", "public void removeEdge(String edgeTypeName, Node source, Node dest)\r\n {\r\n\tfinal EdgeTypeHolder eth = ethMap.get(edgeTypeName);\r\n\tif(eth!=null) eth.removeEdge(source, dest);\r\n\t// Invalidate the Edge array cache.\r\n\tedges = null;\r\n }", "public Builder clearAssociatedSource() {\n \n associatedSource_ = getDefaultInstance().getAssociatedSource();\n onChanged();\n return this;\n }", "public void remove(DiaryCalendarEvent event){\n this.dates.remove(new CalendarDay(event.getYear(),event.getMonth(),event.getDay()));\n }", "public Builder clearSource() {\n \n source_ = getDefaultInstance().getSource();\n onChanged();\n return this;\n }", "public Builder clearSource() {\n \n source_ = getDefaultInstance().getSource();\n onChanged();\n return this;\n }", "public void delete() {\n if (this.sourceInfo != null) {\n this.sourceInfo.removeSSRC(this);\n }\n }", "@Override\n\tpublic void removeSinkLogEventListener(SinkLogEventListener listener) {\n\t\tsynchronized (logListeners) {\n\t\t\tlogListeners.remove(listener);\n\t\t}\n\t}", "@DELETE\n @Path(\"/source/{id}\")\n @Consumes(\"application/json;charset=UTF-8\")\n @RolesAllowed(Roles.ADMIN)\n @GZIP\n @NoCache\n public void deleteSource(@PathParam(\"id\") Integer id) throws Exception {\n log.info(\"Deleting source \" + id);\n sourceService.deleteSource(id);\n }", "void removeListener(IEventChannelListener<K, V> listener);", "public void removeEventSource(JComponent c)\n {\n\tc.removeMouseListener(this);\n\tc.removeMouseMotionListener(this);\n }", "public void removeNotify() {\n synchronized (getTreeLock()) {\n MenuComponentPeer p = this.peer;\n if (p != null) {\n Toolkit.getEventQueue().removeSourceEvents(this, true);\n this.peer = null;\n p.dispose();\n }\n }\n }", "public InterceptorType<T> removeAllDataSource()\n {\n childNode.remove(\"data-source\");\n return this;\n }", "public ContactRemovedEvent(ContactQuery source,\n SourceContact contact)\n {\n super(source);\n\n this.contact = contact;\n }", "public void delEvent(long id) {\n Event event = eventRepository.findOne(id);\n if (event != null) {\n logger.debug(\"Deleting event with id %s\", event.getEventId());\n\n eventRepository.delete(id);\n }\n }", "public Builder clearSourceId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n sourceId_ = 0L;\n onChanged();\n return this;\n }", "public void leaveEvent(String eventRef) {\n Event removed = mCache.getSingleFile(eventRef, mCacheDir);\n mCache.removeSingleEvent(eventRef, mCacheDir);\n mEventCollection.document(eventRef).update(\"attendees\", FieldValue.arrayRemove(mUserRef), result -> {\n if(!result.isSuccessful()) {\n // If the user could not be removed from the event, restore the cache\n mCache.saveEvent(removed, eventRef, removed.getDate(), mCacheDir);\n postCurrentCacheContent();\n }\n });\n }", "public void removeEvent(long p_timestamp){\n if (_eventsByStamp.indexOfKey(p_timestamp) >= 0){\n String date = stringifyDate(_eventsByStamp.get(p_timestamp));\n _events.get(date).remove(getEventIndexOnDayList(date, p_timestamp));\n _eventsByStamp.delete(p_timestamp);\n }\n }", "public void removeIdenticalDataSources(DataSource source) {\n Iterator<DataSource> iter=datasources.iterator();\n while (iter.hasNext()) {\n DataSource s=iter.next();\n if (s.equals(source)) iter.remove();\n } \n }", "public static int rmScheduledEvent(String rptEventName)\n\t{\n\t\tint event_id = Integer.parseInt(CommonUtil.getRptEventFromDb(rptEventName).get(\"ID\")); \n\t\t\n\t\t//Remove associated data from table BSM_SCHEDULER_EVENT_REPORT first\n\t\tString sql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT_REPORT WHERE SCHEDULER_EVENT_ID=%d\", event_id);\n\t\tDBUtil.executeSQL(sql);\n\t\n\t\t//Remove report event from table BSM_SCHEDULER_EVENT\n\t\tsql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT WHERE EVENT_TEXT='%s'\", rptEventName);\n\t\tint ret = DBUtil.executeSQL(sql);\n\t\t\n\t\treturn ret;\n\t}", "public void removeEdge(T source, T destination) {\n\t\tif (source == null || destination == null) {\n\t\t\tthrow new NullPointerException(\n\t\t\t\t\t\"Source and Destination, both should be non-null.\");\n\t\t}\n\t\tif (!graph.containsKey(source) || !graph.containsKey(destination)) {\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Source and Destination, both should be part of graph\");\n\t\t}\n\t\tgraph.get(source).remove(destination);\n\t}", "public void removeEvent(long rowIndex) {\n SQLiteDatabase dbObj = getWritableDatabase();\n dbObj.delete(TABLE_EVENT_ENTRIES, KEY_ROWID + \"=\" + rowIndex, null);\n dbObj.close();\n }", "public abstract CalendarEvent removeEvent(User user, String id);", "public void deletePresenceSource(String sourceId) throws IOException, ApiException {\n deletePresenceSource(createDeletePresenceSourceRequest(sourceId));\n }", "@Override\n public void sessionDestroyed(HttpSessionEvent event) {\n String broadcasterId = event.getSession().getId();\n LOG.debug(\"Removing broadcaster: {}\", broadcasterId);\n BroadcasterFactory.getDefault().remove(broadcasterId);\n }", "public void onResourceRemoved(final ResourceEvent resourceEvent);", "private void removeClubEvent () {\n boolean okToDelete = true;\n if (CommonPrefs.getShared().confirmDeletes()) {\n int userOption = JOptionPane.showConfirmDialog(\n navToolBar, \n \"Really delete this Event?\",\n \"Delete Confirmation\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE,\n Home.getShared().getIcon());\n okToDelete = (userOption == JOptionPane.YES_OPTION);\n }\n if (okToDelete) {\n if (position.isNewClubEvent()) {\n position = new ClubEventPositioned();\n position.setIndex (clubEventList.size());\n display(); \n } else {\n noFindInProgress();\n boolean deleted = writer.delete(eventsFile, localPath);\n if (! deleted) {\n Trouble.getShared().report(this, \n \"Event could not be deleted\", \n \"Delete Failure\", \n JOptionPane.ERROR_MESSAGE);\n }\n position = clubEventList.remove (position);\n positionAndDisplay();\n currentFileModified = true;\n } // end if new ClubEvent not yet saved\n }\n \n }", "private void removeActiveSource() {\n for (Iterator<HdmiCecMessage> iter = mBuffer.iterator(); iter.hasNext(); ) {\n HdmiCecMessage message = iter.next();\n if (message.getOpcode() == Constants.MESSAGE_ACTIVE_SOURCE) {\n iter.remove();\n }\n }\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> removeTimestamped(\r\n\t\t\t@Nonnull Observable<Timestamped<? extends T>> source) {\r\n\t\tFunc1<Timestamped<? extends T>, T> f = unwrapTimestamped();\r\n\t\treturn select(source, f);\r\n\t}", "void deleteEvent(ReadOnlyEvent target) throws EventNotFoundException;", "public void removeEntry(int source, int net)\n\t{ // this is utilizing my compareTo method, only the source and network number matter\n\t\ttable.remove(new RouteTableEntry(source, new NetworkDistancePair(net, 0), 0));\n\t\t\n\t\tparentActivity.runOnUiThread(new Runnable()\n\t\t{ \n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tuiManager.resetRoutingListAdapter();\n\t\t\t\tuiManager.resetForwardingListAdapter();\n\t\t\t} // end public method run\n\t\t}); // end runOnUiThread\n\t}", "public RootDataGroupRemovedEvent(DataGroupInfo removedRoot, AbstractDataGroupInfoChangeEvent originEvent, Object source)\r\n {\r\n super(removedRoot, originEvent, source);\r\n }", "public synchronized void removeSender(String senderName) {\n senders.remove(senderName);\n }", "protected void clearSourceCollection() throws Exception {\n this.deleteCollection(SOURCE_COLLECTION);\n this.waitForCollectionToDisappear(SOURCE_COLLECTION);\n this.createCollection(SOURCE_COLLECTION);\n this.waitForRecoveriesToFinish(SOURCE_COLLECTION, true);\n this.updateMappingsFromZk(SOURCE_COLLECTION);\n }", "public void disconnectPlayer(Client source) {\r\n\t\t// Announce to all other players that a player has disconnected\r\n\t\tthis.queueMessage(\"! \" + source.getPlayer().getPlayerNo());\r\n\r\n\t\t// Remove the player and free up its space\r\n\t\tsource.setUserType('S');\r\n\t\tthis.players.remove(source);\r\n\t\tthis.playerNumbers[source.getPlayerNo()] = false;\r\n\r\n\t\tif (this.gameStarted) {\r\n\t\t\t// If the player was the last player in the game, stop the game\r\n\t\t\tif (this.players.size() == 0) {\r\n\t\t\t\tthis.gameStarted = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Decrease the number of players ready if they were ready\r\n\t\t\tif (source.isReady()) {\r\n\t\t\t\tthis.playersReady--;\r\n\t\t\t}\r\n\r\n\t\t\t// Start the timer if everybody else was ready\r\n\t\t\tif (this.playersReady != 0\r\n\t\t\t\t\t&& this.playersReady == this.players.size()) {\r\n\t\t\t\tthis.startReadyTimer(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void removeUpdateListener(StoreUpdateListener listener);", "public void destroy() {\n\t\tAL10.alDeleteSources(id);\n\t}", "@Command(\"delete\")\n @NotifyChange({\"events\", \"selectedEvent\"})\n public void delete() {\n if(this.selectedEvent != null) {\n eventDao.delete(this.selectedEvent);\n this.selectedEvent = null;\n }\n }", "@Override\n public void removeListener(StreamListener listener) {\n streamListeners.remove(listener);\n }", "@Override\n \tpublic Representation deleteResource() {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\t\n \t\t// On s'assure qu'il n'est plus prsent en base de donnes\n \t\n \t\tIntervention inter = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> sources = inter.getSources();\n \t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\tsources.remove(sources.get(i));\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn null;\n \t}", "public void remove(Schedulorinator schedule) {\r\n if (scheduleList.contains(schedule)) {\r\n scheduleList.remove(schedule);\r\n schedule.removePerson(this);\r\n removeObserver(schedule);\r\n }\r\n }", "public void delete(Event event) {\n Event temp= em.merge(event);\n deleteParticipations(temp);\n deleteInvitations(temp);\n deleteWeatherNotifications(temp);\n em.remove(temp);\n }", "public ConnectionListener remove(String listenerID);", "public void removeListener(T listener);", "public void removeOnEndEvent(final int eventID) {\n\t\tonEndRunnables.remove(eventID);\n\t}", "public void remove()\n {\n domain.removeParticipant(participant);\n }", "@Override\n public void removeListener() {\n this.mListener = null;\n }", "public void destroy() throws SourceException {\n }", "@Override\r\n\tpublic boolean delSource(int resourceid) {\n\t\treturn this.excuteDb(\"delete from resource where resource_id=?\",new Object[]{\r\n\t\t\t\tresourceid \r\n\t\t} );\r\n\t}", "public void removeScopeRegistrationListener(\n\t\t\tScopeEventListener listener);", "public Builder clearSourceSnId() {\n \n sourceSnId_ = 0;\n onChanged();\n return this;\n }", "public void configRemoved (ConfigEvent<ManagedConfig> event) {\n maybePostUndo(new ConfigEdit(ConfigEdit.Type.REMOVE,\n (ConfigGroup<?>)event.getSource(),\n null,\n event.getConfig()));\n }", "public void removeDefinition(String destKey) {\n synchronized (this) {\n if (this.defs != null && !defs.isEmpty()) {\n SapDefinition def = this.defs.remove(destKey);\n if (def != null) {\n LOGGER.debug(\"Deleting the destination name '{}' from Destination Data Event Listener\", destKey);\n eventListener.deleted(destKey);\n }\n }\n }\n }", "protected void RemoveEvents()\r\n {\r\n INotifyPropertyChanged propParent = (INotifyPropertyChanged)getProxyParent();\r\n propParent.getPropertyChanged().removeObservers(filterPropertyChanges);\r\n }", "public void remove() {\n throw new UnsupportedOperationException(\n \"DataSource records may only ever be read once.\");\n }", "@Override\n\tpublic void endSessionSource(SessionSourceEvent sessionSourceEvent) {\n\t\t\n\t}", "public void removeObserver(DriverObserver driver);", "@Override\n public void modelDisconnected(ModelEvent event)\n {\n _model.removeListener(this);\n }", "public IEventCollector getSource();", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public Builder clearEvent() {\n\n event_ = 0;\n onChanged();\n return this;\n }", "public void remove(E e) {\n\t\tentities.remove(e);\n\t}", "public Builder clearSourceContext() {\n \n sourceContext_ = getDefaultInstance().getSourceContext();\n onChanged();\n return this;\n }", "public void removeRlsSourceFile(IAstRlsSourceFile rlsFile);", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String propertyName);", "public void removeCallback(EventCallback<T> callback) {\n callbacks.remove(callback);\n }", "void removeSources(McastRoute route, HostId hostId, Set<ConnectPoint> connectPoints);", "void removeSink(McastRoute route, HostId hostId);", "public Builder removeSourcePath(int index) {\n if (sourcePathBuilder_ == null) {\n ensureSourcePathIsMutable();\n sourcePath_.remove(index);\n onChanged();\n } else {\n sourcePathBuilder_.remove(index);\n }\n return this;\n }", "@Override\r\n public boolean remove( Object o ) {\r\n if ( o == sources || o.equals( sources ) ) {\r\n sources = new LinkedHashSet<Object>();\r\n return true;\r\n }\r\n if ( sources.contains( o ) ) {\r\n return sources.remove( o );\r\n }\r\n for ( Object container : sources ) {\r\n if ( container instanceof HasConstraints ) {\r\n if ( ( (HasConstraints)container ).getConstraintCollection(false, null)\r\n .remove( o ) ) {\r\n return true;\r\n }\r\n }\r\n CollectionTree.IterationState< ? > i = null;\r\n if ( container.getClass().isArray() ) {\r\n i = new CollectionTree.IterationState< Object >( (Object[])container, 0 );\r\n } else if ( container instanceof Iterable ) {\r\n i = IterationState.getIterationState( ( (Iterable< ? >)container ) );\r\n } else if ( container instanceof java.util.Iterator ) {\r\n i = IterationState.getIterationState( ( (java.util.Iterator< ? >)container ) );\r\n }\r\n if ( i != null ) {\r\n while ( i.hasNext() ) {\r\n Object n = i.next();\r\n if ( n == o || ( n != null && n.equals( o ) ) ) {\r\n i.remove();\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public void removeSocketNodeEventListener(\n final SocketNodeEventListener l) {\n listenerList.remove(l);\n }", "void unsetEvent();" ]
[ "0.6520315", "0.6091856", "0.60753065", "0.5981235", "0.5925472", "0.57340646", "0.5638244", "0.55516565", "0.55205333", "0.543016", "0.5368821", "0.5321286", "0.51443166", "0.51324844", "0.51074487", "0.510336", "0.50809354", "0.5065056", "0.5058826", "0.5054917", "0.50233805", "0.50125104", "0.5002377", "0.4995832", "0.494007", "0.4939058", "0.49192846", "0.49072847", "0.4902351", "0.4900394", "0.48943713", "0.48878214", "0.4871628", "0.4871628", "0.4868356", "0.4860155", "0.4831217", "0.482167", "0.48150438", "0.48085213", "0.48056814", "0.47945246", "0.4784032", "0.47721913", "0.47563484", "0.47513372", "0.47470757", "0.47199252", "0.4716411", "0.47123313", "0.47095472", "0.4706339", "0.4698244", "0.4687886", "0.46711338", "0.4654835", "0.4650187", "0.46483335", "0.4639867", "0.46316293", "0.46300897", "0.4612143", "0.46116793", "0.46113974", "0.4601776", "0.4591078", "0.45880765", "0.45731467", "0.4565564", "0.4563188", "0.45598888", "0.45530397", "0.45453063", "0.45443785", "0.45441362", "0.453377", "0.4520911", "0.451146", "0.4494266", "0.4492124", "0.44838896", "0.44593257", "0.4459239", "0.44551033", "0.44523585", "0.44409892", "0.443947", "0.4438491", "0.44363603", "0.44293463", "0.44248626", "0.44232082", "0.44228584", "0.4418319", "0.44117972", "0.4405537", "0.44050628", "0.44025692", "0.4402173", "0.43986467" ]
0.69569516
0
Replaces an EventSource in this model with another EventSource.
public void replaceEvent(EventSource event, EventSource replacement) { // Create a deep-copy of the replacement. this.eventList.replace(event, new EventSource(replacement)); notifyEventListListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void replaceDataSource(DataSource newsource) {\n removeDataSourcesWithSameOrigin(newsource);\n datasources.add(newsource);\n }", "public void replaceDataSource(DataSource oldsource, DataSource newsource) {\n int i=datasources.indexOf(oldsource);\n if (i>=0) datasources.set(i, newsource);\n else datasources.add(newsource);\n }", "Update withSource(EventChannelSource source);", "public void replaceAllDataSources(Collection<DataSource> newsources) {\n datasources.clear();\n datasources.addAll(newsources);\n }", "public void replaceDataSources(Collection<DataSource> newsources) {\n for (DataSource source:newsources) {\n removeDataSourcesWithSameOrigin(source);\n } \n datasources.addAll(newsources);\n }", "public void setSource(noNamespace.SourceType source)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(SOURCE$0, 0);\r\n if (target == null)\r\n {\r\n target = (noNamespace.SourceType)get_store().add_element_user(SOURCE$0);\r\n }\r\n target.set(source);\r\n }\r\n }", "public void setConfigSource(ConfigSource configSource) {\n JodaBeanUtils.notNull(configSource, \"configSource\");\n this._configSource = configSource;\n }", "public void setCurrentSource(Object source) {\r\n if (source instanceof IModelNode) {\r\n newSource = (IModelNode) source;\r\n newTarget = null;\r\n }\r\n }", "public void setSourceSite(String newsource) {\n sourceSite=newsource;\n }", "public FVEvent setSrc(FVEventHandler src) {\n\t\tthis.src = src;\n\t\treturn this;\n\t}", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "public void setSource(Object o) {\n\t\tsource = o;\n\t}", "public void divert(FreeColGameObject newSource) {\n if (displayId == sourceId) displayId = newSource.getId();\n sourceId = newSource.getId();\n }", "interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }", "public void update(Event event){\n em.merge(event);\n }", "public void setSource(AppSyncSource source) {\n appSyncSource = source;\n }", "public final void setSource(final Integer newSource) {\n this.source = newSource;\n }", "public final void testSetSource() {\n Notification n = new Notification(\"type\", \"src\", 1);\n assertEquals(\"src\", n.getSource());\n n.setSource(\"new src\");\n assertEquals(\"new src\", n.getSource());\n }", "public void resetSource(String sourceId) {\n\t}", "public void changeEvent(Event event) {\n flowContextInfo.registerOutboundEvent(event);\n setEvent(event);\n }", "@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);", "final void removeSourceEvents(Object source) {\n\tToolkit toolkit = Toolkit.getDefaultToolkit();\n if (toolkit instanceof SunToolkit) {\n\t ((SunToolkit)toolkit).flushPendingEvents();\n\t}\n\n synchronized (this) {\n\t for (int i = 0; i < NUM_PRIORITIES; i++) {\n\t EventQueueItem entry = queues[i].head;\n\t\tEventQueueItem prev = null;\n\t\twhile (entry != null) {\n\t\t if (entry.event.getSource() == source) {\n\t\t if (prev == null) {\n\t\t\t queues[i].head = entry.next;\n\t\t\t} else {\n\t\t\t prev.next = entry.next;\n\t\t\t}\n\t\t } else {\n\t\t prev = entry;\n\t\t }\n\t\t entry = entry.next;\n\t\t}\n\t\tqueues[i].tail = prev;\n\t }\n\t}\n }", "public void setNoiseSource(String noiseSource) {\n if (NOISE_SOURCES != null) {\n for (int i = 0; i < NOISE_SOURCES.length; i++) {\n if (NOISE_SOURCES[i].equals(noiseSource)) {\n _avTable.set(ATTR_NOISE_SOURCE, NOISE_SOURCES[i]);\n }\n }\n }\n }", "public void setSecuritySource(final SecuritySource securitySource) {\n put(SECURITY_SOURCE_NAME, securitySource);\n }", "public void setSource(String source);", "public void removeDataSourcesWithSameOrigin(DataSource source) {\n Iterator<DataSource> iter=datasources.iterator();\n while (iter.hasNext()) {\n DataSource old=iter.next();\n if (old.hasSameOrigin(source)) iter.remove();\n }\n }", "@Transactional\n public MinimalSourceDetailsDTO assignOrUpdateSource(Subject subject, SourceType sourceType,\n Project project, MinimalSourceDetailsDTO sourceRegistrationDto) {\n Source assignedSource;\n\n if (sourceRegistrationDto.getSourceId() != null) {\n // update meta-data and source-name for existing sources\n assignedSource = updateSourceAssignedSubject(subject, sourceRegistrationDto);\n\n } else if (sourceType.getCanRegisterDynamically()) {\n List<Source> sources = subjectRepository\n .findSubjectSourcesBySourceType(subject.getUser().getLogin(),\n sourceType.getProducer(), sourceType.getModel(),\n sourceType.getCatalogVersion());\n // create a source and register meta data\n // we allow only one source of a source-type per subject\n if (sources.isEmpty()) {\n Source source = new Source(sourceType)\n .project(project)\n .assigned(true)\n .sourceType(sourceType)\n .subject(subject);\n source.getAttributes().putAll(sourceRegistrationDto.getAttributes());\n // if source name is provided update source name\n if (sourceRegistrationDto.getSourceName() != null) {\n // append the auto generated source-name to given source-name to avoid conflicts\n source.setSourceName(\n sourceRegistrationDto.getSourceName() + \"_\" + source.getSourceName());\n }\n // make sure there is no source available on the same name.\n if (sourceRepository.findOneBySourceName(source.getSourceName()).isPresent()) {\n throw new ConflictException(\"SourceName already in use. Cannot create a \"\n + \"source with existing source-name \", SUBJECT,\n ErrorConstants.ERR_SOURCE_NAME_EXISTS,\n Collections.singletonMap(\"source-name\", source.getSourceName()));\n }\n source = sourceRepository.save(source);\n\n assignedSource = source;\n subject.getSources().add(source);\n } else {\n throw new ConflictException(\n \"A Source of SourceType with the specified producer, model and version\"\n + \" was already registered for subject login\",\n SUBJECT, ErrorConstants.ERR_SOURCE_TYPE_EXISTS,\n sourceTypeAttributes(sourceType, subject));\n }\n } else {\n // new source since sourceId == null, but canRegisterDynamically == false\n throw new BadRequestException(\"The source type is not eligible for dynamic \"\n + \"registration\", SOURCE_TYPE, \"error.InvalidDynamicSourceRegistration\",\n sourceTypeAttributes(sourceType, subject));\n }\n\n subjectRepository.save(subject);\n return sourceMapper.sourceToMinimalSourceDetailsDTO(assignedSource);\n }", "@Override\r\n public boolean updateEvent(Events event) {\r\n em.merge(event);\r\n return true;\r\n }", "void recomputeCoordinatesToSource(MouseEvent oldEvent, Object newSource) {\n/*\n Point3D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.getX();\n y = newCoordinates.getY();\n z = newCoordinates.getZ();\n*/\n Point2D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.x;\n y = newCoordinates.y;\n\n }", "@JsonProperty(\"EventSourceSystem\")\r\n\tpublic void setEventSourceSystem(String eventSourceSystem) {\r\n\t\tthis.eventSourceSystem = eventSourceSystem;\r\n\t}", "public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}", "public void editMappingSource(Object setupDialog, Object tblLocationSource){\n\t\tObject selectedItem = getSelectedItem(tblLocationSource);\n\t\tObject attachedObject = getAttachedObject(selectedItem, MappingSetup.class);\n\t\tif(attachedObject instanceof MappingSetup){\n\t\t\tMappingSetup setup = (MappingSetup)attachedObject;\n\t\t\tui.setAttachedObject(setupDialog, setup);\n\t\t\t\n\t\t\tui.setText(fields.txtSourceName, setup.getName());\n\t\t\tui.setText(fields.txtSourceURL, setup.getSourceURL());\n\t\t\tui.setSelected(fields.chkSourceDefault, setup.isDefaultSetup());\n\t\t\t\n\t\t\tui.setEnabled(fields.btnSave, true);\n\t\t\tui.setEnabled(fields.btnDelete, true);\n\t\t\tui.setEnabled(fields.btnCancel, true);\n\t\t}\n\t}", "public void setDataSource(String newValue) {\n String oldValue = this.dataSource;\n this.dataSource = newValue;\n firePropertyChange(DATA_SOURCE, oldValue, newValue);\n }", "public void setSourceID(java.lang.Object sourceID) {\n this.sourceID = sourceID;\n }", "private StoreEvent(E source) {\n super(source);\n }", "public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }", "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "public void setSource (String source);", "@Override\n\t\tpublic void EnergySourceChanged(EnergyProducerOrConsumer changedSource) {\n\t\t\t\n\t\t}", "public Builder setAssociatedSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n associatedSource_ = value;\n onChanged();\n return this;\n }", "public void markSecondaryApnSourceEpcReplace() throws JNCException {\n markLeafReplace(\"secondaryApnSourceEpc\");\n }", "protected void attachEdgeSourceAnchor(String edge, String oldSourcePin, String sourcePin) {\n ((ConnectionWidget) findWidget(edge)).setSourceAnchor(getPinAnchor(sourcePin));\n }", "public void refreshDataSource(ArrayList<Restroom> newSource){\n\t\tRestroomList = newSource;\n\t\tnotifyDataSetChanged();\n\t}", "public void addSourceChanger(Component component, Class sourceClass)\n {\n component.addAttribute(GlobalAttributes.Value, sourceClass.getCanonicalName().replace(\".\", \"/\"));\n component.setID(sourceClass.getSimpleName() + \"_source\");\n getSourceChanges().put(component, sourceClass);\n }", "public SourceData(SourceData other) {\n __isset_bitfield = other.__isset_bitfield;\n this.version = other.version;\n if (other.isSetApp_id()) {\n this.app_id = other.app_id;\n }\n this.brand = other.brand;\n this.point = other.point;\n this.campaign_type = other.campaign_type;\n this.point_multiply = other.point_multiply;\n this.snapearn_id = other.snapearn_id;\n if (other.isSetReceipt_number()) {\n this.receipt_number = other.receipt_number;\n }\n this.outlet_id = other.outlet_id;\n this.operator_id = other.operator_id;\n this.rejected_reason = other.rejected_reason;\n }", "@Override\n protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n Organization src = source.getOrganization();\n if ( source.getOrganization() != null )\n {\n Organization tgt = target.getOrganization();\n if ( tgt == null )\n {\n target.setOrganization( tgt = new Organization() );\n mergeOrganization( tgt, src, sourceDominant, context );\n }\n }\n }", "public void setEventList(List<EventSource> events) {\n this.eventList.reset(events);\n notifyEventListListeners();\n }", "@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}", "private void refreshSource() {\n if (source != null && featureCollection != null) {\n source.setGeoJson( featureCollection );\n }\n }", "public void setSourceDescription(DataSourceDescription sourceDescription) {\n\t\tthis.sourceDescription = sourceDescription;\n\t}", "@Override\r\n\tpublic void alterar(Evento evento) {\n\t\trepository.save(evento);\r\n\t}", "public void addSource(Source src, boolean allowOverwrite) throws AlreadyExistingException {\n src.setResource(this);\n if (!allowOverwrite && sources.contains(src)) {\n throw new AlreadyExistingException();\n }\n if (allowOverwrite && sources.contains(src)) {\n // If source file is going to be overwritten, it should be actually re-add it.\n sources.remove(src);\n // Changing the SourceBase in the ExtensionMapping object from the mapping list.\n for (ExtensionMapping ext : this.getMappings()) {\n if (ext.getSource().equals(src)) {\n ext.setSource(src);\n }\n }\n }\n sources.add(src);\n }", "@PUT\n @Path(\"/source/{id}\")\n @Consumes(\"application/json;charset=UTF-8\")\n @Produces(\"application/json;charset=UTF-8\")\n @RolesAllowed(Roles.ADMIN)\n @GZIP\n @NoCache\n public SourceVo updateSource(\n @PathParam(\"id\") Integer id,\n SourceVo source) throws Exception {\n\n if (!Objects.equals(id, source.getId())) {\n throw new WebApplicationException(400);\n }\n\n log.info(\"Updating source \" + source);\n return sourceService.updateSource(new Source(source))\n .toVo(DataFilter.get());\n }", "@Override\r\n public void undo() {\r\n if (newSource != null) {\r\n edge.setSource(oldSource);\r\n } else if (newTarget != null) {\r\n edge.setTarget(oldTarget);\r\n }\r\n }", "public void removeIdenticalDataSources(DataSource source) {\n Iterator<DataSource> iter=datasources.iterator();\n while (iter.hasNext()) {\n DataSource s=iter.next();\n if (s.equals(source)) iter.remove();\n } \n }", "public void setDatasource(DataSource source) {\n datasource = source;\n }", "@Override\n\tpublic NewsSource updateNewsSource(NewsSource newsSource, String newsSourceId) throws NewsSourceNotFoundException {\n\t\tLOG.info(\"NewsSourceServiceImpl :: Entering updateNewsSource method\");\n\t\tOptional<NewsSource> opt = newsSourceRepository.findById(newsSourceId);\n\n\t\tif (opt != null && opt.isPresent()) {\t\n\t\t\tnewsSourceRepository.insert(newsSource);\n\t\t\treturn newsSource;\n\t\t}\n\t\telse {\n\t\t\tthrow new NewsSourceNotFoundException(\"News Source not found\");\n\t\t}\n\t}", "private void swap(LibraryNode source, LibraryNode target) {\r\n\t\tMap<String, Node> sources = new HashMap<>();\r\n\t\tfor (Node n : source.getDescendants_LibraryMembersAsNodes())\r\n\t\t\tsources.put(n.getName(), n);\r\n\r\n\t\t// Now, replace the nodes within their structures.\r\n\t\tfor (Node n : target.getDescendants_LibraryMembersAsNodes()) {\r\n\t\t\tif (n instanceof ServiceNode)\r\n\t\t\t\tcontinue;\r\n\t\t\tNode lsNode = sources.get(n.getName());\r\n\t\t\tif (lsNode != null) {\r\n\t\t\t\tml.check(lsNode, false);\r\n\t\t\t\tml.check(n, false);\r\n\t\t\t\tn.replaceTypesWith((TypeProvider) lsNode, null);\r\n\t\t\t\tml.check(lsNode, false);\r\n\t\t\t\tml.check(n, false);\r\n\t\t\t} else\r\n\t\t\t\tLOGGER.debug(n + \" was not found in source library.\");\r\n\t\t}\r\n\t}", "public void setSource(String source) {\n _source = source;\n }", "public void markSource(int x, int y) {\n sourceSpot = new Point();\n sourceSpot.set(x, y);\n this.invalidate();\n }", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "static public void setDataSource(DataSource source) {\n ds = source;\n }", "public void merge(TaskViewModel source) {\n setName(source.getName());\n setEstimate(source.getEstimate());\n setDescription(source.getDescription());\n }", "public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }", "public void unsetSource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(SOURCE$0, 0);\r\n }\r\n }", "public void setSourceChanges(Map<Component, Class> sourceChanges)\n {\n this.sourceChanges = sourceChanges;\n }", "public GraphChangeSupport(Graph<N, ET> sourceObject)\n\t{\n\t\tsuper();\n\t\tif (sourceObject == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"Source for GraphChangeSupport cannot be null\");\n\t\t}\n\t\tsource = sourceObject;\n\t\tlistenerList = new EventListenerList();\n\t}", "public void unsetSource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(SOURCE$30);\n }\n }", "public void setSource(String Source) {\r\n this.Source = Source;\r\n }", "public void xsetSource(edu.umich.icpsr.ddi.FileTxtType.Source source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTxtType.Source target = null;\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().add_attribute_user(SOURCE$30);\n }\n target.set(source);\n }\n }", "public void removeEvent(EventSource event) {\n this.eventList.remove(event);\n notifyEventListListeners();\n }", "void removeSource(McastRoute route, HostId source);", "public void changeDestIP(InetAddress newDestIP){\n\n this.destIP = newDestIP;\n\n this.packetLock.lock();\n\n this.packet.setAddress(this.destIP);\n\n this.packetLock.unlock();\n }", "public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }", "@Override\n public void changeEventRaised(ChangeEvent event)\n {\n if (!(event instanceof ValueSourceChangeEvent))\n return;\n\n if (event instanceof SingularSubsourceChangeEvent)\n {\n SingularSubsourceChangeEvent e = (SingularSubsourceChangeEvent) event;\n singleSubsourceReplaced(e, e.getOldSource(), e.getNewSource());\n }\n else if (event instanceof ValueChangeEvent)\n {\n ValueChangeEvent e = (ValueChangeEvent) event;\n valueChanged(e, e.getOldValue(), e.getNewValue());\n }\n else if (event instanceof TypeChangeEvent)\n {\n TypeChangeEvent e = (TypeChangeEvent) event;\n typeChanged(e, e.getOldType(), e.getNewType());\n }\n else if (event instanceof SubsourceModificationEvent)\n subsourceChanged((SubsourceModificationEvent) event);\n }", "public void dragSetData(DragSourceEvent event) {\n event.data = LocalSelectionTransfer.getTransfer().getSelection();\n }", "public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }", "public interface Source {\n\n /**\n * Set the system identifier for this Source.\n * <p>\n * The system identifier is optional if the source does not get its data\n * from a URL, but it may still be useful to provide one. The application\n * can use a system identifier, for example, to resolve relative URIs and to\n * include in error messages and warnings.\n * </p>\n *\n * @param systemId\n * The system identifier as a URL string.\n */\n public void setSystemId(String systemId);\n\n /**\n * Get the system identifier that was set with setSystemId.\n *\n * @return The system identifier that was set with setSystemId, or null if\n * setSystemId was not called.\n */\n public String getSystemId();\n}", "public void iSetSourcetoTv() {\n\t\tif (null!=iGetCurrentSouce() && null!=mTVInputManager.getTypeFromInputSource(iGetCurrentSouce()) && !TVInputManager.INPUT_TYPE_TV.equals(\n\t\t\t\tmTVInputManager.getTypeFromInputSource(iGetCurrentSouce()))) {\n\t\t\tmTVInputManager.changeInputSource(iFindTvSource());\n\t\t}\n\t}", "public boolean removeSource(Entity source) {\r\n boolean result = IServer.associationHasSource().remove(this, source);\r\n IServer.fireLinkUpdated(new LinkEvent(this));\r\n return result;\r\n }", "public static ApproxsimEvent getReplaced(Object source, Object initiator,\n ApproxsimObject newObject) {\n return new ApproxsimEvent(source, REPLACED, initiator, newObject);\n }", "public void setDisplaysource(java.lang.String displaysource)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DISPLAYSOURCE$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DISPLAYSOURCE$10);\r\n }\r\n target.setStringValue(displaysource);\r\n }\r\n }", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n Source source = (Source)event.getSource();\n Cloner cloner = new Cloner();\n final Source clonedSource = cloner.deepClone(source);\n \n // Create wrapper for source clone:\n final TagsSource sourceLogic = new TagsSource(clonedSource);\n \n // Create and render progress information dialog:\n sourceLogic.off(SourceEvent.THREAD_PROGRESS);\n final ProgressInformationDialog progressInformationDialog =\n new ProgressInformationDialog(sourceLogic, SourceEvent.THREAD_PROGRESS);\n progressInformationDialog.render(\"Progress information\", Main.mainForm);\n \n sourceLogic.off(SourceEvent.THREAD_ERROR);\n sourceLogic.on(SourceEvent.THREAD_ERROR, new ThreadErrorEventHandler());\n \n // Subscribe on model's source initialization event:\n sourceLogic.off(SourceEvent.SOURCE_INITIALIZED);\n sourceLogic.on(SourceEvent.SOURCE_INITIALIZED, new CustomEventListener()\n {\n @Override\n public void customEventOccurred(CustomEvent evt)\n {\n progressInformationDialog.close();\n \n if (clonedSource.getTypeId() == SourcesTypes.INTOOLS_EXPORT_DOCUMENT.ID)\n DialogsFactory.produceIntoolsExportDataSourceDialog(sourceLogic, true, \"Edit selected Intools export data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ALARM_AND_TRIP_SCHEDULE.ID)\n DialogsFactory.produceDocumentDataSourceDialog(sourceLogic, true, \"Edit selected document data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.DCS_VARIABLE_TABLE.ID)\n DialogsFactory.produceDcsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected DCS Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ESD_VARIABLE_TABLE.ID)\n DialogsFactory.produceEsdVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected ESD Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.FGS_VARIABLE_TABLE.ID)\n DialogsFactory.produceFgsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected FGS Variable Table data source\");\n }// customEventOccurred\n });// on\n \n // Execute initialization thread:\n sourceLogic.initialize();\n }", "public void addPreferredDataSource(DataSource source) { \n if (!containsDataSource(source)) datasources.add(0,source);\n }", "public void applySourceConfigOverrides() {\n FFMPSourceConfigurationManager fscm = FFMPSourceConfigurationManager\n .getInstance();\n for (FFMPRunXML runner : getFFMPRunners()) {\n if (runner.isOverride()) {\n for (String source : runner.getOverrideSources()) {\n SourceXML osource = fscm.getSource(source);\n osource.setOverrride(true);\n SourceOverrideXML override = runner\n .getSourceOverride(source);\n osource.setOverrideDataKeys(override\n .getSourceOverrideDataKeys());\n }\n }\n }\n }", "Update withDestination(EventChannelDestination destination);", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "void updateEvent(ReadOnlyEvent target, ReadOnlyEvent editedEvent)\n throws DuplicateEventException, EventNotFoundException;", "private void resetSource()\n {\n source.setLocation(sourceX, sourceY);\n source = null;\n sourceX = 0;\n sourceY = 0;\n sourceRow = 0;\n sourceColumn = 0;\n }", "public void removeEventSource(RemoveEventSourceRequest removeEventSourceRequest) {\n ExecutionContext executionContext = createExecutionContext(removeEventSourceRequest);\n AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();\n awsRequestMetrics.startEvent(Field.ClientExecuteTime);\n Request<RemoveEventSourceRequest> request = null;\n \n try {\n awsRequestMetrics.startEvent(Field.RequestMarshallTime);\n try {\n request = new RemoveEventSourceRequestMarshaller().marshall(super.beforeMarshalling(removeEventSourceRequest));\n // Binds the request metrics to the current request.\n request.setAWSRequestMetrics(awsRequestMetrics);\n } finally {\n awsRequestMetrics.endEvent(Field.RequestMarshallTime);\n }\n\n JsonResponseHandler<Void> responseHandler = new JsonResponseHandler<Void>(null);\n invoke(request, responseHandler, executionContext);\n\n } finally {\n \n endClientExecution(awsRequestMetrics, request, null, LOGGING_AWS_REQUEST_METRIC);\n }\n }", "public void setSource(String source) {\r\n this.source = source;\r\n }", "@Override\n\tpublic Event updateEvent(Event e) {\n\t\treturn eventDao.updateEvent(e);\n\t}", "public void onRemoteSoAddressChanged(RtpStreamReceiver rr, SocketAddress remote_soaddr)\n { if (symmetric_rtp && sender!=null) sender.setRemoteSoAddress(remote_soaddr);\n }", "public IEventCollector getSource();", "private void removeSource(String sourceName) {\n\t\t\n\t}", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSourceDataArray(org.landxml.schema.landXML11.SourceDataDocument.SourceData[] sourceDataArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(sourceDataArray, SOURCEDATA$0);\r\n }\r\n }", "public void add(ConfigSource oConfig) throws SnarferException\r\n {\r\n Source oSource = new Source(oConfig);\r\n add(oSource);\r\n }" ]
[ "0.6200124", "0.6018221", "0.5359659", "0.51523167", "0.51436514", "0.5061386", "0.50345886", "0.49822402", "0.49608594", "0.49064925", "0.4887259", "0.48809758", "0.48560745", "0.47897235", "0.47851273", "0.47728857", "0.4756152", "0.47514564", "0.47272357", "0.4707659", "0.46799812", "0.4673142", "0.46536967", "0.464897", "0.46474385", "0.4639131", "0.4637813", "0.46263778", "0.46239492", "0.45816422", "0.45759463", "0.45643586", "0.4555729", "0.455431", "0.45501828", "0.45435894", "0.45399088", "0.45398408", "0.4533957", "0.45287603", "0.44943658", "0.44930783", "0.4486114", "0.44818616", "0.4475175", "0.44652414", "0.44505304", "0.44367138", "0.44326437", "0.4430688", "0.44289252", "0.4428013", "0.44189084", "0.44117293", "0.4407236", "0.44023013", "0.43953758", "0.43890655", "0.43884724", "0.4385369", "0.43743485", "0.43730646", "0.43679017", "0.43677387", "0.43617687", "0.4346483", "0.43443322", "0.43311", "0.4324046", "0.43056354", "0.4305353", "0.43044254", "0.42925534", "0.42924565", "0.42889225", "0.42881387", "0.4285986", "0.42857644", "0.42845687", "0.42841378", "0.4277649", "0.42749098", "0.42730504", "0.42625973", "0.426236", "0.42566139", "0.42529184", "0.42465013", "0.42461795", "0.42417035", "0.42403185", "0.42344612", "0.42241728", "0.42220712", "0.4219687", "0.42089108", "0.4200374", "0.4200374", "0.41902912", "0.4188993" ]
0.56165695
2
Replaces the entire EventList in this model with a list of events.
public void setEventList(List<EventSource> events) { this.eventList.reset(events); notifyEventListListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEvents(AbstractList<Event> events) {\r\n\t\tthis.events = (ArrayList<Event>) events;\r\n\t}", "public void updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\n }", "public void insert(List<Event> eventsList);", "public void setData(List<Event> data) {\n this.data = data;\n }", "public void setEvents(List<TimelineEvent> events) {\n this.events = events;\n }", "public EventsListAdapter(List<Event> events) {\n this.events = events;\n }", "public List<GameEvents> saveGameEvents(List<GameEvents> gameEvents);", "@Override\n public void eventList(ArrayList<EventModel> eventList) {\n for (int i = 0; i < eventList.size(); i++) {\n //Log.e(\"tag\", \"eventList.getStrName:-\" + eventList.get(i).getStrName());\n }\n\n }", "public static void Ref_EventDay_Event(IDMap map, ArrayList<EventDay> EDlist, ArrayList<Event> Elist) {\n while (map.hasNext()) {\n Pair mapping = map.NextPair();\n if (mapping.notNull()) {\n EDlist.get(mapping.First()).setEvent(Elist.get(mapping.Second()));\n }\n }\n map.Reset();\n }", "public void addEventInventoryList (List<Inventory> eventInventoryList) {\n requireNonNull(eventInventoryList);\n\n for (Inventory item : eventInventoryList) {\n\n Optional<Inventory> optional = this.list.stream().filter(item::isSameInventory).findAny();\n\n if (optional.isPresent()) {\n\n Inventory existingItem = optional.get();\n\n\n //This item is already in a different event\n if (existingItem.getEventInstances() > 0) {\n existingItem.setEventInstances(existingItem.getEventInstances() + 1);\n } else {\n existingItem.setIsRemovable(false);\n existingItem.setEventInstances(1);\n }\n\n } else {\n item.setIsRemovable(false);\n item.setEventInstances(1);\n this.list.add(item);\n }\n\n }\n }", "public void setParticipatedEvents(List<Event> participatedEvents) {\n this.participatedEvents = participatedEvents;\n }", "public void addEvents(List<TimelineEvent> events) {\n this.events.addAll(events);\n }", "public static void reload() {\n try {\n lstEvents = getEventFromDB();\n } catch (SQLException ex) {\n mLog.error(ex.getMessage(), ex);\n }\n }", "public void renewEmployeesList(){\n employees = new ArrayList<>();\n }", "public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}", "eList(eList newElist)\r\n {\r\n head = null;\r\n keyword = new String(newElist.keyword);\r\n for(eNode start = newElist.head; start != null; start = start.getNext())\r\n {\r\n eNode toInsert = new eNode(start);\r\n addEvent(toInsert);\r\n }\r\n }", "@Override\n public void refreshList(ArrayList<String> newList){\n }", "@Override\n public void addAll(Collection<Event> events) {\n events.forEach(this::persist);\n }", "public void replaceListOfArticles(List<Article> list) {\n this.listOfArticles = list;\n }", "private void notifyEventListListeners() {\n this.eventListListeners.forEach(listener -> listener.onEventListChange(this.getEventList()));\n }", "public void setEvents(Event[] event) {\n\n setEventID(event[0].getEventID());\n\n //Store keys as EventID for later use to put it all in order\n Map<String, ArrayList<Event>> listMap = new HashMap<>();\n\n for (int i = 0; i < event.length; i++) {\n\n events.put(event[i].getEventID(), event[i]);\n eventTypes.add(event[i].getEventType().toLowerCase());\n\n if(!listMap.containsKey(event[i].getPersonID())) {\n ArrayList<Event> newEventList = new ArrayList<>();\n listMap.put(event[i].getPersonID(), newEventList);\n }\n listMap.get(event[i].getPersonID()).add(event[i]);\n }\n\n // Chronologically order for events\n for (String key : listMap.keySet()) {\n Set birthSet = new HashSet<>(); // birth events come first\n Set deathSet = new HashSet<>(); // death events come last (obviously)\n ArrayList<Event> eventList = new ArrayList<Event>();\n\n // Adding events in chronological order based on events\n for(int i = 0; i < listMap.get(key).size(); i++) {\n Event currEvent = listMap.get(key).get(i);\n\n if(currEvent.getEventType().toLowerCase().equals(\"birth\")) {\n birthSet.add(currEvent);\n } else if (currEvent.getEventType().toLowerCase().equals(\"death\")) {\n deathSet.add(currEvent);\n } else { // get events by year and sort them\n if(eventList.size() > 0) {\n if (currEvent.getYear() < eventList.get(0).getYear()) {\n eventList.add(0, currEvent);\n } else if (currEvent.getYear() >= eventList.get(eventList.size() - 1).getYear()) {\n eventList.add(currEvent);\n } else {\n for (int j = 0; j < eventList.size() - 1; j++) {\n if(eventList.get(j).getYear() <= currEvent.getYear() && eventList.get(j + 1).getYear() > currEvent.getYear()) {\n eventList.add(j + 1, currEvent);\n }\n }\n }\n } else {\n eventList.add(currEvent);\n }\n }\n }\n\n ArrayList<Event> orderedList = new ArrayList<Event>(); // will store ordered list for events\n\n orderedList.addAll(birthSet);\n orderedList.addAll(eventList);\n orderedList.addAll(deathSet);\n\n personEvents.put(key, orderedList);\n }\n }", "private void updateList() {\n Model.instace.getAllArticles(new ArticleFirebase.GetAllArticlesAndObserveCallback() {\n @Override\n public void onComplete(List<Article> list) {\n data.clear();\n data = list;\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n }", "public void setEvents(final Collection<SapEvent> value)\n\t{\n\t\tsetEvents( getSession().getSessionContext(), value );\n\t}", "public void updateList() \n { \n model.clear();\n for(int i = ScholarshipTask.repository.data.size() - 1; i >= 0; i--) \n {\n model.addElement(ScholarshipTask.repository.data.get(i));\n }\n }", "public AbstractList<Event> getEvents() {\r\n\t\treturn (AbstractList<Event>) events;\r\n\t}", "@Override\n\tpublic void updateData(List<Schedule> listData) {\n\t\tSession session = getCurrentSession();\n\t\tif (listData != null && !listData.isEmpty()) {\n\t\t\tlistData.forEach((schedule) -> {\n\t\t\t\tsession.saveOrUpdate(schedule);\n\t\t\t});\n\t\t}\n\n\t}", "public void addEvent(Event newEvent) \n {\n ArrayList<Event> newEventList = new ArrayList<Event>();\n \n int counter = 0;\n \n for(int i = 0; i < eventList.size(); i++) \n {\n if(eventList.get(i).getTime() <= newEvent.getTime()) \n {\n newEventList.add(eventList.get(i));\n counter ++;\n }\n }\n \n newEventList.add(newEvent);\n \n for(int i = counter; i < eventList.size(); i++) \n {\n if(eventList.get(i).getTime() > newEvent.getTime()) \n {\n newEventList.add(eventList.get(i));\n }\n }\n eventList = newEventList;\n }", "public List<EventSource> getEventList() {\n List<EventSource> result = new ArrayList<>();\n for (EventSource event : this.eventList) {\n // Create a deep-copy of each EventSource.\n result.add(new EventSource(event));\n }\n // Return an unmodifiable list.\n return Collections.unmodifiableList(result);\n }", "@Override\n public void onChanged(@Nullable List<Event> events) {\n adapter.setEvents(events);\n for (Event event:events) {\n Log.e(\"** EVENT **\", \"CATEGORY: \" +event.getCategoryId() + \", Event : \" + event.getName());\n }\n }", "public void setEventos(List<Evento> eventos) {\r\n\t\tthis.eventos = eventos;\r\n\t}", "@Override\n public void refreshList() {\n }", "public ArrayList<Event> getEvents(){\n return this.events;\n }", "public void setData(List<Emergency> data) {\n this.data = data;\n notifyDataSetChanged();\n }", "public void setCommentsList(EList newValue);", "public void setCommentsList(EList newValue);", "public void refresh(){\n\t\tlong d = calendar.getDate();\n\t\tDate todayDate = new Date(d);\n\t\tdateText.setText(\"Events for \" + todayDate);\n\t\tArrayList<String> events = new ArrayList<String>();\n\t\t\n\t\tfor (int i =0; i < 5; i++){\n\t\t\tevents.add(\"Sample event \" + i + \" for \" + todayDate);\n\t\t}\n\t\t\n\t\tArrayAdapter<String> eventArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, events);\n\t\teventList.setAdapter(eventArrayAdapter);\n\t}", "private void initEventList(){\r\n\t\t/*\r\n\t\t * we save a valid event list in internal storage so we can load them in\r\n\t\t * our main activity. So we make sure there is either a valid one alreay in storage\r\n\t\t * or we get a fresh one from our server and save it in storage.\r\n\t\t */\r\n\t\t\r\n\t\t// first try to get an existing eventlist from storage\r\n\t\tJSONObject eventList = FileUtils.readEventListFromStorage(this);\r\n\t\t\r\n\t\tif(eventList != null) {\r\n\t\t\tif(eventListIsValid(eventList)){\r\n\t\t\t\tstartMuseek();\r\n\t\t\t} else {\r\n\t\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t}\r\n\t\t\r\n\t}", "private void forwardChanges(ListChangeListener.Change<? extends CalendarEvent> c) {\n while (c.next()) {\n if (c.wasRemoved()) {\n for (CalendarEvent removedEvent : c.getRemoved()) {\n agenda.appointments().remove(removedEvent);\n }\n }\n if (c.wasAdded()) {\n for (CalendarEvent addedEvent : c.getAddedSubList()) {\n addedEvent.setAppointmentGroup(appointmentGroup);\n agenda.appointments().add(c.getFrom(), addedEvent);\n }\n }\n }\n }", "@Override\n public void updateListAfterEventCreated(String eventName) {\n\n Log.i(TAG, \"New event called \" + eventName);\n\n MainFragment mainFragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(MainFragment.newEventCode, eventName);\n mainFragment.setArguments(args);\n\n createTransactionAndReplaceFragment(mainFragment, getString(R.string.frg_tag_main));\n }", "void addToModel(Model model, List<Event> eventsToAdd) throws Exception {\n for (Event p: eventsToAdd) {\n model.addEvent(p);\n }\n }", "public void setVideosData(List<Video> videosList) {\n mVideosList = new ArrayList<>(videosList);\n notifyDataSetChanged();\n }", "public List<EventDesc> getEvents()\r\n {\r\n return Collections.unmodifiableList(events);\r\n }", "public void setEditList(List<StepModel> stepList){\n //Guardamos el tamaña de la lista a modificar\n int prevSize = this.stepModelList.size();\n //Limpiamos la lista\n this.stepModelList.clear();\n //Si la lista que me pasan por parámtro es nula, la inicializo a vacia\n if(stepList == null) stepList = new ArrayList<>();\n //Añado la lista que me pasan por parámetro a la lista vaciada\n this.stepModelList.addAll(stepList);\n //Notifico al adaptador que el rango de item se ha eliminado\n notifyItemRangeRemoved(0, prevSize);\n //Notifico que se ha insertado un nuevo rango de items\n notifyItemRangeInserted(0, stepList.size());\n }", "public void removeEventInventoryList (List<Inventory> eventInventoryList) throws InventoryNotFoundException {\n requireNonNull(eventInventoryList);\n\n System.out.println(\"removeEventInventoryList called with eventIL \" + eventInventoryList.size());\n\n for (Inventory item : eventInventoryList) {\n\n Optional<Inventory> optional = this.list.stream().filter(item::isSameInventory).findAny();\n\n if (optional.isPresent()) {\n\n Inventory existingItem = optional.get();\n\n System.out.println(\"EXISTINGITEM IS \" + existingItem.getEventInstances());\n\n existingItem.setEventInstances(existingItem.getEventInstances() - 1);\n\n if (existingItem.getEventInstances() == 0) {\n remove(existingItem);\n }\n\n System.out.println(\"NOW IT IS \" + existingItem.getEventInstances());\n\n }\n\n }\n }", "public void updateAnimalList(){\r\n // if (animals != null && animals.size() > 0)\r\n // {\r\n // \r\n // }\r\n // else\r\n // {\r\n animals.clear();\r\n \r\n for (fit5042.assign.repository.entity.Animal animal : animalManagedBean.getAllAnimals())//for each animal entry in the Entity Class Animal, get all animals\r\n {\r\n animals.add(animal); //add Animal data to the ArrayList<Animal> animals\r\n }\r\n \r\n setAnimal(animals); //set the global ArrayList attribute with the local ArrayList attribute\r\n // }\r\n }", "void parseEventList() {\n\t\tfor (int eventsId : events.keySet()) {\n\t\t\tfinal Event event = events.get(eventsId);\n\t\t\tif (users.get(event.getUser().getName()).isActiveStatus()\n\t\t\t\t\t&& !event.isViewed()\n\t\t\t\t\t&& event.getInnerSisdate().compareTo(\n\t\t\t\t\t\t\tnew GregorianCalendar()) >= 0) {\n\t\t\t\tevent.setViewed(true);\n\t\t\t\tfinal SimpleDateFormat fm = new SimpleDateFormat(\n\t\t\t\t\t\t\"dd.MM.yyyy-HH:mm:ss\");\n\t\t\t\tt.schedule(new TimerTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (event.isActive()) {\n\t\t\t\t\t\t\tgenerateEventMessage(\"User \"\n\t\t\t\t\t\t\t\t\t+ event.getUser().getName()\n\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t+ fm.format(event.getInnerSisdate()\n\t\t\t\t\t\t\t\t\t\t\t.getTime()) + \" \" + event.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, event.getInnerSisdate().getTime());\n\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void importData(List<Schedule> listData) {\n\t\tSession session = getCurrentSession();\n\t\tif (listData != null && !listData.isEmpty()) {\n\t\t\tlistData.forEach((schedule) -> {\n\t\t\t\tsession.saveOrUpdate(schedule);\n\t\t\t});\n\t\t}\n\n\t}", "protected void enhanceEventAttendanceList(\n SmartList<EventAttendance> eventAttendanceList, Map<String, Object> options) {\n }", "public void refresh(List<T> list) {\n this.items = list;\n notifyDataSetChanged();\n }", "@Test\n\tpublic void testSaveEvent() {\n\t\tEvent em = new Event();\n\t\tem.setDate(new Date());\n\t\tem.setName(\"JohnDeere Event13\");\n\t\tem.setTitle(\"No Title\");\n\t\tfor(int i=0;i<10;i++){\n\t\t\t/*Event e = new Event();\n\t\t\te.setDate(new Date());\n\t\t\te.setName(\"name\"+i);\n\t\t\te.setTitle(\"tile\"+i);\n\t\t\te.getEventList().add(em);\n\t\t\tem.getEventList().add(e);*/\n\t\t\tPeople p = new People();\n\t\t\tp.setName(\"Name\"+i);\n\t\t\tp.getEventList().add(em);\n\t\t\tem.getPeopleList().add(p);\n//\t\t\tpList.add(p);\n\t\t\t\n\t\t}\n//\t\tem.setPeopleList(pList);\n//\t\teventService.insert(em);\n\t\ter.save(em);\n\t\t// fail(\"Not yet implemented\");\n\t}", "public List<Event> getEventsList() {\n List<Event> eventDetails = eventRepository.findAll();\n return eventDetails;\n }", "public void setCreatedEvents(List<Event> createdEvents) {\n this.createdEvents = createdEvents;\n }", "public void setEvents(final SessionContext ctx, final Collection<SapEvent> value)\n\t{\n\t\tEVENTSHANDLER.setValues( ctx, this, value );\n\t}", "@Override\n public void RegisterEntities(LinkedList<Entity> listToModify) {\n listToModify.add(test1);\n// listToModify.add(test2);\n }", "public void updateList(List<T> ListObject) throws DaoException;", "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "public void updateList(List<?> listOfObjects){\n this.radioObjects = listOfObjects;\n }", "@Override\r\n public boolean updateEvent(Events event) {\r\n em.merge(event);\r\n return true;\r\n }", "public CarritoListAdapter(List<ItemCarrito> list, CarritoHolder.Events events){\n this.list = list;\n this.events = events;\n idEditable=new ArrayList<>();\n }", "public void envoyerEvenements()\n {\n AWTEvent evenement;\n\n for (int i = 0; i < lstEvenements.size(); i++)\n {\n synchronized (lstEvenements)\n {\n evenement = (AWTEvent) lstEvenements.removeFirst();\n }\n traiteur.gererEvenement(evenement);\n }\n }", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "public static ArrayList<Events> getEventsArrayList(){\n if (EVENTS_ARRAY_LIST.isEmpty()){\n EVENTS_ARRAY_LIST.addAll(generateEventList());\n }\n return EVENTS_ARRAY_LIST;\n }", "public HabitEventList getHabit_event_list() {\n return this.habit_event_list;\n }", "public BackpackChanged(List<ItemAdded> addedEvents, List<ItemRemoved> removedEvents,\n List<ItemMoved> movedEvents, List<ItemChanged> replacedEvents) {\n this.addedEvents = addedEvents;\n this.removedEvents = removedEvents;\n this.movedEvents = movedEvents;\n this.replacedEvents = replacedEvents;\n }", "public void setData(List<E> newDataSet) {\n\t\tdata.addAll(newDataSet);\n\t}", "public void sortEventsByValue() {\n for (OrgEvent event : events) {\n event.setCompareByTime(false);\n }\n Collections.sort(events);\n }", "@Test\r\n public void testListPropertyAdapterSetEqualListListChangeEventAfter() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n objectProperty.set(otherList);\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n otherList.remove(0);\r\n assertEquals(\"must fire list change after modification on new list\", 1, report.getEventCount());\r\n }", "private void removeList()\r\n {\n if (tableCheckBinding != null)\r\n {\r\n tableCheckBinding.dispose();\r\n tableCheckBinding = null;\r\n }\r\n\r\n // m_TableViewer.setInput(null);\r\n WritableList newList = new WritableList(SWTObservables.getRealm(Display.getDefault()));\r\n for (int i = 0; i < 10; ++i)\r\n {\r\n newList.add(this.generateNewDataModelItem());\r\n }\r\n m_TableViewer.setInput(newList);\r\n }", "public void setCurrentListToBeUndoneList();", "public void reload(){\n populateList();\n }", "public void setAs(ElementList<E> list) {\r\n\t\tthis.makeEmpty();\r\n\t\theader.next = list.first();\r\n\t\tlast = list.last;\r\n\t}", "public void addEvents(ArrayList<FbEvent> events) throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase();\n\t\ttry {\n\t\t\tfor (FbEvent event : events) {\n\t\t\t\tContentValues contents = prepareContentValues(event);\n\t\t\t\tdb.insert(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, contents);\n\t\t\t}\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "List<T> saveOrUpdateList(final List<T> entitiesList);", "public void updateItemsList(List<Image> list) {\n\n\t\tthis.itemsList = list;\n\n\t}", "public void populateList() {\n }", "public void updateData(List<AddingTopItem> mList){\n mData.clear();\n mData.addAll(mList);\n this.notifyDataSetChanged();\n }", "@Override\n public void onPlayListEdited(PlayList playList) {\n }", "public void setFoods(List<Food> list){\n foodList = list;\n notifyDataSetChanged();\n }", "public void set(Object[] newContents) {\r\n\t\tAssert.isNotNull(newContents);\r\n\t\tdata.clear();\r\n\t\tdata.addAll(Arrays.asList(newContents));\r\n\r\n\t\tIConcurrentModelListener[] listeners = getListeners();\r\n\t\tfor (IConcurrentModelListener listener : listeners) {\r\n\t\t\tlistener.setContents(newContents);\r\n\t\t}\r\n\t}", "private void toBeAddedEntities()\n\t{\n\t\tif( entitiesToAdd.isEmpty() )\n\t\t{\n\t\t\treturn ;\n\t\t}\n\n\t\tfinal List<Event<?>> events = MalletList.<Event<?>>newList() ;\n\n\t\tfinal int size = entitiesToAdd.size() ;\n\t\tfor( int i = 0; i < size; ++i )\n\t\t{\n\t\t\tfinal Entity entity = entitiesToAdd.get( i ) ;\n\t\t\thookEntity( eventSystem, events, entity ) ;\n\t\t\tentities.add( entity ) ;\n\t\t}\n\t\tentitiesToAdd.clear() ;\n\t\t\n\t\tif( size > capacity )\n\t\t{\n\t\t\t// If the size of entitiesToAdd exceeds our capacity then \n\t\t\t// we want to resize the array - it's easy for an \n\t\t\t// array to expand, it's much harder to shrink it!\n\t\t\tentitiesToAdd = MalletList.<Entity>newList( capacity ) ;\n\t\t}\n\t}", "public void update (List<Dependency> list)\n {\n this.list.clear();\n this.list.addAll(list);\n notifyDataSetChanged();\n }", "void storeEvents()\n {\n this.storedPresences = new ArrayList<Presence>();\n this.storeEvents = true;\n }", "public void setData(List<Products> productList) {\r\n this.productList.clear();\r\n this.productList.addAll(productList);\r\n notifyDataSetChanged();\r\n }", "private void refresh() {\n ArrayList<Note> notes = db.getAllNotes();\n ArrayList<Note> notesWithNotification = new ArrayList<Note>();\n\n for (int index = 0; index < notes.size(); index++) {\n if (notes.get(index).getNotification() != null) {\n notesWithNotification.add(notes.get(index));\n }\n }\n\n mNoteWithNotificationList = notesWithNotification;\n }", "void update(List<E> list, E o, E n) {\n\t\tint index = list.indexOf(o);\n\t\tlist.set(index, n);\n\t}", "public void refresh(ArrayList pNewList) {\n listLivingBeings.setListData(pNewList.toArray());\n if (!pNewList.isEmpty()) {\n listLivingBeings.setSelectedIndex(0);\n }\n }", "public void setList(java.util.List newAktList) {\n\t\tlist = newAktList;\n\t}", "public void replaceAll(List<Job> newJob){\n int currentSize = mJobList.size();\n //remove the current items\n if(currentSize > 0)\n mJobList.clear();\n //add all the new items\n mJobList.addAll(newJob);\n //tell the recycler view that all the old items are gone\n if(currentSize > 0)\n notifyItemRangeRemoved(0, currentSize);\n //tell the recycler view how many new items we added\n notifyItemRangeInserted(0, mJobList.size());\n\n }", "public void updateDataSet(ArrayList<JobSpecBean> dataList) {\n\t\tthis.dataList = dataList;\n\t\tnotifyDataSetChanged();\n\t}", "@Override\n public void onChanged(List<Event> events) {\n if(mScheduler == null){\n mScheduler = new Scheduler(events, Calendar.getInstance(), null);\n } else mScheduler.setEvents(events);\n }", "public void setAutoEventCollection(java.util.ArrayList autoEventCollection)\n {\n _autoEventList = autoEventCollection;\n }", "private CalendarModel() {\n events = new ArrayList<>();\n }", "public void setFilter(ArrayList<ProductImageModel> newList) {\n list = new ArrayList<>();\n list.addAll(newList);\n notifyDataSetChanged();\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListPropertySetEqualListListChangeEventAfter() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = new SimpleListProperty<>();\r\n listProperty.bindBidirectional(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n objectProperty.set(otherList);\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n otherList.remove(0);\r\n assertEquals(\"Culprit is bidi-bound ObjectProperty \\n listProperty must fire list change after modification on new list\", \r\n 1, report.getEventCount());\r\n }", "public abstract void setEvents(Map<String, Event> events);", "protected void displayListView(ListView eventsList) {\n final ArrayAdapter adapter = new EventsAdapter(this, events);\n eventsList.setAdapter(adapter);\n eventsList.setVisibility(View.VISIBLE);\n }", "@Override\n\tpublic void updateEmployee(List<Employee> employees) {\n\t\t\n\t}", "public void reUpdateTargetList(CopyOnWriteArrayList<Balloon> newList) {\r\n\t\tballoons = newList;\r\n\t}", "@Override\n public void replaceDate(String oldDate, String newDate){\n \n //Replace and refresh\n HostCheckInListModel theModel = (HostCheckInListModel) checkInTimeList.getModel();\n theModel.removeElement(oldDate);\n \n //Add the new one and sort it\n theModel.addElement(newDate);\n Collections.sort( Collections.list( theModel.elements()));\n \n }", "public static void eventList() {\n\t\tfor (Map.Entry<Calendar, TreeSet<Event>> entry : calendarToEvent.entrySet()) {\n\t\t\tTreeSet<Event> value = entry.getValue();\n\t\t\tfor (Event e: value) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6626983", "0.6606987", "0.6164072", "0.6050452", "0.5944032", "0.572725", "0.5659727", "0.5651758", "0.5600058", "0.5596154", "0.5578663", "0.54868424", "0.5459116", "0.54413915", "0.5439297", "0.53902537", "0.53797543", "0.5376802", "0.53627247", "0.53602326", "0.5351998", "0.53125197", "0.52890736", "0.5284884", "0.5255258", "0.5238265", "0.52171135", "0.5213551", "0.5206987", "0.51902527", "0.5153453", "0.515234", "0.515063", "0.5138654", "0.5138654", "0.5125103", "0.51219034", "0.5115101", "0.50934863", "0.5090515", "0.50646937", "0.5054306", "0.5050746", "0.50463885", "0.50441325", "0.5043942", "0.5041904", "0.50408185", "0.50405645", "0.5033215", "0.5026491", "0.50223434", "0.5003883", "0.5002718", "0.50009036", "0.4995672", "0.4968648", "0.4966747", "0.49641597", "0.49620017", "0.49592695", "0.49510026", "0.49426877", "0.49407953", "0.49386087", "0.4930423", "0.4929621", "0.4919183", "0.49036634", "0.49009928", "0.4893962", "0.4887758", "0.48676884", "0.4862396", "0.4852954", "0.48518613", "0.48393983", "0.48337567", "0.4832252", "0.48314455", "0.48306102", "0.48268625", "0.4821716", "0.48165047", "0.48155928", "0.48110282", "0.4808621", "0.480837", "0.4807481", "0.4807249", "0.47899756", "0.47884476", "0.47859997", "0.4769697", "0.47646242", "0.47582307", "0.4757733", "0.47517833", "0.4746247", "0.4742161" ]
0.6703334
0
Returns an unmodifiable, deep copy of this model's EventList.
public List<EventSource> getEventList() { List<EventSource> result = new ArrayList<>(); for (EventSource event : this.eventList) { // Create a deep-copy of each EventSource. result.add(new EventSource(event)); } // Return an unmodifiable list. return Collections.unmodifiableList(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AbstractList<Event> getEvents() {\r\n\t\treturn (AbstractList<Event>) events;\r\n\t}", "public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}", "public List<EventDesc> getEvents()\r\n {\r\n return Collections.unmodifiableList(events);\r\n }", "public ArrayList<Event> getEvents(){\n return this.events;\n }", "public List<E> clone();", "public static ArrayList<Events> getEventsArrayList(){\n if (EVENTS_ARRAY_LIST.isEmpty()){\n EVENTS_ARRAY_LIST.addAll(generateEventList());\n }\n return EVENTS_ARRAY_LIST;\n }", "public List<LogEvent> getEvents() {\n return publicEvents;\n }", "@NotNull\n\tpublic ArrayList<ArrayList<Event<?>>> getEvents() {\n\t\tif (events == null)\n\t\t\tevents = new ArrayList<>();\n\t\t\n\t\treturn events;\n\t}", "public ArrayList<E> clone() {\n ArrayList<E> temp = new ArrayList<E>();\n temp.size = this.size;\n temp.capacity = this.capacity;\n temp.list = Arrays.copyOf(this.list, this.list.length);\n return temp;\n }", "public EventStack<T> deepCopy() {\n final Stack<EventStackEntry<T>> copiedStack = new Stack<>();\n for (final EventStackEntry<T> iterEntry : eventStack) {\n copiedStack.push(iterEntry.deepCopy());\n }\n final EventStack<T> copiedOutput = new EventStack<>(firstEventTime);\n copiedOutput.setStack(copiedStack);\n return copiedOutput;\n }", "public List<Event> getEventsList() {\n List<Event> eventDetails = eventRepository.findAll();\n return eventDetails;\n }", "public ObservableList<DetailViewEvent> getAllNestedEvents() {\n return nestedEvents;\n }", "public ArrayList<String> getEventIdsList(){\n return this.eventIdsList;\n }", "public List<E> toList() {\r\n ArrayList<E> result = new ArrayList<E>(this.size());\r\n for (E e : this) {\r\n result.add(e);\r\n }\r\n return result;\r\n }", "ObservableList<ReadOnlyEvent> getFilteredEventList();", "public HabitEventList getHabit_event_list() {\n return this.habit_event_list;\n }", "@Override\n public synchronized WebBackForwardList clone() {\n return new WebBackForwardListImpl(this);\n }", "public List<InputEvent> getEvents() {\n return new ArrayList<>(events);\n }", "private ArrayList<Item> getEvents() {\n\t\tArrayList<Item> events = Magical.getStorage().getList(\n\t\t\t\tStorage.EVENTS_INDEX);\n\t\treturn events;\n\t}", "@XmlElement(name = \"events\")\n public List<TimelineEvent> getEvents() {\n return events;\n }", "public List getChangedEvents() {\n return new ArrayList(originalDnr.keySet());\n }", "public Object clone()\n {\n IObserverList list = new IObserverList();\n \n for ( int i = 0; i < observers.size(); i++ )\n list.observers.addElement( observers.elementAt(i) );\n\n return list; \n }", "public PriorityQueue<Event> getEventList() {\n return new PriorityQueue<Event>(eventsList);\n }", "@Override\n public ReadOnlyEventList getEventList() {\n throw new AssertionError(\"This method should not be called.\");\n }", "private CalendarModel() {\n events = new ArrayList<>();\n }", "public ArrayList<String> getEvents() {\n // TODO\n return res;\n }", "public DirectoryChangeEvent copy() {\n\t\treturn DirectoryChangeEvent.fromJSON(toJSON().toString());\n\t}", "public ArrayList<Employee> getEmployeeList()\r\n\t{\r\n\t\treturn new ArrayList<Employee>(empList);\r\n\t}", "@Override\r\n public ListADT<T> toImmutable() {\r\n return new ImmutableListADTImpl<T>(new ListADTImpl<T>(this.head));\r\n }", "UncommittedEvents events() {\n var events = get().stream()\n .flatMap(segment -> segment.getEventList()\n .stream())\n .collect(toList());\n return UncommittedEvents.ofNone()\n .append(events);\n }", "public Collection<Event> getEvents() {\n\t\treturn null;\n\t}", "public LiveData<List<DatabaseObject<Event>>> getAttendingEvents() {\n return mCachedEventsLiveData;\n }", "public d clone() {\n ArrayList arrayList = this.e;\n int size = this.e.size();\n c[] cVarArr = new c[size];\n for (int i = 0; i < size; i++) {\n cVarArr[i] = ((c) arrayList.get(i)).clone();\n }\n return new d(cVarArr);\n }", "public EzproxyAuthenticationEvent copy(){\n return new EzproxyAuthenticationEvent(this);\n }", "public Object clone() {\n DsSipEventHeaderBase clone = (DsSipEventHeaderBase) super.clone();\n // clone.m_strPackage = m_strPackage;\n if (m_subPackages != null) {\n clone.m_subPackages = (LinkedList) m_subPackages.clone();\n }\n\n return clone;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tObject[] oList = new Object[INIT_SIZE];\n\t\tlist = (E[]) oList;\n\t\tsize = INIT_SIZE;\n\t}", "public List<T> getCopyOfUnfilteredItemList(){\n synchronized (listsLock){\n if (originalList != null){\n return new ArrayList<T>(originalList);\n } else {\n // if original list is null filtered list is unfiltered\n return new ArrayList<T>(filteredList);\n }\n }\n }", "AbstractList<Event> getEventByName(String eventName) {\r\n\t\treturn events;\r\n\t}", "public java.util.ArrayList getAutoEventCollection()\n {\n return _autoEventList;\n }", "@GetMapping(\"/events\")\n\t\tpublic List<Event> getEvents() {\n\t\t\t\t\treturn theEvents;\n\t\t}", "public List<Event> getData() {\n return data;\n }", "protected EventListenerList getEventListenerList() {\r\n return listenerList;\r\n }", "public Object clone() throws CloneNotSupportedException\n {\n // shallow copy\n SongSublist newObject = (SongSublist)super.clone();\n // deep copy\n newObject.subs = (ArrayList<SongEntry>)subs.clone();\n\n return newObject;\n }", "public List getFieldValues()\n {\n return (List) m_values.clone();\n }", "@Override\n\tpublic Set<Event> getEvents() {\n return events;\n }", "public void setEvents(AbstractList<Event> events) {\r\n\t\tthis.events = (ArrayList<Event>) events;\r\n\t}", "public Object clone()\n {\n ElementInsertionList clone = new ElementInsertionList();\n\n for (int i = 0; i < list.size(); i++)\n {\n clone.addElementInsertionMap((ElementInsertionMap)list.elementAt(i));\n }\n\n return clone;\n }", "public EventsListAdapter(List<Event> events) {\n this.events = events;\n }", "@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "@NonNull\n public EventModel getEvent() {\n return mEvent;\n }", "public List<Event> getParticipatedEvents() {\n return participatedEvents;\n }", "@DISPID(7) //= 0x7. The runtime will prefer the VTID if present\r\n @VTID(14)\r\n visiotool.IVEventList eventList();", "public java.util.List<People> getFriendListList() {\n return java.util.Collections.unmodifiableList(\n instance.getFriendListList());\n }", "public List<Event> getCreatedEvents() {\n return createdEvents;\n }", "AbstractList<Event> getEventByCreateDate(Date d){\r\n\t\treturn events;\r\n\t}", "public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> getExchangeHistoryListList() {\n if (exchangeHistoryListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(exchangeHistoryList_);\n } else {\n return exchangeHistoryListBuilder_.getMessageList();\n }\n }", "@Override\r\n public ListADT<T> toMutable() {\r\n return new ListADTImpl<T>(this.head);\r\n }", "public Set<T> getHistoryEvents() {\n\t\tif (historyEvents == null) {\n\t\t\tcreateHistoryEvents();\n\t\t}\n\t\treturn historyEvents;\n\t}", "public ArrayList<Event> getAllEvents()\r\n\t{\r\n\t\treturn dataService.getAllEvents();\r\n\t}", "public DOCKSList getList() {\r\n return localList;\r\n }", "public Map<String, List<CalendarEvent>> getEvents(){ return _safeEvents; }", "public EntityStateEventListenable<E> modifyListeners() {\n if (listeners == null) {\n listeners = new CompositeEntityStateListener<>(entity);\n }\n return listeners;\n }", "@NoProxy\n public void copyTo(final BwEvent ev) {\n super.copyTo(ev);\n ev.setEntityType(getEntityType());\n ev.setName(getName());\n ev.setClassification(getClassification());\n ev.setDtstart(getDtstart());\n ev.setDtend(getDtend());\n ev.setEndType(getEndType());\n ev.setDuration(getDuration());\n ev.setNoStart(getNoStart());\n\n ev.setLink(getLink());\n ev.setGeo(getGeo());\n ev.setDeleted(getDeleted());\n ev.setStatus(getStatus());\n ev.setCost(getCost());\n\n BwOrganizer org = getOrganizer();\n if (org != null) {\n org = (BwOrganizer)org.clone();\n }\n ev.setOrganizer(org);\n\n ev.setDtstamp(getDtstamp());\n ev.setLastmod(getLastmod());\n ev.setCreated(getCreated());\n ev.setStag(getStag());\n ev.setPriority(getPriority());\n ev.setSequence(getSequence());\n\n ev.setLocation(getLocation());\n\n ev.setUid(getUid());\n ev.setTransparency(getTransparency());\n ev.setPercentComplete(getPercentComplete());\n ev.setCompleted(getCompleted());\n\n ev.setCategories(copyCategories());\n\n ev.setContacts(copyContacts());\n\n ev.setAttendees(cloneAttendees());\n ev.setCtoken(getCtoken());\n\n ev.setRecurrenceId(getRecurrenceId());\n ev.setRecurring(getRecurring());\n if (ev.isRecurringEntity()) {\n ev.setRrules(clone(getRrules()));\n ev.setExrules(clone(getExrules()));\n ev.setRdates(clone(getRdates()));\n ev.setExdates(clone(getExdates()));\n }\n\n ev.setScheduleMethod(getScheduleMethod());\n ev.setOriginator(getOriginator());\n\n /* Don't copy these - we always set them anyway\n if (getNumRecipients() > 0) {\n ev.setRecipients(new TreeSet<String>());\n\n for (String s: getRecipients()) {\n ev.addRecipient(s);\n }\n }*/\n\n if (getNumComments() > 0) {\n ev.setComments(null);\n\n for (final BwString str: getComments()) {\n ev.addComment((BwString)str.clone());\n }\n }\n\n if (getNumSummaries() > 0) {\n ev.setSummaries(null);\n\n for (final BwString str: getSummaries()) {\n ev.addSummary((BwString)str.clone());\n }\n }\n\n if (getNumDescriptions() > 0) {\n ev.setDescriptions(null);\n\n for (final BwLongString str: getDescriptions()) {\n ev.addDescription((BwLongString)str.clone());\n }\n }\n\n if (getNumResources() > 0) {\n ev.setResources(null);\n\n for (final BwString str: getResources()) {\n ev.addResource((BwString)str.clone());\n }\n }\n\n if (getNumXproperties() > 0) {\n ev.setXproperties(null);\n\n for (final BwXproperty x: getXproperties()) {\n ev.addXproperty((BwXproperty)x.clone());\n }\n }\n\n ev.setScheduleState(getScheduleState());\n\n //ev.setRequestStatuses(clone(getRequestStatuses()));\n\n final BwRelatedTo rt = getRelatedTo();\n if (rt != null) {\n ev.setRelatedTo((BwRelatedTo)rt.clone());\n }\n\n /* These are in x-props in 3.10\n ev.setPollMode(getPollMode());\n ev.setPollProperties(getPollProperties());\n ev.setPollAcceptResponse(getPollAcceptResponse());\n\n ev.setPollItemId(getPollItemId());\n if (!Util.isEmpty(getPollItems())) {\n for (final String s: getPollItems()) {\n ev.addPollItem(s);\n }\n }\n */\n\n ev.setPollCandidate(getPollCandidate());\n }", "public VCalendar clone() {\n\t\treturn new VCalendar(this.content, this.collectionId, this.resourceId, this.earliestStart, this.latestEnd, null);\n\t}", "@XmlElementWrapper(name = \"dayList\")\n @XmlElement(name = \"Day\")\n public List<Day> getDayList() {\n return dayList;\n }", "public Object clone() {\n return new Value(_calendar);\n }", "public EventsDTO getEvents();", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<E> getEntities() {\n\t\treturn (ArrayList<E>) entities.clone();\n\t}", "public ImmutableList<T> allExtant() {\n return ImmutableList.<T>builder().addAll(unchanged).addAll(changed).build();\n }", "@Override\n\tpublic Univent copy() {\n\t\treturn new AddExpToHeroesEvent(amount);\n\t}", "@Override\n\tpublic NamedList<T> clone() {\n\t\tArrayList<Object> newList = new ArrayList<Object>(nvPairs.size());\n\t\tnewList.addAll(nvPairs);\n\t\treturn new NamedList<T>(newList);\n\t}", "public EventDates getEventDates() {\n return eventDates;\n }", "public DessertVO clone() {\r\n return (DessertVO) super.clone();\r\n }", "java.util.List<? extends tendermint.abci.EventAttributeOrBuilder> \n getAttributesOrBuilderList();", "public EventElements getEventAccess() {\r\n\t\treturn pEvent;\r\n\t}", "public static AttributeList cloneAttributeList(AttributeList source) throws IOException, DicomException {\r\n AttributeList dest = new AttributeList();\r\n \r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n DicomOutputStream dicomOutputStream = new DicomOutputStream(byteArrayOutputStream, TransferSyntax.ExplicitVRLittleEndian, TransferSyntax.ExplicitVRLittleEndian);\r\n source.write(dicomOutputStream);\r\n \r\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());\r\n dest.read(new DicomInputStream(byteArrayInputStream));\r\n \r\n return dest;\r\n }", "public List getList(List oldList) {\n List newList = new ArrayList();\n Collections.copy(newList, oldList);\n return newList;\n }", "public DList2 list(){\r\n return this.list;\r\n }", "public Event clone (){\r\n\t\t\treturn new FZipEvent(type, file, bubbles, cancelable);\r\n\t\t}", "@Override\r\n public List<Events> findAllEvents() {\r\n return em.createNamedQuery(\"Events.findAll\").getResultList();\r\n }", "public List getSubList() {\n\t\treturn subList;\n\t}", "public ArrayList<MoodEvent> getMoodListAfterFilter(){\n return moodListAfterFilter;\n }", "public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }", "@XmlElementWrapper(name = \"addressLists\")\r\n\t@XmlElement(name = \"addressList\")\r\n\tpublic Collection<RefAddressModel> getAddressList()\r\n\t{\r\n\t\treturn addressList;\r\n\t}", "public List<Evento> getEventos() {\r\n\t\treturn eventos;\r\n\t}", "public List<Events> getAllSystemEventsListForAll();", "@WebMethod public List<Event> getAllEvents();", "public ArrayList<Edge> getEdgeList() {\n return edgeList;\n }", "ObservableList<T> getReadOnlyList();", "public List<BookCopy> getBookCopy() {\n\t\treturn bookCopy;\n\t}", "public java.util.List<SeenInfo> getSeenInfoList() {\n return java.util.Collections.unmodifiableList(\n instance.getSeenInfoList());\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 }", "public final List getList()\n {\n return this.list;\n }", "public java.util.List<com.vine.vinemars.net.pb.SocialMessage.FriendObj> getFriendListList() {\n return java.util.Collections.unmodifiableList(friendList_);\n }", "@Override\n\tpublic Object deepCopy() {\n\t\tfinal UIAnimationMutable clone = new UIAnimationMutable(getName(), events.size(), controllers.size());\n\t\tfor (int i = 0, len = controllers.size(); i < len; ++i) {\n\t\t\tclone.controllers.add((UIController) controllers.get(i).deepCopy());\n\t\t}\n\t\tfor (int i = 0, len = events.size(); i < len; ++i) {\n\t\t\tfinal UIAttribute p = events.get(i);\n\t\t\tclone.events.add((UIAttribute) p.deepCopy());\n\t\t}\n\t\tclone.nextEventsAdditionShouldOverride = nextEventsAdditionShouldOverride;\n\t\tif (driver != null) {\n\t\t\tclone.driver = (UIAttribute) driver.deepCopy();\n\t\t}\n\t\treturn clone;\n\t}", "@Override\n public List<Event> getEvents()\n {\n return Arrays.asList(new DocumentUpdatedEvent());\n }", "public List<Ent> getChildList(){\n\t\tif(this.childList != null){\n\t\t\treturn Collections.unmodifiableList(this.childList);\n\t\t}else{\n\t\t\treturn new ArrayList<Ent>();\n\t\t}\n\t}", "private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "public MemberAddress clone() {\r\n try {\r\n return (MemberAddress)super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n throw new IllegalStateException(\"Failed to clone the entity: \" + toString(), e);\r\n }\r\n }" ]
[ "0.6629449", "0.650435", "0.63751954", "0.6317883", "0.608182", "0.60390276", "0.5925363", "0.58804727", "0.5806072", "0.5787839", "0.57821286", "0.57443804", "0.57274073", "0.56629616", "0.56607985", "0.56564593", "0.56090206", "0.5563368", "0.55019844", "0.5495422", "0.54887885", "0.5485555", "0.5483474", "0.54540974", "0.54359865", "0.54354125", "0.5409764", "0.53971183", "0.5375551", "0.5371261", "0.53577", "0.53434676", "0.53256845", "0.5322269", "0.5308408", "0.53004354", "0.52946454", "0.529025", "0.524341", "0.5241113", "0.52338964", "0.522425", "0.5221106", "0.5217211", "0.52094865", "0.52088374", "0.5205154", "0.51806194", "0.51784164", "0.5159224", "0.5139679", "0.51259553", "0.50977725", "0.5087012", "0.5082712", "0.5066143", "0.5058426", "0.50570697", "0.5054769", "0.5054482", "0.5053136", "0.5036622", "0.5035518", "0.50291413", "0.49881405", "0.4982153", "0.4979954", "0.49739596", "0.49574822", "0.49360913", "0.49354735", "0.49340358", "0.4930391", "0.4926324", "0.49228463", "0.49150452", "0.48976716", "0.48975867", "0.4883584", "0.48794731", "0.48790595", "0.48774126", "0.48741594", "0.48644918", "0.48640847", "0.48557928", "0.48553026", "0.48323098", "0.48313254", "0.4820786", "0.48204395", "0.48180273", "0.48116404", "0.48067975", "0.48045224", "0.48035607", "0.4796378", "0.47870845", "0.4786617", "0.4772341" ]
0.671003
0
Notify all listeners whenever the EventList is changed.
private void notifyEventListListeners() { this.eventListListeners.forEach(listener -> listener.onEventListChange(this.getEventList())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void notifyListeners() \n\t{\n\t\tSystem.out.println(\"Event Source: Notifying all listeners\");\n\n\t\tfor(IListener listener : listeners)\n\t\t{\n\t\t\tlistener.eventOccured(new Event(this));//passing and object of source\n\t\t}\n\n\t}", "private void notifyListeners() {\n\t\tfor(ModelListener l:listeners) {\n\t\t\tl.update();\t// Tell the listener that something changed\n\t\t}\n\t}", "protected void notifyChangeListeners() { \n Utilities.invokeLater(new Runnable() {\n public void run() { for(ChangeListener l: _changeListeners) l.apply(this); }\n });\n }", "protected void notifyModificationListeners() {\r\n\t\tfor (ElementModificationListener l : modificationListeners) {\r\n\t\t\tl.elementModified(current);\r\n\t\t}\r\n\t}", "protected void fireStateChanged() {\n if (listenerList != null) {\n // Guaranteed to return a non-null array\n Object[] listeners = listenerList.getListenerList();\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == ChangeListener.class) {\n // Lazily create the event:\n if (changeEvent == null) {\n changeEvent = new ChangeEvent(this);\n }\n ((ChangeListener) listeners[i + 1]).stateChanged(changeEvent);\n }\n }\n }\n }", "protected void notifyListeners(CacheEvent e) {\n synchronized (listeners) {\n for (int i=0; i<listeners.size(); i++) {\n CacheListener l = (CacheListener) listeners.elementAt(i);\n l.cacheUpdated(e);\n }\n }\n }", "private void notifyListeners(RestState state) {\n\t\tfor (RestStateChangeListener l : listener) {\n\t\t\tl.onStateChangedEvent(state);\n\t\t}\n\t}", "protected void fireStateChanged(){\n Object[] listeners=listenerList.getListenerList();\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for(int i=listeners.length-2;i>=0;i-=2){\n if(listeners[i]==ChangeListener.class){\n // Lazily create the event:\n if(changeEvent==null)\n changeEvent=new ChangeEvent(this);\n ((ChangeListener)listeners[i+1]).stateChanged(changeEvent);\n }\n }\n }", "void firePropertyChange() {\n java.util.Vector targets;\n synchronized (this) {\n if (listeners == null) {\n return;\n }\n targets = (java.util.Vector) listeners.clone();\n }\n\n PropertyChangeEvent evt = new PropertyChangeEvent(this, null, null, null);\n\n for (int i = 0; i < targets.size(); i++) {\n PropertyChangeListener target = (PropertyChangeListener)targets.elementAt(i);\n target.propertyChange(evt);\n }\n }", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}", "private void fireNodeChangedNow( EventListenerList list, ChangeEvent e )\n {\n Object[] listeners = list.getListenerList();\n\n // Process the listeners last to first,\n // notifying those that are interested in this event\n for( int i = listeners.length - 2; i >= 0; i -= 2 )\n {\n if( listeners[i] == ChangeListener.class )\n {\n ((ChangeListener)listeners[i + 1]).stateChanged( e );\n }\n }\n }", "protected final void fireChangeEvent() {\n\t\tIterator<ChangeListener> it;\n\t\tsynchronized (listeners) {\n\t\t\tit = new HashSet<ChangeListener>(listeners).iterator();\n\t\t}\n\t\tChangeEvent ev = new ChangeEvent(this);\n\t\twhile (it.hasNext()) {\n\t\t\tit.next().changed(ev);\n\t\t}\n\t}", "protected void fireStateChanged() {\r\n Object[] listeners = listenerList.getListenerList();\r\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\r\n if (listeners[i] == ChangeListener.class) {\r\n if (changeEvent == null) {\r\n changeEvent = new ChangeEvent(this);\r\n }\r\n ((ChangeListener) listeners[i + 1]).stateChanged(changeEvent);\r\n }\r\n }\r\n }", "public void fireStateChanged() {\r\n Object[] listeners = listenerList.getListenerList();\r\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\r\n if (listeners[i] == ChangeListener.class) {\r\n if (changeEvent == null) {\r\n return;\r\n }\r\n ((ChangeListener) listeners[i + 1]).stateChanged(changeEvent);\r\n }\r\n }\r\n }", "public synchronized void fireStateChanged() {\n Object[] listeners = listenerList.getListenerList();\n for (int i = listeners.length - 2; i >= 0; i -= 2)\n if (listeners[i] == ChangeListener.class) {\n if (changeEvent == null)\n return;\n ((ChangeListener) listeners[i + 1]).stateChanged(changeEvent);\n }\n }", "protected void fireStateChanged ()\n {\n Object[] listeners = listenerList.getListenerList();\n ChangeEvent event = null;\n for (int ii = listeners.length - 2; ii >= 0; ii -= 2) {\n if (listeners[ii] == ChangeListener.class) {\n if (event == null) {\n event = new ChangeEvent(this);\n }\n ((ChangeListener)listeners[ii + 1]).stateChanged(event);\n }\n }\n }", "public void notifyListeners() {\n Logger logger = LogX;\n logger.d(\"notifyListeners: \" + this.mListeners.size(), false);\n List<IWalletCardBaseInfo> tmpCardInfo = getCardInfo();\n Iterator<OnDataReadyListener> it = this.mListeners.iterator();\n while (it.hasNext()) {\n it.next().refreshData(tmpCardInfo);\n }\n }", "private static void informListeners() {\r\n\t\tfor (ATEListener l : listeners) {\r\n\t\t\tl.classListChanged( );\r\n\t\t}\r\n\t}", "protected void fireContentsChanged() {\r\n\t// Guaranteed to return a non-null array\r\n\tObject[] listeners = listenerList.getListenerList();\r\n\tListDataEvent e = null;\r\n\t// Process the listeners last to first, notifying\r\n\t// those that are interested in this event\r\n\tfor (int i = listeners.length-2; i>=0; i-=2) {\r\n\t if (listeners[i]==ListDataListener.class) {\r\n\t\t// Lazily create the event:\r\n\t\tif (e == null) {\r\n\t\t e = new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED,\r\n\t\t\t\t\t 0, getSize()-1);\r\n\t\t}\r\n\t\t((ListDataListener)listeners[i+1]).contentsChanged(e);\r\n\t }\r\n\t}\r\n }", "public void notifyListeners() {\n Handler handler = new Handler(Looper.getMainLooper()); // TODO reuse\n // handler\n Runnable runnable = new Runnable() {\n\n @Override\n public void run() {\n synchronized (listeners) {\n for (IContentRequester requester : listeners) {\n requester.contentChanged(Content.this);\n }\n }\n }\n };\n boolean success = handler.post(runnable);\n if (success) {\n // Log.d(TAG,\n // \"Posted notification for all listeners from \"+this.toString()+\" to \"+listeners.size()+\" listeners.\");\n Log.d(TAG, \"Posted notification for all listeners from content id \"\n + id + \" to \" + listeners.size() + \" listeners.\");\n } else {\n Log.e(TAG, \"Failed to post notification for all listeners\");\n }\n }", "protected void fireStateChanged() \r\n {\r\n Object[] listeners = listenerList.getListenerList();\r\n for (int i = listeners.length - 2; i >= 0; i -=2 ) {\r\n if (listeners[i] == ChangeListener.class) {\r\n if (changeEvent == null) {\r\n changeEvent = new ChangeEvent(this);\r\n }\r\n ((ChangeListener)listeners[i+1]).stateChanged(changeEvent);\r\n } \r\n }\r\n }", "private void notifyObservers() {\n\t\tIterator<Observer> i = observers.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tObserver o = ( Observer ) i.next();\r\n\t\t\to.update( this );\r\n\t\t}\r\n\t}", "protected void updateAll() {\n for (String key : listenerMap.keySet()) {\n updateValueForKey(key, true);\n }\n }", "public synchronized void triggerEvents(E e){\n Iterator<T> iterator = callbackList.listIterator();\n while(iterator.hasNext()){\n iterator.next().onEvent(e);\n }\n }", "@Override\n public void notifyObserver() {\n for(Observer o:list){\n o.update(w);\n }\n }", "protected void notifyWorkflowStatusListeners() {\n\t\tfor (WorkflowStatusListener listener : workflowStatusListeners) {\n\t\t\tlistener.workflowStatusChanged(this);\n\t\t}\n\t}", "public void notifyObservers() {\n for (int i = 0; i < observers.size(); i++) {\n Observer observer = (Observer)observers.get(i);\n observer.update(this.durum);\n }\n }", "@Override\n\tpublic void notifys() {\n\t\tfor(Observer observer : observers) {\n\t\t\tobserver.update(this);\n\t\t}\n\t}", "@Override\n void notifys() {\n for (Observer o : observers) {\n o.update();\n }\n }", "@Override\n\tpublic void notifyObserver() {\n\t\tEnumeration<ObserverListener> enumd = vector.elements();\n\t\twhile (enumd.hasMoreElements()) {\n\t\t\tObserverListener observerListener = enumd\n\t\t\t\t\t.nextElement();\n\t\t\tobserverListener.observer();\n\t\t\tobserverListener.obsupdata();\n\t\t}\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor (Observer o : this.observers) {\r\n\t\t\to.update();\r\n\t\t}\r\n\t}", "private void notifyListeners(boolean dataChanged) {\n for (OnDataChangedListener listener : dataChangedListeners) {\n listener.onDataChanged(dataChanged);\n }\n }", "private void fireChangeInternal(ChangeEvent event) {\n assert event != null;\n for (ChangeListener listener : listeners) {\n try {\n listener.stateChanged(event);\n } catch (RuntimeException x) {\n Exceptions.printStackTrace(x);\n }\n }\n }", "private static void fireMazeChanged() {\r\n\t\tfor (ATEListener l : listeners) {\r\n\t\t\tl.mazeChanged(currentMaze);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void notifyObservers() {\n\t\tfor (Observer obs : this.observers)\n\t\t{\n\t\t\tobs.update();\n\t\t}\n\t}", "private void notifyListeners() {\n IDisplayPaneContainer container = (IDisplayPaneContainer) activeEditorMap\n .get(currentWindow);\n for (IVizEditorChangedListener listener : changeListeners) {\n listener.editorChanged(container);\n }\n }", "private void notifyListeners(ActionEvent evt) {\n\t\tIterator iter = m_listeners.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tActionListener listener = (ActionListener) iter.next();\n\t\t\tlistener.actionPerformed(evt);\n\t\t}\n\t}", "public void fireListenersOnPaths(Collection<IPath> pathList) {\r\n\t\tfor (Pair<IPath, IResourceChangeHandler> entry : trackedResources) {\r\n\t\t\tif (pathList.contains(entry.first)) {\r\n\t\t\t\tentry.second.resourceChanged(entry.first);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "protected void fireStateChanged() {\n Object[] listeners = changeListeners.getListenerList();\n // Process teh listeners last to first, notifying those that are\n // interested in this event.\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == ChangeListener.class) {\n if (changeEvent == null) {\n changeEvent = new ChangeEvent(this);\n ((ChangeListener) listeners[i + 1]).stateChanged(changeEvent);\n }\n }\n }\n }", "@Override\r\n\tpublic void notifyObservers() {\n\t\tEnumeration<Observer> enumo = vector.elements();\r\n\t\twhile(enumo.hasMoreElements()){\r\n\t\t\tenumo.nextElement().update();\r\n\t\t}\r\n\t}", "protected void fireConfigUpdated()\r\n {\r\n List executeListeners = new ArrayList(listeners);\r\n \r\n for (int i=0; i < executeListeners.size(); i++)\r\n {\r\n IConfigurationListener listener = (IConfigurationListener) executeListeners.get(i);\r\n listener.configUpdated();\r\n }\r\n }", "protected void notifyListeners(SinkLogEvent event) {\n\t\tsynchronized (logListeners) {\n\t\t\tfor (SinkLogEventListener listener : logListeners) {\n\t\t\t\tlistener.sinkLogEvent(event);\n\t\t\t}\n\t\t}\n\t}", "public void notifyAllObservers() {\n\t\tfor(Observer observer : observers) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "public void alert(){\n\t\tfor (ChangeListener l : listeners) {\n\t\t\tl.stateChanged(new ChangeEvent(this));\n\t\t}\n\t}", "@Override\n public void notifyObservers() {\n for (Observer observer : observers){\n // observers will pull the data from the observer when notified\n observer.update(this, null);\n }\n }", "protected void fireStateChanged(ChangeEvent e) {\n if (changeListeners != null) {\n Vector listeners = changeListeners;\n int count = listeners.size();\n for (int i = 0; i < count; i++) {\n ((ChangeListener) listeners.elementAt(i)).stateChanged(e);\n }\n }\n }", "public void notifyObservers(){\n for (GameObserver g: observers){\n g.handleUpdate(new GameEvent(this,\n currentPlayer,\n genericWorldMap,\n gameState,\n currentTerritoriesOfInterest,\n currentMessage));\n }\n }", "public void notifyObservers() {\r\n for (Observer observer: this.observers) {\r\n observer.update(this);\r\n }\r\n\r\n// System.out.println(this);\r\n }", "@Override\n\tpublic void onDataChanged()\n\t{\n\t\tfor (DataChangedCallbacks listener : this.dataChangedListeners)\n\t\t{\n\t\t\tlistener.onDataChanged();\n\t\t}\n\t}", "private static void fireListChanged(Object tag)\n {\n // if (DEBUG.Enabled) Log.info(\"fireListChanged: \" + Util.tags(tag));\n \n // if (disableEvents)\n // return;\n // for (MetadataListListener mdl : listeners) {\n // try {\n // mdl.listChanged();\n // } catch (Throwable t) {\n // Log.warn(\"listener update: \" + Util.tags(mdl), t);\n // }\n // }\n }", "protected final void notifyReadyStateChanged() {\n // notify all listeners (including parents)\n for (DialogModuleChangeListener listener : listeners) {\n listener.onReadyStateChanged();\n }\n }", "private void notifyListSelectionListener()\r\n {\r\n \tif (listSelectionListeners != null && listSelectionListeners.size() > 0) \r\n \t{\r\n ListSelectionEvent event = new ListSelectionEvent(this, avatarIndex, avatarIndex, false);\r\n\r\n for (ListSelectionListener listener : listSelectionListeners)\r\n {\r\n listener.valueChanged(event);\r\n }\r\n \t}\r\n }", "protected void fireDateChanged() {\n\t\tfor(ReadingPointListener l : listeners) l.dateChanged(this);\n\t}", "protected final void notifyContentChanged() {\n // notify all listeners (including parents)\n for (DialogModuleChangeListener listener : listeners) {\n listener.onContentChanged();\n }\n }", "protected void fireChange() {\n\t\tActionListener[] actionListenerArray = actionListeners.toArray(new ActionListener[0]);\n\t\tfor (int i = 0; i < actionListenerArray.length; i++) {\n\t\t\tActionListener listener = actionListenerArray[i];\n\t\t\tlistener.onActionChanged(this);\n\t\t}\n\t}", "private void notifyListeners() {\n for (SerialConnectionReadyListener listener : listeners) {\n listener.SerialConnectionReady(this);\n }\n }", "protected final void notifyInvalidated() {\n if (!myNotificationsEnabled) {\n return;\n }\n\n for (InvalidationListener listener : myListeners) {\n listener.onInvalidated(this);\n }\n\n for (InvalidationListener listener : myWeakListeners) {\n listener.onInvalidated(this);\n }\n }", "protected void fireStateChanged() {\n\t\tChangeEvent changeEvent = new ChangeEvent(this);\n\n\t\tfor (ChangeListener changeListener : changeListeners) {\n\t\t\tchangeListener.stateChanged(changeEvent);\n\t\t}\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t for(Observer o : observers){\r\n\t\t o.update();\r\n\t }\r\n\t}", "public void updateDate() {\n for (ChangeListener l : listeners) {\n l.stateChanged(new ChangeEvent(this));\n }\n }", "private void notifyBoardChanged() {\n if(this.boardChangeListenerList == null || this.boardChangeListenerList.isEmpty()) return;\n\n // yes - there are - create a thread and inform them\n (new Thread(new Runnable() {\n @Override\n public void run() {\n for(LocalBoardChangedListener listener : SchiffeVersenkenImpl.this.boardChangeListenerList) {\n listener.changed();\n }\n }\n })).start();\n }", "public void notifyListeners(Type type) {\n for (WorkspaceListener listener : listeners) {\n listener.update(type);\n }\n }", "public static void fire() {\n\t\tILocalizationListener[] array = listeners.toArray(new ILocalizationListener[listeners.size()]);\n\t\tfor(ILocalizationListener l : array) {\n\t\t\tl.localizationChanged();\n\t\t}\n\t}", "private void notifyObservers(GameEvent<S, A> e) {\n \tfor (GameObserver<S, A> o : observers){\n\t\t\to.notifyEvent(e);\n\t\t}\n\t}", "protected void notifyListeners(int weekDay, int segment) {\r\n\t\tfor(ScheduleChangeListener listener : listeners)\r\n\t\t\tlistener.scheduleChanged(weekDay, segment);\r\n\t}", "private void notifyListenersSkyModelUpdate(SkyModelUpdate status) {\n\t\tif (!deleteListeners.isEmpty()) {\n\t\t\tfor (int id = 0; id < deleteListeners.size(); id++) {\n\t\t\t\tSkyModelUpdateListener l = deleteListeners.get(id);\n\t\t\t\tif (listeners.contains(l)) {\n\t\t\t\t\tlisteners.remove(l);\n\t\t\t\t\tslogger.create().info().level(2).msg(\"Removing listener \" + l).send();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// add new listeners\n\t\tif (!addListeners.isEmpty()) {\n\t\t\tfor (int ia = 0; ia < addListeners.size(); ia++) {\n\t\t\t\tSkyModelUpdateListener l = addListeners.get(ia);\n\t\t\t\tif (!listeners.contains(l)) {\n\t\t\t\t\tlisteners.add(l);\n\t\t\t\t\tslogger.create().info().level(2).msg(\"Adding new listener \" + l).send();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// broadcast\n\t\tfor (int il = 0; il < listeners.size(); il++) {\n\t\t\tSkyModelUpdateListener l = null;\n\t\t\ttry {\n\t\t\t\tl = listeners.get(il);\n\t\t\t\tif (status instanceof SkyModelSeeingUpdate) {\n\t\t\t\t\tSkyModelSeeingUpdate seeing = (SkyModelSeeingUpdate) status;\n\t\t\t\t\tl.seeingUpdated(seeing.getStatusTimeStamp(), seeing.getRawSeeing(), seeing.getCorrectedSeeing(),\n\t\t\t\t\t\t\tseeing.getPredictedSeeing(), seeing.getElevation(), seeing.getAzimuth(),\n\t\t\t\t\t\t\tseeing.getWavelength(), seeing.isStandard(), seeing.getSource(), seeing.getTargetName());\n\t\t\t\t} else if (status instanceof SkyModelExtinctionUpdate) {\n\t\t\t\t\tSkyModelExtinctionUpdate photom = (SkyModelExtinctionUpdate) status;\n\t\t\t\t\tl.extinctionUpdated(photom.getStatusTimeStamp(), photom.getExtinction());\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (l != null) {\n\t\t\t\t\tdeleteListeners.add(l);\n\t\t\t\t\tslogger.create().info().level(2).msg(\"Adding unresponsive listener: \" + l + \" to kill list\").send();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\n }", "protected void fireNameChanged() {\n\t\tfor(ReadingPointListener l : listeners) l.nameChanged(this);\n\t}", "protected void notifyListeners(BAEvent event) {\n \t\ttmc.callListeners(event); /// Call our listeners listening to only this match\n \t\tevent.callEvent(); /// Call bukkit listeners for this event\n \t}", "protected void fireValueChangedEvent(ValueChangedEvent event) {\n\t\tif (listeners != null) {\n\t\t\tfor (int i = 0; i < listeners.length; i++) { \n\t\t\t\tlisteners[i].valueChanged(event);\n\t\t\t}\n\t\t}\n\t}", "public void notifyStateChange(StateChangeEvent event) {\n\t\tString stateChange = event.getChangedState();\n\t\tVector currentStateListeners = null;\n\t\tif (listeners.containsKey(stateChange)) {\n\t\t\tcurrentStateListeners = (Vector) listeners.get(stateChange);\n\t\t\tfor (int i = 0; i < currentStateListeners.size(); i++) {\n\t\t\t\tStateChangeListener listener = (StateChangeListener) currentStateListeners\n\t\t\t\t\t\t.elementAt(i);\n\t\t\t\tif (listener != null) {\n\t\t\t\t\tlistener.handleStateChange(event);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void notifyObservors() {\n this.obervors.forEach(Obervor::modelChanged);\n }", "private void notifyObjectChanged(int index0, int index1) {\n\t\tlisteners.forEach(l -> l.objectsChanged(this, index0, index1));\n\t}", "public void notifyObservers() {}", "public void bindPlotListChangedEvent(final OIFitsCollectionManagerEventListener listener) {\n getPlotListChangedEventNotifier().register(listener);\n\n // force fire PLOT_LIST_CHANGED event to initialize the listener with current OIFitsCollection ASAP:\n firePlotListChanged(null, listener);\n }", "protected void AddEvents()\r\n {\r\n INotifyPropertyChanged propParent = (INotifyPropertyChanged)getProxyParent();\r\n propParent.getPropertyChanged().addObservers(filterPropertyChanges);\r\n }", "@Override\n\tpublic void Notify() {\n\t\tfor (Observer observer : obs) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "@Override\n public void onPlaylistChanged() {\n for (final MusicStateListener listener : mMusicStateListener) {\n if (listener != null) {\n listener.onPlaylistChanged();\n }\n }\n }", "private void notifyUpdateLoop(UpdateLoopEvento event) {\r\n\t\tIterator ite = this.iterator();\r\n\t\twhile (ite.hasNext()) {\r\n\t\t\tIListaLoopListener ilLoop = (IListaLoopListener) ite.next();\r\n\t\t\tilLoop.LoopUpdate(event);\r\n\t\t}\r\n\t}", "public void notifyAllObservers(){\n\t\tthis.notifyAllObservers(null);\n\t}", "public void notifyStudentsObservers() {\n \t\tfor (IStudentsObserver so : studentsObservers) {\n \t\t\tso.updateStudents();\n \t\t}\n \t}", "private void notifyidiots() {\n\t\tfor(Observ g:obslist) {\n\t\t\tg.update();\n\t\t}\n\t}", "void\n notifyChange() {\n this.notifyChange = true;\n synchronized (this.changeMonitor) {\n this.changeMonitor.notifyAll();\n }\n }", "private void notifyObservers() {\n BinStatusUpdate newStatus = buildNewStatus();\n observers.iterator().forEachRemaining(binStatusUpdateStreamObserver -> binStatusUpdateStreamObserver.onNext(newStatus));\n }", "public void notifyObservers() {\n\t\tfor(ElevatorObserver obs: observers) {\n\t\t\tobs.elevatorDidFinishTask(this);\n\t\t}\n\t}", "protected void fireItemStateChanged(ItemEvent e){\n Object[] listeners=listenerList.getListenerList();\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for(int i=listeners.length-2;i>=0;i-=2){\n if(listeners[i]==ItemListener.class){\n // Lazily create the event:\n // if (changeEvent == null)\n // changeEvent = new ChangeEvent(this);\n ((ItemListener)listeners[i+1]).itemStateChanged(e);\n }\n }\n }", "@Test @Ignore\r\n public void testListPropertyNotificationDetails() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> lp = new SimpleListProperty<>(list);\r\n ListChangeListener l = c -> FXUtils.prettyPrint(c);\r\n LOG.info(\"change from listProperty: modifying list\");\r\n lp.addListener(l);\r\n LOG.info(\"set same element\");\r\n list.set(0, list.get(0));\r\n LOG.info(\"set same list\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with two changes\r\n LOG.info(\"remove two not subsequent\");\r\n list.removeAll(list.get(1), list.get(5)); \r\n LOG.info(\"retain all with complete list\");\r\n // fires nothing \r\n list.retainAll(createObservableList(true));\r\n LOG.info(\"setAll to initial\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with 3 changes of type remove\r\n list.retainAll(list.get(0), list.get(3), list.get(7));\r\n LOG.info(\"setall with new list\");\r\n list.setAll(\"one\", \"twoorwhat\");\r\n // fires one replaced event for each element \r\n UnaryOperator<String> op = p -> {\r\n if (p.length() > 3) return p;\r\n return p + 3;\r\n }; \r\n list.replaceAll(op); \r\n // fires setAll\r\n FXCollections.replaceAll(list, \"one\", \"other\");\r\n list.removeAll(\"one\", \"two\");\r\n LOG.info(\"reset ListProperty to initial list\");\r\n lp.set(createObservableList(true));\r\n }", "private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }", "public void notifyChange()\r\n {\r\n setChanged();\r\n notifyObservers();\r\n }", "@Override\r\n\tpublic void notifyObservers(){\r\n\t\tfor(IObserver obs : observers){\r\n\t\t\tobs.update(this, selectedEntity);\r\n\t\t}\r\n\t\tselectedEntity = null;\r\n\t}", "protected abstract void collectFires(Collection<Object> evAndListeners);", "void notifyAllAboutChange();", "private void informListeners(State state, Set<Element> elements) {\n // Event informing listeners that check has started.\n CheckEvent e = new CheckEvent(state, elements, this);\n for (CheckListener l : listener) {\n l.checkChanged(e);\n }\n }", "@Test\r\n public void testListPropertyNotificationMultipleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ChangeReport otherListener = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "public void notifyObservers(int UPDATE_VALUE){\n\t\tfor(int i = 0; i < observerNodes.size();i++){\n\t\t\tNode currentNode = observerNodes.get(i);\n\t\t\tif(currentNode.filterType.filter(UPDATE_VALUE)) {\n\t\t\t\t\tcurrentNode.listen(UPDATE_VALUE);\n\t\t }\n\t\t}\n\t}", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "void notifyAdapters(Object event);", "public void notifyObservers(){\r\n\t\tif (this.lastNews != null)\r\n\t\t\tfor (Observer ob: observers){\r\n\t\t\t\tob.updateFromLobby(lastNews);\r\n\t\t\t}\r\n\t}", "public void notifyChange() {\n synchronized (this) {\n if (mCallbacks == null) {\n return;\n }\n }\n mCallbacks.notifyCallbacks(this, 0, null);\n }", "protected void fireActionChanged()\n {\n for( final ActionAdapterListener listener : this.listeners )\n {\n listener.actionChanged( this );\n }\n }" ]
[ "0.7656236", "0.75768167", "0.72562486", "0.7070277", "0.69691974", "0.6935792", "0.6882607", "0.687498", "0.68565226", "0.6855639", "0.6827037", "0.68248665", "0.6793905", "0.67756456", "0.67563194", "0.6726934", "0.67259204", "0.66790503", "0.66646653", "0.66627777", "0.6661834", "0.6544507", "0.652281", "0.6504579", "0.64816636", "0.64751273", "0.64652145", "0.64590216", "0.64376825", "0.64267415", "0.64218867", "0.63918394", "0.6377103", "0.6367426", "0.6355221", "0.63375044", "0.6335267", "0.6332762", "0.6327609", "0.62871104", "0.62859535", "0.62496585", "0.62405336", "0.6236428", "0.62272", "0.6226433", "0.62179524", "0.62174875", "0.62166804", "0.6214533", "0.6204796", "0.6203054", "0.62026787", "0.6196823", "0.6171313", "0.616091", "0.61485136", "0.61334723", "0.6126832", "0.6121883", "0.6120081", "0.61172897", "0.6109057", "0.60829073", "0.6054666", "0.6045967", "0.60383123", "0.6037894", "0.60378563", "0.6037411", "0.6033232", "0.60317296", "0.6011196", "0.5977232", "0.59766626", "0.5971982", "0.59699607", "0.5963137", "0.59618556", "0.59504056", "0.59375155", "0.59369296", "0.5899339", "0.5895146", "0.58915454", "0.5865538", "0.5864761", "0.5862282", "0.5856107", "0.58528584", "0.58496934", "0.5849342", "0.5847689", "0.58440596", "0.58408713", "0.58356893", "0.5835632", "0.5818747", "0.58111465", "0.57916015" ]
0.8813536
0
Main method of TCPClient
public static void main(String argv[]) { CategoriesFrame categoriesFrame; TasksFrame tasksFrame = null; String demandForServer = ""; try { TCPClient tcpClient = new TCPClient(); DemandService service; service = new DemandService(tcpClient.clientSocket); service.reciveWelcomeMessageFromServer(); for (String s : argv) { service.realize("ADD CATEGORY ;; " + s); } categoriesFrame = new CategoriesFrame(service.getInformationFromServer("GET CATEGORIES")); boolean doWeShowTasks = false; while (true) { try { Thread.sleep(200); } catch (InterruptedException e) { } demandForServer = categoriesFrame.getDemandForServer(); if (demandForServer.equals("")) { if (tasksFrame != null) { demandForServer = tasksFrame.getDemandForServer(); if (!demandForServer.equals("")) { tasksFrame.resetDemandForServer(); service.realize(demandForServer); } } } else { service.realize(demandForServer); categoriesFrame.resetDemandForServer(); } if (categoriesFrame.doWeWantToRefreshCategories()) { categoriesFrame.showFrame(service.getInformationFromServer("GET CATEGORIES")); categoriesFrame.resetDoWeRefresh(); } else if (doWeShowTasks) { categoriesFrame.resetDoWeShowTasks(); categoriesFrame.hide(); tasksFrame = new TasksFrame(categoriesFrame.getChosenCategory(), service.getInformationFromServer("GET TASKS ;; " + categoriesFrame.getChosenCategory())); } else if (tasksFrame != null) { if (tasksFrame.doWeWantToShowCategories()) { tasksFrame.resetDoWeShowCategories(); tasksFrame.hide(); categoriesFrame.showFrame(service.getInformationFromServer("GET CATEGORIES")); } else if (tasksFrame.doWeWantToRefreshTasks()) { tasksFrame.showFrame(service.getInformationFromServer("GET TASKS ;; " + categoriesFrame.getChosenCategory())); tasksFrame.resetDoWeRefresh(); } } doWeShowTasks = categoriesFrame.doWeWantToShowTasks(); } } catch (ErrorWithServerException | NullPointerException ex) { ErrorFrame errFrame = new ErrorFrame(ex.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)throws IOException{\n new Client(\"localhost\", 12000);\n }", "public static void main(String[] args) {\n new ClientMain();\n\n }", "public static void main(String[] args){\r\n\t\tnew Client();\r\n\t}", "public static void main(String[] args) throws Exception {\n //TcpClient client = new TcpClient();\n System.out.println(\"Client Started\"); \n \n //test for infinite messages\n //client.infiniteHiTest();\n \n //test for 10 lac messages\n //client.definedForTest(1000000);\n \n //5000 messages with 45 sec delay\n //client.sendDataInDelay(5000,45000);\n \n \n Socket clientSocket = new Socket(\"localhost\", TcpServer.PORT); \n DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());\n \n outToServer.writeUTF(\"HI from non mina\");\n outToServer.flush();\n \n \n \n \n \n //client.connector.dispose(true);\n \n }", "public static void main(String[] args) throws Exception\n\t{\n\t\tSocket theServer = new Socket(\"localhost\",1234);\n\t\t//messages.add(\"Begin\");\n\t\tClientCommunicationProtocol ccp = new ClientCommunicationProtocol(theServer);\n\t\tccp.startCommunication();\n\t}", "public static void main(String[] args) {\n//\t\tnew CluelessClient();\n\t}", "private void runTcpClient() {\n\t\t\n\t\tint TCP_SERVER_PORT=5050;\n\n\t try {\n\n\t Socket s = new Socket(\"192.168.0.255\", TCP_SERVER_PORT);\n\n\t BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\n\t BufferedWriter out = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));\n\n\t //send output msg\n\n\t String outMsg = \"TCP connecting to \" + TCP_SERVER_PORT + System.getProperty(\"line.separator\"); \n\n\t out.write(outMsg);\n\n\t out.flush();\n\n\t Log.i(\"TcpClient\", \"sent: \" + outMsg);\n\n\t //accept server response\n\n\t String inMsg = in.readLine() + System.getProperty(\"line.separator\");\n\t \n\t textView.append(inMsg);\n\n\t Log.i(\"TcpClient\", \"received: \" + inMsg);\n\n\t //close connection\n\n\t s.close();\n\n\t } catch (UnknownHostException e) {\n\n\t e.printStackTrace();\n\n\t } catch (IOException e) {\n\n\t e.printStackTrace();\n\n\t } \n\n\t}", "public static void main(String[] args)\n {\n \t\n String host;\n String menuSelection; \n \tInputStreamReader input = new InputStreamReader(System.in) ;\n \tBufferedReader inputBuff = new BufferedReader(input) ; \t\n \t\n //check for host and throw error if not provided\n if(args.length!=1) {\n \tSystem.out.println(\"Application error: command line arguement missing\\n Usage: \\n \" +\n \t\t\t\"java client <IPAddress> or \\n java client <hostname>\");\n \treturn;\n }\n \n //System.out.println(\"arg[0] \"+args[0]);\n host = args[0]; \n System.out.println(\"client starting\");\n ctp = new CTP(host);\n \t\n \twhile(true) {\n \t\tDisplayMainMenu();\n \t\ttry {\n\t \t\tmenuSelection = inputBuff.readLine();\n\t \t\tif(menuSelection.equals(\"1\"))\n\t \t\t\tSendMessage();\n\t \t\telse if(menuSelection.equals(\"2\"))\n\t \t\t\tReadMessage();\n\t \t\telse if(menuSelection.equals(\"3\"))\n\t \t\t\tRegressionTest();\n\t \t\tSystem.out.println(\"Press return key to continue\");\n\t \t\tmenuSelection = inputBuff.readLine();\n\t \t\t//roll screen\n\t \t\tfor(int i=0;i<6;i++)\n\t \t\t\tSystem.out.print(\"\\n\"); \t\n\t \t\t\n\t \t}\n \t\tcatch (IOException err) {\n \t\t\tSystem.out.println(\"Error reading line\");\t\n \t\t}\n \t\t\n \t}//end while loop\n }", "public static void main(String[] args){\n\n GameClientImpl client = new GameClientImpl();\n client.startConnection(\"127.0.0.1\", ProtocolConfiguration.PORT);\n\n }", "public static void main(String[] args) {\n\t\ttry {\t\t\t\t\t\n\t\t\tTerminal terminal= new Terminal(\"Client\");\t\t\n\t\t\t(new Client(terminal, DEFAULT_DST_NODE, DEFAULT_DST_PORT, DEFAULT_SRC_PORT)).start();\n\t\t\tterminal.println(\"Program completed\");\n\t\t} catch(java.lang.Exception e) {e.printStackTrace();}\n\t}", "public static void main(String[] args) {\n\r\n\t\tclientSample();\r\n\t}", "static public void main ( String args[] ) throws UnknownHostException, ClassNotFoundException, IOException\n {\n if (args.length < 2) {\n System.err.println( \"Usage: java MessageClient <host> <port>\" ); \n return;\n } \n // parse the hostname and the port number from the passed parameters\n String hostname = args[0]; \n int port = Integer.parseInt( args[1] ); \n\n // create a new MessageClient and pass parsed hostname and port as parameters\n new MessageClient ( hostname, port ) ; \n }", "public static void main(String arg[]){\n SocketClient client = new SocketClient (\"localhost\",6543);\n try {\n //tenta estabelecer conexão com o server\n client.connect();\n //se obtiver sucesso, le a resposta \n client.readResponse();\n } catch (UnknownHostException e) {\n System.err.println(\"Host desconhecido. Não foi possível estabelecer conexão.\");\n } catch (IOException e) {\n System.err.println(\"Não foi possível estabelecer conexão. Server pode estar indisponível.\"+e.getMessage());\n }\n }", "public static void main(String[] args) {//Èë¿Ú\n\t\tinitLog4j();\n\t\tlogger.info(\"Client launched successfully\");\n\t\t\n\n\t\t// Application logic\n\t\tApplicationLogic applicationLogic = new ApplicationLogic();\n\n\t\tsysReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = null;\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"EchoClient> \");\n\t\t\t// Read from system input\n\t\t\ttry {\n\t\t\t\tstr = sysReader.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Failed to read from system input\");\n\t\t\t\tlogger.error(\"Failed to read from system input\");\n\t\t\t}\n\t\t\tif (!str.trim().equals(\"\")) {\n\t\t\t\t// Get command\n\t\t\t\tString[] token = str.split(\" \");\n\t\t\t\tString cmd = token[0];\n\t\t\t\t// Send\n\t\t\t\tif (cmd.equals(\"send\")) {\n\t\t\t\t\tString msg = str.substring(4, str.length()).trim();\n\t\t\t\t\tif (!msg.equals(\"\")) {\n\t\t\t\t\t\tapplicationLogic.send(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// connect\n\t\t\t\telse if (cmd.equals(\"connect\")) {\n\t\t\t\t\tint length = token.length;\n\t\t\t\t\tif (length == 3) {\n\t\t\t\t\t\t// Get remote server address and port\n\t\t\t\t\t\tString add = token[1];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tint port = Integer.parseInt(token[2]);\n\t\t\t\t\t\t\tString REMOTE_IP = add;\n\t\t\t\t\t\t\tint REMOTE_PORT = port;\n\t\t\t\t\t\t\tapplicationLogic.connect(REMOTE_IP, REMOTE_PORT);\n\t\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t\tSystem.out.println(\"Illigal port format\");\n\t\t\t\t\t\t\tlogger.warn(\"Illigal port format\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Wrong format\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Connect command should be as follow:\\nconnect <address> <port>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// disconnect\n\t\t\t\telse if (cmd.equals(\"disconnect\")) {\n\t\t\t\t\tapplicationLogic.disconnect();\n\t\t\t\t}\n\t\t\t\t// logLevel\n\t\t\t\telse if (cmd.equals(\"logLevel\")) {\n\t\t\t\t\tint length = token.length;\n\t\t\t\t\tif (length == 2) {\n\t\t\t\t\t\t// Get logLevel\n\t\t\t\t\t\tString logLevel = token[1];\n\t\t\t\t\t\tapplicationLogic.logLevel(logLevel);\n\t\t\t\t\t}\n\t\t\t\t\t// Wrong format\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"logLevel command should be as follow:\\nlogLevel <Level> \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// help\n\t\t\t\telse if (cmd.equals(\"help\")) {\n\t\t\t\t\tapplicationLogic.help();\n\t\t\t\t}\n\t\t\t\t// quit\n\t\t\t\telse if (cmd.equals(\"quit\")) {\n\t\t\t\t\tapplicationLogic.quit();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// other inputs\n\t\t\t\telse {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Incorrect command, please try again or input 'help'\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public TCPClient(){\n \t lengthStr=\"\";\n inFromUser = null;\n outToServer = null;\n inFromServer = null;\n clientSocket = null;\n }", "public static void main(String[] args) {\n\t\tSocket socket = null;\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(\"localhost\", 18094);\r\n\t\t\tSystem.out.println(\"------客户端连接上了-------\");\r\n\t\t\t// socket.connect(new InetSocketAddress(), 1000);\r\n\t\t\tOutputStream out = socket.getOutputStream();\r\n\r\n\t\t\tScanner sc = new Scanner(System.in);\r\n\r\n\t\t\tString data = sc.next() + \"\\n\";\r\n\t\t\tSystem.out.println(data);\r\n\t\t\tout.write(data.getBytes(\"UTF-8\"));\r\n\t\t\tout.flush();\r\n\t\t\tsocket.shutdownOutput();\r\n\r\n\t\t\tInputStream is = socket.getInputStream();\r\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\r\n\t\t\tString str = \"\";\r\n\t\t\twhile ((str = reader.readLine()) != null) {\r\n\t\t\t\tSystem.out.println(\"客户端接收服务端的数据:\" + str);\r\n\t\t\t}\r\n\r\n\t\t\treader.close();\r\n\t\t\t// is.close();\r\n\t\t\tif(!socket.isClosed()){\r\n\t\t\t\t//socket.shutdownInput();\r\n\t\t\t\tsocket.close();\r\n\t\t\t\t// out.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] argv) {\n try {\n Client c = new Client(argv);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\tServerSocket serverSocket = null;\r\n\t\tSocket clientSocket = null;\r\n\t\tBufferedReader read = null;\r\n\t\tDataOutputStream write = null;\r\n\t\t\r\n\t\t// Attempt to open a server socket for inbound connections\r\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(SERVERPORT);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Failed to open server socket\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t\t// Wait for a client to connect \r\n\t\tSystem.out.println(\"Waiting ...\");\r\n\t\ttry {\r\n\t\t\t// This will block until someone trys to connect\r\n\t\t\tclientSocket = serverSocket.accept();\r\n\t\t\t\r\n\t\t\t// Get our input and output classes\r\n\t\t\tread = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t\twrite = new DataOutputStream(clientSocket.getOutputStream());\r\n\t\t\tSystem.out.println(\"Client connection from \" + clientSocket.getInetAddress());\r\n\t\t\t\r\n\t\t\t// This will continue until the clients types \"/quit\" or otherwise drops the connection\r\n\r\n Scanner writer = new Scanner(System.in);\r\n\r\n\t\t\twhile (true) {\r\n//\t\t\t\tString line = read.readLine();\r\n//\t\t\t\tSystem.out.println(line);\r\n//\t\t\t\tif (\"/quit\".equalsIgnoreCase(line)) {\r\n//\t\t\t\t\tSystem.out.println(\"Closing connection with \" + clientSocket.getInetAddress());\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\t}\r\n\t\t\t\tThread t = new ClientTaker(clientSocket, read, write);\r\n//\t\t\t\tSystem.out.printf(\"-> \");\r\n//\t\t\t\tline = writer.nextLine();\r\n//\t\t\t\tline += \"\\r\\n\";\r\n//\t\t\t\twrite.writeBytes(line);\r\n\t\t\t\tt.start();\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t\tSystem.out.println(\"Client connection was disconnected\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tread.close();\r\n\t\t\twrite.close();\r\n\t\t\tserverSocket.close();\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) throws IOException {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\");\n /*\n These variables are to print the details of client and server\n */\n InetAddress ipAddress = null;\n String hostname = null;\n String message = null;\n\n String serverHostname = new String(\"127.0.0.1\");\n int portNumberA = 10007;\n int portNumberB = 10008;\n\n /*\n This is to print the details of client and server\n */\n System.out.println(\"[CLIENT][\" + dateFormat.format(new Date()) + \"] - Initializing Simple Client\");\n ipAddress = InetAddress.getLocalHost();\n hostname = InetAddress.getLocalHost().getHostName();\n\n Socket echoSocketA = null;\n PrintWriter outA = null;\n BufferedReader inA = null;\n\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Attemping to connect to host \" + serverHostname + \" on port \" + portNumberA);\n try {\n echoSocketA = new Socket(serverHostname, portNumberA);\n outA = new PrintWriter(echoSocketA.getOutputStream(), true);\n inA = new BufferedReader(new InputStreamReader(\n echoSocketA.getInputStream()));\n } catch (UnknownHostException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Don't know about host: \" + serverHostname + \":\" + portNumberA);\n System.exit(1);\n } catch (IOException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Couldn't get I/O for the connection to: \" + serverHostname + \":\" + portNumberA);\n System.exit(1);\n }\n\n Socket echoSocketB = null;\n PrintWriter outB = null;\n BufferedReader inB = null;\n\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Attemping to connect to host \" + serverHostname + \" on port \" + portNumberB);\n try {\n echoSocketB = new Socket(serverHostname, portNumberB);\n outB = new PrintWriter(echoSocketB.getOutputStream(), true);\n inB = new BufferedReader(new InputStreamReader(\n echoSocketB.getInputStream()));\n } catch (UnknownHostException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Don't know about host: \" + serverHostname + \":\" + portNumberB);\n System.exit(1);\n } catch (IOException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Couldn't get I/O for the connection to: \" + serverHostname + \":\" + portNumberB);\n System.exit(1);\n }\n\n BufferedReader stdIn = new BufferedReader(\n new InputStreamReader(System.in));\n String userInput;\n\n System.out.print(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Enter the message to send to \" + serverHostname + \":\" + portNumberA + \",\" + portNumberB + \": \");\n while ((userInput = stdIn.readLine()) != null) {\n outA.println(userInput);\n outB.println(userInput);\n System.out.println();\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Received \" + inA.readLine() + \" from \" + serverHostname + \":\" + portNumberA + \": \");\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Received \" + inB.readLine() + \" from \" + serverHostname + \":\" + portNumberB + \": \");\n System.out.print(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Enter the message to send to \" + serverHostname + \":\" + portNumberA + \",\" + portNumberB + \": \");\n }\n\n outA.close();\n inA.close();\n outB.close();\n inB.close();\n stdIn.close();\n echoSocketA.close();\n echoSocketB.close();\n }", "public static void main(String[] args) throws IOException {\n\t Socket client = new Socket(\"localhost\",5004);\n\t\n\t\tDataOutputStream dos = new DataOutputStream(client.getOutputStream());\n\t DataInputStream dis = new DataInputStream(client.getInputStream());\n\t\n\t String resp = dis.readUTF();\n\t System.out.println(resp);\n\t\n\t client.close();\n\t}", "public void run() {\n\t\tString choice = null;\n\t\tBufferedReader inFromClient = null;\n\t\tDataOutputStream outToClient = null;\n\t\t\n\t\ttry {\n\t\t\tinFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// Loops until the client's connection is lost\n\t\t\twhile (true) {\t\n\t\t\t\t// Request that was sent from the client\n\t\t\t\tchoice = inFromClient.readLine();\n\t\t\t\tif(choice != null) {\n\t\t\t\t\tSystem.out.println(choice);\n\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t// Calculates the next even fib by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTEVENFIB\":\n\t\t\t\t\t\t\tnew EvenFib(client).run();\n\t\t\t\t\t\t\t// Increments the fib index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.fib++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next even nextLargerRan by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTLARGERRAND\":\n\t\t\t\t\t\t\tnew NextLargeRan(client).run();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next prime by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTPRIME\":\n\t\t\t\t\t\t\tnew NextPrime(client).run();\n\t\t\t\t\t\t\t// Increments the prime index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.prime++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Displays that the client it was connected to\n\t\t\t// has disconnected\n\t\t\tSystem.out.println(\"Client Disconnected\");\n\t\t}\n\n\t}", "static public void main(String[] args) throws IOException {\n port = (int) (Math.random() * ((65535 - 49152) + 1) + 49152);\n server = new ServerSocket(port);\n System.out.println(InetAddress.getLocalHost());\n System.out.println(\"Port: \" + port);\n while (true) {\n try {\n Socket socket = server.accept();\n MqttClient client = new MqttClient(socket);\n clients.add(client);\n client.start();\n } catch (IOException e) {\n System.out.println(\"Something failed.\");\n server.close();\n System.exit(0);\n }\n }\n }", "public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception {\n MyClientSocketBinary client = new MyClientSocketBinary(\n InetAddress.getByName(args[0]),\n Integer.parseInt(args[1]));\n System.out.println(\"\\r\\nConnected to Server: \" + client.socket.getInetAddress());\n //client.sendFile(args[2]);\n }", "public static void main(String[] args) {\n try {\n new Client().run(args);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException\n {\n list = new String[] {\"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\"};\n new ClientConnection(\"10.13.103.53\", list);\n }", "public void run() {\n\t\tPrintWriter out = null;\r\n\t\ttry {\r\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tBufferedReader in = null;\r\n\t\ttry {\r\n\t\t\tin = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tString inputLine, outputLine;\r\n\t\tProtocol kkp = new Protocol();\r\n\r\n\t\toutputLine = kkp.processInput(null);\r\n\t\tout.println(outputLine);\r\n\t\t// Leo continuamente e interactuo\r\n\t\ttry {\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n//\t\t\t\toutputLine = kkp.processInput(inputLine);\r\n\t\t\t\toutputLine = inputLine;\r\n\t\t\t\tout.println(outputLine);\r\n\t\t\t\tif (outputLine.equals(\"Bye.\")){\r\n\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t// Cierro la entrada y salida\r\n\t\t\tout.close();\r\n\t\t\tin.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\tlog.info(\"Clientes activos: \"+ (taskExecutor.getThreadPoolExecutor().getActiveCount()-1));\t\t\t\r\n\t\t}\r\n\t}", "public void run() {\n // variables to store key HTTP(S) request information\n String sReadLine;\n boolean bNewHTTPHeader = true;\n String sHTTPMethod = \"\";\n String sHTTPRequest = \"\";\n boolean bPersistentConnection = true;\n\n // print the client IP:port\n System.out.println(\"client \" + connectedClient.getInetAddress() + \":\"\n + connectedClient.getPort() + \" is connected\");\n System.out.println();\n\n // create BufferedReader to read in from socket & DataOutputStream to send out to socket\n try {\n inFromClient = new BufferedReader(new InputStreamReader(connectedClient.getInputStream()));\n outToClient = new DataOutputStream(connectedClient.getOutputStream());\n\n } catch (IOException e) {\n System.out.println(\"There was an error setting up the buffered reader, \" +\n \"data stream, or reading from the client:\");\n System.out.println(\" \" + e);\n }\n\n // process the HTTP(S) request\n try {\n // break apart the input to read the http method and request\n while ((sReadLine = inFromClient.readLine()) != null) {\n // create a tokenizer to parse the string\n StringTokenizer tokenizer = new StringTokenizer(sReadLine);\n\n // if new HTTP header, then pull out the Method and Request (first line)\n if (bNewHTTPHeader) {\n sHTTPMethod = tokenizer.nextToken().toUpperCase(); // HTTP method: GET, HEAD\n sHTTPRequest = tokenizer.nextToken().toLowerCase(); // HTTP query: file path\n bNewHTTPHeader = false; // next lines are not part of a new HTTP header\n\n // print to console\n System.out.println(\"New HTTP Header:\");\n System.out.println(\" HTTP Method: \" + sHTTPMethod);\n System.out.println(\" HTTP Request: \" + sHTTPRequest);\n\n // not a new HTTP header: check for key params Connection or empty line\n } else if (sReadLine.length() > 0) {\n // get the next token in the input line\n String sParam = tokenizer.nextToken();\n\n // check to update connection status\n if (sParam.equalsIgnoreCase(\"Connection:\")) {\n String sConnectionRequest = tokenizer.nextToken();\n bPersistentConnection = (sConnectionRequest.equalsIgnoreCase(\"keep-alive\"));\n // print param to console\n System.out.println(\" param: \" + sParam + \" \" + sConnectionRequest);\n } else {\n // otherwise just print param to console\n System.out.println(\" param: \" + sParam);\n }\n\n // no more lines to header: header is over\n } else {\n //print to console\n System.out.println(\"End of Header\");\n System.out.println();\n\n // get the status code & response, then send back to client\n int iStatusCode = getStatusCode(sHTTPMethod, sHTTPRequest);\n String sResponse = getResponse(sHTTPMethod, sHTTPRequest, iStatusCode);\n sendResponse(sHTTPMethod, sHTTPRequest, iStatusCode, sResponse, bPersistentConnection);\n\n // next line is part of a new HTTP header\n bNewHTTPHeader = true;\n }\n }\n\n // loop has ended: client input is null (client must want to disconnect)\n this.connectedClient.close();\n System.out.println(\"input from client \" + connectedClient.getInetAddress() +\n + connectedClient.getPort() + \" is null. This socket closed.\");\n } catch (IOException e) {\n System.out.println(\"There was an error reading the HTTP request:\");\n System.out.println(\" \" + e);\n }\n }", "public static void main(String[] args) {\r\n\r\n\t\tboolean server = false;\r\n\r\n\t\tif (server) {\r\n\t\t\t// This is the server setup.\r\n\t\t\tSystem.out.println(\"STARTING SERVER.\");\r\n\t\t\tServer s = new Server(8222);\r\n\t\t\ts.addPacketHandler(new PacketHandler() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleServerPacket(int id, String[] data, ServerConnection connection) {\r\n\t\t\t\t\tSystem.out.println(\"SERVER HANDLE PACKET\");\r\n\t\t\t\t\tSystem.out.println(\"PACKET TYPE: \" + id);\r\n\t\t\t\t\tSystem.out.println(\"PACKET DATA:\");\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor (String s : data) {\r\n\t\t\t\t\t\tSystem.out.println(\"INDEX \" + num + \" - \" + s);\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleClientPacket(int id, String[] data, Client client) {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t\ts.addClientDisconnectHandler(new DisconnectHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\r\n\t\t\t\t\t// this is ran when on the server side when a clients connection is terminated.\r\n\t\t\t\t\tSystem.out.println(\"CLIENT DISCONNECTED FROM SERVER.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\r\n\t\t\t\t\t// this is never ran if added to the Server.\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\t// This is the client setup.\r\n\t\t\tSystem.out.println(\"STARTING CLIENT\");\r\n\t\t\tClient c = new Client(\"localhost\", 8222);\r\n\t\t\tSystem.out.println(\"CLIENT ID: \" + c.getID().toString());\r\n\t\t\tc.addPacketHandler(new PacketHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleClientPacket(int id, String[] data, Client client) {\r\n\t\t\t\t\tSystem.out.println(\"CLIENT HANDLE PACKET\");\r\n\t\t\t\t\tSystem.out.println(\"PACKET TYPE: \" + id);\r\n\t\t\t\t\tSystem.out.println(\"PACKET DATA:\");\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor (String s : data) {\r\n\t\t\t\t\t\tSystem.out.println(\"INDEX \" + num + \" - \" + s);\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleServerPacket(int id, String[] data, ServerConnection connection) {\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tc.addClientDisconnectHandler(new DisconnectHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\r\n\t\t\t\t\t// this is never ran if added to the Client.\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\r\n\t\t\t\t\t// this is ran when the connection to the server is terminated.\r\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n}", "public static void main (String[] args) {\r\n\t\tClient client = new Client(args);\r\n\t\tclient.run();\r\n\t}", "public static void main(String[] args) {\n\r\n\t\t\tnew EeeClient();\r\n\t\t\r\n\r\n\t\t\ttry {\r\n\t\t\t\tSocket socket = new Socket(\"192.168.1.19\", 7777);\r\n\r\n\t\t\t\tInputStream is = socket.getInputStream();\r\n\t\t\t\tDataInputStream dis = new DataInputStream(is);\r\n\r\n\t\t\t\tSystem.out.println(dis.readUTF());\r\n\t\t\t\tSystem.out.println(\"=========\");\r\n\t\t\t\t\r\n\r\n\t\t\t\tdis.close();\r\n\t\t\t\tis.close();\r\n\t\t\t\tsocket.close();\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "public static void main(String [] args)\r\n\t{\n\t\tClientSocketInsert cst1 = new ClientSocketInsert(\"data2.txt\");\r\n\t}", "public static void main(String[] args) {\n\t\ttry{\n\t\t\tConnection co = new Connection(\"localhost\",100);\n\t\t}catch(TransportException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public TcpClient() {\n connector = new NioSocketConnector();\n connector.setHandler(this);\n connector.getFilterChain().addLast(\"codec\", \n new ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName(\"UTF-8\")))); \n ConnectFuture connFuture = connector.connect(new InetSocketAddress(\"localhost\", TcpServer.PORT));\n connFuture.awaitUninterruptibly();\n session = connFuture.getSession();\n }", "public static void main(String[] args) {\n Client client = new Client();\n client.start();\n }", "public static void main(String[] args) throws IOException {\n // Get proper arguments and override defaults\n\n boolean isExit = false;\n Scanner scan = new Scanner( System.in );\n\n String username;\n int port;\n String serverAddress;\n\n switch( args.length ) {\n case 3:\n username = args[0];\n port = Integer.parseInt( args[1] );\n serverAddress = args[2];\n break;\n case 2:\n username = args[0];\n port = Integer.parseInt( args[1] );\n serverAddress = \"localhost\";\n break;\n case 1:\n username = args[0];\n port = 1500;\n serverAddress = \"localhost\";\n break;\n default:\n username = \"Anonymous\";\n port = 1500;\n serverAddress = \"localhost\";\n }\n\n String hostname;\n\n // Create your client and start it\n ChatClient client = new ChatClient( serverAddress, port, username );\n //ChatClient client = new ChatClient(\"localhost\", 1500, \"CS 180 Student\");\n boolean serverStart = client.start();\n\n // Send an empty message to the server\n if ( !serverStart || !client.socket.isConnected() ) {\n System.out.print(\"\");\n isExit = true;\n } else {\n try {\n client.sendMessage(new ChatMessage( \"just joined\", 0, null));\n } catch ( SocketException ignored) {\n isExit = true;\n }\n }\n //client.sOutput.flush();\n //client.sendMessage( new ChatMessage( \"yeet\", 0 ));\n\n while ( !isExit ) {\n String message = scan.nextLine();\n\n if ( message.toLowerCase().contains( \"/logout\" ) ) {\n client.sendMessage(new ChatMessage(message, 1, null));\n try {\n client.sOutput.close();\n client.sInput.close();\n isExit = true;\n System.out.println(\"You have been successfully logged out.\");\n //client.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if ( message.contains( \"/msg\" ) ) {\n String[] msg = message.split(\" \");\n String privateMessage = \"\";\n for ( int i = 2; i < msg.length; i++ ) {\n privateMessage = privateMessage + msg[i] + \" \";\n }\n client.sendMessage( new ChatMessage( privateMessage , 2, msg[1] ));\n } else if ( message.contains( \"/list\" ) ) {\n client.sendMessage( new ChatMessage( null, 3, null ));\n } else {\n client.sendMessage( new ChatMessage( message, 0 , null) );\n }\n }\n\n //BufferedReader userInputReader = new BufferedReader( new InputStreamReader( client.socket.getInputStream() ));\n //String message = userInputReader.readLine();\n //client.sendMessage( new ChatMessage( message, 0));\n\n }", "public static void main(String[] args) throws UnknownHostException, IOException {\n\t\tMainClient mainClient = new MainClient();\n\t\tmainClient.startClient();\n\t\tlog.info(\"Client started on port: \" + JMCConstants.JMC_PORT_A);\n\n\t\ttry {\n\t\t\tmainClient.listen();\n\t\t} catch (Exception e) {\n\t\t\tlog.info(e.getMessage() + \" :: \" + Level.SEVERE);\n\t\t\tmainClient.serverWriter.close();\n\t\t\tmainClient.serverReader.close();\n\t\t}\n\t}", "public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }", "public static void main(String[] args)\n {\n Client client = new Client(args[0], args[1], args[2]);\n }", "@Override\n\tpublic void run(){\n\t\tInetAddress IPAddress = serverTcpSocket.getInetAddress();\n\t\tfor (ClientObj c: clients)\n\t\t\tif (c.getId() == client.getId()){\n\t\t\t\tSystem.out.print(IPAddress + \" Client already connected!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\ttry{\n\t\t\t// Check handshake received for correctness\n\t\t\t//(connect c->s) [herader | \"JUSTIN\\0\" | connection port] (udp)\n\t\t\t//(connect response s->c) [header | client id | port] (udp)\n\t \n\t // open the connection\n\t\t clientSocket = null;\n\t\t Socket clientListener = null;\n\t\t // wait for client connection on tcp port\n\t\t //serverTcpSocket.setSoTimeout(5000);\n\t \tSystem.out.println (\" Waiting for tcp connection.....\");\n\t \tclientSocket = serverTcpSocket.accept();\n\t \tclientListener = serverTcpSocket.accept();\n\t \tclient.setListenerSocket(clientListener);\n\t\t\tIPAddress = clientSocket.getInetAddress();\n\t\t\tint recv_port = clientSocket.getPort();\n\t\t\tSystem.out.println(IPAddress + \": Client connected @ port \" + recv_port);\n\n\t\t // handle tcp connection\n\t\t\tclientSocket.setSoTimeout(Constants.ACK_TIMEOUT);\n\t\t out = new BufferedOutputStream(clientSocket.getOutputStream());\n\t\t\tin = new BufferedInputStream(clientSocket.getInputStream());\n\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\tclient.setPort(clientSocket.getPort());\n\t\t clients.add(client);\n\t\t\t\n\t\t // handle requests\n\t\t\twhile (!shutdown_normally) {\n\t\t\t\t// read just the header, then handle the req based on the info in the header\n\t\t\t\tif ((buf = Utility.readIn(in, Constants.HEADER_LEN)) == null)\n\t\t\t\t\tbreak;\n\t\t\t\tint flag = buf.getInt(0);\n\t\t\t\tint len2 = buf.getInt(4);\n\t\t\t\tint id = buf.getInt(8);\n\t\t\t\t\n\t\t\t\t// check for correctness of header\n\t\t\t\t\n\t\t\t\tif (flag < Constants.OPEN_CONNECTION || \n\t\t\t\t\t\tflag > Constants.NUM_FLAGS || \n\t\t\t\t\t\tid != client.getId() || \n\t\t\t\t\t\tlen2 < 0){\n\t\t\t\t\tout.close(); \n\t\t\t\t\tin.close(); \n\t\t\t\t\tclientSocket.close(); \n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t\t\tclients.remove(client);\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Connection - FAILURE! (malformed header)\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// read payload\n\t\t\t\tif ((buf = Utility.readIn(in, Utility.getPaddedLength(len2))) == null)\n\t\t\t\t\tthrow new IOException(\"read failed.\");\n\t\t\t\t// update address (necessary?)\n\t\t\t\tclients.get(clients.indexOf(client)).setAddress(clientSocket.getInetAddress());\n\t\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\t\tswitch (flag){\n\t\t\t\t\tcase Constants.ACK:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.VIEW_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing view request...\");\n\t\t\t\t\t\tViewFiles(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download request...\");\n\t\t\t\t\t\tDownload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.UPLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing upload request...\");\n\t\t\t\t\t\tUpload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_ACK:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download acknowledgment...\");\n\t\t\t\t\t\tDownloadCompleted(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.CLOSE_CONNECTION:\n\t\t\t\t\t\tshutdown_normally = true;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// close all open sockets\n\t\t out.close(); \n\t\t in.close(); \n\t\t clientSocket.close(); \n\t\t serverTcpSocket.close();\n\t\t} catch (SocketTimeoutException e) {\n\t\t\tSystem.err.println(IPAddress + \": Timeout waiting for response.\");\n\t\t} catch (UnknownHostException e) {\n\t\t\t// IPAdress unknown\n\t\t\tSystem.err.println(\"Don't know about host \" + IPAddress);\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to \" +\n\t\t\t\t\tIPAddress);\n\t\t} catch (RuntimeException e){\n\t\t\t// Malformed Header or payload most likely\n\t\t\tSystem.err.println(IPAddress + \": Connection - FAILURE! (\" + e.getMessage() + \")\");\n\t\t} finally {\n\t\t\t// remove this client from active lists, close all (possibly) open sockets\n\t\t\tSystem.out.println(IPAddress + \": Connection - Closing!\");\n\t\t\tclients.remove(client);\n\t\t\ttry {\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\n\t\t\t\tif (out != null)\n\t\t\t\t\tout.close();\n\t\t\t\tif (in != null)\n\t\t\t\t\tin.close();\n\t\t\t\tif (!clientSocket.isClosed())\n\t\t\t\t\tclientSocket.close();\n\t\t\t\tif (!serverTcpSocket.isClosed())\n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t} catch (IOException e){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n }", "public static void main (String arg[]) throws IOException\n {\n try\n {\n Socket socket = new Socket(\"127.0.0.1\", 3000);\n //System.out.println(\"Connected!\");\n DataInputStream inputStream = new DataInputStream(socket.getInputStream());\n String received = inputStream.readUTF();\n System.out.println(received);\n }\n catch(Exception e) {}\n\n IO ioMenu = new IO();\n ioMenu.runMenu();\n }", "public void run(){\r\n\r\n try{\r\n InputStreamReader isr = new InputStreamReader(inputStream);\r\n BufferedReader br = new BufferedReader(isr);\r\n String line = null;\r\n\r\n while((line = br.readLine()) != null){\r\n System.out.println(\"CLIENT: \" + type + \">\" + line);\r\n }\r\n\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log this error and handle it like a boss\r\n }\r\n }", "public static void main(String args[]) {\n InputStream is;\r\n OutputStream os;\r\n DataInputStream disFromClient;\r\n DataOutputStream dosToClient;\r\n\r\n // Declare socket on which server \t \t // listens and client socket which\r\n // is obtained when a connection is made\r\n Socket clientSocket;\r\n ServerSocket listenSocket;\r\n\r\n // Variables for client message, the \t\t // integer value it sends\r\n // and server port\r\n String clientMessage;\r\n int clientInt;\r\n int serverPort = 7896;\r\n try {\r\n // Create the server socket – then waits and ‘listens’ for \t\t\t // connection requests by calling ‘accept’. When ‘accept’ gets \t\t\t // a connection request from a client it makes the connection \t\t\t // and returns a ‘socket’ for use between server / client\r\n listenSocket = new ServerSocket(serverPort);\r\n System.out.println(\"Waiting for client...\");\r\n clientSocket = listenSocket.accept();\r\n\r\n // Extract the input / output streams from the socket and set\r\n // up associated ‘data’ streams\r\n is = clientSocket.getInputStream();\r\n os = clientSocket.getOutputStream();\r\n disFromClient = new DataInputStream(is);\r\n dosToClient = new DataOutputStream(os);\r\n\r\n // Get the message and int value from the client\r\n clientMessage = disFromClient.readUTF();\r\n clientInt = disFromClient.readInt();\r\n\r\n // Modify message and int value and sent then back to client\r\n dosToClient.writeUTF(\"From Server: \" + clientMessage);\r\n dosToClient.writeInt(clientInt+30);\r\n\r\n clientSocket.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Exception :\" + e.getMessage());\r\n }\r\n }", "public static void main(String[] args) {\n\n\t\ttry {\n\t\t\tServerSocket serverSocket = new ServerSocket(9001);\n\t\t\t \n\t\t\twhile (true) {\n\t\t\t\tSocket socket = serverSocket.accept();\n\t\t\t\t//요청정보 대기 하다가 접근되면 주소값 리턴\n\t\t\t\tObjectInputStream inStream = new ObjectInputStream(socket.getInputStream()) ;\n\t\t\t\t\n\t\t\t\tString msg = inStream.readUTF();\n\t\t\t\tSystem.out.println(\"클라이언트가 전송해 온 메세지\" + msg);\n\t\t\t\t\n\t\t\t\tif (msg.equals(\"exit\")) {\n\t\t\t\t\tbreak; //while 문 빠져나가기 위한 (클라이언트 종료 선언을 하면 빠져나가기 위함) 조치\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tObjectOutputStream outStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\t\t\n\t\t\t\toutStream.writeUTF(\"김우현이 전달한 메세지 : \" + msg + \"잘 받았어요!\");\n\t\t\t\toutStream.flush();\n\t\t\t\t\n\t\t\t\toutStream.close();\n\t\t\t\tinStream.close();\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tserverSocket.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void run() {\n try {\n\n // Decorate the streams so we can send characters\n // and not just bytes.  Ensure output is flushed\n // after every newline.\n BufferedReader in = new BufferedReader(\n new InputStreamReader(socket.getInputStream()));\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n\n // Send a welcome message to the client.\n out.println(\"Hello, you are client #\" + clientNumber + \".\");\n out.println(\"Enter a line with only a period to quit\\n\");\n\n // Get messages from the client, line by line; return them\n // capitalized\n while (true) {\n String input = in.readLine();\n if (input == null || input.equals(\".\")) {\n break;\n }\n out.println(input.toUpperCase());\n }\n } catch (IOException e) {\n log(\"Error handling client# \" + clientNumber + \": \" + e);\n } finally {\n try {\n socket.close();\n } catch (IOException e) {\n log(\"Couldn't close a socket, what's going on?\");\n }\n log(\"Connection with client# \" + clientNumber + \" closed\");\n }\n }", "private TcpClient()\n {\n socket = null;\n writer = null;\n connected = false;\n \n connect(\"localhost\", 7778);\n }", "public static void main(String[] args) throws IOException {\n ServerSocket ss = new ServerSocket(3000);\n\n // infinite loop is running for getting client request\n while (true) {\n Socket serverSocket = null;\n\n try {\n // server socket object receive incoming client requests\n serverSocket = ss.accept();\n count++;\n\n System.out.println(\"A new client\" + clientNum++ + \" is connected : \" + serverSocket);\n\n // getting input and out streams\n DataInputStream dataInputStream = new DataInputStream(serverSocket.getInputStream());\n DataOutputStream dataOutputStream = new DataOutputStream(serverSocket.getOutputStream());\n\n System.out.println(\"Allocating new thread for this client\" + clientNum);\n\n // create a new thread object\n Thread newThread = new ClientHandler(serverSocket, dataInputStream, dataOutputStream, count);\n\n // Invoking the start() method\n newThread.start();\n\n } catch (Exception e) {\n serverSocket.close();\n e.printStackTrace();\n }\n }\n }", "public static void main(String[] args) {\n\t\tThread KeepAliveThread = null, tcpAcceptThread = null; String op = null;\n\t\tTCPClientOp tcpClient = null; ClientTCPAccepter a = null; RMIClientOP userStub = null, u = new RMIClient();\n\t\tif(getConfigFromFile() != -1){\n\t\t\ttry(BufferedReader r = new BufferedReader(new InputStreamReader(System.in))){\n\t\t\t\ttcpClient = new TCPClientOp();\n\t\t\t\ta = new ClientTCPAccepter();\n\t\t\t\ttcpAcceptThread = new Thread(a);\n\t\t\t\ttcpAcceptThread.start();\n\t\t\t\tuserStub = (RMIClientOP) UnicastRemoteObject.exportObject(u, 0);\n\t\t\t\tRegistry reg = LocateRegistry.getRegistry(\"localhost\", RMISERVERPORT);\n\t\t\t\tRMIServerOp followerManager = (RMIServerOp) reg.lookup(RMIServerOp.NAME);\n\t\t\t\tuser = new User(\"\",-1,-1);\n\t\t\t\tKeepAliveClient kaHandler = new KeepAliveClient();\n\t\t\t\tKeepAliveThread = new Thread(kaHandler);\n\t\t\t\tstartLock.lock();\n\t\t\t\twhile(SimpleSocialClient.tcpAccept == null)\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcond.await();\n\t\t\t\t\t} catch (InterruptedException e) {}\n\t\t\t\tstartLock.unlock();\n\t\t\t\tprintFirstOp();\n\t\t\t\tint retVal = 0;\n\t\t\t\tuser.setFollMan(followerManager);\n\t\t\t\twhile(retVal != -2 && retVal != -3 && !Objects.equals((op = r.readLine()).toLowerCase(), \"exit\")){\n\t\t\t\t\tif((retVal = selectFirstOp(op.toLowerCase().trim(), KeepAliveThread, r, tcpClient, userStub)) == -1) System.out.println(\"Wrong command, please try again.\");\n\t\t\t\t\tif(retVal != -3 && retVal != -2) printFirstOp();\n\t\t\t\t}\n\t\t\t\tif(retVal != -2 && !Objects.equals(op, \"exit\")){\n\t\t\t\t\tprintOp(user);\n\t\t\t\t\twhile(!term && retVal != -2 && !Objects.equals((op = r.readLine()).toLowerCase(), \"logout\")){\n\t\t\t\t\t\tif((retVal = selectOp(op.toLowerCase().trim(), KeepAliveThread, r, tcpClient)) == -3) System.out.println(\"Wrong command, please try again.\");\n\t\t\t\t\t\tif(!term && retVal != -2) printOp(user);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttcpClient.logout();\n\t\t\t}catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(\"Some error occurred: \"+e.getMessage());\n\t\t\t}catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Some error occurred: Connection refused.\");\n\t\t\t}catch(NotBoundException e){\n\t\t\t\tSystem.out.println(\"Remote object not found\");\n\t\t\t\treturn;\n\t\t\t}catch(Exception e){\n\t\t\t}finally{\n\t\t\t\tSystem.out.println(\"Closing SimpleSocialClient, please wait.\");\n\t\t\t\ttry{\n\t\t\t\t\tif(tcpAcceptThread != null){\n\t\t\t\t\t\ttcpAcceptThread.interrupt();\n\t\t\t\t\t\ttcpAcceptThread.join();\n\t\t\t\t\t}\n\t\t\t\t\tif(KeepAliveThread != null){\n\t\t\t\t\t\tKeepAliveThread.interrupt();\n\t\t\t\t\t\tKeepAliveThread.join();\n\t\t\t\t\t}\n\t\t\t\t}catch(InterruptedException e){}\n\t\t\t\ttry{\n\t\t\t\t\tUnicastRemoteObject.unexportObject(u, true);\n\t\t\t\t}catch(NoSuchObjectException e){\n\t\t\t\t\tSystem.out.println(\"Cannot unexport remote object\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Leaving SimpleSocial.\");\n\t}", "public static void main(String[] args) {\n System.out.println(\"xxxx\");\n Client.runFactory();\n }", "public static void main(String[] args) throws IOException\n {\n ServerSocket listener = new ServerSocket(PORT);\n\n while (true)\n {\n System.out.println(\"[SERVER] Waiting for connection . . . \");\n //takes in the user client sockets\n Socket client = listener.accept();\n //Announces that the user has connected\n System.out.println(\"[SERVER] Connected to client \" + client.getInetAddress());\n ClientHandler clientThread = new ClientHandler(client, clients);\n\n pool.execute(clientThread);\n }\n }", "public static void main(String[] strings)\r\n {\r\n new Client().start();\r\n }", "public static void main(final String[] args) throws IOException {\n if (args.length != 2) {\n GEN.fatal(\"usage: java -cp <classpath> chat.client.Main\" + \" <machine> <port>\");\n return;\n }\n client = new Client(args[0], Integer.parseInt(args[1]));\n client.startThreadReadMessagesFromNetwork();\n BufferedReader bufin = new BufferedReader(\n new InputStreamReader(System.in, Charset.defaultCharset()));\n while (!Thread.interrupted()) {\n String consoleMsg = null;\n consoleMsg = bufin.readLine();\n if (consoleMsg != null) {\n client.treatConsoleInput(consoleMsg);\n }\n }\n }", "private void start(String[] args){\n\t\tServerSocket listenSocket;\n\n\t\ttry {\n\t\t\tlistenSocket = new ServerSocket(Integer.parseInt(args[0])); //port\n\t\t\tSystem.out.println(\"Server ready...\");\n\t\t\twhile (true) {\n\t\t\t\tSocket clientSocket = listenSocket.accept();\n\t\t\t\tSystem.out.println(\"Connexion from:\" + clientSocket.getInetAddress());\n\t\t\t\tClientThread ct = new ClientThread(this,clientSocket);\n\t\t\t\tct.start();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error in EchoServer:\" + e);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome to the FileTransfer Client! \\n Starting...\");\n\t\t\n\t\tint port; \n\t\t\n\t\tif (args.length < 0 || args.length > 1) {\n\t\t\tSystem.out.println(\"Syntax: FileTranferClient <port>\");\n\t\t\treturn;\n\t\t} else if (args.length == 1) {\n\t\t\tport = Integer.parseInt(args[0]);\n\t\t\tSystem.out.println(\"Using specified client port \" + port + \"...\");\n\t\t} else {\n\t\t\tport = FileTransferProtocol.DEFAULT_CLIENT_PORT;\n\t\t\tSystem.out.println(\"Using default client port \" + port + \"...\");\n\t\t}\n\t\t\t\n\t\tFileTransferClient client = new FileTransferClient(port);\n\t\tSystem.out.println(\"Starting client...\");\n\t}", "public static void main(String[] args) {\n\n // Set up the thread pool\n threadPool = Executors.newFixedThreadPool(THREAD_POOL_SIZE);\n\n // The server socket that waits for clients to connect\n // Opened in a try-catch block\n try (ServerSocket serverSocket = new ServerSocket(SERVER_PORT_NUMBER)) {\n // looping continuously to accept connections from clients\n while (true) {\n // try-catch to catch IOException cause by the accept() method\n try {\n // getting a client connection, creating a runnable and granting it a thread.\n Socket clientConnectionSocket = serverSocket.accept();\n System.out.println(\"received a request\");\n ServeRequestRunnable serveClientRunnable = new ServeRequestRunnable(clientConnectionSocket);\n threadPool.submit(serveClientRunnable);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } finally {\n threadPool.shutdown();\n }\n }", "public static void main(String[] args) {\n\t\tif (args.length < 2) {\n\t\t\tSystem.out.println(\"Please enter arguments in this format <server IP Address> <port number>\\n\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\thostname = args[0];\n\t\t\n\t\ttry {\n\t\t\tport = Integer.parseInt(args[1]);\n\t\t} catch (NumberFormatException e) { // Handle non-integer command line argument (socket's 2nd argument is int)\n\t\t\tSystem.out.println(\"User invalid input, please enter an Integer for port number.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\tmenu();\n\t\t\n\t\t// Run concurrent client threads specified times\n\t\trunThreads(1);\n\t\trunThreads(5);\n\t\trunThreads(10);\n\t\trunThreads(20);\n\t\trunThreads(30);\n\t\trunThreads(40);\n\t\trunThreads(50);\n\t\trunThreads(60);\n\t\trunThreads(70);\n\t\trunThreads(80);\n\t\trunThreads(90);\n\t\trunThreads(100);\n\t}", "public void run() // cette methode doit obligatoirement etre implementuee a cause de l'interface Runnable\n\t{\n\t\tSocket sockCLI;\n\t\ttry\n\t\t{\n\t\t\tServerSocket socketEcoute = new ServerSocket(portCLI);\n\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\tSystem.out.println(\"Attend client CLI sur le port : \"+ portCLI);\n\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\tlogger.log(Level.WARNING,\"Attente client CLI sur le port: \" + portCLI);\n\t\t while (true)\n\t\t {\n\t\t\t\tSocket sc = socketEcoute.accept(); // un client se connecte, un nouveau thread client est lance\n\t\t\t\tlogger.log(Level.WARNING,\"Nouveau client CLI\");\n \t\t\tlogger.log(Level.INFO,\"IP client CLI: \" +sc.getRemoteSocketAddress());\n\t\t\t\tif (nbCLI == 0)\n\t\t\t\t{\n \t\t\t\tlogger.log(Level.INFO,\"timeout actif\");\n\t\t\t\t\tsc.setSoTimeout(180*1000);\n\t\t\t\t\t_clientCLI = new CLI_TCP_Thread(sc, _socketServ);\n\t\t\t\t\t_clientCLI.start();\n\t\t\t\t\tnbCLI = 1;\n\t\t\t\t} else {\n \t\t\t\tlogger.log(Level.WARNING,\"un client est deja connecte - fermeture de la connection\");\n \t\t\t\tPrintWriter output = new PrintWriter(sc.getOutputStream());\n\t\t\t\t\toutput.println(\"Server CLI-> Connection refusée : un client est déjà connecté!\");\n\n \t\t\t\ttry \n\t \t\t\t{\n\t \t\t\t\toutput.close();\n\t\t\t \t\tsc.close();\n\t\t\t\t\t\tSystem.out.println (\"CLI\" + Thread.currentThread() + \" : Logout !!! \");\n\t \t\t\t\t} \n\t \t\t\t\tcatch (IOException e)\n\t \t\t\t{\n\t \t\t\t}\n\t\t\t\t}\n \t\t\t\n\t\t }\n\t\t}\n\t catch (Exception e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tif(args.length != 3) {\r\n\t\t System.out.println(\"Invalid Arguments. Must include a Server Host Name, Server Port Number and Message Rate\");\r\n\t\t return;\r\n\t\t}\r\n\r\n\t\tString serverHostName = \"\";\r\n\t\tint serverPortNumber = 0;\r\n\t\tint messageRate = 0;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tserverHostName = args[0];\r\n\t\t\tserverPortNumber = Integer.parseInt(args[1]);\r\n\t\t\tmessageRate = Integer.parseInt(args[2]);\r\n\t\t} catch (NumberFormatException nfe) {\r\n\t\t\tSystem.out.println(\"Invalid argument(s).\");\r\n\t\t\tnfe.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tClient client = new Client(messageRate);\r\n\r\n\t\ttry {\r\n\t\t\tclient.connectToServer(serverHostName, serverPortNumber);\r\n\t\t\tclient.clientLoop();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n new ClientExternal(args).start();\n }", "public void clientRun() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\ttry {\r\n\t\t\t\t InetAddress address = InetAddress.getLocalHost();\r\n\t\t\t\tSocket clientSocket = new Socket(address, this.localport);\r\n\t\t\t\tPrintStream output = new PrintStream(clientSocket.getOutputStream());\r\n\t\t\t\tString text = Integer.toString(this.compteur);\r\n\t\t\t\tScanner sc = new Scanner(clientSocket.getInputStream());\r\n\t\t\t\tPrintWriter printWrite= new PrintWriter(output);\r\n\t\t\t\tprintWrite.println(text);\r\n\t\t\t\tprintWrite.flush();// Nécessaire pour le bon fonctionnement.\r\n\t\t\t\tif (sc.hasNext()) {\r\n\t\t\t\t\tString texte2 = sc.nextLine();\r\n\t\t\t\t\tthis.result = Integer.parseInt(texte2);\r\n\t\t\t\t}\r\n\t\t\t\tclientSocket.close();\r\n\t\t\t\tsc.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "public static void main(String args[]) {\n\t\tint port;\n\t\tSimpleFTPServer server;\n\t\t\n\t\tif(args.length != 3) {\n\t\t\tSystem.out.println(\"Incorrect parameters. Usage: $ java SFTPClient X A P\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t// Parse arguments, create client\n\t\t\tport = Integer.parseInt(args[0]);\n\t\t\tNetworkManager.init(port);\n\t\t\t\n\t\t\t// Create server\n\t\t\tserver = new SimpleFTPServer();\n\t\t\t\n\t\t\tSystem.out.println(\"Server established.\");\n\t\t\t\n\t\t\t// Listen for input\n\t\t\tnew Thread(new InputManager(server)).start();\n\t\t\t\n\t\t\t// Listen for connections\n\t\t\ttry {\n\t\t\t\tserver.listen();\n\t\t\t}\n\t\t\tcatch(Exception exc) {\n\t\t\t}\n\t\t}\n\t\tcatch(ConnectException cex) {\n\t\t\tSystem.out.println(\"ERROR: Connection failed.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch(SocketException sex) {\n\t\t\tSystem.out.println(\"ERROR: Socket creation failed.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch(IOException ioex) {\n\t\t\tSystem.out.println(\"ERROR: IOException encountered. Please restart and try again\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "private void run() throws IOException {\n\n // Establish connection with a server and create streams for communication\n System.out.println(\"Enter IP Address of the Server: \");\n String serverAddress = getClientInput();\n Socket socket = new Socket(serverAddress, 9001);\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n out = new PrintWriter(socket.getOutputStream(), true);\n\n String clientName;\n\n // Process replies from server\n while (true) {\n String line = in.readLine();\n if (line.startsWith(\"SUBMITNAME\")) {\n System.out.println(\"Enter a client name: \");\n clientName = getClientInput();\n out.println(clientName);\n }\n else if (line.startsWith(\"WELCOME\")) {\n System.out.println(line);\n String tempLine = \"\";\n while (!tempLine.startsWith(\"5\")){\n tempLine = in.readLine();\n System.out.println(tempLine);\n }\n }\n else if (line.startsWith(\"COMMAND\")) {\n System.out.println(\"Enter a command: \");\n out.println(getClientInput());\n }\n else if(line.startsWith(\"SERVER\")) {\n String answer = in.readLine();\n System.out.println(line + \": \" + answer);\n //Close after client calls exit and server closes the client thread.\n if(answer.equals(\"EXIT\")) {\n System.out.println(\"Session closed.\");\n break;\n }\n else {\n System.out.println(\"Enter a command: \");\n out.println(getClientInput());\n }\n }\n }\n }", "public static void main(String[] args){\n \n Chat m = new Chat();\n m.connectChat(new String[]{\"100.1.215.220\",\"8889\"});\n //m.runServer(new String[]{\"192.168.1.164\",\"8889\"});\n }", "public static void main(String[] args) throws IOException {\n\n if (args.length != 1) // Test for correct argument list\n throw new IllegalArgumentException(\"Parameter(s): <Port>\");\n\n int servPort = Integer.parseInt(args[0]);\n\n // Create a selector to multiplex client connections.\n Selector selector = Selector.open();\n\n DatagramChannel channel = DatagramChannel.open();\n channel.configureBlocking(false);\n channel.socket().bind(new InetSocketAddress(servPort));\n channel.register(selector, SelectionKey.OP_READ, new ClientRecord());\n\n while (true) { // Run forever, receiving and echoing datagrams\n // Wait for task or until timeout expires\n if (selector.select(TIMEOUT) == 0) {\n System.out.print(\".\");\n continue;\n }\n\n // Get iterator on set of keys with I/O to process\n Iterator<SelectionKey> keyIter = selector.selectedKeys().iterator();\n while (keyIter.hasNext()) {\n SelectionKey key = keyIter.next(); // Key is bit mask\n\n // Client socket channel has pending data?\n if (key.isReadable())\n handleRead(key);\n\n // Client socket channel is available for writing and\n // key is valid (i.e., channel not closed).\n if (key.isValid() && key.isWritable())\n handleWrite(key);\n\n keyIter.remove();\n }\n }\n }", "public static void main(String[] args) throws IOException {\n\n if (args.length != 1) // Test for correct # of args\n throw new IllegalArgumentException(\"Parameter(s): <Port>\");\n\n int serverPort = Integer.parseInt(args[0]);\n\n // Create a server socket to accept client connection requests\n ServerSocket serverSocket = new ServerSocket(serverPort);\n\n int receiveMessageSize; // Size of received message\n byte[] byteBuffer = new byte[BUFFER_SIZE]; // Receive buffer\n\n while (true) { // Run forever, accepting and servicing connections\n Socket clientSocket = serverSocket.accept(); // Get client connection\n\n System.out.println(\"Handling client at \" +\n clientSocket.getInetAddress().getHostAddress() + \" on port \" +\n clientSocket.getPort());\n\n InputStream in = clientSocket.getInputStream();\n OutputStream out = clientSocket.getOutputStream();\n\n // Receive until client closes connection, indicated b y - i return\n while ((receiveMessageSize = in.read(byteBuffer)) != -1)\n out.write(byteBuffer, 0, receiveMessageSize);\n\n clientSocket.close(); // Close the socket. We are done with this client!\n }\n /* NOT REACHED */\n }", "TCPClient(String synapseHost, String synapsePort) {\n\n try {\n clientSocket = new Socket(synapseHost, Integer.parseInt(synapsePort));\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"TCP socket connection has been established\");\n }\n\n } catch (IOException e) {\n if (getLog().isDebugEnabled()) {\n getLog().error(\"Error in initializing the socket\", e);\n }\n getLog().error(\"Error in initializing the socket - Connection refused\");\n getLog().error(\"Please check unit testing server has been started or not\");\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tString hostName = \"192.168.3.76\";\n\t\tSystem.out.println(\"run\");\n\t\tServerSocket socketServer;\n\t\tSocket socket;\n\t\tInputStream is = null;\n\t\tOutputStream os = null;\n\t\tsocketServer = new ServerSocket(port_number);\n\t\tSystem.out.println(\"sockect created on \" + hostName); \n\t\tsocket = socketServer.accept();\n\t\tSystem.out.println(\"accepted\");\n\t\tis = socket.getInputStream();\n\t\tos = socket.getOutputStream();\n\t\tSystem.out.println(\"start listening\");\n\t\tPrintStream write = new PrintStream(os);\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(is));\n\t\tSystem.out.println(is.read());\n\t\twhile(true) {\n\t\t\tSystem.out.println((char)is.read());\n\t\t}\n\t}", "public void run() {\n\t\tSystem.out.println(\"in run\");\n\t\ttry {\n\t\t\tinputsocket = connectclient.accept();\n\t\t\tflag=1;\n\t\t\tcl = new Client();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry{\n\t\t\t\n\t\t\tDataInputStream inputdata = new DataInputStream(inputsocket.getInputStream());\n\t\t\toutputdata = new DataOutputStream(inputsocket.getOutputStream());\n\t\t\tBufferedReader inFromClient = new BufferedReader(new InputStreamReader(inputsocket.getInputStream()));\n\t\t\t//DataOutputStream  outToClient = new DataOutputStream(inputsocket.getOutputStream());\n\t\t\t//s.list.add(outputdata);\n\t\t\t//System.out.println(s.list.size());\n\t\t\twhile(true){\n\t\t\t\t\n\t\t\t\tString input = inFromClient.readLine();\n\t\t\t\tif(input!=\"\")\n\t\t\t\t\tSystem.out.println(\"input to server : \" + input);\n\t\t\t\tif(flag==1)\n\t\t\t\t\tcl.printMessage(input);\n\t\t\t\toutputdata.writeBytes(input+\"\\n\");\n\t\t\t\t//out.writeBytes\n//\t\t\t\tif(input!=\"\"){\n//\t\t\t\t\tfor(DataOutputStream out : s.list){\n//\t\t\t\t\t\t//System.out.println(\"one\");\n//\t\t\t\t\t\tout.writeBytes(input+\"\\n\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch(Exception E){\n//\t\t\tint i=0;\n//\t\t\tfor(DataOutputStream out : s.list){\n//\t\t\t\tif(out == outputdata){\n//\t\t\t\t\ts.list.remove(i);\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n//\t\t\t\ti++;\n//\t\t\t}\n\t\t\tSystem.out.println(\"Connection close\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tServerSocket so = new ServerSocket(8888);\n\t\t\t\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tSocket sock = so.accept();\n\t\t\t\tInputStream in = sock.getInputStream();\n\t\t\t\tDataInputStream din = new DataInputStream(in);\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\tString str = din.readUTF();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Someone is connecting\");\n\t\t\t\tSystem.out.println(\"The client says: \"+ str);\n\t\t\t\t\n\t\t\t\tOutputStream out = sock.getOutputStream();\n\t\t\t\tDataOutputStream dout = new DataOutputStream(out);\n\t\t\t\t\n\t\t\t\tif(str.equals(\"Hello,Server\"))\n\t\t\t\t{\n\t\t\t\t\tdout.writeUTF(\"Hello,Client\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdout.writeUTF(\"What do you want to say ??\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdin.close();\n\t\t\t\tin.close();\n\t\t\t\tdout.close();\n\t\t\t\tout.close();\n\t\t\t\tso.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n String host = \"\";\n int port = DEFAULT_PORT; // The port number\n\n try {\n host = args[1];\n port = Integer.parseInt(args[2]);\n } catch (Exception ex) {\n }\n\n // Getting the login id\n\n // BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n // String identification = new String();\n\n try {\n String clientID = args[0];\n ClientConsole chat = new ClientConsole(clientID, host, port);\n chat.accept();\n } catch (Exception Ex) {\n System.out.println(\"ERROR - No login ID specified. Connection aborted.\");\n }\n\n /*\n * System.out.\n * println(\"Please specify port number (If blank, default port 5555 will be used)\"\n * ); try { String input = reader.readLine(); port = Integer.parseInt(input); }\n * \n * catch (Exception ex) {\n * System.out.println(\"Invalid port number. Default port of 5555 will be used\");\n * }\n * \n * if (port > 65535 || port < 0) { System.out.println(\"Invalid Port Number\"); }\n * else { System.out.println(\"Connection to server at port \" + port); try { host\n * = args[0]; } catch (ArrayIndexOutOfBoundsException e) { host = \"localhost\"; }\n * \n * ClientConsole chat = new ClientConsole(identification, host, port);\n * chat.accept(); // Wait for console data\n */\n }", "public void run() {\n clientLogger.info(\"Client \" + name + \" started working\");\n EventLoopGroup group = new NioEventLoopGroup();\n try {\n Bootstrap bootstrap = new Bootstrap()\n .group(group)\n .channel(NioSocketChannel.class)\n .handler(new ClientInitializer());\n Channel channel = bootstrap.connect(host, port).sync().channel();\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n while (true) {\n channel.write(in.readLine() + \"\\r\\n\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n group.shutdownGracefully();\n }\n clientLogger.info(\"Client \" + name + \" finished working\");\n }", "public static void main(String[] args) throws IOException {\n\t\tServerSocket ss= new ServerSocket(5000); \r\n\t\tSocket s = null; \r\n\t\twhile(true) {\r\n\t\t\ts = ss.accept();\r\n\t\t\t\r\n\t\t\tDataOutputStream out = new DataOutputStream(s.getOutputStream());\r\n\t\t\tDataInputStream in = new DataInputStream(s.getInputStream());\r\n\t\t\t\r\n\t\t\tserverHelper c = new serverHelper(s,\"client\"+clientCount,in,out);\r\n\t\t\t\r\n\t\t\tThread t = new Thread(c);\r\n\t\t\t//System.out.println(\"client\"+clientCount+\"is online\");\r\n\t\t\tclients.add(c);\r\n\t\t\tt.start();\r\n\t\t\tclientCount++;\r\n\t\t}\r\n\t}", "public static void main(String [] args) throws IOException //added this line\n {\n if (args.length != ARG_CNT) {\n System.out.print(\"Usage: cmd ServerAddress ServerPort\\n\");\n return;\n }\n\n String hostName = args[0];\n String subHostname;\n int portNumber = Integer.parseInt(args[1]);\n int subPortNumber;\n\n try {\n Socket kkSocket = new Socket(hostName, portNumber);\n kkSocket.setSoTimeout(TIMEOUT); //sets Socket Timeout for FFFC in milliseconds\n\n // from client to server\n PrintWriter out1 = new PrintWriter(kkSocket.getOutputStream(), true);\n BufferedWriter out=new BufferedWriter(out1);\n //from server to client\n BufferedReader in = new BufferedReader(new InputStreamReader(kkSocket.getInputStream()));\n //from user\n BufferedReader stdIn =new BufferedReader(new InputStreamReader(System.in));\n\n String fromUserString;\n fromServer = in.readLine();\n while (fromServer != null) {\n String[] fromUser = new String[2];\n System.out.print(\"csftp> \");\n String command = \"\";\n\n try {\n fromUserString = stdIn.readLine();\n fromUser = fromUserString.split(\" \");\n command = fromUser[0].toLowerCase().trim();\n\n }catch(IOException e){\n printErrorMsg(\"FFFE\", null, null);\n System.exit(1);\n }\n\n switch (command) {\n case \"user\":\n if (fromUser.length!=2){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"USER \" + fromUser[1]+\"\\n\");\n out.flush();\n System.out.println(\"--> USER \" + fromUser[1]);\n readMultiLine(in);\n break;\n case \"pw\":\n if (fromUser.length!=2){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"PASS \" + fromUser[1]+\"\\n\");\n out.flush();\n System.out.println(\"--> PASS \" + fromUser[1]); //print out what we send\n readMultiLine(in);\n break;\n case \"cd\":\n if (fromUser.length!=2){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"CWD \"+fromUser[1]+\"\\n\");\n out.flush();\n System.out.println(\"--> CWD \" + fromUser[1]);\n readMultiLine(in);\n break;\n case \"quit\":\n if (fromUser.length!=1){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"QUIT\\n\");\n out.flush();\n System.out.println(\"--> QUIT\");\n System.out.println(in.readLine());\n System.exit(1);\n break;\n case \"features\":\n if (fromUser.length!=1){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"FEAT\\n\");\n out.flush();\n System.out.println(\"--> FEAT\");\n readMultiLine(in);\n break;\n case \"dir\":\n if (fromUser.length!=1){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"PASV\"+\"\\n\");\n out.flush();\n System.out.println(\"--> PASV\");\n String response = in.readLine();\n Pattern pattern = Pattern.compile(\"\\\\((.*)\\\\)\");\n Matcher matcher = pattern.matcher(response);\n\n try {\n if (matcher.find()) {\n String[] IpAdd = matcher.group(1).split(\",\");\n subHostname = IpAdd[0] + \".\" + IpAdd[1] + \".\" + IpAdd[2] + \".\" + IpAdd[3];\n subPortNumber = Integer.parseInt(IpAdd[4]) * 256 + Integer.parseInt(IpAdd[5]);\n\n try {\n Socket subSocket = new Socket(subHostname, subPortNumber);\n BufferedReader inSub = new BufferedReader(\n new InputStreamReader(subSocket.getInputStream()));\n subSocket.setSoTimeout(IO_TIMEOUT);\n out.write(\"LIST\\n\");\n out.flush();\n System.out.println(\"--> LIST\");\n\n String currentLine;\n while (true) {\n if ((currentLine = inSub.readLine()) != null) {\n System.out.println(\"<-- \" + currentLine);\n } else {\n break;\n }\n }\n inSub.close();\n subSocket.close();\n } catch (SocketTimeoutException e) {\n printErrorMsg(\"3A2\", subHostname, Integer.toString(subPortNumber));\n continue;\n }\n }\n } catch(IOException e){\n printErrorMsg(\"3A7\", \"\", \"\");\n continue;\n }\n readMultiLine(in);\n readMultiLine(in);\n break;\n case \"get\":\n if (fromUser.length!=2){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"PASV\"+\"\\n\");\n out.flush();\n System.out.println(\"--> PASV\");\n response = in.readLine();\n\n out.write(\"TYPE I\"+\"\\n\");\n out.flush();\n readMultiLine(in);\n\n pattern = Pattern.compile(\"\\\\((.*)\\\\)\");\n matcher = pattern.matcher(response);\n try {\n if (matcher.find()) {\n\n System.out.println(\"<--\" + matcher.group(1));\n String[] IpAdd = matcher.group(1).split(\",\");\n subHostname = IpAdd[0] + \".\" + IpAdd[1] + \".\" + IpAdd[2] + \".\" + IpAdd[3];\n subPortNumber = Integer.parseInt(IpAdd[4]) * 256 + Integer.parseInt(IpAdd[5]);\n try {\n Socket subSocket = new Socket(subHostname, subPortNumber);\n subSocket.setSoTimeout(IO_TIMEOUT); //sets socket timeout for 0x3A2\n FileOutputStream tempFile = new FileOutputStream(fromUser[1]);\n\n out.write(\"RETR \" + fromUser[1] + \"\\n\");\n out.flush();\n System.out.println(\"--> RETR\");\n String reply = in.readLine();\n\n //Data transfer connection fail to open\n if (reply.startsWith(\"425\")) {\n printErrorMsg(\"3A2\", subHostname, Integer.toString(subPortNumber));\n break;\n }\n\n //fail to access file\n if (reply.startsWith(\"550\")) {\n printErrorMsg(\"38E\", fromUser[1], \"\");\n break;\n }\n\n //save remote file to local machine\n int line;\n byte[] buf=new byte[4096];\n InputStream inSub = subSocket.getInputStream();\n while ((line = inSub.read(buf)) > 0) {\n tempFile.write(buf,0 ,line);\n }\n\n tempFile.close();\n tempFile.flush();\n inSub.close();\n subSocket.close();\n readMultiLine(in);\n\n } catch(SocketTimeoutException e) {\n printErrorMsg(\"3A2\", subHostname, Integer.toString(subPortNumber));\n continue;\n }\n }\n } catch(IOException e){\n printErrorMsg(\"3A7\", \"\", \"\");\n continue;\n }\n break;\n //if not one of these cases, invalid command error\n default: printErrorMsg(\"001\",\"\",\"\");\n }\n\n }\n } catch (UnknownHostException e) {\n printErrorMsg(\"FFFC\", hostName, Integer.toString(portNumber));\n System.exit(1);\n } catch (SocketTimeoutException e) {\n printErrorMsg(\"FFFC\", hostName, Integer.toString(portNumber));\n System.exit(1);\n } catch (IOException e) {\n printErrorMsg(\"FFFD\", null, null);\n System.exit(1);\n } catch (Exception e) {\n printErrorMsg(\"FFFF\", null, e.getMessage());\n System.exit(1);\n }\n }", "public static void main(String[] args) {\n\t\tClient1 win = new Client1();\n\t\twin.performCallback(3);\n\n\t}", "public static void main(String[] args) {\n\t\tClientState clientState = new ClientState();\n\t\t\n\t //Check correct usage.\n\t\tif(args.length != 3) {\n\t \tConstants.errorAndEnd(\"Invalid usage of args, Usage : java Client nickname hostname port\");\n\t }\t \n\t\t\n\t\tSocket socket = null;\n\t\t//Attempt to open a socket to the server at hostname:port\n\t\ttry {\n\t\t socket = new Socket(args[1], Integer.parseInt(args[2]));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tConstants.errorAndEnd(\"Something went wrong opening a socket. Was your port an integer?\");\n\t\t}\n\t\t\n\t\tObjectInputStream fromServer = null;\n\t\tObjectOutputStream toServer = null;\n\t\t//Attempt to open an input and output stream to/from the server.\n\t\t/*\n\t\t * ALWAYS OPEN OUTPUT BEFORE INPUT BECAUSE IT WON'T WORK OTHERWISE,\n\t\t * BECAUSE JAVA HAS REALLY WEIRD QUIRKS.\n\t\t */\n\t\ttry {\n\t\t\tSystem.out.println(\"Started opening I/O Streams.\");\n\t\t\n\t\t\ttoServer = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tSystem.out.println(\"Opened ObjectOutputStream\");\n\t\t\t\n\t\t\tfromServer = new ObjectInputStream(socket.getInputStream());\n\t\t\tSystem.out.println(\"Opened ObjectInputStream\");\n\t\t\t\n\t\t\ttoServer.flush();\n\t\t}\n\t\tcatch (Exception e){\n\t\t Constants.errorAndEnd(\"Something went wrong opening and flushing the I/O Stream.\");\n\t\t}\n\t\t\n\t\t//Attempt to send our nickname to the server. The server will respond to us, telling us what our nickname is.\n\t\ttry {\n\t\t\ttoServer.writeObject(args[0]);\n\t\t\tSystem.out.println(\"Wrote nickname to Output Stream.\");\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tConstants.errorAndEnd(\"Something went wrong sending the nickname to the server.\");\n\t\t}\n\t\t\n\t\t//Try to read back and store my final username.\n\t\tString finalClientName = null;\n\t\ttry {\n\t finalClientName = (String) fromServer.readObject();\n\t System.out.println(\"My final username is : \" + finalClientName );\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tConstants.errorAndEnd(\"Error receiving final username from Server.\");\n\t\t}\n\t\t\n\t\t//Create and start an OutToServer thread that handles all user input and data flow to the Server.\n\t\t\n\t\tOutToServer toServerThread = new OutToServer((clientState), toServer, finalClientName);\n\t\t\n\t\ttoServerThread.start();\n\n\t\t/*\n\t\t * Handles all input from the server.\n\t\t */\n\t\twhile(true) {\n\t\t\tMessage message = null;\n\t\t\t//System.out.println(\"Waiting for Message from server.\");\n\t\t\t//Attempt to grab a message from the input stream.\n\t\t\ttry {\n\t\t\t\tmessage = (Message) fromServer.readObject();\n\t\t\t\t//System.out.println(\"Got a Message from the server.\"); \n\t\t\t} \n\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\tConstants.errorAndEnd(\"Error reading message from server (ClassNotFound Exception).\");\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\tConstants.errorAndEnd(\"Error reading message from server (I/O Exception).\");\n\t\t\t}\n\t\t\t\n\t\t\tMessageType command = message.getMessageCommand();\n\t\t\tswitch(command) {\n\t\t\tcase PLAYERDISCONNECT :\n\t\t\t\t//System.out.println(\"Received a PLAYERDISCONNECT Message.\");\n\t\t\t\ttry {\n\t\t\t\t\t//System.out.println(\"Message data : \" + message.getData());\n\t\t\t\t\tclientState.removeFromList((String) message.getData());\n\t\t\t\t\t//System.out.println(\"Removed player: \" + (String) message.getData() + \" from client list.\");\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tConstants.errorAndEnd(\"Error when processing PLAYERDISCONNECT Message. Data was not of type : String.\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PLAYERJOINED :\n\t\t\t\t//System.out.println(\"Received a PLAYERJOINED Message.\");\n\t\t\t\ttry {\n\t\t\t\t\tclientState.addToList((String) message.getData());\n\t\t\t\t\t//System.out.println(\"Added player: \" + (String) message.getData() + \" to client list.\");\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tConstants.errorAndEnd(\"Error when processing PLAYERJOINED Message. Data was not of type : String.\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CLIENTLIST :\n\t\t\t\t//System.out.println(\"Received a CLIENTLIST Message.\");\n\t\t\t\ttry {\n\t\t\t\t\t//Make the list equal to the new list of connected clients.\n\t\t clientState.setClientList((ArrayList<String>) message.getData());\n\t\t //System.out.println(\"Set Client List to : \" + (ArrayList<String>) message.getData());\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tConstants.errorAndEnd(\"Error when processing CLIENTLIST Message. Data was not of type : ArrayList<String>.\");\n\t\t\t\t}\n\t\t\t break;\n\t\t\tcase PLAYREQUEST :\n\t\t\t\t//If the client has already been invited, notify the sender.\n\t\t\t\tif(clientState.isInvited()) {\n\t\t\t\t\t//Notify the client that sent the request.\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t clientState.setInvited(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args)throws IOException \r\n\t{\n\t\tInetAddress addr = InetAddress.getByName(null);\r\n\t\t\r\n\t\t// Alternatively, you can use the address or name:\r\n\t\t// InetAddress addr = InetAddress.getByName(\"127.0.0.1\");\r\n\t\t// InetAddress addr = InetAddress.getByName(\"localhost\");\r\n\t\tSystem.out.println(\"addr = \" + addr);\r\n\t\tSocket socket = new Socket(addr, 10000);\r\n\t\t\r\n\t\t// Guard everything in a try-finally to make\r\n\t\t// sure that the socket is closed:\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSystem.out.println(\"socket = \" + socket);\r\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\tBufferedReader in = \r\n\t\t\t\tnew BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t\r\n\t\t\t// Output is automatically flushed by PrintWriter:\r\n\t\t\tPrintWriter out =\r\n\t\t\t\tnew PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())),true);\r\n\r\n\t\t\twhile(true){\r\n\t\t\tSystem.out.print(\"Enter Some String: \");\r\n\t\t\t//int num=Integer.parseInt(br.readLine()); // Reading from KeyBoard\r\n\t\t\tString str=br.readLine();\r\n\t\t\tout.println(str);}\r\n\t\t\t//int addnum = Integer.parseInt(in.readLine()); // Reading from Server\r\n\t\t//\tSystem.out.println(\"Result from Server: \"+addnum);\r\n\t\t}catch(Exception e){e.printStackTrace();}\r\n\t\r\n\t\r\n\t}", "public static void main(String[] args) {\n\r\n\t\ttry {\r\n\t\t\t/////String host = InetAddress.getLocalHost().getHostName();\r\n \t\tSocket client = new Socket(\"131.159.52.1\", 50000);\r\n\t\t\t\t\r\n\t\t\tPrintWriter writer = new PrintWriter(client.getOutputStream());\r\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream()));\r\n\r\n\t\t\tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\t\r\n\t\t\tSystem.out.println(reader.readLine()); //read welcome message\r\n\t\t\t\r\n\t\t\tString message;\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\t////System.out.print(\"Enter message to echo or Exit to end : \");\r\n\t\t\t\tmessage = stdin.readLine();\r\n\t\t\t\t\r\n\t\t\t\tif (message == null || message.equalsIgnoreCase(\"exit\"))\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\twriter.println(message);\r\n\t\t\t\twriter.flush();\r\n\t\t\t\tSystem.out.println(reader.readLine());\r\n\t\t\t}\r\n\t\t\tclient.close();\r\n\t\t\t\t\t\r\n\t\t}catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Exception: \"+ex);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tif (args[1] != null)\n\t\t{\n\t\t\thost = args[1];\n\t\t} else {\n\t\t\thost = \"127.0.0.1\";\n\t\t}\n\t\ttry {\n\t\t\tcreateUI();\n\t\t\tclientSocket = new Socket(host, port);\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tclientSocket.getInputStream()));\n\t\t\tmessageHandler(out, in);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t}", "public static void main (String[] args) throws Exception{\n try {\n parse_args(args);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return;\n }\n\n if( is_server ){\n run_server();\n } else {\n run_client();\n }\n\n }", "public static void main(String[] args) {\n\t\tChatClientCommandLine arguments = CommandLine.populateCommand(new ChatClientCommandLine(), args);\n\t\n\t\tif(arguments.usageHelpRequested)\t{\n\t\t\tCommandLine.usage(arguments, System.out);\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tChatClient chatClient = new ChatClient();\n\t\tif(arguments.clientId != null)\t{\n\t\t\tchatClient.assignClientId(arguments.clientId);\n\t\t}\n\n\t\tPacket packet = new Packet(\"eded\", Packet.PacketType.DEV);\n\t\tchatClient.sendPacket(packet);\n\t\t//chatClient.closeConnection();\n\t}", "public Client(String[] args) {\r\n\t\t// Default states\r\n\t\tverbose = true;\r\n\r\n\t\t// Change states based on args\r\n\t\t/*this.args = args;\r\n\t\tif (this.args.length >= 1) {\r\n\t\t\tfor (String arg: args) {\r\n\t\t\t\tswitch(arg) {\r\n\t\t\t\tcase \"-v\":\r\n\t\t\t\t\tverbose = true;\r\n\t\t\t\t\tSystem.out.println(\"Verbose mode is on.\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"-t\": \r\n\t\t\t\t\tsendPort = ERRSIM_PORT; \r\n\t\t\t\t\tSystem.out.println(\"The client is being routed through the error simulator.\"); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\"Invalid command line arugment received. Exiting client...\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}*/\r\n\t\t// Create data socket for communicating with server\r\n\t\ttry {\r\n\t\t\tsendReceiveSocket = new DatagramSocket();\r\n\t\t\t\r\n\t\t\t//Maximum time to wait for response before timeout and re-send packet: 2 seconds (2000)\r\n\t\t\tsendReceiveSocket.setSoTimeout(2000);\t\t\r\n\t\t} catch(Exception se) {\r\n\t\t\tse.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tint port = 3030;\n\t\tServerSocket serverSocket = null;\n\n\t\t// Establish the listen socket\n\t\ttry {\n\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t\tSystem.out.println(\"TCP server created on port =\" + port);\n\n\n\t\t// Process HTTP service requests in an infinite loop.\n\t\twhile (true) {\n\t\t\tSocket clientSocket = null;\n\n\t\t\tclientSocket = serverSocket.accept();\n\n\t\t\t// Construct an object process the HTTP request message\n\t\t\tHttpRequest request = new HttpRequest(clientSocket);\n\t\t\t// create a new thread to process the request\n\t\t\tThread thread = new Thread(request);\n\t\t\t// Start the thread\n\t\t\tthread.start();\n\n\t\t}\n\t\t}\n\t\t catch (IOException ex) {\n\t\t\t\tSystem.out.println(\"Error : The server with port=\" + port + \"cannot be created\");\n\t\t\t}\n\t\t// Closing the socket\n\t\tfinally {\n\t\t try { \n\t\t \tserverSocket.close();\n\t\t } catch(Exception e) {\n\t\t // If you really want to know why you can't close the ServerSocket, like whether it's null or not\n\t\t }\n\t\t}\n\n\t}", "public static void main(String[] args){\n\t\ttry{\n\t\t\tServerSocket ss = new ServerSocket(6665);\n\t\t\tSocket s = ss.accept();\n\t\t\t//in = s.getInputStream();\n\t\t\t//out = s.getOutputStream();\n\t\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tBufferedReader ind = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t\t\tPrintWriter outd = new PrintWriter(s.getOutputStream());\n\t\t\tString db = null;\n\t\t\t//System.out.println(\"Client:\" + ind.readLine());\n\t\t\tdb = ind.readLine();\n\t\t\twhile(!db.equals(\"bye\")){\n\t\t\t\tSystem.out.println(\"Client:\" + db);\n\t\t\t\tdb = ind.readLine();\n\t\t\t}\n\n\n\t\t\t/*\n\t\t\tdb = keyboard.readLine();\n\t\t\twhile(!db.equals(\"bye\")){\n\t\t\t\toutd.println(db);\n\t\t\t\tSystem.out.println(\"Me:\"+db);\n\t\t\t\tSystem.out.println(\"Client:\"+ind.readLine());\n\t\t\t\tdb = keyboard.readLine();\n\t\t\t}\n\t\t\t*/\n\t\t\tind.close();\n\t\t\toutd.close();\n\t\t\ts.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n (new AbaloneClient()).start();\n }", "@Ignore\n\t@Test\n\tpublic void test() throws IOException {\n\n\t\tClient.main(new String[] {\"localhost\", \"6700\"});\n\n\t\tSystem.out.println(\"free\");\n\t\tSystem.out.println(\"in\");\n\t\tSystem.out.println(\"in\");\n\t\tSystem.out.println(\"free\");\n\t\tSystem.out.println(\"out\");\n\t\tSystem.out.println(\"free\");\n\n\t}", "public static void main(String[] args) {\n try{\n if((args.length%2) != 0){\n expectedUsage();\n }\n\n for(int i = 0; i < args.length; i+=2){\n try{\n switch(args[i]){\n case \"--PORT\":\n SERVER_PORT = Integer.parseInt(args[i+1]);\n if(SERVER_PORT <= 0){\n System.out.println(\"Invalid Port Number.\");\n throw new NumberFormatException();\n }\n break;\n case \"--PLAYERS\":\n PLAYERS_PER_TABLE = Integer.parseInt(args[i+1]);\n if(PLAYERS_PER_TABLE <= 0){\n System.out.println(\"Invalid Number of Players. Must be greater than 0.\");\n throw new NumberFormatException();\n }\n break;\n case \"--MONEY\":\n STARTING_MONEY = Integer.parseInt(args[i+1]);\n if(STARTING_MONEY <= 0){\n System.out.println(\"Invalid Amount of Starting Money. Must be greater than 0.\");\n throw new NumberFormatException();\n }\n break;\n case \"--BET\":\n MINIMUM_BET = Integer.parseInt(args[i+1]);\n if(MINIMUM_BET <= 0){\n System.out.println(\"Invalid Minimum Bet. Must be greater than 0.\");\n throw new NumberFormatException();\n }\n break;\n case \"--DECKS\":\n DECKS_USED = Integer.parseInt(args[i+1]);\n if(DECKS_USED <= 0){\n System.out.println(\"Invalid Number of Decks. Must be greater than 0.\");\n throw new NumberFormatException();\n }\n break;\n default:\n expectedUsage();\n }\n }catch(NumberFormatException e){\n expectedUsage();\n }\n }\n if(STARTING_MONEY < MINIMUM_BET){\n System.out.println(\"Starting Money must be greater than/equal to the Minimum Bet\");\n expectedUsage();\n }\n if(CARDS_BEFORE_SHUFFLE > 0.2*(52 * DECKS_USED)){\n CARDS_BEFORE_SHUFFLE = (int) Math.floor(0.2 * 52 * DECKS_USED);\n }\n\n System.out.println(\"Server Starting...\");\n\n ServerSocket serverSocket = new ServerSocket(SERVER_PORT); //Initialise Server on specified Port\n SERVER_ADDRESS = InetAddress.getLocalHost().getHostAddress(); //Get the IP Address of Server\n\n System.out.println(String.format(\"Server Running:\\n\\tPort: %d\\n\\tIP Address: %s\", SERVER_PORT, SERVER_ADDRESS));\n System.out.println(String.format(\"\\tNumber of Players: %d\\n\\tDecks Used: %d\\n\\tCards Before Shuffle: %d\" +\n \"\\n\\tStarting Money: %.2f\\n\\tMinimum Bet: %.2f\",\n PLAYERS_PER_TABLE, DECKS_USED, CARDS_BEFORE_SHUFFLE, STARTING_MONEY, MINIMUM_BET));\n\n int connectedClients = 0; //Number of Currently connected players\n Table playingTable = new Table(MINIMUM_BET, DECKS_USED, CARDS_BEFORE_SHUFFLE);\n System.out.println(\"Waiting for Clients to Connect...\");\n\n do{\n Socket playerSocket = serverSocket.accept(); //Connect new client\n connectedClients++;\n\n int clientPort = playerSocket.getPort(); //Extract Server Port and IP Address\n String clientAddress = playerSocket.getInetAddress().getHostAddress();\n\n Player player = new Player(playerSocket, playingTable, STARTING_MONEY);\n playingTable.addPlayer(player);\n new Thread(player).start();\n System.out.println(String.format(\"Client %d Connected:\\n\\tPort: %s\\n\\tIP Address: %s\", connectedClients, clientPort, clientAddress));\n\n }while(connectedClients < PLAYERS_PER_TABLE);\n\n System.out.println(\"All Clients Connected\");\n playingTable.run();\n System.out.println(\"Playing Table Finished!\");\n }catch (IOException e){\n e.printStackTrace();\n System.exit(-1);\n }\n\n\n }", "public static void main(String[] args) throws Exception {\n\n int port = 12345;\n ServerSocket server = new ServerSocket(port);\n System.out.println(\"서버 준비 완료\");\n Socket socket = server.accept();\n InputStreamReader isr = new InputStreamReader(socket.getInputStream());\n BufferedReader in1 = new BufferedReader(isr);\n \n String str = in1.readLine();\n System.out.println(\"클라이언트로부터 받은 메세지: \" + str);\n \n in1.close();\n socket.close();\n \n \n }", "public static void main(String[] args){\n\t\tClientGui gui = new ClientGui();\n\t\tString address = args[0];\n\t\tgui.address=address;\n\t\tint port = Integer.parseInt(args[1]);\n\t\tgui.port = port;\n\t\t//unable to connect?\n\t\treturn ; \n\n\t}", "public static void main(String[] args){\n\t\tif (args.length != 1) {\n\t\t\tSystem.out.println(\"Usage: java EchoServer <EchoServer port>\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tEchoServerMultiThreaded echoServerMultiThreaded = new EchoServerMultiThreaded();\n\t\techoServerMultiThreaded.start(args);\n\t}", "public static void main(String argv[]) throws Exception{\n Client theClient = new Client();\n \n //get server RTSP port and IP address from the command line\n //------------------\n int RTSP_server_port = Integer.parseInt(argv[1]);\n String ServerHost = argv[0];\n InetAddress ServerIPAddr = InetAddress.getByName(ServerHost);\n \n //get video filename to request:\n VideoFileName = argv[2];\n \n //Establish a TCP connection with the server to exchange RTSP messages\n //------------------\n theClient.RTSPsocket = new Socket(ServerIPAddr, RTSP_server_port);\n \n //Set input and output stream filters:\n RTSPBufferedReader = new BufferedReader(new InputStreamReader(theClient.RTSPsocket.getInputStream()) );\n RTSPBufferedWriter = new BufferedWriter(new OutputStreamWriter(theClient.RTSPsocket.getOutputStream()) );\n \n //init RTSP state:\n state = INIT;\n }", "@Override\n\tpublic void run() {\n\n\t\tServerSocket sSocket;\n\t\ttry {\n\t\t\tsSocket = new ServerSocket(15001);\n\t\t\tSystem.out.println(\"server listening at \" + sSocket.getLocalPort());\n\t\t\twhile (true) {\n\t\t\t\t// this is an unique socket for each client\n\t\t\t\tSocket socket = sSocket.accept();\n\t\t\t\tSystem.out.println(\"Client with port number: \" + socket.getPort() + \" is connected\");\n\t\t\t\t// start a new thread for handling requests from the client\n\t\t\t\tClientRequestHandler requestHandler = new ClientRequestHandler(sketcher, socket, scene, playerMap);\n\t\t\t\tnew Thread(requestHandler).start();\n\t\t\t\t// start a new thread for handling responses for the client\n\t\t\t\tClientResponseHandler responseHandler = new ClientResponseHandler(socket, scene, playerMap);\n\t\t\t\tnew Thread(responseHandler).start();\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t}\n\t}", "public static void main(String[] args) throws UnknownHostException, IOException\r\n {\n Socket clientSocket = new Socket(\"localhost\", 12345);\r\n\r\n // get writer for connection\r\n PrintWriter output = new PrintWriter(clientSocket.getOutputStream());\r\n\r\n // write message\r\n output.write(\"Hello world!\\n\");\r\n output.flush();\r\n \r\n // write message\r\n output.write(\"Hello again, world!\\n\");\r\n output.flush();\r\n\r\n // tell server to quit\r\n output.write(\"Quit\\n\");\r\n output.flush();\r\n\r\n // close connection\r\n clientSocket.close();\r\n }", "public static void main(String[] args) throws Exception{\n\t\t\n\t\tString ip=\"localhost\";\n\t\tint port = 9999;\n\t\t\n\t\tSocket s = new Socket(ip,port);\n\t\t\n\t\tString str = \"C: Hello\";\n\t\tOutputStreamWriter os = new OutputStreamWriter(s.getOutputStream());\n\t\tPrintWriter out = new PrintWriter(os);\n\t\tout.println(str);\n\t\tos.flush();\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t\tString str1 = br.readLine(); \n\t\tSystem.out.println(\"C: Data from Server \"+ str1);\n\t\t\n\t}", "public static void main(String [] args){\n\t\t\n\t\tif(args.length != 2){\n\t\t\tSystem.out.println(\"You need a hostname and a port number to connect your client to a server\");\n\t\t}\n\t\telse{\n\t\t\tString serverName = args[0];\n\t\t\tint port = Integer.parseInt(args[1]);\n\t\t\tChatClient client = new ChatClient(serverName, port);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tfinal String HOST= \"127.0.0.1\";\n\t\tfinal int PORTA = 5000;\n\t\t\n\t\tDataInputStream in;\n\t\tDataOutputStream out;\n\t\t\n\n\t\ttry {\n\t\t\tSocket soket = new Socket(HOST, PORTA);\n\t\t\tin = new DataInputStream(soket.getInputStream());\n\t\t\tout = new DataOutputStream(soket.getOutputStream());\n\t\t\t\n\t\t\tout.writeUTF(\"Oi sou o cliente\"); //mando para servidor\n\t\t\tString mensj = in.readUTF(); //pego msg de servidor\n\t\t\tSystem.out.println(\"pego msg serv - \"+mensj);\n\t\t\t\n\t\t\tsoket.close();\n\t\t\tSystem.out.println(\"Termino conex cliente\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t\n\t\t}\n\t\t\n\n\t}", "protected void mainTask() {\n\ttry {\n\t socket = serverSocket.accept();\t\n\t spawnConnectionThread(socket);\n\t} catch (IOException e) {\n\t return;\n\t}\n }", "public void run() {\r\n\r\n\t\tServerSocket serverSocket = null;\r\n\t\tSocket clientSocket = null;\r\n\r\n\t\tSystem.out.println(\"Creating ServerSocket...\");\r\n\r\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(this.listenerPort);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\twhile(true){\r\n\r\n\t\t\tSystem.out.println(LOG_TAG + \"waiting connection...\");\r\n\r\n\t\t\ttry {\r\n\t\t\t\tclientSocket = serverSocket.accept();\r\n\t\t\t\tString message = null;\r\n\r\n\t\t\t\tDataInputStream is = new DataInputStream(clientSocket.getInputStream());\r\n\t\t\t\tDataOutputStream os = new DataOutputStream(clientSocket.getOutputStream());\r\n\r\n\t\t\t\twhile(true){\r\n\r\n\t\t\t\t\tint current = 0;\r\n\t\t\t\t\tbyte[] buf = new byte[100000];\r\n\r\n\t\t\t\t\twhile (current < 1) {\r\n\r\n\t\t\t\t\t\tint reader = is.read(buf);\r\n\r\n\t\t\t\t\t\tif (reader != -1){\r\n\t\t\t\t\t\t\tmessage = new String(buf);\r\n\r\n\t\t\t\t\t\t\tcurrent++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcheckIncomingMessage(message, os);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\tSystem.err.println(\"ClusterPeerListener InterruptedException\");\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tis.close();\r\n\t\t\t\t\tSystem.out.println(\"connection closed\");\r\n\t\t\t\t\tos.close();\r\n\t\t\t\t\tclientSocket.close();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"Connection aborted\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args)\n {\n if(args != null && args.length == 3)\n {\n transport = args[0];\n host = args[1];\n port = Integer.parseInt(args[2]);\n }\n\n ConnectionValidatorRemoteClient client = new ConnectionValidatorRemoteClient();\n try\n {\n client.setUp();\n client.testValidator();\n client.tearDown();\n }\n catch(Throwable e)\n {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\tnew Servidor();\n\t}", "public static void main(String[] args) {\n Client client = new Client();\n\n try {\n InetAddress host = InetAddress.getByName(args[0]);\n int port = Integer.parseInt(args[1]);\n\n System.out.println(\"Attempting to connect to address: \" + host.getHostAddress() +\n \" on port: \" + port);\n\n Socket socket = new Socket(host.getHostAddress(), port);\n\n // Creates an object to be sent to the Server\n TestObject testObject = client.createObject();\n\n OutputStream outputStream = socket.getOutputStream();\n\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);\n\n // Sends the object to the Server\n objectOutputStream.writeObject(testObject);\n\n objectOutputStream.close();\n outputStream.close();\n socket.close();\n } catch (IOException ioException) {\n System.out.println(ioException.getMessage());\n }\n }" ]
[ "0.736403", "0.72977096", "0.72100663", "0.71574056", "0.7155957", "0.7032257", "0.70309556", "0.70145434", "0.6884002", "0.68635994", "0.68465567", "0.6844126", "0.68293476", "0.6820564", "0.68161297", "0.68141764", "0.67753047", "0.67634", "0.67486733", "0.674272", "0.6733794", "0.6730901", "0.6729132", "0.6725902", "0.6714718", "0.67093486", "0.67085665", "0.6673491", "0.6671429", "0.6652068", "0.66299206", "0.66276824", "0.6623505", "0.6602719", "0.65923864", "0.65894604", "0.6585897", "0.65852875", "0.6577622", "0.6577402", "0.6572328", "0.6568758", "0.6547137", "0.6528423", "0.6526888", "0.6510468", "0.6495949", "0.64946455", "0.6480906", "0.6477828", "0.6463868", "0.6450596", "0.6446342", "0.644269", "0.64383775", "0.64351815", "0.6431845", "0.64225316", "0.6421483", "0.64154404", "0.64106077", "0.64104164", "0.6405745", "0.6399388", "0.6394783", "0.63945556", "0.6381327", "0.6377249", "0.6376672", "0.6374273", "0.6374009", "0.6373797", "0.6368033", "0.63622636", "0.635844", "0.6358295", "0.63559824", "0.6355741", "0.63529545", "0.6351914", "0.63512576", "0.6349832", "0.63355064", "0.6334358", "0.63338", "0.63286245", "0.63281566", "0.6326244", "0.63237107", "0.6323411", "0.6317917", "0.63157576", "0.6314259", "0.63141084", "0.6310848", "0.6306892", "0.630612", "0.6305455", "0.6304621", "0.6304502", "0.6303244" ]
0.0
-1
Overrided method close(), closing socket.
@Override public void close() throws IOException { if (clientSocket != null) { clientSocket.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void close() {\r\n\t\tthis.socket.close();\r\n\t}", "public void close() {\n try {\n closeConnection(socket);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "@Override\r\n public void close() {\r\n sock.close();\r\n }", "public int closeSocket() \n\t{\n\t\t\n\t}", "public void close() {\r\n\t\tif (socket != null)\r\n\t\t\tsocket.close();\r\n\t}", "@Override\n public void close() throws IOException {\n if (socket != null) {\n socket.close();\n }\n\n }", "@Override\n public void close() throws IOException\n {\n if(socket != null)\n {\n socket.close();\n }\n }", "public void closeSocket() { //gracefully close the socket connection\n\t\ttry {\n\t\t\tthis.os.close();\n\t\t\tthis.is.close();\n\t\t\tthis.clientSocket.close();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"XX. \" + e.getStackTrace());\n\t\t}\n\t}", "public void closeSocket() { //gracefully close the socket connection\r\n try {\r\n this.os.close();\r\n this.is.close();\r\n this.clientSocket.close();\r\n } \r\n catch (Exception e) {\r\n System.out.println(\"XX. \" + e.getStackTrace());\r\n }\r\n }", "public void closeSocket() {\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t} catch (java.io.IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}", "public void close() {\n\t\tmainSocket.close();\n\t}", "public void close()\n {\n \tSystem.out.println(\"close\");\n \tsend(\"<message> <disconnect/></message>\");\n \ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "@Override\n public void close() throws IOException {\n opened = false;\n if (socket != null) {\n Utils.closeSilent(dis);\n Utils.closeSilent(dos);\n socket.close();\n }\n }", "public synchronized void close(){\n if(connected){\n try{\n socket.close();\n streamIn.close();\n streamOut.close();\n System.out.println(clientID+\": close: socket\"); \n }catch(IOException ioe){\n System.out.println(clientID+\": close: IOException:\"+ioe);\n }\n }else if(isHost){\n try{\n hostSocket.close();\n System.out.println(clientID+\": close: hostSocket\"); \n }catch(IOException ioe){\n System.out.println(clientID+\": close: IOException:\"+ioe);\n }\n }\n }", "private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }", "public void close(){\n\t\tlog.debug(\"[SC] Close called\", 5);\n\t\tif(socket!=null){\n\t\t\tlog.debug(\"[SC] Closing socket\", 4);\n\t\t\ttry {\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t//Silly impatient thread\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t\tin.close();\n\t\t\t\tsocket.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t//we're going to close it anyway\n\t\t\t}\n\t\t\tsocket = null;\n\t\t\trun = false;\n\t\t}\n\t}", "public void close() {\n try {\n socket.close();\n outputStream.close();\n inputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void close() {\n try {\n inputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n outputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's output stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n commSocket.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the communication socket!\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "@Override\n\tpublic void close() {\n\t\tfinal Socket input = getSocket();\n\n\t\tif (input != null) {\n\t\t\tif (!input.isClosed()) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (final IOException e) {\n\t\t\t\t\t// we cannot do anything\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void close(){\r\n\t\ttry {\r\n\t\t\tif(mServerSocket != null) mServerSocket.close();\r\n\t\t\tif(clientSocket != null) clientSocket.close();\r\n\t\t} catch (IOException e) { e.printStackTrace(); }\r\n\t}", "@Override\n public void close() throws IOException {\n inputMessageStream.close();\n outputMessageStream.close();\n socket.close();\n }", "public void closeConnection() {\n try {\n socket.close();\n oStream.close();\n } catch (Exception e) { }\n }", "@Override\r\n public synchronized void close()\r\n {\r\n if (!isRunning)\r\n {\r\n throw new IllegalStateException(\"already stopped!\");\r\n }\r\n threadPool.shutdownNow();\r\n socket.close();\r\n isRunning = false;\r\n }", "void closeSocket() {\n try {\n if (outputStream != null && clientSocket != null) {\n outputStream.close();\n clientSocket.close();\n }\n } catch (IOException e) {\n getLog().error(\"Error while closing TCP client socket connection\", e);\n }\n }", "public void close() {\n\t\ttry {\n\t\t\t_inputStream.close();\n\t\t\t_outputStream.close();\n\t\t\t_socket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void terminate() {\n\t\tif (socket == null)\n\t\t\tthrow new IllegalStateException();\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {}\n\t}", "public void close() throws IOException {\n\t\tistream.close();\n\t\tostream.close();\n\t\tsocket.close();\n\t}", "void close() {\n try {\n socketInput.close();\n socketOutput.close();\n this.connected = false;\n } catch (IOException e) {\n throw new UnexpectedBehaviourException();\n }\n }", "private void closeConnection() throws IOException {\n\t\tclientSocket.close();\n\t}", "private void close()\r\n {\r\n try \r\n {\r\n if(out != null) out.close();\r\n }\r\n catch(Exception e) {\r\n \r\n }\r\n try \r\n {\r\n if(in != null) in.close();\r\n }\r\n\r\n catch(Exception e) {\r\n \r\n };\r\n try \r\n {\r\n if(socket != null) socket.close();\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n }", "public void dispose() {\n\t\tsocket.close();\n\t}", "public void closeSocket () \n {\n try {\n // close the open server socket\n server.close();\n // send it a message to make it stop waiting immediately\n // (not really necessary)\n /*Socket s = new Socket(\"localhost\", thisPort);\n OutputStream os = s.getOutputStream();\n os.write((byte)0);\n os.close();\n s.close();*/\n } catch(Exception ex) { \n LOG.warn(\"Exception while shutting down \"+ this.getClass(), ex);\n }\n \n server = null;\n }", "@Override\n public void closeConnection() {\n\n System.out.println(\"[CLIENT] Closing socket connection...\");\n try {\n socket.close();\n in.close();\n out.close();\n System.out.println(\"[CLIENT] Closed socket connection.\");\n } catch (IOException e) {\n System.out.println(\"[CLIENT] Error occurred when closing socket\");\n }\n System.exit(0);\n\n }", "private void close() {\r\n try {\r\n if (m_in != null) {\r\n m_in.close();\r\n }\r\n if (m_out != null) {\r\n m_out.close();\r\n }\r\n if (m_socket != null) {\r\n m_socket.close();\r\n }\r\n } catch (IOException e) {\r\n throw new WrappedRuntimeException(e);\r\n }\r\n }", "public void close()\n {\n try\n {\n System.out.println(\"CLIENT chiude connessione\");\n receiverThread.interrupt();\n socket.close();\n System.exit(0);\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public void close() {\n synchronized(this) {\n for(Enumeration e = connections.elements();e.hasMoreElements();) {\n try {\n ((Socket)e.nextElement()).close();\n } catch(InterruptedIOException ex) {\n Thread.currentThread().interrupt();\n } catch(IOException ex) {\n } catch(RuntimeException ex) {\n }\n }\n }\n\n try {\n serverSocket.close();\n } catch(InterruptedIOException ex) {\n Thread.currentThread().interrupt();\n } catch(IOException ex) {\n } catch(RuntimeException ex) {\n }\n }", "private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}", "private static void closeSocket(Socket socket) {\n try {\n if(!socket.isClosed()) {\n socket.close();\n }\n } catch(IOException ex) {}\n }", "private void closeConnection(){\n report(\"Close connection\");\n try{\n if(socket != null && !socket.isClosed()) {\n report(\"Client: Close socket\");\n socket.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n report(\"End\");\n }", "public void close() throws IOException {\n /*\n * Set m_iport to 0, in order to quit out of the while loop\n * in the receiver thread.\n */\n\tint save_iport = m_iport;\n\n\tm_iport = 0;\n\n synchronized (closeLock) {\n if (open) {\n /*\n * Reset open flag early to prevent receive0 executed by\n * concurrent thread to operate on partially closed\n * connection\n */\n open = false;\n\n close0(save_iport, connHandle, 1);\n\n setMessageListener(null);\n\n /*\n * Reset handle and other params to default\n * values. Multiple calls to close() are allowed\n * by the spec and the resetting would prevent any\n * strange behaviour.\n */\n connHandle = 0;\n host = null;\n m_mode = 0;\n\n /*\n * Remove this connection from the list of open\n * connections.\n */\n int len = openconnections.size();\n for (int i = 0; i < len; i++) {\n if (openconnections.elementAt(i) == this) {\n openconnections.removeElementAt(i);\n break;\n }\n }\n\n open_count--;\n }\n }\n }", "@Override\n public synchronized void close() throws IOException {\n disconnect(false);\n }", "private void closeConnection(Socket socket) throws IOException {\n reader.close();\n dataWriter.close();\n socket.close();\n }", "public void close(){\r\n\t\tif(managedOutputSocket != null) managedOutputSocket.close();\r\n\t\tmanagedOutputSocket = null;\r\n\t\tsuper.close();\r\n\t}", "@Override\n\tpublic void close() throws IOException\n\t{\n\t\tthis.decoratee.close();\n\t\tregisterSocketIsClosing(this);\n\t}", "public void close() {\n try {\n socket.close();\n } catch (IOException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n }\n }", "public void close() throws java.io.IOException {\n /*\n r1 = this;\n boolean r0 = r1.f44207T\n if (r0 != 0) goto L_0x0005\n return\n L_0x0005:\n r0 = 0\n r1.f44207T = r0\n r1.mo47188n()\n java.net.Socket r0 = r1.f44208U // Catch:{ IOException -> 0x0010 }\n r0.shutdownOutput() // Catch:{ IOException -> 0x0010 }\n L_0x0010:\n java.net.Socket r0 = r1.f44208U // Catch:{ UnsupportedOperationException -> 0x0015, UnsupportedOperationException -> 0x0015 }\n r0.shutdownInput() // Catch:{ UnsupportedOperationException -> 0x0015, UnsupportedOperationException -> 0x0015 }\n L_0x0015:\n java.net.Socket r0 = r1.f44208U\n r0.close()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.apache.http.p541f0.C15261k.close():void\");\n }", "public static void close(Socket socket) {\r\n if (socket != null) {\r\n try {\r\n socket.close();\r\n }\r\n catch (IOException e) {}\r\n }\r\n }", "public synchronized void close() throws IOException {\r\n\t\tif (closed) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclosed = true;\r\n\t\tdatagramSocket.close();\r\n\t\tif (Log.isDebug()) {\r\n\t\t\tLog.debug(\"UDP listener shutdown for interface \" + getIface() + (getLocalAddress().isAnyLocalAddress() ? \"\" : \" on \" + getLocalAddress().toString()) + \" and port \" + getLocalPort() + \".\", Log.DEBUG_LAYER_COMMUNICATION);\r\n\t\t}\r\n\r\n\t\tdatagramSocket = null;\r\n\t}", "public synchronized void close() {\n\n String userInput ;\n String fromServer ;\n try {\n userInput = \"QUIT\";\n out.println(\"Client: \" + userInput);\n output.println(userInput); // send QUIT command\n fromServer = input.readLine();\n //out.println(\"Server: \" + fromServer);\n\n if (fromServer.substring(0, 3).equals(\"221\")){ // 221: connection is closed successfully\n socket.close();\n System.exit(0);\n }\n } catch (IOException e) {\n // ignore any exception\n }\n }", "public void close()\r\n {\r\n datagramSocket.close();\r\n datagramSocket=null;\r\n }", "void close()\n {\n DisconnectInfo disconnectInfo = connection.getDisconnectInfo();\n if (disconnectInfo == null)\n {\n disconnectInfo = connection.setDisconnectInfo(\n new DisconnectInfo(connection, DisconnectType.UNKNOWN, null, null));\n }\n\n // Determine if this connection was closed by a finalizer.\n final boolean closedByFinalizer =\n ((disconnectInfo.getType() == DisconnectType.CLOSED_BY_FINALIZER) &&\n socket.isConnected());\n\n\n // Make sure that the connection reader is no longer running.\n try\n {\n connectionReader.close(false);\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n outputStream.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n socket.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n if (saslClient != null)\n {\n try\n {\n saslClient.dispose();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n finally\n {\n saslClient = null;\n }\n }\n\n debugDisconnect(host, port, connection, disconnectInfo.getType(),\n disconnectInfo.getMessage(), disconnectInfo.getCause());\n if (closedByFinalizer && debugEnabled(DebugType.LDAP))\n {\n debug(Level.WARNING, DebugType.LDAP,\n \"Connection closed by LDAP SDK finalizer: \" + toString());\n }\n disconnectInfo.notifyDisconnectHandler();\n }", "public void close() {\n // close socket\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n // ignore\n }\n }\n\n socket = null;\n in = null;\n out = null;\n\n // try to stop dispather\n if (dispatcher != null) {\n dispatcher.setStopped(true);\n dispatcher.interrupt();\n }\n\n // notify all blocked thread\n if (requests != null) {\n for (Element element : requests.values()) {\n if (element.lock != null) {\n synchronized (element.lock) {\n element.lock.notify();\n }\n } else {\n // TODO notify persistent search listeners\n }\n }\n requests.clear();\n requests = null;\n }\n\n }", "private void closeInternal() {\n try {\n synchronized (internalLock) {\n if (!isClosed) {\n isClosed = true;\n if (socket != null) {\n socket.close();\n pendingMessages = true;\n internalLock.notify();\n }\n }\n }\n } catch (IOException e) {\n // This should never happen\n }\n }", "private void close()\n {\n try\n {\n if (outputStream != null)\n {\n outputStream.close();\n }\n } catch (Exception e)\n {\n\n }\n try\n {\n if (inputStream != null)\n {\n inputStream.close();\n }\n } catch (Exception e)\n {\n\n }\n try\n {\n if (socket != null)\n {\n socket.close();\n }\n } catch (Exception e)\n {\n\n }\n }", "public void closeConnection() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\tlogger.warning(\"problem closing socket connection with JSON-RPC server at \" + serverIP + \":\" + serverPort);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void close() {\n try {\n socket.close();\n sInput.close();\n sOutput.close();\n sInput = null;\n socket = null;\n } catch (IOException e) {\n System.out.println(\"Logged Out.\");\n }\n }", "public void close() {\n\t\ttry {\n\t\t\tserverSocketServer.close();\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\t}", "public void closeConnection(){\n\n try {\n fromClient.close();\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void close() {\n if (closed) {\n return;\n }\n try {\n disconnect();\n } catch (Exception e) {\n throw new IOError(e);\n }\n closed = true;\n }", "public void closeConnection() {\n try {\n stdIn.close();\n socketIn.close();\n socketOut.close();\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }", "public void closeConn() {\n try {\n if (writer != null) {\n writer.close();\n }\n if (sockoutOs != null) {\n sockoutOs.close();\n }\n if (null != socket || !socket.isClosed()) {\n socket.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n }", "public static void closeServerSocket(){\r\n\r\n try{\r\n serverObjectInputStream.close();\r\n //serverInputStream.close();\r\n serverObjectOutputStream.close();\r\n //serverOutputStream.close();\r\n socket.close();\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log error with good error code and stuff\r\n }\r\n }", "private void close() {\n\t\tif (socketChannel != null) {\n\t\t\ttry {\n\t\t\t\tif (in != null) {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close in stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close out stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsocketChannel.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.log(Level.SEVERE, \"Can't close socket channel\", ex);\n\t\t\t}\n\n\t\t}\n\t\t//Defender.stopConnection();\n\t}", "public synchronized void closeConnection() {\n try {\n connected = false;\n socket.close();\n System.out.println(\"[SERVER] Connection closed with client\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public synchronized void close() {\n disconnect();\n mClosed = true;\n }", "public void closeSocket()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfor (CharData chs : replyList)\n\t\t\t{\n\t\t\t\tchs.conn.replyList.remove(ch);\n\t\t\t\tchs.sendln(\"Your reply list has changed.\");\n\t\t\t}\n\t\t\t\n\t\t\tif (saveable)\n\t\t\t{\n\t\t\t\tif (realCh != null)\n\t\t\t\t\tStaffCommands.doReturn(this, \"\");\n\t\t\t\t\n\t\t\t\tch.save();\n\t\t\t\tDatabase.saveAccount(this);\n\t\t\t}\n\t\t\t\n\t\t\tconnSocket.close();\n\t\t} catch (Exception e) {\n\t\t\tsysLog(\"bugs\", \"Error in closeSocket: \"+e.getMessage());\n\t\t\tlogException(e);\n\t\t}\n\t}", "public synchronized void closeAllSocket()\n {\n \ttry {\n \t\toutput.close();\n \t}\n \tcatch(Exception e)\n \t{\n \t\terror(e);\n \t}\t\n }", "public void stop() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tif (socket != null) {\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Socket closed.\");\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\n\t\t}\n\t}", "public void close() {\n socket.close();\n game.close();\n this.running = false;\n }", "public synchronized void close() {\n\t\t/**\n\t\t * DISCONNECT FROM SERVER\n\t\t */\n\t\tsrvDisconnect();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttry {\n\t\t\tif(socket!=null)\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tLog.d(\"IOException\", \"Exception closing socket\");\n\t\t}\n\t}", "public static void closeSocket(Socket socket) {\n\n try {\n\n if (socket != null) {\n socket.close();\n }\n\n } catch (Exception e) {\n logger.error(e);\n } finally {\n socket = null;\n }\n\n }", "public void shutdown() {\n try {\n \t\n \tserverSocket.close();\n \t\n } catch (Exception e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }", "private void close(){\n try {\n socket.close();\n objOut.close();\n line.close();\n audioInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void close() {\n this.consoleListenerAndSender.shutdownNow();\n this.serverListenerAndConsoleWriter.shutdownNow();\n try {\n this.getter.close();\n this.sender.close();\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void close()\n {\n this.disconnect();\n }", "public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t//pass\r\n\t\t\t}\r\n\t\t}", "public void closeConnection(String s) {\r\n\r\n System.out.println(s);\r\n connected = false;\r\n try {\r\n socket.close();\r\n } catch (Exception ee) {\r\n }\r\n }", "public static void closeSocketClient(){\r\n\r\n try{\r\n clientObjectInputStream.close();\r\n clientObjectOutputStream.close();\r\n socket.close();\r\n\r\n System.out.println(\"Client: Socket and all streams were closed successfully!\");\r\n\r\n }catch (java.io.IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - send error message to server, we won't handle it here\r\n }\r\n }", "public void close() throws IOException {\n if (!serverSocket.isClosed()) {\n log.info(\"Closing listener on {}\", serverSocket.getLocalSocketAddress());\n runningThread.interrupt();\n serverSocket.close();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tsocket.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void closeConnection() {\n try {\n if ( clientSocket != null ) {\n clientSocket.close();\n }\n } catch ( IOException e ) {\n logger.error( \"Error closing sokcet to client \" + getId(), e );\n }\n }", "@Override\n public void close() throws IOException\n {\n debug(\"Dispose remote console server.\");\n // this method tries its best and as a least resort uses thread interruption\n synchronized(this) {\n try {\n // try to break server.accept in order to force queue reading on thread\n Socket socket = new Socket();\n socket.connect(new InetSocketAddress(port), 500);\n socket.close();\n }\n catch(IOException e) {\n error(e);\n }\n\n queue.clear();\n queue.offer(SHUTDOWN);\n\n try {\n wait(SHUTDOWN_TIMEOUT);\n }\n catch(InterruptedException unused) {\n thread.interrupt();\n }\n }\n }", "@Override\n public void close( boolean flush )\n {\n \n try {\n kernel.closeEndpoint(this);\n connected = false;\n } catch( IOException e ) {\n throw new KernelException( \"Error closing endpoint for socket:\" + socket, e );\n }\n }", "public void closeConnection() {\n try {\n dis.close();\n dos.close();\n socket.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void close() throws IOException {\n\t\ttry {\n\t\t\tprinter.close();\n\t\t\treader.close();\n\t\t\tclientSocket.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new SocketException(\"Something went wrong when closing the command channel : \" + e.getMessage());\n\t\t}\n\n\t}", "void closeSocket() {\n\t\tint size = threads.size();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (threads.get(i) == this) {\n\t\t\t\tthreads.remove(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t\tprintActiveClients();\n\n\t\ttry {\n\t\t\tmessageBuffer.add(name + \" has just left the chatroom...\");\n\t\t\tinputStream.close();\n\t\t\toutputStream.close();\n\t\t\tclientSocket.close();\n\t\t\treturn;\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t} catch (InterruptedException ine) {\n\t\t\treturn;\n\t\t}\n\t}", "public void disconnect() throws IOException {\r\n socket.close();\r\n System.out.println(\"Disconnected\");\r\n }", "private void closeFedSockets() {\r\n try {\r\n cSocket.close();\r\n } catch (Exception e) {\r\n if (!FLAG) {\r\n System.err.println(\"Error closing Client Socket\");\r\n }\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(e), \"severe\");\r\n }\r\n try {\r\n sSocket.close();\r\n } catch (Exception e) {\r\n if (!FLAG) {\r\n System.err.println(\"Error closing Server Socket\");\r\n }\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(e), \"severe\");\r\n }\r\n }", "protected static native void closed(long socket, int errorDomain, int errorCode, String message);", "public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public void close(){\n try{\n this.clientSocket.close();\n }\n catch (IOException e){\n\n }\n this.wamBoard.close();\n }", "@Override\n public void stop() {\n try {\n socket.close();\n } catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Now close the executor service.\n\n }", "public void disconnect() {\n try {\n if (socket != null)\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n isConnected = false;\n }", "private void closeServer() {\r\n\t\tMisc.log(\"Server will now close.\");\r\n\t\t//close the socket and server when done\r\n\t\ttry {\r\n\t\t\tserver.close();\r\n\t\t\tsocket.close();\r\n\t\t\tin.close();\r\n\t\t\tout.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void cancel() {\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected void closeHost(Socket sock) {\n // implement me\n \ttry {\n\t\t\tsock.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "@SuppressFBWarnings(\"UPM_UNCALLED_PRIVATE_METHOD\")\n private static void close(long handle) {\n Log.w(LogDomain.NETWORK, \"C4Socket.close() handle -> \" + handle);\n final C4Socket socket = reverseLookupTable.get(handle);\n if (socket != null) { socket.close(); }\n else { Log.w(LogDomain.NETWORK, \"socket is null\"); }\n }", "public void closeServer()\n\t{\n\t\t//System.out.println(\"*********Beginning Close Operations*********\");\n\n\t\ttry {\n\t\t\t//System.out.println(\"***********Closing client socket*************\");\n\t\t\tthis.closeClientConnection();\n\t\t\tstringFile.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\tisRunning = false;\n\t\t//System.out.println(\"Ending server....\");\n\t}", "public void disconnect() {\n\t\ttry {\n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\n\t}" ]
[ "0.86658746", "0.8366694", "0.83140504", "0.8217652", "0.81671995", "0.8109045", "0.80947196", "0.80615485", "0.8057993", "0.80135196", "0.79216605", "0.78864855", "0.7844825", "0.77761906", "0.776364", "0.77429324", "0.77038354", "0.75970197", "0.757559", "0.74758834", "0.7465369", "0.7441341", "0.7434916", "0.7421074", "0.740455", "0.7393133", "0.73354375", "0.73326296", "0.7327834", "0.7296887", "0.7293573", "0.7292368", "0.7291993", "0.7273461", "0.72648853", "0.7256009", "0.71749717", "0.7166197", "0.7147709", "0.7090252", "0.7076175", "0.70719683", "0.7068804", "0.70611304", "0.7050102", "0.7022584", "0.70217746", "0.7020224", "0.700167", "0.69939446", "0.69795585", "0.6978252", "0.6970899", "0.6955054", "0.6946161", "0.69449776", "0.6941982", "0.6935859", "0.6932321", "0.69112504", "0.6907161", "0.68750787", "0.6870351", "0.6867804", "0.68331957", "0.68163013", "0.680619", "0.6786325", "0.6781457", "0.6778819", "0.6776881", "0.67629814", "0.67503685", "0.6749049", "0.6747144", "0.6741963", "0.6724091", "0.6715052", "0.6705515", "0.66985214", "0.66884327", "0.6672119", "0.66565895", "0.6649047", "0.66405797", "0.66379386", "0.6636917", "0.66307193", "0.66163576", "0.661029", "0.6575475", "0.6561689", "0.65261716", "0.65170777", "0.65154374", "0.64976066", "0.6487205", "0.64856935", "0.6485159", "0.64601433" ]
0.75785524
18
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() { l1 = new javax.swing.JLabel(); l2 = new javax.swing.JLabel(); l3 = new javax.swing.JLabel(); l4 = new javax.swing.JLabel(); l5 = new javax.swing.JLabel(); l6 = new javax.swing.JLabel(); l7 = new javax.swing.JLabel(); l8 = new javax.swing.JLabel(); l10 = new javax.swing.JLabel(); l11 = new javax.swing.JLabel(); l12 = new javax.swing.JLabel(); l13 = new javax.swing.JLabel(); l14 = new javax.swing.JLabel(); l15 = new javax.swing.JLabel(); l16 = new javax.swing.JLabel(); l9 = new javax.swing.JLabel(); l = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); li = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Cards"); addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { formMouseMoved(evt); } }); addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { formMouseClicked(evt); } }); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); getContentPane().setLayout(null); l1.setText("A"); l1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l1MouseClicked(evt); } }); getContentPane().add(l1); l1.setBounds(84, 44, 10, 14); l2.setText("B"); l2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l2MouseClicked(evt); } }); getContentPane().add(l2); l2.setBounds(201, 44, 10, 14); l3.setText("C"); l3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l3MouseClicked(evt); } }); getContentPane().add(l3); l3.setBounds(369, 44, 10, 14); l4.setText("D"); l4.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l4MouseClicked(evt); } }); getContentPane().add(l4); l4.setBounds(505, 44, 10, 14); l5.setText("E"); l5.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l5MouseClicked(evt); } }); getContentPane().add(l5); l5.setBounds(84, 102, 10, 14); l6.setText("F"); l6.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l6MouseClicked(evt); } }); getContentPane().add(l6); l6.setBounds(201, 102, 10, 14); l7.setText("G"); l7.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l7MouseClicked(evt); } }); getContentPane().add(l7); l7.setBounds(369, 102, 10, 14); l8.setText("H"); l8.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l8MouseClicked(evt); } }); getContentPane().add(l8); l8.setBounds(505, 102, 10, 14); l10.setText("J"); l10.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l10MouseClicked(evt); } }); getContentPane().add(l10); l10.setBounds(201, 178, 10, 14); l11.setText("K"); l11.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l11MouseClicked(evt); } }); getContentPane().add(l11); l11.setBounds(363, 178, 10, 14); l12.setText("L"); l12.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l12MouseClicked(evt); } }); getContentPane().add(l12); l12.setBounds(499, 178, 10, 14); l13.setText("M"); l13.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l13MouseClicked(evt); } }); getContentPane().add(l13); l13.setBounds(84, 238, 10, 14); l14.setText("N"); l14.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l14MouseClicked(evt); } }); getContentPane().add(l14); l14.setBounds(201, 238, 10, 14); l15.setText("O"); l15.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l15MouseClicked(evt); } }); getContentPane().add(l15); l15.setBounds(363, 238, 10, 14); l16.setText("P"); l16.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l16MouseClicked(evt); } }); getContentPane().add(l16); l16.setBounds(499, 238, 10, 14); l9.setText("Q"); l9.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { l9MouseClicked(evt); } }); getContentPane().add(l9); l9.setBounds(80, 180, 10, 14); getContentPane().add(l); l.setBounds(0, 0, 20, 20); jPanel1.setBackground(new java.awt.Color(0, 0, 0)); jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText("Clicks"); jPanel1.add(jLabel1); li.setForeground(new java.awt.Color(255, 255, 255)); li.setText("100"); jPanel1.add(li); getContentPane().add(jPanel1); jPanel1.setBounds(30, 20, 70, 20); pack(); }
{ "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 myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\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 LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\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 UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\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 IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\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.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
For Animation and BMP direction = 0 up, 1 left, 2 down, 3 right, animation = 3 back, 1 left, 0 front, 2 right
private int getAnimationRow() { double dirDouble = (Math.atan2(xSpeed, ySpeed) / (Math.PI / 2) + 2); int direction = (int) Math.round(dirDouble) % BMP_ROWS; return DIRECTION_TO_ANIMATION_MAP[direction]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void animateMovementDown()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (downMvt.length);\n setImage(downMvt[imageNumber]);\n } \n }", "void walkAnimation(int direction, int index) {\n switch (direction) {\n case 0:\n if (flip) { tile.setImg(upSprites1.get(index)); }\n else { tile.setImg(upSprites2.get(index)); }\n break;\n case 1:\n if (flip) { tile.setImg(downSprites2.get(index)); }\n else { tile.setImg(downSprites2.get(index)); }\n break;\n case 2:\n tile.setImg(leftSprites.get(index));\n break;\n case 3:\n tile.setImg(rightSprites.get(index));\n break;\n }\n }", "private void animateRight(){\n if(frame == 1){\n setImage(run1);\n }\n else if(frame == 2){\n setImage(run2);\n }\n else if(frame == 3){\n setImage(run3);\n }\n else if(frame == 4){\n setImage(run4);\n }\n else if(frame == 5){\n setImage(run5);\n }\n else if(frame == 6){\n setImage(run6);\n }\n else if(frame == 7){\n setImage(run7);\n }\n else if(frame == 8){\n setImage(run8);\n frame =1;\n return;\n }\n frame ++;\n }", "public void animateMovementUp()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (upMvt.length);\n setImage(upMvt[imageNumber]);\n } \n }", "private void animateLeft(){\n if(frame == 1){\n setImage(run1_l);\n }\n else if(frame == 2){\n setImage(run2_l);\n }\n else if(frame == 3){\n setImage(run3_l);\n }\n else if(frame == 4){\n setImage(run4_l);\n }\n else if(frame == 5){\n setImage(run5_l);\n }\n else if(frame == 6){\n setImage(run6_l);\n }\n else if(frame == 7){\n setImage(run7_l);\n }\n else if(frame == 8){\n setImage(run8_l);\n frame =1;\n return;\n }\n frame ++;\n }", "@Override\n protected void animateWalking() {\n if (seqIdx > 7) {\n seqIdx = 0;\n }\n if (walking) {\n this.setImage(\"images/bat/bat_\" + seqIdx + FILE_SUFFIX);\n } else {\n this.setImage(\"images/bat/bat_0.png\");\n }\n seqIdx++;\n }", "@Override\r\n\tpublic void motion() {\r\n\t\tframeCount = frameCount== IMAGE_RATE*getImages().size() ? 1 : frameCount+1; \t//count the frames\r\n\r\n\t\tif(frameCount%IMAGE_RATE == 0 || isDirectionChanged() ) {\r\n\t\t\tsetDirectionChanged(false);\r\n\r\n\t\t\tif(isLeft()) {\r\n\t\t\t\tif(imgIndex < getImages().size()/2)\r\n\t\t\t\t\timgIndex =+ getImages().size()/2;\t\t\t\t\t\t\t\t\t\t\t\t\t//Set left Images [4,5,6,7]\r\n\t\t\t\telse\r\n\t\t\t\t\timgIndex = imgIndex == getImages().size()-1 ? getImages().size()/2 : imgIndex+1; \t//if index == list.size() -1 than index will be list.size()/2\r\n\t\t\t}else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//otherwise it will increment by 1\r\n\t\t\t\tif(imgIndex >= getImages().size()/2) \r\n\t\t\t\t\timgIndex -= 4;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Set right Images [0,1,2,3]\r\n\t\t\t\telse\r\n\t\t\t\t\timgIndex = imgIndex == getImages().size()/2 -1 ? 0 : imgIndex+1; \t\t\t\t\t//if index == list.size()/2 -1 than index will be 0\r\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//otherwise it will increment by 1\r\n\r\n\t\t\tsetImage(getImages().get(imgIndex));\r\n\t\t}\r\n\t}", "public void checkanimation(){ \n if(super.movecheck(flag) == 1)\n animationup();\n if( super.movecheck(flag)== 2)\n animationdown();\n if(super.movecheck(flag) == 3)\n animationleft();\n if(super.movecheck(flag)== 4)\n animationright(); \n }", "@Override\r\n\t\t\t\tpublic void onAnimationEnd(Animation animation) {\n\t\t\t\t\tartwork_front.setImageBitmap(behind);\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationEnd(Animation animation) {\n\t\t\t\t\tartwork_front.setImageBitmap(behind);\r\n\t\t\t\t}", "private void updateSprite(){\n //facing front\n getImage().clear();\n getImage().drawImage(SHEET,-(frame%SHEET_W)*SPRITE_W,0);\n if(!goLeft) getImage().mirrorHorizontally();\n if (iframes>0&&iframes%10<5) setImage(SpriteHelper.makeWhite( getImage()));\n else frame = frame + 1 % (SHEET_H* SHEET_W);\n }", "private void m106722c() {\n if (this.f86017d != null) {\n this.f86018e = (AnimationImageView) this.f86017d.findViewById(R.id.b9t);\n try {\n if (C43127fh.m136806a(this.f86017d.getContext())) {\n ((TextView) this.f86017d.findViewById(R.id.avl)).setText(R.string.bei);\n this.f86018e.setScaleX(-1.0f);\n }\n } catch (Exception unused) {\n }\n if (this.f86018e != null && !f86014a) {\n this.f86018e.setRepeatCount(3);\n this.f86018e.setAnimation(\"right_pic.json\");\n this.f86018e.setProgress(0.0f);\n this.f86018e.mo7078b();\n f86014a = true;\n m106725f();\n }\n }\n }", "void bottomInv() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.CLOCKWISE);\n bottomCubeSwap();\n bottomCubeSwap();\n bottomCubeSwap();\n }", "private void initAnim()\n {\n \t\n //leftWalk = AnimCreator.createAnimFromPaths(Actor.ANIM_DURATION, \n // AUTO_UPDATE, leftWalkPaths);\n // get the images for leftWalk so we can flip them to use as right.#\n \tImage[] leftWalkImgs = new Image[leftWalkPaths.length];\n \tImage[] rightWalkImgs = new Image[leftWalkPaths.length];\n \tImage[] leftStandImgs = new Image[leftStandPaths.length];\n \tImage[] rightStandImgs = new Image[leftStandPaths.length];\n \t\n \t\n \t\n \tleftWalkImgs = AnimCreator.getImagesFromPaths(\n \t\t\tleftWalkPaths).toArray(leftWalkImgs);\n \t\n \theight = leftWalkImgs[0].getHeight();\n \t\n \trightWalkImgs = AnimCreator.getHorizontallyFlippedCopy(\n \t\t\tleftWalkImgs).toArray(rightWalkImgs);\n \t\n \tleftStandImgs = AnimCreator.getImagesFromPaths(\n \t\t\tleftStandPaths).toArray(leftStandImgs);\n \t\n \trightStandImgs = AnimCreator.getHorizontallyFlippedCopy(\n \t\t\tleftStandImgs).toArray(rightStandImgs);\n \t\n \tboolean autoUpdate = true;\n \t\n \tleftWalk = new /*Masked*/Animation(\n\t\t\t\t\t\t leftWalkImgs, \n\t\t\t\t\t\t Actor.ANIM_DURATION, \n\t\t\t\t\t\t autoUpdate);\n\n \trightWalk = new /*Masked*/Animation(\n \t\t\t\t\t\trightWalkImgs, \n \t\t\t\t\t\tActor.ANIM_DURATION, \n\t\t\t\t autoUpdate);\n \t\n \tleftStand = new /*Masked*/Animation(\n \t\t\t\t\t\tleftStandImgs, \n\t\t\t\t\t\t\tActor.ANIM_DURATION, \n\t\t\t\t\t\t\tautoUpdate);\n \t\n \trightStand = new /*Masked*/Animation(\n \t\t\t\t\t\trightStandImgs, \n \t\t\t\t\t\tActor.ANIM_DURATION,\n \t\t\t\t\t\tautoUpdate);\n \t\n \tsetInitialAnim();\n }", "public void mo5964b() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{0.0f, 0.3f, 0.5f, 0.7f, 0.9f, 1.0f}).setDuration(j).start();\n this.f5438qa.getMeasuredHeight();\n this.f5384D.getmImageViewHeight();\n C1413m.m6828a(27, this.f5389I);\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n this.f5384D.getmImageView().setImageResource(R.drawable.iqoo_buttonanimation);\n this.f5393M = (AnimationDrawable) this.f5384D.getmImageView().getDrawable();\n this.f5393M.start();\n duration.addListener(new C1300Wa(this));\n }", "public void waitingFrames()\n\t{\n\t\tif(waitingFrames < framesToWait && action == false)\n\t\t{\n\t\t\twaitingFrames ++;\n\t\t}\n\t\telse if(waitingFrames == framesToWait && action == false)\n\t\t{\n\t\t\twaitingFrames = 0;\n\t\t\taction = true;\n\t\t\tspriteImageView.setImage(holdImage);\n\t\t\tswitch(getDirection())\n\t\t\t{\n\t\t\tcase \"UP\":\n\t\t\t\tspriteImageView.setViewport(new Rectangle2D(0, 300, 100, 100));\n\t\t\t\tbreak;\n\t\t\tcase \"DOWN\":\n\t\t\t\tspriteImageView.setViewport(new Rectangle2D(0, 0, 100, 100));\n\t\t\t\tbreak;\n\t\t\tcase \"LEFT\":\n\t\t\t\tspriteImageView.setViewport(new Rectangle2D(0, 100, 100, 100));\n\t\t\t\tbreak;\n\t\t\tcase \"RIGHT\":\n\t\t\t\tspriteImageView.setViewport(new Rectangle2D(0, 200, 100, 100));\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\tswitch(getDirection())\n//\t\t\t{\n//\t\t\t\tcase \"UP\":\t\t\t\t\n//\t\t\t\t\twalkingAnimation=new SpriteAnimation(spriteImageView,Duration.millis(500),count,column,offsetX,offsetY+300,width,height);\n//\t\t\t\t\tbreak;\n//\t\t\t\tcase \"DOWN\":\n//\t\t\t\t\twalkingAnimation=new SpriteAnimation(spriteImageView,Duration.millis(500),count,column,offsetX,offsetY,width,height);\n//\t\t\t\t\tbreak;\n//\t\t\t\tcase \"LEFT\":\n//\t\t\t\t\twalkingAnimation=new SpriteAnimation(spriteImageView,Duration.millis(500),count,column,offsetX,offsetY+100,width,height);\n//\t\t\t\t\tbreak;\n//\t\t\t\tcase \"RIGHT\":\n//\t\t\t\t\twalkingAnimation=new SpriteAnimation(spriteImageView,Duration.millis(500),count,column,offsetX,offsetY+200,width,height);\n//\t\t\t\t\tbreak;\n//\t\t\t\tdefault: break;\n//\t\t\t}\n//\t\t\twalkingAnimation.play();\n\t\t}\n\t}", "void advance(int tickCount, boolean left) {\n if (left) {\n // use the mirror image of the cowboy graphic when\n // the cowboy is going towards the left.\n setTransform(TRANS_MIRROR);\n move(-1, 0);\n } else {\n // use the (normal, untransformed) image of the cowboy\n // graphic when the cowboy is going towards the right.\n setTransform(TRANS_NONE);\n move(1, 0);\n }\n // this section advances the animation:\n // every third time through the loop, the cowboy\n // image is changed to the next image in the walking\n // animation sequence:\n if (tickCount % 3 == 0) { // slow the animation down a little\n if (myIsJumping == myNoJumpInt) {\n // if he's not jumping, set the image to the next\n // frame in the walking animation:\n nextFrame();\n } else {\n // if he's jumping, advance the jump:\n // the jump continues for several passes through\n // the main game loop, and myIsJumping keeps track\n // of where we are in the jump:\n myIsJumping++;\n if (myIsJumping < 0) {\n // myIsJumping starts negative, and while it's\n // still negative, the cowboy is going up.\n // here we use a shift to make the cowboy go up a\n // lot in the beginning of the jump, and ascend\n // more and more slowly as he reaches his highest\n // position:\n setRefPixelPosition(getRefPixelX(), getRefPixelY()\n - (2 << (-myIsJumping)));\n } else {\n // once myIsJumping is negative, the cowboy starts\n // going back down until he reaches the end of the\n // jump sequence:\n if (myIsJumping != -myNoJumpInt - 1) {\n setRefPixelPosition(getRefPixelX(), getRefPixelY()\n + (2 << myIsJumping));\n } else {\n // once the jump is done, we reset the cowboy to\n // his non-jumping position:\n myIsJumping = myNoJumpInt;\n setRefPixelPosition(getRefPixelX(), myInitialY);\n // we set the image back to being the walking\n // animation sequence rather than the jumping image:\n setFrameSequence(FRAME_SEQUENCE);\n // myScoreThisJump keeps track of how many points\n // were scored during the current jump (to keep\n // track of the bonus points earned for jumping\n // multiple tumbleweeds). Once the current jump is done,\n // we set it back to zero.\n myScoreThisJump = 0;\n }\n }\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\n\t\t\tfloat halfWidth = imswitcher.getWidth() / 2.0f;\n\t\t\tfloat halfHeight = imswitcher.getHeight() / 2.0f;\n\t\t\tint duration = 500;\n\t\t\tint depthz = 0;// viewFlipper.getWidth()/2;\n\n\t\t\tRotate3D rdin = new Rotate3D(75, 0, 0, halfWidth, halfHeight);\n\t\t\trdin.setDuration(duration);\n\t\t\trdin.setFillAfter(true);\n\t\t\timswitcher.setInAnimation(rdin);\n\t\t\tRotate3D rdout = new Rotate3D(-15, -90, 0, halfWidth, halfHeight);\n\n\t\t\trdout.setDuration(duration);\n\t\t\trdout.setFillAfter(true);\n\t\t\timswitcher.setOutAnimation(rdout);\n\n\t\t\ti = (i + 1);\n\t\t\tint p = i % 4;\n\n\t\t\tif (p >= 0) {\n\t\t\t\tsetpic(p);\n\t\t\t\timswitcher.setImageResource(imageIds[p]);\n\t\t\t} else {\n\n\t\t\t\tint k = 4 + p;\n\t\t\t\tsetpic(k);\n\t\t\t\timswitcher.setImageResource(imageIds[k]);\n\t\t\t}\n\n\t\t}", "@Override\n public void chooseSprite() {\n switch(direction){\n case 0:\n sprite=Sprite.python_down;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_down,Sprite.python_down_1,Sprite.python_down_2,Sprite.python_down_3,animate,40);\n break;\n case 1:\n sprite=Sprite.python_right;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_right,Sprite.python_right_1,Sprite.python_right_2,animate,40);\n break;\n case 2:\n sprite=Sprite.python_up;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_up,Sprite.python_up_1,Sprite.python_up_2,animate,40);\n break;\n case 3:\n sprite=Sprite.python_left;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_left,Sprite.python_left_1,Sprite.python_left_2,animate,40);\n break;\n\n\n }\n\n }", "public void reverseFrame() {\r\n if (reversedImage) {\r\n reversedImage = false;\r\n } else {\r\n reversedImage = true;\r\n }\r\n }", "public A(){ \n super();\n AtrEA = new GreenfootImage(\"AtrEA.png\");\n DerEA1 = new GreenfootImage(\"DerEA1.png\");\n DerEA2 = new GreenfootImage(\"DerEA2.png\");\n DerEA3 = new GreenfootImage(\"DerEA3.png\");\n FrtEA1 = new GreenfootImage(\"FrtEA1.png\");\n FrtEA2 = new GreenfootImage(\"FrtEA2.png\");\n FrtEA3 = new GreenfootImage(\"FrtEA3.png\");\n IzqEA1 = new GreenfootImage(\"IzqEA1.png\");\n IzqEA2 = new GreenfootImage(\"IzqEA2.png\");\n IzqEA3 = new GreenfootImage(\"IzqEA3.png\"); \n animationE = 0;\n start = 1; \n }", "@Override\r\n\tpublic String moveBack() {\n\t\tif((0<=x && x<=50) && (0<=y && y<=10) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (40<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (0<=z && z<10))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=10) && (0<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (40<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((40<=x && x<=50) && (0<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "public MyAnimation getFrontSprite();", "public void playerAnimation(){\r\n \r\n switch (gif) {\r\n case 5:\r\n j= new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_1.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n ;\r\n break;\r\n case 15:\r\n j = new ImageIcon(getClass().getResource(\"/\"+ Character.choosen_char + \"_2.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n break;\r\n case 20:\r\n j = new ImageIcon(getClass().getResource(\"/\"+ Character.choosen_char + \"_3.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 35:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_4.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 45:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_5.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 55:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_6.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 65:\r\n // j= new ImageIcon(\"D:\\\\Netbeans\\\\Projects\\\\ProjectZ\\\\src\\\\shi_1.png\");\r\n // img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n // \r\n gif = 0;\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n }", "void frontInv() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.ANTICLOCKWISE);\n frontCubeSwap();\n frontCubeSwap();\n frontCubeSwap();\n }", "@Override\r\n public void paint(Graphics g){\n if(ch.moveCountY == 1 && flag == false){ \r\n flag = true;\r\n animator = new Thread(this);\r\n animator.start();\r\n }\r\n \r\n super.paint(g);\r\n \r\n Graphics2D g2d = (Graphics2D) g;\r\n \r\n if(ch.v == 330){\r\n ch.mainC = img;\r\n }\r\n \r\n if(pos2 < -15){\r\n // g2d.drawImage(img_bg2 , pos2, 0 , null);\r\n b.setBounds(pos2, 0, 995, 610);\r\n \r\n }\r\n \r\n if(pos <= -15){\r\n b.setBounds(pos2, 0, 995, 610);\r\n //g2d.drawImage(img_bg2 , pos2, 0 , null);\r\n \r\n }\r\n \r\n \r\n a.setBounds(pos, 0, 995, 610);\r\n g2d.drawImage(ch.getImage() , ch.getMoveX() , ch.v , null);\r\n g2d.drawImage(obs1.getImage() , obs1.getX() , obs1.getY() , null);\r\n g2d.drawImage(obs2.pic2 , obs2.getX() , obs2.getY() , null);\r\n \r\n }", "public void imageSwap() {\n GreenfootImage image = (movement.dx < 1) ? leftImage : rightImage;\n setImage(image);\n }", "public void mo5969f() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n duration.addListener(new C1298Va(this));\n }", "private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}", "public void setAnimation()\n {\n if(speed<0)\n {\n if(animationCount % 4 == 0)\n animateLeft();\n }\n else\n {\n if(animationCount % 4 == 0)\n animateRight();\n }\n }", "private void AnimateandSlideShow() {\n\n\t\tslidingimage = (ImageView) findViewById(R.id.ImageView3_Left);\n\t\t// Log.i(\"bitarray\", Integer.toString(bit_array.length));\n\t\tslidingimage.setImageBitmap(bit_array[currentimageindex\n\t\t\t\t% bit_array.length]);\n\n\t\tcurrentimageindex++;\n\n\t\tAnimation rotateimage = AnimationUtils.loadAnimation(this,\n\t\t\t\tR.anim.custom_anim);\n\n\t\tslidingimage.startAnimation(rotateimage);\n\n\t}", "private void setInitialAnim()\n {\n \n \n if(level.playerFacing == Direction.LEFT)\n {\t\n \tcurrentAnim = leftWalk;\n }\n else\n {\n \tcurrentAnim = rightWalk;\n }\n \n Image i = currentAnim.getCurrentFrame();\n width = i.getWidth();\n height = i.getHeight();\n }", "void rightInv() {\n startAnimation(rightSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n rightCubeSwap();\n rightCubeSwap();\n rightCubeSwap();\n }", "private void animate() {\r\n\t\tif (spriteCounter > 50) {\r\n\t\t\tanimationFrame = 0;\r\n\t\t} else {\r\n\t\t\tanimationFrame = -16;\r\n\t\t}\r\n\t\t\r\n\t\tif (spriteCounter > 100) {\r\n\t\t\tspriteCounter = 0;\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\tspriteCounter++;\r\n\t\tsetImage((Graphics2D) super.img.getGraphics());\r\n\t}", "public void mo5967d() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n LinearLayout linearLayout = this.f5438qa;\n ObjectAnimator.ofFloat(linearLayout, \"translationY\", new float[]{0.0f, (float) ((linearLayout.getMeasuredHeight() - this.f5384D.getmImageViewHeight()) - C1413m.m6828a(27, this.f5389I))}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1304Ya(this));\n }", "public ImageIcon getNextAnimation() {\n\t\tImageIcon animation = null;\n\t\tif (getX_direction() < 0) {\n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowLeft1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowLeft2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowLeft3;\n\t\t\t}\n\t\t} else if (getX_direction() >= 0) { \n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowRight1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowRight2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowRight3;\n\t\t\t}\n\t\t}\n\t\tnextAnimation();\n\t\treturn animation;\n\t}", "public void flipJags(){\n \t\tint length = jagsLeft.length/2;\n \t\tJaguar[] tempJags = new Jaguar[length];\n \t\t\n \t\ttempJags=jagsLeft;\n \t\tfor(int i=0; i < length; i++){ \n \t\t\tjagsLeft[i]=tempJags[length-1-i]; //Flip jaguars on left\n \t\t}\n \t\tfor(int i=0; i < length; i++){\n \t\t\ttempJags[i]=jagsRight[length-1-i]; //Flip jaguars on right\n \t\t}\n \t\t\n \t\tjagsRight = jagsLeft;\n \t\tjagsLeft = tempJags;\n assignLiveWindow();\n \t}", "void flipUp( ) {\n\t\t\t\t\t\tUpCommand . execute ( ) ;\n\n\n\t\t}", "private void wanderingBehavior() {\n\t\tif (moving) {\n\t\t\tupdatePixels(action);\n\t\t\tremainingSteps -= speed;\n\t\t\tif (remainingSteps == 0) {\n\t\t\t\tmoving = false;\n\t\t\t\tcurrentImage = stopAnimation(action);\n\t\t\t\tupdateCoordinate(facing, false);\n\t\t\t}\n\t\t} else if (remainingSteps > 0) {\n\t\t\tremainingSteps -= speed;\n\t\t} else {\n\t\t\trandom = rand.nextInt(100);\n\t\t\tif (Math.abs(random) < 2) {\n\t\t\t\trandom = rand.nextInt(4);\n\t\t\t\t{\n\t\t\t\t\tswitch (random) {\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\trandom = rand.nextInt(3);\n\t\t\t\t\tremainingSteps = STEP_SIZE * 2;\n\t\t\t\t\tif (random != 0 && validMoveEh(facing) && validWanderEh(facing)) {\n\t\t\t\t\t\tremainingSteps -= STEP_SIZE;\n\t\t\t\t\t\taction = facing;\n\t\t\t\t\t\tcurrentImage = startAnimation(action);\n\t\t\t\t\t\tmoving = true;\n\t\t\t\t\t\tupdateCoordinate(facing, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void loadAnimations() {\n loadImages(imagesFront, \"F\");\n loadImages(imagesLeft, \"L\");\n loadImages(imagesRight, \"R\");\n loadImages(imagesBack, \"B\");\n }", "private void initIdleDown() {\n int x = 0;\n int y = 0;\n int newRow = 3;\n BufferedImage[] temp = new BufferedImage[IDLE_DOWN_IMAGE_COUNT];\n for(int i = 0; i < IDLE_DOWN_IMAGE_COUNT; i++){\n temp[i] = spriteManager.getCharacter().get(\"Character\").get(\"idleDown.png\").getSubimage(x, y, 64, 64); \n x += 64;\n \n if(i == newRow){\n x = 0;\n y += 64;\n newRow += 3;\n }\n }\n \n idleDown = new Animation(10, temp[0], temp[1], temp[2], temp[3], temp[4]);\n }", "private Animation<TextureRegion> createWalkingAnimation(MyCumulusGame game) {\n Texture walkingTexture = game.getAssetManager().get(\"bird.png\");\n TextureRegion[][] walkingRegion = TextureRegion.split(walkingTexture, walkingTexture.getWidth() / 3, walkingTexture.getHeight()/3);\n\n TextureRegion[] frames = new TextureRegion[2]; //todo change to accomodate any color of bird\n System.arraycopy(walkingRegion[0], 0, frames, 0, 2);\n\n return new Animation<TextureRegion>(FRAME_TIME, frames);\n }", "public int move () {\n intMoveState = 0;\r\n int pixel1;\r\n int pixel2;\r\n \r\n if (blnUp) {\r\n pixel1 = getPixelRGB (X - 25, Y + 10, \"r\");\r\n pixel2 = getPixelRGB (X + 25, Y + 10, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n Y -= intSpeed;\r\n intMoveState -= 1;\r\n }\r\n }\r\n if (blnDown) {\r\n pixel1 = getPixelRGB (X - 25, Y + 46, \"r\");\r\n pixel2 = getPixelRGB (X + 25, Y + 46, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n Y += intSpeed;\r\n intMoveState += 1;\r\n }\r\n }\r\n if (blnLeft) {\r\n pixel1 = getPixelRGB (X - 30, Y + 15, \"r\");\r\n pixel2 = getPixelRGB (X - 30, Y + 30, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n X -= intSpeed;\r\n intMoveState -= 2;\r\n }\r\n }\r\n if (blnRight) {\r\n pixel1 = getPixelRGB (X + 30, Y + 15, \"r\");\r\n pixel2 = getPixelRGB (X + 30, Y + 30, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n X += intSpeed;\r\n intMoveState += 2;\r\n }\r\n }\r\n \r\n try {\r\n dblAngle = Math.atan2((MouseY - Y),(MouseX - X));\r\n if (dblAngle < - Math.PI/4) {\r\n dblAngle = 2 * Math.PI + dblAngle;\r\n }\r\n }catch (ArithmeticException e) {\r\n if (MouseY < Y) {\r\n dblAngle = 3 * Math.PI/2;\r\n }else {\r\n dblAngle = Math.PI/2;\r\n }\r\n }\r\n degreesAngle = (int) (Math.toDegrees(dblAngle)); \r\n \r\n if(intHealth < 0 && !UserInterface.deathScreenVisible){\r\n UserInterface.deathScreenVisible = true;\r\n deathTime = System.nanoTime();\r\n ClientMain.ssm.sendText(\"player,\" + ClientMain.intPlayerNumber + \",iamdeadlol\");\r\n }\r\n \r\n return getPixelRGB (X, Y + 46, \"g\");\r\n }", "public void mo5968e() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 160;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1302Xa(this));\n }", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "@Override\n public void onAnimationEnd(Animation animation) {\n lionPic.startAnimation(reverseAnim);\n }", "protected void setMovingAnimation(Image[] images, int frameDuration){\n //The HashMap takes a facing-direction and an animation image and becomes the movingAnimation\n \tmovingAnimations = new HashMap<Facing,Animation>();\n \n //The images of an object, facing right, is set as the default animation\n movingAnimations.put(Facing.RIGHT, new Animation(images,frameDuration));\n \n //A new animation is declared for the leftward-flipped images.\n Animation facingLeftAnimation = new Animation();\n //The loop goes through each image and flips all of them to face left\n //The \"getFlippedCopy\" provides a horizontally (true) and vertically (false) flipped image of the original\n for(Image i : images){\n facingLeftAnimation.addFrame(i.getFlippedCopy(true, false), frameDuration);\n }\n //The animation loop will now run with the images having been flipped.\n movingAnimations.put(Facing.LEFT, facingLeftAnimation);\n \n }", "public void animateMovementRight()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (rightMvt.length);\n setImage(rightMvt[imageNumber]);\n }\n }", "public void e()\n/* */ {\n/* 193 */ if (!this.g) {\n/* 194 */ AnimatorSet localAnimatorSet = new AnimatorSet();\n/* 195 */ localAnimatorSet.play(a(this.b)).with(b(this.c));\n/* 196 */ localAnimatorSet.setDuration(this.f).start();\n/* 197 */ this.c.setVisibility(View.VISIBLE);\n/* 198 */ this.g = true;\n/* */ }\n/* */ }", "public void arrow()\n{\n\nPImage img1,img2;\nimg1=loadImage(\"compass.png\");\nimage(img1,630,110);\nimg2=loadImage(\"compass.png\");\nimage(img2,1490,110);\n\n}", "void leftInv() {\n startAnimation(leftSubCubes(), Axis.X, Direction.CLOCKWISE);\n leftCubeSwap();\n leftCubeSwap();\n leftCubeSwap();\n }", "public void animateMovementLeft()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (leftMvt.length);\n setImage(leftMvt[imageNumber]);\n }\n }", "void initializeAnimations() {\n\n //Initialize animations\n fadein = AnimationUtils.loadAnimation(this, R.anim.fadein);\n fadeout = AnimationUtils.loadAnimation(this, R.anim.fadeout);\n recordButtonAnim = (AnimatedVectorDrawable) getDrawable(R.drawable.kids_ui_record_anim_alt);\n recordButtonNonAnim = (Drawable) getDrawable(R.drawable.kids_ui_record_circle);\n backRetrace = (AnimatedVectorDrawable) getDrawable(R.drawable.kids_ui_back_anim_retrace);\n slideout = AnimationUtils.loadAnimation(this, R.anim.slideout);\n slidein = AnimationUtils.loadAnimation(this, R.anim.slidein);\n\n //Timed handler which times the zig zag animations from the back button.\n animationBackHandler = new Handler();\n //Draw the back button 2 seconds after the activity has loaded up.\n animationBackHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n\n back.setVisibility(View.VISIBLE);\n Drawable d = back.getDrawable();\n final AnimatedVectorDrawable zigzaganim = (AnimatedVectorDrawable) d;\n zigzaganim.start();\n }\n }, 2000);\n\n //Undraw the back button\n animationBackHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n\n Drawable d = VectorDrawableCompat.create(getResources(), R.drawable.kids_ui_back, null);\n d = DrawableCompat.wrap(d);\n DrawableCompat.setTint(d, Color.WHITE);\n back.setImageDrawable(d);\n }\n }, 3000);\n }", "public void setAnimaciones( ){\n\n int x= 0;\n Array<TextureRegion> frames = new Array<TextureRegion>();\n for(int i=1;i<=8;i++){\n frames.add(new TextureRegion(atlas.findRegion(\"demon01\"), x, 15, 16, 15));\n x+=18;\n }\n this.parado = new Animation(1 / 10f, frames);//5 frames por segundo\n setBounds(0, 0, 18, 15);\n\n }", "protected abstract void animate(int anim);", "private void processStatesAnimation() {\n if(getState() == JUMPING_STATE || getState() == FALLING_STATE) {\n if(getDirection() == DIRECTION_RIGHT)\n setAnim(jumpingRight);\n else if(getDirection() == DIRECTION_LEFT)\n setAnim(jumpingLeft);\n }\n\n if(getState() == NORMAL_STATE) {\n if(getDirection() == DIRECTION_STOPPED_RIGHT)\n setAnim(standingRight);\n else if(getDirection() == DIRECTION_STOPPED_LEFT)\n setAnim(standingLeft);\n else if(getDirection() == DIRECTION_RIGHT)\n setAnim(walkingRight);\n else if(getDirection() == DIRECTION_LEFT)\n setAnim(walkingLeft);\n }\n\n if(getState() == DYING_STATE) \n setAnim(dying);\n }", "public void movement(){\n\t\t\n\t\tdelayCounter++;\n\t\t\n\t\tif(direction == Direction.RIGHT){\n\t\t\txCoor += 1;\n\t\t\tbound.x = xCoor+30;\n\t\t\t\n\t\t\tif ( image == Assets.enemySprite[0] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[1];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[1] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[2];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[2] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[0];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t}\n\t\tif(direction == Direction.LEFT){\n\t\t\txCoor -= 1;\n\t\t\tbound.x = xCoor+30;\n\t\t\t\n\t\t\tif ( image == Assets.enemySprite[3] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[4];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[4] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[5];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[5] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[3];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t}\n\t\telse if(direction == Direction.UPWARD){\n\t\t\tyCoor += 1;\n\t\t\tbound.y = yCoor+30;\n\t\t\t\n\t\t\tif ( image == Assets.enemySprite[10] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[11];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[11] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[10];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t}\n\t\telse if(direction == Direction.DOWNWARD){\n\t\t\tyCoor -= 1;\n\t\t\tbound.y = yCoor+30;\n\t\t\t\n\n\t\t\tif ( image == Assets.enemySprite[6] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[7];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[7] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[8];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[8] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[6];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tenemyWalk += 1;\n\t\t\n\t\t//This parts checks to see if the enemy has to turn or not.\n\t\tif(enemyWalk == screen.maps[screen.currentMap].path.getTileWidth()){\n\t\t\tint x = xCoor;\n\t\t\tint y = yCoor;\n\t\t\t\n\t\t\tif(direction == Direction.RIGHT){\n\t\t\t\tx = xCoor + 1;\n\t\t\t\tprevious = direction;\n\t\t\t}\n\t\t\tif(direction == Direction.LEFT){\n\t\t\t\tx = xCoor - 1;\n\t\t\t\tprevious = direction;\n\t\t\t}\n\t\t\tif(direction == Direction.UPWARD){\n\t\t\t\ty = yCoor + 1;\n\t\t\t\tprevious = direction;\n\t\t\t}\n\t\t\tif(direction == Direction.DOWNWARD){\n\t\t\t\ty = yCoor - 1;\n\t\t\t\tprevious = direction;\n\t\t\t}\n\t\t\t\n\t\t\tint tileBlockX = (int) (x/screen.maps[screen.currentMap].path.getTileWidth());\n\t\t\tint tileBlockY = (int) (y/screen.maps[screen.currentMap].path.getTileHeight());\n\t\t\t\n\t\t\t//As long as the enemy has not gone the opposite direction, the enemy will continue to move in the direction is was going originally.\n\t\t\tif(tileBlockX < screen.maps[screen.currentMap].path.getWidth()-1 && tileBlockX > 0){\n\t\t\t\tif(tileBlockY < screen.maps[screen.currentMap].path.getHeight()-1 && tileBlockY > 0){\n\t\t\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX, tileBlockY + 1).getTile().getProperties().containsKey(\"ground\") == true && previous != Direction.DOWNWARD){\n\t\t\t\t\t\tdirection = Direction.UPWARD;\n\t\t\t\t\t\timage = Assets.enemySprite[10];\n\t\t\t\t\t}\n\t\t\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX, tileBlockY - 1).getTile().getProperties().containsKey(\"ground\") == true && previous != Direction.UPWARD){\n\t\t\t\t\t\tdirection = Direction.DOWNWARD;\n\t\t\t\t\t\timage = Assets.enemySprite[6];\n\t\t\t\t\t}\n\t\t\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX + 1, tileBlockY).getTile().getProperties().containsKey(\"ground\") == true && previous != Direction.LEFT){\n\t\t\t\t\t\tdirection = Direction.RIGHT;\n\t\t\t\t\t\timage = Assets.enemySprite[0];\n\t\t\t\t\t}\n\t\t\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX - 1, tileBlockY).getTile().getProperties().containsKey(\"ground\") == true && previous != Direction.RIGHT){\n\t\t\t\t\t\tdirection = Direction.LEFT;\n\t\t\t\t\t\timage = Assets.enemySprite[3];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If the enemy makes it to the end, it is no longer in game.\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX, tileBlockY).getTile().getProperties().containsKey(\"finish\") == true){\n\t\t\t\tinGame = false;\n\t\t\t\tscreen.playerHealth--;\n\t\t\t}\n\t\t\t\n\t\t\tenemyWalk = 0;\n\t\t}\n\t}", "@Override\n\tpublic void Animate(Batch batch, float x, float y, float width, float height, float stateTime) {\n\t\tdifferenceTime = stateTime - differenceTime;\n\t\tloopTime+=differenceTime;\n\t\tif(biting){\n\t\t\tif(currentDirection == Direction.LEFT){\n\t\t\t\tbatch.draw(biteRight.getKeyFrame(loopTime, false), x, y, width, height);\n\t\t\t\tif(biteRight.isAnimationFinished(loopTime)){\n\t\t\t\t\t//entity.setCurrentState(new NormalFishState(entity));\n\t\t\t\t\tentity.setAnimationBehavior(new AnimateSimpleFish(entity, currentDirection));\n\t\t\t\t\tbiting = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbatch.draw(biteLeft.getKeyFrame(loopTime, false), x, y, width, height);\n\t\t\t\tif(biteLeft.isAnimationFinished(loopTime)){\n\t\t\t\t\t//entity.setCurrentState(new NormalFishState(entity));\n\t\t\t\t\tentity.setAnimationBehavior(new AnimateSimpleFish(entity, currentDirection));\n\t\t\t\t\tbiting = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(turning){\n\t\t\tif(currentDirection == Direction.RIGHT){\n\t\t\t\tbatch.draw(turnRight.getKeyFrame(loopTime, false), x, y, width, height);\n\t\t\t\tif(turnRight.isAnimationFinished(loopTime)){\n\t\t\t\t\tturning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbatch.draw(turnLeft.getKeyFrame(loopTime, false), x, y, width, height);\n\t\t\t\tif(turnLeft.isAnimationFinished(loopTime)){\n\t\t\t\t\tturning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(currentDirection == Direction.RIGHT){\n\t\t\t\tbatch.draw(right.getKeyFrame(stateTime), x, y, width, height);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbatch.draw(left.getKeyFrame(stateTime), x, y, width, height);\n\t\t\t}\t\n\t\t}\n\t\tdifferenceTime = stateTime;\n\t}", "protected abstract void animationLogicTemplate();", "public void act() \n {\n if(images != null)\n {\n if(animationState == AnimationState.ANIMATING)\n {\n if(animationCounter++ > delay)\n {\n animationCounter = 0;\n currentImage = (currentImage + 1) % images.length;\n setImage(images[currentImage]);\n }\n }\n else if(animationState == AnimationState.SPECIAL)\n {\n setImage(specialImage);\n }\n else if(animationState == AnimationState.RESTING)\n {\n animationState = AnimationState.FROZEN;\n animationCounter = 0;\n currentImage = 0;\n setImage(images[currentImage]);\n }\n }\n }", "public void changeDirection(int image){\n this.image = image; \n }", "public Ju(){\n\t\tsuper(STARTING_X, STARTING_Y);\n\t\tsetIsJumping(true);\n\t\tdy = STARTING_DY;\n\t\tjumpHeight = INITIAL_JUMP_HEIGHT;\n\t\thealth = STARTING_LIFE;\n\t\tisStageComplete = false;\n\t\tpoint = 0;\n\t\t//A Sound obj\n\t\t\n\t\t//LOAD THE IMAGES AND CREATE ANIMATION. #check\n\t\tBufferedImage[] rightImages = {ImageManipulator.loadImage(\"Data/Ju/stillRight.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight3.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight4.png\"), ImageManipulator.loadImage(\"Data/Ju/stillJumpRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stillJumpRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runningJumpRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runningJumpRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runningJumpRight3.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stillSitRight.png\"), ImageManipulator.loadImage(\"Data/Ju/stillUpRight.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/deadRight1.png\"), ImageManipulator.loadImage(\"Data/Ju/deadRight2.png\"), \n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/deadRight3.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight5.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight6.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight7.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight8.png\"), ImageManipulator.loadImage(\"Data/Ju/runRightNew.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin1.png\"), ImageManipulator.loadImage(\"Data/Ju/stageWin2.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin3.png\"), ImageManipulator.loadImage(\"Data/Ju/stageWin4.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin5.png\")};\n\t\t//0 == still right\n\t\t//1-4 == walk & run right\n\t\t//5-6 == still jump right\n\t\t//7-9 == running jump right\n\t\t//10 == sit right\n\t\t//11 == still up right\n\t\t//12-14 == dead right\n\t\t//15-16 17 18 == walk & run right new\n\t\t// 19-20 == walk right new\n\t\t//21-24 == win\n\t\tBufferedImage[] leftImages = {null, null, null, null, null, null, null, null, null,\n\t\t\t\tnull, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null};\n\t\tfor(int i=0; i<rightImages.length; i++){\n\t\t\tleftImages[i] = ImageManipulator.horizontalFlip(rightImages[i]);\n\t\t}\n\t\t\n\t\tstillLeft = new Animation(ANIM_TIME).addFrame(leftImages[0]);\n\t\twalkLeft = new Animation(ANIM_TIME+30).addFrame(leftImages[1]).addFrame(leftImages[4]).addFrame(leftImages[15]).addFrame(leftImages[19]).addFrame(leftImages[18]);\n\t\trunLeft = new Animation(ANIM_TIME).addFrame(leftImages[1]).addFrame(leftImages[2]).addFrame(leftImages[3]).addFrame(leftImages[4]).addFrame(leftImages[15]).addFrame(leftImages[16]).addFrame(leftImages[17]).addFrame(leftImages[18]);\n\t\tsitLeft = new Animation(ANIM_TIME).addFrame(leftImages[10]);\n\t\tstillJumpLeft = new Animation(ANIM_TIME).addFrame(leftImages[5], 300).addFrame(leftImages[6], 4000);\n\t\trunningJumpLeft = new Animation(ANIM_TIME).addFrame(leftImages[7]).addFrame(leftImages[8], 400).addFrame(leftImages[9], 4000);\n\t\tchangeLeft = new Animation(ANIM_TIME).addFrame(leftImages[1]);\n\t\tstillUpLeft = new Animation(ANIM_TIME).addFrame(leftImages[11]);\n\t\tdeadLeft = new Animation(ANIM_TIME-30).addFrame(leftImages[12], 500).addFrame(leftImages[13]).addFrame(leftImages[14], 3000);\n\t\t\n\t\tstillRight = new Animation(ANIM_TIME).addFrame(rightImages[0]);\n\t\twalkRight = new Animation(ANIM_TIME+30).addFrame(rightImages[1]).addFrame(rightImages[4]).addFrame(rightImages[15]).addFrame(rightImages[19]).addFrame(rightImages[18]);\n\t\trunRight = new Animation(ANIM_TIME).addFrame(rightImages[1]).addFrame(rightImages[2]).addFrame(rightImages[3]).addFrame(rightImages[4]).addFrame(rightImages[15]).addFrame(rightImages[16]).addFrame(rightImages[17]).addFrame(rightImages[18]);\n\t\tsitRight = new Animation(ANIM_TIME).addFrame(rightImages[10]);\n\t\tstillJumpRight = new Animation(ANIM_TIME).addFrame(rightImages[5], 300).addFrame(rightImages[6], 4000);\n\t\trunningJumpRight = new Animation(ANIM_TIME).addFrame(rightImages[7]).addFrame(rightImages[8], 400).addFrame(rightImages[9], 4000);\n\t\tchangeRight = new Animation(ANIM_TIME).addFrame(rightImages[1]);\n\t\tstillUpRight = new Animation(ANIM_TIME).addFrame(rightImages[11]);\n\t\tdeadRight = new Animation(ANIM_TIME-60).addFrame(rightImages[12], 500).addFrame(rightImages[13]).addFrame(rightImages[14], 3000);\n\t\t\n\t\tstageWin = new Animation(ANIM_TIME+60).addFrame(rightImages[0]).addFrame(rightImages[20]).addFrame(rightImages[21]).addFrame(rightImages[22]).addFrame(rightImages[23]).addFrame(rightImages[24]);\n\t\t\n\t\tsetAnimation(stillRight);\n\t\tcurrLeftAnim = walkLeft;\n\t\tcurrRightAnim = walkRight;\n\t}", "public void init()\n {\n\t Toolkit.getDefaultToolkit();\n \t\t\n \t\t//The following sets the int values\n \t\tx_pos = 125;\n \t\ty_pos = 120;\n \t\t\n \t\tx_speed = 5;\t//The x_ and y_speed values are only to be used when\n\t\ty_speed = 1; \t//the game is in gameplay mode (in other words, when\n \t\t\t\t\t\t//numClicks = 1)----\n \t\tlevel = 1;\n \t\t\n \t\txClouds1 = 0;\n\t\txClouds2 = -500;\n\t\tyBkg1 = 0;\n\t\tyBkg2 = 600;\n \t\t\n \t\t//The following sets the images\n \t\ttitleScreen = getImage (getCodeBase (), \"images/PaperAirplane.GIF\");\n\t\t\n\t\tgameBkg1 = getImage (getCodeBase (), \"images/bricks.GIF\");\n\t\tgameBkg2 = getImage (getCodeBase (), \"images/bricks.GIF\");\n\t\tgameClouds1 = getImage (getCodeBase (), \"images/clouds.GIF\");\n\t\tgameClouds2 = getImage (getCodeBase (), \"images/clouds.GIF\");\n\t\t\n\t\tplaneAngle = new Image [11];\t//This sets the planeAngle array to\n\t\t\t\t\t\t\t\t\t\t//hold 11 elements\n\t\t//The following below sets a GIF for each of the elements in the\n\t\t//planeAngle array.\n\t\tplaneAngle [0] = getImage (getCodeBase (), \"images/planeLeft5.GIF\");\n\t\tplaneAngle [1] = getImage (getCodeBase (), \"images/planeLeft4.GIF\");\n\t\tplaneAngle [2] = getImage (getCodeBase (), \"images/planeLeft3.GIF\");\n\t\tplaneAngle [3] = getImage (getCodeBase (), \"images/planeLeft2.GIF\");\n\t\tplaneAngle [4] = getImage (getCodeBase (), \"images/planeLeft1.GIF\");\n\t\tplaneAngle [5] = getImage (getCodeBase (), \"images/planeDown.GIF\");\n\t\tplaneAngle [6] = getImage (getCodeBase (), \"images/planeRight1.GIF\");\n\t\tplaneAngle [7] = getImage (getCodeBase (), \"images/planeRight2.GIF\");\n\t\tplaneAngle [8] = getImage (getCodeBase (), \"images/planeRight3.GIF\");\n\t\tplaneAngle [9] = getImage (getCodeBase (), \"images/planeRight4.GIF\");\n\t\tplaneAngle [10] = getImage (getCodeBase (), \"images/planeRight5.GIF\");\n\t\t\n\t\tleftWall = getImage (getCodeBase (), \"images/leftWall.GIF\");\n\t\trightWall = getImage (getCodeBase (), \"images/rightWall.GIF\");\n\t\t\n\t\t//The following sets the audio\n\t\tlevelSong = getAudioClip (getCodeBase (), \"audio/level.au\");\n\t\thitWall = getAudioClip (getCodeBase (), \"audio/hitWall.au\");\n\t\topening = getAudioClip (getCodeBase (), \"audio/exitbike.au\");\n\t\tstageIntro = getAudioClip (getCodeBase (), \"audio/stageIntro.au\");\n\t\tstageSong = getAudioClip (getCodeBase (), \"audio/stageSong.au\");\n\t\t\n\t\t//The following sets up the GamePlay Classes\n\t\tw = new Wall [4];\t//sets the Wall array w to have 4 elements\n\t\t\n\t\tw[0] = new Wall (50, 200, 200, 50);\t //Is a platform located on the left\n\t\t\t\t\t\t\t\t\t\t\t //side of the screen.\n\t\tw[1] = new Wall (250, 450, 200, 50); //Is a platform located on the\n\t\t\t\t\t\t\t\t\t\t\t //right side of the screen.\n\t\tw[2] = new Wall (50, 700, 200, 50);\t //Is a platform located on the left\n\t\t\t\t\t\t\t\t\t\t\t //side of the screen.\n\t\tw[3] = new Wall (250, 950, 200, 50); //Is a platform located on the\n\t\t\t\t\t\t\t\t\t\t\t //right side of the screen.\n\t\t\n\t\tsW = new SideWall [4];\t//sets the SideWall array sW to have 4 elements\n\t\t\n\t\tsW[0] = new SideWall (0, 0, 50, 600);\t\t//Is the left wall\n\t\tsW[1] = new SideWall (450, 0, 50, 600);\t//Is the right wall\n\t\tsW[2] = new SideWall (0, 600, 50, 600);\t//Is the left wall\n\t\tsW[3] = new SideWall (450, 600, 50, 600);\t//Is the right wall\n\t\t\n\t\tscore = new Score ();\n\t\thighScore = new Score ();\n\t\t\n\t\ttime = new Timer ();\n\t\tbestTime = new Timer ();\n\t\t\n \t\tp = new PaperAirplane (x_pos, y_pos);\n\t\t\n\t\t//The following sets up the fonts\n\t\tfTitle = new Font (\"titleStyle\", Font.BOLD, 25);\n\t\tfPressAny = new Font (\"pressStartStyle\", Font.PLAIN, 12);\n\t\tfGameOver = new Font (\"gameOverStyle\", Font.ITALIC, 50);\n\t\tfScore = new Font (\"scoreStyle\", Font.BOLD, 15);\n\t\tfCreditNames = new Font (\"creditStyle\", Font.BOLD, 20);\n\t\t\n\t\t//The following sets up the coordinate arrays\n\t\txPoints = p.getXPoints ();\n\t\tyPoints = p.getYPoints ();\n }", "@Override\n public void aPressed() {\n if (currAnimation == Animation.CROUCHING) {\n currFrame = 0;\n counter = 0; // (to begin the sliding time count)\n setAnimation(Animation.SLIDING);\n dx = (facingLeft) ? -2 : 2;\n }\n }", "public Image getCrotchetDown();", "public void render(SpriteBatch sb) {\n stateTime += Gdx.graphics.getDeltaTime();\n // Get current frame of animation for the current stateTime\n TextureRegion tr;\n if (isMovingLeft) tr = model.animations.get(\"left\").getKeyFrame(stateTime, true);\n else if (isMovingRight) tr = model.animations.get(\"right\").getKeyFrame(stateTime, true);\n else if (isMovingUp) tr = model.animations.get(\"up\").getKeyFrame(stateTime, true);\n else if (isMovingDown) tr = model.animations.get(\"down\").getKeyFrame(stateTime, true);\n else tr = model.animations.get(direction.name().toLowerCase()).getKeyFrame(2);\n sb.draw(tr, x, y, width, height);\n }", "public Animation get_anim(String anim_name) {\n\n\t\tArrayList<Integer> dur_list;\n\t\tArrayList<Image> image_list;\n\t\tswitch (anim_name) {\n\t\tcase \"fly\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"f1\"));\n\t\t\timage_list.add(get_image(\"f2\"));\n\t\t\timage_list.add(get_image(\"f3\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(50);\n\t\t\tdur_list.add(50);\n\t\t\tdur_list.add(50);\n\t\t\tbreak;\n\t\tcase \"grub_right\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"gr1\"));\n\t\t\timage_list.add(get_image(\"gr2\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(100);\n\t\t\tdur_list.add(100);\n\t\t\tbreak;\n\t\tcase \"grub_left\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"gl1\"));\n\t\t\timage_list.add(get_image(\"gl2\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(100);\n\t\t\tdur_list.add(100);\n\t\t\tbreak;\n\t\tcase \"mario_run_left\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"ml1\"));\n\t\t\timage_list.add(get_image(\"ml2\"));\n\t\t\timage_list.add(get_image(\"ml3\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(200);\n\t\t\tdur_list.add(200);\n\t\t\tdur_list.add(200);\n\t\t\tbreak;\n\t\tcase \"mario_run_right\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"mr1\"));\n\t\t\timage_list.add(get_image(\"mr2\"));\n\t\t\timage_list.add(get_image(\"mr3\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(200);\n\t\t\tdur_list.add(200);\n\t\t\tdur_list.add(200);\n\t\t\tbreak;\n\t\tcase \"mario_still_left\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"mls\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(200);\n\t\t\tbreak;\n\t\tcase \"mario_still_right\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"mrs\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(200);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(anim_name));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(50);\n\t\t}\n\t\treturn new Animation(image_list, dur_list);\n\t}", "public void move(){\n\t\tswitch(state){\r\n\t\t\tcase ATField.SPRITE_STAND:\r\n\t\t\t\tspriteX = 0;\r\n\t\t\t\tcoords = standbySprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\r\n\t\t\tcase ATField.SPRITE_WALK:\r\n\t\t\t\tif(spriteX >walkSprite.size() - 1){\r\n\t\t\t\t\tspriteX = 0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcoords = walkSprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase ATField.SPRITE_RUN:\r\n\t\t\t\t\r\n\t\t\t\tif(spriteX >runSprite.size() - 1){\r\n\t\t\t\t\tspriteX = 0;\r\n\t\t\t\t\tsetState(STAND);\r\n\t\t\t\t}\r\n\t\t\t\tcoords = runSprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase ATField.SPRITE_JUMP:\r\n\t\t\t\tif(spriteX >5){\r\n\t\t\t\t\tsetState(STAND);\r\n\t\t\t\t}\r\n\t\t\t\tcoords = jumpSprite.get(0);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void updateImage() {\n \t\tAnimation anim = this.animationCollection.at(\n \t\t\t\tfak.getCurrentAnimationTextualId());\n \n \t\t// if animation is set to something bad, then set it to back to initial\n \t\tif(anim==null)\n \t\t{\n \t\t\tfak.setCurrentAnimationTextualId(ConstantsForAPI.INITIAL);\n \t\t\tanim = this.animationCollection.at(\n \t\t\t\t\tfak.getCurrentAnimationTextualId());\n \t\t}\n \n \t\tif(anim==null)\n \t\t{\n \t\t\tanim = this.animationCollection.at(0);\n \t\t\tfak.setCurrentAnimationTextualId(anim.getTextualId());\n \t\t}\n \n \t\tif (anim != null) {\n \t\t\tif (fak.getCurrentFrame()\n \t\t\t\t\t>= anim.getLength()) {\n \t\t\t\tfak.setCurrentFrame(\n \t\t\t\t\t\tanim.getLength() - 1);\n \t\t\t}\n \n \t\t\tcom.github.a2g.core.objectmodel.Image current = anim.getImageAndPosCollection().at(\n \t\t\t\t\tfak.getCurrentFrame());\n \n \t\t\t// yes current can equal null in some weird cases where I place breakpoints...\n \t\t\tif (current != null\n \t\t\t\t\t&& !current.equals(this)) {\n \t\t\t\tif (this.currentImage != null) {\n \t\t\t\t\tthis.currentImage.setVisible(\n \t\t\t\t\t\t\tfalse, new Point(this.left,this.top));\n \t\t\t\t}\n \t\t\t\tthis.currentImage = current;\n \t\t\t}\n \t\t}\n \t\t// 2, but do this always\n \t\tif (this.currentImage != null) {\n \t\t\tthis.currentImage.setVisible(\n \t\t\t\t\tthis.visible, new Point(this.left,\n \t\t\t\t\t\t\tthis.top));\n \t\t}\n \n \t}", "void front() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.CLOCKWISE);\n frontCubeSwap();\n }", "@Override\n\tpublic void draw() {\n\t\tfloat delta = Gdx.graphics.getDeltaTime();\n\t\ti+= delta;\n\t\timage.setRegion(animation.getKeyFrame(i, true));\n\t\t//this.getSpriteBatch().draw(animation.getKeyFrame(i, true), 0, 0);\n\t\t\n\t\tGdx.app.log(\"tag\", \"delta = \" + i);\n\t\t\n\t\tsuper.draw();\n\t}", "private void MoveImage(View view) {\n viewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\r\n @Override\r\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\r\n\r\n }\r\n\r\n @Override\r\n public void onPageSelected(int position) {\r\n int one = gapWidth + bmWidth;\r\n int two = gapWidth + bmWidth * 2;\r\n int three = gapWidth + bmWidth * 3;\r\n\r\n\r\n// private int bmpw = 0; // 游标宽度\r\n// private int offset = 0;// // 动画图片偏移量\r\n// int one = bmWidth * 2 + bmWidth;// 页卡1 -> 页卡2 偏移量\r\n// int two = one * 2;// 页卡1 -> 页卡3 偏移量\r\n //int one = offset * 2 + bmpw;// 页卡1 -> 页卡2 偏移量\r\n //int two = one * 2;// 页卡1 -> 页卡3 偏移量\r\n\r\n Animation animation = null;\r\n switch (position) {\r\n case 0: {\r\n\r\n if (beforeItem == 1) {\r\n animation = new TranslateAnimation(bmWidth, 0, 0, 0);\r\n } else {\r\n animation = new TranslateAnimation(bmWidth*2, 0, 0, 0);\r\n }\r\n animation.setDuration(200);//设置动画的持续时间\r\n animation.setFillAfter(true);//让动画停止在结束位置\r\n fragmentMainLine.startAnimation(animation);\r\n beforeItem = position;\r\n mainScreen.setVisibility(View.GONE);\r\n fragmentMainLine.setVisibility(View.VISIBLE);\r\n // Log.e(\"==case 0==beforeItem===\",beforeItem+\"\");\r\n break;\r\n }\r\n case 1: {\r\n //Log.e(\"==case 1==qian===\",beforeItem+\"\");\r\n if (beforeItem == 0) {\r\n animation = new TranslateAnimation(0, bmWidth, 0, 0);\r\n } else {\r\n animation = new TranslateAnimation(bmWidth*2, bmWidth, 0, 0);\r\n }\r\n animation.setDuration(200);//设置动画的持续时间\r\n animation.setFillAfter(true);//让动画停止在结束位置\r\n fragmentMainLine.startAnimation(animation);\r\n beforeItem = position;\r\n\r\n fragmentMainLine.clearAnimation();\r\n fragmentMainLine.invalidate();\r\n fragmentMainLine.setVisibility(View.INVISIBLE);\r\n mainScreen.setVisibility(View.VISIBLE);\r\n\r\n break;\r\n }\r\n case 2: {\r\n\r\n if (beforeItem == 0) {\r\n animation = new TranslateAnimation(0, bmWidth*2, 0, 0);\r\n } else {\r\n animation = new TranslateAnimation(bmWidth, bmWidth*2, 0, 0);\r\n }\r\n animation.setDuration(200);//设置动画的持续时间\r\n animation.setFillAfter(true);//让动画停止在结束位置\r\n fragmentMainLine.startAnimation(animation);\r\n beforeItem = position;\r\n mainScreen.setVisibility(View.GONE);\r\n fragmentMainLine.setVisibility(View.VISIBLE);\r\n Log.e(\"==case 2==beforeItem===\",beforeItem+\"\");\r\n break;\r\n }\r\n }\r\n /* animation.setDuration(200);//设置动画的持续时间\r\n animation.setFillAfter(true);//让动画停止在结束位置\r\n imageView.startAnimation(animation);\r\n beforeItem=position;*/\r\n }\r\n\r\n @Override\r\n public void onPageScrollStateChanged(int state) {\r\n\r\n }\r\n });\r\n\r\n }", "@Override\n\tpublic void onAnimationStart(Animator arg0) {\n\t\tif (mState.getState() != 0) {\n\t\t\tGBTools.GBsetAlpha(bv, 0.0F);\n\t\t\tbv.setState(mState.getState());\n\t\t\tbv.setPressed(false);\n\t\t}\n\t\tbv.bringToFront();\n\t\tmBoardView.invalidate();\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\tint one = offset * 2 + bmpW;// 页卡1 -> 页卡2 偏移量\n\t\tint two = one * 2;// 页卡1 -> 页卡3 偏移量\n\t\t\n\t\tAnimation animation = new TranslateAnimation(one * currIndex, one * arg0, 0, 0);// 显然这个比较简洁,只有一行代码。\n\t\t\n\t\tanimation.setFillAfter(true);// True:图片停在动画结束位置\n\t\tanimation.setDuration(300);\n\t\timageView.startAnimation(animation);\n\t\t\n\t\tchosenTwoLevelTVColor(arg0);\n\t\t\n\t\tif(arg0 == 0){\n\t\t\tbatchAudit.setVisibility(View.VISIBLE);\n\t\t\tbatchReturn.setVisibility(View.VISIBLE);\n\t\t}else if(arg0 == 1){\n\t\t\tbatchAudit.setVisibility(View.GONE);\n\t\t\tbatchReturn.setVisibility(View.GONE);\n\t\t}\n\t\t\n\t\tcurrIndex = arg0;\n\t}", "protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }", "public MyAnimation getRearSprite();", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "public void apply(com.esotericsoftware.spine.Skeleton r27) {\n /*\n r26 = this;\n r0 = r26;\n r7 = r0.events;\n r0 = r26;\n r2 = r0.listeners;\n r0 = r2.size;\n r23 = r0;\n r20 = 0;\n L_0x000e:\n r0 = r26;\n r2 = r0.tracks;\n r2 = r2.size;\n r0 = r20;\n if (r0 < r2) goto L_0x0019;\n L_0x0018:\n return;\n L_0x0019:\n r0 = r26;\n r2 = r0.tracks;\n r0 = r20;\n r17 = r2.get(r0);\n r17 = (com.esotericsoftware.spine.AnimationStatePR.TrackEntry) r17;\n if (r17 != 0) goto L_0x002a;\n L_0x0027:\n r20 = r20 + 1;\n goto L_0x000e;\n L_0x002a:\n r2 = 0;\n r7.size = r2;\n r0 = r17;\n r5 = r0.time;\n r0 = r17;\n r4 = r0.lastTime;\n r0 = r17;\n r0 = r0.endTime;\n r18 = r0;\n r0 = r17;\n r6 = r0.loop;\n if (r6 != 0) goto L_0x0047;\n L_0x0041:\n r2 = (r5 > r18 ? 1 : (r5 == r18 ? 0 : -1));\n if (r2 <= 0) goto L_0x0047;\n L_0x0045:\n r5 = r18;\n L_0x0047:\n r0 = r17;\n r0 = r0.previous;\n r25 = r0;\n r0 = r17;\n r2 = r0.mixDuration;\n r3 = 0;\n r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x018b;\n L_0x0056:\n r0 = r17;\n r2 = r0.mixTime;\n r0 = r17;\n r3 = r0.mixDuration;\n r8 = r2 / r3;\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1));\n if (r2 < 0) goto L_0x006d;\n L_0x0066:\n r8 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = 0;\n r0 = r17;\n r0.mixDuration = r2;\n L_0x006d:\n if (r25 != 0) goto L_0x00e0;\n L_0x006f:\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.mix(r3, r4, r5, r6, r7, r8);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r9 = \"none -> \";\n r3.<init>(r9);\n r0 = r17;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \": \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n L_0x009a:\n r21 = 0;\n r0 = r7.size;\n r24 = r0;\n L_0x00a0:\n r0 = r21;\n r1 = r24;\n if (r0 < r1) goto L_0x0196;\n L_0x00a6:\n if (r6 == 0) goto L_0x01d1;\n L_0x00a8:\n r2 = r4 % r18;\n r3 = r5 % r18;\n r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x00d6;\n L_0x00b0:\n r2 = r5 / r18;\n r0 = (int) r2;\n r16 = r0;\n r0 = r17;\n r2 = r0.listener;\n if (r2 == 0) goto L_0x00c6;\n L_0x00bb:\n r0 = r17;\n r2 = r0.listener;\n r0 = r20;\n r1 = r16;\n r2.complete(r0, r1);\n L_0x00c6:\n r21 = 0;\n r0 = r26;\n r2 = r0.listeners;\n r0 = r2.size;\n r24 = r0;\n L_0x00d0:\n r0 = r21;\n r1 = r24;\n if (r0 < r1) goto L_0x01db;\n L_0x00d6:\n r0 = r17;\n r2 = r0.time;\n r0 = r17;\n r0.lastTime = r2;\n goto L_0x0027;\n L_0x00e0:\n r0 = r25;\n r11 = r0.time;\n r0 = r25;\n r2 = r0.loop;\n if (r2 != 0) goto L_0x00f6;\n L_0x00ea:\n r0 = r25;\n r2 = r0.endTime;\n r2 = (r11 > r2 ? 1 : (r11 == r2 ? 0 : -1));\n if (r2 <= 0) goto L_0x00f6;\n L_0x00f2:\n r0 = r25;\n r11 = r0.endTime;\n L_0x00f6:\n r0 = r17;\n r2 = r0.animation;\n if (r2 != 0) goto L_0x0144;\n L_0x00fc:\n r0 = r25;\n r9 = r0.animation;\n r0 = r25;\n r13 = r0.loop;\n r14 = 0;\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r15 = r2 - r8;\n r10 = r27;\n r12 = r11;\n r9.mix(r10, r11, r12, r13, r14, r15);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r0 = r25;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \" -> none: \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n L_0x012f:\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1));\n if (r2 < 0) goto L_0x009a;\n L_0x0135:\n com.badlogic.gdx.utils.Pools.free(r25);\n r2 = 0;\n r0 = r17;\n r0.previous = r2;\n r2 = 0;\n r0 = r17;\n r0.mixDuration = r2;\n goto L_0x009a;\n L_0x0144:\n r0 = r25;\n r9 = r0.animation;\n r0 = r25;\n r13 = r0.loop;\n r14 = 0;\n r10 = r27;\n r12 = r11;\n r9.apply(r10, r11, r12, r13, r14);\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.mix(r3, r4, r5, r6, r7, r8);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r0 = r25;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \" -> \";\n r3 = r3.append(r9);\n r0 = r17;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \": \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n goto L_0x012f;\n L_0x018b:\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.apply(r3, r4, r5, r6, r7);\n goto L_0x009a;\n L_0x0196:\n r0 = r21;\n r19 = r7.get(r0);\n r19 = (com.esotericsoftware.spine.Event) r19;\n r0 = r17;\n r2 = r0.listener;\n if (r2 == 0) goto L_0x01af;\n L_0x01a4:\n r0 = r17;\n r2 = r0.listener;\n r0 = r20;\n r1 = r19;\n r2.event(r0, r1);\n L_0x01af:\n r22 = 0;\n L_0x01b1:\n r0 = r22;\n r1 = r23;\n if (r0 < r1) goto L_0x01bb;\n L_0x01b7:\n r21 = r21 + 1;\n goto L_0x00a0;\n L_0x01bb:\n r0 = r26;\n r2 = r0.listeners;\n r0 = r22;\n r2 = r2.get(r0);\n r2 = (com.esotericsoftware.spine.AnimationStatePR.AnimationStateListener) r2;\n r0 = r20;\n r1 = r19;\n r2.event(r0, r1);\n r22 = r22 + 1;\n goto L_0x01b1;\n L_0x01d1:\n r2 = (r4 > r18 ? 1 : (r4 == r18 ? 0 : -1));\n if (r2 >= 0) goto L_0x00d6;\n L_0x01d5:\n r2 = (r5 > r18 ? 1 : (r5 == r18 ? 0 : -1));\n if (r2 < 0) goto L_0x00d6;\n L_0x01d9:\n goto L_0x00b0;\n L_0x01db:\n r0 = r26;\n r2 = r0.listeners;\n r0 = r21;\n r2 = r2.get(r0);\n r2 = (com.esotericsoftware.spine.AnimationStatePR.AnimationStateListener) r2;\n r0 = r20;\n r1 = r16;\n r2.complete(r0, r1);\n r21 = r21 + 1;\n goto L_0x00d0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.esotericsoftware.spine.AnimationStatePR.apply(com.esotericsoftware.spine.Skeleton):void\");\n }", "protected void animate(GreenfootImage[] images, int currentFrame)\n {\n setImage(images[currentFrame]);\n }", "Animation getStructure();", "public boolean isForward()\n {\n return (state == AnimationState.FORWARD);\n }", "public void moveBack(double x, double y) {\n Media moveBack = new Media(String.valueOf(main.class.getResource(\"file/Critical.wav\")));\n MediaPlayer moveBackPlayer = new MediaPlayer(moveBack);\n moveBackPlayer.play();\n GameEngine gameEngine = new GameEngine();\n gameEngine.turn();\n PathTransition pt = new PathTransition(Duration.seconds(1), new Line(this.getImageView().getX() + getPixel() / 2, this.getImageView().getY() + getPixel() / 2, x + getPixel() / 2, y + getPixel() / 2), getImageView());\n pt.setAutoReverse(true);\n pt.setCycleCount(2);\n for (Rectangle rectangle : new MakeGame().getTable())\n rectangle.setEffect(new Glow(0));\n pt.play();\n }", "@Override\n\tpublic void update() {\n\t\tif(!canSwoop)\n\t\tif(System.currentTimeMillis() - lastAnim >= 200){\t\n\t\t\tif(currentAnim < 2){\n\t\t\t\tcurrentAnim++;\n\t\t\t} else {\n\t\t\t\tcurrentAnim = 0;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"ANIMATING image: \" + currentAnim);\n\t\t\tlastAnim = System.currentTimeMillis();\t\t\n\t\t\t}\n\t\t\n\t\tthis.texture = Assets.shadowAnim[currentAnim];\n\t}", "public void movbolitas() {\n x += vx;\n y += vy;\n if (x > width || x < 0) {\n vx *= -1;\n }\n if (y > height || y < 0) {\n vy *= -1;\n }\n }", "public void gingerbreadMan ()\n {\n\tColor cookieBrown = new Color (204, 102, 0);\n\tColor cookieDarkBrown = new Color (170, 85, 0);\n\tColor offWhite = new Color (255, 250, 205);\n\tColor darkBrown = new Color (255, 250, 205);\n\tColor pink = new Color (250, 128, 114);\n\tColor blue = new Color (74, 206, 244);\n\tColor darkGreen = new Color (119, 119, 0);\n\n\n\t//for loop to animate the gingerbread man running forward\n\tfor (int y = 0 ; y < 530 ; y++)\n\t{\n\t //erase\n\t c.setColor (darkGreen);\n\t c.fillRect (-106 + y, 340, 106, 120);\n\t //left arm\n\t c.setColor (cookieBrown);\n\t for (int x = 0 ; x < 20 ; x++)\n\t {\n\t\tc.drawLine (-95 + y, 390 - x, -60 + y, 395 - x);\n\t }\n\t c.fillOval (-105 + y, 371, 20, 20);\n\t //right arm\n\t c.setColor (cookieDarkBrown);\n\t for (int x = 0 ; x < 20 ; x++)\n\t {\n\t\tc.drawLine (-50 + y, 400 - x, -10 + y, 390 - x);\n\t }\n\t c.fillOval (-20 + y, 371, 20, 20);\n\t //left leg\n\t for (int x = 0 ; x < 20 ; x++)\n\t {\n\t\tc.drawLine (-45 + y, 430 - x, -90 + y, 445 - x);\n\t }\n\t c.fillOval (-100 + y, 425, 20, 20);\n\t c.setColor (cookieBrown);\n\t //right leg\n\t for (int x = 0 ; x < 20 ; x++)\n\t {\n\t\tc.drawLine (-65 + x + y, 430, -50 + x + y, 450);\n\t }\n\t c.fillOval (-50 + y, 440, 20, 20);\n\t //head\n\t c.fillOval (-70 + y, 340, 40, 40);\n\t //body\n\t c.setColor (cookieBrown);\n\t c.fillOval (-75 + y, 375, 40, 60);\n\t //facial features\n\t c.setColor (Color.black);\n\t c.fillOval (-50 + y, 353, 3, 5);\n\t c.fillOval (-40 + y, 355, 3, 5);\n\t c.drawArc (-55 + y, 355, 20, 15, 190, 120);\n\t c.setColor (pink);\n\t c.fillOval (-58 + y, 358, 7, 7);\n\t c.fillOval (-38 + y, 362, 7, 7);\n\t c.setColor (offWhite);\n\t //left eyebrow\n\t for (int x = 0 ; x < 5 ; x++)\n\t {\n\t\tc.drawArc (-60 + x + y, 346, 20, 20, 110, 40);\n\t }\n\t //limb features of white icing\n\t for (int x = 0 ; x < 5 ; x++)\n\t {\n\t\t//right hand\n\t\tc.drawArc (-15 - x + y, 370, 20, 20, 150, 90);\n\t\t//left hand\n\t\tc.drawArc (-115 + x + y, 371, 20, 20, 320, 90);\n\t\t//right leg\n\t\tc.drawArc (-45 + y, 445 - x, 20, 20, 100, 80);\n\t\t//left leg\n\t\tc.drawArc (-110 + x + y, 425, 20, 20, 320, 80);\n\t }\n\t //candy buttons\n\t c.setColor (blue);\n\t c.fillOval (-50 + y, 390, 7, 7);\n\t c.fillOval (-50 + y, 400, 7, 7);\n\t //to delay the animation\n\t try\n\t {\n\t\tsleep (1);\n\t }\n\t catch (Exception e)\n\t {\n\t }\n\n\n\t}\n\n }", "public void updateState(boolean gameDone){\r\n if (animation == 0) {\r\n if (this.state==this.color){\r\n if (this.travel!=0)\r\n this.state=this.color+256;\r\n else\r\n if (idle_counter == 3)\r\n this.state=this.color+264;\r\n }\r\n else if (this.state>=16) {\r\n if (this.state<=31) {\r\n if (this.state+8>31 && !gameDone)\r\n this.state=this.color;\r\n else {\r\n this.state += 8;\r\n }\r\n }\r\n else if (this.state<=63){\r\n if (this.state+8<=63)\r\n this.state+=8;\r\n }\r\n else if (this.state <= 103){\r\n if (this.state + 8 > 103)\r\n this.state=this.color;\r\n else\r\n this.state += 8;\r\n }\r\n else if (this.state<=159){\r\n if (this.state+8>159)\r\n this.state=this.color;\r\n else\r\n this.state += 8;\r\n }\r\n else if (this.state<=255){\r\n if (this.state + 8 > 255) \r\n this.state = this.color;\r\n else\r\n this.state += 8;\r\n if (this.state>=184 && this.state<=199)\r\n this.positionY-=7;\r\n else if (this.state>=208 && this.state<=223)\r\n this.positionY+=7;\r\n }\r\n else if (this.state<264)\r\n this.state=this.color;\r\n else if (idle_counter==3)\r\n this.state=this.color; \r\n }\r\n }\r\n if (idle_counter==3)\r\n idle_counter=0;\r\n if (animation >= 4 && !gameDone) {\r\n animation = 0;\r\n idle_counter++;\r\n }\r\n //creates a slowmo effect once the game is done\r\n else if (animation==18 && gameDone){\r\n animation = 0;\r\n idle_counter++;\r\n }\r\n else \r\n animation++;\r\n \r\n }", "public Image getQuaverUp();", "private void readAndEditFrame()\n\t{\n\t\tmirror();\n\t\tinvert();\n\t\tgreenScreen();\n\t\tbackgroundSubtraction();\n\t}", "private void initBow()\n {\n bowLeft = AnimCreator.loadImage(bowLeftPath);\n bowRight = bowLeft.getFlippedCopy(true, false);\n currentBow = bowLeft;\n }", "boolean updateFrame() {\n counter++; // update the counter every time this method is called\n switch (currAnimation) {\n case STANDING:\n case CROUCHING:\n if (currFrame == 1) {\n if (counter > BLINK_TIME) {\n currFrame = 0; // open Kirby's eyes\n counter = 0;\n return true;\n } else {\n return false;\n }\n } else if (currFrame == 0 && counter > noBlinkPeriod) {\n currFrame = 1; // change to a blinking state (eyes closed)\n noBlinkPeriod = (int) (Math.random() * 750) + 50;\n counter = 0;\n return true;\n } else {\n currFrame = 0;\n return true;\n }\n case WALKING:\n case RUNNING:\n return nextFrame();\n case FLOATING:\n if (inAir) {\n return nextFrame();\n } else {\n dy = 0;\n if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n setAnimation(Animation.STANDING);\n }\n return true;\n }\n case FALLING:\n if (inAir) {\n if (currFrame < 6) { \n // 6 is the last frame of the falling animation\n return nextFrame(); \n } else { return false; }\n } else {\n dy = 0;\n if (downKeyPressed) {\n setAnimation(Animation.CROUCHING);\n currFrame = 0;\n } else if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n dx = 0;\n setAnimation(Animation.STANDING);\n }\n return true;\n }\n case SLIDING:\n if (counter > SLIDING_TIME) {\n dx = 0;\n if (downKeyPressed) {\n setAnimation(Animation.CROUCHING);\n } else if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n setAnimation(Animation.STANDING);\n }\n \n return true;\n } else { return false; }\n case ENTERING:\n if (currFrame < 3) {\n // 3 being the final frame of the ENTERING animation\n return nextFrame();\n } else if (currFrame == 3) {\n entered = true; // signal that Kirby has entered the door\n return false; // then return false, since the animation didn't change\n } else { return false; }\n default:\n return false;\n }\n }", "public void mo14071a(int i, float f) {\n View m = mo23948m();\n if (m != null) {\n float f2 = i == 1 ? f : i == 2 ? 1.0f : 0.0f;\n this.f15642X.setRotation(9.0f * f2);\n float f3 = (f2 * 0.205f) + 1.0f;\n this.f15641W.setScaleX(f3);\n this.f15641W.setScaleY(f3);\n float f4 = i == 0 ? 1.0f - f : 0.0f;\n this.f15638T.setRotation(-9.0f * f4);\n float f5 = (f4 * 0.205f) + 1.0f;\n this.f15637S.setScaleX(f5);\n this.f15637S.setScaleY(f5);\n if (this.f15656l0) {\n if (f == 0.0f && (i == 0 || i == 2)) {\n this.f15656l0 = false;\n } else {\n return;\n }\n }\n if (i != 1) {\n f = 1.0f - f;\n }\n float f6 = 1.0f - f;\n float f7 = (0.205f * f6) + 1.0f;\n this.f15639U.setScaleX(f7);\n this.f15639U.setScaleY(f7);\n float f8 = (float) ((int) (((float) f15633z0) * f));\n this.f15643Y.setTranslationY(f8);\n this.f15643Y.setAlpha(f6);\n this.f15639U.setTranslationY(f8);\n int measuredWidth = (m.getMeasuredWidth() / 2) - f15630A0;\n int i2 = f15632y0;\n int i3 = (int) (((float) ((measuredWidth - i2) - (i2 / 2))) * f);\n this.f15637S.setTranslationX((float) i3);\n this.f15641W.setTranslationX((float) (-i3));\n this.f15664t0.onViewPagerScrolled(f, f15633z0);\n }\n }", "protected void createFrames() {\n createStandingRight();\n createStandingLeft();\n createWalkingRight();\n createWalkingLeft();\n createJumpingRight();\n createJumpingLeft();\n createDying();\n }", "public void flip() {\n\t\t\tif (showing.getImage() == faceUp) {\n\t\t\t\tshowing.setImage(FACE_DOWN);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tshowing.setImage(faceUp);\n\t\t\t}\n\t\t}", "@Test\n\tpublic void animationTest() {\n\t\t\n\t\tMap<Direction, TimeAnimation> animationMap = Player.makePlayerAnimation(PlayerType.CAVEMAN.name(), \n\t\t\t\tPlayerState.IDLE, 1, 1, null);\n\t\t\n\t\t// Test setting idle animation to north\n\t\tarcher.setAnimation(animationMap.get(Direction.N));\n\t\t\n\t\t// Test setting idle animation to south\n\t\tarcher.setAnimation(animationMap.get(Direction.S));\n\t\t\t\t\n\t\t// Test setting idle animation to south west\n\t\tarcher.setAnimation(animationMap.get(Direction.SW));\n\t}", "protected abstract float getFrameTimeNormalAnimation();", "void right() {\n startAnimation(rightSubCubes(), Axis.X, Direction.CLOCKWISE);\n rightCubeSwap();\n }", "public void animationTrans() {\n float unitAngle;\n if (type == CIRCLE) {\n unitAngle = (float) 360 / defaultCount;\n } else {\n unitAngle = 45f;\n }\n final float oldAngle = mAngle;\n float nAngle = mAngle % actualAngle;\n float gapAngle = (float) (nAngle / unitAngle) - (int) (nAngle / unitAngle);\n\n final float willAngle;\n if (type == CIRCLE) {\n willAngle = (float) ((0.5 - gapAngle) * unitAngle);\n } else {\n if (gapAngle < 0.5) {\n willAngle = (float) ((0 - gapAngle) * unitAngle);\n } else {\n willAngle = (float) ((1 - gapAngle) * unitAngle);\n }\n }\n Animation a = new Animation() {\n\n @Override\n protected void applyTransformation(float interpolatedTime, Transformation t) {\n\n mAngle = oldAngle + willAngle * interpolatedTime;\n\n requestLayout();\n }\n\n @Override\n public boolean willChangeBounds() {\n return true;\n }\n };\n\n a.setDuration(200);\n startAnimation(a);\n }", "public void moveBack() {\r\n\t\tsetY(getY() - 134);\r\n\t\tmyImage = myImage.getScaledInstance(100, 100, 60);\r\n\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == this.time){\r\n\t\t\tint value = this.progress.getValue();\r\n\t\t\tif(value > 0){\r\n\t\t\t\tvalue --;\r\n\t\t\t\tthis.progress.setValue(value);\r\n\t\t\t}else{\r\n\t\t\t\tthis.time.stop();\r\n\t\t\t}\r\n\t\t}\r\n\t\t////////////////////////////////////////////////////////////////////////\r\n\t\t//******************************88锟剿碉拷锟斤拷********************************\t\r\n\t\tif(e.getSource() == this.item11){\r\n\t\t\tthis.init();\r\n\t\t}\r\n\t\t\r\n\t\tif(e.getSource() == this.item12){\r\n\t\t\tthis.style = \"animal/\";\r\n\t\t\tthis.init();\r\n\t\t}\r\n\t\t\r\n\t\tif(e.getSource() == this.item13){\r\n\t\t\tthis.style = \"18/\";\r\n\t\t\tthis.init();\r\n\t\t}\r\n\t\t\r\n\t\tif(e.getSource() == this.item14){\r\n\t\t\tthis.init();\r\n\t\t}\r\n\t\t\r\n\t\tif(e.getSource() == this.item15){\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tif(e.getSource() == this.item21){\r\n\t\t\tStringBuilder msg = new StringBuilder();\r\n\t\t\tmsg.append(\"Puzzle.\\n\\n\");\r\n\t\t\tmsg.append(\"Zhu Linfeng, from Huzzhong University,China\\n\");\r\n\t\t\tmsg.append(\"contact with me : 1453065649@qq.com\\n\");\r\n\t\t\tmsg.append(\" 2013-3-25\");\r\n\t\t\tJOptionPane.showMessageDialog(null, msg);\r\n\t\t}\r\n\t}", "public void m14905h() {\n if (this.f8729r != null) {\n startAnimation(this.f8729r);\n } else if (C3264k.m14943a()) {\n m14909j();\n } else {\n Animation loadAnimation = AnimationUtils.loadAnimation(this.f8713b, C3259a.fscv_fade_in);\n loadAnimation.setFillAfter(true);\n loadAnimation.setAnimationListener(new AnimationListener() {\n public void onAnimationRepeat(Animation animation) {\n }\n\n public void onAnimationStart(Animation animation) {\n }\n\n public void onAnimationEnd(Animation animation) {\n if (C3243f.this.f8731t != null) {\n C3243f.this.f8731t.mo10411a();\n }\n }\n });\n startAnimation(loadAnimation);\n }\n }" ]
[ "0.6415181", "0.64096016", "0.6272949", "0.62549746", "0.6220366", "0.619357", "0.6043252", "0.6034398", "0.5970017", "0.5970017", "0.59483", "0.59239376", "0.5909644", "0.59069604", "0.59026265", "0.58852136", "0.5855119", "0.5851217", "0.58409864", "0.58099025", "0.58047634", "0.57504344", "0.5740328", "0.57370234", "0.57255876", "0.57132703", "0.5705565", "0.5691048", "0.5684149", "0.5680169", "0.5676122", "0.56551296", "0.5649175", "0.5644322", "0.5634352", "0.56330633", "0.5632733", "0.56291825", "0.5628203", "0.561266", "0.5602808", "0.5602048", "0.5601502", "0.5598052", "0.5594233", "0.55939096", "0.55676776", "0.556618", "0.553916", "0.5528465", "0.55262244", "0.55240095", "0.55167806", "0.55080986", "0.550078", "0.5500441", "0.54996926", "0.5492072", "0.5485555", "0.54813254", "0.5476995", "0.54710954", "0.54548126", "0.5446784", "0.5439095", "0.54336697", "0.5428253", "0.5420066", "0.54153407", "0.54124457", "0.540861", "0.5386885", "0.5385961", "0.53826195", "0.53713053", "0.5371183", "0.53706586", "0.5367263", "0.53642774", "0.5353026", "0.5347647", "0.53438795", "0.5334263", "0.5322716", "0.5315092", "0.53145844", "0.5312987", "0.53110635", "0.53061074", "0.5305371", "0.5303072", "0.5301762", "0.53011376", "0.5299167", "0.52977896", "0.5294712", "0.529412", "0.52878475", "0.52877915", "0.52873313" ]
0.5583239
46
Constructor for the Credits world. Create one button.
public Credits(GameSettings gs) { // set screen to 512x512 with 1x1 pixels super(512, 512, 1); gameSettings = gs; // make the background addObject(new GifDisplayer(BG_IMAGE_PATH), 256, 256); // make the back button GreenfootImage temp = new GreenfootImage(56, 106); if (DEBUG) temp.setColor(new Color(1f,1f,1f,0.5f)); if (DEBUG) temp.fill(); backButton = new DisplayerTop(temp); addObject(backButton,28,459); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Credits()\n {\n GreenfootImage creditsButton = new GreenfootImage(120,60);\n Font adjustedFont = new Font(true,false,20);\n creditsButton.setFont(adjustedFont);\n creditsButton.setColor(Color.BLACK);\n creditsButton.drawString(\"Credits (\\\"C\\\")\",0,50);\n setImage(creditsButton);\n }", "public void makeObtainButton() {\r\n JButton obtain = new JButton(\"Obtain a new champion using Riot Points\");\r\n new Button(obtain, main);\r\n// obtain.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// obtain.setPreferredSize(new Dimension(2500, 100));\r\n// obtain.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n obtain.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n obtainChampionUsingRiotPoints();\r\n }\r\n });\r\n// main.add(obtain);\r\n }", "public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.getFont());\n addMouseListener(this);\n setVisible(true);\n }", "public void makeAcquireButton() {\r\n JButton acquire = new JButton(\"Acquire a new champion with Blue Essence\");\r\n new Button(acquire, main);\r\n// acquire.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// acquire.setPreferredSize(new Dimension(2500, 100));\r\n// acquire.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n acquire.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n acquireChampionUsingBlueEssence();\r\n }\r\n });\r\n// main.add(acquire);\r\n }", "Button createButton();", "private void initCreateDeckBtn() {\n createBtn = new Button((editWidth - 310) / 2, 400, \"CREATE NEW DECK\", MasterGUI.green, titleField.getWidth(), titleField.getHeight());\n createBtn.setFont(MasterGUI.poppinsFont);\n createBtn.setForeground(MasterGUI.white);\n createBtn.setContentAreaFilled(true);\n createBtn.setFocusPainted(false);\n ActionListener createAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createDeckFromInput();\n user.updateDeckList();\n repaintDeckCards();\n HomeView.repaintHomeView();\n }\n };\n createBtn.addActionListener(e -> {\n MainGUI.confirmDialog(createAction, \"Create new Deck?\");\n });\n editPanel.add(createBtn);\n }", "private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}", "public CreditsScreen()\n {\n }", "public void makePurchaseButton() {\r\n JButton purchase = new JButton(\"Purchase premium currency\");\r\n new Button(purchase, main);\r\n// purchase.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// purchase.setPreferredSize(new Dimension(2500, 100));\r\n// purchase.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n purchase.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n doBuyRiotPoints();\r\n }\r\n });\r\n// main.add(purchase);\r\n }", "public GameButton() {\n initialize();\n }", "public SimpleButton()\n {\n this(true);\n }", "public void makeGetRPButton() {\r\n JButton getRP = new JButton(\"Check if a champion can be purchased with Riot Points\");\r\n new Button(getRP, main);\r\n// getRP.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// getRP.setPreferredSize(new Dimension(2500, 100));\r\n// getRP.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n getRP.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n getRiotPointsBalanceDifference();\r\n }\r\n });\r\n// main.add(getRP);\r\n }", "public ClickButtonAction() {\n _target = new TargetComponent();\n }", "private void createUIComponents() {\n bt1 = new JButton(\"Hola\");\n }", "Button(int x, int y, int w, int h, String label, int c){\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n this.label = label;\n this.col = c;\n }", "public ButtonPanel(NoughtsCrossesModel model) {\n\t\tsuper();\n\n\t\tthis.model = model;\n\n\t\tthis.reset = new JButton(\"New Game\");\n\t\treset.setEnabled(false);\n\t\treset.addActionListener(e -> model.newGame());\n\n\t\tthis.exit = new JButton(\"Exit\");\n\t\texit.setEnabled(false);\n\t\texit.addActionListener(e -> {\n\t\t\tSwingUtilities.getWindowAncestor(this).dispose();\n\t\t\tmodel.exitGame();\n\t\t});\n\n\t\tadd(reset);\n\t\tadd(exit);\n\t}", "public LinkButton() {\n\t\tsuper();\n\t\tinit();\n\t}", "private void createButton(){\n addButton();\n addStartButton();\n }", "public CoinJButton(Coin coin, boolean accepted) {\r\n super();\r\n final PictureLoader icons = PictureLoader.getInstance();\r\n if (accepted) {\r\n this.setIcon(icons.COINS_ICONS.get(coin));\r\n } else {\r\n this.setIcon(icons.REFUSED_COINS_ICONS.get(coin));\r\n }\r\n if (this.getIcon() == null) {\r\n this.setText(coin.TEXT);\r\n } else {\r\n this.setBorder(BorderFactory.createEmptyBorder());\r\n this.setContentAreaFilled(false);\r\n }\r\n this.coin = coin;\r\n }", "ButtonDemo() \n {\n // construct a Button\n bChange = new JButton(\"Click Me!\"); \n\n // add the button to the JFrame\n getContentPane().add( bChange ); \n }", "private void createButton() throws SlickException {\n int width = 25*getGameContainer().getWidth()/100;\n int height = 10*getGameContainer().getHeight()/100;\n\n Image login = new Image(getReaderXmlFile().read(\"buttonLogin\")).getScaledCopy(width, height);\n Coordinate posLogin = new Coordinate((getGameContainer().getWidth() - login.getWidth())/2,55*getGameContainer().getHeight()/100);\n loginButton = new Button(getGameContainer(), login, posLogin, IDStates.MENU_STATE, this);\n\n Image account = new Image(getReaderXmlFile().read(\"buttonAccount\")).getScaledCopy(width, height);\n Coordinate posAccount = new Coordinate((getGameContainer().getWidth() - account.getWidth())/2,70*getGameContainer().getHeight()/100);\n accountButton = new Button(getGameContainer(), account, posAccount, IDStates.MENU_STATE, this);\n }", "private Button createNewGameButton() {\n Button newGameButton = new Button(Config.NEW_GAME_BUTTON);\n newGameButton.setTranslateY(10);\n newGameButton.setTranslateX(10);\n\n // TODO: move stuff like this to the CSS resources.\n DropShadow effect = new DropShadow();\n effect.setColor(Color.BLUE);\n newGameButton.setEffect(effect);\n\n return newGameButton;\n }", "public ButtonMenuPanelBuyer() {\n initComponents();\n }", "private void generateButtons(){\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t//Button button = new Button(coordX, coordY);\n\t\t//buttons.put(0, button);\n\t}", "public void createInstructionButton() {\n \tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tshowInstructions();}\n };\n \tcreateGenericButton(2, 0, myResources.getString(\"guide\"), eventHandler);\n }", "public Button(String name, int x, int y, int L, int l, ValueNeeded object) {\n\t\tthis.nameField = name;\n\t\tthis.setBounds(x, y, L, l);\n\t\tthis.setText(nameField);\n\t\tif (name.equals(\"-\") || name.equals(\"X\") || name.equals(\"<\") || name.equals(\"Forgot Password ?\")\n\t\t\t\t|| name.equals(\"Register Here !\")) {\n\t\t\tthis.setContentAreaFilled(false);\n\t\t\tthis.setOpaque(false);\n\t\t\tthis.setBorder(new LineBorder(Color.DARK_GRAY));\n\t\t\tif (name.equals(\"X\")) {\n\t\t\t\tthis.setFont(new Font(\"Rockwell Nova\", Font.BOLD, 17));\n\t\t\t} else if (name.equals(\"Forgot Password ?\") || name.equals(\"Register Here !\")) {\n\t\t\t\tthis.setBorderPainted(false);\n\t\t\t\tthis.setForeground(Color.DARK_GRAY);\n\t\t\t\tif (name.equals(\"Forgot Password ?\")) {\n\t\t\t\t\tthis.setFont(new Font(\"Rockwell Nova\", Font.PLAIN, 10));\n\t\t\t\t} else {\n\t\t\t\t\tthis.setFont(new Font(\"Rockwell Nova\", Font.BOLD, 10));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.setFont(new Font(\"Rockwell Nova\", Font.BOLD, 30));\n\t\t\t}\n\t\t} else if (name.equals(\"Login\") || name.equals(\"Register\") || name.equals(\"Send Password\")\n\t\t\t\t|| name.equals(\"Login Page\") || name.equals(\"Modify Datas\") || name.equals(\"Modify Password\")\n\t\t\t\t|| name.equals(\"Save Datas\")|| name.equals(\"Save Password\")) {\n\t\t\tthis.setBorder(BorderFactory.createBevelBorder(0));\n\t\t\tthis.setFont(new Font(\"Rockwell Nova\", Font.PLAIN, 15));\n\t\t\tthis.setForeground(new Color(255, 255, 255));\n\t\t\tthis.setBackground(new Color(72, 209, 204));\n\t\t}\n\t\tthis.addActionListener(new ButtonListener(name, object)); // We add actionListener to all the buttons\n\t}", "public void createButtons() {\n\t\tescapeBackground = new GRect(200, 150, 300, 400);\n\t\tescapeBackground.setFilled(true);\n\t\tescapeBackground.setColor(Color.gray);\n\n\t\tbutton1 = new GButton(\"Return to Game\", 250, 175, 200, 50, Color.cyan);\n\t\tbutton3 = new GButton(\"Exit Level\", 250, 330, 200, 50, Color.cyan);\n\t\tbutton4 = new GButton(\"Return to Menu\", 250, 475, 200, 50, Color.cyan);\n\n\t\tescapeButtons.add(button1);\n\t\tescapeButtons.add(button3);\n\t\tescapeButtons.add(button4);\n\n\t}", "public CreditsMenu(boolean mainMenu) {\r\n\t\tsuper(\"Credits\");\r\n\t\tKeyBindings kb = EpicGameContainer.MAIN.dvorak ? \r\n\t\t\t\tKeyBindings.DVORAK : KeyBindings.QWERTY;\r\n\t\tthis.items = new ArrayList<Item>();\r\n\t\tif (mainMenu) this.items.add(new CreditsItem(\"Go back to Main Menu\", 0));\r\n\t\tthis.items.add(new CreditsItem(\"Cory Li: \", \"producer, jack of all trades\"));\r\n\t\tthis.items.add(new CreditsItem(\"Alex Jiang: \",\"quest master, level designer\"));\r\n\t\tthis.items.add(new CreditsItem(\"Ruwen Liu: \",\"main artist, story writer\"));\r\n\t\tthis.items.add(new CreditsItem(\"Kaivan Wadia: \",\"AI mastermind, ability designer\"));\r\n\t\tthis.items.add(new CreditsItem(\"Sam Powers: \",\"controller, menu designer\"));\r\n\t\tthis.items.add(new CreditsItem(\"Ben Agre: \",\"networking, willpath\"));\r\n\t\tthis.items.add(new CreditsItem(\"Jackie Hung: \",\"UI designer, overworld artist\"));\r\n\t\tthis.items.add(new CreditsItem(\"Haitao Mao: \",\"architect, visionary\"));\r\n\t\t\r\n\t\tthis.items.add(new CreditsItem(\"Slick: \",\"game engine\"));\r\n\t\tthis.items.add(new CreditsItem(\"Java: \",\"best programming language\"));\r\n\t\tthis.items.add(new CreditsItem(\"Tiled: \",\"level design engine\"));\r\n\t\tthis.items.add(new CreditsItem(\"nocius: \",\"background music\"));\r\n\t\tthis.items.add(new CreditsItem(\"EternalEndeavor: \",\"background music\"));\r\n\t\tthis.items.add(new CreditsItem(\"Tainlorr: \",\"background music\"));\r\n\t\tthis.items.add(new CreditsItem(\"viewtifulday: \",\"background music\"));\r\n\t\tthis.items.add(new CreditsItem(\"GAMBIT staff: \",\"guidance\"));\r\n\t\t\r\n\t}", "void createButton(Button main){\n\t\tActions handler = new Actions();\r\n\t\tmain.setOnAction(handler);\r\n\t\tmain.setFont(font);\r\n\t\t//sets button preference dimensions and label \r\n\t\tmain.setPrefWidth(100);\r\n\t\tmain.setPrefHeight(60);\r\n\t\tmain.setText(\"Close\");\r\n\t}", "private void buttonInitiation() {\n submit = new JButton(\"Submit\");\n submit.setBounds(105, 250, 90, 25);\n this.add(submit);\n goBack = new JButton(\"Return to Main Menu\");\n goBack.setBounds(205, 250, 200, 25);\n this.add(goBack);\n }", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "public void createNoBanButton() {\n\t\tnoban = new JButton(\"Click here if the current team missed a ban\");\n\t\tnoban.setName(\"noban\");\n\t\tnoban.setBackground(Color.GRAY);\n\t\tnoban.setForeground(Color.WHITE);\n\t\tnoban.setBorderPainted(false);\n\t\tnoban.addActionListener(this);\n\t\tnoban.setBounds(400, 50, 400, 100);\n\t\tbottomPanel.add(noban, new Integer(1));\n\t}", "public ButtonPanel(ModelController c, ArrayList<Turtle> t) {\n\tsliderCurrent = 5;\n\tCONTROLLER = c;\n\tTURTLE = t;\n\tmakeUpButton();\n\tmakeDownButton();\n\tmakeLeftButton();\n }", "private void addButton()\n {\n JButton button = new JButton();\n button.setSize(200, 30);\n button.setName(\"login\");\n button.setAction(new CreateUserAction());\n add(button);\n button.setText(\"Login\");\n }", "public void showCreditsButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_CREDITS_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public Button(String command, String name)\n {\n //command that will activate the infrared remote on the pi when this is sent to the command line\n this.command = \"irsend SEND_ONCE \" + name + \" KEY_\" + command.toUpperCase(); \n }", "public CreditsPanel() {\n super(RRConstants.BACKGROUND_COLOR);\n contributorFont = RRConstants.getFont(15);\n\n /* this is a useful helper variable used to position elements in\n aesthetically pleasing places in the CreditsPanel */\n int increment = RRConstants.HEIGHT/10;\n\n // title of the CreditsPanel\n JLabel credits = makeText(\"CREDITS\", nameFont);\n \n // the first section of the JPanel - represents the names of creators\n JLabel creatorSubtitle = makeText(\"Created by:\", buttonFont);\n JLabel creatorText = makeText(\n \"<html><center>Isabel Bryant,<br>\" + \n \"Hunter Sessa,<br>\" + \n \"Mara Steiu &<br>\" + \n \"Angelina Li</html>\", textFont);\n\n // second section of the JPanel - represents names of contributors\n JLabel contributorSubtitle = makeText(\"Thanks to:\", buttonFont);\n JLabel contributorText = makeText(\n \"<html><center>Ada & Takis,<br>\" + \n \"This: bit.ly/sojavaswing,<br>\" + \n \"and CS230 for teaching us <br>\" + \n \"how to make our game.</html>\", contributorFont);\n\n //setting up backButton - getButton is a method inherited from TextPanel\n backButton = getButton(\"BACK TO MENU\", BACK_COLOR, new ButtonListener());\n \n /* adding each component to the CreditsPanel, using the addComponent \n method inherited from TextPanel */\n addComponent(credits, RRConstants.HEIGHT/6);\n addComponent(creatorSubtitle, RRConstants.HEIGHT/5 + increment);\n addComponent(creatorText, RRConstants.HEIGHT/5 + (3*increment/2));\n addComponent(contributorSubtitle, RRConstants.HEIGHT/2 + increment/2);\n addComponent(contributorText, RRConstants.HEIGHT/2 + increment);\n addComponent(backButton, RRConstants.HEIGHT - RRConstants.HEIGHT/6 - increment);\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "private JButton setUpAcceptButton(final Player player) {\n JButton offerDeal = new JButton(\"Make Offer\");\n offerDeal.setAction(new AbstractAction(\"Make Offer\") {\n {\n putValue(Action.ACTION_COMMAND_KEY, getValue(Action.NAME));\n }\n @Override\n public void actionPerformed(ActionEvent e) {\n HumanPlayer humanPlayer = (HumanPlayer)player;\n if (humanPlayer.askPlayerYesOrNoQuestion(\"Are you sure you want to make \"\n + \"this deal?\", \"Deal Confirmation\")) {\n establishDealOffer();\n }\n }\n });\n return offerDeal;\n }", "public Button(String name, Page page) {\r\n super(name);\r\n this.page = page;\r\n //assignedParameters = new HashMap();\r\n //assignedParameters.put(this.name, Button.EMPTY);\r\n //assignedParameters.put(this.name+\".x\", Button.EMPTY);\r\n addExcludeParam(this.name);\r\n addExcludeParam(this.name+\".x\");\r\n addExcludeParam(this.name+\".y\");\r\n }", "public void createOrderBtn(){\n createOrderBtn = new Button(\"Create order\");\n createOrderBtn.setLayoutX(305);\n createOrderBtn.setLayoutY(710);\n createOrderBtn.setPrefWidth(480);\n createOrderBtn.setPrefHeight(50);\n createOrderBtn.setStyle(\"-fx-background-color: #34ffb9\");\n createOrderBtn.setFont(new Font(18));\n createOrderBtn.setOnAction(event -> createOrderInDB());\n\n root.getChildren().addAll(createOrderBtn);\n }", "public TWTRLogInButton() {}", "private Button constructCreationLinkButton(UUID creationID){\n\n CreationControllable cc = (CreationControllable) builder.getControllers()[1];\n if (!cc.containsCreation(creationID)){\n return null;\n }\n\n String[] creationInfo = cc.viewCreationSummary(creationID, viewer);\n Button b = new Button(creationInfo[0] + \" ( \" + creationInfo[1] + \" ) By: \"+ creationInfo[2]);\n\n b.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n stage.close();\n CreationViewController controller = getCreationBrowserController();\n if (controller == null){\n return;\n }\n controller.linkCreationCallback(creationID);\n stage.show();\n }\n });\n\n return b;\n }", "public TranslateButton() {\n this.posX = 0;\n this.posY = 0;\n this.width = 0;\n this.height = 0;\n translateButton = new JButton();\n }", "public PizzaPalacePanel() \r\n\t{\t\t\r\n\t\tcustomer = new JButton (\"Order Form\");\r\n\t\tmanager = new JButton (\"Inventory Manger\");\r\n\t\tnewStock = new JButton (\"New Inventory\");\r\n\t\t\r\n\t\tadd (customer);\r\n\t\tadd (manager);\r\n\t\tadd (newStock);\r\n\r\n\t\tcustomer.addActionListener (buttonListener);\r\n\t\tmanager.addActionListener (buttonListener);\r\n\t\tnewStock.addActionListener (buttonListener);\r\n\t}", "public BenButton(int row, int col) {\n\t\tsuper();\n\t\txCord = row;\n\t\tyCord = col;\n\t\tsetVisible(true);\n\t}", "public void makeCheckBEButton() {\r\n JButton checkBE = new JButton(\"Check if a champion can be purchased with Blue Essence\");\r\n new Button(checkBE, main);\r\n// checkBE.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// checkBE.setPreferredSize(new Dimension(2500, 100));\r\n// checkBE.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n checkBE.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n checkBlueEssenceBalanceDifference();\r\n }\r\n });\r\n// main.add(checkBE);\r\n }", "public ButtonRequests() {\r\n this(null);\r\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "private ButtonPane()\r\n\t\t\t{ super(new String[]{\"OK\",\"Cancel\"},1,2); }", "public ButtonPanel(GameFrame gf) {\n gameFrame = gf;\n JPanel buttonPanel = new JPanel();\n setFocusable(false);\n setBackground(new Color(0x696969));\n setLayout(new FlowLayout(FlowLayout.CENTER, 100, 70));\n add(startButton());\n add(saveButton());\n add(loadButton());\n add(resetButton());\n add(exitButton());\n addListeners();\n }", "public ButtonWizard(DialogueSystem system) {\n this.system = system;\n currentAction = new JLabel();\n currentJoint = new JLabel();\n }", "public howToPlayButton()\r\n {\r\n GreenfootImage howToGuide = new GreenfootImage(\"how to play.png\");\r\n setImage(howToGuide);\r\n }", "public LWButton01() {\n\t\t//Invoke the parameterized constructor with an \n\t\t// empty string\n\t\tthis(\"\");\n\t}", "private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }", "private JButton addOKButton(){\n\t\tJButton okButton = new JButton(\"OK\");\n\t\tokButton.addActionListener(arg0 -> {\n\t\t\tinfo = new ChannelInfo(nameT.getText(), passwordT.getText(), null);\n\t\t\tsetVisible(false);\n\t\t});\n\t\treturn okButton;\n\t}", "public Button() throws HeadlessException {\n this(\"\");\n }", "public CityButton(CityButtonPanel cp, String ctid,final String c){\n\t\tthis.setText(c);\n\t\tthis.cbp = cp;\n\t\tthis.cityid=ctid;\n\t}", "public RectYellowWorldButton(World world) \n {\n super(world,\n \"buttonUnpressed.png\",\n \"buttonHovered.png\",\n \"buttonPressed.png\");\n }", "@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }", "private void createButtons() {\n Texture playButtonIdle, playButtonPressed,settingsButtonIdle, settingsButtonPressed, creditsButtonIdle, creditsButtonPressed;\n\n if(game.getLocale().getCountry().equals(\"FI\")){\n playButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startgame_FIN.png\");\n playButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startgame_FIN_PRESSED.png\");\n\n settingsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startsettings_FIN.png\");\n settingsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startsettings_FIN_PRESSED.png\");\n\n creditsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_credits_FIN.png\");\n creditsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_credits_FIN_PRESSED.png\");\n }else{\n playButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startgame_ENG.png\");\n playButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startgame_ENG_PRESSED.png\");\n\n settingsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startsettings_ENG.png\");\n settingsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startsettings_ENG_PRESSED.png\");\n\n creditsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_credits_ENG.png\");\n creditsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_credits_ENG_PRESSED.png\");\n }\n\n ImageButton playButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(playButtonIdle)), new TextureRegionDrawable(new TextureRegion(playButtonPressed)));\n\n playButton.setPosition(95, 12);\n stage.addActor(playButton);\n\n playButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(gameScreen);\n }\n });\n\n ImageButton settingsButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(settingsButtonIdle)), new TextureRegionDrawable(new TextureRegion(settingsButtonPressed)));\n\n settingsButton.setPosition(175, 12);\n stage.addActor(settingsButton);\n\n settingsButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new OptionsScreen(game));\n }\n });\n\n ImageButton creditsButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(creditsButtonIdle)), new TextureRegionDrawable(new TextureRegion(creditsButtonPressed)));\n\n creditsButton.setPosition(15, 12);\n stage.addActor(creditsButton);\n\n creditsButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new CreditsScreen(game));\n }\n });\n }", "public bt526() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic buttonQuit() {\n\t\tbutton = new Button(\"Quit\");\n\t\tbutton.setPrefSize(100, 20);\n\t\tbutton.setStyle(\"-fx-background-color: black\");\n\t\tbutton.setTextFill(Color.YELLOW);\n\t\tbutton.addEventHandler(MouseEvent.MOUSE_CLICKED, quit);\n\n\t}", "public URLButton()\n {\n title = \"\";\n }", "public Controls()\n {\n string = \"Controls\";\n getButtonImage();\n }", "private JButton getVycvik1Button() {\n\t\tif (vycvik1Button == null) {\n\t\t\tvycvik1Button = new JButton();\n\t\t\tvycvik1Button.setText(\"Výcvik\");\n\t\t\tvycvik1Button.setEnabled(false);\n\t\t\tvycvik1Button.setSize(new Dimension(74, 25));\n\t\t\tvycvik1Button.setLocation(new Point(148, 166));\n\t\t\tvycvik1Button.setVisible(true);\n\t\t\tvycvik1Button.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tmod = \"1v\";\n\t\t\t\t\tucivoText.setText(\"úroveň 1: Základné a rozšírené intervaly\");\n\t\t\t\t\tcvicenieText.setText(\"Výcvik\");\n\t\t\t\t\tsuzvukText.setText(\"Náhodný interval\");\n\t\t\t\t\tspravne = true;\n\t\t\t\t\tpotvrdil = false;\n\n\t\t\t\t\tanalyzaPanel.setVisible(true);\n\t\t\t\t\tmenuPanel.setVisible(false);\n\t\t\t\t\tspodnyPanel.setVisible(true);\n\n\t\t\t\t\tjava.util.Random rand = new Random();\n\t\t\t\t\tint[] p;\n\n\t\t\t\t\tint r = rand.nextInt(3);\n\t\t\t\t\tr = 0;\n\t\t\t\t\tswitch (r) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tpriklad = new Dvojzvuk(rand.nextInt(49) + 36, rand\n\t\t\t\t\t\t\t\t.nextInt(13));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tp = new int[2];\n\t\t\t\t\t\twhile (p[0] == p[1]) {\n\t\t\t\t\t\t\tp[0] = rand.nextInt(13);\n\t\t\t\t\t\t\tp[1] = rand.nextInt(13);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tArrays.sort(p);\n\t\t\t\t\t\tpriklad = new Trojzvuk(rand.nextInt(49) + 36, p[0],\n\t\t\t\t\t\t\t\tp[1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tp = new int[3];\n\t\t\t\t\t\twhile ((p[0] == p[1]) || (p[1] == p[2])\n\t\t\t\t\t\t\t\t|| (p[0] == p[2])) {\n\t\t\t\t\t\t\tp[0] = rand.nextInt(13);\n\t\t\t\t\t\t\tp[1] = rand.nextInt(13);\n\t\t\t\t\t\t\tp[2] = rand.nextInt(13);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tArrays.sort(p);\n\t\t\t\t\t\tpriklad = new Stvorzvuk(rand.nextInt(49) + 36, p[0],\n\t\t\t\t\t\t\t\tp[1], p[2]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn vycvik1Button;\n\t}", "private JPanel makeButtonPanel()\n {\n // Create the containing panel\n JPanel buttonPanel = new JPanel();\n buttonPanel.setBackground(_backColor);\n\n // Create the CANCEL button\n JButton cancelButton = new JButton(\"CANCEL\");\n // Clear editFlag and data, then return back to main action panel if Cancel is pressed\n // TODO Remove this lambda expressionl; it produces a Javadoc error\n cancelButton.addActionListener((a) -> _hdCiv.back());\n\n // Create the SUBMIT button\n JButton submitButton = new JButton(\"SUBMIT\");\n\n // Display error message if received from submit button, or new Hero if OK\n submitButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event)\n {\n // Call the Civ to validate the attributes. If no errors, Hero\n // is created and displayed\n EnumMap<PersonKeys, String> input = submit();\n if ((input != null) && (input.size() > 0)) {\n // Create the new Hero and display it\n Hero hero = _nhCiv.createHero(input);\n _hdCiv.displayHero(hero, true); // initial Hero needs true\n }\n }\n });\n\n // Create a little space between buttons\n JLabel space = new JLabel(SPACER);\n // Add the two buttons to the panel\n buttonPanel.add(submitButton);\n buttonPanel.add(space);\n buttonPanel.add(cancelButton);\n return buttonPanel;\n }", "public BenButton(Icon ico) {\n\t\tsuper(ico);\n\t\tsetVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 129);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Bouton vert\");\n\t\tbtnNewButton.setBackground(new Color(0, 255, 127));\n\t\tbtnNewButton.setForeground(Color.WHITE);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnNewButton_1.isEnable(true);\n\t\t\t\tbtnNewButton_1.isEnable();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(10, 32, 128, 23);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Bouton bleu\");\n\t\tbtnNewButton_1.setBackground(new Color(30, 144, 255));\n\t\tbtnNewButton_1.setForeground(Color.WHITE);\n\t\tbtnNewButton_1.setBounds(148, 32, 128, 23);\n\t\tpanel.add(btnNewButton_1);\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnNewButton.isEnable(true);\n\t\t\t\tbtnNewButton.isEnable();\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnQuitter = new JButton(\"Quitter\");\n\t\tbtnQuitter.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tbtnQuitter.setAction(action);\n\t\tbtnQuitter.setBackground(new Color(255, 0, 0));\n\t\tbtnQuitter.setForeground(Color.WHITE);\n\t\tbtnQuitter.setBounds(283, 32, 128, 23);\n\t\tpanel.add(btnQuitter);\n\t}", "private void prepare()\n {\n Label winningMsg = new Label(\"Thank you, \\nfor saving \\none's life. \", 60);\n addObject(winningMsg,310,320);\n \n creditBtn = new instructionButton();\n addObject(creditBtn,50,470);\n }", "@Override\n public Button createButton() {\n return new WindowsButton();\n }", "protected JButton createAddButton() {\n JButton butAdd = new JButton();\n butAdd.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/add.jpg\")));\n butAdd.setToolTipText(\"Add a new item\");\n butAdd.addActionListener(new AddItemListener());\n return butAdd;\n }", "public abstract void initButton(int buttonIndex);", "public MenuButtons(String nameOfButton) {\n Text text = new Text(nameOfButton);\n text.setFont(Font.font(null, FontWeight.BOLD, 18));\n text.setFill(Color.WHITESMOKE);\n\n //A rectangle that will be a part of the button\n Rectangle rectangle = new Rectangle(250,30);\n rectangle.setOpacity(0.3);\n rectangle.setFill(Color.BLUE);\n\n setAlignment(Pos.CENTER_LEFT);\n getChildren().addAll(rectangle, text);\n\n setOnMouseEntered(e -> {\n rectangle.setTranslateX(5);\n text.setTranslateX(5);\n rectangle.setFill(Color.DARKBLUE);\n });\n\n setOnMouseExited(e -> {\n rectangle.setTranslateX(0);\n text.setTranslateX(0);\n rectangle.setFill(Color.BLUE);\n });\n\n DropShadow shadowEffect = new DropShadow();\n shadowEffect.setInput(new Glow());\n\n setOnMousePressed(e -> setEffect(shadowEffect));\n setOnMouseReleased(e -> setEffect(null));\n }", "private JButton getVycvik3Button() {\n\t\tif (vycvik3Button == null) {\n\t\t\tvycvik3Button = new JButton();\n\t\t\tvycvik3Button.setBounds(new Rectangle(148, 253, 74, 25));\n\t\t\tvycvik3Button.setEnabled(false);\n\t\t\tvycvik3Button.setText(\"Výcvik\");\n\t\t\tvycvik3Button.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tmod = \"3v\";\n\t\t\t\t\tucivoText.setText(\"úroveň 3: Ľubovoľné súzvuky\");\n\t\t\t\t\tcvicenieText.setText(\"Výcvik\");\n\t\t\t\t\tsuzvukText.setText(\"Náhodný súzvuk\");\n\t\t\t\t\tspravne = true;\n\t\t\t\t\tpotvrdil = false;\n\n\t\t\t\t\tanalyzaPanel.setVisible(true);\n\t\t\t\t\tmenuPanel.setVisible(false);\n\t\t\t\t\tspodnyPanel.setVisible(true);\n\t\t\t\t\tjava.util.Random rand = new Random();\n\t\t\t\t\tint[] p;\n\n\t\t\t\t\tint r = rand.nextInt(3);\n\t\t\t\t\t// r = 0;\n\t\t\t\t\tswitch (r) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tpriklad = new Dvojzvuk(rand.nextInt(49) + 36, rand\n\t\t\t\t\t\t\t\t.nextInt(13));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tp = new int[2];\n\t\t\t\t\t\twhile (p[0] == p[1]) {\n\t\t\t\t\t\t\tp[0] = rand.nextInt(13);\n\t\t\t\t\t\t\tp[1] = rand.nextInt(13);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tArrays.sort(p);\n\t\t\t\t\t\tpriklad = new Trojzvuk(rand.nextInt(49) + 36, p[0],\n\t\t\t\t\t\t\t\tp[1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tp = new int[3];\n\t\t\t\t\t\twhile ((p[0] == p[1]) || (p[1] == p[2])\n\t\t\t\t\t\t\t\t|| (p[0] == p[2])) {\n\t\t\t\t\t\t\tp[0] = rand.nextInt(13);\n\t\t\t\t\t\t\tp[1] = rand.nextInt(13);\n\t\t\t\t\t\t\tp[2] = rand.nextInt(13);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tArrays.sort(p);\n\t\t\t\t\t\tpriklad = new Stvorzvuk(rand.nextInt(49) + 36, p[0],\n\t\t\t\t\t\t\t\tp[1], p[2]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn vycvik3Button;\n\t}", "Button new_button (String title, ActionListener action, String tooltip) {\n Button b = new Button(title);\n b.setBackground(Color.white);\n b.setForeground(Color.blue);\n if (action != null)\n b.addActionListener(action);\n if (tooltip != null)\n b.setToolTipText(tooltip);\n return b;\n }", "public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}", "@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }", "protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }", "public account() {\n initComponents();\n autoID();\n branch();\n }", "public BoggleGUI()\n {\n \t\n }", "public ToggleButton()\n {\n this(true);\n }", "private void addDemoButtons(int p_73972_1_, int p_73972_2_)\r\n\t{\r\n\t\tthis.buttonList.add(new GuiButton(11, this.width / 2 - 100, p_73972_1_, I18n.format(\"menu.playdemo\")));\r\n\t\tthis.buttonResetDemo = this.addButton(new GuiButton(12, this.width / 2 - 100, p_73972_1_ + p_73972_2_ * 1, I18n.format(\"menu.resetdemo\")));\r\n\t\tISaveFormat isaveformat = this.mc.getSaveLoader();\r\n\t\tWorldInfo worldinfo = isaveformat.getWorldInfo(\"Demo_World\");\r\n\r\n\t\tif (worldinfo == null)\r\n\t\t{\r\n\t\t\tthis.buttonResetDemo.enabled = false;\r\n\t\t}\r\n\t}", "public Button(Window w, CompositeGlyph c, String color) {\r\n\t\tsuper(w,c);\r\n\t\tthis.color = color;\r\n\t}", "public void createButtons() {\n\t\tbutton1 = new JButton(\"Button1\");\n\t\tbutton2 = new JButton(\"Button2\");\n\t\tbutton3 = new JButton(\"Button3\");\n\t\tbutton4 = new JButton(\"Button4\");\n\t\tbutton5 = new JButton(\"Button5\");\n\t}", "public void makeReceiveButton() {\r\n JButton receive = new JButton(\"Receive a new champion recommendation\");\r\n new Button(receive, main);\r\n// receive.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// receive.setPreferredSize(new Dimension(2500, 100));\r\n// receive.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n receive.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n receiveChampionRecommendation();\r\n }\r\n });\r\n// main.add(receive);\r\n }", "private void buttonInit() {\n panel.add(createButton);\n panel.add(editButton);\n panel.add(changeButton);\n createButton.addActionListener(this);\n editButton.addActionListener(this);\n changeButton.addActionListener(this);\n submitNewUser.addActionListener(this);\n editAccTypeBtn.addActionListener(this);\n changePassBtn.addActionListener(this);\n }", "private void createButtons() {\n\tTexture startGameTex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_start.png\"));\n\tTexture plane_p1_tex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_player1.png\"));\n\tTexture plane_p2_tex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_player2.png\"));\n\n\tplayButton = new Button(\"\", font, 0, 0, new TextureRegion(startGameTex,\n\t\t0, 0, 161, 20), new TextureRegion(startGameTex, 0, 0, 161, 20),\n\t\tnew ScreenSwitchHandler(Screen.GAME));\n\tplaneButton_p1 = new Button(\"\", font, 0, 0, new TextureRegion(\n\t\tplane_p1_tex, 0, 0, 161, 20), new TextureRegion(plane_p1_tex,\n\t\t0, 0, 161, 20), new ScreenSwitchHandler(Screen.PLANE_P1));\n\tplaneButton_p2 = new Button(\"\", font, 0, 0, new TextureRegion(\n\t\tplane_p2_tex, 0, 0, 161, 20), new TextureRegion(plane_p2_tex,\n\t\t0, 0, 161, 20), new ScreenSwitchHandler(Screen.PLANE_P2));\n\toptionsButton = new Button(\"Options\", font, new ScreenSwitchHandler(\n\t\tScreen.OPTIONS));\n\texitButton = new Button(\"Exit\", font, new ButtonHandler() {\n\t @Override\n\t public void onClick() {\n\t\tGdx.app.exit();\n\t }\n\n\t @Override\n\t public void onRelease() {\n\t\t// TODO Auto-generated method stub\n\n\t }\n\t});\n }", "public crackerClicker() {\n initComponents();\n }", "@Override\n\tpublic Button createButton() {\n\t\treturn new HtmlButton();\n\t}", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "public HomeAddettoUI(Account a) {\n\t\tsuper(a);\n\n\t\tJButton btn_events = new JButton(\"Registra evento\");\n\t\tbtn_events.setBounds(10, 275, 205, 21);\n\t\tbtn_events.setActionCommand(\"event\");\n\t\tbtn_events.addActionListener(this);\n\t\tgetContentPane().add(btn_events);\n\n\t\tJButton btn_prenotations = new JButton(\"Registra prenotazione\");\n\t\tbtn_prenotations.setBounds(10, 300, 205, 21);\n\t\tbtn_prenotations.setActionCommand(\"pren\");\n\t\tbtn_prenotations.addActionListener(this);\n\t\tgetContentPane().add(btn_prenotations);\n\n\t\tJButton btn_amount = new JButton(\"Registra pagamento\");\n\t\tbtn_amount.setBounds(10, 325, 205, 21);\n\t\tbtn_amount.setActionCommand(\"amount\");\n\t\tbtn_amount.addActionListener(this);\n\t\tgetContentPane().add(btn_amount);\n\t\t\n\t\tJButton btn_restaurant = new JButton(\"Registra conto ristorante\");\n\t\tbtn_restaurant.setBounds(10, 350, 205, 21);\n\t\tbtn_restaurant.setActionCommand(\"risto\");\n\t\tbtn_restaurant.addActionListener(this);\n\t\tgetContentPane().add(btn_restaurant);\n\t}", "private JButton getButButton() { \n if (butButton == null) { \n butButton = new JButton(); \n butButton.setBounds(new Rectangle(58, 110, 177, 50)); \n butButton.setText(\"Enviar\"); \n butButton.addActionListener(new java.awt.event.ActionListener() { \n public void actionPerformed(java.awt.event.ActionEvent e) { \n send(); \n } \n }); \n } \n return butButton; \n }", "public GUIObject() {\n this.id = UUID.randomUUID();\n }", "public void createFinishedButton() {\n\t\tJButton finished = new JButton(\"Click here when finished inputting selected champions\");\n\t\tfinished.setName(\"finished\");\n\t\tfinished.setBackground(Color.GRAY);\n\t\tfinished.setForeground(Color.WHITE);\n\t\tfinished.setBorderPainted(false);\n\t\tfinished.addActionListener(this);\n\t\tfinished.setBounds(400, 50, 400, 100);\n\t\tbottomPanel.add(finished, new Integer(4));\n\t}", "public OptionPanel(Main w) {\r\n\t\tthis.w = w;\r\n\t\tstartButton = new JButton();\r\n\t\texitButton = new JButton();\r\n\t\t\r\n\t}", "private void addSingleplayerMultiplayerButtons(int p_73969_1_, int p_73969_2_)\r\n\t{\r\n\t\tthis.buttonList.add(new GuiButton(1, this.width / 2 - 100, p_73969_1_, I18n.format(\"menu.singleplayer\")));\r\n\t\tthis.buttonList.add(new GuiButton(2, this.width / 2 - 100, p_73969_1_ + p_73969_2_ * 1, I18n.format(\"menu.multiplayer\")));\r\n\t\tthis.buttonList.add(modButton = new GuiButton(6, this.width / 2 - 100, p_73969_1_ + p_73969_2_ * 2, I18n.format(\"fml.menu.mods\")));\r\n\t\tRandomTexture = (int) (Math.random() * 3 + 1);\r\n\r\n\t}", "@Override\n\tprotected void initAddButton() {\n addBtn = addButton(\"newBtn\", TwlLocalisationKeys.ADD_BEAT_TYPE_TOOLTIP, new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tnew AddEditBeatTypePanel(true, null, BeatTypesList.this).run(); // adding\n\t\t\t\t}\n\t }); \t\t\n\t}", "private JButton makeNewMazeButton()\n {\n JButton newMaze = new JButton(\"New Maze\");\n newMaze.setToolTipText(\"Create a new maze\");\n newMaze.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n newMaze();\n }\n });\n return newMaze;\n }", "public GuiButton(Gui parent, int y, String text, ColorHelper buttonColor, RenderObject textColor) {\n\t\tsuper(parent, VERTEX_COLOR);\n\t\twidth = TOTAL_PADDING + TextRender.getTextWidth(text);\n\t\theight = TOTAL_PADDING + TextRender.getTextHeight();\n\t\tthis.x = (Game.WIDTH / 2) - (width / 2);\n\t\tthis.y = y;\n\t\tthis.centered = false;\n\t\tthis.text = text;\n\t\tthis.textColor = textColor;\n\t\tthis.buttonColor = buttonColor;\n\t\tgenerateVertexData();\n\t\tgenerateColorData();\n\t}" ]
[ "0.74292994", "0.6712384", "0.65080106", "0.64860755", "0.647106", "0.64331377", "0.64090407", "0.63520783", "0.6285741", "0.624184", "0.62369365", "0.62200946", "0.620725", "0.61984694", "0.617241", "0.61719763", "0.6161397", "0.6153321", "0.61238676", "0.6110712", "0.61092275", "0.609882", "0.607105", "0.607029", "0.6069381", "0.6064894", "0.6049947", "0.60445446", "0.60420746", "0.6036021", "0.60300535", "0.6029269", "0.6025748", "0.6021392", "0.60156775", "0.60037774", "0.60025996", "0.60015565", "0.59855086", "0.5984632", "0.59723485", "0.59712034", "0.5963176", "0.59581697", "0.59558505", "0.5937192", "0.5920305", "0.5913798", "0.59110165", "0.5868757", "0.5868473", "0.58620405", "0.58581066", "0.5854118", "0.5851536", "0.5850311", "0.5816242", "0.58120364", "0.5807749", "0.580704", "0.5803201", "0.57963574", "0.57959235", "0.57833016", "0.5783194", "0.57830757", "0.57772845", "0.57706785", "0.57704705", "0.57665867", "0.5765731", "0.5756014", "0.57547414", "0.57480574", "0.57377756", "0.57313424", "0.57297736", "0.57282865", "0.5726525", "0.57244045", "0.57170486", "0.57105476", "0.5709996", "0.57094276", "0.5704965", "0.5702618", "0.5694136", "0.56866693", "0.56857455", "0.56834185", "0.5676453", "0.5676005", "0.5671673", "0.56675565", "0.5664068", "0.566167", "0.5660881", "0.56562126", "0.56556153", "0.5639425" ]
0.6088904
22
Every act, this World reads whether the back button is pressed.
public void act() { // back button if (Greenfoot.isKeyDown("escape") || Greenfoot.mouseClicked(backButton)) { Greenfoot.setWorld(new Title(gameSettings)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean onBackPressed();", "boolean onBackPressed();", "public void keyBackIsPressed(){}", "public abstract boolean onBackPressed(boolean isSystemBackKey);", "public abstract boolean onBackPressed();", "public boolean onBackPressed() {\n \treturn m_renderer.onBackPressed();\n }", "public Boolean onBackPressed() {\n\t\n\tif(state==MAIN_MENU || state==RESUME){ ags.ad.pauseMusic(); return true;}\n\t\n\telse if(state==GAME_SCREEN){\n\t\tLog.d(\"GameboyActivity\",\"game screen to main menu\");\n\t\tif(ag.currenttime<1){\n\t\t\tstate=MAIN_MENU; \n\t\t\tif(ag.counter > ag.best){\n\t\t\t\tSharedPreferences.Editor editor =\n\t\t\t\t\t\tag.settings.edit(); \n\t\t\t\t editor.putInt(\"counter\", ag.counter);\n\t\t\t\t\tLog.d(\"GameboyActivity\",Integer.toString(ag.counter));\n\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\tag.best=ag.counter;\t\t\n\t\t\t\t}\n\t\t//\treinitializegame();\n\t\t}else{\n\tstate=RESUME;\n\tif(ag.counter > ag.best){\n\t\tSharedPreferences.Editor editor =\n\t\t\t\tag.settings.edit(); \n\t\t editor.putInt(\"counter\", ag.counter);\n\t\t\tLog.d(\"GameboyActivity\",Integer.toString(ag.counter));\n\t\t\t\teditor.commit();\n\t\t\t\tag.best=ag.counter;\t\t\n\t\t}\n\t \treturn false;}\n\t}else if(state==CREDITS){\n\t\t\n\tstate=ags.prev_state;\n\t \treturn false;\n\t}\n\treturn false;\n}", "private void checkForBack() {\n if (Gdx.input.isKeyJustPressed(Input.Keys.BACK) || Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE) ||\n BackButton.isPressed()) {\n Gdx.input.vibrate(50);\n dispose();\n game.setScreen(new MainMenuView(game));\n }\n }", "@Override\n\t\tpublic boolean handleBackPressed() {\n\t\t\treturn false;\n\t\t}", "@Override\n\tpublic boolean onBackPressed() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onBackPressed() {\n\t\treturn false;\n\t}", "@Override\n protected boolean canGoBack() {\n return false;\n }", "public boolean goBack() {\n if (historyStack.size() > 0) {\n switchToScreen(historyStack.pop(), true, lastTransition != null ? lastTransition : TransitionAnimation.getTransition(TransitionAnimationType.RIGHT_TO_LEFT));\n return true;\n }\n return false;\n }", "MutableLiveData<Boolean> onBackClicked() {\n return mBack;\n }", "@Override\n\tpublic boolean onNaviBackClick() {\n\t\treturn false;\n\t}", "@Override\n protected void handleImput() {\n buttonBack.getButton().addListener(new ChangeListener() {\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n if(!buttonLocker) {\n gsm.pop();\n gsm.push(new MenuState(gsm));\n buttonLocker = true;\n }\n }\n });\n if (Gdx.input.isKeyJustPressed(Input.Keys.BACK)){\n gsm.pop();\n gsm.push(new MenuState(gsm));\n }\n }", "@Override\n public void onBackPressed() {\n ((MyApp) getApplication()).storeBoolean(true);\n ((MyApp) getApplication()).storeHM(randomHM);\n ((MyApp) getApplication()).storeVanishHM(vanishHM);\n ((MyApp) getApplication()).storeScore(score);\n super.onBackPressed();\n }", "@Override\n\tpublic boolean onBackPressedListener() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "public boolean onBackPressed() {\n\t\tif ( isClosed() ) return false;\n\t\tif ( mCurrentState != STATE.DISABLED ) {\n\t\t\tif ( isOpened() ) {\n\t\t\t\tif ( !mCurrentEffect.onBackPressed() ) onCancel();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void onBackButton() {\n WindowLoader wl = new WindowLoader(backButton);\n wl.load(\"MenuScreen\", getInitData());\n RETURN_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "private void backToMain() {\n // https://stackoverflow.com/questions/5446565\n // Checks to see if they are still on this activity\n if (getWindow().getDecorView().getRootView().isShown()) {\n onBackPressed();\n }\n }", "void onGoBackButtonClick();", "@Override\n\tpublic void onBackPressed()\n\t{\n\t\tsuper.onBackPressed();\n\t\t// MainActivity.isReSearch = true;\n\t}", "public boolean canInterceptBackEvent() {\n return true;\n }", "@Override\n \tpublic void onBackKeyPressed() \n \t{\n \t\tSceneManager.getInstance().setScene(SceneManager.SceneType.SCENE_GAME);\n \t\t\n \t}", "@Override\n\tpublic void backButton() {\n\n\t}", "@Override\r\n\tpublic void onBackKeyPressed()\r\n\t{\n\t\tSceneManager.getInstance().loadMenuScene(activity.getEngine());\r\n\t}", "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tgame.getController().undoLastMove();\r\n\t}", "public boolean keyDown(int arg0) {\n\t\t\n\t\tif(arg0==Input.Keys.BACK){\n\t\t\t//gs.setScreen(gs.fg);\n\t\t\tthis.dispose();\n\t\t\tGdx.app.exit();\n\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}", "@Override\n\tpublic boolean isBackable() {\n\t\treturn false;\n\t}", "@Override\n public void backButton() {\n\n\n }", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if(keyCode==KeyEvent.KEYCODE_BACK){\n return back();\n }\n return super.onKeyDown(keyCode, event);\n }", "void actionBack();", "@Override\n public boolean keyDown(int keyCode) {\n if (keyCode == Input.Keys.BACK) {\n\n screenControl.setnScreen(1);\n }\n return super.keyDown(keyCode);\n }", "public boolean hasBack() {\n if (index > 0) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "public void backButtonClicked()\r\n {\n manager = sond.getManager();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n else if (manager.canUndo())\r\n {\r\n manager.undo();\r\n }\r\n }", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_BACK) {\n return false;\n }\n return false;\n }", "protected void handleBack(ActionEvent event) {\n\t}", "@Override\n public boolean onKeyDown(int keyCode,KeyEvent event){\n if (keyCode == KeyEvent.KEYCODE_BACK) {\n return true;\n }\n return false;\n }", "@Override\n public void onBackPressed() {\n timesBackPressed++;\n if (timesBackPressed > 1) {\n currentStateSaveToSharedPref();\n finish();\n } else\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.leave_warning), Toast.LENGTH_LONG).show();\n }", "@Override\n public boolean onSupportNavigateUp() {\n super.onBackPressed();\n\n //Do this to indicate the user is not leaving the quiz, but only leaving the activity..\n //So don't submit the quiz..\n SharedPreferences.Editor e=quizPrefs.edit();\n e.putInt(\"exit\",0);\n e.apply();\n return true;\n }", "@Override\r\n public boolean onKeyDown(int keyCode, KeyEvent event) {\r\n if (keyCode == KeyEvent.KEYCODE_BACK) {\r\n return true;\r\n } else {\r\n return super.onKeyDown(keyCode, event);\r\n }\r\n }", "@Override\n\tpublic void onBackKeyPressed() {\n\treturn;\t\n\t}", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {\n if (needExit()) {\n finish();\n } else {\n back();\n }\n return true;\n }\n return super.onKeyDown(keyCode, event);\n }", "@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "public void back() {\n Views.goBack();\n }", "public boolean onBackPressed(boolean isSystemBackKey) {\n if (shouldShowSearchBar()) {\n exitSearchMode();\n return true;\n }\n return false;\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "public boolean onBackPressed() {\n //if (mShouldHandleBackPressed) {\n // ((GalleryActivity)getActivity()).setActionBarTitle(\"Gallery\");\n // loadBuckets();\n // return true;\n //}\n return false;\n }", "public void onBackPressed() {\n backbutton();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "@Override\n public void onBackPressed(){\n System.out.println(\"---------------- No debe hacer nada -------------------------------\");\n }", "@Override\r\n public void onBackPressed() {\r\n super.onBackPressed();\r\n if (!getResources().getBoolean(R.bool.isTablet)) {\r\n fragMap = null;\r\n }\r\n }", "@Override\r\n\tpublic void onBackPressed() {\r\n\t\tif (isMapDisplayed) {\r\n\t\t\tisMapDisplayed=false;\r\n\t\t\tswitcher.showPrevious();\r\n\t\t} else super.onBackPressed();\r\n\t}", "public boolean interceptBackEvent() {\n try {\n if (this.mWebViewH5Page == null) {\n return false;\n }\n if (!canInterceptBackEvent()) {\n H5Log.d(TAG, \"interceptBackEvent...can not intercept back event\");\n return false;\n }\n APWebView apWebView = this.mWebViewH5Page.getWebView();\n if (apWebView == null || !apWebView.canGoBack()) {\n H5Log.d(TAG, \"interceptBackEvent...can not go back\");\n return false;\n } else if (apWebView.copyBackForwardList().getCurrentIndex() <= 0) {\n H5Log.d(TAG, \"interceptBackEvent...webview with no history\");\n return false;\n } else {\n H5Log.e(TAG, (String) \"interceptBackEvent...go back\");\n apWebView.goBack();\n return true;\n }\n } catch (Throwable e) {\n H5Log.e(TAG, \"interceptBackEvent...e=\" + e);\n return false;\n }\n }", "public boolean onKeyDown(int keyCode, KeyEvent event) {\n super.onKeyDown(keyCode, event);\n if ((keyCode == KeyEvent.KEYCODE_BACK)) {\n isBackKey = true;\n }\n return isBackKey;\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tString log_msg = \"Back pressed...\";\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\tthis.finish();\n\t\t\n\t\tthis.overridePendingTransition(0, 0);\n\t\t\n\t}", "@Override\n public void backPressed(){\n }", "@Override\n public void onBackPressed() {\n confirmExit();\n }", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_BACK) {\n if (onBack()) return true;\n }\n return super.onKeyDown(keyCode, event);\n }", "@java.lang.Override\n public boolean getBackToBackEnabled() {\n return backToBackEnabled_;\n }", "public void back() {\n\t\tstate.back();\n\t}", "@Override\n public void onBackPressed()\n {\n if(backButtonCount >= 1)\n {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n else\n {\n Toast.makeText(this, \"Press the back button once again to close the application.\", Toast.LENGTH_SHORT).show();\n backButtonCount++;\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\n\t\tboolean exit = mPreferences.getBoolean(Key.CB_EXIT, true);\n\t\t// If no confirmation required or user pressing for second time, then\n\t\t// exit app.\n\t\tif (exit && !mExitTrue) {\n\t\t\tmExitTrue = true;\n\t\t\tmToastExit = Toast.makeText(cxt,\n\t\t\t\t\tgetResources().getString(R.string.confirm_exit_msg),\n\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\tmToastExit.show();\n\t\t\tnew Timer(\"cancelExit\").schedule(new TimerTask() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tHome.this.mExitTrue = false;\n\t\t\t\t}\n\t\t\t}, 2000);\n\t\t} else {\n\t\t\tif (mToastExit != null) {\n\t\t\t\tmToastExit.cancel();\n\t\t\t}\n\t\t\tsuper.onBackPressed();\n\t\t}\n\t}", "@Override\n public void onBackPressed() {\n if(web.canGoBack()){\n web.goBack();\n } else {\n super.onBackPressed();\n }\n }", "@Override\n public void goBack() {\n\n }", "@Override\r\n public boolean onKeyDown(int keyCode, KeyEvent event) {\r\n if ((keyCode == KeyEvent.KEYCODE_BACK)) {\r\n \tfinish();\r\n \t\r\n return true;\r\n }\r\n return super.onKeyDown(keyCode, event);\r\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tif(menu_Drawder.isOpened()){\n\t\t\tmenu_Drawder.close();\n\t\t}\n\t}", "public void onBackPressed() {\r\n }", "public void goBack() {\n goBackBtn();\n }", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if ((keyCode == KeyEvent.KEYCODE_BACK) && wpBrowser.canGoBack()) {\n wpBrowser.goBack();\n return true;\n }\n // If it wasn't the Back key or there's no web page history, bubble up to the default\n // system behavior (probably exit the activity)\n return super.onKeyDown(keyCode, event);\n }", "@Override\n public void onBackPressed() {\n //noinspection ConstantConditions\n if (MenuActivityHelper.onBackPressed(this)) {\n super.onBackPressed();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\n\t\tnavigatetoAppointmentsListingScreen(\"false\");\n\t}", "@Override\n\tpublic void onBackKeyPressed() {\n\t\treturn;\n\t}", "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "public void onBackPressed() {\r\n \t\r\n \tScreen screen = this.getCurrentScreen();\r\n \tString screenName = screen.getClass().getName();\r\n \t\r\n \t// if we are \"inGame\"\r\n \tif (screenName.endsWith(\"GameScreen\")) {\r\n \t\t\r\n \t\tGameScreen gameScreen = (GameScreen)screen;\r\n \t\t\r\n \t\tif (gameScreen.demoParser != null) {\r\n \t\t\t\r\n \t\t\tthis.finish();\r\n \t \tthis.overridePendingTransition(0, 0);\r\n \t\t}\r\n \t\t\r\n \t\t// restart the race\r\n \t\telse if (gameScreen.map.inRace() || gameScreen.map.raceFinished()) {\r\n \t\t\r\n \t\t\tif (!gameScreen.map.inFinishSequence) {\r\n \t\t\t\t\r\n \t\t\t\tgameScreen.state = GameState.Running;\r\n \t\t\t\tgameScreen.map.restartRace(gameScreen.player);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t// return to maps menu\r\n \t\t} else {\r\n \t\t\t\r\n \t\t\tthis.glView.queueEvent(new Runnable() {\r\n \r\n public void run() {\r\n \r\n \tRacesow.this.setScreen(new MapsScreen(Racesow.this));\r\n }\r\n });\r\n \t\t}\r\n \t\r\n \t// return to main menu\r\n \t} else if (screenName.endsWith(\"MapsScreen\")) {\r\n \t\t\r\n \t\t\tthis.glView.queueEvent(new Runnable() {\r\n \r\n public void run() {\r\n \r\n \tRacesow.this.setScreen(Racesow.this.getStartScreen());\r\n }\r\n });\r\n \t\r\n \t\t// quit the application\r\n \t} else if (screenName.endsWith(\"LoadingScreen\")) {\r\n \t\t\r\n \t\t// if no demo is loading we come from the mapsScreen\r\n \t\tif (((LoadingScreen)screen).demoFile == null) {\r\n \t\t\t\r\n \t\t\t\tthis.glView.queueEvent(new Runnable() {\r\n \t\r\n \t public void run() {\r\n \t \r\n \t \tRacesow.this.setScreen(new MapsScreen(Racesow.this));\r\n \t }\r\n \t });\r\n \t\t\t\r\n \t\t\t// if a demoFile is loading, quit the activity\r\n \t\t\t// as it was started additionally to the main instance.\r\n \t\t\t// will return to the previous activity = DemoList\r\n \t\t} else {\r\n \t\t\t\t\t\r\n \t\t\tthis.finish();\r\n \tthis.overridePendingTransition(0, 0);\r\n \t\t}\r\n \t\r\n \t\t// quit the application\r\n \t} else {\r\n \t\t\r\n \t\tthis.finish();\r\n \tthis.overridePendingTransition(0, 0);\r\n \t\r\n \tAudio.getInstance().stopThread();\r\n \t\r\n \t// If I decide to not kill the process anymore, don't\r\n \t// forget to restart the SoundThread and set this flag\r\n \t// LOOPER_PREPARED = false;\r\n \tProcess.killProcess(Process.myPid());\r\n \t}\r\n }", "public boolean isBackScreenLocked() {\n return isBSLock;\n }", "@Override\n public void onBackPressed() {\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n if (back_pressed + 2000 > System.currentTimeMillis()) {\n\n super.onBackPressed();\n this.finish();\n\n } else\n Toast.makeText(getBaseContext(), \"Press once again to exit!\", Toast.LENGTH_SHORT).show();\n back_pressed = System.currentTimeMillis();\n }", "@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\t if (keyCode == KeyEvent.KEYCODE_BACK) {\n\t\t\t ManagerActivity.getAppManager().finishAllActivity();\n\t\t return true;\n\t\t }\n\t\t return super.onKeyDown(keyCode, event);\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "public boolean getBack()\n {\n return m_bBackLock;\n }", "@java.lang.Override\n public boolean getBackToBackEnabled() {\n return backToBackEnabled_;\n }", "public void back(){\n\t\tswitch(state){\n\t\tcase LOGINID:\n\t\t\tbreak; //do nothing, already at top menu\n\t\tcase LOGINPIN:\n\t\t\tloginMenu();\n\t\t\tbreak;\n\t\tcase TRANSACTION:\n\t\t\tbreak; //do nothing, user must enter the choice to log out\n\t\tcase DEPOSIT:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase DEPOSITNOTIFICATION:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAW:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase BALANCE:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAWALNOTIFICATION:\n\t\t\tbreak; //do onthing, user must press ok\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}", "@Override\n public void onBackPressed() {\n if (doubleBackToExitPressedOnce) {\n super.onBackPressed();\n return;\n }\n\n // Sets boolean to true when user presses back button\n this.doubleBackToExitPressedOnce = true;\n Toast.makeText(this, \"Press again to exit\", Toast.LENGTH_SHORT).show();\n\n // System waits for 2 seconds before setting boolean value to false again\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n doubleBackToExitPressedOnce = false;\n }\n }, 2000);\n }", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "public void onBackPressed() {\n // do nothing. We want to force user to stay in this activity and not drop out.\n }", "@Override\n public void onBackPressed()\n {\n mIsBackButtonPressed = true;\n super.onBackPressed();\n \n }", "@Override\n public void onBackPressed() {}", "public void GoBack(){\n if (prev_hostgui != null){\n this.setVisible(false);\n prev_hostgui.setVisible(true);\n } else{\n this.setVisible(false);\n prev_guestgui.setVisible(true);\n }\n }" ]
[ "0.76588225", "0.76588225", "0.74201965", "0.74009824", "0.73557043", "0.73314106", "0.7271377", "0.7228904", "0.6975654", "0.69422746", "0.69422746", "0.6925324", "0.68913", "0.6836502", "0.6835339", "0.6802555", "0.6790436", "0.6766259", "0.6762021", "0.6720117", "0.67054725", "0.66970986", "0.6683547", "0.6666648", "0.66471255", "0.66324234", "0.6626543", "0.66159594", "0.6601179", "0.6571788", "0.65713245", "0.6525286", "0.6524459", "0.6510349", "0.6498818", "0.64974654", "0.6471918", "0.6469029", "0.6465275", "0.6462061", "0.6459861", "0.6459643", "0.6459137", "0.6448751", "0.644848", "0.6437605", "0.64357436", "0.6435616", "0.6431946", "0.64102805", "0.64064693", "0.6402281", "0.6398344", "0.63894206", "0.63864595", "0.6383973", "0.6371421", "0.6368415", "0.6362985", "0.6359048", "0.6351366", "0.63495034", "0.6342247", "0.6341152", "0.6340468", "0.63403016", "0.63368714", "0.63332087", "0.6330475", "0.63232553", "0.6317904", "0.63173854", "0.6316931", "0.63115543", "0.6308198", "0.6305784", "0.6303341", "0.6296706", "0.6295208", "0.6290448", "0.6288668", "0.62859714", "0.6278884", "0.62787294", "0.62656564", "0.6265033", "0.6264364", "0.6262188", "0.6262188", "0.6262188", "0.6262188", "0.62620574", "0.6261207", "0.62611735", "0.6260418", "0.6259513", "0.62588644", "0.6258677", "0.62575936", "0.6256421" ]
0.69947106
8
Loads a tiled map from the source provided
TiledMap loadMap(String path);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}", "public void loadMap() {\n\n try {\n new File(this.mapName).mkdir();\n FileUtils.copyDirectory(\n new File(this.plugin.getDataFolder() + \"/maps/\" + this.mapName), new File(this.mapName));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n WorldCreator wc = new WorldCreator(this.mapName);\n World world = wc.createWorld();\n world.setAutoSave(false);\n world.setPVP(false);\n world.setDifficulty(Difficulty.PEACEFUL);\n world.setGameRuleValue(\"doDaylightCycle\", \"false\");\n world.setGameRuleValue(\"mobGriefing\", \"false\");\n world.setGameRuleValue(\"doMobSpawning\", \"false\");\n world.setGameRuleValue(\"doFireTick\", \"false\");\n world.setGameRuleValue(\"keepInventory\", \"true\");\n world.setGameRuleValue(\"commandBlockOutput\", \"false\");\n world.setSpawnFlags(false, false);\n\n try {\n final JsonParser parser = new JsonParser();\n final FileReader reader =\n new FileReader(this.plugin.getDataFolder() + \"/maps/\" + this.mapName + \"/config.json\");\n final JsonElement element = parser.parse(reader);\n this.map = JumpyJumpMap.fromJson(element.getAsJsonObject());\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void loadMapsModule(){\n Element rootElement = FileOperator.fileReader(MAPS_FILE_PATH);\n if(rootElement!=null){\n Iterator i = rootElement.elementIterator();\n while (i.hasNext()) {\n Element element = (Element) i.next();\n GridMap map =new GridMap();\n map.decode(element);\n mapsList.add(map);\n }\n }\n }", "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "private void loadWorld(String path) {\r\n StringBuilder builder = new StringBuilder();\r\n \r\n try {\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n builder.append(line + \"\\n\");\r\n }\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n String file = builder.toString();\r\n String[] tokens = file.split(\"\\\\s+\");\r\n width = Integer.parseInt(tokens[0]);\r\n height = Integer.parseInt(tokens[1]);\r\n spawnX = Integer.parseInt(tokens[2]);\r\n spawnY = Integer.parseInt(tokens[3]);\r\n winX = Integer.parseInt(tokens[4]);\r\n winY = Integer.parseInt(tokens[5]);\r\n \r\n tiles = new int[width][height];\r\n for (int y = 0;y < height;y++) {\r\n for (int x = 0;x < width;x++) {\r\n tiles[x][y] = Integer.parseInt(tokens[(x + y * width) + 6]);\r\n }\r\n }\r\n \r\n assert (tiles != null);\r\n }", "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 loadMapData(Context context, int pixelsPerMeter,int px,int py){\n\n char c;\n\n //keep track of where we load our game objects\n int currentIndex = -1;\n\n //calculate the map's dimensions\n mapHeight = levelData.tiles.size();\n mapWidth = levelData.tiles.get(0).length();\n\n //iterate over the map to see if the object is empty space or a grass\n //if it's other than '.' - a switch is used to create the object at this location\n //if it's '1'- a new Grass object it's added to the arraylist\n //if it's 'p' the player it's initialized at the location\n\n for (int i = 0; i < levelData.tiles.size(); i++) {\n for (int j = 0; j < levelData.tiles.get(i).length(); j++) {\n\n c = levelData.tiles.get(i).charAt(j);\n //for empty spaces nothing to load\n if(c != '.'){\n currentIndex ++;\n switch (c){\n case '1' :\n //add grass object\n gameObjects.add(new Grass(j,i,c));\n break;\n\n case 'p':\n //add the player object\n gameObjects.add(new Player(context,px,py,pixelsPerMeter));\n playerIndex = currentIndex;\n //create a reference to the player\n player = (Player)gameObjects.get(playerIndex);\n break;\n }\n\n //check if a bitmap is prepared for the object that we just added in the gameobjects list\n //if not (the bitmap is still null) - it's have to be prepared\n if(bitmapsArray[getBitmapIndex(c)] == null){\n //prepare it and put in the bitmap array\n bitmapsArray[getBitmapIndex(c)] =\n gameObjects.get(currentIndex).prepareBitmap(context,\n gameObjects.get(currentIndex).getBitmapName(),\n pixelsPerMeter);\n }\n\n }\n\n }\n\n }\n }", "public void loadTilemap(File fileToLoad) \n {\n File levelFile = fileToLoad;\n boolean roverPainted = false; //Used to check if rover is painted twice\n try\n {\n Scanner scanner = new Scanner(levelFile);\n //Strict capture, instead of hasNextLine()\n // to enforce level grid size\n //Collect data for each column in row, then go to next row\n // 0 = surface, 1 = rover, 2 = rock, 3 = mineral\n for(int y = 0; y < Level.MAX_ROWS; y++)\n {\n for(int x = 0; x < Level.MAX_COLUMNS; x++)\n {\n if(scanner.hasNext())\n {\n tilemap[x][y] = scanner.nextInt();\n \n //Check if this tile paint was a rover\n if(tilemap[x][y] == 1)\n {\n //If rover has already been painted\n if(roverPainted)\n {\n System.out.println(\"WARNING: Multiple rovers exist. \"\n + \"Please fix level file. \");\n }\n roverPainted = true; //Set roverPainted to true\n }\n }\n else\n {\n tilemap[x][y] = 0;\n }\n }\n }\n scanner.close();\n repaint();\n }\n catch (FileNotFoundException e) \n {\n System.out.println(\"Invalid Level File\");\n e.printStackTrace();\n }\n }", "public void loadMapping(final InputSource source) {\r\n loadMapping(source, DEFAULT_SOURCE_TYPE);\r\n }", "public static void loadTiles() {\n\t\tTILE_SETS.put(\"grass\", TileSet.loadTileSet(\"plains\"));\n\t}", "public void loadMapTiles(String[] paths) throws FileNotFoundException {\n\t\tthis.paths=paths;\n\t\tfor (int i = 0; i < tileMap.length; i++) {\n\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\n\t\t\t\tif (tileMap[i][j] < 0) {\n\t\t\t\t\ttiles[i][j] = null;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tTile tile = new Tile();\n\t\t\t\ttile.getPosition().setX(j*tileDimensions.getX());\n\t\t\t\ttile.getPosition().setY(i*tileDimensions.getY());\n\t\t\t\ttile.getDimensions().setX(tileDimensions.getX());\n\t\t\t\ttile.getDimensions().setY(tileDimensions.getY());\n\t\t\t\tFileInputStream fin = new FileInputStream(paths[tileMap[i][j]]);\n\t\t\t\tImage img = new Image(fin, tileDimensions.getX(), tileDimensions.getY(), false, false);\n\t\t\t\tSprite sprite = new Sprite(img);\n\t\t\t\ttile.setSprite(sprite);\n\t\t\t\ttiles[i][j] = tile;\n\t\t\t}\n\t\t}\n\t}", "public static GameTexture loadTileFromSheet(TextureSource source, String texName, int startX, int startY) {\n return loadTextureFromSheet(source, texName, startX, startY, 16, 16);\n }", "private void loadMap(String path) {\n\t\ttry {\n\t\t\tfor(Player p : players)\tp.clear();\n\t\t\tmap.players = players;\n\t\t\tmap.setPlayerNumber(playerNumber);\n\t\t\tfor(Player p : map.players) {\n\t\t\t\tp.setMap(map);\n\t\t\t\tp.setArmies(map.getInitialArmiesNumber());\n\t\t\t}\n\t\t\tmap.setPlayerNumber(map.players.size());\n\t\t\tmap.load(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tprotected void generateMap() {\n\t\t//read map from tmx\n\t\tmap = null;\n\t\tfinal String tmx = \"res/tiles/map.tmx\";\n\t\ttry {\n\t\t\tTMXMapReader mapReader = new TMXMapReader();\n\t\t\tmap = mapReader.readMap(tmx);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tTileLayer layer = (TileLayer)map.getLayer(0);\n\n\t\ttiles = new PropertyTile[layer.getWidth()][layer.getHeight()];\n\t\tfor(int x=0; x<layer.getWidth(); x++) {\n\t\t\tfor(int y=0; y<layer.getHeight(); y++) {\n\t\t\t\tTile tile = layer.getTileAt(x, y);\n\t\t\t\tString type = (String)tile.getProperties().get(\"type\");\n\t\t\t\ttiles[x][y] = new PropertyTile(tile, TileType.valueOf(type.toUpperCase()));\n\t\t\t\ttiles[x][y].setImage(tile.getImage());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//generate animated tiles from river tileset\n\t\tTileSet riverset = map.getTileSets().get(1);\n\t\tList<AnimatedTile> animatedTiles = new ArrayList<>();\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tTile[] frames = new Tile[3];\n\t\t\tIterator<Tile> iterator = riverset.iterator();\n\t\t\twhile(iterator.hasNext()) {\n\t\t\t\tTile tile = iterator.next();\n\t\t\t\tint rtile = Integer.parseInt(tile.getProperties().getProperty(\"tile\"));\n\t\t\t\tint frame = Integer.parseInt(tile.getProperties().getProperty(\"frame\"));\n\t\t\t\tif(rtile == i+1) {\n\t\t\t\t\tframes[frame-1] = tile;\n\t\t\t\t}\n\t\t\t}\n\t\t\tAnimatedTile aTile = new AnimatedTile(frames);\n\t\t\tanimatedTiles.add(aTile);\n\t\t}\n\n\t\t//replace tiles in map with animated tiles\n//\t\tfor(int x=0; x<layer.getWidth(); x++) {\n//\t\t\tfor(int y=0; y<layer.getHeight(); y++) {\n//\t\t\t\tTile tile = layer.getTileAt(x, y);\n//\t\t\t\tif(tile.getProperties().containsKey(\"animated\")) {\n//\t\t\t\t\tint rtile = Integer.parseInt(tile.getProperties().getProperty(\"tile\"));\n//\t\t\t\t\tlayer.setTileAt(x, y, animatedTiles.get(rtile-1));\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t}", "private void loadTiles(String filename) {\n\t\ttry {\n\t\t\tScanner s;\n\n\t\t\tif (StealthGame.EXPORT)\n\t\t\t\ts = new Scanner(ResourceLoader.load(filename));\n\t\t\telse\n\t\t\t\ts = new Scanner(new File(filename));\n\n\t\t\tif (s.hasNextLine()) {\n\t\t\t\tname = s.nextLine();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Room has no name\");\n\t\t\t}\n\t\t\txSize = s.nextInt();\n\t\t\tySize = s.nextInt();\n\t\t\ttiles = new Tile[xSize][ySize];\n\t\t\tint xPos = 0;\n\t\t\tint yPos = 0;\n\t\t\tint tileNum = 0;\n\n\t\t\t// List of doors to be given destinations\n\n\t\t\twhile (s.hasNext()) {\n\n\t\t\t\tif (s.hasNextInt()) {\n\t\t\t\t\tparseInt(s, xPos, yPos, tileNum);\n\n\t\t\t\t\txPos++;\n\t\t\t\t\ttileNum++;\n\n\t\t\t\t\tif (xPos >= xSize) {\n\t\t\t\t\t\txPos = 0;\n\t\t\t\t\t\tyPos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Not a basic floor, door or wall\n\t\t\t\telse {\n\t\t\t\t\tString str = s.next();\n\t\t\t\t\tif (str.length() == 1) {\n\t\t\t\t\t\tparseChar(xPos, yPos, tileNum, str);\n\n\t\t\t\t\t\txPos++;\n\t\t\t\t\t\ttileNum++;\n\n\t\t\t\t\t\tif (xPos >= xSize) {\n\t\t\t\t\t\t\txPos = 0;\n\t\t\t\t\t\t\tyPos++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (str.equals(\"door\")) {\n\t\t\t\t\t\t\tparseDoorDestination(s);\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\ts.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Room - Error loading file - IOException : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}", "public void loadMap(String filepath) {\n\n\t\ttry {\n\n\t\t\tInputStream in = getClass().getResourceAsStream(filepath);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\n\t\t\tnumCols = Integer.parseInt(br.readLine());\n\t\t\tnumRows = Integer.parseInt(br.readLine());\n\t\t\tmap = new int[numRows][numCols];\n\t\t\twidth = numCols * tileSize;\n\t\t\theight = numRows * tileSize;\n\n\t\t\tString delims = \"\\\\s+\";\n\t\t\tfor (int row = 0; row < numRows; row++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tString[] tokens = line.split(delims);\n\t\t\t\tfor (int col = 0; col < numCols; col++) {\n\t\t\t\t\tmap[row][col] = Integer.parseInt(tokens[col]);\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\n\t}", "public void loadMap(FlxState gameState, String jsonMapPath){\n\t\tHashMap<String, String> layers = new HashMap<String, String>();\n\t\tHashMap<String, Array<JsonValue>> objectsJson = new HashMap<String, Array<JsonValue>>();\n\n\t\t// Cargo las layers y objectsJson. También seteo la FlxG.camera para que tenga los bounds del mapa.\n\t\tparseMap(jsonMapPath, RmbsTiledManager.objectsLayerName, layers, objectsJson);\n\n\t\t// Delego el parseo de layers a algún RmbsLayerParser\n\t\tthis.layerParser.parseLayers(gameState, layers, objectsJson);\n\t}", "public void loadStartingMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.testMap_grass); // used for IsInGrass\n this.id = 1;\n }", "public void loadLevel(String tileMapPath)\r\n\t{\r\n\t\tTiledMap map= new TmxMapLoader().load(tileMapPath);\r\n\t\tcreateLights(map);\r\n\t}", "public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}", "public static Map load(Player player, String name) {\n\t\tif (!new File(\"save/\" + name + \"/chunk\").isDirectory())\n\t\t\treturn null;\n\t\t// Setting\n\t\ttry (DataInputStream dis = new DataInputStream(\n\t\t\t\tnew FileInputStream(new File(\"save/\" + name + \"/map.settings\")))) {\n\t\t\tplayer.getCamera().setPosition(new Vector3f(dis.readFloat(), dis.readFloat(), dis.readFloat())); // Player\n\t\t\tChunk.SIZE = dis.readInt();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t// Chunk\n\t\tMap map = new Map(name);\n\t\tfor (String fileName : new File(\"save/\" + name + \"/chunk\").list()) {\n\t\t\tString[] pos = fileName.substring(0, fileName.length() - 4).split(\"_\");\n\t\t\tint chunkX = Integer.parseInt(pos[0]);\n\t\t\tint chunkY = Integer.parseInt(pos[1]);\n\t\t\tif (!loadChunk(map, new Vector2i(chunkX, chunkY)))\n\t\t\t\treturn null;\n\t\t}\n\t\tSystem.out.println(\"[Info] Map \" + name + \" loaded\");\n\t\treturn map;\n\t}", "public Map getMap(){\n\t image = ImageIO.read(getClass().getResource(\"/images/maps/\" + mapName + \".png\"));\n\t\t\n\t\t\n\t\treturn null;\t\t\n\t}", "public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }", "public static Image loadTileset(String name) {\n\t\treturn loadBitmap(TILESETS_DIR + name);\n\t}", "public void loadMap() throws Exception\n\t{\n\t\tm_grid = new char[m_map.getMapChar().length][m_map.getMapChar()[0].length];\n\n for(int i = 0; i < m_grid.length; ++i)\n {\n for(int j = 0; j < m_grid[0].length; ++j)\n {\n m_grid[i][j] = m_map.getMapChar()[i][j];\n }\n }\n\n\t}", "void loadMapToPhysics(TiledMap map, World physics);", "private void loadMap(BufferedImage[][] heroImages,\n\t\t\tBufferedImage[][] bossImages, BufferedImage[][] enemyImages) {\n\t\t// read in map graphics\n\t\tBufferedImage[] tiles = new BufferedImage[3];\n\t\tfor (int i = 0; i < tiles.length; i++)\n\t\t\ttiles[i] = Game.loadImage(\"ssTile\" + (i + 1) + \".png\");\n\n\t\t// create scanner\n\t\tScanner in = new Scanner(Game.loadStream(\"map2.txt\"));\n\n\t\t// read in map\n\t\tint width = in.nextInt(), height = in.nextInt();\n\t\tin.nextLine();\n\t\tin.nextLine();\n\t\tint[][] grid = new int[height][width];\n\t\tfor (int i = 0; i < height; i++)\n\t\t\tprocessMapLine(grid, in.nextLine(), width, i);\n\n\t\t// read in entities\n\t\thero = loadEntity(in, 200, heroImages, 32);\n\t\tboss = loadEntity(in, 1000, bossImages, 32);\n\t\tenemies = new ArrayList<SideScrollerEntity>();\n\t\tint numEnemies = in.nextInt();\n\t\tfor (int i = 0; i < numEnemies; i++)\n\t\t\tenemies.add(loadEntity(in, 1000, enemyImages, 32));\n\n\t\t// load shop graphics\n\t\tBufferedImage shopTile = Game.loadImage(\"shop2.png\");\n\n\t\tmap = new SideScrollerMap(this, this, hero, boss, enemies, 0,\n\t\t\t\t-32 * 32 + 600, sighting);\n\t\tmap.loadResources(tiles, grid, shopTile, 29, 5);\n\t}", "public TiledMapPlus(InputStream in) throws SlickException {\r\n super(in);\r\n processNameToObjectMap();\r\n processLayerMap();\r\n processTilesetMap();\r\n }", "public static Map readMap(MapName s)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n System.out.println(s.toString());\n Scanner mapReader = new Scanner(run.getClass().getResourceAsStream(\"/\"+s.toString()+\".jwmap\"));\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }", "public TileSource(String filename, int tileSize) {\n\t\tthis.tileSize = tileSize;\n\t\ttry {\n\t\t\tthis.bufImage = ImageIO.read(TileSource.class.getResourceAsStream(filename));\n\t\t\tdebug.DebugLog(\"Reading new texturepack source file:\", filename);\n\t\t}\n\t\tcatch (Exception e) {\t\t// Unable to read source data\n\t\t\tif (files.fileExists(filename)) {\n\t\t\t\tdebug.DebugLog(\"Unable to read source file.\", \"Check xkcd 2020 for further information\");\n\t\t\t} else {\n\t\t\t\tdebug.DebugLog(\"Unable to read source file:\", filename, \"Please make sure the file exists\");\n\t\t\t}\n\t\t\tJOptionPane.showMessageDialog(null, \"Harambe died for our sins.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private Tile getTile(int tpx, int tpy, int zoom, boolean eagerLoad) {\n int tileX = tpx;//tilePoint.getX();\r\n int numTilesWide = (int)getMapSize(zoom).getWidth();\r\n if (tileX < 0) {\r\n tileX = numTilesWide - (Math.abs(tileX) % numTilesWide);\r\n }\r\n \r\n tileX = tileX % numTilesWide;\r\n int tileY = tpy;\r\n //TilePoint tilePoint = new TilePoint(tileX, tpy);\r\n String url = getInfo().getTileUrl(tileX, tileY, zoom);//tilePoint);\r\n //System.out.println(\"loading: \" + url);\r\n \r\n \r\n Tile.Priority pri = Tile.Priority.High;\r\n if (!eagerLoad) {\r\n pri = Tile.Priority.Low;\r\n }\r\n Tile tile = null;\r\n //System.out.println(\"testing for validity: \" + tilePoint + \" zoom = \" + zoom);\r\n if (!tileMap.containsKey(url)) {\r\n if (!GeoUtil.isValidTile(tileX, tileY, zoom, getInfo())) {\r\n tile = new Tile(tileX, tileY, zoom);\r\n } else {\r\n tile = new Tile(tileX, tileY, zoom, url, pri, this);\r\n startLoading(tile);\r\n }\r\n tileMap.put(url,tile);\r\n } else {\r\n tile = tileMap.get(url);\r\n // if its in the map but is low and isn't loaded yet\r\n // but we are in high mode\r\n if (tile.getPriority() == Tile.Priority.Low && eagerLoad && !tile.isLoaded()) {\r\n //System.out.println(\"in high mode and want a low\");\r\n //tile.promote();\r\n promote(tile);\r\n }\r\n }\r\n \r\n /*\r\n if (eagerLoad && doEagerLoading) {\r\n for (int i = 0; i<1; i++) {\r\n for (int j = 0; j<1; j++) {\r\n // preload the 4 tiles under the current one\r\n if(zoom > 0) {\r\n eagerlyLoad(tilePoint.getX()*2, tilePoint.getY()*2, zoom-1);\r\n eagerlyLoad(tilePoint.getX()*2+1, tilePoint.getY()*2, zoom-1);\r\n eagerlyLoad(tilePoint.getX()*2, tilePoint.getY()*2+1, zoom-1);\r\n eagerlyLoad(tilePoint.getX()*2+1, tilePoint.getY()*2+1, zoom-1);\r\n }\r\n }\r\n }\r\n }*/\r\n \r\n \r\n return tile;\r\n }", "private void init() {\n\t\trunning = true;\n\t\timage = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);\n\t\tg = (Graphics2D) image.getGraphics();\n\t\ttheMap.loadTiles(\"resizedTiles2.png\");\n\t}", "void loadCheckerBoard(int tileSize);", "public void open() {\r\n\t\tFile f = getOpenFile(\"Map Files\", \"tilemap\");\r\n\t\tif (f == null) return;\r\n\t\tfile = f;\r\n\t\tframe.setTitle(\"Tile Mapper - \"+file.getName());\r\n\t\tSystem.out.println(\"Opening \"+file.getAbsolutePath());\r\n\r\n\t\ttry {\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tInputStream is = this.getClass().getClassLoader().getResourceAsStream(\"tilemapper/Map.xsd\");\r\n\t\t\tfactory.setSchema(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(new StreamSource(is)));\r\n\r\n\t\t\tDocument dom = factory.newDocumentBuilder().parse(file);\r\n\r\n\t\t\t// we have a valid document\r\n\t\t\t//printNode(dom, \"\");\r\n\t\t\tNode mapNode = null;\r\n\t\t\tNodeList nodes = dom.getChildNodes();\r\n\t\t\tfor (int i=0; i<nodes.getLength(); i++) {\r\n\t\t\t\tNode node = nodes.item(i);\r\n\t\t\t\tif (node.getNodeName() == \"Map\") mapNode = node;\r\n\t\t\t}\r\n\t\t\tif (mapNode == null) return;\r\n\t\t\tmapPanel.parseDOM((Element)mapNode);\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\tSystem.out.println(\"The underlying parser does not support the requested features.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (FactoryConfigurationError e) {\r\n\t\t\tSystem.out.println(\"Error occurred obtaining Document Builder Factory.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void loadWorld() {\n\t\tint[][] tileTypes = new int[100][100];\n\t\tfor (int x = 0; x < 100; x++) {\n\t\t\tfor (int y = 0; y < 100; y++) {\n\t\t\t\ttileTypes[x][y] = 2;\n\t\t\t\tif (x > 40 && x < 60 && y > 40 && y < 60) {\n\t\t\t\t\ttileTypes[x][y] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEntityList entities = new EntityList(0);\n\t\tPlayer player = new Player(Direction.SOUTH_WEST, 50, 50);\n\t\tentities.addEntity(player);\n\t\tentities.addEntity(new Tree(Direction.SOUTH_WEST,49, 49));\n\t\tworld = new World(new Map(tileTypes), player, entities);\n\t}", "public void loadTileImages() {\n // keep looking for tile A,B,C, etc. this makes it\n // easy to drop new tiles in the images/ directory\n tiles = new ArrayList();\n char ch = 'A';\n while (true) {\n String name = \"tile_\" + ch + \".png\";\n File file = new File(\"images/\" + name);\n if (!file.exists()) {\n break;\n }\n tiles.add(loadImage(name));\n ch++;\n }\n }", "public static boolean loadMap(String path) throws FileNotFoundException {\n\n// System.out.println(\" Enter map file address\");\n// String path = sc.next();\n\n // ---------------- Reading file-------------------------------\n File file_map = new File(path.trim());\n HashMap<String, List<String>> neighborsList = new HashMap<>();\n\n if (file_map.exists()) {\n Scanner myReader = new Scanner(file_map);\n\n while (myReader.hasNextLine()) {\n\n String data = myReader.nextLine();\n\n if (\"[Continents]\".equals(data.trim())) {\n System.out.println(\"==>\" + data.trim());\n data = myReader.nextLine();\n\n while (!data.equals(\"[Territories]\")) {\n System.out.println(data);\n String split[] = data.split(\"=\");\n String continent_name = split[0];\n String no_of_countries = split[1];\n continents.put(continent_name, Integer.parseInt(no_of_countries));\n data = myReader.nextLine();\n }\n }\n\n System.out.println(\"continents: \" + continents.toString());\n board.setContinents(continents);\n\n if (\"[Territories]\".equals(data)) {\n\n while (myReader.hasNextLine()) {\n String country_input = myReader.nextLine();\n\n String split[] = country_input.split(\",\");\n String country = split[0];\n int x = Integer.parseInt(split[1]);\n int y = Integer.parseInt(split[2]);\n String continent = split[3];\n List<String> neighbours = new ArrayList<>();\n\n for (int i = 4; i < split.length; i++) {\n neighbours.add(split[i]);\n }\n\n board.createTile(country, x, y, continent);\n neighborsList.put(country, neighbours);\n\n }\n }\n\n for (Map.Entry entry : neighborsList.entrySet()) {\n board.setNeighbourTile((List<String>) entry.getValue(), (String) entry.getKey());\n }\n\n\n }\n System.out.println(\"Risk Map Loaded!\");\n HashMap<String, Tile> map = board.getTiles();\n\n System.out.println(\"Map\" + map.keySet().toString());\n\n if (board.getContinents().size() == 0 || board.getTiles().size() == 0)\n return false;\n return true;\n\n } else {\n System.out.println(\"File does not exist! \");\n return false;\n }\n\n }", "public void LoadSecondMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.waterMap_grass); // used for IsInGrass\n this.id = 2;\n\n }", "public void load(String mapData){\n try {\n JSONObject obj = new JSONObject(mapData);\n int rows = (int)Math.round(obj.getDouble(\"rows\"));\n int cols = (int)Math.round(obj.getDouble(\"columns\"));\n loomoMap.buildMap(rows,cols);\n loomoMap.setMapName(obj.getString(\"name\"));\n loomoMap.setCellSize(obj.getDouble(\"cellSize\"));\n addLandmarkFromJSONMap(C.LANDMARK_OBSTACLE,obj,\"obstacles\");\n addLandmarkFromJSONMap(C.LANDMARK_DESTINATIONS,obj,\"destinations\");\n addLandmarkFromJSONMap(C.LANDMARK_HOME,obj,\"homeStations\");\n Destination hl = loomoMap.getLandmarks().get(\"homeA\");\n homeDestination = hl;\n loomoApplication.updateHomeLocation(this.homeDestination);\n loomoMap.printMap();\n } catch (Exception e){\n Log.d(TAG, \"loadMap: \"+ e.getMessage());\n }\n }", "private void setMapBoxTileSource(String mapType) throws UnsupportedEncodingException {\n final String keyBase64 = \"amdXY2VockFndXc2R1R1U3dQTmk=\";\n final String key = MathUtils.fromBase64(keyBase64);\n\n final ITileSource tileSource;\n if (mapType.equals(MAP_TYPE_SATELLITE)) {\n // Use the Maptiler format\n tileSource = new OnlineTileSourceBase(\"Maptiler Satellite Hybrid\", 1, 19, 256, \"\",\n new String[]{\"https://api.maptiler.com/maps/hybrid/\"}) {\n @Override\n public String getTileURLString(long pMapTileIndex) {\n return getBaseUrl()\n + MapTileIndex.getZoom(pMapTileIndex)\n + \"/\" + MapTileIndex.getX(pMapTileIndex)\n + \"/\" + MapTileIndex.getY(pMapTileIndex)\n + \"@2x.jpg?key=\" + key;\n }\n };\n mMap.setTileSource(tileSource);\n } else {\n // Below is commented out due to Mapbox billing - until this is resolved, use default OSMDroid tiles\n\n // We're using a Mapbox style, which isn't directly supported by OSMDroid due to a different URL format than Map IDs, so build the URL ourselves\n// tileSource = new OnlineTileSourceBase(\"MapBox Streets\", 1, 19, 256, \"\",\n// new String[] { \"https://api.mapbox.com/styles/v1/\" + MAP_TYPE_STREETS + \"/tiles/256/\"}) {\n// @Override\n// public String getTileURLString(long pMapTileIndex) {\n// return getBaseUrl()\n// + MapTileIndex.getZoom(pMapTileIndex)\n// + \"/\" + MapTileIndex.getX(pMapTileIndex)\n// + \"/\" + MapTileIndex.getY(pMapTileIndex)\n// + \"@2x?access_token=\" + key;\n// }\n// };\n// mMap.setTileSource(tileSource);\n }\n }", "public void initMap(String path) {\n \tgameState = StateParser.makeGame(path);\n\t\tintel = gameState.getCtrlIntel();\t\n\t\tsnakes = gameState.getSnake();\n\t\tmap = gameState.getMap();\n }", "public TiledMapPlus(String ref, boolean loadTileSets) throws SlickException {\r\n super(ref, loadTileSets);\r\n processNameToObjectMap();\r\n processLayerMap();\r\n processTilesetMap();\r\n }", "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 }", "Map(String input) {\n row = 0;\n col = 0;\n\n String line;\n Scanner fin = null;\n try\n {\n fin = new Scanner(new File(input));\n }\n catch (FileNotFoundException x)\n {\n System.out.println(\"Error: \" + x);\n System.exit(0);\n }\n // Take first line and get mapLength and mapHeight. Initialize map array\n line = fin.nextLine();\n String[] temp = line.split(\" \");\n maxR = Integer.parseInt(temp[0].toString());\n maxC = Integer.parseInt(temp[1].toString());\n map = new String[maxR][maxC];\n\n for(int j = 0; j < maxR; j++) {\n line = fin.nextLine();\n for(int i = 0; i < maxC; i++){\n map[j][i] = (line.charAt(i)) + \"\";\n }\n }\n }", "@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }", "public MapTile() {}", "public void load(File source);", "private void loadTiles(Board board) {\n TileSetCache tileSetCache = new TileSetCache();\n board.initializeTileSetCache(tileSetCache);\n board.createLayers();\n\n for (BoardLayer layer : board.getLayers()) {\n BoardLayerView layerView = new BoardLayerView(layer);\n this.addLayerView(layerView);\n }\n }", "public void readMapFile(Scanner input) {\n this.height = input.nextInt();\n this.width = input.nextInt();\n if((this.height >= 20 && this.height <= 50) && (this.width >= 20 && this.width <= 50)) \n {\t \n\t while(input.hasNext())\n\t {\n\t this.map += input.next();\n\t }\n\t input.close();\n }\n else\n {\n \tSystem.err.println(\"Map you have chosen is corrupted, please report this map to your neareast administrator\");\n \tSystem.exit(1);\n }\n \t\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 }", "public void loadMapping(final String url) throws IOException, MappingException {\r\n loadMapping(url, DEFAULT_SOURCE_TYPE);\r\n }", "private Bitmap decodeMapBitmap() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = false;\n options.inScaled = false;\n options.outWidth = 2048;\n options.outHeight = 2048;\n\n return BitmapFactory.decodeResource(getResources(), R.drawable.map, options);\n }", "@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}", "private void loadMap(ArrayList<Sprite> allSprites) {\n\t\tint numTargets = 0;\n\t\t\n\t\tfor (Sprite thisSprite : allSprites) {\n\t\t\tif(!(thisSprite instanceof Explosion)) {\n\t\t\t\tputInCell(thisSprite.getX(), thisSprite.getY(), thisSprite);\n\t\t\t}\n\t\t\tif (thisSprite instanceof Target) {\n\t\t\t\tnumTargets++;\n\t\t\t}\n\t\t\tif(thisSprite instanceof Door) {\n\t\t\t\tthis.theDoor = (Door)thisSprite;\n\t\t\t}\n\t\t\tif(thisSprite instanceof Player) {\n\t\t\t\tthis.thePlayer = (Player)thisSprite;\n\t\t\t}\n\t\t}\n\t\tthis.numTargets = numTargets;\n\t}", "public TiledMapPlus(InputStream in, String tileSetsLocation) throws SlickException {\r\n super(in, tileSetsLocation);\r\n processNameToObjectMap();\r\n processLayerMap();\r\n processTilesetMap();\r\n }", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "public Map(String level) {\n this.level = level;\n terrains = new String[]{\"r\", \"p\", \"m1\", \"m2\", \"m3\"};\n\n //if default random\n if (level.equals(\"default\")) {\n String[] defaultLevel = {\n \"p\", \"p\", \"m1\", \"p\", \"r\", \"p\", \"m3\", \"p\", \"p\",\n \"p\", \"m1\", \"p\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m3\",\n \"m3\", \"p\", \"p\", \"p\", \"t\", \"p\", \"p\", \"p\", \"m1\",\n \"p\", \"m2\", \"p\", \"p\", \"r\", \"p\", \"m2\", \"p\", \"p\",\n \"p\", \"p\", \"m2\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m2\"};\n int j = 0;\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++, j++) {\n tiles[i][k] = new Tile(i, k, defaultLevel[j]);\n }\n }\n }\n\n // if random level\n if (level.equals(\"random\")) {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n String ter = terrains[(int) (Math.random() * (terrains.length - 1))];\n tiles[i][k] = new Tile(i, k, ter);\n }\n }\n tiles[2][4] = new Tile(2, 4, \"t\");\n }\n }", "private GameMap loadMap(final int mapId, final boolean mobsRespawn, final boolean loadNpcs, final boolean loadReactors) {\n\t\tWzData data = mapDataProvider.getData(this.getPaddedMapName(mapId));\n\t\tfinal WzData link = data.getChildByPath(\"info/link\");\n\t\tif (link != null) {\n\t\t\tdata = mapDataProvider.getData(this.getPaddedMapName(WzDataTool.getIntConvert(\"info/link\", data)));\n\t\t}\n\n\t\tfloat monsterRate = 0;\n\t\tif (mobsRespawn) {\n\t\t\tfinal WzData mobRate = data.getChildByPath(\"info/mobRate\");\n\t\t\tif (mobRate != null) {\n\t\t\t\tmonsterRate = ((Float) mobRate.getData()).floatValue();\n\t\t\t}\n\t\t}\n\n\t\tfinal int returnMapId = WzDataTool.getInt(\"info/returnMap\", data);\n\t\tfinal GameMap map = new GameMap(mapId, returnMapId, monsterRate);\n\n\t\tfinal PortalFactory portalFactory = new PortalFactory();\n\t\tfor (final WzData portalData : data.getChildByPath(\"portal\")) {\n\t\t\tfinal Portal portal = portalFactory.createPortal(portalData);\n\t\t\tmap.addPortal(portal);\n\t\t}\n\n\t\tfinal FootholdTree footholds = loadFootholds(data);\n\t\tmap.setFootholds(footholds);\n\n\t\t// load areas (EG PQ platforms)\n\t\tfinal WzData areaData = data.getChildByPath(\"area\");\n\t\tif (areaData != null) {\n\t\t\tfor (final WzData area : areaData) {\n\t\t\t\tfinal Rectangle mapArea = WzDataTool.getRectangle(\"x1\", \"y1\", \"x2\", \"y2\", area);\n\t\t\t\tmap.addArea(mapArea);\n\t\t\t}\n\t\t}\n\n\t\tString message = null;\n\t\tfinal WzData timeMob = data.getChildByPath(\"info/timeMob\");\n\t\tif (timeMob != null) {\n\t\t\tmessage = WzDataTool.getString(\"message\", timeMob, null);\n\t\t}\n\n\t\t// load life data (npc, monsters)\n\t\tfor (final WzData life : data.getChildByPath(\"life\")) {\n\t\t\tfinal String type = WzDataTool.getString(\"type\", life);\n\t\t\tif (loadNpcs || !type.equals(\"n\")) {\n\t\t\t\tfinal String id = WzDataTool.getString(\"id\", life);\n\t\t\t\tfinal AbstractLoadedLife myLife = this.loadLife(life, id, type);\n\t\t\t\tif (myLife instanceof Monster) {\n\t\t\t\t\tfinal Monster mob = (Monster) myLife;\n\t\t\t\t\tfinal int mobTime = WzDataTool.getInt(\"mobTime\", life, 0);\n\t\t\t\t\tfinal byte team = (byte) WzDataTool.getInt(\"team\", life, -1);\n\t\t\t\t\tmap.addMonsterSpawn(mob, mobTime, team, message);\n\t\t\t\t} else {\n\t\t\t\t\tfinal boolean bAdd = true;\n\t\t\t\t\tif (bAdd) {\n\t\t\t\t\t\tmap.addMapObject(myLife);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.addAreaBossSpawn(map);\n\t\tmap.loadMonsterRate(true);\n\n\t\t// load reactor data\n\t\tfinal WzData reactorEntry = data.getChildByPath(\"reactor\");\n\t\tif (loadReactors && reactorEntry != null) {\n\t\t\tfor (final WzData reactor : reactorEntry) {\n\t\t\t\tfinal String id = WzDataTool.getString(\"id\", reactor);\n\t\t\t\tif (id == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfinal Reactor loadedReactor = this.loadReactor(reactor, id);\n\t\t\t\tmap.spawnReactor(loadedReactor);\n\t\t\t}\n\t\t}\n\n\t\tmap.setClock(data.getChildByPath(\"clock\") != null);\n\t\tmap.setEverlast(data.getChildByPath(\"info/everlast\") != null);\n\t\tmap.setTown(data.getChildByPath(\"info/town\") != null);\n\n\t\tmap.setForcedReturnMap(WzDataTool.getInt(\"info/forcedReturn\", data, 999999999));\n\n\t\tmap.setRecoveryRate(WzDataTool.getFloat(\"info/recovery\", data, 1.0f));\n\t\tmap.setHPDec(WzDataTool.getInt(\"info/decHP\", data, 0));\n\t\tmap.setHPDecProtect(WzDataTool.getInt(\"info/protectItem\", data, 0));\n\t\tmap.setFieldLimit(WzDataTool.getInt(\"info/fieldLimit\", data, 0));\n\t\tmap.setTimeLimit(WzDataTool.getInt(\"info/timeLimit\", data, -1));\n\n\t\tmap.setPersonalShop(data.getChildByPath(\"info/personalShop\") != null);\n\t\tmap.setCreateMobInterval((short) WzDataTool.getInt(\"info/createMobInterval\", data, 9000));\n\n\t\tmap.setFirstUserEnter(WzDataTool.getString(\"info/onFirstUserEnter\", data, \"\"));\n\t\tmap.setUserEnter(WzDataTool.getString(\"info/onUserEnter\", data, \"\"));\n\t\treturn map;\n\t}", "public boolean openMap(String name){\n\t\tObjectInputStream inputStream;\n\t\tString path = new File (\".\").getAbsolutePath();\n\t\tString fileName=path.concat(\"//Maps//\"+name+\".txt\");\n\t\tFile file = new File(fileName);\n\t\t\n\t\tMap m=Map.getInstance();\n\t\ttemp.clear();\n\t\t\n\t\t//Map.temp = new LinkedList<Path>();\n\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileInputStream=new FileInputStream(file);\n\t\t\tinputStream = new ObjectInputStream(fileInputStream);\n\t\t\tint width=inputStream.readInt();\n\t\t\tint height=inputStream.readInt();\n//\t\t\tSystem.out.println(\"width: \"+width);\n//\t\t\tSystem.out.println(\"height: \"+height);\n\n\t\t\tm.setMap(height, width);\n\t\t\t\n\t\t\tm.setCompletePath(false);\n\t\t\tm.currentPos=-1;\n\t\t\tm.currentPath=null;\n\t\t\t\n\t\t\t\n\t\t\tint pPos=0;\n\t\t\tpPos=inputStream.readInt();\n\n\t\t\t//System.out.println(\"The Path is:\");\n\t\t\twhile(pPos>=0){\n\t\t\t\tm.setCellToPath(pPos);\n\t\t\t//\tSystem.out.println(pPos);\n\t\t\t\tpPos=inputStream.readInt();\n\n\t\t\t}\n\t\t\t\n\t\t\tinputStream.close();\n\t\t\tm.finalizePath();\n\t\t\treturn true; \n\t\t\n\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Problem opening the file \"+ name+\".txt\");\n\t\t//\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem reading the file\"+ name+\".txt\");\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn false;\n\n\t}", "private void fetchTile() {\n\t\t\tif (tile.getRequest().isCancelled() || tile.isFinal()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tMapSource source = tile.getRequest().getSource();\n\t\t\tProjObj proj = tile.getRequest().getProjection();\n\t\t\tfinal int ppd = tile.getRequest().getPPD();\n\t\t\t\n\t\t\tfor (int fuzzyPPD = ppd/2 ; fuzzyPPD > 1 ; fuzzyPPD /= 2){\t\t\t\t\n\t\t\t\tint ratio = ppd / fuzzyPPD;\n\t\t\t\t\n\t\t\t\t// A tile has 256 pixels on a side.\n\t\t\t\t// Using this method, we can't upscale data to be fuzzy if it's more than 256 times larger \n\t\t\t\t// than the area we are looking to fill. Upscaling data more than 16 times seems unlikely to provide\n\t\t\t\t// any real benefit to the user, so we will quit our search at this point\n\t\t\t\tif (ratio>16) break;\n\t\t\t\t\n\t\t\t\tString tileName = CacheManager.getTileName(\n\t\t\t\t\tsource.getName(), proj, fuzzyPPD,\n\t\t\t\t\ttile.getXtile()/ratio, tile.getYtile()/ratio,\n\t\t\t\t\tsource.hasNumericKeyword());\n\t\t\t\t\n\t\t\t\tBufferedImage tileImage = CacheManager.getTile(source, tileName);\n\t\t\t\t\n\t\t\t\tif (tileImage==null) {\t\t\t\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint xtileindex = tile.getXtile() % ratio;\n\t\t\t\tint ytileindex = ratio - (tile.getYtile() % ratio) - 1;\n\t\t\t\t\n\t\t\t\tdouble fuzzyxstep = MapRetriever.tiler.getPixelWidth() / ratio;\n\t\t\t\tdouble fuzzyystep = MapRetriever.tiler.getPixelHeight() / ratio;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\ttileImage = tileImage.getSubimage((int)(xtileindex * fuzzyxstep), (int)(ytileindex * fuzzyystep), (int)fuzzyxstep, (int)fuzzyystep);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog(e);\n\t\t\t\t\tlog(\"xtileindex:\"+xtileindex+\" fuzzyxstep:\"+fuzzyxstep+\" ytileindex:\"+ytileindex+\" fuzzyystep:\"+fuzzyystep);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong outputImageSize = (tileImage.getWidth()*ratio)*(tileImage.getHeight()*ratio);\n\t\t\t\tif (outputImageSize <= 0 || outputImageSize > Integer.MAX_VALUE){\n\t\t\t\t\tlog(\"Scaling tile from \"+fuzzyPPD+\" to \"+ppd+\" will result in image size overflow.\"+\n\t\t\t\t\t\t\t\" Stopping further search for lower PPDs for this tile.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttileImage = CacheManager.scaleImage(tileImage, ratio);\n\t\t\t\t\n\t\t\t\tmyRetriever.fuzzyResponse(tile, tileImage);\n\t\t\t}\t\t\t\t\t\t\n\t\t}", "private void placeTilesFromOriginalMap(String path, String surfaceType, int shiftX, int shiftY) {\r\n\t\tbyte[] map = rl.getData(\"en\", path);\r\n\t\tPlanetType pt = galaxyModel.planetTypes.get(surfaceType);\r\n\t\tint bias = 41; \r\n\t\tif (\"neptoplasm\".equals(surfaceType)) {\r\n\t\t\tbias = 84;\r\n\t\t}\r\n\t\tfor (int i = 0; i < 65 * 65; i++) {\r\n\t\t\tint tile = (map[4 + i * 2] & 0xFF) - bias;\r\n\t\t\tint strip = map[5 + i * 2] & 0xFF;\r\n\t\t\tif (strip == 0 && tile != 255) {\r\n\t\t\t\tLocation loc = toOriginalLocation(i);\r\n\t\t\t\tTile t = pt.tiles.get(tile);\r\n\t\t\t\tif (t != null) {\r\n\t\t\t\t\tSurfaceFeature sf = new SurfaceFeature();\r\n\t\t\t\t\tsf.location = Location.of(loc.x + shiftX, loc.y + shiftY);\r\n\t\t\t\t\tsf.id = tile;\r\n\t\t\t\t\tsf.type = surfaceType;\r\n\t\t\t\t\tsf.tile = t;\r\n\t\t\t\t\trenderer.surface.features.add(sf);\r\n\t\t\t\t\tplaceTile(t, loc.x + shiftX, loc.y + shiftY, SurfaceEntityType.BASE, null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void initMapData() {\n\n\t\ttry {\n\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\t\n\t\t\tfor (int row = 0; row < height; row++) {\n\t\t\t\t\n\t\t\t\t// read a line\n\t\t\t\tString line = br.readLine();\n\t\t\t\t\n\t\t\t\t// if length of this line is different from width, then throw\n\t\t\t\tif (line.length() != width)\n\t\t\t\t\tthrow new InvalidLevelFormatException();\n\t\t\t\t\n\t\t\t\t// split all single characters of this string into array\n\t\t\t\tchar[] elements = line.toCharArray();\n\t\t\t\t\n\t\t\t\t// save these single characters into mapData array\n\t\t\t\tfor (int col = 0; col < width; col++) {\n\t\t\t\t\tmapElementStringArray[row][col] = String.valueOf(elements[col]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void setMapFile(String mapName) {\n map = Map.loadFromJSON(mapName);\n }", "public void loadMapping(final URL url) throws IOException, MappingException {\r\n loadMapping(url, DEFAULT_SOURCE_TYPE);\r\n }", "protected Properties loadData() {\n/* 362 */ Properties mapData = new Properties();\n/* */ try {\n/* 364 */ mapData.load(WorldMapView.class.getResourceAsStream(\"worldmap-small.properties\"));\n/* 365 */ } catch (IOException e) {\n/* 366 */ e.printStackTrace();\n/* */ } \n/* */ \n/* 369 */ return mapData;\n/* */ }", "private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}", "public void loadMapping(final InputSource source, final String type) {\r\n _mappings.add(new MappingSource(source, type, _resolver));\r\n }", "public void LoadThirdMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.flatMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.flatMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.flatMap_grass[counter], true);\n counter++;\n }\n }\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.flatMap_grass); // used for IsInGrass\n this.id = 3;\n\n }", "public MapTexture getTexture(String path) {\n MapTexture result = textureCache.get(path);\n if (result == null) {\n InputStream inputStream = openFileStream(ResourceType.TEXTURES, path);\n if (inputStream != null) {\n result = MapTexture.fromStream(inputStream);\n }\n if (result == null) {\n if (!path.startsWith(\"#\")) {\n Logging.LOGGER_MAPDISPLAY.once(Level.WARNING, \"Failed to load texture: \" + path);\n }\n result = this.createPlaceholderTexture();\n }\n\n // Animated textures: when height is a multiple of width\n // Find the mcmeta. If one does not exist, fail.\n // Otherwise, load the first frame (wxw) area.\n int num_frames = result.getHeight() / result.getWidth();\n if (num_frames > 1 && ((num_frames * result.getWidth()) == result.getHeight())) {\n InputStream metaStream = openFileStream(ResourceType.TEXTURES_META, path);\n if (metaStream == null) {\n Logging.LOGGER_MAPDISPLAY.once(Level.WARNING, \"Failed to load animated texture (missing mcmeta): \" + path);\n result = this.createPlaceholderTexture();\n } else {\n result = result.getView(0, 0, result.getWidth(), result.getWidth()).clone();\n try {\n metaStream.close();\n } catch (IOException e) {}\n }\n }\n\n textureCache.put(path, result);\n }\n return result;\n }", "public static GameTexture loadTileFromSheet(BufferedImage image, String texName, int startX, int startY) {\n return loadTextureFromSheet(image, texName, startX, startY, 16, 16);\n }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "public static int[][] loadMap(String fileName) throws Exception{\n FileReader fr=new FileReader(fileName);\n int c;\n String str=\"\";\n List<String> strA=new ArrayList<>(); //list of lines\n //process out newlines from midline\n while((c=fr.read())!=-1){\n System.out.print((char)c); //show map\n if(!(((char)c=='\\n') || ((char)c=='\\r'))){str=str+(char)c;}\n else if(((char)c=='\\n' || (char)c=='\\r')){\n if(strA.size()<1) {strA.add(str);str=\"\";}\n else if(strA.size()>0 && strA.get(0).length()>str.length()){} //newline char found midline\n else {strA.add(str);str=\"\";}\n }\n else System.out.println(\"Err: \"+(char)c);\n }\n strA.add(str);\n System.out.println(\"\\nWidth: \"+str.length()+\"\\nHeight: \"+strA.size());\n //now that size is known, fill info array\n int[][] map=fillMap(strA);\n \n return map;\n }", "public void load(DataResource aData) {\n\t\tString errorMsg = \"%s - map could not be loaded\\n\";\n\t\tString successMsg = \"%s - map loaded\\n\";\n\t\t\n\t\tSystem.out.printf(\"%s - loading map from %s...\\n\", getClass().getName(), aData.getUrl().getFile());\n\t\t\n\t\tInputStream inStr = null;\n\t\t\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(aData.getInputStream()));\n\t\t\tString line;\n\t\t\t\n\t\t\twhile ((line = br.readLine()) != null) {\n String[] columns = line.split(\"\\t\");\n \n if (columns.length == 3){\n \tif (!collocationMap.containsKey(columns[0])){\n \tMap<String, Integer> pair = new HashMap<String, Integer>();\n collocationMap.put(columns[0], pair);\n \t}\n \t\n \tcollocationMap.get(columns[0]).put(columns[1], Integer.valueOf(columns[2]));\n }\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(successMsg, getClass().getName());\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.printf(errorMsg, getClass().getName());\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.printf(errorMsg, getClass().getName());\n\t\t} finally {\n\t\t\tif (inStr != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinStr.close();\n\t\t\t\t} catch (IOException e) {}\n\t\t\t}\n\t\t}\n\t}", "static void loadPgm() {\n String file;\n try {\n // Prompt for pgm\n System.out.print(\"Enter terrain file: \"); file = scan.nextLine();\n // Read pgm\n pgmInf = new PgmImageInfo( file );\n // More Interaction\n System.out.printf(\"Read terrain file: %d by %d, \", pgmInf.width, pgmInf.height );\n System.out.printf(\"height ranges from %d to %d.\\n\", 0, pgmInf.maxValue);\n }\n catch (Exception e) {\n System.out.println(\"readPgmFile: failed to read file! Error!: \" + e.getLocalizedMessage());\n loadPgm();\n }\n }", "public abstract TiledMapTileSet getTileSet();", "public static Map loadMap(String MapFile){\n int Bottle =0;\n int Bottle1= 0;\n Map Object = new Map(0,0);\n \n try {\n \n Scanner scan = new Scanner(new File(MapFile));\n FileReader fr = new FileReader(MapFile);\n while(scan.hasNextLine()){\n if (scan.hasNextInt()){\n Bottle = scan.nextInt();\n Bottle1 = scan.nextInt();\n\n }\n Object = new Map(Bottle,Bottle1);\n }\n fr.close();\n }\n \n catch (Exception e){\n System.out.println(\"Sorry Nothing Found\");\n System.out.println(e.toString());\n e.printStackTrace(); \n } \n \n return Object;\n }", "public void loadLevel(int level)\n {\n loadTilemap(new File(\"Levels/level\" + level + \".txt\"));\n loadFrames(level);\n Rover.getRover().reset();\n }", "public MapPanel(String map, Object[] toLoad) {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setPreferredSize(new Dimension(WIDTH, HEIGHT));\n\t\tthis.setSize(this.getPreferredSize());\n\t\tthis.setVisible(true);\n\t\tthis.setFocusable(true);\n\t\tthis.requestFocus();\n\t\ttheMap = new Map(map, 50);\n\t\ttheTrainer = new Trainer(theMap, toLoad);\n\n\t\tinBattle = false;\n\t}", "public Map(SpriteLoader sprites) {\n\n this.sprites = sprites;\n\n }", "public TileSet(String path, int TILE_SIZE) {\n // A tile set requires only a relative path and the tileSize (32 fixed for now)\n // See if tileSet already exists\n boolean sameFound = false;\n int sameIndex = 0;\n for(int i=0; i<tileSetCache.size(); i++) {\n if(tileSetCache.get(i).getTileSetPath().equals(path)) {\n sameFound = true;\n sameIndex = i;\n break;\n }\n }\n if(sameFound) {\n // If it exists we will copy already existing info over.\n tileSetPath = path;\n tileSetSrc = tileSetCache.get(sameIndex).getTileSetSrc();\n tiles = tileSetCache.get(sameIndex).getTiles();\n blank = tileSetCache.get(sameIndex).getBlank();\n Integer[] boxedArray = Arrays.stream(tileSetCache.get(sameIndex).getRemovedTileID()).boxed().toArray(Integer[]::new);\n Collections.addAll(removedTileIDList, boxedArray);\n totalTiles = tileSetCache.get(sameIndex).getTotalTiles();\n } else {\n // If it doesn't already exist in cache then attempt to load from disk\n tileSetPath = path;\n tileSetSrc = new Image(\"file:\"+ Run.GAME_DATA_PATH + \"/Art/\" + path);\n tiles = makeTiles(tileSetSrc, TILE_SIZE);\n // The last tile of a tileset should be the 'blank' tile for the set\n // To compare other tiles with for reducing Image[] size\n if (tiles.length == 0) {\n // Something has gone horribly wrong.\n System.err.println(\"NO TILES DETECTED\");\n } else {\n // If nothing bad happened from makeTiles() then we should be good\n blank = tiles[tiles.length - 1];\n int sizeOriginal = tiles.length;\n for (int step = 0; step < tiles.length; step++) {\n if (areImagesSame(tiles[step], blank)) {\n removedTileIDList.add(step);\n }\n }\n tiles = removeSameElements(tiles, blank);\n int removedTilesCount = sizeOriginal - tiles.length;\n totalTiles = tiles.length;\n if(Run.DEBUG_OUTPUT) {\n System.out.println(String.format(\"Tiles Removed: %d\", removedTilesCount));\n }\n }\n TileSet.tileSetCache.add(this); // After finishing the tileSet we add to master cache\n tileSetCache.trimToSize();\n }\n }", "final public void fieldFromSrc(){\n List<String> lines = readSrc();\n size = Integer.parseInt(lines.get(0));\n Tile[] tiles = new Tile[size*size];\n int count = 0;\n Tile t;\n \n char[][] fieldChars = new char[size][size];\n \n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n try{\n fieldChars[X][Y] = lines.get(Y+1).charAt(X);\n }catch(StringIndexOutOfBoundsException e){\n System.out.println(e);\n }\n }\n }\n \n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n Coordinaat C = new Coordinaat(X,Y); \n switch(fieldChars[X][Y]){\n case 'M' : \n t = new Muur(C); \n break;\n case 'V' :\n t = new Veld(C);\n break;\n case 'E' :\n t = new EindVeld(C);\n break;\n default :\n t = new Tile(C);\n break;\n }\n tiles[count] = t;\n count++;\n }\n }\n \n fillField(tiles,size);\n createMoveAbles(lines.subList(size+2, lines.size()));\n }", "public TileWorldUtil(String fileName) {\n load(fileName);\n }", "@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 static Map readMap(File f)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n Scanner mapReader = new Scanner(f);\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }", "String getTileUrl(int zoom, int tilex, int tiley) throws IOException;", "public IsoTiledTest() {\r\n\t\tsuper(\"Isometric Tiled Map Test\");\r\n\t}", "public void loadData() {\n String[] animalsListRaw = loadStrings(\"data/animalList.csv\");\n //String[] animalsListRaw = loadStrings(\"data/mythical.creatures.csv\");\n String[] animalList = getList(animalsListRaw);\n SearchQuery newSearch = new SearchQuery(animalList); \n allMaps = newSearch.getMap();\n \n map = new UnfoldingMap(this);\n map.setBackgroundColor(color(179, 223, 222, 255));\n map.zoomAndPanTo(width/2, height/2, 2);\n //MapUtils.createDefaultEventDispatcher(this, map);\n countries = GeoJSONReader.loadData(this, \"countries.geo.json\");\n marks = new MarkerMaker(allMaps, countries);\n map.draw();\n}", "public void loadMapGame(LoadedMap map)throws BadMapException{\n ArrayList<Boat> boats = createLoadedBoats(map);\n\n Board board = new Board(map.getInterMatrix().length, map.getInterMatrix()[0].length, 0);\n\n //CREATE A GAME\n GameData gameData = new GameData(board, boats, false);\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n }", "Bitmap load(String id);", "public void initializeMaps() {\n\t\t//can use any map\n\n\t\t//left map\n\t int x = 0, y = 0;\n\t int Lvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyLeft.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tLvalue = Integer.parseInt(str);\n\t \t\t\tleftMap[x][y] = Lvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //right map\n\t x = 0;\n\t y = 0;\n\t int Rvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \t//change to map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyRight.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tRvalue = Integer.parseInt(str);\n\t \t\t\trightMap[x][y] = Rvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //print each map for testing\n\t for(int i = 0; i < leftMap.length; i++ )\n\t \tfor(int j = 0; j < leftMap[i].length; j++ )\n\t \t\tSystem.out.println(leftMap[i][j]);\n\t System.out.println(\"*-----------------*\");\n\t for(int i = 0; i < rightMap.length; i++ )\n\t \tfor(int j = 0; j < rightMap[i].length; j++ )\n\t \t\tSystem.out.println(rightMap[i][j]);\n\t}", "public void load(String code) {\n\n\t\tEngine.console.write(\"load method echo\");\n\t\tif (!code.matches(\"(\\\\d){4}\")) {\n\t\t\tEngine.console.write(\"code does not match regex for map ID\");\n\t\t\treturn;\n\t\t} else {\n\t\t\tEngine.console.write(\"code matches regex\");\n\t\t\ttry {\n\t\t\t\tFileInputStream fis = new FileInputStream(\"/boards/\" + code + \".map\");\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\t\tBoard loaded = (Board) ois.readObject();\n\t\t\t\tEngine.activeBoard = loaded;\n\t\t\t\tEngine.console.write(\"loaded and assigned\");\n\t\t\t\tSystem.out.println(Engine.activeBoard);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tEngine.console.write(\"File \" + code + \".map not found\", Console.ERROR);\n\t\t\t} catch (ClassNotFoundException ex) {\n\t\t\t\tEngine.console.write(\"Class not found\", Console.ERROR);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void gameInit() \r\n\t{\r\n\t\tfont = new Font(\"Courier\", Font.BOLD, 14);\r\n\t\tfontInfo = this.getFontMetrics(font);\r\n\t\tkeys = new KeyValues();\r\n\t\t\r\n\t\tbackground.loadImage(\"/images/sky.png\");\r\n\t\ttileset = new TileSet(10,10,32,32);\r\n\t\ttileset.loadTiles(\"/images/test_tiles.png\");\r\n\t\tmap = new Map(tileset, 20, 50);\r\n\t\tmap.readMap(\"res/maps/testmap2.txt\");\r\n\t\t\r\n\t\tcamera.setDimensions(getScreenWidth(), getScreenHeight());\r\n\t\tcamera.setXRange(0, map.getWidth() - getScreenWidth());\r\n\t\tcamera.setYRange(0, map.getHeight() - getScreenHeight());\r\n\t}", "public static Render loadBitmap(String location) {\n try {\n BufferedImage texture = ImageIO.read(new File(location));\n int width = texture.getWidth();\n int height = texture.getHeight();\n Render result = new Render(width, height);\n texture.getRGB(0, 0, width, height, result.pixels, 0, width);\n return result;\n } catch (Exception e) {\n System.out.println(\"Cannot load texture \" + location);\n throw new RuntimeException(e);\n }\n }", "private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }", "public Map makeMap(int mapID) throws IOException{\r\n switch (mapID){\r\n case 1:\r\n BufferedReader br1 = new BufferedReader(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(\"maps\" + \"/\" + \"map1.json\")));\r\n map = json.fromJson(br1, Map.class);\r\n break;\r\n case 2:\r\n BufferedReader br2 = new BufferedReader(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(\"maps\" + \"/\" + \"map2.json\")));\r\n map = json.fromJson(br2, Map.class);\r\n break;\r\n case 3:\r\n BufferedReader br3 = new BufferedReader(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(\"maps\" + \"/\" + \"map3.json\")));\r\n map = json.fromJson(br3, Map.class);\r\n break;\r\n case 4:\r\n BufferedReader br4 = new BufferedReader(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(\"maps\" + \"/\" + \"map4.json\")));\r\n map = json.fromJson(br4, Map.class);\r\n break;\r\n }\r\n\r\n return map;\r\n }", "public void loadTexture(String s) {\n\t\tFile file = new File(s);\n\t\ttry {\n\t\t\tbufferimage = ImageIO.read(file);\n\t\t\tint pixels[] = bufferimage.getRGB(0, 0, bufferimage.getWidth(),\n\t\t\t\t\tbufferimage.getHeight(), null, 0, bufferimage.getWidth());\n\t\t\tbuffer = IntBuffer.wrap(pixels);\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "void parseMap(String mapData)\n {\n try {\n \n StringTokenizer\tst = new StringTokenizer(mapData);\n \n int\t\tsizeX, sizeY;\n int\t\tx = 0;\n int\t\ty = 0;\n int\t\te;\n char\tt;\n \n // Get the size of the map\n sizeX = Integer.parseInt(st.nextToken());\n sizeY = Integer.parseInt(st.nextToken());\n \n map = new MUXMap(sizeX, sizeY);\n \n // Loop thru each line\n while (st.hasMoreTokens())\n {\n String\t\t\tthisLine = st.nextToken();\n \n // Think the map is over if we hit this thing\n if (thisLine.equals(\"-1\") || thisLine.startsWith(\"-1 \"))\n break;\n \n for (x = 0; x < sizeX * 2; x+=2)\n {\n // Get terrain and elevation, then set the data in the map\n t = thisLine.charAt(x);\n e = Character.digit(thisLine.charAt(x + 1), 10);\n map.setHex(x/2, y, t, e);\n }\n \n // One more line down in y\n y++;\n } \n } catch (Exception e) {\n System.out.println(\"Error: readMap: \" + e);\n }\n \n }", "public Map(Tile[][] tiles) {\n terrains = new String[]{\"r\", \"p\", \"m1\", \"m2\", \"m3\"};\n this.tiles = tiles;\n }", "public interface TileSource extends Attributed {\n\n /**\n * Specifies the different mechanisms for detecting updated tiles\n * respectively only download newer tiles than those stored locally.\n *\n * <ul>\n * <li>{@link #IfNoneMatch} Server provides ETag header entry for all tiles\n * and <b>supports</b> conditional download via <code>If-None-Match</code>\n * header entry.</li>\n * <li>{@link #ETag} Server provides ETag header entry for all tiles but\n * <b>does not support</b> conditional download via\n * <code>If-None-Match</code> header entry.</li>\n * <li>{@link #IfModifiedSince} Server provides Last-Modified header entry\n * for all tiles and <b>supports</b> conditional download via\n * <code>If-Modified-Since</code> header entry.</li>\n * <li>{@link #LastModified} Server provides Last-Modified header entry for\n * all tiles but <b>does not support</b> conditional download via\n * <code>If-Modified-Since</code> header entry.</li>\n * <li>{@link #None} The server does not support any of the listed\n * mechanisms.</li>\n * </ul>\n *\n */\n public enum TileUpdate {\n IfNoneMatch, ETag, IfModifiedSince, LastModified, None\n }\n\n /**\n * Specifies the maximum zoom value. The number of zoom levels is [0..\n * {@link #getMaxZoom()}].\n *\n * @return maximum zoom value that has to be smaller or equal to\n * {@link JMapViewer#MAX_ZOOM}\n */\n int getMaxZoom();\n\n /**\n * Specifies the minimum zoom value. This value is usually 0.\n * Only for maps that cover a certain region up to a limited zoom level\n * this method should return a value different than 0.\n *\n * @return minimum zoom value - usually 0\n */\n int getMinZoom();\n\n /**\n * @return The supported tile update mechanism\n * @see TileUpdate\n */\n TileUpdate getTileUpdate();\n\n /**\n * A tile layer name has to be unique and has to consist only of characters\n * valid for filenames.\n *\n * @return Name of the tile layer\n */\n String getName();\n\n /**\n * Constructs the tile url.\n *\n * @param zoom\n * @param tilex\n * @param tiley\n * @return fully qualified url for downloading the specified tile image\n */\n String getTileUrl(int zoom, int tilex, int tiley) throws IOException;\n\n /**\n * Specifies the tile image type. For tiles rendered by Mapnik or\n * Osmarenderer this is usually <code>\"png\"</code>.\n *\n * @return file extension of the tile image type\n */\n String getTileType();\n\n /**\n * Specifies how large each tile is.\n * @return The size of a single tile in pixels.\n */\n int getTileSize();\n\n double latToTileY(double lat, int zoom);\n\n double lonToTileX(double lon, int zoom);\n\n double tileYToLat(int y, int zoom);\n\n double tileXToLon(int x, int zoom);\n}", "Map(int width, int height, long tileWidth, Boolean[][] clip, String[][] hooks)\n {\n this.width = width;\n this.height = height;\n this.tileWidth = tileWidth;\n this.clip = clip;\n this.hooks = hooks;\n\n hookCurrent = \"default_map\";\n hookSpawn = \"spawn\";\n }" ]
[ "0.67119646", "0.6381383", "0.6354181", "0.63302433", "0.6241537", "0.6225625", "0.6202245", "0.61801285", "0.6146444", "0.6137051", "0.6077096", "0.6073917", "0.6041924", "0.6021893", "0.6012048", "0.59971344", "0.59891015", "0.59876406", "0.5980192", "0.58963007", "0.58949953", "0.5859452", "0.5844017", "0.5840788", "0.58337384", "0.5829325", "0.58245474", "0.5818847", "0.5766963", "0.5759641", "0.5743515", "0.5697619", "0.5687092", "0.56740445", "0.5671406", "0.5642992", "0.5636428", "0.5614574", "0.55824345", "0.5581039", "0.5570371", "0.55629677", "0.55196637", "0.5505755", "0.5497096", "0.54892427", "0.5487588", "0.54742926", "0.54689556", "0.5455711", "0.54496753", "0.5438254", "0.54373395", "0.54241914", "0.541997", "0.5417508", "0.5409609", "0.5408912", "0.53909487", "0.53735936", "0.53455865", "0.533718", "0.53230023", "0.5315648", "0.5311884", "0.53014827", "0.5288613", "0.5273664", "0.5272415", "0.52666235", "0.5252556", "0.5251526", "0.52481294", "0.5235257", "0.52336496", "0.5226908", "0.52231276", "0.5223032", "0.5206526", "0.51967555", "0.5195061", "0.5187591", "0.51827604", "0.5180228", "0.5179138", "0.5178264", "0.51625735", "0.5152754", "0.5151274", "0.5145654", "0.5144185", "0.51406056", "0.5133065", "0.5119292", "0.51159394", "0.510627", "0.5096979", "0.50963026", "0.50932753", "0.50905716" ]
0.83490425
0
Loads the collision objects from the Map into the physics engine
void loadMapToPhysics(TiledMap map, World physics);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCollision(){\n\t\tMapObjects mapObjects = map.getLayers().get(\"COLLISION\").getObjects();\n\t\tfor (int ii = 0; ii < mapObjects.getCount(); ++ii){\n\t\t\tRectangleMapObject rectangle_map_object = (RectangleMapObject) mapObjects.get(ii);\n\t\t\tareaCollision.add(new Rectangle(rectangle_map_object.getRectangle()));\n\t\t}\n\t}", "public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}", "public void tick() {\n\t\tif (mainRef.player().getPos()[1] <= lastEnd.getPos()[1] + 2000)\r\n\t\t\tloadNextMap();\r\n\r\n\t\tfor (GameObject go : gameObjects)\r\n\t\t\tgo.tick();\r\n\r\n\t\t// Check Player Collision\r\n\t\t// Top-Left\r\n\t\tPointColObj cTL = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Top-Right\r\n\t\tPointColObj cTR = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\t\t// Bottom-Left\r\n\t\tPointColObj cBL = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Bottom-Right\r\n\t\tPointColObj cBR = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\r\n\t\t// Inverse Collision, no part of the player's ColBox should be not\r\n\t\t// colliding...\r\n\t\tif (checkCollisionWith(cTL).size() == 0 || checkCollisionWith(cTR).size() == 0\r\n\t\t\t\t|| checkCollisionWith(cBL).size() == 0 || checkCollisionWith(cBR).size() == 0) {\r\n\t\t\t// If it would have left the bounding box of the floor, reverse the\r\n\t\t\t// player's posiiton\r\n\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t} else\r\n\t\t\tmainRef.player().setMoveBack(false);\r\n\r\n\t\t// Check General Collision\r\n\t\tArrayList<GameObject> allCol = checkCollisionWith(mainRef.player());\r\n\t\tfor (GameObject go : allCol) {\r\n\t\t\tif (go instanceof Tile) {\r\n\t\t\t\tTile gameTile = (Tile) go;\r\n\t\t\t\tif (gameTile.getType() == GameObjectRegistry.TILE_WALL\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_BASE\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_DOOR\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_SEWER\r\n\t\t\t\t\t\t|| (gameTile.getType() == GameObjectRegistry.TILE_WATERFALL && gameTile.getVar() == 0)) {\r\n\t\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t} else if (go instanceof LineColObjHor || go instanceof LineColObjVert) {\r\n\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if (go instanceof SkillDrop) {\r\n\t\t\t\tSkillDrop d = (SkillDrop) go;\r\n\t\t\t\tmainRef.player().getInv()[d.getVariation()]++;\r\n\t\t\t\tremoveGameObject(go);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public void detectCollisions(){\n\t\tfor(int i = 0; i < pScene.getNumOf(); i++){\n\t\t\tEntity a = pScene.getObject(i);\n\t\t\tif (!a.isAlive())\n\t\t\t\tcontinue;\n\t\t\tfor(int j = i + 1; j < pScene.getNumOf(); j++){\n\t\t\t\tEntity b = pScene.getObject(j);\n\t\t\t\tif(a.intersects(b)&&(!(a.getStatic()&&b.getStatic()))){\n\t\t\t\t\tsManifolds.add(new Manifold(a,b)); // For regular objects\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public CollisionManager(){\n\t\tcollidables \t\t= new HashMap<Integer, List<CollidableObject>>() ;\n\t\tcollisionsTypes \t= new HashMap<Integer, List<Integer>>() ;\n\t\tcollisionHandlers \t= new HashMap<String, CollisionHandler>() ;\n\t}", "public void processCollisions(){\n\t\tSet<String> allCollisionKeys = new HashSet<String>();\n \n\t\t// prepare a list of collisions to handle\n\t\tList<CollisionData> collisions = new ArrayList<CollisionData>();\n \n\t\tSet<Integer> types = collisionsTypes.keySet();\n \n\t\t// obtain every type for collision\n\t\tfor(Integer type : types){\n\t\t\t// obtain for each type the type it collides with\n\t\t\tList<Integer> collidesWithTypes = collisionsTypes.get(type);\n \n\t\t\tfor(Integer collidingType : collidesWithTypes){\n\t\t\t\t// if the pair was already treated ignore it else treat it\n\t\t\t\tif( !allCollisionKeys.contains(getKey(type, collidingType)) ){\n\t\t\t\t\t// obtain all object of type\n\t\t\t\t\tList<CollidableObject> collidableForType = collidables.get(type);\n\t\t\t\t\t// obtain all object of collidingtype\n\t\t\t\t\tList<CollidableObject> collidableForCollidingType = collidables.get(collidingType);\n \n\t\t\t\t\tfor( CollidableObject collidable : collidableForType ){\n\t\t\t\t\t\tfor( CollidableObject collidesWith : collidableForCollidingType ){\n\t\t\t\t\t\t\tif(collidable.isCollidingWith(collidesWith)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tCollisionData cd = new CollisionData();\n\t\t\t\t\t\t\t\tcd.handler = collisionHandlers.get(getKey(type, collidingType));\n\t\t\t\t\t\t\t\tcd.object1 = collidable;\n\t\t\t\t\t\t\t\tcd.object2 = collidesWith;\n \n\t\t\t\t\t\t\t\tcollisions.add(cd);\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\tallCollisionKeys.add(getKey(type, collidingType));\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n \n\t\tfor(CollisionData cd : collisions){\n\t\t\tcd.handler.performCollision(cd.object1, cd.object2);\n \n\t\t}\n\t\t\n//\t System.out.println(\"unsorted map\");\n//\t for (String key : collisionHandlers.keySet()) {\n//\t System.out.println(\"key/value: \" + key + \"/\"+collisionHandlers.get(key));\n//\t }\n\t}", "@Override\r\n public void init(GameContainer gc) throws SlickException {\r\n\r\n \tbulletsToRemove = new ArrayList<Body>();\r\n \tbulletsToAdd = new ArrayList<Float[]>();\r\n \tbulletList = new ArrayList<Bullet>();\r\n \t\r\n \t//Set camera coordinates and size.\r\n viewport = new Rectangle(0, 0, 1024, 600);\r\n \r\n //Load our map. (Made in a program called TILED)\r\n map1 = new TiledMap(\"data/2.tmx\");\r\n \r\n \r\n //Create our World, enter a gravity (100 default, bullets have a gravity variable of this*0.05)\r\n Vec2 gravity = new Vec2(0, 100);\r\n world = new World(gravity);\r\n \r\n //Create 2 players.\r\n //Player 1\r\n player1 = new Player(5, 180, 4, 12, 11, 40, 40, \"data/temp2.png\", 50);\r\n player1.getAnimation(Player.IDLE_LEFT).start();\r\n \r\n //Player 2\r\n player2 = new Player(15, 180, 4, 12, 11, 40, 40, \"data/temp2.png\", 50);\r\n player2.getAnimation(Player.IDLE_LEFT).start();\r\n \r\n hpbar = new Image(\"data/healthbar.png\");\r\n \r\n //If we want multiplayer, connect to the server.\r\n if(multiplayer) {\r\n \t//Connecting to someone\r\n \tisHosting = false;\r\n \tmyPlayer = player2;\r\n \thisPlayer = player1;\r\n \tthisClient = new BFClient(myPlayer, hisPlayer, host, port);\r\n \tstatus = \"Connected to server\";\r\n }\r\n else {\r\n \t//Connecting to ourselfs\r\n \tisHosting = true;\r\n \tmyPlayer = player1;\r\n \thisPlayer = player2;\r\n \tnew BFServer(true);\r\n \tthisClient = new BFClient(myPlayer, hisPlayer, host, port);\r\n \tstatus = \"Local server online\";\r\n }\r\n \r\n //Set player2's friction to only about half of ours, this will reduce \"lag\" and simulate running better.\r\n FixtureDef fd = hisPlayer.getFixture();\r\n fd.friction = 2;\r\n hisPlayer.getBody().createFixture(fd);\r\n \r\n //Get collision layer from map\r\n int collisionLayerIndex = map1.getLayerIndex(\"collision\");\r\n\r\n //Create our collision blocks in the physics engine.\r\n for(int row=0; row<map1.getWidth(); row++) {\r\n \tfor(int col=0; col<map1.getHeight(); col++) {\r\n \t\tif(map1.getTileId(row, col, collisionLayerIndex)==1) {\r\n \t\t\tBodyDef groundBodyDef = new BodyDef();\r\n \t\t\tgroundBodyDef.position.set(row*2, col*2);\r\n \t\t\tBody groundBody = world.createBody(groundBodyDef);\r\n \t\t\tPolygonShape groundBox = new PolygonShape();\r\n \t\t\tgroundBox.setAsBox(1, 1, new Vec2(1, 1), 0);\r\n \t\t\tgroundBody.createFixture(groundBox, 0);\r\n \t\t}\r\n \t}\r\n }\r\n \r\n\r\n //Setup physics world\r\n timeStep = 1.0f/60.0f;\r\n velocityIterations = 6;\r\n positionIterations = 2;\r\n \r\n //Add a new collision listener to our world.\r\n world.setContactListener(new BFContactListener());\r\n \r\n //Add Keylistener to our GameContainer.\r\n gc.getInput().addKeyListener(keylistener);\r\n \r\n //Physics debug draw. (DEPRECATED. I'm using JBox2d-2.3.0 SNAPSHOT, this debugdraw hasn't been updated for it yet)\r\n \r\n //Slick2dDebugDraw sDD = new Slick2dDebugDraw(gc.getGraphics(), gc);\r\n //sDD.setFlags(0x0001); //Setting the debug draw flags, draw polygons, no joints.\r\n //world.setDebugDraw(sDD);\r\n }", "public void loadMap() {\n\n try {\n new File(this.mapName).mkdir();\n FileUtils.copyDirectory(\n new File(this.plugin.getDataFolder() + \"/maps/\" + this.mapName), new File(this.mapName));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n WorldCreator wc = new WorldCreator(this.mapName);\n World world = wc.createWorld();\n world.setAutoSave(false);\n world.setPVP(false);\n world.setDifficulty(Difficulty.PEACEFUL);\n world.setGameRuleValue(\"doDaylightCycle\", \"false\");\n world.setGameRuleValue(\"mobGriefing\", \"false\");\n world.setGameRuleValue(\"doMobSpawning\", \"false\");\n world.setGameRuleValue(\"doFireTick\", \"false\");\n world.setGameRuleValue(\"keepInventory\", \"true\");\n world.setGameRuleValue(\"commandBlockOutput\", \"false\");\n world.setSpawnFlags(false, false);\n\n try {\n final JsonParser parser = new JsonParser();\n final FileReader reader =\n new FileReader(this.plugin.getDataFolder() + \"/maps/\" + this.mapName + \"/config.json\");\n final JsonElement element = parser.parse(reader);\n this.map = JumpyJumpMap.fromJson(element.getAsJsonObject());\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "private void loadMapData(Context context, int pixelsPerMeter,int px,int py){\n\n char c;\n\n //keep track of where we load our game objects\n int currentIndex = -1;\n\n //calculate the map's dimensions\n mapHeight = levelData.tiles.size();\n mapWidth = levelData.tiles.get(0).length();\n\n //iterate over the map to see if the object is empty space or a grass\n //if it's other than '.' - a switch is used to create the object at this location\n //if it's '1'- a new Grass object it's added to the arraylist\n //if it's 'p' the player it's initialized at the location\n\n for (int i = 0; i < levelData.tiles.size(); i++) {\n for (int j = 0; j < levelData.tiles.get(i).length(); j++) {\n\n c = levelData.tiles.get(i).charAt(j);\n //for empty spaces nothing to load\n if(c != '.'){\n currentIndex ++;\n switch (c){\n case '1' :\n //add grass object\n gameObjects.add(new Grass(j,i,c));\n break;\n\n case 'p':\n //add the player object\n gameObjects.add(new Player(context,px,py,pixelsPerMeter));\n playerIndex = currentIndex;\n //create a reference to the player\n player = (Player)gameObjects.get(playerIndex);\n break;\n }\n\n //check if a bitmap is prepared for the object that we just added in the gameobjects list\n //if not (the bitmap is still null) - it's have to be prepared\n if(bitmapsArray[getBitmapIndex(c)] == null){\n //prepare it and put in the bitmap array\n bitmapsArray[getBitmapIndex(c)] =\n gameObjects.get(currentIndex).prepareBitmap(context,\n gameObjects.get(currentIndex).getBitmapName(),\n pixelsPerMeter);\n }\n\n }\n\n }\n\n }\n }", "public void gameInitialize() {\n this.world = new BufferedImage(GameConstants.GAME_SCREEN_WIDTH,\n GameConstants.GAME_SCREEN_HEIGHT,\n BufferedImage.TYPE_3BYTE_BGR);\n\n gameObjs = new ArrayList<>();\n try {\n background = (BufferedImage)Resource.getHashMap().get(\"wallpaper\");\n /*\n * note class loaders read files from the out folder (build folder in Netbeans) and not the\n * current working directory.\n */\n InputStreamReader isr = new InputStreamReader(Objects.requireNonNull(RainbowReef.class.getClassLoader().getResourceAsStream(\"map/map1\")));\n BufferedReader mapReader = new BufferedReader(isr);\n\n String row = mapReader.readLine();\n if (row == null) {\n throw new IOException(\"nothing here\");\n }\n String[] mapInfo = row.split(\"\\t\");\n int numCols = Integer.parseInt(mapInfo[0]);\n int numRows = Integer.parseInt(mapInfo[1]);\n for (int curRow = 0; curRow < numRows; curRow++){\n row = mapReader.readLine();\n mapInfo = row.split(\"\\t\");\n for(int curCol = 0; curCol< numCols; curCol++){\n switch (mapInfo[curCol]) {\n case \"2\" -> {\n UnbreakableWall sowall = new UnbreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"SolidBlock\"));\n gameObjs.add(sowall);\n }\n case \"3\" -> {\n BreakableWall pwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"PinkBlock\"));\n gameObjs.add(pwall);\n }\n case \"4\" -> {\n BreakableWall ywall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"YellowBlock\"));\n gameObjs.add(ywall);\n }\n case \"5\" -> {\n BreakableWall rwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"RedBlock\"));\n gameObjs.add(rwall);\n }\n case \"6\" -> {\n BreakableWall gwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"GreenBlock\"));\n gameObjs.add(gwall);\n }\n case \"7\" -> {\n Health health = new Health(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"HealthBlock\"));\n gameObjs.add(health);\n }\n case \"8\" -> {\n BulletBlock bigbullet = new BulletBlock(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"BulletBlock\"));\n gameObjs.add(bigbullet);\n }\n case \"9\" -> {\n Goblin bl = new Goblin(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"Goblin\"));\n gameObjs.add(bl);\n }\n }\n }\n }\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n }\n\n Katch t1 = new Katch(290, 440, 0, 0, 0, (BufferedImage) Resource.getHashMap().get(\"Katch\"));\n KatchControl tc1 = new KatchControl(t1, KeyEvent.VK_D, KeyEvent.VK_A, KeyEvent.VK_SPACE);\n this.setBackground(Color.BLACK);\n this.lf.getJf().addKeyListener(tc1);\n this.gameObjs.add(t1);\n\n }", "@Override\n public void update(float dt) {\n\n\n for (GameObject g : getGameObjectList()) {\n Collider gameObjectCollider = g.getComponent(Collider.class);\n if (g.getSID() instanceof Map.Block ) {\n continue;\n }\n gameObjectCollider.reduceAvoidTime(dt);\n\n for (GameObject h : getGameObjectList()) {\n Collider gameObjectCollider2 = h.getComponent(Collider.class);\n if (g.equals(h)) {\n continue;\n }\n\n if ((gameObjectCollider.bitmask & gameObjectCollider2.layer) != 0) {\n if (gameObjectCollider2.layer == gameObjectCollider.layer){\n continue;\n }\n\n TransformComponent t = g.getComponent(TransformComponent.class);\n Vector2f pos1 = g.getComponent(Position.class).getPosition();\n FloatRect rect1 = new FloatRect(pos1.x, pos1.y, t.getSize().x, t.getSize().y);\n TransformComponent t2 = g.getComponent(TransformComponent.class);\n Vector2f pos2 = h.getComponent(Position.class).getPosition();\n FloatRect rect2 = new FloatRect(pos2.x, pos2.y, t2.getSize().x, t2.getSize().y);\n FloatRect collision = rect2.intersection(rect1);\n if (collision != null) {\n Collider mainCollider = g.getComponent(Collider.class);\n Collider collidingWith = h.getComponent(Collider.class);\n\n\n if (!(mainCollider.checkGameObject(h)||collidingWith.checkGameObject(g)))\n {\n if (mainCollider.events == true && collidingWith.events == true)\n {\n\n\n if ((g.getBitmask() & BitMasks.produceBitMask(CollisionEvent.class)) == 0)\n {\n g.addComponent(new CollisionEvent());\n\n\n }\n g.getComponent(CollisionEvent.class).getG().add(h);\n if ((h.getBitmask() & BitMasks.produceBitMask(CollisionEvent.class)) == 0) {\n h.addComponent(new CollisionEvent());\n\n }\n h.getComponent(CollisionEvent.class).getG().add(g);\n\n }\n\n\n if (mainCollider.dieOnPhysics == true) {\n EntityManager.getEntityManagerInstance().removeGameObject(g);\n }\n if (mainCollider.physics == true && collidingWith.physics == true) {\n float resolve = 0;\n float xIntersect = (rect1.left + (rect1.width * 0.5f)) - (rect2.left + (rect2.width * 0.5f));\n float yIntersect = (rect1.top + (rect1.height * 0.5f)) - (rect2.top + (rect2.height * 0.5f));\n if (Math.abs(xIntersect) > Math.abs(yIntersect)) {\n if (xIntersect > 0) {\n resolve = (rect2.left + rect2.width) - rect1.left;\n } else {\n resolve = -((rect1.left + rect1.width) - rect2.left);\n }\n g.getComponent(Position.class).addPosition(new Vector2f(resolve, 0));\n } else {\n if (yIntersect > 0) {\n resolve = (rect2.top + rect2.height) - rect1.top;\n\n } else\n {\n resolve = -((rect1.top + rect1.height) - rect2.top);\n }\n g.getComponent(Position.class).addPosition(new Vector2f(0, resolve));\n }\n }\n }\n\n\n }\n }\n }\n }\n }", "private void loadMap(BufferedImage[][] heroImages,\n\t\t\tBufferedImage[][] bossImages, BufferedImage[][] enemyImages) {\n\t\t// read in map graphics\n\t\tBufferedImage[] tiles = new BufferedImage[3];\n\t\tfor (int i = 0; i < tiles.length; i++)\n\t\t\ttiles[i] = Game.loadImage(\"ssTile\" + (i + 1) + \".png\");\n\n\t\t// create scanner\n\t\tScanner in = new Scanner(Game.loadStream(\"map2.txt\"));\n\n\t\t// read in map\n\t\tint width = in.nextInt(), height = in.nextInt();\n\t\tin.nextLine();\n\t\tin.nextLine();\n\t\tint[][] grid = new int[height][width];\n\t\tfor (int i = 0; i < height; i++)\n\t\t\tprocessMapLine(grid, in.nextLine(), width, i);\n\n\t\t// read in entities\n\t\thero = loadEntity(in, 200, heroImages, 32);\n\t\tboss = loadEntity(in, 1000, bossImages, 32);\n\t\tenemies = new ArrayList<SideScrollerEntity>();\n\t\tint numEnemies = in.nextInt();\n\t\tfor (int i = 0; i < numEnemies; i++)\n\t\t\tenemies.add(loadEntity(in, 1000, enemyImages, 32));\n\n\t\t// load shop graphics\n\t\tBufferedImage shopTile = Game.loadImage(\"shop2.png\");\n\n\t\tmap = new SideScrollerMap(this, this, hero, boss, enemies, 0,\n\t\t\t\t-32 * 32 + 600, sighting);\n\t\tmap.loadResources(tiles, grid, shopTile, 29, 5);\n\t}", "public void loadMapGame(LoadedMap map)throws BadMapException{\n ArrayList<Boat> boats = createLoadedBoats(map);\n\n Board board = new Board(map.getInterMatrix().length, map.getInterMatrix()[0].length, 0);\n\n //CREATE A GAME\n GameData gameData = new GameData(board, boats, false);\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n }", "private void loadMap(ArrayList<Sprite> allSprites) {\n\t\tint numTargets = 0;\n\t\t\n\t\tfor (Sprite thisSprite : allSprites) {\n\t\t\tif(!(thisSprite instanceof Explosion)) {\n\t\t\t\tputInCell(thisSprite.getX(), thisSprite.getY(), thisSprite);\n\t\t\t}\n\t\t\tif (thisSprite instanceof Target) {\n\t\t\t\tnumTargets++;\n\t\t\t}\n\t\t\tif(thisSprite instanceof Door) {\n\t\t\t\tthis.theDoor = (Door)thisSprite;\n\t\t\t}\n\t\t\tif(thisSprite instanceof Player) {\n\t\t\t\tthis.thePlayer = (Player)thisSprite;\n\t\t\t}\n\t\t}\n\t\tthis.numTargets = numTargets;\n\t}", "public void tick() {\n \t\t// Iterate over objects in the world.\n \t\tIterator<PhysicalObject> itr = myObjects.iterator();\n \t\n \t\tList<PhysicalObject> children = new LinkedList<PhysicalObject>();\n \t\t\n \t\twhile (itr.hasNext()) {\n \t\t\tCollidableObject obj = itr.next();\n \n \t\t\t// Apply forces\n \t\t\tfor (Force force : myForces) {\n \t\t\t\tforce.applyForceTo((PhysicalObject) obj);\n \t\t\t}\n \t\t\t\n \t\t\t// Update the object's state.\n \t\t\tobj.updateState(1f / UPDATE_RATE);\n \t\t\t\n \t\t\t// Spawn new objects?\n \t\t\tList<PhysicalObject> newChildren =\n \t\t\t\t((PhysicalObject) obj).spawnChildren(1f / UPDATE_RATE);\n \t\t\t\n \t\t\tif (newChildren != null) {\n \t\t\t\tchildren.addAll(newChildren);\n \t\t\t}\n \t\t}\n \t\t\n \t\t/*\n \t\t In the \"tick\" method of your application, rather than call the old form of \n \t\t resolveCollisions to completely handle a collision, you can now:\n \t\t \n \t\t \t1.Directly call CollisionDetector.calculateCollisions to receive an\n \t\t\t ArrayList<CollisionInfo> object.\n \t\t\t2.If the list is empty, then there is no collision between the pair\n \t\t\t of objects and nothing further need be done.\n \t\t\t3.If the list is not empty, then a collision has occurred and you can\n \t\t\t check whether the objects involved necessitate a transmission or a standard\n \t\t\t collision resolution (a.k.a. bounce).\n \t\t\t4.If a standard collision resolution is called for, use the new form of\n \t\t\t resolveCollisions to pass in the ArrayList<CollisionInfo> object.\n \t\t\t \n \t\t The goal of this change is to prevent the computationally expensive \n \t\t collision detection algorithm from being executed twice when objects collide.\n \t\t */\n \n \t\tfor (int i = 0; i < myObjects.size() - 1; i++) {\n \t\t\tfor (int j = i + 1; j < myObjects.size(); j++) {\n \t\t\t\tArrayList<CollisionInfo> collisions = \n \t\t\t\t\tCollisionDetector.calculateCollisions(myObjects.get(i), myObjects.get(j));\n \t\t\t\t\n \t\t\t\tif (collisions.size() > 0) {\n \t\t\t\t\tHalfSpace hs = null;\n \t\t\t\t\tPhysicalObject o = null;\n \t\t\t\t\t\n \t\t\t\t\tif (myObjects.get(i) instanceof HalfSpace) {\n \t\t\t\t\t\t// If i is a halfspace, j must be an object\n \t\t\t\t\t\ths = (HalfSpace) myObjects.get(i);\n \t\t\t\t\t\to = myObjects.get(j);\n \t\t\t\t\t\t\n \t\t\t\t\t\t\n \t\t\t\t\t} else if (myObjects.get(j) instanceof HalfSpace) {\n \t\t\t\t\t\t// If j is a halfspace, i must be an object\n \t\t\t\t\t\ths = (HalfSpace) myObjects.get(j);\n \t\t\t\t\t\to = myObjects.get(i);\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Was there a halfspace involved? If so, was it a side?\n\t\t\t\t\tif (hs != null && hs.normal.y != 1 && hs.normal.y != -1 && myPeer.getPeerSize() > 0) {\n \t\t\t\t\t\t// Side collision, is there a peer?\n \t\t\t\t\t\tPeerInformation peer = myPeer.getPeerInDirection(o.getVelocity().x, -o.getVelocity().z);\n \t\t\t\t\t\t\n \t\t\t\t\t\tif (peer != null) {\n \t\t\t\t\t\t\to.switchX();\n \t\t\t\t\t\t\to.switchZ();\n \t\t\t\t\t\t\tmyPeer.sendPayloadToPeer(peer, o);\n \t\t\t\t\t\t\to.detach();\n \t\t\t\t\t\t\tmyObjects.remove(o);\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// Moving on\n \t\t\t\t\t\t\tcontinue;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Collision as usual...\n \t\t\t\t\tmyObjects.get(i).resolveCollisions(myObjects.get(j), collisions);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\t// Add new children to the world.\n \t\tfor (PhysicalObject obj : children) {\n \t\t\tmyScene.addChild(obj.getGroup());\n \t\t}\n \t\t\n \t\tmyObjects.addAll(children);\n \t}", "private void CheckWorldCollision() {\n\t\tfor(WorldObj obj : World.CurrentWorld.SpawnedObjects) {\n\t\t\tif(bounds.overlaps(obj.bounds))\n\t\t\t\tobj.OnCollision(this);\n\t\t\tif(MapRenderer.CurrentRenderer.ItemAnimation != null) {\n\t\t\t\tif(obj.ai != null) {\n\t\t\t\t\tif(dir == LEFT)\n\t\t\t\t\tAttackBounds.set(pos.x+(dir*1.35f)+0.5f,pos.y,1.35f,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tAttackBounds.set(pos.x+0.5f,pos.y,1.35f,1);\n\t\t\t\t\tif(obj.healthBarTimer > 0.4f)\n\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\tif(!Terrain.CurrentTerrain.isSolid((int)(pos.x+0.5f+(0.3f*dir)), (int)(pos.y+0.5f)))\n\t\t\t\t\tobj.ai.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\tHitTimer = 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(obj.damageable) {\n\t\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\t\tobj.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "public void load() {\n loadDisabledWorlds();\n chunks.clear();\n for (World world : ObsidianDestroyer.getInstance().getServer().getWorlds()) {\n for (Chunk chunk : world.getLoadedChunks()) {\n loadChunk(chunk);\n }\n }\n }", "private void loadMap(String path) {\n\t\ttry {\n\t\t\tfor(Player p : players)\tp.clear();\n\t\t\tmap.players = players;\n\t\t\tmap.setPlayerNumber(playerNumber);\n\t\t\tfor(Player p : map.players) {\n\t\t\t\tp.setMap(map);\n\t\t\t\tp.setArmies(map.getInitialArmiesNumber());\n\t\t\t}\n\t\t\tmap.setPlayerNumber(map.players.size());\n\t\t\tmap.load(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadAreas() {\r\n\t\tareas = map.getAreas();\r\n\t\tfor (Area area : areas) {\r\n\t\t\tfor (AreaOrMonster monster : area.getChildren()) {\r\n\t\t\t\tmonster.getImageView().setX(monster.getX() * scalingFactor);\r\n\t\t\t\tmonster.getImageView().setY(monster.getY() * scalingFactor);\r\n\t\t\t\troot.getChildren().add(monster.getImageView());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void collision() {\n\t\tfor(int i = 0; i < brownMeteors.length; i++) {\n\t\t\tif( distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE/2, brownMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(brownMeteors[i]);\n\t\t\t\t\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter; \n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t//player vs grey Meteor\n\t\tfor(int i = 0; i < greyMeteors.length; i++) {\n\t\t\tif( distance(greyMeteors[i].getLayoutX() + ENTITIES_SIZE/2, greyMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(greyMeteors[i]);\n\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//laser vs brown Meteor\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < brownMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(brownMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(brownMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < greyMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(greyMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(greyMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t}", "public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}", "public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}", "private void initializeEntities() {\n arrAttack = new ArrayList<>();\n arrCollidable = new ArrayList<>();\n entities = new ArrayList<>();\n\n arrAttack = scene.entityManager.getEntitiesWithComponents(attackComponent.getClass(), tool.getClass());\n\n arrCollidable = scene.entityManager.getEntitiesWithComponents(collidable.getClass(), Playable.class);\n\n for (int i = 0; i < arrAttack.size(); i++) {\n\n tool = scene.entityManager.getEntityComponentInstance(arrAttack.get(i), tool.getClass());\n\n //A -1 means that the entity is not attacking, at least with that weapon\n if (tool.currentActive != -1) {\n entities.add(arrAttack.get(i));\n }\n }\n\n //adding collidables to entities\n for (int i = 0; i < arrCollidable.size(); i++) {\n entities.add(arrCollidable.get(i));\n }\n }", "protected void createMaps() {\n\t\tBlueSchellingCell bCell = new BlueSchellingCell();\n\t\tOrangeSchellingCell oCell = new OrangeSchellingCell();\n\t\tEmptyCell eCell = new EmptyCell();\n\t\tTreeCell tCell = new TreeCell();\n\t\tBurningTreeCell bTCell = new BurningTreeCell();\n\t\tEmptyLandCell eLCell = new EmptyLandCell();\n\n\t\tLiveCell lCell = new LiveCell();\n\t\tDeadCell dCell = new DeadCell();\n\t\tGreenRPSCell gcell = new GreenRPSCell();\n\t\tRedRPSCell rcell = new RedRPSCell();\n\t\tBlueRPSCell blcell = new BlueRPSCell();\n\t\tWhiteRPSCell wcell = new WhiteRPSCell();\n\n\t\tFishCell fCell = new FishCell();\n\t\tSharkCell sCell = new SharkCell();\n\n\t\tAntGroupCell aCell = new AntGroupCell();\n\n\t\tsegregation.put('b', bCell);\n\t\tsegregation.put('o', oCell);\n\t\tsegregation.put('e', eCell);\n\n\t\tgameOfLife.put('l', lCell);\n\t\tgameOfLife.put('d', dCell);\n\n\t\trps.put('g', gcell);\n\t\trps.put('r', rcell);\n\t\trps.put('b', blcell);\n\t\trps.put('w', wcell);\n\n\t\tspreadingWildfire.put('t', tCell);\n\t\tspreadingWildfire.put('b', bTCell);\n\t\tspreadingWildfire.put('e', eLCell);\n\n\t\twaTor.put('f', fCell);\n\t\twaTor.put('s', sCell);\n\t\twaTor.put('e', eCell);\n\n\t\tforagingAnts.put('a', aCell);\n\t\tforagingAnts.put('e', eCell);\n\t\tinitExportMap();\n\n\t\tinitCountMap();\n\t}", "public void loadMapsModule(){\n Element rootElement = FileOperator.fileReader(MAPS_FILE_PATH);\n if(rootElement!=null){\n Iterator i = rootElement.elementIterator();\n while (i.hasNext()) {\n Element element = (Element) i.next();\n GridMap map =new GridMap();\n map.decode(element);\n mapsList.add(map);\n }\n }\n }", "@Override\r\n \tpublic void init(GameContainer gc) throws SlickException \r\n \t{\r\n \t\t// Initialization of map, camera, player, pathfinding\r\n \t\ttheMap = new TiledMap(\"res/tilemap01.tmx\");\r\n \t\tthePTBMap = new PropertyTileBasedMap(theMap);\r\n \t\tcamera = new Camera(0f, 0f);\r\n \t\tunitOne = new Player(64f, 64f);\r\n \t\tunitTwo = new Player(64f, 128f);\r\n \t\tpathFinder = new AStarPathFinder(thePTBMap, 100, false);\r\n \t\t\r\n \t\t// player's animation. Need a better way to deal with it\r\n \t\t\r\n \t\tint duration[] = {200, 200, 200};\r\n \t\tSpriteSheet character = new SpriteSheet(\"res/monsters.png\", tileSize, tileSize);\r\n \t\tImage[] walkUp = {character.getSubImage(6, 1), character.getSubImage(7, 1), character.getSubImage(8, 1)};\r\n \t\tImage[] walkDown = {character.getSubImage(0, 1), character.getSubImage(1, 1), character.getSubImage(2, 1)};\r\n \t\tImage[] walkLeft = {character.getSubImage(9, 1), character.getSubImage(10, 1), character.getSubImage(11, 1)};\r\n \t\tImage[] walkRight = {character.getSubImage(3, 1), character.getSubImage(4, 1), character.getSubImage(5, 1)};\r\n \t\t\r\n \t\tmovingUp = new Animation(walkUp, duration, true);\r\n \t\tmovingDown = new Animation(walkDown, duration, true);\r\n \t\tmovingLeft = new Animation(walkLeft, duration, true);\r\n \t\tmovingRight = new Animation(walkRight, duration, true);\r\n \t\t\r\n \t\tunitOne.setMovement(movingDown);\r\n \t\tunitTwo.setMovement(movingDown);\r\n \t}", "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "public World(GameStage stage, Maps mapToLoad) {\n this.stage = stage;\n this.engine = new Engine();\n this.loader = new TmxMapLoader();\n\n this.replayActions = new LinkedList<>();\n this.actionList = new LinkedList<>();\n\n this.characters = new ArrayList<>();\n\n loadMap(mapToLoad);\n\n // All worlds will need a movement and collision system\n addSystemToEngine(new EntityCollision(this));\n addSystemToEngine(new EntityMovement(this));\n addSystemToEngine(new EntityReplayer(this));\n }", "public void checkCollision(){\r\n\r\n\t\t\t\tsmile.updateVelocity();\r\n\r\n\t\t\t\tsmile.updatePosition();\r\n\r\n\t\t\t\tif (smile.updateVelocity() > 0){\r\n\r\n\t\t\t\t\tfor (int k = 0; k < arrayPlat.size(); k++){\r\n\r\n\t\t\t\t\t\tif (smile.getNode().intersects(arrayPlat.get(k).getX(), arrayPlat.get(k).getY(), Constants.PLATFORM_WIDTH, Constants.PLATFORM_HEIGHT)){\r\n\r\n\t\t\t\t\t\t\tsmile.setVelocity(Constants.REBOUND_VELOCITY);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t}", "private CollisionLogic() {}", "private void initialiseMap(ArrayList<Sprite> allSprites){\n\t\tint x = (allSprites.get(0).getXOffset()*-2) + App.COLUMNS;\n\t\tint y = (allSprites.get(0).getYOffset()*-2) + App.ROWS;\n\t\t\n\t\tgameMap = new MapCell[x][y];\n\t\t\n\t\t//initialise the gameMap\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tfor( int j = 0; j < y; j++) {\n\t\t\t\tthis.gameMap[i][j] = new MapCell();\n\t\t\t}\n\t\t}\n\t}", "public void buildMap() {\n // CUBES ENGINE INITIALIZATION MOVED TO APPSTATE METHOD\n // Here we init cubes engine\n CubesTestAssets.registerBlocks();\n CubesSettings blockSettings = CubesTestAssets.getSettings(this.app);\n blockSettings.setBlockSize(5);\n //When blockSize = 5, global coords should be multiplied by 3 \n this.blockScale = 3.0f;\n this.halfBlockStep = 0.5f;\n \n testTerrain = new BlockTerrainControl(CubesTestAssets.getSettings(this.app), new Vector3Int(4, 1, 4));\n testNode = new Node();\n int wallHeight = 3;\n //testTerrain.setBlockArea(new Vector3Int(0, 0, 0), new Vector3Int(32, 1, 64), CubesTestAssets.BLOCK_STONE);\n this.testTerrain.setBlockArea( new Vector3Int(3,0,43), new Vector3Int(10,1,10), CubesTestAssets.BLOCK_STONE); // Zone 1 Floor\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,52), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(12,1,46), new Vector3Int(1,wallHeight,4)); // Door A\n \n this.testTerrain.setBlockArea( new Vector3Int(12,0,45), new Vector3Int(13,1,6), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(12,1,45), new Vector3Int(8,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,50), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea(new Vector3Int(19,0,42), new Vector3Int(6,1,3), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(19,1,42), new Vector3Int(1,wallHeight,3), CubesTestAssets.BLOCK_WOOD); //\n this.testTerrain.setBlockArea( new Vector3Int(24,1,42), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); //\n \n this.testTerrain.setBlockArea( new Vector3Int(15,0,26), new Vector3Int(18,1,17), CubesTestAssets.BLOCK_STONE); // Zone 3 Floor\n this.testTerrain.setBlockArea( new Vector3Int(15,1,42), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(32,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(20,1,42), new Vector3Int(4,wallHeight,1)); // Door B\n this.testTerrain.removeBlockArea( new Vector3Int(15,1,27), new Vector3Int(1,wallHeight,6)); // Door C\n \n this.testTerrain.setBlockArea( new Vector3Int(10,0,26), new Vector3Int(5,1,8), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(10,1,26), new Vector3Int(5,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,0,18), new Vector3Int(8,1,16), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(3,1,18), new Vector3Int(1,wallHeight,16), CubesTestAssets.BLOCK_WOOD); // East Wall\n this.testTerrain.setBlockArea( new Vector3Int(10,1,18), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,33), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n \n this.testTerrain.setBlockArea( new Vector3Int(1,0,5), new Vector3Int(26,1,14), CubesTestAssets.BLOCK_STONE); // Zone 5\n this.testTerrain.setBlockArea( new Vector3Int(1,1,18), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(26,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(4,1,18), new Vector3Int(6,wallHeight,1)); // Door E\n \n // Populate the world with spawn points\n this.initSpawnPoints();\n \n //Add voxel world/map to collisions\n testTerrain.addChunkListener(new BlockChunkListener(){\n @Override\n public void onSpatialUpdated(BlockChunkControl blockChunk){\n Geometry optimizedGeometry = blockChunk.getOptimizedGeometry_Opaque();\n phyTerrain = optimizedGeometry.getControl(RigidBodyControl.class);\n if(phyTerrain == null){\n phyTerrain = new RigidBodyControl(0);\n optimizedGeometry.addControl(phyTerrain);\n bulletAppState.getPhysicsSpace().add(phyTerrain);\n }\n phyTerrain.setCollisionShape(new MeshCollisionShape(optimizedGeometry.getMesh()));\n }\n });\n \n testNode.addControl(testTerrain);\n rootNode.attachChild(testNode);\n }", "private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (newMap[i][j] instanceof Player) {\n\t\t\t\t\tmap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof BlankSpace) {\n\t\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Fence) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public void loadMap() throws Exception\n\t{\n\t\tm_grid = new char[m_map.getMapChar().length][m_map.getMapChar()[0].length];\n\n for(int i = 0; i < m_grid.length; ++i)\n {\n for(int j = 0; j < m_grid[0].length; ++j)\n {\n m_grid[i][j] = m_map.getMapChar()[i][j];\n }\n }\n\n\t}", "public Box2DCollisionCreator(GameScreen screen) {\n world = screen.getWorld(); //Sets world to the GameScreen's World instance.\n\n\n //Sets map to the correct TiledMap instance, based on whether the Box2D boundaries are being created for\n // Level1 or Level2\n if (screen instanceof Level1Screen)\n map = ((Level1Screen) screen).getMap();\n else\n map = ((Level3Screen) screen).getMap();\n\n //Creates body and fixture variables which assign Objects their states within the world\n BodyDef bdef = new BodyDef();\n PolygonShape shape = new PolygonShape();\n FixtureDef fdef = new FixtureDef();\n Body body;\n\n //Sets body and fixture variables to it's respective values based on the TiledMap's MapObject instance's information.\n for (MapObject object : map.getLayers().get(3).getObjects().getByType(RectangleMapObject.class)) {\n Rectangle rect = ((RectangleMapObject) object).getRectangle();\n\n //The static bodies that represent the ground are made\n bdef.type = BodyDef.BodyType.StaticBody;\n bdef.position.set((rect.getX() + rect.getWidth() / 2) / Safety4Kids.PPM, (rect.getY() + rect.getHeight() / 2) / Safety4Kids.PPM);\n //the bodies are added to the game world\n body = world.createBody(bdef);\n\n shape.setAsBox(rect.getWidth() / 2 / Safety4Kids.PPM, rect.getHeight() / 2 / Safety4Kids.PPM);\n fdef.shape = shape;\n fdef.filter.categoryBits = B2DConstants.BIT_OBJECT;\n body.createFixture(fdef);\n }\n\n }", "public void loadWorld() {\n\t\tint[][] tileTypes = new int[100][100];\n\t\tfor (int x = 0; x < 100; x++) {\n\t\t\tfor (int y = 0; y < 100; y++) {\n\t\t\t\ttileTypes[x][y] = 2;\n\t\t\t\tif (x > 40 && x < 60 && y > 40 && y < 60) {\n\t\t\t\t\ttileTypes[x][y] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEntityList entities = new EntityList(0);\n\t\tPlayer player = new Player(Direction.SOUTH_WEST, 50, 50);\n\t\tentities.addEntity(player);\n\t\tentities.addEntity(new Tree(Direction.SOUTH_WEST,49, 49));\n\t\tworld = new World(new Map(tileTypes), player, entities);\n\t}", "public Map(RefLinks refLink)\r\n {\r\n /// Retine referinta \"shortcut\".\r\n this.refLink = refLink;\r\n list_star = new ArrayList<CollisionItem>();\r\n list_star_blue = new ArrayList<CollisionItem>();\r\n\r\n list_fire = new ArrayList<CollisionItem>();\r\n list_static_element = new ArrayList<CollisionItem>();\r\n\r\n list_next_level = new ArrayList<CollisionItem>();\r\n\r\n //level = 1;\r\n // star = new CollisionItem(refLink , 650 , 390,104,15);\r\n\r\n\r\n\r\n if(Map_level.GetInstance().getLevel() == 1) {\r\n System.out.println(\"salut1\");\r\n\r\n list_star.add(new CollisionItem(refLink, 300, 200, 50, 50));\r\n list_star_blue.add(new CollisionItem(refLink, 250, 50, 50, 50));\r\n\r\n list_fire.add(new CollisionItem(refLink, 850, 270, 60, 20));\r\n\r\n\r\n //list_static_element.add(new CollisionItem(refLink, 452, 433, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 650, 410, 104, 15));\r\n\r\n list_static_element.add(new CollisionItem(refLink, 15, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 119, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 223, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 535, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 639, 140, 104, 15));\r\n\r\n //list_static_element.add( new CollisionItem(refLink, 15, 250, 104, 15) );\r\n //list_static_element.add( new CollisionItem(refLink, 119, 250, 104, 15) );\r\n list_static_element.add(new CollisionItem(refLink, 223, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 535, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 639, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 743, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 847, 290, 104, 15));\r\n\r\n\r\n list_next_level.add( new CollisionItem(refLink, 120, 420, 55, 50) );\r\n //list_static_element.add( new CollisionItem(refLink, 0, 465, 960, 15) );\r\n\r\n\r\n\r\n ///incarca harta de start. Functia poate primi ca argument id-ul hartii ce poate fi incarcat.\r\n LoadWorld();\r\n\r\n\r\n }\r\n else if(Map_level.GetInstance().getLevel() ==2){\r\n list_star.add(new CollisionItem(refLink, 250, 80, 50, 50));\r\n list_star_blue.add(new CollisionItem(refLink, 700, 160, 50, 50));\r\n\r\n list_fire.add(new CollisionItem(refLink, 300, 450, 60, 20));\r\n\r\n\r\n //list_static_element.add(new CollisionItem(refLink, 452, 433, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 650, 410, 104, 15));\r\n\r\n list_static_element.add(new CollisionItem(refLink, 15, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 119, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 223, 140, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 327, 140, 104, 15));\r\n\r\n\r\n list_static_element.add(new CollisionItem(refLink, 620, 230, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 724, 230, 104, 15));\r\n\r\n\r\n list_static_element.add(new CollisionItem(refLink, 223, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 290, 104, 15));\r\n\r\n\r\n list_next_level.add( new CollisionItem(refLink, 120, 420, 55, 50) );\r\n\r\n\r\n LoadWorld();\r\n }\r\n\r\n\r\n //lista podelei//elemente de coliziune statica\r\n\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void loadMap(){\r\n\t\t//Datei anlegen, falls nicht vorhanden\r\n\t\ttry {\r\n\t\t\tFile file = new File(homeFileLocation);\r\n\t\t\tif(!file.exists()){\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t\tSystem.out.println(\"Created new File.\");\r\n\r\n\t\t\t\t//Leere Map schreiben\r\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(homeFileLocation));\r\n\t\t\t\toos.writeObject(new HashMap<String, String>());\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\r\n\t\t\t\tSystem.out.println(\"Wrote empty HashMap.\");\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\t//Map laden\r\n\t\ttry {\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(homeFileLocation));\r\n\t\t\tthis.map = (HashMap<String, String>) ois.readObject();\r\n\t\t\tois.close();\r\n\t\t} catch (ClassNotFoundException 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\t}", "public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}", "public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }", "public void initializeMaps() {\n\t\t//can use any map\n\n\t\t//left map\n\t int x = 0, y = 0;\n\t int Lvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyLeft.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tLvalue = Integer.parseInt(str);\n\t \t\t\tleftMap[x][y] = Lvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //right map\n\t x = 0;\n\t y = 0;\n\t int Rvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \t//change to map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyRight.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tRvalue = Integer.parseInt(str);\n\t \t\t\trightMap[x][y] = Rvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //print each map for testing\n\t for(int i = 0; i < leftMap.length; i++ )\n\t \tfor(int j = 0; j < leftMap[i].length; j++ )\n\t \t\tSystem.out.println(leftMap[i][j]);\n\t System.out.println(\"*-----------------*\");\n\t for(int i = 0; i < rightMap.length; i++ )\n\t \tfor(int j = 0; j < rightMap[i].length; j++ )\n\t \t\tSystem.out.println(rightMap[i][j]);\n\t}", "private GameMap loadMap(final int mapId, final boolean mobsRespawn, final boolean loadNpcs, final boolean loadReactors) {\n\t\tWzData data = mapDataProvider.getData(this.getPaddedMapName(mapId));\n\t\tfinal WzData link = data.getChildByPath(\"info/link\");\n\t\tif (link != null) {\n\t\t\tdata = mapDataProvider.getData(this.getPaddedMapName(WzDataTool.getIntConvert(\"info/link\", data)));\n\t\t}\n\n\t\tfloat monsterRate = 0;\n\t\tif (mobsRespawn) {\n\t\t\tfinal WzData mobRate = data.getChildByPath(\"info/mobRate\");\n\t\t\tif (mobRate != null) {\n\t\t\t\tmonsterRate = ((Float) mobRate.getData()).floatValue();\n\t\t\t}\n\t\t}\n\n\t\tfinal int returnMapId = WzDataTool.getInt(\"info/returnMap\", data);\n\t\tfinal GameMap map = new GameMap(mapId, returnMapId, monsterRate);\n\n\t\tfinal PortalFactory portalFactory = new PortalFactory();\n\t\tfor (final WzData portalData : data.getChildByPath(\"portal\")) {\n\t\t\tfinal Portal portal = portalFactory.createPortal(portalData);\n\t\t\tmap.addPortal(portal);\n\t\t}\n\n\t\tfinal FootholdTree footholds = loadFootholds(data);\n\t\tmap.setFootholds(footholds);\n\n\t\t// load areas (EG PQ platforms)\n\t\tfinal WzData areaData = data.getChildByPath(\"area\");\n\t\tif (areaData != null) {\n\t\t\tfor (final WzData area : areaData) {\n\t\t\t\tfinal Rectangle mapArea = WzDataTool.getRectangle(\"x1\", \"y1\", \"x2\", \"y2\", area);\n\t\t\t\tmap.addArea(mapArea);\n\t\t\t}\n\t\t}\n\n\t\tString message = null;\n\t\tfinal WzData timeMob = data.getChildByPath(\"info/timeMob\");\n\t\tif (timeMob != null) {\n\t\t\tmessage = WzDataTool.getString(\"message\", timeMob, null);\n\t\t}\n\n\t\t// load life data (npc, monsters)\n\t\tfor (final WzData life : data.getChildByPath(\"life\")) {\n\t\t\tfinal String type = WzDataTool.getString(\"type\", life);\n\t\t\tif (loadNpcs || !type.equals(\"n\")) {\n\t\t\t\tfinal String id = WzDataTool.getString(\"id\", life);\n\t\t\t\tfinal AbstractLoadedLife myLife = this.loadLife(life, id, type);\n\t\t\t\tif (myLife instanceof Monster) {\n\t\t\t\t\tfinal Monster mob = (Monster) myLife;\n\t\t\t\t\tfinal int mobTime = WzDataTool.getInt(\"mobTime\", life, 0);\n\t\t\t\t\tfinal byte team = (byte) WzDataTool.getInt(\"team\", life, -1);\n\t\t\t\t\tmap.addMonsterSpawn(mob, mobTime, team, message);\n\t\t\t\t} else {\n\t\t\t\t\tfinal boolean bAdd = true;\n\t\t\t\t\tif (bAdd) {\n\t\t\t\t\t\tmap.addMapObject(myLife);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.addAreaBossSpawn(map);\n\t\tmap.loadMonsterRate(true);\n\n\t\t// load reactor data\n\t\tfinal WzData reactorEntry = data.getChildByPath(\"reactor\");\n\t\tif (loadReactors && reactorEntry != null) {\n\t\t\tfor (final WzData reactor : reactorEntry) {\n\t\t\t\tfinal String id = WzDataTool.getString(\"id\", reactor);\n\t\t\t\tif (id == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfinal Reactor loadedReactor = this.loadReactor(reactor, id);\n\t\t\t\tmap.spawnReactor(loadedReactor);\n\t\t\t}\n\t\t}\n\n\t\tmap.setClock(data.getChildByPath(\"clock\") != null);\n\t\tmap.setEverlast(data.getChildByPath(\"info/everlast\") != null);\n\t\tmap.setTown(data.getChildByPath(\"info/town\") != null);\n\n\t\tmap.setForcedReturnMap(WzDataTool.getInt(\"info/forcedReturn\", data, 999999999));\n\n\t\tmap.setRecoveryRate(WzDataTool.getFloat(\"info/recovery\", data, 1.0f));\n\t\tmap.setHPDec(WzDataTool.getInt(\"info/decHP\", data, 0));\n\t\tmap.setHPDecProtect(WzDataTool.getInt(\"info/protectItem\", data, 0));\n\t\tmap.setFieldLimit(WzDataTool.getInt(\"info/fieldLimit\", data, 0));\n\t\tmap.setTimeLimit(WzDataTool.getInt(\"info/timeLimit\", data, -1));\n\n\t\tmap.setPersonalShop(data.getChildByPath(\"info/personalShop\") != null);\n\t\tmap.setCreateMobInterval((short) WzDataTool.getInt(\"info/createMobInterval\", data, 9000));\n\n\t\tmap.setFirstUserEnter(WzDataTool.getString(\"info/onFirstUserEnter\", data, \"\"));\n\t\tmap.setUserEnter(WzDataTool.getString(\"info/onUserEnter\", data, \"\"));\n\t\treturn map;\n\t}", "private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }", "public void Define() {\n manager = new Manager(); // Initialize other classes\n save = new Save();\n store = new Store();\n menu = new Menu();\n postgame = new PostGame();\n\n map = new ImageIcon(\"res/map.png\").getImage(); // Load background image\n \t\n \n // Load the track image\n track = new ImageIcon(\"res/TrackCorner.png\").getImage(); // Initialize the track image file\n \n // Load images for the towers\n tileset_towers[0] = new ImageIcon(\"res/redlasertower.png\").getImage();\n tileset_towers[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_towers[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n \n // Load images for the indicators\n tileset_indicators[0] = new ImageIcon(\"res/button.png\").getImage();\n tileset_indicators[1] = new ImageIcon(\"res/money.png\").getImage();\n tileset_indicators[2] = new ImageIcon(\"res/heart.png\").getImage();\n \n // Load images for the buttons\n tileset_buttons[0] = new ImageIcon(\"res/redLaserTower.png\").getImage();\n tileset_buttons[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_buttons[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n tileset_buttons[3] = new ImageIcon(\"res/trash.png\").getImage();\n \n // Load images for the solider\n tileset_soldier[0] = new ImageIcon(\"res/enemyD1.png\").getImage();\n tileset_soldier[1] = new ImageIcon(\"res/enemyD2.png\").getImage();\n \n tileset_soldier[2] = new ImageIcon(\"res/enemyR1.png\").getImage();\n tileset_soldier[3] = new ImageIcon(\"res/enemyR2.png\").getImage();\n \n tileset_soldier[4] = new ImageIcon(\"res/enemyL1.png\").getImage();\n tileset_soldier[5] = new ImageIcon(\"res/enemyL2.png\").getImage();\n \n tileset_soldier[6] = new ImageIcon(\"res/enemyU1.png\").getImage();\n tileset_soldier[7] = new ImageIcon(\"res/enemyU2.png\").getImage();\n \n // Save the configuration of the track\n save.loadSave(new File(\"save/mission.txt\"));\n save.loadHighScore();\n \n // Initialize enemy objects\n for(int i = 0; i < enemies.length; i++) {\n \tenemies[i] = new Enemy();\n }\n \n }", "private void refillMap()\n {\n List<Block> blocks = map.getAllBlocks();\n blocks.forEach(block ->\n {\n if(block.isSpawnPoint())\n {\n while(!block.isAllWeaponsPresent() && !weaponCardDeck.isEmpty())\n {\n block.addWeaponCard(weaponCardDeck.getFirstCard());\n }\n }\n else\n {\n if(!block.isAmmoCardPresent())block.setAmmoCard(ammoCardDeck.getFirstCard());\n }\n });\n }", "public void makeMap(){\r\n\t\tint m =1;\r\n\t\t//EnvironObj temp = new EnvironObj(null, 0, 0);\r\n\t\tfor(int i=0; i<map.size(); i++){\r\n\t\t\tfor(int j =0; j<map.get(i).size(); j++){\r\n\t\t\t\tString o = map.get(i).get(j);\r\n\t\t\t\t//System.out.println(\"grabbing o from map, o = \" + o);\r\n\t\t\t\tif(o.equals(\"t\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"treee.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\t//System.out.println(\"objectList: \" + objectList);\r\n\t\t\t\t}else if(o.equals(\"p\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"path.png\", j+m, i*20, true);\r\n\t\t\t\t\t//dont need to add to obj list bc its always in back\r\n\t\t\t\t\twalkables.add(temp);\r\n\r\n\t\t\t\t}else if(o.equals(\"h\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"house.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t}else if(o.equals(\"g\")){\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t}\r\n\t\t\t\telse if(!o.equals(\"g\")){\r\n\t\t\t\t\tString fn = o +\".txt\";\r\n\t\t\t\t\tSystem.out.println(\"filename for NPC: \" + fn);\r\n\t\t\t\t\tnp = new NPC(o, fn, j+m, i*20);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\tcharacters.add(np);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tm=0;\r\n\t\t}\r\n\t}", "public void populate() { \n \n // make some grounds\n ground1 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground1.setPosition(new Vec2(-380, -200));\n \n Body ground2 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground2.setPosition(new Vec2(-0, -200));\n\n Body ground3 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground3.setPosition(new Vec2(300, -100));\n \n // make a moving platform \n Body movingPlatform = new SlidingPlatform(world, PolygonShape.makeBox(100, 5), new Vec2(130, 0), 2);\n movingPlatform.setPosition(new Vec2(-260, -150));\n \n // make some bottles\n Bottle bottle1 = new Bottle(game);\n bottle1.putOn(ground1);\n bottle1.setName(\"bottle1\");\n \n Bottle bottle2 = new Bottle(game);\n bottle2.putOn(ground2);\n bottle2.setName(\"bottle2\");\n \n Bottle bottle3 = new Bottle(game);\n bottle3.putOn(ground3);\n bottle3.setName(\"bottle3\");\n \n // show dialog with information about level\n JOptionPane.showMessageDialog(frame, \"Press N or M to throw bottles to kill Boxies.\", \"Level instructions:\", JOptionPane.PLAIN_MESSAGE);\n \n // make some boxies\n Boxy boxy1 = new Boxy(game);\n boxy1.setName(\"boxy1\");\n Vec2 vec1 = new Vec2(100, 0);\n boxy1.move(vec1);\n\n Boxy boxy2 = new Boxy(game);\n boxy2.setName(\"boxy2\");\n Vec2 vec2 = new Vec2(-100, 200);\n boxy2.move(vec2);\n\n Boxy boxy3 = new Boxy(game);\n boxy3.setName(\"boxy3\");\n Vec2 vec3 = new Vec2(-400, 200);\n boxy3.move(vec3);\n \n }", "public void setObjectives(TiledMap map)\r\n/* 72: */ {\r\n/* 73: 80 */ this.mission = true;\r\n/* 74: 81 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 75: 83 */ for (int y = 0; y < getHeightInTiles(); y++)\r\n/* 76: */ {\r\n/* 77: 85 */ this.reach[x][y] = checkTileProperty(x, y, \"reach\", \"true\");\r\n/* 78: 86 */ if (this.reach[x][y] != 0) {\r\n/* 79: 88 */ this.reachablePlaces += 1;\r\n/* 80: */ }\r\n/* 81: 90 */ this.fire[x][y] = checkTileProperty(x, y, \"fire\", \"true\");\r\n/* 82: 91 */ if (this.fire[x][y] != 0) {\r\n/* 83: 93 */ this.burnPlaces += 1;\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }\r\n/* 87: */ }", "@Override\n public void onAdd() {\n onRemove();\n \n // Generate a list of renderable images\n MapChunk[] chunks = generateChunks(generate());\n \n // Ensure the list is valid\n if(chunks == null) {\n return;\n }\n \n // Move the textures onto Rectangle shapes\n int chunkWidth = getChunkWidth();\n int chunkHeight = getChunkHeight();\n \n int rows = getHeightInChunks();\n int cols = getWidthInChunks();\n \n // Init our storage\n mTextures = new Texture[ rows * cols ];\n mShapes = new RectangleShape[ rows * cols ];\n \n // Iterate the whole map in chunks\n for(int x = 0; x < cols; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Get the chunk for this position\n MapChunk thisChunk = chunks[ (y * cols) + x ];\n \n if(thisChunk == null) {\n // Something went wrong. Undo.\n onRemove();\n return;\n }\n \n // Convert our image into a texture\n Texture t = new Texture();\n if(t == null || !t.loadFromImage(thisChunk.image)) {\n onRemove();\n return;\n }\n \n // Store the texture for removal later on\n mTextures[ (y * cols) + x ] = t;\n \n // Create a rectangle shape\n RectangleShape r = new RectangleShape( chunkWidth, chunkHeight );\n \n // Apply some settings\n r.setTexture(t);\n r.setPosition( x * chunkWidth, y * chunkHeight );\n \n // Add this shape to the renderer\n if(mRenderer.add(r) < 0) {\n onRemove();\n return;\n }\n \n // Store the shape\n mShapes[ (y * cols) + x ] = r;\n \n }\n }\n \n }", "private void initializeMap() {\n FLMotor = hardwareMap.get(DcMotor.class, \"FLMotor\");\n FRMotor = hardwareMap.get(DcMotor.class, \"FRMotor\");\n BLMotor = hardwareMap.get(DcMotor.class, \"BLMotor\");\n BRMotor = hardwareMap.get(DcMotor.class, \"BRMotor\");\n //ods = hardwareMap.get(OpticalDistanceSensor.class, \"ods\");\n //color = hardwareMap.get(ColorSensor.class, \"color\");\n //touch = hardwareMap.get(TouchSensor.class, \"touch\");\n gyro = hardwareMap.get(GyroSensor.class, \"gyro\");\n\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n BRMotor.setDirection(DcMotorSimple.Direction.FORWARD);\n BLMotor.setDirection(DcMotorSimple.Direction.REVERSE);\n FRMotor.setDirection(DcMotorSimple.Direction.FORWARD);\n FLMotor.setDirection(DcMotorSimple.Direction.REVERSE);\n }", "public static void checkCollisions() {\n\t \n\t\tfor (Ball b1 : Panel.balls) {\n\t\t\tfor (Ball b2 : Panel.balls) {\n\t\t\t\tif (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) {\t\t\t//checking for collision and no equals comparisions\n\t\t\t\t\tint vX = b1.getxVelocity();\n\t\t\t\t\tint vY = b1.getyVelocity();\n\t\t\t\t\tb1.setxVelocity(b2.getxVelocity());\t\t\t\t\t\t\t\t//reversing velocities of each Ball object\n\t\t\t\t\tb1.setyVelocity(b2.getyVelocity());\n\t\t\t\t\tb2.setxVelocity(vX);\n\t\t\t\t\tb2.setyVelocity(vY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void collisionDetection(){\r\n\t\tif( this.isActiv() ){\r\n\t\t\tif( this.isCollided() ){\r\n\t\t\t\tthis.onCollision();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void initialize() {\n BroadphaseInterface aabbInterface = new DbvtBroadphase(); //Checks if objects could collide\n CollisionConfiguration collisionConfiguration = new DefaultCollisionConfiguration();\n CollisionDispatcher collisionDispatcher = new CollisionDispatcher(collisionConfiguration); //Handles collisions\n ConstraintSolver constraintSolver = new SequentialImpulseConstraintSolver();\n\n world = new DiscreteDynamicsWorld(collisionDispatcher, aabbInterface, constraintSolver, collisionConfiguration);\n world.setGravity(DataTypeHelper.stringToVector3f(PreferenceHelper.getValue(\"gravity\")));\n }", "public void init() {\r\n int width = img.getWidth();\r\n int height = img.getHeight();\r\n floor = new Floor(game, width, height);\r\n units = new ArrayList<Unit>();\r\n objects = new ArrayList<GameObject>();\r\n for (int y=0; y<height; y++) {\r\n for (int x=0; x<width; x++) {\r\n int rgb = img.getRGB(x,y);\r\n Color c = new Color(rgb);\r\n Tile t;\r\n if (c.equals(GRASS_COLOR)) {\r\n t = new Tile(game, new Posn(x,y), \"tile_48x24_grass.png\");\r\n } else if (c.equals(STONE_COLOR)) {\r\n t = new Tile(game, new Posn(x,y), \"tile_48x24_stone.png\");\r\n } else {\r\n /* Check all the surrounding tiles. Take a consensus for the underlying tile color. */\r\n int numGrass=0, numStone=0;\r\n for (int j=y-1; j<=y+1; j++) {\r\n for (int i=x-1; i<=x+1; i++) {\r\n if (i>=0 && i<img.getWidth() && j>=0 && j<img.getHeight() && !(i==x && j==y)) {\r\n int rgb2 = img.getRGB(i,j);\r\n Color c2 = new Color(rgb2);\r\n if (c2.equals(GRASS_COLOR)) numGrass++;\r\n else if (c2.equals(STONE_COLOR)) numStone++;\r\n }\r\n }\r\n }\r\n if (numGrass >= numStone) {\r\n t = new Tile(game, new Posn(x,y), \"tile_48x24_grass.png\");\r\n } else {\r\n t = new Tile(game, new Posn(x,y), \"tile_48x24_stone.png\");\r\n }\r\n }\r\n floor.setTile(x, y, t);\r\n \r\n if (c.equals(TREE_COLOR)) {\r\n //objects.add(new GameObject(x,y))\r\n } else if (c.equals(WALL_COLOR)) {\r\n objects.add(new Wall(game, new Posn(x,y), \"wall_48x78_1.png\"));\r\n } else if (c.equals(WIZARD_COLOR)) {\r\n addWizard(x,y);\r\n } else if (c.equals(ZOMBIE_COLOR)) {\r\n addZombie(x,y);\r\n } else if (c.equals(BANDIT_COLOR)) {\r\n addBandit(x,y);\r\n } else if (c.equals(PLAYER_COLOR)) {\r\n game.getPlayerUnit().setPosn(new Posn(x,y));\r\n units.add(game.getPlayerUnit());\r\n }\r\n }\r\n }\r\n }", "public void load() {\n structure = SpigotUtils.structBetweenTwoLocations(pos1, pos2, material);\n }", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "private void getObjects() {\n\t\tmeteors = go.getMeteors();\n\t\texplosions = go.getExplosions();\n\t\ttargets = go.getTargets();\n\t\tcrosses = go.getCrosses();\n\t\trockets = go.getRockets();\n\t\tearth = go.getEarth();\n\t}", "public void checkForCollisions()\r\n\t{\r\n\t\t//collision detection\r\n\t\tfor(PolygonD obj : objects)\r\n\t\t{\r\n\t\t\t//find points in character that intersected with the scene\r\n\t\t\tfor(PointD p : aSquare.getBoundary().getVerts())\r\n\t\t\t{\r\n\t\t\t\tif(obj.contains(p)){\r\n\t\t\t\t\t//find side that intersected\r\n\t\t\t\t\tdouble minDist = Double.MAX_VALUE;\r\n\t\t\t\t\tPointD prev = obj.getVerts().get(obj.getVerts().size()-1);\r\n\t\t\t\t\tPointD closestPoint = null;\r\n\t\t\t\t\tfor(PointD vert : obj.getVerts())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDouble d = distanceToLine(new Vector(prev, vert), p);\r\n\t\t\t\t\t\tif(d != null && d < minDist)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tminDist = d;\r\n\t\t\t\t\t\t\tclosestPoint = getNearestPointOnLine(new Vector(prev, vert),p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tprev = vert;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tVector offset = new Vector(p, closestPoint);\r\n\t\t\t\t\taSquare.translate(offset);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//find points in scene that intersected with the character\r\n\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t{\r\n\t\t\t\tif(aSquare.getBoundary().contains(p)){\r\n\t\t\t\t\t//find side that intersected\r\n\t\t\t\t\tdouble minDist = Double.MAX_VALUE;\r\n\t\t\t\t\tPointD prev = aSquare.getBoundary().getVerts().get(aSquare.getBoundary().getVerts().size()-1);\r\n\t\t\t\t\tPointD closestPoint = null;\r\n\t\t\t\t\tfor(PointD vert : aSquare.getBoundary().getVerts())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDouble d = distanceToLine(new Vector(prev, vert), p);\r\n\t\t\t\t\t\tif(d != null && d < minDist)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tminDist = d;\r\n\t\t\t\t\t\t\tclosestPoint = getNearestPointOnLine(new Vector(prev, vert),p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tprev = vert;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//get the angle of object by 'feeling' it\r\n\t\t\t\t\tint numVerts = obj.verts.size();\r\n\t\t\t\t\tint objI = obj.verts.indexOf(p);\r\n\t\t\t\t\tint lastI = (objI - 1) % numVerts;\r\n\t\t\t\t\tif(lastI == -1)\r\n\t\t\t\t\t\tlastI = numVerts - 1;\r\n\t\t\t\t\tint nextI = (objI + 1) % numVerts;\r\n\t\t\t\t\t\r\n\t\t\t\t\tint angle = (int)Math.round((new Vector(obj.verts.get(objI), obj.verts.get(lastI))).angleBetween(new Vector(obj.verts.get(objI), obj.verts.get(nextI))));\r\n\t\t\t\t\t\r\n\t\t\t\t\taSquare.sendMsg(new Msg(aSquare, \"Felt Vertex: \" + angle + \"deg\"));//null means status message\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//reverse direction to make aSquare move out of wall\r\n\t\t\t\t\tVector offset = new Vector(closestPoint, p);\r\n\t\t\t\t\taSquare.translate(offset);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\taSquare.getCenter();\r\n\t}", "public static void load() {\n\n\t\ttry {\n\t\t\tnew Thread() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObjectDef.loadConfig();\n\t\t\t\t\t\tObjectConstants.declare();\n\t\t\t\t\t\tMapLoading.load();\n\t\t\t\t\t\tRegion.sort();\n\t\t\t\t\t\tObjectManager.declare();\n\t\t\t\t\t\tGameDefinitionLoader.loadNpcSpawns();\n\t\t\t\t\t\tNpc.spawnBosses();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}.start();\n\n\t\t\tGlobalItemHandler.spawn();\n\t\t\tTriviaBot.start();\n\t\t\tAchievements.declare();\n\n\t\t\tGameDefinitionLoader.loadItemValues();\n\t\t\tGameDefinitionLoader.loadNpcDefinitions();\n\t\t\tGameDefinitionLoader.loadItemDefinitions();\n\t\t\tGameDefinitionLoader.loadEquipmentDefinitions();\n\t\t\tGameDefinitionLoader.loadShopDefinitions();\n\t\t\tGameDefinitionLoader.setRequirements();\n\t\t\tGameDefinitionLoader.loadWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedStrengthDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadCombatSpellDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadNpcCombatDefinitions();\n\t\t\tGameDefinitionLoader.loadItemBonusDefinitions();\n\n\t\t\tNPCDrops.parseDrops().load();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void init(){\n\t\n\t\t//background init\n\t\tthis.background = new Sprite(this.scene, \"space-backdrop.png\", 1280 * 5, 800 * 5);\n\t\tthis.background.setBoundAction(\"background\");\n\t\tthis.background.setSpeedScale(0.2);\n\t\tthis.background.setSpeed(0);\n\t\tthis.sprites.add(this.background);\n\t\t\n\t\t//compass init\n\t\tthis.compass = new Sprite(this.scene, \"compass.png\", 100, 100);\n\t\tthis.compass.setSpeed(0);\n\t\tthis.compass.setPosition(this.compass.getWidth() / 2, this.scene.getHeight() - this.compass.getHeight() / 2);\n\t\t\n\t\t//earth init\n\t\tthis.earth = new Planet(this.scene, \"earth.png\", 4800, 4800);\n\t\tthis.earth.setSpeed(0);\n\t\tthis.earth.setPosition(0, 7000);\n\t\tthis.earth.setBoundAction(\"continue\");\n\t\tthis.sprites.add(this.earth);\n\t\t\n\t\t//ship init\n\t\tthis.mainSprite = new Ship(this.scene, \"cannon.png\", 50, 50, this.k);\n\t\tthis.mainSprite.keyListen = true;\n\t\tthis.mainSprite.setSpeed(0);\n\t\tthis.mainSprite.setPosition(this.scene.getWidth() / 2, this.scene.getHeight() / 2);\n\t\t\n\t\t//asteroids init\n\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", 250, 250, this));\n\t\tthis.asteroids.get(0).setBoundAction(\"continue\");\n\t\tthis.asteroids.get(0).setSpeed(0);\n\t\tthis.asteroids.get(0).setPosition(0, 0);\n\t\tthis.sprites.add(this.asteroids.get(0));\n\t\t\n\t\tfor(int i = 1; i < 200; i++){\n\t\t\t\n\t\t\tint size = (int) Math.round(Math.random() * 400 + 50);\n\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\n\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t}\n\t\t\t\n\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t}\n\t\t\t\n\t\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", size, size, this));\n\t\t\tthis.asteroids.get(i).setBoundAction(\"continue\");\n\t\t\tthis.asteroids.get(i).setSpeed(0);\n\t\t\tthis.asteroids.get(i).setPosition(x, y);\n\t\t\t\n\t\t\tthis.sprites.add(this.asteroids.get(i));\n\t\t}\n\t\t\n\t\t\n\t\t//chest init\n\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\tthis.chests.get(0).setBoundAction(\"continue\");\n\t\tthis.chests.get(0).setSpeed(0);\n\t\tthis.chests.get(0).setPosition(500, 500);\n\t\tthis.sprites.add(this.chests.get(0));\n\t\t\n\t\tfor(int i = 1; i < this.numChests; i++){\n\t\t\t\n\t\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\t\tthis.chests.get(i).setBoundAction(\"continue\");\n\t\t\tthis.chests.get(i).setSpeed(0);\n\t\t\t\n\t\t\tboolean keepGoing = true;\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t\n\t\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthis.chests.get(i).setPosition(x, y);\n\t\t\t\t\n\t\t\t\t//check for collisions with asteroids\n\t\t\t\tboolean colliding = false;\n\t\t\t\tfor(int j = 0; j < this.asteroids.size() && colliding == false; j++){\n\t\t\t\t\tif(this.asteroids.get(j).collidesWith(this.chests.get(i))){\n\t\t\t\t\t\tcolliding = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tkeepGoing = colliding;\n\t\t\t\t\n\t\t\t}while(keepGoing);\n\t\t\t\n\t\t\tthis.sprites.add(this.chests.get(i));\n\t\t\t\n\t\t}//end for\n\t\n\t\tthis.scene.start();\n\t\t\n\t\tSystem.out.println(\"==== Welcome to Space Smuggler! ====\");\n\t\tSystem.out.println(\"(WASD to move)\");\n\t\tSystem.out.println(\"Follow your compass in the bottom left corner to find treasure.\");\n\t\tSystem.out.println(\"Collect all of the treasure, then follow your compass to Earth!\");\n\t\tSystem.out.println(\"Watch out for the asteroids though, their gravitational pull is strong!\");\n\t\tSystem.out.println(\"Crashing into one will certainly kill you! D:\");\n\t\tSystem.out.println(\"Good Luck!\");\n\t\t\n\t}", "@Override\n\tpublic void init(GameContainer container) throws SlickException {\n\t\tloadWorld();\n\t\tTiles.loadTiles();\n\t}", "public void cargarHashMap() throws IOException {\r\n\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.BUTTERFLY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/butterfly.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.AMOEBA,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/amoeba.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.DIAMOND,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/diamond.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FALLINGDIAMOND,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/diamond.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.WALL,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/wall.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.DIRT,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/dirt.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.EMPTY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/empty.jpg\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.PLAYER,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/rockford.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.ROCK,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/boulder.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FALLINGROCK,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/boulder.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FIREFLY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/firefly.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.TITANIUM,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/steel.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.EXIT,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/exit.gif\")));\r\n\t\t//imagenes.put(\r\n\t\t\t//\tBDTile.EXPLOSION,\r\n\t\t\t\t//toolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t//\t.getResource(\"resources/explosion.gif\")));\r\n\r\n\t}", "@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }", "public void collideWithOthers(int[][] map) {\n\t\t// Constants.\n\t\tfinal int DIRT = this.level.DIRT;\n\t\tfinal int EMERALD = this.level.EMERALD;\n\t\tfinal int CLEAR = this.level.CLEAR;\n\n\t\t// Gets the regularCollisionBoxes from the array list from the level.\n\t\tArrayList<Rectangle2D.Double> regularCollisionBoxes = this.level\n\t\t\t\t.getRegularCollisionBoxes();\n\n\t\t// Loop through and do specific actions depending on the tile block.\n\t\tfor (int i = 0; i < regularCollisionBoxes.size(); i++) {\n\t\t\tif (this.collisionBox.intersects(regularCollisionBoxes.get(i))) {\n\t\t\t\tint column = (int) regularCollisionBoxes.get(i).getX()\n\t\t\t\t\t\t/ this.SCALE;\n\t\t\t\tint row = (int) regularCollisionBoxes.get(i).getY()\n\t\t\t\t\t\t/ this.SCALE;\n\t\t\t\tif (map[column][row] == DIRT) {\n\t\t\t\t\tthis.level.updateTile(column, row, CLEAR);\n\t\t\t\t}\n\t\t\t\tif (map[column][row] == EMERALD) {\n\t\t\t\t\tthis.level.updateTile(column, row, CLEAR);\n\t\t\t\t\tthis.score = this.score + this.EMERALD_POINT;\n\t\t\t\t\tthis.pointGain.play();\n\t\t\t\t\t// System.out.println(this.score);\n\t\t\t\t}\n\t\t\t\t// if (map[column][row] == this.GOLD) {\n\t\t\t\t// this.die();\n\t\t\t\t// }\n\t\t\t\tif (map[column][row] == this.TREASURE) {\n\t\t\t\t\tthis.level.updateTile(column, row, CLEAR);\n\t\t\t\t\tthis.score = this.score + this.TREASURE_POINT;\n\t\t\t\t\t// System.out.println(this.score);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Map(SpriteLoader sprites) {\n\n this.sprites = sprites;\n\n }", "@SuppressWarnings(\"unchecked\")\r\n private void newMap() throws IOException, ClassNotFoundException {\r\n this.music_map.clear();\r\n if (needNewMap()) {\r\n if (!save_file.exists()) {\r\n System.out.println(\"DIZIONARIO NON PRESENTE\");\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n\r\n this.setTarget();\r\n\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n } else {\r\n System.out.println(\"DIZIONARIO NON AGGIORNATO\");\r\n if (!UtilFunctions.newDictionaryRequest(this.save_file, this.music_root)) {\r\n System.out.println(\"AGGIORNAMENTO DIZIONARIO RIFIUTATO\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n } else {\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n this.setTarget();\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n }\r\n }\r\n } else {\r\n System.out.println(\"DIZIONARIO GIA' PRESENTE\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n }\r\n }", "public abstract void createMap(Game game) throws FreeColException;", "public abstract void createMap(Game game) throws FreeColException;", "void setCollisionRule(CollisionRule collisionRule);", "@Override\r\n\tpublic void gameInit() \r\n\t{\r\n\t\tfont = new Font(\"Courier\", Font.BOLD, 14);\r\n\t\tfontInfo = this.getFontMetrics(font);\r\n\t\tkeys = new KeyValues();\r\n\t\t\r\n\t\tbackground.loadImage(\"/images/sky.png\");\r\n\t\ttileset = new TileSet(10,10,32,32);\r\n\t\ttileset.loadTiles(\"/images/test_tiles.png\");\r\n\t\tmap = new Map(tileset, 20, 50);\r\n\t\tmap.readMap(\"res/maps/testmap2.txt\");\r\n\t\t\r\n\t\tcamera.setDimensions(getScreenWidth(), getScreenHeight());\r\n\t\tcamera.setXRange(0, map.getWidth() - getScreenWidth());\r\n\t\tcamera.setYRange(0, map.getHeight() - getScreenHeight());\r\n\t}", "private void loadGraphics() {\n\t\ttopAtlas = new BitmapTextureAtlas(this.activity.getTextureManager(), 1024, 1024);\r\n\t\ttopRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(topAtlas, activity, \"pizza_top.png\", 0, 0);\r\n\t\ttopAtlas.load();\r\n\t\t\r\n\t\t\r\n\t\tbottomAtlas = new BitmapTextureAtlas(this.activity.getTextureManager(), 1024, 1024);\r\n\t\tbottomRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(bottomAtlas, activity, \"pizza_bottom.png\", 0, 0);\r\n\t\tbottomAtlas.load();\t\r\n\t\t\t\t\t\t\r\n\t\t\r\n\t\tbalanceAtlas = new BuildableBitmapTextureAtlas(engine.getTextureManager(), 1024, 512);\r\n\t\trod = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"baserod.png\");\r\n\t\tbase = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"balancebase.png\");\r\n\t\tbalanceRod = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"balancerod.png\");\r\n\t\tchain = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"chain.png\");\r\n\t\tpan = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"pan.png\");\r\n\t\tok = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"OK.png\");\r\n\t\twinner = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"winner.png\");\r\n\t\ticon = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"icon.png\");\r\n\t\t\r\n\t\tweight = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"w.png\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tbalanceAtlas.build(new BlackPawnTextureAtlasBuilder<IBitmapTextureAtlasSource, BitmapTextureAtlas>(0, 1, 1));\r\n\t\t} catch (TextureAtlasBuilderException e) {\r\n\t\t\tLog.e(\"PLAYSCENE\", \"ERROR BUILDING BALANCEATLAS\");\r\n\t\t}\r\n\t\tbalanceAtlas.load();\r\n\t\t\r\n\t}", "public void checkCollisions(List<Entity> listOfCloseObjects){\n\n for(Entity first : listOfCloseObjects){\n for(Entity second : listOfCloseObjects){\n if(first!=second) {\n\n String typeOfCollision = \"\";\n\n //check for a collision between the bounding boxes\n if (first.getBoundingBox().intersects(second.getBoundingBox())) {\n if(first.getEntityType().equals(EntityType.WALL) && second.getEntityType().equals(EntityType.PLAYER)) {\n typeOfCollision = \"playerWithWall\";\n }\n else if(first.getEntityType().equals(EntityType.FLOOR_HAZARD) && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"playerWithHazard\";\n }\n else if(first.getEntityType().equals(EntityType.MELEE_WEAPON) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"swordWithEnemy\";\n }\n else if(first instanceof Bullet && second.getEntityType().equals(EntityType.WALL)){\n typeOfCollision = \"bulletWithWall\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.WALL)){\n typeOfCollision = \"enemyWithWall\";\n }\n else if((first.getEntityType().equals(EntityType.DEFAULT_BULLET) || first.getEntityType().equals(EntityType.SHOTGUN_BULLET) || first.getEntityType().equals(EntityType.FAST_BULLET)) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"enemyWithBullet\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"enemyWithEnemy\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"enemyWithPlayer\";\n }\n else if((first.getEntityType().equals(EntityType.SWORD) || first.getEntityType().equals(EntityType.SHOTGUN) || first.getEntityType().equals(EntityType.PISTOL) || first.getEntityType().equals(EntityType.ASSAULT_RIFLE) ||\n first.getEntityType().equals(EntityType.SHIELD) || first.getEntityType().equals(EntityType.SPEEDBOOST) || first.getEntityType().equals(EntityType.HEART))\n && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"itemWithPlayer\";\n }\n\n if(!typeOfCollision.isEmpty())\n collide(typeOfCollision, first, second);\n }\n }\n }\n }\n\n }", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }", "void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap);", "public abstract void processCollisions();", "private void updatePhysics() {\n long now = System.currentTimeMillis();\n // Do nothing if mLastTime is in the future.\n // This allows the game-start to delay the start of the physics\n // by 100ms or whatever.\n if (mLastTime > now) return;\n int n = particles.length;\n tree.clear();\n for (int i = 0; i < n; i++) {\n tree.insert(particles[i]);\n }\n // Determine if there are any collisions\n // http://www.kirupa.com/developer/actionscript/multiple_collision2.htm\n for (int i = 0; i < n; i++) {\n \tparticles[i].update(now);\n \tparticles[i].disappearsFromEdge(canvasWidth, canvasHeight);\n\t\t\tSet<Particle> nearBy = tree.retrieve(particles[i]);\n\t\t\tfor (Particle particle : nearBy) {\n\t\t\t\tif (particle != particles[i])\n\t\t\t\t\tparticles[i].collidesWith(particle);\n\t\t\t}\n }\n }", "public void loadStartingMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.testMap_grass); // used for IsInGrass\n this.id = 1;\n }", "private void loadSpritesheet() {\n\t\tobjects = new SpriteSheet(\"res\\\\pong.png\");\n\t\tobjects_hires = new SpriteSheet(\"res\\\\ponghires.png\",\n\t\t\t\tSpriteSheet.LINEAR);\n\t}", "public void update(MessageBus bus) {\n \n bus.getMessages().stream().forEach((m) -> {\n if(m.getMessage().equalsIgnoreCase(\"collider\") && !objects.contains((Collider)m.getData()))\n addCollider((Collider) m.getData());\n if(m.getMessage().equalsIgnoreCase(\"init_scene\"))\n objects.clear();\n });\n\n for (int i = 0; i < objects.size(); i++) {\n for (int j = i + 1; j < objects.size(); j++) {\n Collider c1 = objects.get(i);\n Collider c2 = objects.get(j);\n if (c1.transform.getTranslation().x < c2.transform.getTranslation().x + c2.transform.getScale().x\n && c1.transform.getTranslation().x + c1.transform.getScale().x > c2.transform.getTranslation().x\n && c1.transform.getTranslation().y < c2.transform.getTranslation().y + c2.transform.getScale().y\n && c1.transform.getScale().y + c1.transform.getTranslation().y > c2.transform.getTranslation().y) {\n\n bus.addMessage(new Message(-1, \"CollisionWorld\").setMessage(c2.name, c1));\n bus.addMessage(new Message(-1, \"CollisionWorld\").setMessage(c1.name, c2));\n }\n }\n }\n }", "private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }", "public void loadMap(FlxState gameState, String jsonMapPath){\n\t\tHashMap<String, String> layers = new HashMap<String, String>();\n\t\tHashMap<String, Array<JsonValue>> objectsJson = new HashMap<String, Array<JsonValue>>();\n\n\t\t// Cargo las layers y objectsJson. También seteo la FlxG.camera para que tenga los bounds del mapa.\n\t\tparseMap(jsonMapPath, RmbsTiledManager.objectsLayerName, layers, objectsJson);\n\n\t\t// Delego el parseo de layers a algún RmbsLayerParser\n\t\tthis.layerParser.parseLayers(gameState, layers, objectsJson);\n\t}", "@Test\n public void isCollidingTestNoCollision(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{1,1},{1,1},{1,1},{1,1}},new byte[][]{{1,1},{1,1},{1,1},{1,1}}, tilepath);\n Rect cBox = new Rect(0, 0, 0, 0);\n assertFalse(tileMap.isColliding(cBox));\n assertEquals(false, tileMap.isColliding(cBox));\n }", "private void collision(GameObjectContainer<GameObject> object) {\n \tGameObject renderObject = null;\r\n\t\tfor (int i = 0; i < object.getSize(); i++) {\r\n\t\t\trenderObject = object.iterator().next();\r\n\r\n\t\t\tif (renderObject.getType() == \"BLOCK\") {\r\n\t\t\t\tif (this.getBoundsInParent().intersects(renderObject.getBoundsInParent())) {\r\n\t\t\t\t\tSystem.out.println(\"intersected\");\r\n\t\t\t\t\tthis.setTranslateY(renderObject.getTranslateY() - renderObject.getHeight());\r\n\t\t\t\t\tfalling = false;\r\n\t\t\t\t\tjump = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfalling = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (renderObject.getType() == \"NURSE\") {\r\n\t\t\t\tif (this.getBoundsInParent().intersects(renderObject.getBoundsInParent())) {\r\n\t\t\t\t\tSystem.out.println(\"nurse\");\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}else {\r\n\t\t\t\tfalling = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n }", "@Override\n\tpublic void loadEnemies() {\n\t\t\n\t}", "@Override\n\tpublic void collide(Entity e) {\n\n\t}", "public static void load(){\r\n\t \ttry {\r\n\t \t\t// load and set all sprites\r\n\t\t\t\tsetBlueGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/blueGarbage.png\")));\r\n\t\t\t\tsetRank(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/rank.png\")));\r\n\t\t\t\tsetRedGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/redGarbage.png\")));\r\n\t\t\t\tsetYellowGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowGarbage.png\")));\r\n\t\t\t\tsetGreenGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/greenGarbage.png\")));\r\n\t\t\t\tsetBlueSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/blueSnakeBodyPart.png\")));\r\n\t\t\t\tsetRedSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/redSnakeBodyPart.png\")));\r\n\t\t\t\tsetYellowSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowSnakeBodyPart.png\")));\r\n\t\t\t\tsetGreenSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/greenSnakeBodyPart.png\")));\r\n\t\t\t\tsetHeart(ImageIO.read(classPath.getResourceAsStream(\"/images/heart.png\")));\r\n\t\t\t\tsetGameScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenBackground.png\")));\r\n\t\t\t\tsetGameScreenHeader(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenHeader.png\")));\r\n\t\t\t\tsetGameOver(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameOver.png\")));\r\n\t\t\t\tsetHitsOwnBody(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsOwnBody.png\")));\r\n\t\t\t\tsetHitsWall(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsWall.png\")));\r\n\t\t\t\tsetWrongColor(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/wrongColor.png\")));\r\n\t\t\t\tsetHelpScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpScreenBackground.png\")));\r\n\t\t\t \tsetWarningScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/warningScreenBackground.png\")));\r\n\t\t\t \tsetOkButton(ImageIO.read(classPath.getClass().getResource(\"/images/okButton.png\")));\r\n\t\t\t \tsetMenuScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/menuScreenBackground.png\")));\r\n\t\t\t\tsetStartButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/startButton.png\")));\r\n\t\t\t\tsetExitButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/exitButton.png\")));\r\n\t\t\t\tsetHelpButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpButton.png\")));\r\n\t\t\t\t\r\n\t \t} \r\n\t \tcatch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getStackTrace(), \"Erro ao carregar imagens\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\r\n\t\t\t}\t\r\n \t\r\n \t}", "public void initAndSetWorld() {\n\t\tHashMap<String, Location> gameWorld = new HashMap<String, Location>();\r\n\t\tthis.world = gameWorld;\r\n\t\t\r\n\t\t// CREATING AND ADDING LOCATIONS, LOCATION AND ITEM HASHES ARE AUTOMATICALLY SET BY CALLING CONSTRUCTOR\r\n\t\tLocation valley = new Location(\"valley\", \"Evalon Valley. A green valley with fertile soil.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(valley);\r\n\t\tLocation plains = new Location(\"plains\", \"West Plains. A desolate plain.\",\r\n\t\t\t\t\"You cannot go in that direction. There is nothing but dust over there.\",true);\r\n\t\tthis.addLocation(plains);\r\n\t\tLocation mountain = new Location(\"mountain\", \"Northern Mountains. A labyrinth of razor sharp rocks.\",\r\n\t\t\t\t\"You cannot go in that direction. The Mountain is not so easily climbed.\",true);\r\n\t\tthis.addLocation(mountain);\r\n\t\tLocation shore = new Location(\"shore\", \"Western Shore. The water is calm.\",\r\n\t\t\t\t\"You cannot go in that direction. There might be dangerous beasts in the water.\",true);\r\n\t\tthis.addLocation(shore);\r\n\t\tLocation woods = new Location(\"woods\", \"King's Forest. A bright forest with high pines.\",\r\n\t\t\t\t\"You cannot go in that direction. Be careful not to get lost in the woods.\",true);\r\n\t\tthis.addLocation(woods);\r\n\t\tLocation hills = new Location(\"hills\", \"Evalon hills.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(hills);\r\n\t\tLocation cave = new Location(\"cave\", \"Blood Cave. Few of those who venture here ever return.\",\r\n\t\t\t\t\"The air smells foul over there, better not go in that direction.\",true);\r\n\t\tthis.addLocation(cave);\r\n\t\tLocation innercave = new Location(\"innercave\", \"Blood Cave. This path must lead somewhere.\",\r\n\t\t\t\t\"Better not go over there.\",true);\r\n\t\t\r\n\t\tLocation westhills = new Location(\"westhills\", \"Thornhills. A great many trees cover the steep hills.\",\r\n\t\t\t\t\"You cannot go in that direction. Watch out for the thorny bushes.\",true);\r\n\t\tthis.addLocation(westhills);\r\n\t\t\r\n\t\tLocation lake = new Location(\"lake\", \"Evalon Lake. A magnificent lake with a calm body of water.\",\r\n\t\t\t\t\"You cannot go in that direction, nothing but fish over there.\",true);\r\n\t\tthis.addLocation(lake);\r\n\t\t\r\n\t\tLocation laketown = new Location(\"laketown\", \"Messny village. A quiet village with wooden houses and a dirt road.\",\r\n\t\t\t\t\"You cannot go in that direction, probably nothing interesting over there.\",true);\r\n\t\t\r\n\t\tLocation inn = new Room(\"inn\", \"Messny Inn. A small but charming inn in the centre of the village.\",\r\n\t\t\t\t\"You cannot go in that direction.\",false);\r\n\t\t\r\n\t\t// CONNECTING LOCATIONS\r\n\t\t// IT DOES NOT MATTER ON WHICH LOCATION THE METHOD ADDPATHS IS CALLED\r\n\t\tvalley.addPaths(valley, \"east\", plains, \"west\");\r\n\t\tvalley.addPaths(valley, \"north\", mountain, \"south\");\r\n\t\tvalley.addPaths(valley, \"west\", shore, \"east\");\r\n\t\tvalley.addPaths(valley, \"south\", woods, \"north\");\r\n\t\twoods.addPaths(woods, \"east\", hills, \"west\");\r\n\t\thills.addPaths(hills, \"south\", westhills, \"north\");\r\n\t\twesthills.addPaths(westhills, \"west\", lake, \"east\");\r\n\t\tlake.addPaths(woods, \"south\", lake, \"north\");\r\n\t\tlake.addPaths(lake, \"west\", laketown, \"east\");\r\n\t\tmountain.addPaths(mountain, \"cave\", cave, \"exit\");\r\n\t\tlaketown.addPaths(laketown, \"inn\", inn, \"exit\");\r\n\t\t\r\n\r\n\t\t\r\n\t\t// CREATE EMPTY ARMOR SET FOR GAME START AND UNEQUIPS\r\n\t\tBodyArmor noBodyArmor = new BodyArmor(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBodyArmor(noBodyArmor);\r\n\t\tBoots noBoots = new Boots(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBoots(noBoots);\r\n\t\tHeadgear noHeadgear = new Headgear(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultHeadgear(noHeadgear);\r\n\t\tGloves noGloves = new Gloves(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultGloves(noGloves);\r\n\t\tWeapon noWeapon = new Weapon(\"unarmored\", 0, 0, true, 5, false);\r\n\t\tthis.setDefaultWeapon(noWeapon);\r\n\t\t\r\n\t\tthis.getPlayer().setBodyArmor(noBodyArmor);\r\n\t\tthis.getPlayer().setBoots(noBoots);\r\n\t\tthis.getPlayer().setGloves(noGloves);\r\n\t\tthis.getPlayer().setHeadgear(noHeadgear);\r\n\t\tthis.getPlayer().setWeapon(noWeapon);\r\n\t\t\r\n\t\t\r\n\t\t// CREATING AND ADDING ITEMS TO PLAYER INVENTORY \r\n\t\tItem potion = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tthis.getPlayer().addItem(potion);\r\n\t\tWeapon sword = new Weapon(\"sword\", 10, 200, true, 10, false);\r\n\t\tvalley.addItem(sword);\r\n\t\t\r\n\t\tWeapon swordEvalon = new Weapon(\"EvalonianSword\", 15, 400, true, 1, 15, false);\r\n\t\thills.addItem(swordEvalon);\r\n\t\t\r\n\t\tPotion potion2 = new Potion(\"largepotion\", 2, 200, true, 25);\r\n\t\tPotion potion3 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tPotion potion4 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tlake.addItem(potion3);\r\n\t\tinn.addItem(potion4);\r\n\t\t\r\n\t\tItem potion5 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion6 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\twoods.addItem(potion6);\r\n\t\t\r\n\t\tPurse purse = new Purse(\"purse\",0,0,true,100);\r\n\t\tvalley.addItem(purse);\r\n\t\t\r\n\t\tChest chest = new Chest(\"chest\", 50, 100, false, 50);\r\n\t\tvalley.addItem(chest);\r\n\t\tchest.addItem(potion2);\r\n\t\t\r\n\t\tChest chest2 = new Chest(\"chest\", 10, 10, false, 20);\r\n\t\tinn.addItem(chest2);\r\n\t\t\r\n\t\t// ENEMY LOOT\r\n\t\tBodyArmor chestplate = new BodyArmor(\"chestplate\", 20, 200, true, 20);\r\n\t\t\r\n\t\t// ADDING NPC TO WORLD\r\n\t\tNpc innkeeper = new Npc(\"Innkeeper\", false, \"Hello, we have rooms available if you want to stay over night.\",true,1000);\r\n\t\tinn.addNpc(innkeeper);\r\n\t\t\r\n\t\tItem potion7 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion8 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tinnkeeper.addItem(potion7);\r\n\t\tinnkeeper.addItem(potion8);\r\n\t\t\r\n\t\tNpc villager = new Npc(\"Lumberjack\", false, \"Gotta get those logs back to the mill soon, but first a few pints at the inn!\",false,0);\r\n\t\tlaketown.addNpc(villager);\r\n\t\t\r\n\t\tEnemy enemy1 = new Enemy(\"Enemy\", true, \"Come at me!\", 50, chestplate, 200, 10);\r\n\t\tmountain.addNpc(enemy1);\r\n\t\t\r\n\t\tEnemyGuardian guardian = new EnemyGuardian(\"Guardian\", true, \"I guard this cave.\", 100, potion5, 600, 15, innercave, \"An entrance reveals itself behind the fallen Guardian.\", \"inwards\", \"entrance\");\r\n\t\tcave.addNpc(guardian);\r\n\t\t\r\n\t\t// ADDING SPAWNER TO WORLD\r\n\t\tthis.setNpcSpawner(new BanditSpawner()); \r\n\t\t\r\n\t\t// ADDING PLAYER TO THE WORLD\r\n\t\tthis.getPlayer().setLocation(valley);\r\n\t\t\r\n\t\t// QUEST\r\n\t\tQuest noquest = new Quest(\"noquest\",\"nodesc\",\"nocomp\",false,true,1000,0,0,0);\r\n\t\tthis.setCurrentQuest(noquest);\r\n\t\t\r\n\t\t\r\n\t\tQuest firstquest = new Quest(\"A New Journey\",\"Find the lost sword of Evalon.\",\"You have found the lost sword of Evalon!\",false,false,1,400,0,1);\r\n\t\t\r\n\t\tScroll scroll = new Scroll(\"Questscroll\",1,1,true,firstquest);\r\n\t\tmountain.addItem(scroll);\r\n\t\t\r\n\t\tSystem.out.println(\"All set up.\");\r\n\t}", "public List<ImageResourceWrapper> getMap() {\n // Declare a new list to hold the rendering info for the physics objects.\n List<ImageResourceWrapper> rtrnResources = new ArrayList<>();\n for(PhysicsEntity physicsEntity : this.physModel.getEntities()) {\n // Get the graphics entity corresponding to the current physics entity.\n GraphicsEntity graphicsEntity = this.graphModel.getEntityByID(physicsEntity.getId());\n String imgResource = graphicsEntity.getImgResId(physicsEntity.getOrientation());\n rtrnResources.add(new ImageResourceWrapper(new Point(physicsEntity.getPosition().x, physicsEntity.getPosition().y), imgResource));\n }\n for(Objective objective : this.gameStateModel.getObjectives()) {\n GraphicsEntity graphicsEntity = this.graphModel.getEntityByID(objective.getId());\n // TODO: Orientation for objectives\n String imgResource = graphicsEntity.getImgResId(0);\n rtrnResources.add(new ImageResourceWrapper(new Point(objective.getPosition().x, objective.getPosition().y), imgResource));\n }\n return rtrnResources;\n }", "void deleteEntitiesOf(Map<Location, SurfaceEntity> map, Rectangle rect, boolean checkBuildings) {\r\n\t\t// find buildings falling into the selection box\r\n\t\tif (rect != null) {\r\n\t\t\tBuilding bld = null;\r\n\t\t\tfor (int a = rect.x; a < rect.x + rect.width; a++) {\r\n\t\t\t\tfor (int b = rect.y; b > rect.y - rect.height; b--) {\r\n\t\t\t\t\tSurfaceEntity se = map.get(Location.of(a, b));\r\n\t\t\t\t\tif (se != null) {\r\n\t\t\t\t\t\tint x = a - se.virtualColumn;\r\n\t\t\t\t\t\tint y = b + se.virtualRow;\r\n\t\t\t\t\t\tfor (int x0 = x; x0 < x + se.tile.width; x0++) {\r\n\t\t\t\t\t\t\tfor (int y0 = y; y0 > y - se.tile.height; y0--) {\r\n\t\t\t\t\t\t\t\tmap.remove(Location.of(x0, y0));\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\tif (checkBuildings) {\r\n\t\t\t\t\t\tfor (int i = renderer.surface.buildings.size() - 1; i >= 0; i--) {\r\n\t\t\t\t\t\t\tbld = renderer.surface.buildings.get(i);\r\n\t\t\t\t\t\t\tif (bld.containsLocation(a, b)) {\r\n\t\t\t\t\t\t\t\trenderer.surface.buildings.remove(i);\r\n\t\t\t\t\t\t\t\tif (bld == currentBuilding) {\r\n\t\t\t\t\t\t\t\t\trenderer.buildingBox = null;\r\n\t\t\t\t\t\t\t\t\tcurrentBuilding = null;\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} else {\r\n\t\t\t\t\t\tfor (int i = renderer.surface.features.size() - 1; i >= 0; i--) {\r\n\t\t\t\t\t\t\tSurfaceFeature sf = renderer.surface.features.get(i);\r\n\t\t\t\t\t\t\tif (sf.containsLocation(a, b)) {\r\n\t\t\t\t\t\t\t\trenderer.surface.features.remove(i);\r\n\t\t\t\t\t\t\t\tif (sf.equals(currentBaseTile)) {\r\n\t\t\t\t\t\t\t\t\tcurrentBaseTile = null;\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}\r\n\t\t\tif (checkBuildings && bld != null) {\r\n\t\t\t\tplaceRoads(bld.techId);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void createSprites(World world) {\r\n \t// the height of the map since 0,0 in Tiled is in the top left\r\n // compared to the TiledMap's 0,0 in the bottom left\r\n int height = 2400;\r\n\r\n // file locations of different trees\r\n TextureAtlas atlas = new TextureAtlas(\"Game Tilesets/Trees/Trees.pack\");\r\n Skin skin = new Skin();\r\n skin.addRegions(atlas);\r\n TextureRegion T2 = skin.getRegion(\"T2\");\r\n TextureRegion T3 = skin.getRegion(\"T3\");\r\n TextureRegion T7 = skin.getRegion(\"T7\");\r\n TextureRegion T9 = skin.getRegion(\"T9\");\r\n TextureRegion T10 = skin.getRegion(\"T10\");\r\n \r\n // add all of the trees\r\n \tthis.addSprite(new ObjectSprites(T2, 236, height - 1490));\r\n \r\n this.addSprite(new ObjectSprites(T9, 622, height - 1907));\r\n this.addSprite(new ObjectSprites(T9, 683, height - 1687));\r\n this.addSprite(new ObjectSprites(T9, 174, height - 1851));\r\n this.addSprite(new ObjectSprites(T9, 361, height - 1643));\r\n \r\n this.addSprite(new ObjectSprites(T10, 572, height - 1354));\r\n this.addSprite(new ObjectSprites(T10, 0, height - 1475));\r\n this.addSprite(new ObjectSprites(T10, -9, height - 1707));\r\n this.addSprite(new ObjectSprites(T10, 675, height - 1479));\r\n this.addSprite(new ObjectSprites(T10, 416, height - 1903));\r\n\r\n this.addSprite(new ObjectSprites(T3, 428, height - 1453));\r\n this.addSprite(new ObjectSprites(T3, 596, height - 1122));\r\n this.addSprite(new ObjectSprites(T3, -32, height - 988));\r\n this.addSprite(new ObjectSprites(T3, 476, height - 864));\r\n this.addSprite(new ObjectSprites(T3, 640, height - 725));\r\n this.addSprite(new ObjectSprites(T3, 424, height - 2123));\r\n \r\n this.addSprite(new ObjectSprites(T7, 145, height - 1347));\r\n this.addSprite(new ObjectSprites(T7, 83, height - 1935));\r\n this.addSprite(new ObjectSprites(T7, 585, height - 2031));\r\n this.addSprite(new ObjectSprites(T7, 290, height - 2304));\r\n \r\n Bandit b1 = new Bandit();\r\n b1.defineBody(world, 215, 1305);\r\n super.addSprite(b1);\r\n \r\n Bandit b2 = new Bandit();\r\n b2.defineBody(world, 60, 1445);\r\n super.addSprite(b2);\r\n \r\n Bandit b3 = new Bandit();\r\n b3.defineBody(world, 90, 1640);\r\n super.addSprite(b3);\r\n \r\n Bandit b4 = new Bandit();\r\n b4.defineBody(world, 530, 1740);\r\n super.addSprite(b4);\r\n \r\n Bandit b5 = new Bandit();\r\n b5.defineBody(world, 730, 1655);\r\n super.addSprite(b5);\r\n \r\n Bandit b6 = new Bandit();\r\n b6.defineBody(world, 90, 2235);\r\n super.addSprite(b6);\r\n \r\n Bandit b7 = new Bandit();\r\n b7.defineBody(world, 715, 1490);\r\n super.addSprite(b7);\r\n \r\n Bandit b8 = new Bandit();\r\n b8.defineBody(world, 318, 1605);\r\n super.addSprite(b8);\r\n }", "public void preLoadContent(AssetManager manager) {\n\t\tif (worldAssetState != AssetState.EMPTY) {\n\t\t\treturn;\n\t\t}\n\n\t\tworldAssetState = AssetState.LOADING;\n\n\t\tmanager.load(KOI_TEXTURE, Texture.class);\n\t\tassets.add(KOI_TEXTURE);\n\n\t\tmanager.load(ENEMY_TEXTURE, Texture.class);\n\t\tassets.add(ENEMY_TEXTURE);\n\n\t\tmanager.load(LILY_TEXTURE, Texture.class);\n\t\tassets.add(LILY_TEXTURE);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_N, Texture.class);\n\t\tassets.add(LILY_TEXTURE_N);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_S, Texture.class);\n\t\tassets.add(LILY_TEXTURE_S);\n\n\t\tmanager.load(LANTERN_TEXTURE, Texture.class);\n\t\tassets.add(LANTERN_TEXTURE);\n\n\t\tmanager.load(LIGHTING_TEXTURE, Texture.class);\n\t\tassets.add(LIGHTING_TEXTURE);\n\n\t\tmanager.load(SHADOW_TEXTURE, Texture.class);\n\t\tassets.add(SHADOW_TEXTURE);\n\n\t\tmanager.load(GOAL_TEXTURE, Texture.class);\n\t\tassets.add(GOAL_TEXTURE);\n\n\t\tmanager.load(EARTH_FILE,Texture.class);\n\t\tassets.add(EARTH_FILE);\n\n\t\tmanager.load(EARTH_FILE_D,Texture.class);\n\t\tassets.add(EARTH_FILE_D);\n\t\tmanager.load(EARTH_FILE_N,Texture.class);\n\t\tassets.add(EARTH_FILE_N);\n\t\tmanager.load(EARTH_FILE_S,Texture.class);\n\t\tassets.add(EARTH_FILE_S);\n\t\tmanager.load(SHORE_FILE,Texture.class);\n\t\tassets.add(SHORE_FILE);\n\n\t\tmanager.load(ROCK_FILE_D,Texture.class);\n\t\tassets.add(ROCK_FILE_D);\n\t\tmanager.load(ROCK_FILE_N,Texture.class);\n\t\tassets.add(ROCK_FILE_N);\n\t\tmanager.load(ROCK_FILE_S,Texture.class);\n\t\tassets.add(ROCK_FILE_S);\n\n\t\tmanager.load(WHIRLPOOL_TEXTURE, Texture.class);\n\t\tassets.add(WHIRLPOOL_TEXTURE);\n\t\t\n\t\tmanager.load(ENERGYBAR_TEXTURE, Texture.class);\n\t\tassets.add(ENERGYBAR_TEXTURE);\n\n\t\tmanager.load(UI_FLOWER, Texture.class);\n\t\tassets.add(UI_FLOWER);\n\n\t\tmanager.load(OVERLAY, Texture.class);\n\t\tassets.add(OVERLAY);\n\n\t\tmanager.load(BACKGROUND_FILE_N, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_N);\n\n\t\tmanager.load(BACKGROUND_FILE_D, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_D);\n\n\t\tmanager.load(BACKGROUND_FILE_S, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_S);\n\t\t\n\t\t\n\n\t\tmanager.load(OVERLAY_FILE, Texture.class);\n\t\tassets.add(OVERLAY_FILE);\n\n\t\tmanager.load(KOI_ARROW, Texture.class);\n\t\tassets.add(KOI_ARROW);\n\t\tmanager.load(WHIRL_ARROW, Texture.class);\n\t\tassets.add(WHIRL_ARROW);\n\t\t\n\t\tmanager.load(TUTORIAL_TEXTURE1, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE1);\n\t\tmanager.load(TUTORIAL_TEXTURE2, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE2);\n\t\tmanager.load(TUTORIAL_TEXTURE3, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE3);\n\t\tmanager.load(TUTORIAL_TEXTURE4, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE4);\n\t\tmanager.load(TUTORIAL_TEXTURE5, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE5);\n\t\tmanager.load(TUTORIAL_TEXTURE6, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE6);\n\t\t\n\t\tmanager.load(HELP_TEXTURE, Texture.class);\n\t\tassets.add(HELP_TEXTURE);\n\t\t\n\n\t\treferenceC.a = 0f;\n\n\t\t// Load the font\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size2Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize2Params.fontFileName = FONT_FILE;\n\t\tsize2Params.fontParameters.size = FONT_SIZE;\n\t\tmanager.load(FONT_FILE, BitmapFont.class, size2Params);\n\t\tassets.add(FONT_FILE);\n\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size3Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize3Params.fontFileName = FONT_FILE2;\n\t\tsize3Params.fontParameters.size = FONT_SIZE2;\n\t\tmanager.load(FONT_FILE2, BitmapFont.class, size3Params);\n\t\tassets.add(FONT_FILE2);\n\t\t\n\t\t\n\t}", "public void run()\n \t{\n \t\tTerrain t = ExplosionController.getInstance().t;\n \t\twhile (true)\n \t\t{\n \t\t\tsynchronized (collidables) \n \t\t\t{ \n \t\t\t\tfor (int i = collidables.size()-1; i >= 0; i--)\n \t\t\t\t{\n \t\t\t\t\tDrawable d = collidables.get(i);\n \t\t\t\t\t\n \t\t\t\t\td.v.y += GRAVITY;\n \t\t\t\t\t\n \t\t\t\t\td.p.x += d.v.x;\n \t\t\t\t\td.p.y += d.v.y;\n \t\t\t\t\n \t\t\t\t\tint iFromX = (int) (d.p.x / t.segmentWidth);\n \t\t\t\t\tint iFromPreviousX = (int) ((d.p.x-d.v.x) / t.segmentWidth);\n \t\t\t\t\t\n \t\t\t\t\tif(iFromX < 0 || iFromX >= t.points.length-1)\n \t\t\t\t\t{\n \t\t\t\t\t\td.removeFromGLEngine = true;\n \t\t\t\t\t\td.removeFromPhysicsEngine = true;\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tdouble percent = (d.p.x % t.segmentWidth) / t.segmentWidth;\n \t\t\t\t\t\tdouble landYatX = t.points[iFromX] + (t.points[iFromX + 1] - t.points[iFromX]) * percent;\n \t\t\t\t\t\t\n \t\t\t\t\t\tif(d.p.y > landYatX)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tcontinue;\n \t\t\t\t\t\t}\n \t\t\t\n \t\t\t\t\t\tint minIndex = iFromX;\n \t\t\t\t\t\tint maxIndex = iFromPreviousX;\n \t\t\t\t\t\tif(minIndex > maxIndex)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tint temp = minIndex;\n \t\t\t\t\t\t\tminIndex = maxIndex;\n \t\t\t\t\t\t\tmaxIndex = temp;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\tfor(int s = minIndex; s <= maxIndex; s++)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tfloat xFromIndex = s*t.segmentWidth;\n \t\t\t\t\t\t\tfloat xFromNextIndex = (s+1)*t.segmentWidth;\n \t\t\t\t\t\t\tfloat[] intersect = lineIntersect(d.p.x-d.v.x, d.p.y-d.v.y, d.p.x, d.p.y, xFromIndex, t.points[s], xFromNextIndex, t.points[s+1], t.previousPoints[s], t.previousPoints[s+1]);\n \t\t\t\t\t\t\tif(intersect != null)\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\td.intersectTerrain(intersect[0], intersect[1]);\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tif(d.removeFromPhysicsEngine)\n \t\t\t\t\t{\n \t\t\t\t\t\tcollidables.remove(i);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tt.update();\n \t\t\t\n \t\t\ttry\n \t\t\t{\n \t\t\t\tThread.currentThread().sleep(20);\n \t\t\t} \n \t\t\tcatch (InterruptedException e)\n \t\t\t{\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}", "public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }", "public void preCalculateCollisions(){\n for(int i = 0; i < ALL_POSSIBLE_STATES.length; i++){\n collisions[i] = new StateMapEntry();\n collisions[i].incomingState = ALL_POSSIBLE_STATES[i];\n collisions[i].resultingState = calculateAllPossibleOutboundStates(ALL_POSSIBLE_STATES[i], ALL_POSSIBLE_STATES);\n //collisions[i].print();\n }\n }", "public void initGC(){\n\n gc.translate(-map.getwX(),-map.getwY());\n\n// gc.translate((map.getWinWidth()/2-map.getwX()),(map.getWinHeight()/2-map.getwY()));\n }", "public void map() {\n\t\tfor(GameObject object : gameObject)\n\t\t\tSystem.out.println(object);\n\t}", "private void graphicsLoader() {\n\t\tff2Logo = new Texture(Gdx.files.internal(uiName + \"/ff2logo.png\"));\n\t\tff2LogoHit = new Texture(Gdx.files.internal(uiName + \"/ff2logohit.png\"));\n\t\tplayerword = new Texture(Gdx.files.internal(uiName + \"/playerword.png\"));\n\t\tplayerwordHit = new Texture(Gdx.files.internal(uiName + \"/playerwordhit.png\"));\n\t\tturretword = new Texture(Gdx.files.internal(uiName + \"/turretword.png\"));\n\t\tturretwordHit = new Texture(Gdx.files.internal(uiName + \"/turretwordhit.png\"));\n\t\tfenceword = new Texture(Gdx.files.internal(uiName + \"/fenceword.png\"));\n\t\tfencewordHit = new Texture(Gdx.files.internal(uiName + \"/fencewordhit.png\"));\n\t\tbarrierword = new Texture(Gdx.files.internal(uiName + \"/barrierword.png\"));\n\t\tbarrierwordHit = new Texture(Gdx.files.internal(uiName + \"/barrierwordhit.png\"));\n\t\tgatewayword = new Texture(Gdx.files.internal(uiName + \"/gatewayword.png\"));\n\t\tgatewaywordHit = new Texture(Gdx.files.internal(uiName + \"/gatewaywordhit.png\"));\n\t\tpowerupword = new Texture(Gdx.files.internal(uiName + \"/powerupword.png\"));\n\t\tpowerupwordHit = new Texture(Gdx.files.internal(uiName + \"/powerupwordhit.png\"));\n\t\tswitchword = new Texture(Gdx.files.internal(uiName + \"/switchword.png\"));\n\t\tswitchwordHit = new Texture(Gdx.files.internal(uiName + \"/switchwordhit.png\"));\n\t\tenemyfighterword = new Texture(Gdx.files.internal(uiName + \"/enemyfighterword.png\"));\n\t\tenemyfighterwordHit = new Texture(Gdx.files.internal(uiName + \"/enemyfighterwordhit.png\"));\n\t\tmineword = new Texture(Gdx.files.internal(uiName + \"/mineword.png\"));\n\t\tminewordHit = new Texture(Gdx.files.internal(uiName + \"/minewordhit.png\"));\n\t\tpushblockword = new Texture(Gdx.files.internal(uiName + \"/pushblockword.png\"));\n\t\tpushblockwordHit = new Texture(Gdx.files.internal(uiName + \"/pushblockwordhit.png\"));\n\t\tbombupword = new Texture(Gdx.files.internal(uiName + \"/bombupword.png\"));\n\t\tbombupwordHit = new Texture(Gdx.files.internal(uiName + \"/bombupwordhit.png\"));\n\t\t\n\t\t// ui\n\t\tsoundonbutton = new Texture(Gdx.files.internal(uiName + \"/soundon.png\"));\n\t\tsoundoffbutton = new Texture(Gdx.files.internal(uiName + \"/soundoff.png\"));\n\t\tcreatebutton = new Texture(Gdx.files.internal(uiName + \"/createbutton.png\"));\n\t\tnocreatebutton = new Texture(Gdx.files.internal(uiName + \"/nocreatebutton.png\"));\n\t\tloaderTexture = new Texture(Gdx.files.internal(uiName + \"/ff2loader.png\"));\n\t\tgameOverTexture = new Texture(Gdx.files.internal(uiName + \"/gameover.png\"));\n\t\tnextFieldTexture = new Texture(Gdx.files.internal(uiName + \"/nextfield.png\"));\n\t\t\n\t\tmenubutton = new Texture(Gdx.files.internal(uiName + \"/menubutton.png\"));\n\t\tnomenubutton = new Texture(Gdx.files.internal(uiName + \"/nomenubutton.png\"));\n\t\tdiffEasyButton = new Texture(Gdx.files.internal(uiName + \"/diffeasybutton.png\"));\n\t\tdiffNormButton = new Texture(Gdx.files.internal(uiName + \"/diffnormbutton.png\"));\n\t\tdiffHardButton = new Texture(Gdx.files.internal(uiName + \"/diffhardbutton.png\"));\n\t\tosdButton = new Texture(Gdx.files.internal(uiName + \"/osdbutton.png\"));\n\t\t\n\t\texoFFfont = new BitmapFont(Gdx.files.internal(uiName + \"/font/exo-ff.fnt\"), true);\n\t\t\n\t\t// creator\n\t\texitbutton = new Texture(Gdx.files.internal(creatorName + \"/exitbutton.png\"));\n\t\tfilebutton = new Texture(Gdx.files.internal(creatorName + \"/filebutton.png\"));\n\t\ttoolsbutton = new Texture(Gdx.files.internal(creatorName + \"/toolsbutton.png\"));\n\t\tnextbutton = new Texture(Gdx.files.internal(creatorName + \"/nextbutton.png\"));\n\t\tprevbutton = new Texture(Gdx.files.internal(creatorName + \"/prevbutton.png\"));\n\t\tdeletebutton = new Texture(Gdx.files.internal(creatorName + \"/deletebutton.png\"));\n\t\tyesbutton = new Texture(Gdx.files.internal(creatorName + \"/yesbutton.png\"));\n\t\tnobutton = new Texture(Gdx.files.internal(creatorName + \"/nobutton.png\"));\n\t\tbuildbutton = new Texture(Gdx.files.internal(creatorName + \"/buildbutton.png\"));\n\t\tprocbutton = new Texture(Gdx.files.internal(creatorName + \"/procbutton.png\"));\n\t\trandbutton = new Texture(Gdx.files.internal(creatorName + \"/randbutton.png\"));\n\t\tgroupsbutton = new Texture(Gdx.files.internal(creatorName + \"/groupsbutton.png\"));\n\t\tarenabutton = new Texture(Gdx.files.internal(creatorName + \"/arenabutton.png\"));\n\t\tfileExitButton = new Texture(Gdx.files.internal(creatorName + \"/fileexitbutton.png\"));\n\t\tfileLoadButton = new Texture(Gdx.files.internal(creatorName + \"/loadbutton.png\"));\n\t\tfileSaveButton = new Texture(Gdx.files.internal(creatorName + \"/savebutton.png\"));\n\t\tfilePlayButton = new Texture(Gdx.files.internal(creatorName + \"/playbutton.png\"));\n\t\tfileNoPlayButton = new Texture(Gdx.files.internal(creatorName + \"/noplaybutton.png\"));\n\t\tfileSendButton = new Texture(Gdx.files.internal(creatorName + \"/sendbutton.png\"));\n\t\ttoasterBack = new Texture(Gdx.files.internal(creatorName + \"/toasterback.png\"));\n\t\twindowBack = new Texture(Gdx.files.internal(creatorName + \"/windowback.png\"));\n\t\temptyCellTexture = new Texture(Gdx.files.internal(creatorName + \"/emptycell.png\"));\n\t\tcreateSplashTexture = new Texture(Gdx.files.internal(creatorName + \"/createsplash.png\"));\n\t\t\n\t\tplayerDef = new Texture(Gdx.files.internal(creatorName + \"/player_def.png\"));\n\t\tgatewayDef = new Texture(Gdx.files.internal(creatorName + \"/gateway_def.png\"));\n\t\tpowerupDef = new Texture(Gdx.files.internal(creatorName + \"/powerup_def.png\"));\n\t\tbombupDef = new Texture(Gdx.files.internal(creatorName + \"/bombup_def.png\"));\n\t\tswitchDef = new Texture(Gdx.files.internal(creatorName + \"/switch_def.png\"));\n\t\tscaffoldDef = new Texture(Gdx.files.internal(creatorName + \"/scaffold_def.png\"));\n\t\tbarrierDef = new Texture(Gdx.files.internal(creatorName + \"/barrier_def.png\"));\n\t\tfenceDef = new Texture(Gdx.files.internal(creatorName + \"/fence_def.png\"));\n\t\tturretDef = new Texture(Gdx.files.internal(creatorName + \"/turret_def.png\"));\n\t\tenemyDef = new Texture(Gdx.files.internal(creatorName + \"/enemy_def.png\"));\n\t\tmineDef = new Texture(Gdx.files.internal(creatorName + \"/mine_def.png\"));\n\t\tpushblockDef = new Texture(Gdx.files.internal(creatorName + \"/pushblock_def.png\"));\n\t\thangerDef = new Texture(Gdx.files.internal(creatorName + \"/hanger_def.png\"));\n\t\t\n\t\tdeleteDef = new Texture(Gdx.files.internal(creatorName + \"/delete_def.png\"));\n\t\tdeleteSel = new Texture(Gdx.files.internal(creatorName + \"/delete_sel.png\"));\n\t\tlockUnlock = new Texture(Gdx.files.internal(creatorName + \"/lock_unlock.png\"));\n\t\tlockLock = new Texture(Gdx.files.internal(creatorName + \"/lock_lock.png\"));\n\t\ttoolSelect = new Texture(Gdx.files.internal(creatorName + \"/toolselect.png\"));\n\t\t\n\t\t// game stuff\n\t\tplayerShipTexture = new Texture(Gdx.files.internal(gameName + \"/player2ship.png\"));\n\t\tplayerShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shippowerup.png\"));\n\t\tplayerShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shipbombup.png\"));\n\t\tenemyShipTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2ship.png\"));\n\t\tenemyShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shippowerup.png\"));\n\t\tenemyShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipbombup.png\"));\n\t\tenemyShipOrderedTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipordered.png\"));\n\t\tplayerBulletTexture = new Texture(Gdx.files.internal(gameName + \"/playerlaser.png\"));\n\t\tplayerCableTexture = new Texture(Gdx.files.internal(gameName + \"/playercable.png\"));\n\t\tenemyBulletTexture = new Texture(Gdx.files.internal(gameName + \"/enemylaser.png\"));\n\t\tenemyCableTexture = new Texture(Gdx.files.internal(gameName + \"/enemycable.png\"));\n\t\tbombCableTexture = new Texture(Gdx.files.internal(gameName + \"/bombcable.png\"));\n\t\tturretTexture = new Texture(Gdx.files.internal(gameName + \"/turret.png\"));\n\t\tturrethitTexture = new Texture(Gdx.files.internal(gameName + \"/turrethit.png\"));\t\n\t\tfenceTexture = new Texture(Gdx.files.internal(gameName + \"/fence.png\"));\n\t\tfencehitTexture = new Texture(Gdx.files.internal(gameName + \"/fencehit.png\"));\n\t\tbarrierTexture = new Texture(Gdx.files.internal(gameName + \"/barrier.png\"));\n\t\tbarrierhitTexture = new Texture(Gdx.files.internal(gameName + \"/barrierhit.png\"));\n\t\tgatewayonTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayon.png\"));\n\t\tgatewayoffTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayoff.png\"));\n\t\tpowerupTexture = new Texture(Gdx.files.internal(gameName + \"/powerup.png\"));\n\t\tbombupTexture = new Texture(Gdx.files.internal(gameName + \"/bombup.png\"));\n\t\tbombupCharge = new Texture(Gdx.files.internal(gameName + \"/bombupcharge.png\"));\n\t\texplosion = new Texture(Gdx.files.internal(gameName + \"/explosion.png\"));\n\t\tdeath = new Texture(Gdx.files.internal(gameName + \"/death.png\"));\n\t\tpowerupCharge = new Texture(Gdx.files.internal(gameName + \"/powerupcharge.png\"));\n\t\tswitchonTexture = new Texture(Gdx.files.internal(gameName + \"/switchon.png\"));\n\t\tswitchoffTexture = new Texture(Gdx.files.internal(gameName + \"/switchoff.png\"));\n\t\tscaffoldTexture = new Texture(Gdx.files.internal(gameName + \"/scaffold.png\"));\n\t\tmineTexture = new Texture(Gdx.files.internal(gameName + \"/mine.png\"));\n\t\tminehitTexture = new Texture(Gdx.files.internal(gameName + \"/minehit.png\"));\n\t\tmineDebrisTexture = new Texture(Gdx.files.internal(gameName + \"/minedebris.png\"));\n\t\tpushblockTexture = new Texture(Gdx.files.internal(gameName + \"/pushblock.png\"));\n\t\thangerTexture = new Texture(Gdx.files.internal(gameName + \"/hanger.png\"));\n\t\thangerhitTexture = new Texture(Gdx.files.internal(gameName + \"/hangerhit.png\"));\n\t\t// have a catch here for the loaded=true?\n\t\tloaded = true;\n\t}", "@Override\n public void notifyMapObservers() {\n for(MapObserver mapObserver : mapObservers){\n // needs all the renderInformation to calculate fogOfWar\n System.out.println(\"player map: \" +playerMap);\n mapObserver.update(this.playerNumber, playerMap.returnRenderInformation(), entities.returnUnitRenderInformation(), entities.returnStructureRenderInformation());\n entities.setMapObserver(mapObserver);\n }\n }" ]
[ "0.6812273", "0.6710824", "0.6481224", "0.62998956", "0.6222025", "0.6184738", "0.6120909", "0.609414", "0.6055452", "0.60329014", "0.60315883", "0.60258776", "0.6014229", "0.6010647", "0.5976097", "0.59544516", "0.5824207", "0.5811691", "0.57194054", "0.5716298", "0.5715772", "0.5708898", "0.5701258", "0.57007587", "0.56813973", "0.5645153", "0.56130147", "0.5576639", "0.5573007", "0.55026823", "0.54935527", "0.5493186", "0.5477653", "0.5474106", "0.54708135", "0.54647756", "0.54521424", "0.54440284", "0.54405004", "0.5424479", "0.54234016", "0.5415457", "0.5412672", "0.53954476", "0.5386351", "0.53850853", "0.53741574", "0.5371855", "0.53700495", "0.5368987", "0.53649354", "0.53644294", "0.5354154", "0.53506047", "0.535049", "0.53473574", "0.53325486", "0.533004", "0.53044254", "0.5291511", "0.5278217", "0.5270323", "0.52683616", "0.5259634", "0.52457744", "0.5233608", "0.5225701", "0.5223933", "0.5223933", "0.52186424", "0.5217395", "0.52034885", "0.51963615", "0.5195099", "0.51933336", "0.51767236", "0.517374", "0.5170827", "0.51672107", "0.51631165", "0.5157992", "0.5154825", "0.5153379", "0.51495534", "0.51419544", "0.51393765", "0.5125336", "0.5119843", "0.5118871", "0.5116912", "0.5113933", "0.510582", "0.51053363", "0.50995886", "0.50961107", "0.5091427", "0.5086406", "0.5085353", "0.50839996", "0.5080886" ]
0.7330055
0
This method was generated by MyBatis Generator. This method corresponds to the database table sm_account
int updateAccountInfo(Account account);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "ShopAccount selectByPrimaryKey(Integer spAccount);", "@Query(\"select a from Account a where a.role = 'ADMIN'\")\n List<Account> getAllAdminsAccount();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "@Query(\"select ad from AccountDetail ad\")\n List<AccountDetail> getAllAccounts();", "@Query(\"select ad from AccountDetail ad where ad.role = 'USER'\")\n List<AccountDetail> getAllAdminAccounts();", "Account selectByPrimaryKey(Long accountid);", "@Query(\"select a from Account a\")\n List<Account> getAllAccounts();", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "@Override\r\n\tpublic Map<String, List<NewAccount>> Accountlist(int UserID) throws SQLException {\n\t\tList<NewAccount> accounts = createAccountDao.Accountlist(UserID);\r\n\t\tSystem.out.println(\"[CreateAccountDaoImp][save] New account save status : \" + accounts);\r\n\t\tList<NewAccount> loanAccounts = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> savingAccount = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> creditAccount = new ArrayList<NewAccount>();\r\n\t\tMap<String, List<NewAccount>> accountsMap = new HashMap<String, List<NewAccount>>();\r\n\r\n\t\t// Account Sorting\r\n\t\tfor (int i = 0; i < accounts.size(); i++) {\r\n\t\t\t\r\n\t\t\tif (accounts.get(i).getAccountType().equals(\"Loans\")) {\r\n\t\t\t\t\r\n\t\t\t\tloanAccounts.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Accounts\")) {\r\n\t\t\t\t\r\n\t\t\t\tsavingAccount.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Cards\")) {\r\n\t\t\t\tcreditAccount.add(accounts.get(i));\r\n\t\t\t}\r\n\t\t\t// credit //accountsMap.put(\"loan\",accounts.get(i));\r\n\t\t}\r\n\t\taccountsMap.put(\"loanAccount\", loanAccounts);\r\n\t\taccountsMap.put(\"savingsAccount\", savingAccount);\r\n\t\taccountsMap.put(\"creditAccount\", creditAccount);\r\n\t\tSet<String> key = accountsMap.keySet();\r\n\t\tIterator<String> iterator = key.iterator();\r\n\t/*\twhile (iterator.hasNext()) {\r\n\t\t\tString accountType = iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"----------------------\" + accountType + \"------------------------\");\r\n\t\t\tSystem.out.println(\"|------------\" + accountsMap.get(accountType) + \"---------------|\");\r\n\t\t\tSystem.out.println(\"-----------------End of first Account Type-------------------\");\r\n\t\t}*/\r\n\r\n\t\treturn accountsMap;\r\n\t}", "public List<Account> getAccountByType() throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<Account> accountList= session.createQuery(\"select account_type, COUNT(account_no) from Account group by account_type\").list();\n return accountList;\n }", "public JavaaccountModel getaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing account from the database*/\n oJavaaccountModel = (JavaaccountModel) hibernateSession.get(JavaaccountModel.class, oJavaaccountModel.getaccountId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "@Override\n\tpublic int addAccount(Account account) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"insert into accounts values(default, ?, ?) returning id\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setString(1, account.getType());\n\t\tprepStmt.setDouble(2, account.getBalance());\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tint id = 0;\n\t\twhile(rs.next()) {\n\t\t\tid = rs.getInt(1);\n\t\t}\n\t\treturn id;\n\t}", "public ResultSet getAllAccounts () throws Exception {\r\n String sql = \"SELECT * FROM `accounts`;\";\r\n return stmt.executeQuery(sql);\r\n }", "public int getC_BankAccount_ID();", "public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }", "@Override\n\tpublic List<Map<String, Object>> getAccountsMapByName(String name) {\n\t\treturn jdbcTemplate.queryForList(\"select * from account where locate(?, name)>0 \", new Object[]{name});\n\t}", "UserAccount getUserAccountById(long id);", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "List<UserBean> findByMUserAccountAndMUserPassword(String mUserAccount,String mUserPassword);", "List<BookAccount> findAllForAccount(long idAccount);", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }", "@Query(\"select a from Account a where a.role = 'Admin'\")\n List<Account> getAllAdmins();", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "java.lang.String getAccount();", "public String getAccountNo();", "List<Account> findAll();", "List<Account> findAll();", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "CusBankAccount selectByPrimaryKey(Integer id);", "FinanceAccount selectByPrimaryKey(Integer id);", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "Account selectByPrimaryKey(String id);", "public void setAccountNo (String AccountNo);", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic void addToUserAccountTable(int accountId,String username) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into user_account values(?, ?)\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setString(1, username);\n\t\t\tprepStmt.setInt(2, accountId);\n\t\t\tprepStmt.executeUpdate();\n\t}", "public MnoAccount getAccountById(String id);", "List<TmpUserPayAccount> selectAll();", "@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}", "@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}", "public ResultSet getAccno(Long ano)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select balance from bank where Accno=\"+ano+\"\");\r\n\treturn rs;\r\n}", "List<Account> findAccountByRole(UserRole role);", "Account getAccount();", "public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}", "@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}", "public UserAccount getUserAccountByLoginId(String loginId);", "Long getAccountId();", "@Select({\n \"select\",\n \"username, password\",\n \"from tb_user\"\n })\n @Results({\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR)\n })\n List<User> selectAll();", "public void AddToAccountInfo();", "public JavaaccountModel putaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Update the existing account of the database*/\n hibernateSession.update(oJavaaccountModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }", "List<Account> getAccountsForCustomerId(int customerId);", "public GenericDao<Account> getAccountDao();", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "SsSocialSecurityAccountVO selectByPrimaryKey(Long socialSecurityAccountId);", "private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tSystem.out.println(\"Table account:\");\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\r\n\t\t\tSystem.out.println(id + \" | \" + owner + \" | \" + number);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}", "@Select({\r\n \"select\",\r\n \"user_id, nickname, sex, age, birthday, regist_date, update_date, disable\",\r\n \"from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"user_id\", property=\"user_id\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"nickname\", property=\"nickname\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"age\", property=\"age\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"birthday\", property=\"birthday\", jdbcType=JdbcType.DATE),\r\n @Result(column=\"regist_date\", property=\"regist_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"update_date\", property=\"update_date\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"disable\", property=\"disable\", jdbcType=JdbcType.INTEGER)\r\n })\r\n UserMaster selectByPrimaryKey(Integer user_id);", "public abstract int getAccountType();", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "@Override\n\tpublic List<Account> searchAccountById(String key) {\n\t\treturn m_managementDao.findByAccountIdContaining(key);\n\t}", "public int getAccountType() {\r\n return accountType;\r\n }", "@MyBatisRepository\npublic interface UserMybatisDao {\n int register(User user);\n\n int updateUser(User user);\n\n String checkPhone(String phone);\n\n int perfectUserInfo(Map params);\n\n User findByToken(String uid);\n\n int checkIsRegisteredByPhone(String phone);\n\n User findByUserId(Long userId);\n}", "List<Account> selectAll();", "Account findByAccountType(String accountType);", "@Override\n public Map<String, BankAccount> getAccounts(Connection connection, String src, String trg, boolean forUpdate) throws SQLException, BankBusinessException {\n String query = \"\";\n String tableName = connectionProperties.getTableName();\n if (forUpdate) {\n query = String.format(\"select * from %s where card_number = ? or card_number = ? FOR UPDATE\", tableName);\n } else {\n query = String.format(\"select * from %s where card_number = ? or card_number = ?\", tableName);\n }\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n preparedStatement.setString(1, src);\n preparedStatement.setString(2, trg);\n log.info(\"Query {}\", query);\n ResultSet set = preparedStatement.executeQuery();\n final Map<String, BankAccount> accountMap = new HashMap<>();\n while (set.next()) {\n BankAccount account = new BankAccount();\n account.setCardNumber(set.getString(\"card_number\"));\n account.setBalance(set.getDouble(\"balance\"));\n accountMap.put(account.getCardNumber(), account);\n }\n return accountMap;\n }", "@GetMapping()\n public List<Account> accounts(){\n List<Account> accounts = new ArrayList<>();\n //repoAccounts.forEach(accounts::add);\n accountRepository.findAll().forEach(accounts::add);\n return accounts;\n }", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@Override\n public void createOnlineAccount(String name, \n String ssn, String id, String psw)\n {\n final String url = \n \"jdbc:mysql://mis-sql.uhcl.edu/<username>?useSSL=false\";\n \n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n \n try\n {\n \n //connect to the databse\n connection = DriverManager.getConnection(url, \n db_id, db_password);\n connection.setAutoCommit(false);\n //crate the statement\n statement = connection.createStatement();\n \n //do a query\n resultSet = statement.executeQuery(\"Select * from onlineAccount \"\n + \"where id = '\" + id + \"' or ssn = '\"\n + ssn + \"'\");\n \n if(resultSet.next())\n {\n //either the ssn is used or the id is used\n System.out.println(\"Account creation failed\");\n }\n else\n {\n //insert a record into onlineAccount\n int r = statement.executeUpdate(\"insert into onlineAccount values\"\n + \"('\" + name + \"', '\" + id + \"', '\" + ssn + \"', '\"\n + psw +\"')\");\n System.out.println(\"Account creation successful!\");\n System.out.println();\n }\n connection.commit();\n connection.setAutoCommit(true);\n \n }\n catch (SQLException e)\n {\n System.out.println(\"Something wrong during the creation process!\");\n e.printStackTrace();\n }\n finally\n {\n //close the database\n try\n {\n resultSet.close();\n statement.close();\n connection.close();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n \n }", "@Override\n public void insertAccount() throws Exception {\n\n }", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "void updateAccount();", "List<AccountModel> findAll();", "List<AccountDetail> findAllByRole(UserRole role);", "BankAccountDTO getCustomerBankAccountDetails(Long slNo);", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "List<Account> findAllByRole(Roles role);", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public ResultSet Reuser1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='approved'\");\r\n\treturn rs;\r\n}", "BankUserInfo selectByPrimaryKey(String bankUserId);", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "BankUserInfo selectByPrimaryKey(String userId);", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "public List<AccountBean> getAllAccounts() {\n\t\tList<AccountBean> accountBeans = null;\n\t\tConnectionSource connectionSource = null;\n\t\tDao<AccountBean, Integer> contactDao = null;\n\n\t\ttry {\n\t\t\tconnectionSource = new AndroidConnectionSource(mDatabase);\n\t\t\tcontactDao = DaoManager.createDao(connectionSource,\n\t\t\t\t\tAccountBean.class);\n\t\t\taccountBeans = contactDao.queryBuilder()\n\t\t\t\t\t.orderBy(IConstants.ORDER_BY_UPDATED_AT, false).query();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountBeans;\n\t}", "@Select({\n \"select\",\n \"id, user_id, role_id\",\n \"from A_USER_ROLE\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"role_id\", property=\"roleId\", jdbcType=JdbcType.INTEGER)\n })\n List<AUserRole> selectAll();", "public Account getAccountByAccountNo(int accNo) {\n Account account = accountRepository.findByAccountNo(accNo);\n return account;\n }", "public Long getAccountID() {\n return accountID;\n }", "public Long getAccountID() {\n return accountID;\n }", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "public List<Account> queryByParam(Account entity) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}" ]
[ "0.6253999", "0.6129804", "0.58676064", "0.58455527", "0.5801033", "0.5792081", "0.5766738", "0.5737847", "0.57350147", "0.57012546", "0.5696075", "0.5678417", "0.56097835", "0.5594857", "0.5586489", "0.55768406", "0.5576571", "0.55730176", "0.5559832", "0.5542734", "0.5541747", "0.55235684", "0.55132043", "0.55082947", "0.5500372", "0.55000216", "0.5495631", "0.5491437", "0.5482637", "0.54752403", "0.54726446", "0.5432763", "0.5425332", "0.5425332", "0.5423309", "0.5416557", "0.54112417", "0.5404136", "0.53902936", "0.53896415", "0.53790146", "0.537512", "0.5369665", "0.5366461", "0.5360708", "0.5350365", "0.5350358", "0.5346638", "0.53448623", "0.5328284", "0.5323395", "0.53211987", "0.53115535", "0.53011984", "0.5288793", "0.5287677", "0.5286901", "0.52850026", "0.52795047", "0.5278126", "0.52726114", "0.5269229", "0.5262363", "0.5257437", "0.5256323", "0.52505755", "0.52312773", "0.5226213", "0.52261215", "0.5222225", "0.52197623", "0.52163416", "0.5215253", "0.52108103", "0.52075523", "0.5186185", "0.51829934", "0.51777714", "0.5176403", "0.5169869", "0.51537794", "0.5146391", "0.513541", "0.51252973", "0.5121919", "0.5121612", "0.51134205", "0.5110164", "0.5109966", "0.5106048", "0.510414", "0.5103341", "0.5101236", "0.5098813", "0.50973535", "0.509374", "0.509374", "0.5093677", "0.5085308", "0.5082848", "0.507984" ]
0.0
-1
Recurse provides a flag by which generation of TCO can be triggered. The compiler enables this flag if it detects a tail call.
public void compile(final MethodVisitor mv) { writeLineInfo(mv); if (isTailRecursive) { // In case of TCO don't push 'this' onto stack, as we don't want to // do a recursive method call! } else { // push 'this' mv.visitVarInsn(ALOAD, 0); } if (args != null) { // push new array mv.visitLdcInsn(args.length); mv.visitTypeInsn(ANEWARRAY, "java/lang/Object"); // mv.visitInsn(DUP); for (int i = 0; i < args.length; i++) { mv.visitInsn(DUP); mv.visitLdcInsn(i); args[i].compile(mv); mv.visitInsn(AASTORE); } } if (isTailRecursive) { // update local variables for TCO re-entry mv.visitVarInsn(ASTORE, 1); // jump to first instruction of the method mv.visitJumpInsn(GOTO, methodEntry); } else { // classic recursive this.apply(args) invocation mv.visitMethodInsn(INVOKEINTERFACE, getName(Function.class), "apply", "([Ljava/lang/Object;)Ljava/lang/Object;"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isRecursive();", "@Test public void mixedSelfRecursive() {\n check(\"declare function local:inc($i) { $i + 1 };\" +\n \"declare function local:f($i) { if($i eq 12345) then $i \" +\n \"else local:f(local:inc($i)) };\" +\n \"local:f(0)\",\n\n 12345,\n\n exists(Util.className(If.class) + '/' + Util.className(StaticFuncCall.class) +\n \"[@tailCall eq 'true']\")\n );\n }", "@Test public void selfRecursive() {\n check(\"declare function local:f($i) { if($i eq 12345) then $i else local:f($i+1) };\" +\n \"local:f(0)\",\n\n 12345,\n\n exists(Util.className(If.class) + '/' + Util.className(StaticFuncCall.class) +\n \"[@tailCall eq 'true']\")\n );\n }", "boolean hasRecursive();", "public boolean hasRecursionDepth() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRecursionDepth() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasRecursionDepth();", "static void recursive(SootMethod method){\r\n \tvisited.put(method.getSignature(),true);\r\n \tIterator <MethodOrMethodContext> target_1=new Targets(cg.edgesOutOf(method));\r\n \r\n \tif(target_1!=null){\r\n \t\twhile(target_1.hasNext())\r\n \t\t{\r\n \t\t\tSootMethod target_2=(SootMethod)target_1.next();\r\n \t\t\tSystem.out.println(\"\\t\"+ target_2.getSignature().toString());\r\n \t\t\tif(!visited.containsKey(target_2.getSignature()))\r\n \t\t\t\trecursive(target_2);\r\n \t\t}\r\n \t}\r\n \t}", "public void inOrderTraverseRecursive();", "int getRecursionDepth();", "@Override\n public boolean canContinueWalking() {\n return true;\n }", "public boolean isRecursive ()\n {\n return m_bRecursive;\n }", "public void setRecursive(boolean recursive)\n { this.recursive=recursive;\n }", "public boolean isRecursive() {\n return mIsRecursive;\n }", "public boolean tail(Node node, int depth);", "protected void incrementDepthLimit() {\n currDepthLimit++;\n }", "public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }", "private static void getClassHierarchyRecurs(Class clazz, boolean flag) {\n Class classFirst = null;\n if (flag) {\n classFirst = clazz;\n }\n if (clazz != null) {\n clazz = clazz.getSuperclass();\n getClassHierarchyRecurs(clazz, false);\n }\n if (clazz != null) {\n System.out.println(clazz.getName());\n System.out.println(\" ^\");\n System.out.println(\" |\");\n }\n if (classFirst != null) {\n System.out.println(classFirst.getName());\n }\n }", "public boolean containsRecrusiveFlag(String[] arguments) {\n final String RECURSIVE_FLAG = \"-R\";\n if (arguments.length > 0) {\n return arguments[0].toUpperCase().equals(RECURSIVE_FLAG);\n }\n return false;\n }", "static void p(){\n System.out.println(\"My recursion example 1\");\n p();\n }", "public boolean hasRecursive() {\n return recursive_ != null;\n }", "public boolean getForkOnTraversal();", "public boolean isRecursive() {\n return this.recursive;\n }", "public void writeObjectRecurse(ZObjectOutputStream out) throws IOException {\n }", "@Trace(excludeFromTransactionTrace = true, leaf = true, rollupMetricName = { \"Dude\", \"Man\" })\n private void fastMethod(boolean call) {\n AgentBridge.getAgent().getTracedMethod().nameTransaction(TransactionNamePriority.FRAMEWORK_HIGH);\n\n // and use the public api to access the current method\n NewRelic.getAgent().getTracedMethod().setMetricName(\n NewRelic.getAgent().getTracedMethod().getMetricName() + \"Dude\");\n\n // since this is a leaf, child calls should be ignored. Verify that with our counts\n if (call) {\n fastMethod(false);\n }\n }", "io.dstore.values.BooleanValue getRecursive();", "public boolean isSetRecursive() {\n return EncodingUtils.testBit(__isset_bitfield, __RECURSIVE_ISSET_ID);\n }", "public boolean isSetRecursive() {\n return EncodingUtils.testBit(__isset_bitfield, __RECURSIVE_ISSET_ID);\n }", "public boolean isSetRecursive() {\n return EncodingUtils.testBit(__isset_bitfield, __RECURSIVE_ISSET_ID);\n }", "public boolean isRecursive() {\n return this.recursive;\n }", "public boolean isRecursive() {\n return this.recursive;\n }", "public boolean isRecursive() {\n return this.recursive;\n }", "public GlobFileSet recurse()\n\t\t{\n\t\tm_recurse = true;\n\t\treturn (this);\n\t\t}", "public boolean hasRecursive() {\n return recursiveBuilder_ != null || recursive_ != null;\n }", "public int depth ();", "static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }", "public int getRecursionDepth() {\n return recursionDepth_;\n }", "private void recurseCircle(Coord c) {\n\t\tfor(Coord c1:currentLevel) {\n\t\t\tif(isTouching(c,c1) && !currentCircle.contains(c1)){\n\t\t\t\tcurrentCircle.add(c1);\n\t\t\t\trecurseCircle(c1);\n\t\t\t}\n\t\t}\n\n\t}", "void calculating(int depth);", "public boolean getRecurseSubgroups() { return recurseSubgroups; }", "@Test public void tightLoopTest() {\n check(\"declare function local:foo() { local:foo() }; local:foo()\",\n\n null,\n\n exists(Util.className(StaticFunc.class) + '/' + Util.className(StaticFuncCall.class) +\n \"[@tailCall eq 'true']\"),\n exists(Util.className(StaticFuncCall.class) + \"[@tailCall eq 'false']\")\n );\n }", "public Builder setRecursionDepth(int value) {\n bitField0_ |= 0x00000008;\n recursionDepth_ = value;\n onChanged();\n return this;\n }", "public List<Long> depthTraverse(Long start){\n return depthTraverseGen(start);\n }", "public int getRecursionDepth() {\n return recursionDepth_;\n }", "int depth();", "int depth();", "boolean getRecursiveNull();", "@Test public void tailCallInTry() {\n check(\n \"declare option db:inlinelimit '-1';\" +\n \"declare option db:tailcalls '0';\" +\n \"declare function local:foo() { try { local:bar() } catch * { 42 } };\" +\n \"declare function local:bar() { error() };\" +\n \"local:foo()\",\n\n 42);\n }", "public void setTail(boolean tail) {\n this.tail = tail;\n }", "public static void main(String[] args) {\n\n TreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n TreeNode node8 = new TreeNode(8);\n node1.right=node3;\n node1.left=node2;\n node2.left=node4;\n node3.right=node5;\n node4.right=node6;\n node6.left=node7;\n node6.right=node8;\n traversalRecursion(node1);\n System.out.println();\n nonRecurInTraverse(node1);\n }", "public io.dstore.values.BooleanValueOrBuilder getRecursiveOrBuilder() {\n return getRecursive();\n }", "int getTemporaryMaxDepth();", "public boolean continueTraversal() \r\n\t{\r\n\treturn true;\r\n\t}", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n public int getDepth() {\n return 680;\n }", "void incrementNewDepth() {\n mNewDepth++;\n }", "@Override\n public int getDepth() {\n return 0;\n }", "boolean hasDepth();", "boolean hasDepth();", "io.dstore.values.BooleanValueOrBuilder getRecursiveOrBuilder();", "public boolean hasSelfLoops();", "@Override \n public boolean shouldTraverse(Traversal traversal, Exp e, Exp parent) {\n return true; \n }", "@Test\n public void testRecursion() throws Exception {\n//TODO: Test goes here... \n/* \ntry { \n Method method = Solution.getClass().getMethod(\"recursion\", ArrayList<Integer>.class, TreeNode.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/\n }", "public boolean isDeep() {\n return isDeep;\n }", "public void setRecursionType(RecursionType recursionType) {\r\n this.recursionType = recursionType;\r\n }", "void setTemporaryMaxDepth(int depth);", "int maxDepth();", "public void inOrderTraverseIterative();", "public free_args setRecursive(boolean recursive) {\n this.recursive = recursive;\n setRecursiveIsSet(true);\n return this;\n }", "boolean terminateTailing();", "public static void main(String[] args) {\n\t\tInteger[] arr = new Integer[]{1,5,10,25};\r\n\t\tInteger N = 100;\r\n\t\t\r\n\t\tInteger[] dp = new Integer[N+1];\r\n\t\tCoinChange obj = new CoinChange();\r\n\t\t\r\n\t\tSystem.out.println(obj.recurse(arr,dp,100));\r\n\t}", "public static void main(String[] args){\n LinkedListDeque<String> lld = new LinkedListDeque<>();\n lld.addFirst(\"Hello\");\n lld.addLast(\"Java\");\n lld.addLast(\"!\");\n\n String s0 = lld.getRecursive(0);\n String s1 = lld.getRecursive(1);\n String s2 = lld.getRecursive(2);\n System.out.println(s0 + s1 + s2);\n System.out.println(lld.getRecursive(556));\n //lld.getRecursive(2);\n }", "@Override\n public boolean shouldTraverse(Traversal t, Exp e, Exp parent) {\n return true;\n }", "@Override\n\tpublic void addRecurso(Recurso recurso) {\n\t\t\n\t}", "private boolean helperDFS(Node current){\n\n if(expandedNode.size() == 999){\n //limit has been reached. jump out of recursion.\n expandedNode.add(current);\n System.out.println(\"No solution found.\");\n printExpanded(expandedNode);\n System.exit(0);\n return false;\n }\n\n boolean b = cycleCheck(current,expandedNode);\n\n if(!b){\n expandedNode.add(current);\n }else{\n return false;\n }\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal reached.\n //expandedNode.add(current);\n solutionPath(current);\n printExpanded(expandedNode);\n System.exit(0);\n }\n\n //Now make the children.\n\n if(!forbidden.contains(current.getDigit().getDigitString())){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 1){\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n }\n return false;\n }", "public boolean stopTraversal()\n\t{\n\t\treturn hasCorrelatedCRs;\n\t}", "private static void dfsRecursive(Node node) {\n\t\t//if the node state isn't undiscovered it has already been accounted for\n\t\tif(node == null || node.state != Node.State.UNDISCOVERED) {\n\t\t\treturn;\n\t\t}\n\t\tnode.state = Node.State.DISCOVERED;\n\n\t\t//process node\n\t\tSystem.out.print(node.name + \" -> \");\n\t\t\n\t\tfor(Edge e : node.edges) {\n\t\t\tdfsRecursive(e.getNeighbor(node));\n\t\t}\n\t\t\t\n\t\t//finished with this node\n\t\tnode.state = Node.State.COMPLETE;\n\t}", "@Override\n public synchronized void handleThreadRecursionHasCompleted() {\n //ensure that all branches have been explored before writing output\n this.numberOfBranchesCompleted++;\n RecursionStore.updateBranchesComplete(this.numberOfBranchesCompleted);\n if (this.numberOfBranchesCompleted != this._totalNumberOfStateTreeBranches) {\n return;\n }\n // write output file\n generateOutputAndClose();\n }", "boolean findCycleUtil(int i, boolean[] visited, boolean[] recStack, LinkedList<Integer>[] g) {\n if (recStack[i]) {\n return true;\n }\n if (visited[i]) {\n return false;\n }\n visited[i] = true;\n recStack[i] = true;\n for (int c : g[i]) {\n if (findCycleUtil(c, visited, recStack, g)) {\n return true;\n }\n }\n recStack[i] = false;\n return false;\n }", "@Override\r\npublic void Display(int depth) {\n\tSystem.out.println(\"-\"+depth);\r\n children.forEach(com->com.Display(depth+2));\r\n }", "private void recurseThroughObject(Object obj, List<String> path, String currentField) {\n\n MethodAccess methodAccess = MethodAccess.get(obj.getClass());\n\n for (LogCache logCache : CacheableAccessors.getMethodIndexes(obj.getClass(), methodAccess)) {\n\n if (canLogMethod(logCache, methodAccess)) {\n\n List<String> recursivePath = Lists.newArrayList(path);\n\n Object logResult;\n\n try {\n logResult = methodAccess.invoke(obj, logCache.getIndex());\n }\n catch(IllegalAccessError er) {\n logResult = \"<Illegal Method Access Error>\";\n }\n catch (Throwable t) {\n logResult = configs.getExceptionTranslator().translate(t);\n }\n\n try {\n buildMessage(getLogMessage(logCache, logResult), recursivePath,\n formatMethod(recursivePath, methodAccess.getMethodNames()[logCache.getIndex()]));\n }\n catch (Throwable t) {\n // result is ignored, but can be captured for debugging since we've already tried to catch\n // and build\n configs.getExceptionTranslator().translate(t);\n }\n }\n }\n\n FieldAccess fieldAccess = FieldAccess.get(obj.getClass());\n\n for (LogCache logCache : CacheableAccessors.getFieldIndexes(obj.getClass(), fieldAccess)) {\n String fieldName = \"???\";\n\n try {\n if (Scope.SKIP == logCache.getLogScope()) {\n continue;\n }\n\n fieldName = fieldAccess.getFieldNames()[logCache.getIndex()];\n\n List<String> recursivePath = Lists.newArrayList(path);\n recursivePath.add(fieldName);\n\n if (!configs.getExcludesPrefixes().stream().anyMatch(fieldName::startsWith)) {\n buildMessage(getLogMessage(logCache, fieldAccess.get(obj, logCache.getIndex())), recursivePath,\n formatField(currentField, fieldName));\n }\n }\n catch (Throwable t) {\n String fieldError = configs.getExceptionTranslator().translate(t);\n\n buildMessage(getLogMessage(logCache, fieldError), path,\n formatField(currentField, fieldName));\n }\n }\n\n }", "public io.dstore.values.BooleanValue getRecursive() {\n return recursive_ == null ? io.dstore.values.BooleanValue.getDefaultInstance() : recursive_;\n }", "@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}", "default int nestingDepth() {\n return 0;\n }", "public final void quietlyCompleteRoot()\n/* */ {\n/* 687 */ Object localObject = this;\n/* 688 */ for (;;) { CountedCompleter localCountedCompleter; if ((localCountedCompleter = ((CountedCompleter)localObject).completer) == null) {\n/* 689 */ ((CountedCompleter)localObject).quietlyComplete();\n/* 690 */ return;\n/* */ }\n/* 692 */ localObject = localCountedCompleter;\n/* */ }\n/* */ }", "protected void scanNodesForRecursion(Cell cell, HashSet<Cell> markCellForNodes, NodeProto [] nil, int start, int end)\n \t{\n \t\tfor(int j=start; j<end; j++)\n \t\t{\n \t\t\tNodeProto np = nil[j];\n \t\t\tif (np instanceof PrimitiveNode) continue;\n \t\t\tCell otherCell = (Cell)np;\n \t\t\tif (otherCell == null) continue;\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (markCellForNodes.contains(otherCell)) continue;\n \n \t\t\tLibraryFiles reader = this;\n \t\t\tif (otherCell.getLibrary() != cell.getLibrary())\n \t\t\t\treader = getReaderForLib(otherCell.getLibrary());\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (reader != null)\n \t\t\t\treader.realizeCellsRecursively(otherCell, markCellForNodes, null, 0);\n \t\t}\n \t\tmarkCellForNodes.add(cell);\n \t}", "public void increaseDepth() {\n currentDepth++;\n }", "public void setForkOnTraversal(boolean forkOnTraversal);", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void tailDown () {\r\n\t\ttail_mode = true;\r\n\t\tsuper.tailDown();\r\n\t}", "public static void print_recursion(int a){\r\n if(a<2){\r\n array.add(a);\r\n for(int i=1;i<=array.size();i++){\r\n System.out.print(array.get(array.size()-i));\r\n }\r\n System.out.println(\"\");\r\n }\r\n else{\r\n array.add(a%2);\r\n print_recursion(a/2);\r\n }\r\n }", "@Test public void dynFuncCall() {\n check(\"let $sum :=\" +\n \" function($seq) {\" +\n \" let $go :=\" +\n \" function($seq, $acc, $go) {\" +\n \" if(empty($seq)) then $acc\" +\n \" else $go(tail($seq), $acc + head($seq), $go)\" +\n \" }\" +\n \" return $go($seq, 0, $go)\" +\n \" }\" +\n \"return $sum(1 to 100000)\",\n\n 5000050000L,\n\n empty(Util.className(FuncItem.class) + \"//\" + Util.className(DynFuncCall.class) +\n \"[@tailCall eq 'false']\")\n );\n }", "public abstract boolean isNextVisited();", "public int getDepth();", "public loadMetadata_args setRecursive(boolean recursive) {\n this.recursive = recursive;\n setRecursiveIsSet(true);\n return this;\n }", "void walk() {\n\t\t\n\t}", "@Override\n public JsonParser traverse(ObjectReadContext readCtxt) {\n return new TreeTraversingParser(this, readCtxt);\n }", "private void traverse(Node<T> node) {\r\n\t\tif (null == node.next) {\r\n\t\t\tSystem.out.println(String.valueOf(node.data) + \"--->END\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tSystem.out.print(String.valueOf(node.data) + \"--->\");\r\n\t\t\ttraverse(node.next);\r\n\t\t}\r\n\t}", "public void RecursiveExpansion() throws TreeTooBigException {\r\n int transIndex; //Index to count transitions\r\n int[] newMarkup; //markup used to create new node\r\n boolean aTransitionIsEnabled = false; //To check for deadlock\r\n //Attribute used for assessing whether a node has occured before\r\n boolean repeatedNode = false; \r\n \r\n boolean allOmegas = false;\r\n \r\n boolean[] enabledTransitions = \r\n tree.dataLayer.getTransitionEnabledStatusArray(markup);\r\n\r\n //For each transition\r\n for (int i = 0; i < enabledTransitions.length; i++) {\r\n if (enabledTransitions[i] == true) {\r\n //Set transArray of to true for this index\r\n transArray[i] = true;\r\n \r\n //System.out.println(\"\\n Transition \" + i + \" Enabled\" );\r\n aTransitionIsEnabled = true;\r\n \r\n //print (\"\\n Old Markup is :\", markup);//debug\r\n \r\n //Fire transition to produce new markup vector\r\n newMarkup = fire(i);\r\n \r\n //print (\"\\n New Markup is :\", newMarkup);//debug\r\n \r\n //Check for safeness. If any of places have > 1 token set variable.\r\n for (int j = 0; j < newMarkup.length; j++) {\r\n if (newMarkup[j] > 1 || newMarkup[j] == -1) {\r\n tree.moreThanOneToken = true;\r\n break;\r\n }\r\n } \r\n \r\n //Create a new node using the new markup vector and attach it to\r\n //the current node as a child.\r\n children[i] = \r\n new myNode(newMarkup, this, tree, depth + 1);\r\n \r\n /* Now need to (a) check if any omegas (represented by -1) need to \r\n * be inserted in the markup vector of the new node, and (b) if the \r\n * resulting markup vector has appeared anywhere else in the tree. \r\n * We must do (a) before (b) as we need to know if the new node \r\n * contains any omegas to be able to compare it with existing nodes. \r\n */ \r\n allOmegas = children[i].InsertOmegas();\r\n \r\n //check if the resulting markup vector has occured anywhere else in the tree\r\n repeatedNode = (tree.root).FindMarkup(children[i]);\r\n \r\n if (tree.nodeCount >= Pipe.MAX_NODES && !tree.tooBig) {\r\n tree.tooBig = true;\r\n throw new TreeTooBigException();\r\n }\r\n \r\n if (!repeatedNode && !allOmegas) {\r\n children[i].RecursiveExpansion();\r\n }\r\n }\r\n }\r\n \r\n if (!aTransitionIsEnabled) {\r\n System.err.println(\"No transition enabled\");\r\n if (!tree.noEnabledTransitions || tree.pathToDeadlock.length < depth-1) {\r\n RecordDeadlockPath();\r\n tree.noEnabledTransitions = true;\r\n } else {\r\n System.err.println(\"Deadlocked node found, but path is not shorter\"\r\n + \" than current path.\");\r\n }\r\n } else {\r\n //System.out.println(\"Transitions enabled.\");\r\n }\r\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}" ]
[ "0.6035966", "0.58607334", "0.5828558", "0.5820106", "0.5701729", "0.56879216", "0.56704414", "0.5551337", "0.5523319", "0.54992443", "0.53487873", "0.53463525", "0.5216182", "0.52138585", "0.51614463", "0.5108183", "0.5092928", "0.5092687", "0.50208515", "0.5002498", "0.49995136", "0.49987504", "0.49757078", "0.4948717", "0.4937409", "0.49363723", "0.49199983", "0.49199983", "0.49199983", "0.4880892", "0.4880892", "0.4880892", "0.4880032", "0.48349118", "0.4804387", "0.47918692", "0.47791305", "0.47738132", "0.47432053", "0.47294658", "0.47107834", "0.46939588", "0.466873", "0.46657446", "0.46244276", "0.46244276", "0.4624295", "0.46141347", "0.4611943", "0.45984936", "0.45978063", "0.4595485", "0.4586579", "0.45707983", "0.45707092", "0.45694742", "0.45659927", "0.45649064", "0.45649064", "0.45290452", "0.45280194", "0.45180562", "0.45168662", "0.45049062", "0.45004305", "0.44958752", "0.44946665", "0.44898763", "0.4480454", "0.44566193", "0.44462904", "0.44431853", "0.4439587", "0.44294712", "0.44288865", "0.44210494", "0.4414351", "0.441407", "0.44126183", "0.44052708", "0.44043887", "0.44002837", "0.43998057", "0.43956208", "0.43952343", "0.43906116", "0.4387434", "0.43819618", "0.43752", "0.43705463", "0.436737", "0.43625835", "0.43578333", "0.43527535", "0.43487513", "0.43481398", "0.4347714", "0.43375155", "0.43301773", "0.43299958" ]
0.471161
40
add EAX, EBX, ECX Return CPUID this function full name INPUT: Reserved array OUTPUT: String, CPUID function full name
@Override public String getCommandLongName(long[] dummy ) { return F_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getUID();", "String generateUID();", "void mo8712a(C9714a c9714a);", "long mo1685a(C2369e c2369e);", "void mo86a(C0163d c0163d);", "public abstract java.lang.String getIdpc();", "void mo5289a(C5102c c5102c);", "public abstract void mo53562a(C18796a c18796a);", "C2451d mo3408a(C2457e c2457e);", "static void add_with_reg(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\t/*\n\t\t * This will be valid only when sign arithematic is being performed\n\t\t * if(S)\n\t\t\tsum*=-1;\n\t\t */\n\t\tsum+=(hexa_to_deci(registers.get(passed.charAt(4))));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "void mo5290b(C5102c c5102c);", "C5727e mo33224a();", "long getToUid();", "String getUniqueID();", "public CWE getRxa25_AdministeredBarcodeIdentifier() { \r\n\t\tCWE retVal = this.getTypedField(25, 0);\r\n\t\treturn retVal;\r\n }", "String getEACCode();", "String getCCSID();", "private void insertUidDbFunction()\r\n {\r\n String uidFunction = \r\n \"CREATE OR REPLACE FUNCTION uid() RETURNS text AS $$ SELECT substring('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \" + \r\n \"FROM (random()*51)::int +1 for 1) || array_to_string(ARRAY(SELECT substring('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' \" + \r\n \" FROM (random()*61)::int + 1 FOR 1) FROM generate_series(1,10)), '') $$ LANGUAGE sql;\";\r\n executeSql( uidFunction );\r\n }", "@Override public String[][] getCommandText1( long[] array )\n {\n // Scan binary dump, find entry for this function\n int x = CPUID.findFunction( array, 0x80000007 );\n // Return \"n/a\" if this function entry not found\n if (x<0) { return NO_RESULT; }\n // Build and pre-blank result text array\n String[][] result = new String[NY][NX]; // Text formatted by control data\n for (int i=0; i<NY; i++) // Cycle for rows \n { \n for(int j=0; j<NX; j++) // Cycle for columns\n { \n result[i][j]=\"\"; \n } \n }\n // Parameters from CPUID dump, EDX register\n int p = 0; // pointer for sequentally store strings in the table\n int y = (int) ( array[x+3] >>> 32 ); // y = EDX\n CPUID.decodeBitmap( \"EDX\", DECODER_EDX, y , result , p );\n // Parameters from CPUID dump, EAX register\n p=NY1;\n y = (int) ( array[x+2] & (((long)((long)(-1)>>>32))) ); // y = EAX\n CPUID.decodeBitfields ( \"EAX\" , DECODER_EAX , y , result , p );\n // Parameters from CPUID dump, EBX register\n p=NY1+NY2;\n y = (int) ( array[x+2] >>> 32 ); // y = EBX\n CPUID.decodeBitmap ( \"EBX\" , DECODER_EBX , y , result , p );\n // Parameters from CPUID dump, ECX register\n p=NY1+NY2+NY3;\n y = (int) ( array[x+3] & (((long)((long)(-1)>>>32))) ); // y = ECX\n CPUID.decodeBitfields ( \"ECX\" , DECODER_ECX , y , result , p );\n // Result is ready, all strings filled\n return result;\n }", "java.lang.String getToUid();", "String getATCUD();", "public synchronized String generateCallIdentifier(String address) {\n String date = new Long(System.currentTimeMillis() + callIDCounter++ + rand.nextLong()).toString();\n byte cid[] = digester.digest(date.getBytes());\n String cidString = Utils.toHexString(cid);\n return cidString + \"@\" + address;\n }", "public String getX2AddCompStr() {\n this.polyAddSolve();\n return this.x2compadd;\n }", "protected int addCE32(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.addCE32(int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.addCE32(int):int\");\n }", "String componentSignature();", "String mo38972c();", "public abstract long mo20901UQ();", "static void perform_add(String passed){\n\t\tint type = type_of_add(passed);\n\t\tif(type==1)\n\t\t\tadd_with_reg(passed);\n\t\telse if(type==2)\n\t\t\tadd_with_mem(passed);\n\t}", "static void add_with_mem(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\t/*\n\t\t * This will be valid only when sign arithematic is being performed\n\t\t * if(S)\n\t\t\tsum*=-1;\n\t\t */\n\t\tsum+=hexa_to_deci(memory.get(memory_address_hl()));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "String mo42332a();", "@Override\n public <A> Function1<A, Object> compose$mcID$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "long getUID() throws UidGenerateException;", "public int getUser1X_ID();", "public abstract java.lang.String getIdpcTV();", "public gov.ucore.ucore._2_0.StringType addNewSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().add_element_user(SYSTEMIDENTIFIER$0);\n return target;\n }\n }", "long getUid();", "long getUid();", "String mo10312id();", "C15430g mo56154a();", "private native void nRegister();", "public abstract long mo24410c();", "protected int addCE(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.addCE(long):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.addCE(long):int\");\n }", "C4865b mo6249a();", "int getUid();", "int getUid();", "public static native int AddUnique(long lpjFbxArrayVector2, long pElement);", "String toString(String functionName);", "org.apache.xmlbeans.XmlUnsignedInt xgetAlgIdExt();", "String mo20731c();", "public String getX1AddCompStr() {\n this.polyAddSolve();\n return this.x1compadd;\n }", "String getUid();", "Integer getCCPID();", "public void getUID(int seqid, String prefix, String uid);", "C1435c mo1754a(C1433a c1433a, C1434b c1434b);", "public CFun add(CParam... param) throws CDuplicateException;", "public int identifier();", "public CWE getAdministeredBarcodeIdentifier() { \r\n\t\tCWE retVal = this.getTypedField(25, 0);\r\n\t\treturn retVal;\r\n }", "void mo18323a(C7253c cVar);", "void mo4873a(C4718l c4718l);", "private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }", "public abstract long mo24412e();", "C45321i mo90380a();", "public void getUID(int seqid, String prefix);", "public static String m65001a(Context context) {\n String a = C19791b.m65374a(context);\n if (a != null) {\n return a;\n }\n String uuid = UUID.randomUUID().toString();\n C19791b.m65375a(context, uuid);\n return uuid;\n }", "java.lang.String getUid();", "java.lang.String getUid();", "private String generateUID()\n {\n String uid;\n int nbAccounts = this.getNumberOfAccounts();\n String host = this.registration.getHost();\n int nbAccountsForHost = this.getNbAccountForHost(host);\n \n if (nbAccounts == 0 || (this.isModification() && nbAccounts == 1) ||\n nbAccountsForHost == 0 || (this.isModification() && nbAccountsForHost == 1))\n {\n // We create the first account or we edit the onlyone\n // Or we create the first account for this server or edit the onlyone\n uid = host;\n }\n else\n {\n uid = host + \":\" + this.registration.getPort();\n }\n \n return uid;\n }", "private String generateNewCallId()\n {\n\n\t\t// Generate the variant number\n\t\tint variable = NumberUtils.getIntRandom();\n\n\t\t// Convert to hex value\n\t\tString hex = NumberUtils.toHexValue(variable);\n\n\t\t// Compose the final call id\n\t\treturn \"{2B073406-65D8-A7B2-5B13-B287\" + hex + \"}\";\n\t}", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "void addCE32(java.lang.CharSequence r1, java.lang.CharSequence r2, int r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ea in method: android.icu.impl.coll.CollationDataBuilder.addCE32(java.lang.CharSequence, java.lang.CharSequence, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.addCE32(java.lang.CharSequence, java.lang.CharSequence, int):void\");\n }", "private static native void registerIdsN();", "public XmuCoreFunctionCallElements getXmuCoreFunctionCallAccess() {\r\n\t\treturn pXmuCoreFunctionCall;\r\n\t}", "void genAddressCode(FuncDecl curFunc) {\n\tif (index == null) {\n\t Code.genInstr(\"\", \"leal\", declRef.assemblerName+\",%eax\", varName);\n\t} else {\n\t index.genCode(curFunc);\n\t if (declRef.type instanceof ArrayType) {\n\t\tCode.genInstr(\"\", \"leal\", declRef.assemblerName+\",%edx\", \n\t\t\t varName+\"[...]\");\n\t } else {\n\t\tCode.genInstr(\"\", \"movl\", declRef.assemblerName+\",%edx\", \n\t\t\t varName+\"[...]\");\n\t }\n\t Code.genInstr(\"\", \"leal\", \"(%edx,%eax,4),%eax\", \"\");\n\t}\n }", "String[] mo1153c();", "private String getFunc(Integer num){\n\t\tswitch(num){\n\t\tcase 0:\n\t\t\treturn \"+\";\n\t\tcase 1:\n\t\t\treturn \"-\";\n\t\tcase 2:\n\t\t\treturn \"*\";\n\t\tcase 3:\n\t\t\treturn \"/\";\n\t\tcase 4:\n\t\t\treturn \"C\";\n\t\t}\n\t\treturn null;\n\t}", "String getTokenConversionIdentifier(String prependE);", "public static synchronized String getUID() throws UnknownHostException, SocketException {\r\n \r\n // Initialized MAC address if necessary.\r\n if (!initialized) {\r\n initialized = true;\r\n macAddress = UMROMACAddress.getMACAddress();\r\n macAddress = Math.abs(macAddress);\r\n }\r\n \r\n // Use standard class to get unique values.\r\n String guidText = new UID().toString();\r\n \r\n StringTokenizer st = new StringTokenizer(guidText, \":\");\r\n \r\n int unique = Math.abs(Integer.valueOf(st.nextToken(), 16).intValue());\r\n long time = Math.abs(Long.valueOf(st.nextToken(), 16).longValue());\r\n // why add 0x8000 ? because usually starts at -8000, which wastes 4 digits\r\n int count = Math\r\n .abs(Short.valueOf(st.nextToken(), 16).shortValue() + 0x8000);\r\n \r\n // concatenate values to make it into a DICOM GUID.\r\n String guid = UMRO_ROOT_GUID + macAddress + \".\" + unique + \".\" + time\r\n + \".\" + count;\r\n \r\n return guid;\r\n }", "public CWE getRxa5_AdministeredCode() { \r\n\t\tCWE retVal = this.getTypedField(5, 0);\r\n\t\treturn retVal;\r\n }", "void agregar(int c, int x);", "public String getUniqueID();", "static public Object[] getFuncionesName() {\n if (funcionesName == null) {\n addFuncionesName();\n }\n return funcionesName.toArray();\n\n }", "public static String getMicroTimeId() {\n Long time = System.nanoTime();\n String timeValue = time.toString();\n String[] splitedValue = timeValue.split(\"\");\n int i = 2 + 2 + 2;\n String m1 = \"0\" + splitedValue[i];\n String m2 = \"0\" + splitedValue[++i];\n String m3 = \"0\" + splitedValue[++i];\n String m4 = \"0\" + splitedValue[++i];\n String m5 = \"0\" + splitedValue[++i];\n String m6 = \"0\" + splitedValue[++i];\n String m7 = \"0\" + splitedValue[++i];\n return alphanum[Integer.parseInt(m1)]\n .concat(alphanum[Integer.parseInt(m2)])\n .concat(alphanum[Integer.parseInt(m3)])\n .concat(alphanum[Integer.parseInt(m4)])\n .concat(alphanum[Integer.parseInt(m5)])\n .concat(alphanum[Integer.parseInt(m6)])\n .concat(alphanum[Integer.parseInt(m7)]);\n }", "Info mo7564ix();", "public byte[] getExtensionValue(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getExtensionValue(java.lang.String):byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getExtensionValue(java.lang.String):byte[]\");\n }", "@Override\r\n public void visit(Add n, functionStruct fStruct) {\r\n String resultIntObject = n.f0.f0.toString();\r\n addId(resultIntObject, fStruct.functionName, fStruct.lineNumber);\r\n\r\n String firstIntObject = n.f2.f0.toString();\r\n addId(firstIntObject, fStruct.functionName, fStruct.lineNumber);\r\n\r\n String secondIntObject = n.f4.f0.toString();\r\n addId(secondIntObject, fStruct.functionName, fStruct.lineNumber); \r\n \r\n }", "public long getRegisterId();", "static int type_of_add(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}", "public String getUniqueID(Context ctx)\n {\n String m_szDevIDShort = \"\";\n String m_szAndroidID = \"\";\n String m_szWLANMAC = \"\";\n\n try {\n m_szDevIDShort = \"35\" + // we make this look like a valid IMEI\n Build.BOARD.length() % 10 + Build.BRAND.length() % 10 +\n Build.CPU_ABI.length() % 10 + Build.DEVICE.length() % 10 +\n Build.DISPLAY.length() % 10 + Build.HOST.length() % 10 +\n Build.ID.length() % 10 + Build.MANUFACTURER.length() % 10 +\n Build.MODEL.length() % 10 + Build.PRODUCT.length() % 10 +\n Build.TAGS.length() % 10 + Build.TYPE.length() % 10 +\n Build.USER.length() % 10;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n m_szAndroidID = Settings.Secure.getString(ctx.getContentResolver(), Settings.Secure.ANDROID_ID);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n WifiManager wm = (WifiManager) ctx.getSystemService(Context.WIFI_SERVICE);\n m_szWLANMAC = wm.getConnectionInfo().getMacAddress();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n String m_szLongID = m_szWLANMAC + m_szDevIDShort + m_szAndroidID;\n\n MessageDigest m = null;\n try {\n m = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n m.update(m_szLongID.getBytes(), 0, m_szLongID.length());\n byte p_md5Data[] = m.digest();\n\n //noinspection RedundantStringConstructorCall\n String m_szUniqueID = new String();\n for (int i = 0; i < p_md5Data.length; i++) {\n int b = (0xFF & p_md5Data[i]);\n // if it is a single digit, make sure it have 0 in front (proper\n // padding)\n if (b <= 0xF)\n m_szUniqueID += \"0\";\n // add number to string\n m_szUniqueID += Integer.toHexString(b);\n }\n\n return m_szUniqueID;\n }", "public int getUID() {\n return 0;\n }", "private MatchFunctRegistry<Function> registerCustomFunctions(\n\t\t\tfinal BundleContext context) {\n\t\tcustomFunctionServiceReg = context.registerService(\n\t\t\t\tMatchFunctRegistry.class, MatchFunctRegistryImpl.getInstance(),\n\t\t\t\tnull);\n\n\t\tMatchFunctRegistryImpl.getInstance().register(\n\t\t\t\tMatchFunctRegistryImpl.getInstance().buildFunctionURI(\n\t\t\t\t\t\t\"generateLSA-id\"), GenLSAidFunctImpl.class);\n\n\t\tif (customFunctionServiceReg != null) {\n\t\t\tlog(\"Match Functions Customization REGISTERED.\");\n\t\t}\n\n\t\treturn MatchFunctRegistryImpl.getInstance();\n\t}", "C12000e mo41091f(String str);", "long getAlgIdExt();", "abstract String mo1748c();", "String getInstanceID();", "public abstract int mo9732a();", "void mo4829a(C0158fu fuVar);", "private String getMultiCoreFunctions() throws IOException {\n //If dollar sign is at the end of a line, it means interpret this line as hex. Don't try to convert it.\n //Syntax: wake(a,b) - wake core a (mod num cores) at pc b\n BufferedReader reader = new BufferedReader(new FileReader(\"standardlib.txt\"));\n StringBuilder newProgram = new StringBuilder();\n String nxt;\n String lib = \"\";\n while ((nxt = reader.readLine()) != null) {\n if (nxt.strip().length() > 0 && nxt.strip().charAt(0) == '~') {\n int stackNum = Integer.parseInt(nxt.strip().substring(1));\n int startOfStack = nextDataSegmentAddress + stackNum * Constants.stackSize;\n int upper = startOfStack / 256;\n int lower = startOfStack % 256;\n if (upper == 0 && lower < 128 || upper == 255 && lower >= 128) {\n nxt = \"\\t$8\" + Integer.toHexString(lower / 16) + Integer.toHexString(lower % 16) + \"5\";\n } else {\n nxt = \"\\t$8\" + Integer.toHexString(lower / 16) + Integer.toHexString(lower % 16) + \"5\\n\";\n nxt = nxt + \"\\t$9\" + Integer.toHexString(upper / 16) + Integer.toHexString(upper % 16) + \"5\";\n }\n }\n lib = lib + (nxt + \"\\n\");\n }\n return lib;\n }", "public static void main(String ...strings ){\n \tSystem.out.println(getGUID(\"COM\",\"454273\",\"7650023554\"));\n \tSystem.out.println(getGUID(\"COM\",\"454274\",\"7650023555\"));\n \t\n \t\n }", "public static String getManufacturerID(byte[] edid) {\n // Bytes 8-9 are manufacturer ID in 3 5-bit characters.\n String temp = String\n .format(\"%8s%8s\", Integer.toBinaryString(edid[8] & 0xFF), Integer.toBinaryString(edid[9] & 0xFF))\n .replace(Symbol.C_SPACE, '0');\n Logger.debug(\"Manufacurer ID: {}\", temp);\n return String.format(\"%s%s%s\", (char) (64 + Integer.parseInt(temp.substring(1, 6), 2)),\n (char) (64 + Integer.parseInt(temp.substring(7, 11), 2)),\n (char) (64 + Integer.parseInt(temp.substring(12, Normal._16), 2))).replace(Symbol.AT, Normal.EMPTY);\n }", "C12017a mo41088c();", "String mo131984a();" ]
[ "0.5399462", "0.5316068", "0.5208489", "0.5182574", "0.5153381", "0.5041225", "0.5013857", "0.49059728", "0.4850916", "0.48431048", "0.48408398", "0.48399642", "0.48271945", "0.48247528", "0.48212755", "0.48010013", "0.4795567", "0.47786012", "0.47733405", "0.47685298", "0.4767109", "0.475305", "0.47376007", "0.47285822", "0.47226542", "0.4717409", "0.47121805", "0.4702989", "0.46912345", "0.46712014", "0.46641007", "0.4663108", "0.46596697", "0.46546584", "0.46519554", "0.4641918", "0.4641918", "0.46353203", "0.46272781", "0.4624579", "0.46229154", "0.4619715", "0.46180692", "0.46110865", "0.46110865", "0.46072537", "0.45931607", "0.45891258", "0.45890024", "0.4580273", "0.4576835", "0.45577112", "0.455112", "0.45437288", "0.45384547", "0.45305875", "0.45304006", "0.45301858", "0.45292747", "0.45272064", "0.45223942", "0.4516227", "0.45123497", "0.4511345", "0.45105714", "0.45105714", "0.45104447", "0.4506972", "0.45006794", "0.44983003", "0.44866812", "0.44805312", "0.44750968", "0.4468664", "0.44681603", "0.4466658", "0.44635776", "0.44619024", "0.44618744", "0.44596496", "0.44596404", "0.44481996", "0.4447236", "0.4442689", "0.4439311", "0.4437118", "0.4435516", "0.44343084", "0.44338557", "0.44329163", "0.44324917", "0.44320887", "0.44304955", "0.44292772", "0.44280505", "0.44235218", "0.4421533", "0.4405987", "0.44023812", "0.44007036", "0.4394521" ]
0.0
-1
Return CPUID this function parameters table up string INPUT: Reserved array OUTPUT: String, CPUID function details table up string
@Override public String[] getCommandUp1( long[] dummy ) { return COMMAND_UP_1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public String[][] getCommandText1( long[] array )\n {\n // Scan binary dump, find entry for this function\n int x = CPUID.findFunction( array, 0x80000007 );\n // Return \"n/a\" if this function entry not found\n if (x<0) { return NO_RESULT; }\n // Build and pre-blank result text array\n String[][] result = new String[NY][NX]; // Text formatted by control data\n for (int i=0; i<NY; i++) // Cycle for rows \n { \n for(int j=0; j<NX; j++) // Cycle for columns\n { \n result[i][j]=\"\"; \n } \n }\n // Parameters from CPUID dump, EDX register\n int p = 0; // pointer for sequentally store strings in the table\n int y = (int) ( array[x+3] >>> 32 ); // y = EDX\n CPUID.decodeBitmap( \"EDX\", DECODER_EDX, y , result , p );\n // Parameters from CPUID dump, EAX register\n p=NY1;\n y = (int) ( array[x+2] & (((long)((long)(-1)>>>32))) ); // y = EAX\n CPUID.decodeBitfields ( \"EAX\" , DECODER_EAX , y , result , p );\n // Parameters from CPUID dump, EBX register\n p=NY1+NY2;\n y = (int) ( array[x+2] >>> 32 ); // y = EBX\n CPUID.decodeBitmap ( \"EBX\" , DECODER_EBX , y , result , p );\n // Parameters from CPUID dump, ECX register\n p=NY1+NY2+NY3;\n y = (int) ( array[x+3] & (((long)((long)(-1)>>>32))) ); // y = ECX\n CPUID.decodeBitfields ( \"ECX\" , DECODER_ECX , y , result , p );\n // Result is ready, all strings filled\n return result;\n }", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(50547);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Tid:\").append(this.cZt);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoUrl:\").append(this.cZu);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"NewMd5:\").append(this.cVC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"DownloadStartTime:\").append(this.cVD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"DownloadEndTime:\").append(this.cVE);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoSize:\").append(this.cVF);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoDuration:\").append(this.cVG);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoBitrate:\").append(this.cVH);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AudioBitrate:\").append(this.cVI);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoFps:\").append(this.cVJ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoWidth:\").append(this.cVK);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoHeight:\").append(this.cVL);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CDNIp:\").append(this.cVM);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"OriginalAudioChannel:\").append(this.cVN);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"HadPreloadSize:\").append(this.cVO);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"HadPreloadCompletion:\").append(this.cVP);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(50547);\n return stringBuffer2;\n }", "String getATCUD();", "public String getVariablesInternal() {\n StringBuilder b = new StringBuilder();\n JTable table = m_table.getTable();\n int numRows = table.getModel().getRowCount();\n\n for (int i = 0; i < numRows; i++) {\n String paramName = table.getValueAt(i, 0).toString();\n String paramValue = table.getValueAt(i, 1).toString();\n if (paramName.length() > 0 && paramValue.length() > 0) {\n b.append(paramName).append(SetVariables.SEP2).append(paramValue);\n }\n if (i < numRows - 1) {\n b.append(SetVariables.SEP1);\n }\n }\n\n return b.toString();\n }", "java.lang.String getField1663();", "String pvUUIDTableName();", "java.lang.String getField1283();", "java.lang.String getField1665();", "java.lang.String getField1636();", "java.lang.String getField1281();", "java.lang.String getField1063();", "java.lang.String getField1658();", "java.lang.String getField1148();", "protected UniqueInfo cpui() { return hpcpui(columnStShhnKnyMsId()); }", "java.lang.String getField1128();", "java.lang.String getField1126();", "public static String compile(InputPin pin) {\n String index1String = \"\\t\\t\\t\\t\\tindex_1(\" + compileArray(pin.getParent().getIndex1()) + \");\\n\";\n String output = \"\\n\\t\\tpin(\" + pin.getName() + \") {\\n\" + \"\\t\\t\\tcapacitance : \"\n + Model.formatFloat(pin.getCapacitance()) + \" ;\\n\" + \"\\t\\t\\tdirection : input ;\\n\" + \"\\t\\t\\t\"\n + pin.getUnsupportedData().replaceAll(\"\\n\", \"\\n\\t\\t\\t\");\n if (!pin.getInputPowers().isEmpty()) {\n output += \"\\n\\t\\t\\tinternal_power() {\\n\";\n for (InputPower inputPower : pin.getInputPowers()) {\n String valuesString = \"\\t\\t\\t\\t\\tvalues(\" + compileArray(inputPower.getValues()) + \");\\n\";\n output += \"\\n\\t\\t\\t\\t\" + inputPower.getPowGroup().name().toLowerCase() + \"() {\\n\" + index1String\n + valuesString + \"\\t\\t\\t\\t}\\n\";\n }\n output += \"\\t\\t\\t}\\n\";\n }\n output += \"\\n\\t\\t}\";\n return output;\n }", "java.lang.String getField1644();", "java.lang.String getField1633();", "java.lang.String getField1686();", "java.lang.String getField1668();", "java.lang.String getHeaderTableId();", "java.lang.String getField1650();", "java.lang.String getField1662();", "java.lang.String getField1736();", "protected UniqueInfo cpui() { return hpcpui(columnId()); }", "String extractParameters ();", "public abstract java.lang.String getIdpc();", "java.lang.String getField1326();", "java.lang.String getField1660();", "java.lang.String getField1036();", "java.lang.String getField1136();", "java.lang.String getField1696();", "java.lang.String getField1748();", "java.lang.String getField1666();", "java.lang.String getField1394();", "String pvIDTableName();", "java.lang.String getField1058();", "java.lang.String getField1750();", "java.lang.String getField1083();", "java.lang.String getField1758();", "java.lang.String getField1158();", "java.lang.String getField1655();", "java.lang.String getField1062();", "java.lang.String getField1548();", "protected UniqueInfo cpui() { return hpcpui(columnCampCode()); }", "java.lang.String getField1763();", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "java.lang.String getField1833();", "public abstract java.lang.String getIdpcTV();", "java.lang.String getField1637();", "java.lang.String getField1263();", "java.lang.String getField1683();", "java.lang.String getField1661();", "java.lang.String getField1068();", "java.lang.String getField1106();", "java.lang.String getField1248();", "java.lang.String getField1667();", "java.lang.String getField1096();", "java.lang.String getField1186();", "java.lang.String getField1858();", "java.lang.String getField1152();", "java.lang.String getField1065();", "java.lang.String getField1264();", "java.lang.String getField1677();", "java.lang.String getField1651();", "java.lang.String getField1762();", "String mo10312id();", "java.lang.String getField1649();", "java.lang.String getField1690();", "java.lang.String getField1638();", "java.lang.String getField1033();", "java.lang.String getField1765();", "java.lang.String getField1132();", "java.lang.String getField1640();", "java.lang.String getField1768();", "private String[] getInputColNames() \r\n\t{\r\n\t\tif (null == formatString)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tint length = formatString.length();\r\n\t\tString [] colNames = new String[length];\r\n\t\tchar tmp;\r\n\t\tfor (int i=0; i<length; i++)\r\n\t\t{\r\n\t\t\t/** Read the format identifier from the command file and set the corresponding \r\n\t\t\t * column name in colNames \t */\r\n\t\t\ttmp = formatString.charAt(i);\r\n\t\t\tswitch (tmp)\r\n\t\t\t{\r\n\t\t\tcase 'A': case 'a':\r\n\t\t\t\tcolNames[i] = \"CIN_ACC_NO\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'U': case 'u':\r\n\t\t\t\tcolNames[i] = \"CIN_UGID\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'O': case 'o':\r\n\t\t\t\tcolNames[i] = \"CIN_LOCAL_TAXID\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'E': case 'e':\r\n\t\t\t\tcolNames[i] = \"CIN_GENEID\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tLogger.log(\"Character \" + tmp + \" not a valid format character\",Logger.WARNING);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn colNames;\r\n\t}", "java.lang.String getField1196();", "java.lang.String getField1563();", "java.lang.String getField1271();", "java.lang.String getField1362();", "java.lang.String getField1268();", "java.lang.String getField1863();", "java.lang.String getField1166();", "java.lang.String getField1645();", "java.lang.String getField1436();", "java.lang.String getField1558();", "java.lang.String getField1641();", "java.lang.String getField1084();", "java.lang.String getField1086();", "java.lang.String getField1796();", "java.lang.String getField1693();", "java.lang.String getField1348();", "java.lang.String getField1654();", "java.lang.String getField1688();", "String[] mo1153c();", "public int getUser1Z_ID();", "java.lang.String getField1674();", "java.lang.String getField1862();", "java.lang.String getField1656();", "java.lang.String getField1868();" ]
[ "0.59476525", "0.54922897", "0.52606326", "0.52601314", "0.5235747", "0.51804763", "0.515462", "0.51535434", "0.5148426", "0.51483834", "0.5131315", "0.5127246", "0.51167095", "0.51055634", "0.50730896", "0.5068444", "0.5066848", "0.5042079", "0.504196", "0.50405806", "0.5030274", "0.50100935", "0.49956062", "0.49952152", "0.4991794", "0.4987569", "0.4987464", "0.49871358", "0.49870938", "0.4985642", "0.49842453", "0.49808148", "0.49739245", "0.4968207", "0.4967648", "0.49639383", "0.49601215", "0.4955304", "0.49502546", "0.49446514", "0.494233", "0.49415278", "0.49388495", "0.49352342", "0.49330357", "0.49276286", "0.4926513", "0.49256653", "0.49245518", "0.49236405", "0.49205282", "0.49191007", "0.49189612", "0.4914649", "0.4913172", "0.49128655", "0.4906936", "0.4906773", "0.49064273", "0.49056184", "0.49017826", "0.48986083", "0.48943955", "0.4893383", "0.4893217", "0.48892578", "0.4882538", "0.48817176", "0.48764992", "0.487648", "0.4876254", "0.48761302", "0.487111", "0.4870166", "0.48693007", "0.4868165", "0.486773", "0.48654068", "0.48539415", "0.48537552", "0.48533314", "0.48513696", "0.48509988", "0.48489946", "0.48486432", "0.4848417", "0.48450893", "0.4844975", "0.4843198", "0.4841966", "0.48406458", "0.4840037", "0.48394835", "0.4838713", "0.483736", "0.48362917", "0.48361236", "0.48329422", "0.48326632", "0.4831252", "0.4830228" ]
0.0
-1
Build and return CPUID this function detail information table INPUT: Binary array = CPUID dump data OUTPUT: Array of strings = CPUID this function detail information table
@Override public String[][] getCommandText1( long[] array ) { // Scan binary dump, find entry for this function int x = CPUID.findFunction( array, 0x80000007 ); // Return "n/a" if this function entry not found if (x<0) { return NO_RESULT; } // Build and pre-blank result text array String[][] result = new String[NY][NX]; // Text formatted by control data for (int i=0; i<NY; i++) // Cycle for rows { for(int j=0; j<NX; j++) // Cycle for columns { result[i][j]=""; } } // Parameters from CPUID dump, EDX register int p = 0; // pointer for sequentally store strings in the table int y = (int) ( array[x+3] >>> 32 ); // y = EDX CPUID.decodeBitmap( "EDX", DECODER_EDX, y , result , p ); // Parameters from CPUID dump, EAX register p=NY1; y = (int) ( array[x+2] & (((long)((long)(-1)>>>32))) ); // y = EAX CPUID.decodeBitfields ( "EAX" , DECODER_EAX , y , result , p ); // Parameters from CPUID dump, EBX register p=NY1+NY2; y = (int) ( array[x+2] >>> 32 ); // y = EBX CPUID.decodeBitmap ( "EBX" , DECODER_EBX , y , result , p ); // Parameters from CPUID dump, ECX register p=NY1+NY2+NY3; y = (int) ( array[x+3] & (((long)((long)(-1)>>>32))) ); // y = ECX CPUID.decodeBitfields ( "ECX" , DECODER_ECX , y , result , p ); // Result is ready, all strings filled return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildFieldTable() throws FatalException\r\n\t{\r\n\t\tString [] colNames = m_dbManager.getFieldNames(Constants.chipTableName);\r\n\t\tfieldIdTable = new Hashtable(colNames.length);\r\n\t\tfor (int i=0; i< colNames.length; i++)\r\n\t\t{\r\n\t\t\tInteger id = new Integer(i);\r\n\t\t\tfieldIdTable.put(colNames[i].toUpperCase(), id);\r\n\t\t}\r\n\t\tLogger.log(\"BuildFieldTable complete \",Logger.DEBUG);\r\n\t}", "public int[] Identification(int[] Instruction) {\r\n\t\t\tint value[]=new int[9];\r\n\t\t\tString Information=\"\";\r\n\t\t\tint[] Opcode=new int[6];\r\n\t\t\tint[] R=new int[2];\r\n\t\t\tint[] IX=new int[2];\r\n\t\t\tint[] Rx=new int[2];\r\n\t\t\tint[] Ry=new int[2];\r\n\t\t\tint[] Count=new int[4];\r\n\t\t\tint[] DevId=new int[5];\r\n\t\t\tint I;\r\n\t\t\tint[] Address=new int[5];\r\n\t\t\t\r\n\t\t\t//Parse out the Opcode, Register, IX, I, and Address from the instruction word\r\n\t\t\tfor(int i=0;i<6;i++) {\r\n\t\t\t\tOpcode[i]=Instruction[i];\r\n\t\t\t\tInformation=Information+Instruction[i];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" R:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tR[i]=Instruction[i+6];\r\n\t\t\t\tInformation=Information+Instruction[i+6];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" IX:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tIX[i]=Instruction[i+8];\r\n\t\t\t\tInformation=Information+Instruction[i+8];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Address:\";\r\n\t\t\tfor(int i=0;i<5;i++) {\r\n\t\t\t\tAddress[i]=Instruction[i+11];\r\n\t\t\t\tInformation=Information+Instruction[i+11];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Rx:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tRx[i]=Instruction[i+6];\r\n\t\t\t\tInformation=Information+Instruction[i+6];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Ry:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tRy[i]=Instruction[i+8];\r\n\t\t\t\tInformation=Information+Instruction[i+8];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" AL:\";\r\n\t\t\tint decAL = Instruction[8];\r\n\t\t\tInformation=Information+Instruction[8];\r\n\t\t\tInformation=Information+\" LR:\";\r\n\t\t\tint decLR = Instruction[9];\r\n\t\t\tInformation=Information+Instruction[9];\r\n\t\t\tInformation=Information+\" Count:\";\r\n\t\t\tfor(int i=0;i<4;i++) {\r\n\t\t\t\tCount[i]=Instruction[i+12];\r\n\t\t\t\tInformation=Information+Instruction[i+12];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" DevId:\";\r\n\t\t\tfor(int i=0;i<5;i++) {\r\n\t\t\t\tDevId[i]=Instruction[i+11];\r\n\t\t\t\tInformation=Information+Instruction[i+11];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" DevId:\";\r\n\t\t\tI=Instruction[10];\r\n\t\t\tInformation=Information+Instruction[10];\r\n\t\t\t\r\n\t\t\tInformation=Information+\"\\n\";\r\n\t\t\t\r\n\t\t\t//Convert parsed values to easier to user INTEGER value (base 10)\r\n\t\t\tint decOpcode=Binary_to_dec(Opcode);\r\n\t\t\tvalue[0]=decOpcode;\r\n\t\t\tint decR=Binary_to_dec(R);\r\n\t\t\tvalue[1]=decR;\r\n\t\t\tint decIX=Binary_to_dec(IX);\r\n\t\t\tvalue[2]=decIX;\r\n\t\t\tint decAddress=Binary_to_dec(Address);\r\n\t\t\tvalue[3]=decAddress;\r\n\t\t\tint decRx=Binary_to_dec(Rx);\r\n\t\t\tvalue[4]=decRx;\r\n\t\t\tint decRy=Binary_to_dec(Ry);\r\n\t\t\tvalue[5]=decRy;\r\n\t\t\tint decCount=Binary_to_dec(Count);\r\n\t\t\tvalue[6]=decCount;\r\n\t\t\tint decDevId=Binary_to_dec(DevId);\r\n\t\t\tvalue[7]=decDevId;\r\n\t\t\tvalue[8]=I;\r\n\t\t\treturn value;\r\n\t\t}", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(50547);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Tid:\").append(this.cZt);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoUrl:\").append(this.cZu);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"NewMd5:\").append(this.cVC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"DownloadStartTime:\").append(this.cVD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"DownloadEndTime:\").append(this.cVE);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoSize:\").append(this.cVF);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoDuration:\").append(this.cVG);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoBitrate:\").append(this.cVH);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AudioBitrate:\").append(this.cVI);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoFps:\").append(this.cVJ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoWidth:\").append(this.cVK);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoHeight:\").append(this.cVL);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CDNIp:\").append(this.cVM);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"OriginalAudioChannel:\").append(this.cVN);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"HadPreloadSize:\").append(this.cVO);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"HadPreloadCompletion:\").append(this.cVP);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(50547);\n return stringBuffer2;\n }", "public static String getDiag1AddinfoString(long bib1_diag_code) {\n return \"{1}\";\n }", "@Override\n\tpublic String[] toArray() {\n\t\tString strValue[] = new String[DSPPackager.PACKAGER_MBASE_88301I\n\t\t\t\t.getFieldDefinitionList().length];\n\t\tString strHostName = null;\n\t\ttry {\n\t\t\tstrHostName = InetAddress.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException ex) {\n\t\t\tstrHostName = \"localhost\";\n\t\t}\n\t\tstrValue[0] = \"*LINX\"; // Header type\n\t\tstrValue[1] = strHostName; // Device Name\n\t\tstrValue[5] = \"213\"; // Header Length\n\t\tstrValue[7] = \"0200\"; // Version\n\t\tstrValue[8] = \"*DSP\"; // Version\n\t\tstrValue[9] = \"MBSD\"; // Data format\n\t\tstrValue[10] = \"*LINX\"; // Source ID\n\t\tstrValue[14] = \"01\"; // Source ID\n\t\tstrValue[17] = \"BBMBSLNMNTFNC\"; // Scenario Number\n\t\tstrValue[22] = \"1\";\n\t\tstrValue[23] = \"10\";\n\t\tstrValue[24] = aa.getTeller(); // User ID\n\t\tstrValue[25] = strHostName; // Terminal ID\n\t\tstrValue[26] = \"88301\"; // Supervisor ID\n\t\tstrValue[27] = \"N\";\n\t\tstrValue[31] = aa.getTeller(); // Message Header\n\t\tstrValue[32] = \"1\"; // Message Header\n\t\tstrValue[34] = \"*END\";\n\t\tstrValue[36] = \"BTS\";\n\t\tstrValue[37] = \"RBS\";\n\t\tstrValue[39] = strHostName; // Terminal ID\n\t\tstrValue[40] = \"27\"; // Journal Seq\n\t\tstrValue[41] = aa.getBranch(); // Branch Code\n\t\tstrValue[45] = \"88301\"; // Transaction Code\n\t\tstrValue[46] = \"C\"; // add\n\t\tstrValue[47] = \"R\"; // response\n\t\tstrValue[48] = \"1\"; // Work station\n\t\tstrValue[49] = \"N\";\n\t\tstrValue[50] = \"F\";\n\t\tstrValue[56] = \"\";\n\t\tstrValue[67] = aa.getApplicationNo(); // application Number\n\t\tstrValue[68] = aa.getCifNum();\n\t\tstrValue[69] = aa.getApplicationDate();\n\t\tstrValue[71] = aa.getBranch(); // lpad 5 '0'\n\t\tstrValue[72] = aa.getWorkingEx();\n\t\tstrValue[73] = aa.getSpecProvision(); // Y/N\n\t\tstrValue[74] = aa.getClasifielDate();\n\t\tstrValue[75] = aa.getCarCode();\n\t\tstrValue[76] = aa.getReviewDate();\n\t\tstrValue[77] = aa.getRetention();\n\t\tstrValue[78] = aa.getReviewReMark();\n\t\tstrValue[79] = aa.getRefinanceFrom();\n\t\tstrValue[80] = aa.getTucachPn();\n\t\tstrValue[81] = aa.getTinhHinhTc();\n\t\tstrValue[82] = aa.getKhaNangVayVon();\n\t\tstrValue[83] = aa.getDamBaoTienVay();\n\t\tstrValue[84] = aa.getLimitAmount();\n\t\tstrValue[85] = aa.getCurencyType();\n\t\tstrValue[86] = aa.getOfficeCode();\n\t\tstrValue[87] = aa.getClassification();\n\t\tstrValue[88] = aa.getMARemarck();\n\t\tstrValue[89] = aa.getMADate();\n\t\treturn strValue;\n\t}", "Info mo7564ix();", "protected UniqueInfo cpui() { return hpcpui(columnStShhnKnyMsId()); }", "java.lang.String getField1394();", "java.lang.String getDataInfoId();", "public abstract java.lang.String getIdpc();", "@Override\n\tpublic String[] toArray() {\n\t\tString strHostName = null;\n\t\ttry {\n\t\t\tstrHostName = InetAddress.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException ex) {\n\t\t\tstrHostName = \"127.0.0.1\";\n\t\t}\n\t\tstrValue[0] = \"*LINX\"; // 0 :\n\t\tstrValue[1] = strHostName; // 1 :\n\t\tstrValue[5] = \"213\"; // 5 :\n\t\tstrValue[7] = \"0200\"; // 7 :\n\t\tstrValue[8] = \"*DSP\"; // 8 :\n\t\tstrValue[9] = \"MBSD\"; // 9 :\n\t\tstrValue[10] = \"*LINX\"; // 10 :\n\t\tstrValue[14] = \"01\"; // 14 :\n\t\tstrValue[17] = \"BBMBSLNINQFNC\"; // 17 :\n\t\tstrValue[22] = \"1\"; // 22 :\n\t\tstrValue[23] = \"10\"; // 23 :\n\t\tstrValue[24] = calla.getTeller(); // 24 :\n\t\tstrValue[25] = strHostName; // 25 :\n\t\tstrValue[26] = \"86305\"; // 26 :\n\t\tstrValue[27] = \"N\"; // 27 :\n\t\tstrValue[31] = calla.getTeller(); // 31 : User ID\n\t\tstrValue[32] = \"1\"; // 32 : Reference Number\n\t\tstrValue[34] = \"*END\"; // 34 : End of Group Indicator\n\t\tstrValue[36] = \"BTS\"; // 36 : Source ID\n\t\tstrValue[37] = \"RBS\"; // 37 : Destination ID\n\t\tstrValue[39] = strHostName; // 39 : Terminal ID\n\t\tstrValue[40] = \"27\"; // 40 : Bank Number\n\t\tstrValue[41] = calla.getBranch(); // 41 : Branch\n\t\t\t\t\t\t\t\t\t\t\t// Number\n\t\tstrValue[45] = \"86305\"; // Transaction Code\n\t\tstrValue[46] = \"I\"; // \"D\",\"C\" Action Code\n\t\tstrValue[47] = \"R\"; // Transaction Mode\n\t\tstrValue[48] = \"1\"; // No. Of Records To Retrieve\n\t\tstrValue[49] = \"N\"; // More Records Indicator\n\t\tstrValue[50] = \"F\"; // Search Method\n\t\tstrValue[56] = \"D\"; // 56 : Response Reason For Code 3\n\t\tstrValue[67] = calla.getApplicationNo(); // Account number\n\t\tstrValue[68] = calla.getFacilityCode(); // 240\n\t\tstrValue[69] = calla.getFacId();//\n\t\tstrValue[70] = calla.getCollateralId(); //\n\n\t\treturn strValue;\n\t}", "protected UniqueInfo cpui() { return hpcpui(columnId()); }", "public static String toString(byte[] edid) {\n StringBuilder sb = new StringBuilder();\n sb.append(\" Manuf. ID=\").append(getManufacturerID(edid));\n sb.append(\", Product ID=\").append(getProductID(edid));\n sb.append(\", \").append(isDigital(edid) ? \"Digital\" : \"Analog\");\n sb.append(\", Serial=\").append(getSerialNo(edid));\n sb.append(\", ManufDate=\").append(getWeek(edid) * 12 / 52 + 1).append(Symbol.C_SLASH)\n .append(getYear(edid));\n sb.append(\", EDID v\").append(getVersion(edid));\n int hSize = getHcm(edid);\n int vSize = getVcm(edid);\n sb.append(String.format(\"%n %d x %d cm (%.1f x %.1f in)\", hSize, vSize, hSize / 2.54, vSize / 2.54));\n byte[][] desc = getDescriptors(edid);\n for (byte[] b : desc) {\n switch (getDescriptorType(b)) {\n case 0xff:\n sb.append(\"\\n Serial Number: \").append(getDescriptorText(b));\n break;\n case 0xfe:\n sb.append(\"\\n Unspecified Text: \").append(getDescriptorText(b));\n break;\n case 0xfd:\n sb.append(\"\\n Range Limits: \").append(getDescriptorRangeLimits(b));\n break;\n case 0xfc:\n sb.append(\"\\n Monitor Name: \").append(getDescriptorText(b));\n break;\n case 0xfb:\n sb.append(\"\\n White Point Data: \").append(byteArrayToHexString(b));\n break;\n case 0xfa:\n sb.append(\"\\n Standard Timing ID: \").append(byteArrayToHexString(b));\n break;\n default:\n if (getDescriptorType(b) <= 0x0f && getDescriptorType(b) >= 0x00) {\n sb.append(\"\\n Manufacturer Data: \").append(byteArrayToHexString(b));\n } else {\n sb.append(\"\\n Preferred Timing: \").append(getTimingDescriptor(b));\n }\n break;\n }\n }\n return sb.toString();\n }", "public String toString() {\n/* 127 */ StringBuilder sb = new StringBuilder(this.dictionary.getNameAsString(COSName.SUBTYPE));\n/* 128 */ sb.append('{');\n/* 129 */ PDDeviceNProcess process = getProcess();\n/* 130 */ if (process != null) {\n/* */ \n/* 132 */ sb.append(getProcess());\n/* 133 */ sb.append(' ');\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 139 */ Map<String, PDSeparation> colorants = getColorants();\n/* 140 */ sb.append(\"Colorants{\");\n/* 141 */ for (Map.Entry<String, PDSeparation> col : colorants.entrySet()) {\n/* */ \n/* 143 */ sb.append('\"');\n/* 144 */ sb.append(col.getKey());\n/* 145 */ sb.append(\"\\\": \");\n/* 146 */ sb.append(col.getValue());\n/* 147 */ sb.append(' ');\n/* */ } \n/* 149 */ sb.append('}');\n/* */ }\n/* 151 */ catch (IOException e) {\n/* */ \n/* 153 */ sb.append(\"ERROR\");\n/* */ } \n/* 155 */ sb.append('}');\n/* 156 */ return sb.toString();\n/* */ }", "java.lang.String getField1663();", "private char[] toDSUID(UUID uuid) {\n ByteBuffer bb = ByteBuffer.wrap(new byte[17]);\n bb.putLong(uuid.getMostSignificantBits());\n bb.putLong(uuid.getLeastSignificantBits());\n\n String s_uuid = DatatypeConverter.printHexBinary(bb.array());\n return s_uuid.toCharArray();\n }", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "public String toString() {\n String s = \"\";\n try {\n s += get_nodeid()+\"\\t\";\n //s += \" [nodeid=0x\"+Long.toHexString(get_nodeid())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += get_counter()+\"\\t\";\n //s += \" [counter=0x\"+Long.toHexString(get_counter())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_p_sendts()+\"\\t\";\n //s += \" [p_sendts=0x\"+Long.toHexString(get_p_sendts())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_receivets()+\"\\t\";\n //s += \" [receivets=0x\"+Long.toHexString(get_receivets())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_virtual_clk())+\"\\t\";\n //s += \" [virtual_clk=\"+Float.toString(get_virtual_clk())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_skew_cmp())+\"\\t\";\n //s += \" [skew_cmp=\"+Float.toString(get_skew_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_offset_cmp())+\"\";\n //s += \" [offset_cmp=\"+Float.toString(get_offset_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }", "public byte[] buildPacket() throws BeCommunicationEncodeException {\r\n\t\tif (apMac == null) {\r\n\t\t\tthrow new BeCommunicationEncodeException(\"ApMac is a necessary field!\");\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tbyte[] requestData = prepareRequestData();\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * AP identifier 's length = 6 + 1 + apSerialNum.length()<br>\r\n\t\t\t * query's length = 6 + 12\r\n\t\t\t */\r\n\t\t\tint apIdentifierLen = 7 + apMac.length();\r\n\t\t\tint queryLen = 12 + requestData.length;\r\n\t\t\tint bufLength = apIdentifierLen + queryLen;\r\n\t\t\tByteBuffer buf = ByteBuffer.allocate(bufLength);\r\n\t\t\t// set value\r\n\t\t\tbuf.putShort(BeCommunicationConstant.MESSAGEELEMENTTYPE_APIDENTIFIER);\r\n\t\t\tbuf.putInt(apIdentifierLen - 6);\r\n\t\t\tbuf.put((byte) apMac.length());\r\n\t\t\tbuf.put(apMac.getBytes());\r\n\t\t\tbuf.putShort(BeCommunicationConstant.MESSAGEELEMENTTYPE_INFORMATIONQUERY);\r\n\t\t\tbuf.putInt(6 + requestData.length);\r\n\t\t\tbuf.putShort(queryType);\r\n\t\t\tbuf.putInt(requestData.length); // data length\r\n\t\t\tbuf.put(requestData);\r\n\t\t\tsetPacket(buf.array());\r\n\t\t\treturn buf.array();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new BeCommunicationEncodeException(\r\n\t\t\t\t\t\"BeTeacherViewStudentInfoEvent.buildPacket() catch exception\", e);\r\n\t\t}\r\n\t}", "com.google.protobuf.ByteString getDataInfoIdBytes();", "public String toString(){\n return \"MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION - sysid:\"+sysid+\" compid:\"+compid+\" time_boot_ms:\"+time_boot_ms+\" firmware_version:\"+firmware_version+\" tilt_max:\"+tilt_max+\" tilt_min:\"+tilt_min+\" tilt_rate_max:\"+tilt_rate_max+\" pan_max:\"+pan_max+\" pan_min:\"+pan_min+\" pan_rate_max:\"+pan_rate_max+\" cap_flags:\"+cap_flags+\" vendor_name:\"+vendor_name+\" model_name:\"+model_name+\"\";\n }", "java.lang.String getField1281();", "java.lang.String getField1664();", "java.lang.String getField1636();", "public HL7Segment processPIDToUFD(String pHL7MessageBlock) throws ICANException {\n\n HL7Message aHL7Message = new HL7Message(pHL7MessageBlock);\n HL7Segment aZPDSegment = new HL7Segment(aHL7Message.getSegment(\"ZPD\"));\n HL7Segment aInPID = new HL7Segment(k.NULL);\n HL7Segment aOutPID = new HL7Segment(HL7_23.PID);\n\n HL7Field aTempField;\n String aPID_3_RepeatField[] = new String[5];\n String aPID_11_RepeatField[] = new String[5];\n String aPID_13_RepeatField[] = new String[5];\n int aRepeat = 0;\n aInPID.setSegment(aHL7Message.getSegment(HL7_23.PID));\n\n// Copy all fields indicated in aArray from IN segment ...\n aOutPID.linkTo(aInPID);\n\n String aArray[] = { HL7_23.PID_1_set_ID,\n HL7_23.PID_5_patient_name,\n HL7_23.PID_7_date_of_birth,\n HL7_23.PID_8_sex,\n HL7_23.PID_9_patient_alias,\n HL7_23.PID_10_race,\n HL7_23.PID_12_county_code,\n HL7_23.PID_13_home_phone,\n HL7_23.PID_14_business_phone,\n HL7_23.PID_15_language,\n HL7_23.PID_16_marital_status,\n HL7_23.PID_17_religion,\n HL7_23.PID_18_account_number,\n HL7_23.PID_19_SSN_number,\n HL7_23.PID_21_mothers_ID,\n HL7_23.PID_23_birth_place,\n HL7_23.PID_29_patient_death_date_time,\n HL7_23.PID_30_patient_death_indicator\n };\n aOutPID.copyFields(aArray);\n\n// Check patient death date is not less than patient birth date\n\n String aPatientDeathDateTime = aOutPID.get(HL7_23.PID_29_patient_death_date_time);\n if (aPatientDeathDateTime.length() > 2) {\n int aBirthDate = Integer.parseInt(aOutPID.get(HL7_23.PID_7_date_of_birth).substring(0, 8));\n int aDeathDate = Integer.parseInt(aPatientDeathDateTime.substring(0, 8));\n if (aDeathDate < aBirthDate) {\n throw new ICANException(\"F010\", mEnvironment);\n }\n }\n\n// ... make certain it gets a Set ID.\n if ( aInPID.isEmpty(HL7_23.PID_1_set_ID))\n aOutPID.setField(\"1\", HL7_23.PID_1_set_ID);\n\n// Patient UR Number\n if (! aInPID.isEmpty(HL7_23.PID_3_patient_ID_internal, HL7_23.CX_ID_number)) {\n aTempField = new HL7Field(aInPID.get(HL7_23.PID_3_patient_ID_internal));\n aTempField.setSubField(\"PI\",HL7_23.CX_ID_type_code );\n aPID_3_RepeatField[aRepeat++] = aTempField.getField();\n mPatientUR = aInPID.get(HL7_23.PID_3_patient_ID_internal, HL7_23.CX_ID_number);\n }\n// Patient Sex Indeterminate = Unknown\n if (aOutPID.get(HL7_23.PID_8_sex).equalsIgnoreCase(\"I\")) {\n aOutPID.set(HL7_23.PID_8_sex, \"U\");\n }\n\n// Correct the Rabbi prefix\n if (aOutPID.get(HL7_23.PID_5_patient_name, HL7_23.XPN_prefix).equalsIgnoreCase(\"RAB\")) {\n aOutPID.set(HL7_23.PID_5_patient_name, HL7_23.XPN_prefix, \"Rabbi\");\n }\n if (aOutPID.get(HL7_23.PID_9_patient_alias, HL7_23.XPN_prefix).equalsIgnoreCase(\"RAB\")) {\n aOutPID.set(HL7_23.PID_9_patient_alias, HL7_23.XPN_prefix, \"Rabbi\");\n }\n\n// Pension Number and Mental Health ID\n if (! aInPID.isEmpty(HL7_23.PID_4_alternate_patient_ID, HL7_23.CX_ID_number)) {\n String aField[] = aInPID.getRepeatFields(HL7_23.PID_4_alternate_patient_ID);\n int n;\n\n for (n = 0; n < aField.length; n++) {\n aTempField = new HL7Field(aField[n]);\n if (aTempField.getSubField(HL7_23.CX_ID_type_code).equalsIgnoreCase(\"PE\")) {\n aTempField.setSubField(\"PEN\",HL7_23.CX_ID_type_code );\n aTempField.setSubField(\"PEN\",HL7_23.CX_assigning_authority );\n aPID_3_RepeatField[aRepeat++] = aTempField.getField();\n\n } else\n if (aTempField.getSubField(HL7_23.CX_ID_type_code).equalsIgnoreCase(\"MH\")) {\n aTempField.setSubField(\"MH\",HL7_23.CX_ID_type_code );\n aTempField.setSubField(\"MHN\",HL7_23.CX_assigning_authority );\n aPID_3_RepeatField[aRepeat++] = aTempField.getField();\n cMentalHealthID = aTempField.getSubField(HL7_23.CX_ID_number);\n }\n\n }\n }\n\n// Medicare Number\n if (! aInPID.isEmpty(HL7_23.PID_19_SSN_number, HL7_23.CX_ID_number)) {\n aTempField = new HL7Field(aInPID.get(HL7_23.PID_19_SSN_number));\n } else {\n aTempField = new HL7Field(\"C-U\");\n }\n aTempField.setSubField(\"MC\",HL7_23.CX_ID_type_code );\n aTempField.setSubField(\"HIC\",HL7_23.CX_assigning_authority );\n aPID_3_RepeatField[aRepeat++] = aTempField.getField();\n\n// DVA Number\n if (!aInPID.isEmpty(HL7_23.PID_27_veterans_military_status, HL7_23.CX_ID_number) &&\n !aInPID.get(HL7_23.PID_27_veterans_military_status).equalsIgnoreCase(\"\\\"\\\"\")) {\n aTempField = new HL7Field(aInPID.get(HL7_23.PID_27_veterans_military_status, HL7_23.CX_ID_number));\n aTempField.setSubField(\"VA\",HL7_23.CX_ID_type_code );\n aTempField.setSubField(\"DVA\",HL7_23.CX_assigning_authority );\n aPID_3_RepeatField[aRepeat++] = aTempField.getField();\n }\n\n aOutPID.setRepeatFields(HL7_23.PID_3_patient_ID_internal, aPID_3_RepeatField);\n\n// Patients Address\n HL7Field aPID11Field = new HL7Field();\n HL7Field aPIDTmpField = new HL7Field();\n String aPID11Array[] = aInPID.getRepeatFields(HL7_23.PID_11_patient_address);\n// String aStateDesc = \"\";\n aRepeat = 0;\n int i;\n for (i=0; i < aPID11Array.length; i++) {\n aPIDTmpField = new HL7Field(aPID11Array[i]);\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_street_1),HL7_23.XAD_street_1);\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_street_2),HL7_23.XAD_street_2);\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_city),HL7_23.XAD_city);\n\n //Norman Soh: Process State description based on PostCode\n// String aPostCodeStr = aPIDTmpField.getSubField(HL7_23.XAD_zip);\n// if (aPostCodeStr.length() > 0) {\n// try {\n// int aPostCode = Integer.parseInt(aPostCodeStr);\n// if (aPostCode >= 800 && aPostCode <= 899) {\n// aStateDesc = \"NT\";\n// } else if ((aPostCode >= 200 && aPostCode <= 299) ||\n// (aPostCode >= 2600 && aPostCode <= 2619) ||\n// (aPostCode >= 2900 && aPostCode <= 2920)) {\n// aStateDesc = \"ACT\";\n// } else if ((aPostCode >= 1000 && aPostCode <= 2599) ||\n// (aPostCode >= 2620 && aPostCode <= 2899) ||\n// (aPostCode >= 2921 && aPostCode <= 2999)) {\n// aStateDesc = \"NSW\";\n// } else if ((aPostCode >= 3000 && aPostCode <= 3999) ||\n// (aPostCode >= 8000 && aPostCode <= 8999)) {\n// aStateDesc = \"VIC\";\n// } else if (aPostCode == 8888) {\n// aStateDesc = \"OVERSEAS\";\n// } else if (aPostCode == 9990 || aPostCode == 9988) {\n// aStateDesc = \"\";\n// } else if ((aPostCode >= 4000 && aPostCode <= 4999) ||\n// (aPostCode >= 9000 && aPostCode <= 9799)) {\n// aStateDesc = \"QLD\";\n// } else if (aPostCode >= 5000 && aPostCode <= 5999) {\n// aStateDesc = \"SA\";\n// } else if (aPostCode >= 6000 && aPostCode <= 6999) {\n// aStateDesc = \"WA\";\n// } else if (aPostCode >= 7000 && aPostCode <= 7999) {\n// aStateDesc = \"TAS\";\n// }\n// aPID11Field.setSubField(aStateDesc, HL7_23.XAD_state_or_province);\n// } catch (Exception e) {\n// //Do nothing, postcode is not entered or is invalid\n// }\n// }\n //\n\n if (aPIDTmpField.getSubField(HL7_23.XAD_zip).equalsIgnoreCase(\"8888\")){\n aPID11Field.setSubField(\"OVERSEAS\", HL7_23.XAD_state_or_province);\n } else {\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_state_or_province), HL7_23.XAD_state_or_province);\n }\n\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_zip),HL7_23.XAD_zip);\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_country),HL7_23.XAD_country);\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_type),HL7_23.XAD_type);\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_geographic_designation),HL7_23.XAD_geographic_designation);\n aPID11Field.setSubField(aPIDTmpField.getSubField(HL7_23.XAD_county_parish),HL7_23.XAD_county_parish);\n\n aPID_11_RepeatField[aRepeat++] = aPID11Field.getField();\n if (aRepeat == 4) {\n break;\n }\n }\n aOutPID.setRepeatFields(HL7_23.PID_11_patient_address, aPID_11_RepeatField);\n\n//Get first home phone number only\n if (! aZPDSegment.isEmpty(CSC_23.ZPD_12_Personal_Contact_Data_Phone_Numbers)) {\n String aZPD12Array[] = aZPDSegment.getRepeatFields(CSC_23.ZPD_12_Personal_Contact_Data_Phone_Numbers);\n HL7Field aPID13Field = new HL7Field();\n String aPID13Array[] = aZPDSegment.getRepeatFields(CSC_23.ZPD_12_Personal_Contact_Data_Phone_Numbers);\n HL7Field aPID14Field = new HL7Field();\n\n HL7Field aZPDField;\n\n HL7Field aTmpField = new HL7Field();\n aRepeat = 0;\n\n for (i=0; i < aZPD12Array.length; i++) {\n aZPDField = new HL7Field(aZPD12Array[i]);\n if (aZPDField.getSubField(HL7_23.XTN_telecom_use).equalsIgnoreCase(\"PRN\")) {\n aPID13Field.setSubField(aZPDField.getSubField(HL7_23.XTN_telephone_number), HL7_23.XTN_telephone_number);\n if (aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"H\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"R\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"P\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"RES\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"POB\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"PR1\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"PR2\")) {\n aPID13Field.setSubField(\"PRN\", HL7_23.XTN_telecom_use); // Home Phone\n } else {\n aPID13Field.setSubField(\"ORN\", HL7_23.XTN_telecom_use); // Overseas Phone Number\n }\n\n aPID_13_RepeatField[aRepeat++] = aPID13Field.getField();\n if (aRepeat == 4) {\n break;\n }\n }\n\n if (aZPDField.getSubField(HL7_23.XTN_telecom_use).equalsIgnoreCase(\"WPN\")) {\n //aPID14Field.setSubField(aZPDField.getSubField(HL7_23.XTN_telephone_number), HL7_23.XTN_telephone_number);\n if (aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"H\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"R\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"P\") ||\n aZPDField.getSubField(HL7_23.XTN_comment).equalsIgnoreCase(\"RES\")) {\n aPID14Field.setSubField(aZPDField.getSubField(HL7_23.XTN_telephone_number), HL7_23.XTN_telephone_number);\n aPID14Field.setSubField(\"WPN\", HL7_23.XTN_telecom_use); // Business Phone\n }\n }\n }\n if (aRepeat > 0) {\n aOutPID.setRepeatFields(HL7_23.PID_13_home_phone, aPID_13_RepeatField);\n }\n aOutPID.setField(aPID14Field.getField(), HL7_23.PID_14_business_phone);\n\n }\n return aOutPID;\n }", "java.lang.String getField1686();", "java.lang.String getField1665();", "java.lang.String getField1644();", "public void generateMdBits() {\n try {\n if (isMetadataIndex()) {\n mdBits = new String[metadata.length][];\n for (int i = 0; i < metadata.length; i++) {\n mdBits[i] = interpretField(metadata[i], null);\n }\n }\n } catch (IOException e) {\n // it's not obvious what we really ought to do here\n //log.error(\"caught exception: \", e);\n }\n }", "java.lang.String getField1668();", "String mo10312id();", "java.lang.String getField1601();", "java.lang.String getField1648();", "@Override\n public String toString() {\n if (data == null) {\n return ZeroString;\n }\n StringBuffer uuid = new StringBuffer(36);\n for (int i = 0; i < 16; ++i) {\n byte value = data[i];\n uuid.append(String.format(\"%02x\", value & 0xFF));\n if (i == 3 || i == 5 || i == 7 || i == 9) {\n uuid.append(\"-\");\n }\n }\n return uuid.toString();\n }", "void identify()\n{\n BytePtr head = new BytePtr(32);\n BytePtr cp = new BytePtr();\n int hlen, fsize, i, c;\n boolean is_canon;\n jhead jh = new jhead();\n /*\n static const struct {\n int fsize;\n char make[12], model[15], withjpeg;\n } \n */\n IdentifyTable table = new IdentifyTable();\n table.addElt( 62464, \"Kodak\", \"DC20\" ,0 );\n table.addElt( 124928, \"Kodak\", \"DC20\" ,0 );\n table.addElt( 1652736, \"Kodak\", \"DCS200\" ,0 );\n table.addElt( 4159302, \"Kodak\", \"C330\" ,0 );\n table.addElt( 4162462, \"Kodak\", \"C330\" ,0 );\n table.addElt( 460800, \"Kodak\", \"C603v\" ,0 );\n table.addElt( 614400, \"Kodak\", \"C603v\" ,0 );\n table.addElt( 6163328, \"Kodak\", \"C603\" ,0 );\n table.addElt( 6166488, \"Kodak\", \"C603\" ,0 );\n table.addElt( 9116448, \"Kodak\", \"C603y\" ,0 );\n table.addElt( 311696, \"ST Micro\", \"STV680 VGA\" ,0 ); /* SPYz */\n table.addElt( 614400, \"Kodak\", \"KAI-0340\" ,0 );\n table.addElt( 787456, \"Creative\", \"PC-CAM 600\" ,0 );\n table.addElt( 1138688, \"Minolta\", \"RD175\" ,0 );\n table.addElt( 3840000, \"Foculus\", \"531C\" ,0 );\n table.addElt( 786432, \"AVT\", \"F-080C\" ,0 );\n table.addElt( 1447680, \"AVT\", \"F-145C\" ,0 );\n table.addElt( 1920000, \"AVT\", \"F-201C\" ,0 );\n table.addElt( 5067304, \"AVT\", \"F-510C\" ,0 );\n table.addElt( 10134608, \"AVT\", \"F-510C\" ,0 );\n table.addElt( 16157136, \"AVT\", \"F-810C\" ,0 );\n table.addElt( 1409024, \"Sony\", \"XCD-SX910CR\",0 );\n table.addElt( 2818048, \"Sony\", \"XCD-SX910CR\",0 );\n table.addElt( 3884928, \"Micron\", \"2010\" ,0 );\n table.addElt( 6624000, \"Pixelink\", \"A782\" ,0 );\n table.addElt( 13248000, \"Pixelink\", \"A782\" ,0 );\n table.addElt( 6291456, \"RoverShot\",\"3320AF\" ,0 );\n table.addElt( 6553440, \"Canon\", \"PowerShot A460\",0 );\n table.addElt( 6653280, \"Canon\", \"PowerShot A530\",0 );\n table.addElt( 6573120, \"Canon\", \"PowerShot A610\",0 );\n table.addElt( 9219600, \"Canon\", \"PowerShot A620\",0 );\n table.addElt( 10341600, \"Canon\", \"PowerShot A720\",0 );\n table.addElt( 10383120, \"Canon\", \"PowerShot A630\",0 );\n table.addElt( 12945240, \"Canon\", \"PowerShot A640\",0 );\n table.addElt( 15636240, \"Canon\", \"PowerShot A650\",0 );\n table.addElt( 5298000, \"Canon\", \"PowerShot SD300\" ,0 );\n table.addElt( 7710960, \"Canon\", \"PowerShot S3 IS\",0 ); \n table.addElt( 5939200, \"OLYMPUS\", \"C770UZ\" ,0 );\n table.addElt( 1581060, \"NIKON\", \"E900\" ,1 ); /* or E900s,E910 */\n table.addElt( 2465792, \"NIKON\", \"E950\" ,1 ); /* or E800,E700 */\n table.addElt( 2940928, \"NIKON\", \"E2100\" ,1 ); /* or E2500 */\n table.addElt( 4771840, \"NIKON\", \"E990\" ,1 ); /* or E995, Oly C3030Z */\n table.addElt( 4775936, \"NIKON\", \"E3700\" ,1 ); /* or Optio 33WR */\n table.addElt( 5869568, \"NIKON\", \"E4300\" ,1 ); /* or DiMAGE Z2 */\n table.addElt( 5865472, \"NIKON\", \"E4500\" ,1 );\n table.addElt( 7438336, \"NIKON\", \"E5000\" ,1 ); /* or E5700 */\n table.addElt( 8998912, \"NIKON\", \"COOLPIX S6\" ,1 );\n table.addElt( 1976352, \"CASIO\", \"QV-2000UX\" ,1 );\n table.addElt( 3217760, \"CASIO\", \"QV-3*00EX\" ,1 );\n table.addElt( 6218368, \"CASIO\", \"QV-5700\" ,1 );\n table.addElt( 6054400, \"CASIO\", \"QV-R41\" ,1 );\n table.addElt( 7530816, \"CASIO\", \"QV-R51\" ,1 );\n table.addElt( 7684000, \"CASIO\", \"QV-4000\" ,1 );\n table.addElt( 4948608, \"CASIO\", \"EX-S100\" ,1 );\n table.addElt( 7542528, \"CASIO\", \"EX-Z50\" ,1 );\n table.addElt( 7753344, \"CASIO\", \"EX-Z55\" ,1 );\n table.addElt( 7426656, \"CASIO\", \"EX-P505\" ,1 );\n table.addElt( 9313536, \"CASIO\", \"EX-P600\" ,1 );\n table.addElt( 10979200, \"CASIO\", \"EX-P700\" ,1 );\n table.addElt( 3178560, \"PENTAX\", \"Optio S\" ,1 );\n table.addElt( 4841984, \"PENTAX\", \"Optio S\" ,1 );\n table.addElt( 6114240, \"PENTAX\", \"Optio S4\" ,1 ); /* or S4i */\n table.addElt( 10702848, \"PENTAX\", \"Optio 750Z\" ,1 );\n table.addElt( 12582980, \"Sinar\", \"\" ,0 );\n table.addElt( 33292868, \"Sinar\", \"\" ,0 );\n table.addElt( 44390468, \"Sinar\", \"\" ,0 );\n \n String[] corp =\n { \"Canon\", \"NIKON\", \"EPSON\", \"KODAK\", \"Kodak\", \"OLYMPUS\", \"PENTAX\",\n \"MINOLTA\", \"Minolta\", \"Konica\", \"CASIO\", \"Sinar\", \"Phase One\",\n \"SAMSUNG\", \"Mamiya\" };\n\n tiff_flip = flip = -1;\t/* 0 is valid, so -1 is unknown */\n filters = CTOJ.toUnsigned(-1);\n cr2_slice.at(0,(short)0);\n raw_height = raw_width = fuji_width = 0;\n maximum = height = width = top_margin = left_margin = 0;\n cdesc.setAt(0,(char) 0);\n desc.setAt(0,(char) 0);\n artist.setAt(0,(char) 0);\n make.setAt(0,(char)0);\n model.setAt(0,(char)0);\n model2.setAt(0,(char)0);\n iso_speed = shutter = aperture = focal_len = unique_id = 0;\n //Uc.memset (white, 0, white.sizeof());\n thumb_offset = thumb_length = thumb_width = thumb_height = 0;\n load_raw = null;\n thumb_load_raw = null;\n //write_thumb = & jpeg_thumb;\n data_offset = meta_length = tiff_bps = tiff_compress = 0;\n kodak_cbpp = zero_after_ff = dng_version = fuji_secondary = 0;\n timestamp = shot_order = tiff_samples = black = is_foveon = 0;\n data_error = false;\n zero_is_bad = false;\n pixel_aspect = is_raw = raw_color = use_gamma = 1;\n tile_length = Integer.MAX_VALUE;\n for (i=0; i < 4; i++) {\n cam_mul[i] = (i == 1 ? 1 : 0);\n pre_mul[i] = (i < 3 ?1:0);\n for (c=0; c < 3; c++) rgb_cam[c][i] = (c == i? 1: 0);\n }\n colors = 3;\n tiff_bps = 12;\n for (i=0; i < 0x4000; i++) curve.at(i, (short)i);\n profile_length = 0;\n\n order = (short)get2();\n hlen = get4();\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n CTOJ.fread (head, 1, 32, ifp);\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_END);\n fsize = CTOJ.ftell(ifp);\n if (( !cp.assign(CTOJ.memmem (head, 32, \"MMMM\", 4)).isNull()) ||\n ( !cp.assign(CTOJ.memmem (head, 32, \"IIII\", 4)).isNull())) {\n //parse_phase_one (cp.minus(head));\n if (cp.minus(head)!=0) parse_tiff(0);\n } else if (order == 0x4949 || order == 0x4d4d) {\n if (CTOJ.memcmp (head.plus(6),\"HEAPCCDR\",8) == 0) {\n data_offset = hlen;\n parse_ciff (hlen, fsize - hlen);\n } else {\n parse_tiff(0);\n }\n } else if ( CTOJ.memcmp (head,\"\\u00ff\\u00d8\\u00ff\\u00e1\",4) == 0 &&\n\t CTOJ.memcmp (head.plus(6),\"Exif\",4) == 0) {\n CTOJ.fseek (ifp, 4, CTOJ.SEEK_SET);\n data_offset = 4 + get2();\n CTOJ.fseek (ifp, data_offset, CTOJ.SEEK_SET);\n if (CTOJ.fgetc(ifp) != 0xff)\n parse_tiff(12);\n thumb_offset = 0;\n } else if ( CTOJ.memcmp (head,\"BM\",2)==0 &&\n\thead.at(26) == 1 && head.at(28) == 16 && head.at(30) == 0) {\n data_offset = 0x1000;\n order = 0x4949;\n CTOJ.fseek (ifp, 38, CTOJ.SEEK_SET);\n if (get4() == 2834 && get4() == 2834 && get4() == 0 && get4() == 4096) {\n Uc.strcpy (model, \"BMQ\");\n flip = 3;\n// goto nucore;\n Uc.strcpy (make, \"Nucore\");\n order = 0x4949;\n CTOJ.fseek (ifp, 10, CTOJ.SEEK_SET);\n data_offset += get4();\n get4();\n raw_width = get4();\n raw_height = get4();\n if (model.charAt(0) == 'B' && raw_width == 2597) {\n raw_width++;\n data_offset -= 0x1000;\n }\n }\n } else if ( CTOJ.memcmp (head,\"BR\",2) == 0) {\n Uc.strcpy (model, \"RAW\");\nnucore:\n Uc.strcpy (make, \"Nucore\");\n order = 0x4949;\n CTOJ.fseek (ifp, 10, CTOJ.SEEK_SET);\n data_offset += get4();\n get4();\n raw_width = get4();\n raw_height = get4();\n if (model.charAt(0) == 'B' && raw_width == 2597) {\n raw_width++;\n data_offset -= 0x1000;\n }\n } else if ( CTOJ.memcmp (head.plus(25),\"ARECOYK\",7) == 0) {\n Uc.strcpy (make, \"Contax\");\n Uc.strcpy (model,\"N Digital\");\n CTOJ.fseek (ifp, 33, CTOJ.SEEK_SET);\n get_timestamp(1);\n CTOJ.fseek (ifp, 60, CTOJ.SEEK_SET);\n for (c=0; c < 4; c++) cam_mul[c ^ (c >> 1)] = get4();\n } else if ( CTOJ.strcmp (head, \"PXN\") == 0) {\n Uc.strcpy (make, \"Logitech\");\n Uc.strcpy (model,\"Fotoman Pixtura\");\n } else if ( CTOJ.memcmp (head,\"FUJIFILM\",8) == 0) {\n CTOJ.fseek (ifp, 84, CTOJ.SEEK_SET);\n thumb_offset = get4();\n thumb_length = get4();\n CTOJ.fseek (ifp, 92, CTOJ.SEEK_SET);\n parse_fuji (get4());\n if (thumb_offset > 120) {\n CTOJ.fseek (ifp, 120, CTOJ.SEEK_SET);\n fuji_secondary = ((i = get4()) !=0 && true) ? 1:0;\n if (fuji_secondary != 0 && use_secondary != 0)\n\tparse_fuji (i);\n }\n CTOJ.fseek (ifp, 100, CTOJ.SEEK_SET);\n data_offset = get4();\n parse_tiff (thumb_offset+12);\n } else if ( CTOJ.memcmp (head,\"RIFF\",4)==0) {\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n //parse_riff();\n } else if (CTOJ.memcmp (head,\"DSC-Image\",9)==0)\n ;//parse_rollei();\n else if (CTOJ.memcmp (head,\"\\0MRM\",4)==0)\n parse_minolta(0);\n else if (CTOJ.memcmp (head,\"FOVb\",4)==0)\n ;//parse_foveon();\n else\n for (i=0; i < table.size(); i++)\n if (fsize == table.at(i).fsize) {\n\tUc.strcpy (make, table.at(i).make );\n\tUc.strcpy (model, table.at(i).model);\n\tif (table.at(i).withjpeg)\n\t ;//parse_external_jpeg();\n }\n if (make.charAt(0) == 0) ;//parse_smal (0, fsize);\n if (make.charAt(0) == 0) parse_jpeg (is_raw = 0);\n\n for (i=0; i < corp.length; i++)\n if (Uc.strstr (make, corp[i]) != null)\t\t/* Simplify company names */\n\tUc.strcpy (make, corp[i]);\n if ( Uc.strncmp (make,\"KODAK\",5) == 0) {\n make.setAt(16,(char)0); model.setAt(16, (char)0);\n }\n CharPtr cp2;\n cp2 = make.plus(Uc.strlen(make));\t\t/* Remove trailing spaces */\n while ( cp2.moinsmoins().etoile() == ' ') cp2.etoile((char)0);\n //while (*--cp == ' ') *cp = 0;\n cp2 = model.plus(Uc.strlen(model));\n while ( cp2.moinsmoins().etoile() == ' ') cp2.etoile((char)0);\n //while (*--cp == ' ') *cp = 0;\n i = Uc.strlen(make);\t\t\t/* Remove make from model */\n if ( Uc.strncmp (model, make, i)==0 && model.charAt(i++) == ' ')\n Uc.memmove (model, model.plus(i), 64-i);\n if ( Uc.strncmp (model,\"Digital Camera \",15) == 0)\n Uc.strcpy (model, model.plus(15));\n make.setAt(63,(char)0);\n model.setAt(63,(char)0);\n model2.setAt(63,(char)0);\n if ( is_raw == 0) return;\n\n if ((raw_height | raw_width) < 0)\n raw_height = raw_width = 0;\n if ( maximum == 0) maximum = (1 << tiff_bps) - 1;\n if ( height ==0) height = raw_height;\n if ( width == 0) width = raw_width;\n if (fuji_width != 0) {\n width = height + fuji_width;\n height = width - 1;\n pixel_aspect = 1;\n }\n if (height == 2624 && width == 3936)\t/* Pentax K10D and Samsung GX10 */\n { height = 2616; width = 3896; }\n if (height == 3136 && width == 4864)\t/* Pentax K20D */\n { height = 3124; width = 4688; } \n /*\n if (dng_version) {\n strcat (model,\" DNG\");\n if (filters == UINT_MAX) filters = 0;\n if (!filters)\n colors = tiff_samples;\n if (tiff_compress == 1)\n load_raw = & adobe_dng_load_raw_nc;\n if (tiff_compress == 7)\n load_raw = & adobe_dng_load_raw_lj;\n for (c=0; c < 4; c++) cam_mul[c] = pre_mul[c];\n goto dng_skip;\n }\n*/\n/* We'll try to decode anything from Canon or Nikon. */\n\n if ((is_canon = (Uc.strcmp(make,\"Canon\")==0))) {\n load_raw = CTOJ.memcmp (head.plus(6),\"HEAPCCDR\",8)!=0 ?\n\tnew LosslessJpegLoadRaw() : new CanonCompressedLoadRaw();\n //maximum = 0xfff;\n }\n if ( Uc.strcmp(make,\"NIKON\") == 0 && load_raw == null)\n load_raw = new NikonLoadRaw();\n if ( Uc.strncmp (make,\"OLYMPUS\",7) == 0)\n height += height & 1;\n\n/* Set parameters based on camera name (for non-DNG files). */\n\n if (is_foveon != 0) {\n if (height*2 < width) pixel_aspect = 0.5;\n if (height > width) pixel_aspect = 2;\n filters = 0;\n load_raw = new FoveonLoadRaw();\n //simple_coeff(0);\n } else if (is_canon && tiff_samples == 4) {\n filters = 0;\n load_raw = new CanonSrawLoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot 600\")==0) {\n height = 613;\n width = 854;\n raw_width = 896;\n pixel_aspect = 607/628.0;\n colors = 4;\n filters = 0xe1e4e1e4l;\n load_raw = new Canon600LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A5\")==0 ||\n\t Uc.strcmp(model,\"PowerShot A5 Zoom\") == 0) {\n height = 773;\n width = 960;\n raw_width = 992;\n pixel_aspect = 256/235.0;\n colors = 4;\n filters = 0x1e4e1e4el;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A50\") == 0) {\n height = 968;\n width = 1290;\n raw_width = 1320;\n colors = 4;\n filters = 0x1b4e4b1el;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot Pro70\") == 0) {\n height = 1024;\n width = 1552;\n colors = 4;\n filters = 0x1e4b4e1bl;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A460\") == 0) {\n height = 1960;\n width = 2616;\n raw_height = 1968;\n raw_width = 2664;\n top_margin = 4;\n left_margin = 4;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A530\") == 0) {\n height = 1984;\n width = 2620;\n raw_height = 1992;\n raw_width = 2672;\n top_margin = 6;\n left_margin = 10;\n load_raw = new CanonA5LoadRaw();\n raw_color = 0;\n } else if ( Uc.strcmp(model,\"PowerShot A610\") == 0) {\n //if (canon_s2is()) Uc.strcpy (model+10, \"S2 IS\"); // TODO\n height = 1960;\n width = 2616;\n raw_height = 1968;\n raw_width = 2672;\n top_margin = 8;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A620\") == 0) {\n height = 2328;\n width = 3112;\n raw_height = 2340;\n raw_width = 3152;\n top_margin = 12;\n left_margin = 36;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A720\") == 0) {\n height = 2472;\n width = 3298;\n raw_height = 2480;\n raw_width = 3336;\n top_margin = 5;\n left_margin = 6;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A630\") == 0) {\n height = 2472;\n width = 3288;\n raw_height = 2484;\n raw_width = 3344;\n top_margin = 6;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A640\") == 0) {\n height = 2760;\n width = 3672;\n raw_height = 2772;\n raw_width = 3736;\n top_margin = 6;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A650\") == 0) {\n height = 3024;\n width = 4032;\n raw_height = 3048;\n raw_width = 4104;\n top_margin = 12;\n left_margin = 48;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot S3 IS\") == 0) {\n height = 2128;\n width = 2840;\n raw_height = 2136;\n raw_width = 2888;\n top_margin = 8;\n left_margin = 44;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot Pro90 IS\") == 0) {\n width = 1896;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if (is_canon && raw_width == 2144) {\n height = 1550;\n width = 2088;\n top_margin = 8;\n left_margin = 4;\n if ( Uc.strcmp(model,\"PowerShot G1\")==0) {\n colors = 4;\n filters = 0xb4b4b4b4l;\n }\n } else if (is_canon && raw_width == 2224) {\n height = 1448;\n width = 2176;\n top_margin = 6;\n left_margin = 48;\n } else if (is_canon && raw_width == 2376) {\n height = 1720;\n width = 2312;\n top_margin = 6;\n left_margin = 12;\n } else if (is_canon && raw_width == 2672) {\n height = 1960;\n width = 2616;\n top_margin = 6;\n left_margin = 12;\n } else if (is_canon && raw_width == 3152) {\n height = 2056;\n width = 3088;\n top_margin = 12;\n left_margin = 64;\n if (unique_id == 0x80000170)\n adobe_coeff (\"Canon\",\"EOS 300D\");\n// maximum = 0xfa0;\n } else if (is_canon && raw_width == 3160) {\n height = 2328;\n width = 3112;\n top_margin = 12;\n left_margin = 44;\n } else if (is_canon && raw_width == 3344) {\n height = 2472;\n width = 3288;\n top_margin = 6;\n left_margin = 4;\n } else if ( Uc.strcmp(model,\"EOS D2000C\")==0) {\n filters = 0x61616161l;\n black = curve.at(200);\n } else if (is_canon && raw_width == 3516) {\n top_margin = 14;\n left_margin = 42;\n if (unique_id == 0x80000189)\n adobe_coeff (\"Canon\",\"EOS 350D\");\n canon_cr2();\n } else if (is_canon && raw_width == 3596) {\n top_margin = 12;\n left_margin = 74;\n canon_cr2();\n } else if (is_canon && raw_width == 3944) {\n height = 2602;\n width = 3908;\n top_margin = 18;\n left_margin = 30;\n } else if (is_canon && raw_width == 3948) {\n top_margin = 18;\n left_margin = 42;\n height -= 2;\n if (unique_id == 0x80000236)\n adobe_coeff (\"Canon\",\"EOS 400D\");\n canon_cr2();\n } else if (is_canon && raw_width == 3984) {\n top_margin = 20;\n left_margin = 76;\n height -= 2;\n canon_cr2();\n } else if (is_canon && raw_width == 4104) {\n height = 3024;\n width = 4032;\n top_margin = 12;\n left_margin = 48;\n } else if (is_canon && raw_width == 4312) {\n top_margin = 18;\n left_margin = 22;\n height -= 2;\n if (unique_id == 0x80000176)\n adobe_coeff (\"Canon\",\"EOS 450D\");\n canon_cr2();\n } else if (is_canon && raw_width == 4476) {\n top_margin = 34;\n left_margin = 90;\n //maximum = 0xe6c;\n canon_cr2();\n } else if (is_canon && raw_width == 1208) {\n top_margin = 51;\n left_margin = 62;\n raw_width = width *= 4;\n maximum = 0x3d93;\n canon_cr2();\n } else if (is_canon && raw_width == 5108) {\n top_margin = 13;\n left_margin = 98;\n //maximum = 0xe80;\n canon_cr2();\n } else if (is_canon && raw_width == 5712) {\n height = 3752;\n width = 5640;\n top_margin = 20;\n left_margin = 62;\n } else if (Uc.strcmp(model,\"D1\")==0) {\n cam_mul[0] *= 256/527.0;\n cam_mul[2] *= 256/317.0;\n } else if (Uc.strcmp(model,\"D1X\")==0) {\n width -= 4;\n //ymag = 2;\n pixel_aspect = 0.5;\n } else if ( Uc.strcmp(model,\"D40X\")==0 ||\n\t Uc.strcmp(model,\"D60\")==0 ||\n\t Uc.strcmp(model,\"D80\")==0) {\n height -= 3;\n width -= 4;\n } else if (Uc.strncmp(model,\"D40\",3)==0 ||\n\t Uc.strncmp(model,\"D50\",3)==0 ||\n\t Uc.strncmp(model,\"D70\",3)==0) {\n width--;\n } else if ( Uc.strcmp(model,\"D90\") == 0) {\n width -= 42;\n } else if (Uc.strcmp(model,\"D100\")==0) {\n if (tiff_compress == 34713 && !nikon_is_compressed())\n load_raw = new NikonLoadRaw();\n raw_width = (width += 3) + 3;\n maximum = 0xf44;\n } else if (Uc.strcmp(model,\"D200\")==0) {\n left_margin = 1;\n width -= 4;\n maximum = 0xfbc;\n filters = 0x94949494l;\n } else if (Uc.strncmp(model,\"D2H\",3)==0) {\n left_margin = 6;\n width -= 14;\n } else if (Uc.strcmp(model,\"D2X\")==0) {\n if (width == 3264) width -= 32;\n width -= 8;\n } else if ( Uc.strcmp(model,\"D3\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"D300\")==0) {\n width -= 32;\n } else if (fsize == 1581060) {\n height = 963;\n width = 1287;\n raw_width = 1632;\n load_raw = new NikonE900LoadRaw();\n maximum = 0x3f4;\n colors = 4;\n filters = 0x1e1e1e1el;\n //simple_coeff(3);\n pre_mul[0] = 1.2085f;\n pre_mul[1] = 1.0943f;\n pre_mul[3] = 1.1103f;\n } else if (fsize == 2465792) {\n height = 1203;\n width = 1616;\n raw_width = 2048;\n load_raw = new NikonE900LoadRaw();\n maximum = 0x3dd;\n colors = 4;\n filters = 0x4b4b4b4bl;\n adobe_coeff (\"NIKON\",\"E950\");\n } else if (fsize == 4771840) {\n height = 1540;\n width = 2064;\n colors = 4;\n filters = 0xe1e1e1e1l;\n load_raw = new NikonLoadRaw();\n// if (!timestamp && nikon_e995())\n// Uc.strcpy (model, \"E995\");\n if (Uc.strcmp(model,\"E995\") != 0) {\n filters = 0xb4b4b4b4l;\n //simple_coeff(3);\n pre_mul[0] = 1.196f;\n pre_mul[1] = 1.246f;\n pre_mul[2] = 1.018f;\n }\n } else if (Uc.strcmp(model,\"E2100\")==0) {\n /*\n if ( timestamp==0 && !nikon_e2100()) {\n Uc.strcpy (model, \"E2500\");\n height = 1204;\n width = 1616;\n colors = 4;\n filters = 0x4b4b4b4b;\n\n }\n else {\n height = 1206;\n width = 1616;\n load_raw = new NikonE2100LoadRaw();\n pre_mul[0] = 1.945;\n pre_mul[2] = 1.040;\n }\n */\n } else if ( Uc.strcmp(model,\"E2500\")==0) {\ncp_e2500:\n Uc.strcpy (model, \"E2500\");\n height = 1204;\n width = 1616;\n colors = 4;\n filters = 0x4b4b4b4bl;\n } else if (fsize == 4775936) {\n height = 1542;\n width = 2064;\n load_raw = new NikonE2100LoadRaw();\n pre_mul[0] = 1.818f;\n pre_mul[2] = 1.618f;\n //if (!timestamp) nikon_3700();\n if (model.charAt(0) == 'E' && Uc.atoi(model.plus(1)) < 3700)\n filters = 0x49494949l;\n if (Uc.strcmp(model,\"Optio 33WR\")==0) {\n flip = 1;\n filters = 0x16161616l;\n pre_mul[0] = 1.331f;\n pre_mul[2] = 1.820f;\n }\n } else if (fsize == 5869568) {\n height = 1710;\n width = 2288;\n filters = 0x16161616l;\n if ( timestamp==0 && minolta_z2()!=0) {\n Uc.strcpy (make, \"Minolta\");\n Uc.strcpy (model,\"DiMAGE Z2\");\n }\n if (make.charAt(0) == 'M')\n load_raw = new NikonE2100LoadRaw();\n } else if ( Uc.strcmp(model,\"E4500\") == 0) {\n height = 1708;\n width = 2288;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if (fsize == 7438336) {\n height = 1924;\n width = 2576;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if ( Uc.strncmp(model,\"R-D1\",4) == 0) {\n tiff_compress = 34713;\n load_raw = new NikonLoadRaw();\n } else if (Uc.strcmp(model,\"FinePix S5100\")==0 ||\n\t Uc.strcmp(model,\"FinePix S5500\")==0) {\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3e00;\n } else if ( Uc.strcmp(make,\"FUJIFILM\") == 0) {\n if ( Uc.strcmp(model.plus(7),\"S2Pro\") == 0) {\n Uc.strcpy (model.plus(7),\" S2Pro\");\n height = 2144;\n width = 2880;\n flip = 6;\n } else\n maximum = 0x3e00;\n if (is_raw == 2 && shot_select != 0)\n maximum = 0x2f00;\n top_margin = (raw_height - height)/2;\n left_margin = (raw_width - width )/2;\n if (is_raw == 2)\n data_offset += ((shot_select > 0)?1:0) * ( fuji_layout!=0 ?\n\t\t(raw_width *= 2) : raw_height*raw_width*2 );\n fuji_width = width >> (fuji_layout!=0 ? 0 : 1);\n width = (height >> fuji_layout) + fuji_width;\n raw_height = height;\n height = width - 1;\n load_raw = new FujiLoadRaw();\n if ((fuji_width & 1) == 0) filters = 0x49494949l;\n } else if ( Uc.strcmp(model,\"RD175\")==0) {\n height = 986;\n width = 1534;\n data_offset = 513;\n filters = 0x61616161l;\n load_raw = new MinoltaRd175LoadRaw();\n } else if ( Uc.strcmp(model,\"KD-400Z\")==0) {\n height = 1712;\n width = 2312;\n raw_width = 2336;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3df;\n order = 0x4d4d;\n } else if ( Uc.strcmp(model,\"KD-510Z\")==0) {\n\theight = 1956;\n\twidth = 2607;\n\traw_width = 2624;\n } else if ( Uc.strcasecmp(make,\"MINOLTA\")==0) {\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xf7d;\n if ( Uc.strncmp(model,\"DiMAGE A\",8)==0) {\n if (Uc.strcmp(model,\"DiMAGE A200\")==0)\n\tfilters = 0x49494949l;\n load_raw = new Packed12LoadRaw();\n maximum = model.charAt(8) == '1' ? 0xf8b : 0xfff;\n } else if ( Uc.strncmp(model,\"ALPHA\",5)==0 ||\n\t Uc.strncmp(model,\"DYNAX\",5)==0 ||\n\t Uc.strncmp(model,\"MAXXUM\",6)==0) {\n Uc.sprintf (model.plus(20), \"DYNAX %-10s\", model.plus(6+((model.charAt(0)=='M')?1:0)));\n adobe_coeff (make, model.plus(20));\n load_raw = new Packed12LoadRaw();\n maximum = 0xffb;\n } else if (Uc.strncmp(model,\"DiMAGE G\",8)==0) {\n if (model.charAt(8) == '4') {\n\theight = 1716;\n\twidth = 2304;\n } else if (model.charAt(8) == '5') {\nkonica_510z:\n\theight = 1956;\n\twidth = 2607;\n\traw_width = 2624;\n } else if (model.charAt(8) == '6') {\n\theight = 2136;\n\twidth = 2848;\n }\n data_offset += 14;\n filters = 0x61616161l;\nkonica_400z:\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3df;\n order = 0x4d4d;\n }\n } else if ( Uc.strcmp(model,\"*ist DS\")==0) {\n height -= 2;\n } else if ( Uc.strcmp(model,\"Optio S\")==0) {\n if (fsize == 3178560) {\n height = 1540;\n width = 2064;\n load_raw = new EightBitLoadRaw();\n cam_mul[0] *= 4;\n cam_mul[2] *= 4;\n pre_mul[0] = 1.391f;\n pre_mul[2] = 1.188f;\n } else {\n height = 1544;\n width = 2068;\n raw_width = 3136;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf7c;\n pre_mul[0] = 1.137f;\n pre_mul[2] = 1.453f;\n }\n } else if (Uc.strncmp(model,\"Optio S4\",8)==0) {\n height = 1737;\n width = 2324;\n raw_width = 3520;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf7a;\n pre_mul[0] = 1.980f;\n pre_mul[2] = 1.570f;\n } else if (Uc.strcmp(model,\"STV680 VGA\")==0) {\n height = 484;\n width = 644;\n load_raw = new EightBitLoadRaw();\n flip = 2;\n filters = 0x16161616l;\n black = 16;\n pre_mul[0] = 1.097f;\n pre_mul[2] = 1.128f;\n } else if (Uc.strcmp(model,\"KAI-0340\")==0) {\n height = 477;\n width = 640;\n order = 0x4949;\n data_offset = 3840;\n load_raw = new UnpackedLoadRaw() ;\n pre_mul[0] = 1.561f;\n pre_mul[2] = 2.454f;\n } else if ( Uc.strcmp(model,\"531C\")==0) {\n height = 1200;\n width = 1600;\n load_raw = new UnpackedLoadRaw() ;\n filters = 0x49494949l;\n pre_mul[1] = 1.218f;\n } else if ( Uc.strcmp(model,\"F-145C\")==0) {\n height = 1040;\n width = 1392;\n load_raw = new EightBitLoadRaw();\n } else if ( Uc.strcmp(model,\"F-201C\")==0) {\n height = 1200;\n width = 1600;\n load_raw = new EightBitLoadRaw();\n } else if (Uc.strcmp(model,\"F-510C\")==0) {\n height = 1958;\n width = 2588;\n load_raw = fsize < 7500000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n maximum = 0xfff0;\n } else if (Uc.strcmp(model,\"F-810C\")==0) {\n height = 2469;\n width = 3272;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xfff0;\n } else if (Uc.strcmp(model,\"XCD-SX910CR\")==0) {\n height = 1024;\n width = 1375;\n raw_width = 1376;\n filters = 0x49494949l;\n maximum = 0x3ff;\n load_raw = fsize < 2000000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n } else if (Uc.strcmp(model,\"2010\")==0) {\n height = 1207;\n width = 1608;\n order = 0x4949;\n filters = 0x16161616l;\n data_offset = 3212;\n maximum = 0x3ff;\n load_raw = new UnpackedLoadRaw() ;\n } else if (Uc.strcmp(model,\"A782\")==0) {\n height = 3000;\n width = 2208;\n filters = 0x61616161l;\n load_raw = fsize < 10000000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n maximum = 0xffc0;\n } else if (Uc.strcmp(model,\"3320AF\")==0) {\n height = 1536;\n raw_width = width = 2048;\n filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3ff;\n pre_mul[0] = 1.717f;\n pre_mul[2] = 1.138f;\n CTOJ.fseek (ifp, 0x300000, CTOJ.SEEK_SET);\n// if ((order = guess_byte_order(0x10000)) == 0x4d4d) {\n// height -= (top_margin = 16);\n// width -= (left_margin = 28);\n// maximum = 0xf5c0;\n// Uc.strcpy (make, \"ISG\");\n// model[0] = 0;\n// }\n } else if ( Uc.strcmp(make,\"Imacon\")==0) {\n Uc.sprintf (model, \"Ixpress %d-Mp\", height*width/1000000);\n load_raw = new ImaconFullLoadRaw();\n if (filters != 0) {\n if ((left_margin & 1)!= 0) filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n }\n maximum = 0xffff;\n } else if ( Uc.strcmp(make,\"Sinar\")==0) {\n if (CTOJ.memcmp(head,\"8BPS\",4) == 0) {\n CTOJ.fseek (ifp, 14, CTOJ.SEEK_SET);\n height = get4();\n width = get4();\n filters = 0x61616161l;\n data_offset = 68;\n }\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3fff;\n } else if (Uc.strcmp(make,\"Leaf\")==0) {\n maximum = 0x3fff;\n if (tiff_samples > 1) filters = 0;\n if (tiff_samples > 1 || tile_length < raw_height)\n load_raw = new LeafHdrLoadRaw();\n if ((width | height) == 2048) {\n if (tiff_samples == 1) {\n\tfilters = 1;\n\tUc.strcpy (cdesc, \"RBTG\");\n\tUc.strcpy (model, \"CatchLight\");\n\ttop_margin = 8; left_margin = 18; height = 2032; width = 2016;\n } else {\n\tUc.strcpy (model, \"DCB2\");\n\ttop_margin = 10; left_margin = 16; height = 2028; width = 2022;\n }\n } else if (width+height == 3144+2060) {\n if ( model.charAt(0) == 0) Uc.strcpy (model, \"Cantare\");\n if (width > height) {\n\t top_margin = 6; left_margin = 32; height = 2048; width = 3072;\n\tfilters = 0x61616161l;\n } else {\n\tleft_margin = 6; top_margin = 32; width = 2048; height = 3072;\n\tfilters = 0x16161616l;\n }\n if ( cam_mul[0] == 0 || model.charAt(0) == 'V') filters = 0;\n } else if (width == 2116) {\n Uc.strcpy (model, \"Valeo 6\");\n height -= 2 * (top_margin = 30);\n width -= 2 * (left_margin = 55);\n filters = 0x49494949l;\n } else if (width == 3171) {\n Uc.strcpy (model, \"Valeo 6\");\n height -= 2 * (top_margin = 24);\n width -= 2 * (left_margin = 24);\n filters = 0x16161616l;\n }\n } else if ( Uc.strcmp(make,\"LEICA\")==0 || Uc.strcmp(make,\"Panasonic\")==0) {\n maximum = 0xfff0;\n if ((fsize-data_offset) / (width*8/7) == height)\n load_raw = new PanasonicLoadRaw();\n if (load_raw==null) load_raw = new UnpackedLoadRaw() ;\n if (width == 2568)\n adobe_coeff (\"Panasonic\",\"DMC-LC1\");\n else if (width == 3304) {\n maximum = 0xf94c;\n width -= 16;\n adobe_coeff (\"Panasonic\",\"DMC-FZ30\");\n } else if ( width == 3330) {\n width = 3291;\n left_margin = 9;\n maximum = 0xf7f0;\nfz18:\tif (height > 2480)\n\t height = 2480 - (top_margin = 10);\n\tfilters = 0x49494949l;\n\tzero_is_bad = true;\n } else if (width == 3690) {\n maximum = 0xf7f0;\n height -= 3;\n width = 3672;\n left_margin = 3;\n filters = 0x49494949l;\n adobe_coeff (\"Panasonic\",\"DMC-FZ50\");\n } else if (width == 3770) {\n height = 2760;\n width = 3672;\n top_margin = 15;\n left_margin = 17;\n adobe_coeff (\"Panasonic\",\"DMC-FZ50\");\n } else if (width == 3880) {\n maximum = 0xf7f0;\n width -= 22;\n left_margin = 6;\n adobe_coeff (\"Panasonic\",\"DMC-LX1\");\n } else if (width == 4290) {\n height--;\n width = 4248;\n left_margin = 3;\n filters = 0x49494949l;\n adobe_coeff (\"Panasonic\",\"DMC-LX2\");\n } else if (width == 4330) {\n height = 2400;\n width = 4248;\n top_margin = 15;\n left_margin = 17;\n adobe_coeff (\"Panasonic\",\"DMC-LX2\");\n }\n } else if ( Uc.strcmp(model,\"E-1\")==0) {\n filters = 0x61616161l;\n maximum = 0xfff0;\n black = 1024;\n } else if ( Uc.strcmp(model,\"E-10\")==0) {\n maximum = 0xfff0;\n black = 2048;\n } else if (Uc.strncmp(model,\"E-20\",4)==0) {\n maximum = 0xffc0;\n black = 2560;\n } else if ( Uc.strcmp(model,\"E-300\")==0 ||\n\t Uc.strcmp(model,\"E-500\")==0) {\n width -= 20;\n maximum = 0xfc30;\n } else if (Uc.strcmp(model,\"E-330\")==0) {\n width -= 30;\n } else if (Uc.strcmp(model,\"C770UZ\")==0) {\n height = 1718;\n width = 2304;\n filters = 0x16161616l;\n load_raw = new NikonE2100LoadRaw();\n } else if (Uc.strcmp(make,\"OLYMPUS\")==0) {\n load_raw = new OlympusCseriesLoadRaw();\n if ( Uc.strcmp(model,\"C5050Z\")==0 ||\n\tUc.strcmp(model,\"C8080WZ\")==0)\n filters = 0x16161616l;\n if (Uc.strcmp(model,\"SP500UZ\")==0)\n filters = 0x49494949l;\n } else if (Uc.strcmp(model,\"N Digital\")==0) {\n height = 2047;\n width = 3072;\n filters = 0x61616161l;\n data_offset = 0x1a00;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf1e;\n } else if (Uc.strcmp(model,\"DSC-F828\")==0) {\n width = 3288;\n left_margin = 5;\n data_offset = 862144;\n load_raw = new SonyLoadRaw();\n filters = 0x9c9c9c9cl;\n colors = 4;\n Uc.strcpy (cdesc, \"RGBE\");\n } else if (Uc.strcmp(model,\"DSC-V3\")==0) {\n width = 3109;\n left_margin = 59;\n data_offset = 787392;\n load_raw = new SonyLoadRaw();\n } else if (Uc.strcmp(make,\"SONY\")==0 && raw_width == 3984) {\n adobe_coeff (\"SONY\",\"DSC-R1\");\n width = 3925;\n order = 0x4d4d;\n } else if (Uc.strcmp(model,\"DSLR-A100\")==0) {\n height--;\n load_raw = new SonyArwLoadRaw();\n maximum = 0xfeb;\n } else if (Uc.strncmp(model,\"P850\",4)==0) {\n maximum = 0xf7c;\n } else if (Uc.strcasecmp(make,\"KODAK\")==0) {\n if (filters == CTOJ.UINT_MAX) filters = 0x61616161l;\n if (Uc.strncmp(model,\"NC2000\",6)==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"EOSDCS3B\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"EOSDCS1\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS420\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS460\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS460A\")==0) {\n width -= 4;\n left_margin = 2;\n colors = 1;\n filters = 0;\n } else if (Uc.strcmp(model,\"DCS660M\")==0) {\n black = 214;\n colors = 1;\n filters = 0;\n } else if (Uc.strcmp(model,\"DCS760M\")==0) {\n colors = 1;\n filters = 0;\n }\n if (load_raw.getClass().equals( EightBitLoadRaw.class))\n\tload_raw = new KodakEasyLoadRaw();\n if (Uc.strstr(model,\"DC25\") != null) {\n Uc.strcpy (model, \"DC25\");\n data_offset = 15424;\n }\n if (Uc.strncmp(model,\"DC2\",3)==0) {\n height = 242;\n if (fsize < 100000) {\n\traw_width = 256; width = 249;\n } else {\n\traw_width = 512; width = 501;\n }\n data_offset += raw_width + 1;\n colors = 4;\n filters = 0x8d8d8d8dl;\n //simple_coeff(1);\n pre_mul[1] = 1.179f;\n pre_mul[2] = 1.209f;\n pre_mul[3] = 1.036f;\n load_raw = new KodakEasyLoadRaw();\n } else if (Uc.strcmp(model,\"40\")==0) {\n Uc.strcpy (model, \"DC40\");\n height = 512;\n width = 768;\n data_offset = 1152;\n// load_raw = new KodakRadcLoadRaw();\n } else if (Uc.strstr(model,\"DC50\") != null) {\n Uc.strcpy (model, \"DC50\");\n height = 512;\n width = 768;\n data_offset = 19712;\n // load_raw = new KodakRadcLoadRaw();\n } else if (Uc.strstr(model,\"DC120\") != null) {\n Uc.strcpy (model, \"DC120\");\n height = 976;\n width = 848;\n pixel_aspect = height/0.75/width;\n// load_raw = tiff_compress == 7 ?\n//\tnew KodakJpegLoadRaw() : new KodakDc120LoadRaw();\n }\n } else if (Uc.strcmp(model,\"Fotoman Pixtura\")==0) {\n height = 512;\n width = 768;\n data_offset = 3632;\n load_raw = new KodakRadcLoadRaw();\n filters = 0x61616161l;\n //simple_coeff(2);\n } else if (Uc.strcmp(make,\"Rollei\")==0) {\n switch (raw_width) {\n case 1316:\n\theight = 1030;\n\twidth = 1300;\n\ttop_margin = 1;\n\tleft_margin = 6;\n\tbreak;\n case 2568:\n\theight = 1960;\n\twidth = 2560;\n\ttop_margin = 2;\n\tleft_margin = 8;\n }\n filters = 0x16161616l;\n load_raw = new RolleiLoadRaw();\n pre_mul[0] = 1.8f;\n pre_mul[2] = 1.3f;\n } else if ( Uc.strcmp(model,\"PC-CAM 600\")==0) {\n height = 768;\n data_offset = width = 1024;\n filters = 0x49494949l;\n load_raw = new EightBitLoadRaw();\n pre_mul[0] = 1.14f;\n pre_mul[2] = 2.73f;\n } else if ( Uc.strcmp(model,\"QV-2000UX\")==0) {\n height = 1208;\n width = 1632;\n data_offset = width * 2;\n load_raw = new EightBitLoadRaw();\n } else if (fsize == 3217760) {\n height = 1546;\n width = 2070;\n raw_width = 2080;\n load_raw = new EightBitLoadRaw();\n } else if (Uc.strcmp(model,\"QV-4000\")==0) {\n height = 1700;\n width = 2260;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xffff;\n } else if (Uc.strcmp(model,\"QV-5700\")==0) {\n height = 1924;\n width = 2576;\n //load_raw = new CasioQv5700LoadRaw();\n } else if (Uc.strcmp(model,\"QV-R51\")==0) {\n height = 1926;\n width = 2576;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.340f;\n pre_mul[2] = 1.672f;\n } else if (Uc.strcmp(model,\"EX-S100\")==0) {\n height = 1544;\n width = 2058;\n raw_width = 3136;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.631f;\n pre_mul[2] = 1.106f;\n } else if (Uc.strcmp(model,\"EX-Z50\")==0) {\n height = 1931;\n width = 2570;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 2.529f;\n pre_mul[2] = 1.185f;\n } else if (Uc.strcmp(model,\"EX-Z55\")==0) {\n height = 1960;\n width = 2570;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.520f;\n pre_mul[2] = 1.316f;\n } else if (Uc.strcmp(model,\"EX-P505\")==0) {\n height = 1928;\n width = 2568;\n raw_width = 3852;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 2.07f;\n pre_mul[2] = 1.88f;\n } else if (fsize == 9313536) {\t/* EX-P600 or QV-R61 */\n height = 2142;\n width = 2844;\n raw_width = 4288;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.797f;\n pre_mul[2] = 1.219f;\n } else if (Uc.strcmp(model,\"EX-P700\")==0) {\n height = 2318;\n width = 3082;\n raw_width = 4672;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.758f;\n pre_mul[2] = 1.504f;\n } else if (Uc.strcmp(make,\"Nucore\")==0) {\n filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n if (width == 2598) {\n filters = 0x16161616l;\n //load_raw = new NucoreLoadRaw();\n flip = 2;\n }\n }\n if ( model.charAt(0)==0)\n Uc.sprintf (model, \"%dx%d\", width, height);\n if (filters == CTOJ.UINT_MAX) \n filters = 0x94949494l;\n if (raw_color != 0) adobe_coeff (make, model);\n if (thumb_offset!=0 && thumb_height==0) {\n CTOJ.fseek (ifp, thumb_offset, CTOJ.SEEK_SET);\n if (ljpeg_start (jh, 1)!=0) {\n thumb_width = jh.wide;\n thumb_height = jh.high;\n }\n }\ndng_skip:\n if (load_raw==null || height==0) is_raw = 0;\n if (flip == -1) flip = tiff_flip;\n if (flip == -1) flip = 0;\n if (cdesc.charAt(0)==0)\n Uc.strcpy (cdesc, colors == 3 ? \"RGB\":\"GMCY\");\n if ( raw_height == 0) raw_height = height;\n if ( raw_width == 0) raw_width = width;\n if (filters!= 0 && colors == 3)\n for (i=0; i < 32; i+=4) {\n if ((filters >> i & 15) == 9) {\n\tfilters |= 2 << i;\n filters = CTOJ.toUnsigned((int)filters);\n }\n if ((filters >> i & 15) == 6) {\n\tfilters |= 8 << i;\n filters = CTOJ.toUnsigned((int)filters);\n }\n }\n}", "java.lang.String getField1658();", "private static SysexMessage buildDump(byte function, int channel, byte hdrData[], byte inputData[]) {\r\n SysexMessage msg = new SysexMessage();\r\n byte[] msgData = new byte[hdrData.length + inputData.length + 6]; // 5 for header, 1 for\r\n // last F7\r\n \r\n int i = 0;\r\n msgData[i++] = (byte) 0xF0;\r\n msgData[i++] = (byte) 0x42; // Korg ID\r\n msgData[i++] = (byte) (0x30 | channel); // 0x3n Format ID, n = channel\r\n // number\r\n msgData[i++] = (byte) 0x50; // Triton series ID\r\n msgData[i++] = (byte) function;\r\n // Function header\r\n if (hdrData != null) {\r\n for (int j = 0; j < hdrData.length; ++j) {\r\n msgData[i++] = hdrData[j];\r\n }\r\n }\r\n // Data\r\n if (inputData != null) {\r\n for (int j = 0; j < inputData.length; ++j) {\r\n msgData[i++] = inputData[j];\r\n }\r\n }\r\n msgData[i++] = (byte) 0xF7; // end of exclusive\r\n \r\n try {\r\n msg.setMessage(msgData, msgData.length);\r\n }\r\n catch (InvalidMidiDataException e) {\r\n e.printStackTrace();\r\n return null;\r\n }\r\n return msg;\r\n }", "java.lang.String getField1660();", "java.lang.String getField1651();", "java.lang.String getField1696();", "short[][] productionTable();", "java.lang.String getField1640();", "public char[] info() {\n\t\treturn null;\r\n\t}", "java.lang.String getField1652();", "protected UniqueInfo cpui() { return hpcpui(columnCampCode()); }", "java.lang.String getField1662();", "private static String m66046a(byte[] bArr) {\n int i = 0;\n int i2 = 0;\n int i3 = -1;\n int i4 = 0;\n while (i2 < bArr.length) {\n int i5 = i2;\n while (i5 < 16 && bArr[i5] == 0 && bArr[i5 + 1] == 0) {\n i5 += 2;\n }\n int i6 = i5 - i2;\n if (i6 > i4 && i6 >= 4) {\n i3 = i2;\n i4 = i6;\n }\n i2 = i5 + 2;\n }\n C13887c cVar = new C13887c();\n while (i < bArr.length) {\n if (i == i3) {\n cVar.writeByte(58);\n i += i4;\n if (i == 16) {\n cVar.writeByte(58);\n }\n } else {\n if (i > 0) {\n cVar.writeByte(58);\n }\n cVar.m59547e((long) (((bArr[i] & 255) << 8) | (bArr[i + 1] & 255)));\n i += 2;\n }\n }\n return cVar.mo43923w();\n }", "java.lang.String getField1326();", "private void populateFieldArray() \r\n\t{\r\n\t\tInteger fieldId;\r\n\t\t/** get input column names which is populated based on the input file\r\n\t\t * format specified in the command file */\r\n\t\tString [] inputColNames = getInputColNames();\r\n\t\tint arrLength; /** Number of columns in the input file*/\r\n\t\tif (null == inputColNames)\r\n\t\t{\r\n\t\t\t/** set array length 2 for two default columns (probeset and chip description)*/\r\n\t\t\tarrLength = 2; \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/** Basic Probeset ID and description fields are present for all files \r\n\t\t\t * but the other supplementary information like accession number, unigene and\r\n\t\t\t * entrezgene ids may be present one or many based on the file format */\r\n\t\t\tarrLength = 2 + inputColNames.length; /** add other columns*/\r\n\t\t}\r\n\t\t/** Field array base elements are Probeset and Chip_Desc plus any of acc_no, ugid, & locusid/organism */\r\n\t\tfieldIndexArray = new int [arrLength];\r\n\t\t\r\n\t\t/** Now 0th field in input file is probeset*/\r\n\t\tfieldIndexArray[0] = ((Integer) fieldIdTable.get(\"CIN_PROBESET\")).intValue();\r\n\t\t\r\n\t\tif (inputColNames != null) \r\n\t\t{\r\n\t\t\t/** get the field ids for all column names*/\r\n\t\t\tfor (int i=0; i< inputColNames.length; i++)\r\n\t\t\t{\r\n\t\t\t\t/** Pick up the column from the list of inout columns as obtained based on\r\n\t\t\t\t * the input file format. Then fetch its ID from the FieldIdTable */\r\n\t\t\t\tfieldId = (Integer) fieldIdTable.get(inputColNames[i].toUpperCase());\r\n\t\t\t\tif (null == fieldId)\r\n\t\t\t\t{\r\n\t\t\t\t\t/** no such column name allowed*/\r\n\t\t\t\t\tLogger.log(\"Column name \" + inputColNames[i] + \" is not a valid name\",Logger.WARNING);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/** add the field id to the index array. Thus fieldIndexArray will have all the \r\n\t\t\t\t\t * column names depending on the file format*/\r\n\t\t\t\t\tfieldIndexArray[1+i] = fieldId.intValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t/** ChipDesc field is the last column in the input file. First we have added the default first field\r\n\t\t * as probeset id , then all the middle fields based on the file format and now the last default\r\n\t\t * field which is chipdescription */\r\n\t\tfieldIndexArray[fieldIndexArray.length-1] = ((Integer) fieldIdTable.get(\"CIN_CHIP_DESCRIPTION\")).intValue();\r\n\t\tLogger.log(\"populateFieldArray complete \",Logger.DEBUG);\r\n\t}", "com.google.protobuf.ByteString getDetailsBytes();", "public String toString() {\n return this.UID;\n }", "java.lang.String getField1650();", "com.google.protobuf.ByteString\n getField1165Bytes();", "java.lang.String getField1283();", "public String[] getInfoData();", "java.lang.String getField1128();", "private String getMultiCoreFunctions() throws IOException {\n //If dollar sign is at the end of a line, it means interpret this line as hex. Don't try to convert it.\n //Syntax: wake(a,b) - wake core a (mod num cores) at pc b\n BufferedReader reader = new BufferedReader(new FileReader(\"standardlib.txt\"));\n StringBuilder newProgram = new StringBuilder();\n String nxt;\n String lib = \"\";\n while ((nxt = reader.readLine()) != null) {\n if (nxt.strip().length() > 0 && nxt.strip().charAt(0) == '~') {\n int stackNum = Integer.parseInt(nxt.strip().substring(1));\n int startOfStack = nextDataSegmentAddress + stackNum * Constants.stackSize;\n int upper = startOfStack / 256;\n int lower = startOfStack % 256;\n if (upper == 0 && lower < 128 || upper == 255 && lower >= 128) {\n nxt = \"\\t$8\" + Integer.toHexString(lower / 16) + Integer.toHexString(lower % 16) + \"5\";\n } else {\n nxt = \"\\t$8\" + Integer.toHexString(lower / 16) + Integer.toHexString(lower % 16) + \"5\\n\";\n nxt = nxt + \"\\t$9\" + Integer.toHexString(upper / 16) + Integer.toHexString(upper % 16) + \"5\";\n }\n }\n lib = lib + (nxt + \"\\n\");\n }\n return lib;\n }", "java.lang.String getField1655();", "java.lang.String getField1666();", "java.lang.String getField1633();", "com.google.protobuf.ByteString\n getField1646Bytes();", "java.lang.String getField1110();", "public static String getManufacturerID(byte[] edid) {\n // Bytes 8-9 are manufacturer ID in 3 5-bit characters.\n String temp = String\n .format(\"%8s%8s\", Integer.toBinaryString(edid[8] & 0xFF), Integer.toBinaryString(edid[9] & 0xFF))\n .replace(Symbol.C_SPACE, '0');\n Logger.debug(\"Manufacurer ID: {}\", temp);\n return String.format(\"%s%s%s\", (char) (64 + Integer.parseInt(temp.substring(1, 6), 2)),\n (char) (64 + Integer.parseInt(temp.substring(7, 11), 2)),\n (char) (64 + Integer.parseInt(temp.substring(12, Normal._16), 2))).replace(Symbol.AT, Normal.EMPTY);\n }", "public ArrayList<ArrayList<ArrayList<String>>> functionID(ArrayList<int[]> snippets, ArrayList<ArrayList<String>> attributes, int[][] matrixCID){\n\t\tArrayList<ArrayList<ArrayList<String>>> listOfListOfStrings = new ArrayList<ArrayList<ArrayList<String>>>();\n\t\tArrayList<ArrayList<ArrayList<String>>> listOfFunctionIDList = new ArrayList<ArrayList<ArrayList<String>>>();\n\t\tArrayList<ArrayList<String>> functionIDList = new ArrayList<ArrayList<String>>();;\n\t\tSet<String> hs = new HashSet<String>();\t\n\t\t\n\t\tint startingSnippet = 0;\n\t\tfor(int i = 0; i < matrixCID.length; i++){\n\t\t\tfunctionIDList = new ArrayList<ArrayList<String>>();\n\n\t\t\tint POP = matrixCID[i][1];\n\t\t\tint position = startingSnippet;\n\t\t\tint initialPos = position;\n\t\t\tint length = 0;\n\t\t\tint CIDLength = snippets.get(startingSnippet)[3];\n\t\t\t\n\t\t\tif(largest){ //assume max length of CID pairs\n\t\t\t\tfor(int j = 0; j < POP; j++){\t\n\t\t\t\t\tif(snippets.get(position)[3] > CIDLength){\n\t\t\t\t\t\tCIDLength = snippets.get(position)[3];\n\t\t\t\t\t}\n\t\t\t\t\tposition++;\n\t\t\t\t}\n\t\t\t\tmatrixCID[i][2] = CIDLength; //update length\n\t\t\t}\n\t\t\telse if(!largest){ //smallest length of CID pairs\n\t\t\t\tfor(int j = 0; j < POP; j++){\t\n\t\t\t\t\tif(snippets.get(position)[3] < CIDLength){\n\t\t\t\t\t\tCIDLength = snippets.get(position)[3];\n\t\t\t\t\t}\n\t\t\t\t\tposition++;\n\t\t\t\t}\n\t\t\t\tmatrixCID[i][2] = CIDLength; //update length\n\t\t\t}\n\t\t\t\n\t\t\tposition = startingSnippet;\n\t\t\t\n\t\t\tfor(int j = 0; j < POP; j++){//create a list containing a list of strings for each snippet's attributes\n\t\t\t\tint SL = snippets.get(position)[1];\n\t\t\t\t//int EL = snippets.get(position)[2];\n\t\t\t\t//length = EL - SL + 1;\n\t\t\t\tlength = CIDLength;\n\t\t\t\tArrayList<ArrayList<String>> temporaryList = new ArrayList<ArrayList<String>>(length);\n\t\t\t\tfor(int k = 0; k < length; k++){//place each attribute of the corresponding snippets with same CID in a temporaryList\n\t\t\t\t\ttemporaryList.add(k, attributes.get(SL-1));\n\t\t\t\t\tSL++;\n\t\t\t\t}\n\t\t\t\tlistOfListOfStrings.add(temporaryList); \n\t\t\t\tposition++;\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"Should be \" + length + \" it is \" + listOfListOfStrings.get(initialPos).size()); //BREAKPOINT\n\t\t\tfor(int a = 0; a < listOfListOfStrings.get(initialPos).size(); a++){ //create the union of corresponding snippets\n\t\t\t\ths.clear();\n\t\t\t\tfor(int j = initialPos; j < position; j++){ \n\t\t\t\t\ths.addAll(listOfListOfStrings.get(j).get(a)); //there is some bug here with indexoutofbounds that needs to be addressed, doesn't always occur\n\t\t\t\t}\n\t\t\t\tArrayList<String> newList = combineLists(hs);\n\t\t\t\tfunctionIDList.add(newList);\n\t\t\t}\t\t\n\t\t\tlistOfFunctionIDList.add(functionIDList); //should be n number (from amount of CIDs) of ArrayList<ArrayList<Strings>> stored\n\t\t\tstartingSnippet += POP;\n\t\t}\n\n\t\t//System.out.println(listOfFunctionIDList.size());\n\t\treturn listOfFunctionIDList;\n\t}", "public String memoryDisplayBin()\n {\n int pos = startingPos;\n String ret = \"\";\n while(pos <= endingPos)\n {\n String instruction = mem.getFourBytes(pos);\n String bin = BinaryFormater.format(Integer.toBinaryString(Integer.parseInt(instruction, 16)),32);\n ret += \"0x\"+Integer.toHexString(pos) + \": \" + bin.substring(0,16) + \" \" + bin.substring(16,32)+\"\\n\";\n pos += 4;\n }\n return ret;\n }", "java.lang.String getField1604();", "public String getInformation() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tencodingTable.forEach((c, s) -> {\n\t\t\tsb.append(c);\n\t\t\tsb.append(\" -> \");\n\t\t\tsb.append(s);\n\t\t\tsb.append('\\n');\n\t\t});\n\n\t\treturn sb.toString();\n\t}", "java.lang.String getField1667();", "java.lang.String getField1697();", "java.lang.String getField1612();", "public int[][] matrixCID(String[] array){\n\t\tint[][] matrix = new int[array.length-1][5];\n\t\tfor(int i = 1; i < array.length; i++){\n\t\t\tString[] words = toWord(array[i]);\t\n\t\t\tmatrix[i-1][0] = Integer.valueOf(words[0]); //CID\n\t\t\tmatrix[i-1][1] = Integer.valueOf(words[2]); //POP\n\t\t\tmatrix[i-1][2] = 0; //default length\n\t\t\tmatrix[i-1][3] = 0; //default chunk size\n\t\t\tmatrix[i-1][4] = 0; //default chunk pieces\n\t\t}\n\t\treturn matrix;\n\t}", "java.lang.String getField1264();", "String getATCUD();", "com.google.protobuf.ByteString\n getField1056Bytes();", "java.lang.String getField1606();", "java.lang.String getField1671();", "public String toString() {\n\n\t\tfinal StringBuilder buffer = new StringBuilder();\n\n\t\tbuffer.append(\"affCustAlgmntId=[\").append(affCustAlgmntId).append(\"] \");\n\t\tbuffer.append(\"custAlgmntId=[\").append(custAlgmntId).append(\"] \");\n\n\t\treturn buffer.toString();\n\t}", "java.lang.String getField1611();", "public String getCopierDetails(String id);", "java.lang.String getField1904();", "java.lang.String getField1642();", "java.lang.String getField1694();", "java.lang.String getField1148();", "java.lang.String getField1126();", "com.google.protobuf.ByteString\n getField1651Bytes();", "java.lang.String getField1602();", "public final String mo115447a() {\n synchronized (this.f119500b) {\n C46403a aVar = this.f119500b[this.f119501c];\n if (aVar == null || aVar.f119494f) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n aVar.mo115445a(sb, false);\n String sb2 = sb.toString();\n return sb2;\n }\n }", "java.lang.String getField1071();", "Integer getCCPID();", "com.google.protobuf.ByteString\n getField1166Bytes();", "java.lang.String getField1677();", "com.google.protobuf.ByteString\n getField1362Bytes();", "private static String m61436a(C18846s sVar, StringBuilder sb) {\n if (sVar.f50796f != null) {\n sb.ensureCapacity(sVar.f50796f.length() + 50);\n sb.append(sVar.f50796f);\n } else if (sVar.f50794d != null) {\n String uri = sVar.f50794d.toString();\n sb.ensureCapacity(uri.length() + 50);\n sb.append(uri);\n } else {\n sb.ensureCapacity(50);\n sb.append(sVar.f50795e);\n }\n sb.append(10);\n if (sVar.f50803m != 0.0f) {\n sb.append(\"rotation:\");\n sb.append(sVar.f50803m);\n if (sVar.f50806p) {\n sb.append('@');\n sb.append(sVar.f50804n);\n sb.append('x');\n sb.append(sVar.f50805o);\n }\n sb.append(10);\n }\n if (sVar.mo50072d()) {\n sb.append(\"resize:\");\n sb.append(sVar.f50798h);\n sb.append('x');\n sb.append(sVar.f50799i);\n sb.append(10);\n }\n if (sVar.f50800j) {\n sb.append(\"centerCrop\\n\");\n } else if (sVar.f50801k) {\n sb.append(\"centerInside\\n\");\n }\n if (sVar.f50797g != null) {\n int size = sVar.f50797g.size();\n for (int i = 0; i < size; i++) {\n sb.append(((C18802aa) sVar.f50797g.get(i)).mo50000a());\n sb.append(10);\n }\n }\n return sb.toString();\n }", "public String toString() { \n StringBuffer sb = new StringBuffer(); \n sb.append(\"[\"); \n sb.append(id);\n sb.append(\"]:\"); \n sb.append(isdeleted);\n sb.append(\"|\");\n sb.append(vehicleAccountC);\n sb.append(\"|\");\n sb.append(systemmodstamp);\n sb.append(\"|\");\n sb.append(userC);\n sb.append(\"|\");\n sb.append(hcLastop);\n sb.append(\"|\");\n sb.append(name);\n sb.append(\"|\");\n sb.append(sfid);\n sb.append(\"|\");\n sb.append(createddate);\n sb.append(\"|\");\n sb.append(uniquekeyC);\n sb.append(\"|\");\n sb.append(accountNicknameC);\n sb.append(\"|\");\n sb.append(hcErr);\n return sb.toString(); \n }", "java.lang.String getField1654();", "java.lang.String getField1683();", "java.lang.String getField1647();", "com.google.protobuf.ByteString\n getField1335Bytes();", "java.lang.String getField1690();", "public String getString_infos_metadata() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,2)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_infos_metadata(i) == (char)0) break;\n carr[i] = (char)getElement_infos_metadata(i);\n }\n return new String(carr,0,i);\n }" ]
[ "0.5325162", "0.519003", "0.5158043", "0.5112108", "0.50386506", "0.5024541", "0.4988662", "0.49683723", "0.48697147", "0.48443636", "0.48427674", "0.4836372", "0.48319036", "0.48195794", "0.4795996", "0.47884658", "0.47827804", "0.47341618", "0.47301263", "0.4727083", "0.4726873", "0.47234294", "0.47090736", "0.47080398", "0.47072414", "0.46828836", "0.4680191", "0.46785614", "0.46765804", "0.46762088", "0.46730518", "0.46602094", "0.46581057", "0.4654119", "0.46363395", "0.46284196", "0.46258757", "0.4621669", "0.46140116", "0.46115595", "0.45985857", "0.4595424", "0.45944923", "0.4586811", "0.45816952", "0.45808455", "0.45751256", "0.45729706", "0.45712638", "0.4570865", "0.45707756", "0.45702767", "0.45686245", "0.45656708", "0.4560604", "0.45600042", "0.45565495", "0.45564547", "0.455644", "0.4556112", "0.45552552", "0.45508644", "0.4547611", "0.45424145", "0.45370117", "0.45366496", "0.45339495", "0.45330796", "0.45322946", "0.45301333", "0.4528512", "0.45265976", "0.45200342", "0.45182544", "0.45165467", "0.45134845", "0.45133528", "0.45041662", "0.45025244", "0.4502249", "0.45016637", "0.44991958", "0.44964397", "0.4496289", "0.4494795", "0.44934207", "0.44932556", "0.4490163", "0.44900352", "0.44888797", "0.4485516", "0.44823214", "0.4481516", "0.4478641", "0.44784746", "0.44783452", "0.4471699", "0.44698256", "0.44674718", "0.4464687" ]
0.6121501
0
api for going to home page
@RequestMapping(value= {"/flight-home","/"}) public ModelAndView flightSearchPage() { return new ModelAndView ("home"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goHome();", "public void gotoHome(){ application.gotoHome(); }", "@RequestMapping(value = \"/home\", method = RequestMethod.GET)\n\tpublic String openhomePage() {\n/*\t\tlogger.debug(\"Inside Instruction page\");\n*/\t\treturn \"home\";\n\t}", "public void home_index()\n {\n Home.index(homer);\n }", "protected void callHome() {\n\t\tIntent intent = new Intent(this, AdminHome.class);\r\n\t\tstartActivity(intent);\r\n\t}", "@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public String goHome(ModelMap model) {\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n model.addAttribute(\"pagetitle\", \"Pand-Eco\");\n return \"view_landing_page\";\n }", "public static void goToHome(Context context){\n }", "@GetMapping(\"/\")\n\tpublic String showHomePage() {\n\t\treturn \"home\";\n\t}", "@RequestMapping(value=\"/\", method=RequestMethod.GET)\n\tpublic String home() {\n\t\tlogger.info(\"Welcome home!\");\n\t\treturn \"home\";\n\t}", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "@RequestMapping(value = \"home.do\", method = RequestMethod.GET)\n public String getHome(HttpServletRequest request, Model model) {\n logger.debug(\"Home page Controller:\");\n return \"common/home\";\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\t// logger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\treturn \"home\";\n\t}", "String getOssHomepage();", "@GetMapping\n\tpublic String home() {\n\t\tSystem.out.println(\"Index page\");\n\t\treturn \"redirect:index.jsp\";\n\t}", "public void goToHome() {\n navController.navigate(R.id.nav_home);\n }", "public void ClickHome(View view){\n MainActivity.redirectActivity(this,MainActivity.class);\n\n }", "@RequestMapping(value = \"/home\")\n\tpublic String home() {\t\n\t\treturn \"index\";\n\t}", "private void returnHome(){\n if (Boolean.toString(UpdatedHomePage.updatedHomeStarted).equals(\"false\")) {\n startActivity(new Intent(FinalPlan.this, Home.class));\n } else {\n Intent intent = new Intent(this, UpdatedHomePage.class);\n Bundle extras = new Bundle();\n extras.putBoolean(\"filtered\", true);\n intent.putExtras(extras);\n startActivity(intent);\n }\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\n\t public String home()\n\t {\n\t return \"welcome\";\n\t }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home() {\n\t\treturn \"home\";\n\t}", "public void goHome(View view) {\n String toastString = \"go home...\";\n Toast.makeText(FriendsList.this,toastString, Toast.LENGTH_SHORT).show();\n\n //TODO\n // go to list screen....\n Intent goToNextScreen = new Intent (this, AccountAccess.class);\n final int result = 1;\n startActivity(goToNextScreen);\n }", "public Integer goToHome() throws CallError, InterruptedException {\n return (Integer)service.call(\"goToHome\").get();\n }", "@GetMapping(\"/home\")\n\t//@ResponseBody\n\tpublic String home()\n\t{\n\t\treturn\"/first/home\";\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String jumpTohome(Locale locale, Model model) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\n\t\treturn \"redirect:/competitions/all/list\";\n\t}", "@RequestMapping(\"/\")\n\tpublic String homePage() {\n\t\tlogger.info(\"Index Page Loaded\");\n\t\treturn \"index\";\n\t}", "public void launchHomePage() {\n Intent intent = new Intent(LoginActivity.this, HomeActivity.class);\n startActivity(intent);\n }", "@Override\n\tpublic void goHome() {\n\t\tSystem.out.println(\"回窝了!!!!\");\n\t}", "public static Result home() {\n Skier loggedInSkier = Session.authenticateSession(request().cookie(COOKIE_NAME));\n if(loggedInSkier==null)\n return redirect(\"/\");\n else\n return renderHome(loggedInSkier);\n }", "public String home()\n\t{\n\t\treturn SUCCESS;\n\t}", "public void angelHomePage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"AngelHomePage > angelHomePage\", driver);\r\n\t\tswitchFrameToAngelContent();\r\n\t\tif(Element.verify(\"Logged in Message\", driver, \"XPATH\", \"//span[@class='pageTitleSpan' and text()='Home']\"))\r\n\t\t{\r\n\t\t\tResultUtil.report(\"PASS\", \"Successfully logged in\", driver);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tResultUtil.report(\"FAIL\", \"Login failed\", driver);\r\n\t\t}\t\t\r\n\t}", "@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public ModelAndView goToHome(Model m) {\n \tModelAndView mav = new ModelAndView(\"home\");\n \treturn mav;\n }", "@GetMapping(Mappings.HOME)\n\tpublic String showHome() {\n\n\t\treturn ViewNames.HOME;\n\t}", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "private void openHome() {\n Intent intent = new Intent(this, WelcomeActivity.class);\n startActivity(intent);\n\n finish();\n }", "@RequestMapping(method = RequestMethod.GET)\r\n public String home(ModelMap model) throws Exception\r\n {\t\t\r\n return \"Home\";\r\n }", "@RequestMapping(method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\t//System.out.println(Utils.getMessage(\"THING_NOT_FOUND\"));\n\t\treturn \"home\";\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home() {\n\t\treturn \"echo\";\n\t}", "String home();", "public void navigateToHomePage()\n\t {\n\t if(getAdvertisementbtn().isPresent())\n\t getAdvertisementbtn().click();\n\t }", "public Home clickonHome()\n\t{\n\t\tdriver.findElement(By.xpath(home_xpath)).click();\n\t\treturn new Home(driver);\n\t}", "@Given(\"I am on Magalu HomePage\")\n\tpublic void i_am_on_the_homepage() {\n\t\tdriver.get(Homeurl);\n\t}", "@RequestMapping(\"/home\")\n\tpublic String showHome() {\n\t\treturn \"home\";\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\t//info 정보 활용에 유용\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\n\t\treturn \"home\";\n\t}", "public void home() {\n\t\tUserUI ui = new UserUI();\n\t\tui.start();\n\t}", "public void goToHome() {\n Intent intent = new Intent(this, MainActivity_3.class);\n startActivity(intent);\n }", "public void tohome (View view){\n Intent i = new Intent(this,Intro.class);\n startActivity(i);\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n\tpublic String home(Locale locale, Model model) {\t\t\t\t\r\n\t\treturn \"index\";\r\n\t}", "public void navigateToHomePage() {\n\t\n\t\t\tScreenShot screen = new ScreenShot();\n\n\t\t\t// Utilize the driver and invoke the chrome browser\n\t\t\tdriver.get(\" https://www.progressive.com/\");\n\t\t\tdriver.manage().window().maximize();\n\n\t\t\t// Wait for page to be loaded\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t\t// Take a Screenshot\n\t\t\tscreen.takeSnapShot(driver, \"Progressive Insurance HomePage\");\n\t\t\t\n\t\t\tclickAutoInsurance();\t\n\t\t\n\t\t}", "public void goToHomePage() {\n\n driver.get(HOME_PAGE_URL);\n driver.manage().deleteAllCookies();\n driver.manage().window().maximize();\n wait.forLoading(10);\n }", "@RequestMapping(\"/\")\n\tpublic String home(Locale locale, Model model) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\n\t\treturn \"redirect:main/home\";\n\t}", "@RequestMapping(value = {\"/\", \"/homepage\"}, method = RequestMethod.GET)\n public String homePage(ModelMap model) {\n model.addAttribute(LOGGED_USER, userService.getPrincipal());\n return HOMEPAGE;\n }", "public void goHome() throws ManipulatorException;", "public void goToHomePage(View view)\n {\n Intent intent = new Intent( this, HomeActivity.class );\n startActivity( intent );\n }", "public void navigateToHome() {\n Intent intent = new Intent(this, MainMenu.class);\n startActivity(intent);\n finish();\n }", "@GetMapping(\"/homePage\")\n public String homePage(final Model model) {\n LOGGER.debug(\"method homePage was invoked\");\n model.addAttribute(\"listCarMakes\", carMakeProvider.getCarMakes());\n return \"homepage\";\n }", "public void goHome() {\r\n\t\tif (mActivity instanceof DashboardActivity) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfinal Intent intent = new Intent(mActivity, DashboardActivity.class);\r\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\tmActivity.startActivity(intent);\r\n\r\n\t}", "@RequestMapping(\"/\")\n\t public String index(Model model){\n\t return \"homepage\";\n\t }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n\tpublic String index(Model model) {\r\n\r\n\t\treturn \"home\";\r\n\t}", "@RequestMapping(value = { \"/broadband-user\", \"/broadband-user/login\" })\n\tpublic String userHome(Model model) {\n\t\tmodel.addAttribute(\"title\", \"CyberPark Broadband Manager System\");\n\t\treturn \"broadband-user/login\";\n\t}", "default public void clickHome() {\n\t\tremoteControlAction(RemoteControlKeyword.HOME);\n\t}", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}", "public String getHomePage() {\r\n return this.homePage;\r\n }", "@RequestMapping(value = \"/\")\r\n\tpublic ModelAndView home(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws IOException {\r\n\t\tSystem.out.println(\"------------ redirecting to home page -------------\");\r\n\t\tList<Employee> employees = dao.getEmployees();\r\n\t\trequest.setAttribute(\"employees\", employees);\r\n\t\treturn new ModelAndView(\"home\");\r\n\t}", "@Given(\"^User is on Home Page$\")\r\n\tpublic void user_is_on_Home_Page() throws Throwable {\n\t\tsetBrowser();\r\n\t\tsetBrowserConfig();\r\n\t\tdriver.get(\"http://demowebshop.tricentis.com/\");\r\n\t}", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"HomeView Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "public void openHome() {\n connectionProgressDialog.dismiss();\n Intent i = new Intent(this, ZulipActivity.class);\n startActivity(i);\n finish();\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\tlogger.info(\"홈페이지를 만듭니다\", locale);\n\t\treturn \"home\";\n\t}", "@GetMapping(\"/\")\n\tpublic ResponseEntity<String> getHome() {\n\t\treturn new ResponseEntity<>(\"<h1>Welcome to the root of the Order Book Web Service</h1>\", HttpStatus.OK);\n\t}", "public void switchToHomeScreen() {\n Intent startMain = new Intent(Intent.ACTION_MAIN);\n startMain.addCategory(Intent.CATEGORY_HOME);\n startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(startMain);\n }", "@Override\n\tpublic boolean goHomePage(PageContext context) {\n\t\treturn false;\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, HttpServletRequest request, Model model ) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\treturn \"login\";\n\t}", "@RequestMapping(value = \"/index\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\tlogger.info(\"Welcome home!\");\n\t\tmodel.addAttribute(\"controllerMessage\",\n\t\t\t\t\"This is the message from the controller!\");\n\t\treturn \"index\";\n\t}", "public String processHomePage() {\n return \"success\";\n }", "public void clickOnHome() {\n\t\twait.waitForStableDom(250);\n\t\tisElementDisplayed(\"link_home\");\n\t\twait.waitForElementToBeClickable(element(\"link_home\"));\n\t\texecuteJavascript(\"document.getElementById('doctor-home').getElementsByTagName('i')[0].click();\");\n//\t\t element(\"link_home\").click();\n\t\tlogMessage(\"user clicks on Home\");\n\t}", "private void HomePage(){\n Intent intent = new Intent();\n intent.setClass(FaultActivity.this, MainActivity.class);\n startActivity(intent);\n FaultActivity.this.finish();\n }", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "@RequestMapping(\"home\")\n public String loadHomePage( HttpServletRequest request, final HttpServletResponse response, Model model ) {\n response.setHeader( \"Cache-Control\", \"max-age=0, no-cache, no-store\" );\n\n // Get the title of the application in the request's locale\n model.addAttribute( \"title\", webapp.getMessage( \"webapp.subtitle\", null, request.getLocale() ) );\n\n return \"home\";\n }", "@RequestMapping(value = \"/\")\n\tpublic String home(Locale locale, Model model) {\n\t\treturn \"redirect:/loginPage\";\n\t}", "private void goToHome() {\n finish();\n Intent onPropertyView = new Intent(ChatMessage.this, MainActivity.class);\n startActivity(onPropertyView);\n }", "@Given(\"I am on the Home Page\")\n public void i_am_on_the_home_page(){\n i_logged_into_Tenant_Manager_Project_list_page();\n\n }", "@RequestMapping(\"/\")\r\n\t\r\n\tpublic String home()\r\n\t{\n\t\t \r\n\t\treturn \"index\";\r\n\t}", "public SigninPage getHomepage() throws Exception {\n \t WebElement homePage = getDriver().findElement(By.xpath(\"//span[text()='Welcome, anusha kariveda!']\")); //Home page validation by using menu tab\n \t //After Magento 2.3.upgrade fix on welcome message\n \t\tAssert.assertEquals(true, homePage.isDisplayed());\n \t\tSystem.out.println(\"User Successfully loggedin and placed under homepage\");\n \t\tThread.sleep(4000);\n \treturn new SigninPage();\n }", "@GetMapping\n @RequestMapping(\"/\")\n public Map defaultHome() {\n Map map = new HashMap();\n map.put(\"app-version\", appVersion);\n map.put(\"api call 1\", \"/api/v1/sessions\");\n map.put(\"api call 2\", \"/api/v1/speakers\");\n return map;\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\tlogger.info(\"Welcome home!\");\n\t\tmodel.addAttribute(\"controllerMessage\",\n\t\t\t\t\"This is the message from the controller!\");\n\t\t\n\t\tAuthor author = new Author();\n\t\tauthor.setFirstName(\"fisseha\");\n\t\tauthor.setLastName(\"chari\");\n\t\treturn \"home\";\n\t}", "public String homepage() {\n return this.home;\n }", "public static final String getHome() { return home; }", "public void goHome() {\n shouldWork = false;\n }", "public void goToHome() throws IOException {\n\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"index.xhtml\");\n\t}", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@RequestMapping(value = \"/homed\", method = RequestMethod.GET)\r\n public String homeDebug(HttpServletRequest request, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"home\", null, null, null, true)); \r\n }", "private void homemenu() \n\n{\nstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\t\n}", "public void goHomeScreen(View view)\n {\n\n Intent homeScreen;\n\n homeScreen = new Intent(this, homeScreen.class);\n\n startActivity(homeScreen);\n\n }", "public void onClickHome (View v)\n\t{\n\t\tgoHome (this);\n\t}", "private void home(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/darkboard.jsp\");\n\t}", "@When(\"I am on Home page\")\n public void homepage_i_am_on_home_page() {\n homePage = new HomePage(driver);\n homePage.check_page_title();\n }", "private Home getHome(final Context ctx)\r\n {\r\n return (Home) ctx.get(this.homeKey_);\r\n }", "public void displayHome() {\n\t\tclearBackStack();\n\t\tselectItemById(KestrelWeatherDrawerFactory.MAP_OVERVIEW, getLeftDrawerList());\n\t}", "@RequestMapping(\"/\")\n public String home()\n {\n SecurityContext context = SecurityContextHolder.getContext();\n return \"redirect:swagger-ui.html\";\n }", "public static Result index() {\n // Check that the email matches a confirmed user before we redirect\n String email = ctx().session().get(\"email\");\n if (email != null) {\n User user = User.findByEmail(email);\n if (user != null && user.validated) {\n return GO_DASHBOARD;\n } else {\n Logger.debug(\"Clearing invalid session credentials\");\n session().clear();\n }\n }\n\n return GO_HOME;\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String home(Locale locale, Model model)\n {\n System.out.println(\"Home \" + service.getName());\n model.addAttribute(\"name\", service.getName());\n return \"home\";\n }", "@Override\r\n\tpublic String executa(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\treturn \"view/home.html\";\r\n\t}" ]
[ "0.81048286", "0.7826247", "0.756454", "0.7496216", "0.74064577", "0.7371423", "0.7272931", "0.7264458", "0.719238", "0.7152742", "0.7137739", "0.7109992", "0.7078736", "0.70765483", "0.7027215", "0.7026002", "0.7013456", "0.70115334", "0.7004455", "0.6999428", "0.6991474", "0.6991165", "0.69755083", "0.6958533", "0.6952965", "0.6943803", "0.69437283", "0.69427776", "0.6919168", "0.691708", "0.69076365", "0.68971556", "0.6890427", "0.6886284", "0.68734515", "0.68654495", "0.68603516", "0.6857193", "0.68356043", "0.6815218", "0.68124115", "0.67898566", "0.6759901", "0.6759222", "0.6687301", "0.6687247", "0.6681923", "0.6665647", "0.6663023", "0.6656482", "0.66497654", "0.66467416", "0.6646114", "0.6642695", "0.6639663", "0.6638594", "0.66292065", "0.662885", "0.6626915", "0.6617434", "0.66101253", "0.6609335", "0.6596032", "0.6582455", "0.6578983", "0.6577886", "0.6533024", "0.6531531", "0.65190834", "0.65164024", "0.651635", "0.6514903", "0.65131056", "0.65119493", "0.6511944", "0.65105885", "0.6506087", "0.6491418", "0.6483054", "0.6467444", "0.6458191", "0.6449681", "0.6449367", "0.6446718", "0.64398766", "0.6427191", "0.64249736", "0.64245594", "0.64181805", "0.6415755", "0.63849807", "0.63847303", "0.63813955", "0.6362539", "0.63576424", "0.63545007", "0.63335174", "0.6328433", "0.632056", "0.63192356", "0.63165236" ]
0.0
-1
api for going to results page
@PostMapping("/search") public ModelAndView search(String departureLocation, String arrivalLocation, String dateOfJourney, String flightClass,String sortingType) throws ParseException { ModelAndView mv=new ModelAndView("flightresults"); List<Flight> flights=flightService.searchFlights(departureLocation,arrivalLocation,dateOfJourney,flightClass,sortingType); mv.addObject("flights", flights); return mv; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Given(\"I am on the search results page\")\n\t\tpublic void i_am_on_the_search_results_page() {\n\t\t\t//I am on the results page\n\t\t\tdriver.get(ResultsUrl);\n\n\t\t}", "public void toResults(View view) {\n Log.i(\"@#@#@#@#@#MAIN\", \"to results navigation item clicked\");\n Intent intent = new Intent(getApplicationContext(), ResultsActivity.class);\n intent.putExtra(\"finnish\", finnish);\n startActivity(intent);\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String result(ModelMap model) {\n\t\tmodel.put(\"page\", 0);\n\n\t\treturn \"index\";\n\t}", "@RequestMapping(value=\"/league/results\", method = RequestMethod.GET)\n\tpublic String navigateToPage(UserSubscription subscription) {\n\t\t\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Rendering results view of league with code: {} for user ID: {}\",\n\t\t\t\t\t\t subscription.getLeague().getCode(),\n\t\t\t\t\t\t subscription.getUser().getId());\n\t\t}\n\t\t\n\t\treturn \"allResults\";\n\t}", "protected void invokeResults() {\r\n\t\t// Create the intent.\r\n\t\tIntent plantResultsIntent = new Intent(this, PlantResultsActivity.class);\r\n\t\t\r\n\t\t// create a bundle to pass data to the results screen.\r\n\t\tBundle data = new Bundle();\r\n\t\tdata.putString(PLANT_SEARCH_TERM, actPlantName.getText().toString());\r\n\t\t// add the bundle to the intent\r\n\t\tplantResultsIntent.putExtras(data);\r\n\t\t// start the intent, and tell it we want results.\r\n\t\tstartActivityForResult(plantResultsIntent, \t1);\r\n\t}", "String getQueryResultsUrl();", "SearchResult findNext(SearchResult result);", "public void setResultsPage(int resultsPage)\r\n\t{\r\n\t\tthis.resultsPage = resultsPage;\r\n\t}", "SearchResult findNext(SearchOptions searchOptions);", "public int getResultsPage()\r\n\t{\r\n\t\treturn this.resultsPage;\r\n\t}", "@Override\n public void onResultClick(SearchResult result) {\n }", "public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Scan Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "Results getResultsPage(FilterSpecifier.ListBy listBy, int page) throws SearchServiceException;", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Pay Page\")\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "@GET(\"w/api.php?action=query&format=json&redirects\")\n Call<JsonElement> getPageFromTitle(@Query(\"titles\") String titles);", "@Test\n\tpublic void testShowResult() {\n\t\tConfigurationManager config = new ConfigurationManager();\n\t\tInvertedIndex index = new InvertedIndex();\n\t\tFileManager manager = new FileManager(config.getConfig().getFileName(), index);\n\t\tHashMap<String, String> parameters = new HashMap<String, String>();\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"asin\", \"ABCD\");\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"asin\", \"B00002243X\");\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 10);\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"query\", \"ASDAJKSDJHKASJK\");\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"query\", \"jumpers\");\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 8);\n\t}", "public void page()\n {\n com.jayway.restassured.response.Response response= given().relaxedHTTPSValidation().when().get(\"http://18.222.188.206:3333/accounts?_page=3\");\n response.then().assertThat().statusCode(200);\n System.out.println(\"The list of accounts in the page 3 is displayed below:\");\n response.prettyPrint();\n }", "void setQueryResultsUrl(String queryResultsUrl);", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"GoodsDetail Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "@RequestMapping(\"/results\")\n\tpublic String results(HttpSession session, Model model) {\n\t\tString name = (String) session.getAttribute( \"name\");\n\t\tString location = (String) session.getAttribute(\"location\");\n\t\tString language = (String) session.getAttribute(\"language\");\n\t\tString comments = (String) session.getAttribute(\"comments\");\n\t\t\n\t\t// pass the data to the JSP\n\t\tmodel.addAttribute(\"name\", name);\n\t\tmodel.addAttribute(\"location\", location);\n\t\tmodel.addAttribute(\"language\", language);\n\t\tmodel.addAttribute(\"comments\", comments);\n\t\t\n\t\treturn \"results.jsp\";\n\t}", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "Page getList(ViewResourceSearchVO viewResourceSearchVO) throws Exception;", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "String pageDetails();", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"ListTest Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"PlayWorkout Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"TDVoice Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "private void scrapResultsInCurrentResultPage() {\n List<WebElement> searchResults = getSearchResults();\n\n for (int i = 0; i < searchResults.size(); i++) {\n WebElement result = searchResults.get(i);\n WebElement quoteButton = result.findElement(By.xpath(\".//a[@class='gs_or_cit gs_nph']\"));\n quoteButton.click();\n\n waitForMillis(500);\n\n WebElement bibtexLink = driver.findElement(By.xpath(\"//div[@id='gs_citi']/a[1]\"));\n waitUntilClickable(bibtexLink);\n bibtexLink.click();\n\n WebElement publicationCitationInBibtex = driver.findElement(By.xpath(\"/html/body/pre\"));\n searchResultsAsBibtex.add(publicationCitationInBibtex.getText());\n\n driver.navigate().back();\n\n WebElement quoteDialogCancelButton = driver.findElement(By.xpath(\"//*[@id=\\\"gs_cit-x\\\"]\"));\n waitUntilClickable(quoteDialogCancelButton);\n quoteDialogCancelButton.click();\n\n // Reload the reference to the DOM elements: the search results.\n searchResults = getSearchResults();\n }\n }", "public void buttonToResults(View view) {\n Log.i(\"%&%&%&%&%&%&%&\", \"to results button clicked, finnish: \" + finnish);\n Intent intent = new Intent(getApplicationContext(), ResultsActivity.class);\n intent.putExtra(\"finnish\", finnish);\n startActivity(intent);\n }", "@Then(\"search results are displayed\")\n\tpublic void search_results_are_displayed() throws Exception {\n\t\t//Waits for the result page to load\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\n\t\t//Saves all results that match our book ID\n\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\twait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(resultsPage)));\n\t\tList<WebElement> results = driver.findElements(By.xpath(resultsPage));\n\n\t\t//Verifies that my book id is really among the results\n\n\t\tif(results.size() > 1) {\n\t\t\tfor(int i = 0; i < results.size(); ++i) {\n\t\t\t\tproduto = results.get(i).getAttribute(\"data-product\");\n\t\t\t\tif (produto.contains(id)) {\n\t\t\t\t\tSystem.out.println(\"\\nA busca encontrou o meu livro!\");\n\t\t\t\t\tSystem.out.println(id);\n\t\t\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Livro não encontrado!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"\\nNenhum resultado encontrado!\\n\");\n\t\t\t}\n\n\t\t\t// Take snapshot as evidence\n\t\t\tFunctions.takeSnapShot(driver, null);\n\n\t\t}", "private void getResults(GetResultRequestEvent e){\n\t\ttable.generateTable(tf.getItemIDList(),\n\t\t\t\te.getBuySystem(), e.getBuyType(),\n\t\t\t\te.getSellSystem(), e.getSellType(),\n\t\t\t\te.getMinimumMargin());\n\t}", "public void getWantedPageFromPagination()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n List<WebElement> pageOrderList = pageFactory.searchPagePaginationList;\r\n WebElement wantedPageOrder = pageOrderList.get(1);\r\n clickElement(wantedPageOrder, Constant.explicitTime);\r\n }", "public void onSearchResults(String term, List<WikiPage> results);", "public ActionForward query(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\tthis.rows=100;\n\t\tsavedInRequest(request);\n\t\treturn firstPage(mapping, form, request, response);\n\t}", "private void searchResult(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\ttry {\n\t\t\trequest.setCharacterEncoding(\"UTF-8\");\n\t\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\t\tString page = request.getParameter(\"page\"); // 当前页数\n\t\t\tString rows = request.getParameter(\"rows\"); // 每页显示行数\n\t\t\tString dealNo = request.getParameter(\"dealNo\");\n\t\t\tString msg = null;\n\t\t\tif (dealNo != null && dealNo.trim().length() > 0 && page != null\n\t\t\t\t\t&& page.trim().length() > 0 && rows != null\n\t\t\t\t\t&& rows.trim().length() > 0) {\n\t\t\t\tGZHQueryService gzhQueryService = new GZHQueryService();\n\t\t\t\tList<MoneyDataInfo> moneyDataList = gzhQueryService\n\t\t\t\t\t\t.getMoneyDataListPage(page, rows, dealNo);\n\t\t\t\tint total = gzhQueryService.getResultCount(dealNo);\n\t\t\t\tPagination pagination = new Pagination();\n\t\t\t\t// pagination.setRows(moneyDataList);\n\t\t\t\tpagination.setTotal(total);\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tmsg = gson.toJson(pagination);\n\t\t\t} else {\n\t\t\t\tmsg = \"notfount\";\n\t\t\t}\n\t\t\tresponse.getWriter().write(msg);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@PostMapping(\"/testResults\")\n public ModelAndView showTestResults(@RequestParam(\"result\") String resultJson) {\n ModelAndView modelAndView = new ModelAndView(\"testResultsPage\");\n if (resultJson == null) {\n modelAndView.addObject(MESSAGE_KEY, \"Test results were null\");\n } else {\n try {\n ObjectMapper mapper = new ObjectMapper();\n TestResult results = mapper.readValue(resultJson, TestResult.class);\n modelAndView.addObject(\"testResults\", results);\n system = null;//NOPMD\n } catch (IOException e) {\n modelAndView.addObject(MESSAGE_KEY, \"Could not create Test Result object\");\n }\n }\n return modelAndView;\n }", "List<T> getResults();", "@Test(priority = 0)\n public void test_Search_Results_Appear_Correct() {\n\n //Create Google Search Page object\n searchPage = new SearchPage(driver);\n\n //Search for QA string\n searchPage.searchStringGoogle(\"QA\");\n\n // go the next page\n resultsPage = new ResultsPage(driver);\n\n Assert.assertTrue(resultsPage.getSearchedResult().contains(\"Quality assurance - Wikipedia\"));\n\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "public void onSuccess(Object result) {\n\t\t\tSystem.err.println(\"showing results...\");\n\t\t\t//refgview.getNavPanel().getBrowseView().displayTargets((NodeDTO[])result);\n\n\t\t\trefgview.getSearchPanel().displaySearchTargets((NodeDTO[])result);\n\t\t}", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Map Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "public interface SearchResult\n{\n /**\n * Title of search result item.\n * \n * @return String title\n */\n String getTitle();\n /**\n * Name of search result item.\n * \n * @return String title\n */\n String getName();\n /**\n * Select the link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickLink();\n /**\n * Verify if folder or not, true if search row represent\n * a folder.\n * \n * @return boolean true if search result is of folder\n */\n boolean isFolder();\n \n /**\n * Date of search result item.\n * \n * @return String Date\n */\n \n String getDate();\n \n /**\n * Site of search result item.\n * \n * @return String Site\n */\n \n String getSite();\n \n /**\n * Select the site link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickSiteLink();\n \n /**\n * Select the Date link of the search result item.\n * \n * @return true if link found and selected\n */\n \n\t HtmlPage clickDateLink();\n\t \n\t /**\n * Actions of search result item.\n * \n * @return enum ActionSet\n */\n\t ActionsSet getActions();\n\n /**\n * Method to click on content path in the details section\n *\n * @return SharePage\n */\n public HtmlPage clickContentPath();\n\n /**\n * Method to get thumbnail url\n *\n * @return String\n */\n public String getThumbnailUrl();\n\n /**\n * Method to get preview url\n *\n * @return String\n */\n public String getPreViewUrl();\n\n /**\n * Method to get thumbnail of element\n *\n * @return String\n */\n public String getThumbnail();\n\n /**\n * Method to click on Download icon for the element\n */\n public void clickOnDownloadIcon();\n\n /**\n * Select the site link of the search result item.\n *\n * @return true if link found and selected\n */\n HtmlPage clickSiteName();\n\t \n\t/**\n * Select the Image link of the search result item.\n * \n * @return PreViewPopUpPage if link found and selected\n */\n\tPreViewPopUpPage clickImageLink();\n\n\tHtmlPage selectItemCheckBox();\n\n\tboolean isItemCheckBoxSelected();\n\t\n}", "public void onClick()\n\t\t\t{\n\t\t\t\t((DccdSession)Session.get()).setRedirectPage(SearchResultDownloadPage.class, getPage());\n\t\t\t\tsetResponsePage(new SearchResultDownloadPage((SearchModel) SearchResultsDownloadPanel.this.getDefaultModel(), \n\t\t\t\t\t\t(DccdSearchResultPanel) callingPanel));\n\t\t\t}", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"TaskList Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"FaceTracker Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n\n }", "@GetMapping(\"/next\")\n\tpublic Map<String, Object> next();", "boolean getMoreResults();", "@Test(priority=4)\r\n\tpublic void navigateToReturnsPage() {\r\n\t\t\r\n\t\tString expectedPageTitle=\"Returns Report\";\r\n\t\tString actualPageTitle=filterReturnsList.navigateToReturns();\r\n\t\tassertEquals(actualPageTitle, expectedPageTitle);\r\n\t}", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "public interface PagableResult {\n Integer getTotal();\n Integer getResults();\n}", "@RequestMapping(value=\"/searchresults\", method = RequestMethod.GET)\n\tpublic String searchResults(@RequestParam(value=\"search\", required=false) String search, Model model, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"page\", required=false) Integer page, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"status\", required=false) String status, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"agent\", required=false) String agent, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"agentDisplay\", required=false) String agentDisplay, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"dateFrom\", required=false) String dateFrom, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"dateTo\", required=false) String dateTo) throws Exception {\n\t\tif (page==null) {\n\t\t\tpage=0;\n\t\t}\n\t\tif (search==null) {\n\t\t\tsearch=\"\";\n\t\t}\n\t\tInteger INCREMENT = 20;\n\t\tPageable pageable = PageRequest.of(page, INCREMENT);\n\t\tsearch = search.trim();\n\t\tsearch = search.replace(\"\\\"\", \"\"); //remove quotes\n\t\tsearch = search.replaceAll(\"( )+\", \" \"); //remove extra spaces\n\t\t\n\t\tRMapSearchParams params = paramsFactory.newInstance();\n\t\tparams.setSystemAgents(agent);\n\t\tRMapStatusFilter statusFilter = RMapStatusFilter.getStatusFromTerm(status);\n\t\tstatusFilter = (statusFilter==null) ? RMapStatusFilter.ALL : statusFilter;\t\n\t\tparams.setStatusCode(statusFilter);\n\t\tparams.setDateRange(new DateRange(dateFrom,dateTo));\n\t\t\n\t\tFacetAndHighlightPage<DiscoSolrDocument> indexerResults = searchService.searchDiSCOs(search, params, pageable);\n\t\t\n\t\tboolean hasExactMatch = dataDisplayService.isResourceInRMap(search, params);\n\t\t\n\t\tmodel.addAttribute(\"search\", search);\n\t\tmodel.addAttribute(\"numRecords\",indexerResults.getTotalElements());\n\t\tmodel.addAttribute(\"matches\",indexerResults.getHighlighted());\n\t\t\t\t\n\t\tmodel.addAttribute(\"statusFacets\",indexerResults.getFacetResultPage(\"disco_status\").getContent());\n\t\tmodel.addAttribute(\"agentFacets\",indexerResults.getPivot(\"agent_uri,agent_name\"));\n\t\tmodel.addAttribute(\"pageable\", pageable);\n\t\tmodel.addAttribute(\"agent\", agent);\n\t\tmodel.addAttribute(\"agentDisplay\", agentDisplay);\n\t\tmodel.addAttribute(\"dateFrom\", dateFrom);\n\t\tmodel.addAttribute(\"dateTo\", dateTo);\n\t\tmodel.addAttribute(\"status\", status);\n\t\tmodel.addAttribute(\"hasExactMatch\", hasExactMatch);\n\t\t\t\t\n\t\treturn \"searchresults\";\t\t\n\t}", "@Override\n\tpublic void onLoadMore() {\n\t\tpage++;\n\t\texecutorService.submit(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "protected abstract void onRequestPage(boolean isRequestNext,int fromIndex,int toIndex,float x,float y);", "@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}", "@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}", "entities.Torrent.NodeSearchResult getResults(int index);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();", "@RequestMapping(\"/getResult\")\r\n @ResponseBody\r\n public String prob(@RequestParam String URL){\n \tHashSet<String> res= new CrawlerService().getPageLinks(URL); \t\r\n \tStringBuffer result =new StringBuffer(); \t\r\n \tfor (String item:res){\r\n \t\tresult.append(item+\"<br>\");\r\n \t} \t\r\n return result.toString();\r\n\r\n }", "public void paging(ModelAndView mav);", "public void getNextPage(String url) {\n String kw = \"flag\";\n client = new OkHttpClient();\n final Request request = new Request.Builder()\n .url(url)\n .build();\n Call call = client.newCall(request);\n call.enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n System.out.println(e);\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n String htmlStr = response.body().string();\n //Type listTpye = new TypeToken<LinkedList<QueryRes>>(){}.getType();\n //System.out.println(htmlStr.toString());\n\n try {\n json = new JSONObject(htmlStr);\n //parsePageJson(json);\n System.out.println(json);\n } catch (Exception e) {\n System.out.println(\"error again\");\n }\n //parseJson(json);\n Message msg = handler.obtainMessage();\n msg.what = 1;\n handler.sendMessage(msg);\n //parsePageJson(page_json);\n }\n });\n }", "@Test\n public void paginationTest() throws InterruptedException {\n SearchNavigation.gotoSearchResultsPage(index, \" \");\n assertTrue(\"Pagination does not Exist\", AssistanceListingSearchPage.resultsPageCount() > 1);\n System.out.println(\"Search results and Pagination exists\");\n }", "PageAgent getPage();", "List<GameResult> getAllResults();", "public Result clickSearch() {\n\t\tthis.searchButton.click();\r\n\t\treturn new Result(driver);\r\n\t}", "public String readResultBy(){ //le resultado para\n return driver.getTitle();\n }", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Cadastro Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\r\n\tpublic String list() {\n\t\tList<HeadLine> dataList=new ArrayList<HeadLine>();\r\n\t\tPagerItem pagerItem=new PagerItem();\r\n\t\tpagerItem.parsePageSize(pageSize);\r\n\t\tpagerItem.parsePageNum(pageNum);\r\n\t\t\r\n\t\tLong count=headLineService.count();\r\n\t\tpagerItem.changeRowCount(count);\r\n\t\t\r\n\t\tdataList=headLineService.pager(pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\tpagerItem.changeUrl(SysFun.generalUrl(requestURI, queryString));\r\n\t\t\r\n\t\trequest.put(\"DataList\", dataList);\r\n\t\trequest.put(\"pagerItem\", pagerItem);\r\n\t\t\r\n\t\t\r\n\t\treturn \"list\";\r\n\t}", "@Override\n protected void completeIndexerSearchResult(String response, IndexerSearchResult indexerSearchResult, AcceptorResult acceptorResult, SearchRequest searchRequest, int offset, Integer limit) {\n Document doc = Jsoup.parse(response);\n if (doc.select(\"table.xMenuT\").size() > 0) {\n Element navigationTable = doc.select(\"table.xMenuT\").get(1);\n Elements pageLinks = navigationTable.select(\"a\");\n boolean hasMore = !pageLinks.isEmpty() && pageLinks.last().text().equals(\">\");\n boolean totalKnown = false;\n indexerSearchResult.setOffset(searchRequest.getOffset());\n int total = searchRequest.getOffset() + 100; //Must be at least as many as already loaded\n if (!hasMore) { //Parsed page contains all the available results\n total = searchRequest.getOffset() + indexerSearchResult.getSearchResultItems().size();\n totalKnown = true;\n }\n indexerSearchResult.setHasMoreResults(hasMore);\n indexerSearchResult.setTotalResults(total);\n indexerSearchResult.setTotalResultsKnown(totalKnown);\n } else {\n indexerSearchResult.setHasMoreResults(false);\n indexerSearchResult.setTotalResults(0);\n indexerSearchResult.setTotalResultsKnown(true);\n }\n indexerSearchResult.setPageSize(100);\n indexerSearchResult.setOffset(offset);\n }", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tString keyword = request.getParameter(\"keyword\");\n\t\tString pageNo = request.getParameter(\"pageNo\");\n\t\ttry {\n\t\t\tif(keyword == null) {\n\t\t\t\tresponse.sendError(400, \"keyword required\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(pageNo == null) {\n\t\t\t\tresponse.sendError(400, \"keyword required\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tList<MyPlannerBean> list = null;\n\t\ttry {\n\t\t\tSearchPlannerDAO dao = new SearchPlannerDAO(ConnectionProvider.getConnection());\n\t\t\tlist = dao.list(keyword, (Integer.parseInt(pageNo)-1)*9);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresponse.setContentType(\"application/json\");\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\t\tresponse.getWriter().print(JsonConverter.objectToJson(list));\n\t\t} catch (JsonGenerationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JsonMappingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "@Override\n public void onResultClick(SearchResult result) {\n Log.v(\"SearchBox\", \"onResultClick\" + result);\n setSearchFragment(result.title);\n }", "int getPage();", "@RequestMapping(value = \"search\")\n \tpublic String search(@RequestParam String q) {\n \t\tLong incidentId = Long.valueOf(q);\n \t\treturn \"forward:/incident/\" + incidentId;\n \t}", "@Test\n\tpublic void testQueryPage() {\n\n\t}", "@Override\r\n\tpublic ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tint pageSize = 10; // 한 페이지 당 출력될 글의 개수 지정\r\n\t\t\r\n\t\tString pageNum = request.getParameter(\"pageNum\"); // 페이지 번호를 받아온다.\r\n\t\tif(pageNum == null) {\r\n\t\t\tpageNum = \"1\"; // 페이지 번호를 눌러서 들어오지 않으면 게시판 1page를 보여준다.\r\n\t\t}\r\n\t\t\r\n\t\t// 페이지 번호를 사용해서 페이징 처리 시 연산을 수행할 것이므로\r\n\t\t// 페이지 번호값을 정수타입으로 변경\r\n\t\tint currentPage = Integer.parseInt(pageNum);\r\n\t\t\r\n\t\t// 해당 페이지에 출력되는 글들 중 가장 먼저 출력되는 글의 레코드 번호\r\n\t\tint startRow = (currentPage - 1) * pageSize + 1;\r\n\t\t// 현재 페이지 : 1\r\n\t\t// (1 - 1) * pageSize + 1 ---------> 1\r\n\t\t// 현재 페이지 : 2\r\n\t\t// (2 - 1) * pageSize + 1 ---------> 11\r\n\t\t\r\n\t\tint count = 0;\r\n\t\t// count : 총 글의 개수를 저장할 변수\r\n\t\tint number = 0;\r\n\t\t// number : 해당 페이지에 가장 먼저 출력되는 글의 번호\r\n\t\t\r\n\t\tList<ReservationInfo> reservationList = null; // 글 정보를 저장할 리스트\r\n\t\t// 해당 페이지에 출력되는 글 목록을 저장할 컬렉션\r\n\t\t\r\n\t\t// 비지니스 로직 처리를 위해 서비스 객체 생성\r\n\t\tReservationListService reservationListService = new ReservationListService();\r\n\t\t\r\n\t\tcount = reservationListService.getReservationCount(); // 총 예약의 개수를 가져온다.\r\n\t\tif(count > 0) { \r\n\t\t\t// 예약이 하나라도 있으면 리스팅할 예약 정보 얻어오기\r\n\t\t\treservationList = reservationListService.getReservationList(startRow, pageSize); // 해당 페이지의 레코드 10개씩 가져온다.\r\n\t\t}\r\n\t\t\r\n\t\t// 전체 페이지에서 현재페이지 -1을 해서 pageSize를 곱한다.\r\n\t\tnumber = count - (currentPage - 1) * pageSize;\r\n\t\t// 총 글의 개수 : 134\r\n\t\t// 현재 페이지 : 1\r\n\t\t// 134 - (1 - 1) * 10 -------> 134\r\n\t\t\r\n\t\tint startPage = 0;\r\n\t\tint pageCount = 0;\r\n\t\tint endPage = 0;\r\n\t\t\r\n\t\tif(count > 0) { // 글이 하나라도 존재하면...\r\n\t\t\tpageCount = count / pageSize + (count % pageSize == 0 ? 0 : 1);\r\n\t\t\t// 총 페이지 개수를 구함.\r\n\t\t\t// ex) 총 글의 개수 13개이면 페이지는 2개 필요..\r\n\t\r\n\t\t\tstartPage = ((currentPage -1) / pageSize) * pageSize + 1;\r\n\t\t\t// 현재 페이지 그룹의 첫번째 페이지를 구함.\r\n\t\t\t// [1][2][3][4][5][6][7]...[10] -------> 처음 페이지 그룹\r\n\t\t\t// 다음 페이지 스타트 페이지 : [11][12][13]....[20]\r\n\t\t\t\t\t\r\n\t\t\tint pageBlock = 10;\r\n\t\t\tendPage = startPage + pageBlock - 1;\r\n\t\t\t\r\n\t\t\t// 마지막 페이지 그룹인 경우..\r\n\t\t\tif(endPage > pageCount) endPage = pageCount;\r\n\t\t}\r\n\t\t\r\n\t\t// 포워딩 하기 전, 가져 온 글 공유\r\n\t\trequest.setAttribute(\"reservationList\", reservationList);\r\n\t\tPageInfo pageInfo = new PageInfo(); // 페이지에 관한 정보를 처리하는 객체 생성\r\n\t\tpageInfo.setCount(count);\r\n\t\tpageInfo.setCurrentPage(currentPage);\r\n\t\tpageInfo.setEndPage(endPage);\r\n\t\tpageInfo.setNumber(number);\r\n\t\tpageInfo.setPageCount(pageCount);\r\n\t\tpageInfo.setStartPage(startPage);\r\n\t\t\r\n\t\trequest.setAttribute(\"pageInfo\", pageInfo);\r\n\t\tActionForward forward = new ActionForward();\r\n\t\tforward.setUrl(\"/pc/reservationList.jsp\"); // list.jsp 페이지 포워딩\r\n\t\t\r\n\t\treturn forward;\r\n\t}", "LazyDataModel<ReagentResult> getSearchResults();", "@Override\n protected void onNextPageRequested(int page) {\n\n }", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "private void find(boolean forward) {\n \tif (this.currentFindResultPage != null) {\n \t\t/* searching again */\n \t\tint nextResultNum = forward ? this.currentFindResultNumber + 1 : this.currentFindResultNumber - 1;\n \t\tif (nextResultNum >= 0 && nextResultNum < this.pagesView.getFindResults().size()) {\n \t\t\t/* no need to really find - just focus on given result and exit */\n \t\t\tthis.currentFindResultNumber = nextResultNum;\n \t\t\tthis.pagesView.scrollToFindResult(nextResultNum);\n \t\t\tthis.pagesView.invalidate();\n \t\t\treturn;\n \t\t}\n \t}\n\n \t/* finder handles next/prev and initial search by itself */\n \tFinder finder = new Finder(this, forward);\n \tThread finderThread = new Thread(finder);\n \tfinderThread.start();\n }", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public static int doGetList(Result r) {\n // Make an HTTP GET passing the name on the URL line\n r.setValue(\"\");\n String response = \"\";\n HttpURLConnection conn;\n int status = 0;\n try {\n \n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n // tell the server what format we want back\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // wait for response\n status = conn.getResponseCode();\n // If things went poorly, don't try to read any response, just return.\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n String output = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream()))); \n while ((output = br.readLine()) != null) {\n response += output; \n } \n conn.disconnect();\n \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } \n // return value from server\n // set the response object\n r.setValue(response);\n // return HTTP status to caller\n return status;\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "HtmlPage clickLink();", "@Override\n\t\tpublic void onGetWalkingRouteResult(MKWalkingRouteResult arg0, int arg1) {\n\t\t\t\n\t\t}", "public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }", "public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }", "public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }", "List<SearchResult> search(SearchQuery searchQuery);", "@Override\r\n\tpublic void onGetWalkingRouteResult(MKWalkingRouteResult arg0, int arg1) {\n\t\t\r\n\t}", "public void consult() throws Exception {\n // TODO Consult\n try {\n String page = \"pi_per_intConsult.jsp\";// defina aqui a p?gina que deve ser chamada\n getResponse().sendRedirect(page);\n } catch (Exception e) {\n }\n }", "public void onClick(View v) {\n\t\t\t\t\tinvokeResults();\r\n\t\t\t\t}", "protected void loadNextPage(){\n\n if(!isShowingSearchedVotes) {\n setLoadingMoreItems(true);\n RikdagskollenApp.getInstance().getRiksdagenAPIManager().getVotes(new VoteCallback() {\n\n @Override\n public void onVotesFetched(List<Vote> votes) {\n setShowLoadingView(false);\n voteList.addAll(votes);\n getAdapter().notifyDataSetChanged();\n setLoadingMoreItems(false);\n }\n\n @Override\n public void onFail(VolleyError error) {\n setLoadingMoreItems(false);\n decrementPage();\n }\n }, getPageToLoad());\n\n incrementPage();\n }\n }", "private static StringBuilder searchNextPage(String nextToken){\r\n\t\tHttpURLConnection conn = null;\r\n\t\tStringBuilder jsonResults = new StringBuilder();\r\n\t\ttry{\r\n\t\t\tStringBuilder request = new StringBuilder(PLACES_API_SOURCE);\r\n\t\t\trequest.append(typeSearch);\r\n\t\t\trequest.append(JSON_OUT);\r\n\t\t\trequest.append(\"?pagetoken=\");\r\n\t\t\trequest.append(nextToken);\r\n\t\t\trequest.append(\"&key=\");\r\n\t\t\trequest.append(KEY);\r\n\r\n\t\t\tURL url = new URL(request.toString());\r\n\t\t\tconn = (HttpURLConnection) url.openConnection();\r\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream(), \"UTF-8\"));\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tjsonResults.append(line);\r\n\t\t\t}\r\n\t\t}catch(MalformedURLException e){\r\n\t\t\tSystem.out.println(\"URL ERROR [search] \");\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.println(\"CONNECTION ERROR [search] \"+ e);\r\n\t\t}finally{\r\n\t\t\tif(conn!=null)\r\n\t\t\t\tconn.disconnect();\r\n\t\t}\r\n\t\treturn jsonResults;\r\n\t}", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public void report(List<Page> result) {\n\n\t\t// Print Pages out ranked by highest authority\n\t\tsortAuthority(result);\n\t\tSystem.out.println(\"AUTHORITY RANKINGS : \");\n\t\tfor (Page currP : result)\n\t\t\tSystem.out.printf(currP.getLocation() + \": \" + \"%.5f\" + '\\n', currP.authority);\n\t\tSystem.out.println();\n\t\t// Print Pages out ranked by highest hub\n\t\tsortHub(result);\n\t\tSystem.out.println(\"HUB RANKINGS : \");\n\t\tfor (Page currP : result)\n\t\t\tSystem.out.printf(currP.getLocation() + \": \" + \"%.5f\" + '\\n', currP.hub);\n\t\tSystem.out.println();\n\t\t// Print Max Authority\n\t\tSystem.out.println(\"Page with highest Authority score: \" + getMaxAuthority(result).getLocation());\n\t\t// Print Max Authority\n\t\tSystem.out.println(\"Page with highest Hub score: \" + getMaxAuthority(result).getLocation());\n\t}", "LiveData<PagedList<Response>> pagedList();" ]
[ "0.69259834", "0.6558448", "0.632266", "0.6298551", "0.6278351", "0.6273761", "0.61893374", "0.5986157", "0.5980971", "0.59579587", "0.5957673", "0.5881658", "0.58384985", "0.58180076", "0.5755386", "0.575226", "0.5735272", "0.5722543", "0.5722431", "0.57064724", "0.56899333", "0.56844264", "0.56818306", "0.56784904", "0.56784904", "0.5660541", "0.56539506", "0.5651721", "0.5639373", "0.5635791", "0.5635246", "0.5632042", "0.5619422", "0.5590706", "0.55885684", "0.55711603", "0.5569706", "0.5549214", "0.55360305", "0.553281", "0.5505633", "0.5503951", "0.55024326", "0.5500944", "0.5498123", "0.54976094", "0.54946715", "0.5475484", "0.5474011", "0.54653007", "0.54594916", "0.5444108", "0.543413", "0.5430919", "0.543021", "0.5422265", "0.5422265", "0.54165936", "0.5408754", "0.54076093", "0.5402026", "0.53997993", "0.53969085", "0.53874844", "0.53832483", "0.53832316", "0.5381531", "0.5380517", "0.53774756", "0.53772295", "0.5371967", "0.5370043", "0.5367998", "0.53610957", "0.53587174", "0.53549194", "0.53538674", "0.5351741", "0.5348676", "0.53363967", "0.5335091", "0.53303033", "0.53267884", "0.5326329", "0.53203607", "0.5316882", "0.53166795", "0.531585", "0.53137535", "0.53115404", "0.53115404", "0.53115404", "0.53097343", "0.53061885", "0.5303158", "0.52984166", "0.5288405", "0.52819", "0.5273432", "0.5272686", "0.5270034" ]
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_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7249559", "0.7204226", "0.71981144", "0.7180145", "0.7110589", "0.70431244", "0.7041351", "0.70150685", "0.70118093", "0.69832", "0.6947845", "0.69419056", "0.6937257", "0.6920975", "0.6920975", "0.68938893", "0.68867826", "0.6878929", "0.6877472", "0.68656766", "0.68656766", "0.68656766", "0.68656766", "0.68553543", "0.6850232", "0.6822862", "0.68201447", "0.68163574", "0.68163574", "0.6816304", "0.6809227", "0.6803687", "0.6801118", "0.67946446", "0.67919034", "0.67913854", "0.6786644", "0.67618436", "0.6760987", "0.67516655", "0.67475504", "0.67475504", "0.6744612", "0.67433023", "0.6729379", "0.67267543", "0.67261547", "0.67261547", "0.6724336", "0.6714574", "0.67084044", "0.670811", "0.67026806", "0.6701955", "0.670018", "0.6697785", "0.66899645", "0.6687168", "0.6687168", "0.66860044", "0.66835976", "0.6682339", "0.668104", "0.6671387", "0.66706777", "0.6665407", "0.6659777", "0.6659777", "0.6659777", "0.6659032", "0.6658105", "0.6658105", "0.6658105", "0.66553104", "0.6654278", "0.6654054", "0.66521645", "0.6650613", "0.66495895", "0.6649238", "0.66490036", "0.6648245", "0.66481483", "0.6646514", "0.6646321", "0.6645122", "0.66418123", "0.6638334", "0.6636035", "0.6635416", "0.6635416", "0.6635416", "0.6635411", "0.66325295", "0.6631742", "0.66299105", "0.6629049", "0.6627932", "0.66237384", "0.662195", "0.662195" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //done: set a button to open drawer //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { if (!drawerLayout.isDrawerOpen(drawer)) drawerLayout.openDrawer(drawer); else drawerLayout.closeDrawers(); 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 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 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 int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\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 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.79052806", "0.7806316", "0.7767438", "0.772778", "0.76324606", "0.7622031", "0.758556", "0.7531728", "0.7489057", "0.74576724", "0.74576724", "0.743964", "0.7422121", "0.74037784", "0.73926556", "0.7387903", "0.73803806", "0.73715395", "0.7362778", "0.7357048", "0.7346653", "0.73422706", "0.7331221", "0.7329421", "0.7326524", "0.73197514", "0.73175013", "0.7314632", "0.7305193", "0.7305193", "0.73030055", "0.72992206", "0.7294402", "0.7287853", "0.7284157", "0.72821075", "0.72797185", "0.7260893", "0.7260893", "0.7260893", "0.7260798", "0.72604334", "0.7250995", "0.72243106", "0.72205526", "0.7217967", "0.72052115", "0.72008896", "0.7200226", "0.71938485", "0.7186533", "0.7178549", "0.71698415", "0.7168567", "0.7154602", "0.7154338", "0.71365875", "0.71357495", "0.71357495", "0.71302795", "0.7129606", "0.7125107", "0.7124433", "0.71243066", "0.7122874", "0.7118138", "0.71181303", "0.71180034", "0.71180034", "0.71180034", "0.71180034", "0.7117241", "0.71159554", "0.7113099", "0.7110779", "0.71097904", "0.71062744", "0.710078", "0.7099281", "0.70957214", "0.7094494", "0.7094494", "0.7087356", "0.70834076", "0.7081747", "0.70809853", "0.70746684", "0.70691484", "0.70627403", "0.70616937", "0.7060999", "0.7052165", "0.70382303", "0.70382303", "0.7036847", "0.7036218", "0.7036218", "0.70333946", "0.7031289", "0.7030542", "0.70198953" ]
0.0
-1
click on drawer to go to specific activity copy this into every activity
public void drawerClickAndGo(int position) { Context a= MainActivity.this; Class b = Agenda.class ;//just init so there is no error if (position==0) //current position return; if (position==1) b = Agenda.class; Intent intent= new Intent(a,b); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void moveToMainActivity(){\r\n Intent goToMainActivity = new Intent(workoutActivity.this, BodyGroups.class);\r\n startActivity(goToMainActivity);;\r\n }", "protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent i=new Intent(getApplicationContext(),MainActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n public void onClick(View view) {\n Intent drakeIntent = new Intent(MainActivity.this, DrakeActivity.class);\n startActivity(drakeIntent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getContext(), Dashboard.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tMainActivity.openDrawer();\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent oldCowtownIntent = new Intent(Sights.this, OldCowtown.class);\n startActivity(oldCowtownIntent);\n }", "@Override\n public void onClick(View view) {\n Intent nationIntent = new Intent(MainActivity.this, NationActivity.class);\n startActivity(nationIntent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getActivity(),anotherActivity1.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View arg0) {\n Intent intent = new Intent(context, MainActivity2.class); //al click sul bottone apre una nuova activity\n startActivity(intent);\n\n }", "private void ToAnother() {\n\t\t\n\t\tiv_menu_icon = (ImageView)findViewById(R.id.iv_menu_icon);\n\t intent = new Intent(this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n Intent r1page = new Intent(v.getContext(), the_oxford_kitchen.class);\n startActivity(r1page);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(SingleTopActivity.this, SingleTopActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent in = new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t\tstartActivity(in);\n\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 2);\n\t\t\tstartActivity(i);\n\t\t}", "@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, ViewActivity.class));\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tswitch(id){\n\t\t\tcase R.id.calendar:\n\t\t\t\tIntent intent = new Intent(MainActivity.this,CalendarActivity.class);\n\t\t\t\t//intent.putExtra(\"account\", account); \n\t\t\t\tstartActivity(intent);\n\t\t\t\tbreak;\n\t\t\tcase R.id.weather:\n\t\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i1= new Intent(MainActivity.this,page1.class);\n\t\t\tstartActivity(i1);\n\t\t\t\n\t\t}", "@Override\n public void onClick(View v){\n Intent intent = new Intent(MainMenu.this, basketballMenu.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n \tIntent intent = new Intent(getApplicationContext(), Gamenine.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\r\n public void onClick(View v) {\n int id = v.getId();\r\n switch(id){\r\n case R.id.mylend:\r\n \t startActivity(new Intent(MyInfoActivity.this,CollectionActivity.class));\r\n \t break;\r\n case R.id.mywant:\r\n \t startActivity(new Intent(MyInfoActivity.this,MyWantedActivity.class));\r\n \t break;\r\n }\r\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tIntent i = new Intent(this,MainActivity.class);\n\t\tstartActivity(i);\n\t}", "@Override\n public void onClick(View v) {\n Intent HomeScreen = new Intent(v.getContext(), MainActivity.class);\n startActivity(HomeScreen);\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent(MainActivity.this, MainActivity2.class);\n\t\t\tstartActivity(intent);\n\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 1); //sonraki activity'e yemeklerin gosterim seklini aktariyor\n\t\t\tstartActivity(i);\n\t\t}", "@Override\n public void onClick(View view) {\n\n openMain3Activity();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(activity, Honour_Activity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "public void onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity1.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent levelone = new Intent(\"anky.dj.iitkgp.LEVELONE\");\r\n\t\t\t\tstartActivity(levelone);\r\n\t\t\t}", "private void goToActivity(Class goToClass) {\n Intent intent = new Intent(MenuActivity.this, goToClass);\n intent.putExtra(USER_ID,user.getId());\n intent.putExtra(USERNAME,user.getUserName());\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n openActivity2();\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext,Main2Activity.class);\n mContext.startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, TriggerActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n incidentalIntent = new Intent(getApplicationContext(),IncidentalTaskActivity.class);\n startActivity(incidentalIntent);\n }", "@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }", "@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, SettingActivity.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), sh1.class);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, PageDetailDestinasiPopuler.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent(MainActivity.this,MyActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent screenChange = new Intent(getApplicationContext(), settings.class);\n //creating a bundle to store the variables that will be passed into the next\n //activity\n //starting our activity for a result\n startActivity(screenChange);\n }", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link dumoActivity}\n Intent dumoIntent = new Intent(MainActivity.this, dumoActivity.class);\n // Start the new activity\n startActivity(dumoIntent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(MainActivity.this,\n\t\t\t\t\t\tcom.itcuties.android.apps.MainActivity.class));\n\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NowPlaying.this, classDestination);\n // starting new activity\n startActivity(intent);\n }", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.shezhi:\r\n\t\t\tIntent intent1 = new Intent(getActivity(), SettingActivity.class);\r\n\t\t\tstartActivity(intent1);\r\n\t\t\tbreak;\r\n\t\tcase R.id.taobao_go:\r\n\t\t\tIntent intent2 = new Intent(getActivity(), MydipanWebview.class);\r\n\t\t\tstartActivity(intent2);\r\n\t\t\tbreak;\r\n\t\tcase R.id.wuliu:\r\n\t\t\tIntent intent3 = new Intent(getActivity(), WuliuWebview.class);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\tbreak;\r\n\t\tcase R.id.gouwuche:\r\n\t\t\tIntent intent4 = new Intent(getActivity(), GouwucheWebview.class);\r\n\t\t\tstartActivity(intent4);\r\n\t\t\tbreak;\r\n\t\tcase R.id.dingdan:\r\n\t\t\tIntent intent5 = new Intent(getActivity(), DingdanWebview.class);\r\n\t\t\tstartActivity(intent5);\r\n\t\t\tbreak;\r\n\t\tcase R.id.shoucang:\r\n\t\t\tIntent intent6 = new Intent(getActivity(), ShoucangWebview.class);\r\n\t\t\tstartActivity(intent6);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Main3Activity.this,Main4Activity.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View v) {\n Intent r2page = new Intent(v.getContext(), Cherwell_Boathouse.class);\n startActivity(r2page);\n }", "public void onClick(View v) {\n Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nextScreen);\n }", "@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(MainActivity.this, TAXActivity.class);\n// Intent intent = new Intent(MainActivity.this, Main3Activity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link inflatorsActivity}\n Intent inflatorsIntent = new Intent(MainActivity.this, inflatorsActivity.class);\n // Start the new activity\n startActivity(inflatorsIntent);\n }", "@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,staffLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }", "@Override\n public void onClick(View view) {\n\n\n Intent i = new Intent(getApplicationContext(),Selection.class);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, SecondActivity.class);\n startActivity(intent);\n\n }", "@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\t Intent yu =new Intent(MainActivity.this, Helper.class);\n\t\t\t\t\t\t \tstartActivity(yu);\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t}", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(),GameActivity.class);\n\n\n startActivity(i);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, DrawingActivitySingle.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\t//intent.putExtra(\"path\",path);\n\t\t\t\tintent.setClass(MainInterfceActivity.this, PersonalInfoActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}", "private void goToMenu() {\n Intent intentProfile = new Intent(PregonesActivosActivity.this, MenuInicial.class);\n PregonesActivosActivity.this.startActivity(intentProfile);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }", "@Override\n public boolean onOptionsItemSelected (MenuItem item){\n final Context context=this;\n switch(item.getItemId()){\n\n // Intent intent1 = new Intent(context, visalle.class);\n //startActivity(intent1);\n }\n\n //noinspection SimplifiableIfStatement\n /*if (id == R.id.action_settings) {\n return true;\n }*/\n\n return super.onOptionsItemSelected(item);\n }", "public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}", "public void go_to_setting(){\n Intent i=new Intent(LoginSelection.this, Configuration.class);\n startActivity(i);\n }", "public void onClick(View v) {\n \tIntent intent = new Intent(HistoryActivity.this, FoundationActivity.class);\n \t \tstartActivity(intent);\n }", "private void goToMainActivity() {\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(DAF_YOMI_DETAILES, mDafYomiDetailes);\n startActivity(mainIntent);\n finish();\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tintent = new Intent();\n\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\tintent.setClass(FancySelectFoodActivity.this,\n\t\t\t\t\t\tMainActivity.class);\n\t\t\t\tFancySelectFoodActivity.this.startActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }", "public void toExamSe(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam navigation item clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n intent.putExtra(\"finnish\", false);\n intent.putExtra(\"startNewExam\", true);\n db.setIsFinnishQuestions(false);\n startActivity(intent);\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n \tIntent intent = new Intent(getApplicationContext(), Gameonesix.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public void onClick(View v) {\n Intent intent = new Intent(code1.this, Levels.class);\n startActivity(intent);\n\n }", "private void openActivity() {\n }", "public void onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity3.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }", "@Override\r\npublic void onClick(View arg0) {\n\tswitch(arg0.getId())\r\n\t{\r\n\t\tcase R.id.bt_other:\r\n\t\t/*Intent i=new Intent();\r\n\t\t\tstartActivity(i);\r\n\t\t\tsetContentView(R.layout.other);*/\r\n\t\t\tIntent Intent=new Intent(MainPage.this,DataSend.class);\r\n\t\t\tIntent.putExtra(\"KEY_LIST\", device);\r\n\t\t\tIntent.putExtra(\"KEY_LISTNUMBER\", count);\r\n\t\t\tstartActivity(Intent);\r\n\t\t\t/*Intent Intent1=new Intent(MainPage.this,AdminPanel.class);\r\n\t\t\tIntent1.putExtra(\"KEY_LIST\", device);\r\n\t\t\tstartActivity(Intent1);*/\r\n \t//setContentView(R.layout.adminhome);\r\n\t\tbreak;\r\n\t}\r\n}", "@Override\n public void onClick(View v) {\n actionBar.setClickable(false);\n ((HomeActivity) mParent).setMealKey(mConversationKey);\n ((HomeActivity) mParent).selectDrawerItem(((HomeActivity) mParent).getNvDrawer().getMenu().findItem(R.id.nav_meal_detail), getString(R.string.update_meal));\n }", "private void goToMainActivity(){\n Log.d(TAG, \"goToMainActivity: called\");\n saveUserLogin(login);\n\n Intent intent = new Intent(\"android.intent.action.MapActivity\");\n view.getContext().startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, CardapioActivity.class);\n startActivity(intent);\n }", "@Override\r\n\tpublic void leftbuttonclick(View view) {\n\t\t Intent intent=new Intent (mContext,MainActivity.class);\r\n\t\t FuBaoApplication.getInstance().setInt(0);\r\n\t\t startActivity(intent);\r\n\t\t\r\n\t}", "private void goToNavActivity() {\n Intent i = new Intent(MainActivity.this, NavActivity.class);\n startActivity(i);\n finish();\n }", "@Override\n public void onClick(View view) {\n Intent gotoLogin = new Intent(IggOfficesActivity.this,AdminLogInActivity.class);\n startActivity(gotoLogin);\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), Gametwofive.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(activity, CommunityActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "public void CameToSelectActivity (View view) {\n Intent CameToSelectIntent = new Intent(getApplicationContext(), SelectActivity.class);\n startActivity(CameToSelectIntent);\n }", "public void onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity2.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainDashBoardActivity.this, DealerSearchActivity.class);\n startActivity(intent);\n\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), ANQ.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(StartActivity.this, MainActivity.class));\n }", "public void toExamFi(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam navigation item clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n intent.putExtra(\"finnish\", true);\n intent.putExtra(\"startNewExam\", true);\n db.setIsFinnishQuestions(true);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent p2page = new Intent(v.getContext(), ChristChurch.class);\n startActivity(p2page);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, SpecificInfoActivityed.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@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.action_settings) {\r\n return true;\r\n }\r\n\r\n if (id == R.id.action_about) {\r\n ScreenAbout screenAbout = new ScreenAbout();\r\n Intent intent = new Intent(this, ScreenAbout.class);\r\n //intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n //intent.putExtra(ScreenAbout.class.getName(), ScreenAbout.class.getName());\r\n startActivity(intent);\r\n return true;\r\n }\r\n\r\n if (id == R.id.action_radar) {\r\n ScreenRadar screenRadar = new ScreenRadar();\r\n Intent intent = new Intent(this, ScreenRadar.class);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n intent.putExtra(ScreenRadar.class.getName(), ScreenRadar.class.getName());\r\n startActivity(intent);\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), MapActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(Admin2Home.this, Admin2Infomation.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent light = new Intent(MainActivity.this,Light.class);\n\t\t\t\tstartActivity(light);\n\t\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.linInfo:\n\t\t\tif(CommonUtils.getSharedPreFerences(getApplicationContext(), CommonUtils.SHARED_USER_NAME).equals(\"\"))\n\t\t\t{\n\t\t\t\tCommonUtils.changeActivity(MemberCenter.this, LoginActivity.class);\n\t\t\t}else\n\t\t\t{\n\t\t\tCommonUtils.changeActivity(MemberCenter.this, MyInfoActivity.class);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.linOrder:\n\t\t\tif(CommonUtils.getSharedPreFerences(getApplicationContext(), CommonUtils.SHARED_USER_NAME).equals(\"\"))\n\t\t\t{\n\t\t\t\tCommonUtils.changeActivity(MemberCenter.this, LoginActivity.class);\n\t\t\t}else\n\t\t\t{\n\t\t\tCommonUtils.changeActivity(MemberCenter.this, OrderListActivity.class);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.linCollect:\n\t\t\tif(CommonUtils.getSharedPreFerences(getApplicationContext(), CommonUtils.SHARED_USER_NAME).equals(\"\"))\n\t\t\t{\n\t\t\t\tCommonUtils.changeActivity(MemberCenter.this, LoginActivity.class);\n\t\t\t}else\n\t\t\t{\n\t\t\tCommonUtils.changeActivity(MemberCenter.this, HotelCollectListActivity.class);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.linFriend:\n\t\t\tIntent intent = new Intent(); \n\t\t intent.setAction(Intent.ACTION_PICK); \n\t\t intent.setData(ContactsContract.Contacts.CONTENT_URI); \n\t\t startActivityForResult(intent, 1); \n\t\t\tbreak;\n\t\tcase R.id.btnLeft:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "private void openMainActivity(int pos) {\n Intent i = new Intent(Launcher.this, MainActivity.class);\n i.putExtra(\"division\", pos);\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,MainActivity.class));\n }", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(getContext(), Detalles.class);\n // Enlace a la web de la noticia\n intent.putExtra(\"Enlace\", direccionDesarrollador);\n startActivity(intent);\n }", "public void openActivity3(){\n Intent intent = new Intent(this, Favoris.class);\n startActivity(intent);\n }" ]
[ "0.6919802", "0.69040596", "0.6713172", "0.67119205", "0.6672583", "0.66580194", "0.6641014", "0.66215456", "0.6611169", "0.66002584", "0.65910274", "0.6590958", "0.6584189", "0.6566663", "0.6535487", "0.65213645", "0.6512934", "0.65116066", "0.651156", "0.6510766", "0.65009433", "0.64986104", "0.64948475", "0.6494018", "0.64938414", "0.6488237", "0.64854836", "0.64717907", "0.64551735", "0.6451379", "0.6448839", "0.6446293", "0.64461195", "0.6445453", "0.6444749", "0.6437418", "0.6429501", "0.64274424", "0.64270216", "0.64201313", "0.64123976", "0.64106727", "0.6405249", "0.6403687", "0.64025885", "0.64014095", "0.64000505", "0.6396087", "0.6390429", "0.6389642", "0.63861424", "0.63829935", "0.63813925", "0.63795716", "0.63768286", "0.63739455", "0.63709956", "0.63658106", "0.63612527", "0.6356245", "0.63516533", "0.6351054", "0.63500667", "0.6349456", "0.63486797", "0.63484824", "0.6340862", "0.63367105", "0.6336279", "0.63305634", "0.63287205", "0.63265413", "0.6323598", "0.6321323", "0.63180506", "0.6317113", "0.6313572", "0.6310891", "0.6309588", "0.6306101", "0.6304417", "0.630104", "0.6300474", "0.6298841", "0.62976986", "0.6296086", "0.6291371", "0.6289456", "0.628761", "0.6287264", "0.6286039", "0.62842536", "0.62840235", "0.62833095", "0.6281344", "0.62789387", "0.6274756", "0.62702507", "0.6269159", "0.6268074" ]
0.73145163
0
Get the keyType property: The access key to regenerate.
public KeyType keyType() { return this.keyType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getKeyType() {\n return keyType;\n }", "public java.lang.String getKeyType() {\n return keyType;\n }", "public String getKeyType() \n {\n return DBFactory.getKeyTypeName(this.keyType);\n }", "private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "Class<?> getKeyType();", "public AccessType getAccessType() {\n return accessType;\n }", "public AccessType getAccessType() {\n return accessType;\n }", "public int getAccessType() {\n return accessType;\n }", "public com.guidewire.datamodel.TypekeyDocument.Typekey addNewTypekey()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.TypekeyDocument.Typekey target = null;\r\n target = (com.guidewire.datamodel.TypekeyDocument.Typekey)get_store().add_element_user(TYPEKEY$16);\r\n return target;\r\n }\r\n }", "public RegenerateAccessKeyParameters withKeyType(KeyType keyType) {\n this.keyType = keyType;\n return this;\n }", "public static String getKeyTypeName(KeyType type)\n {\n // TODO: should be moved to DBProvider ...\n // MySQL : key identifier\n // SQLServer : key identifier\n // Derby : key identifier\n // PostgreSQL: key identifier\n switch (type) {\n // MySQL: key types ...\n case PRIMARY : return \"PRIMARY KEY\"; // table\n case UNIQUE : return \"UNIQUE\"; // table\n case INDEX : return \"INDEX\"; // table/index\n case UNIQUE_INDEX : return \"UNIQUE INDEX\"; // table/index\n default : return \"UNKNOWN\";\n }\n }", "public AccessType getAccessType() {\n\treturn this.accessType;\n }", "public String getAccessTypeString() {\n return String.valueOf(accessType);\n }", "public Class<PRIV> getPrivateKeyClass() {\n return privKeyType;\n }", "public java.lang.Long getOpckeytype() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCKEYTYPE);\n\t}", "public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }", "java.lang.String getClientKey();", "public Class<?> getKeyClass() \n\t{\n\t return keyClass ;\n\t}", "public native void keyType(char c);", "public Keywords.Type getType() {\n\t\treturn type;\n\t}", "public Builder setKeyClass(Type keyType) {\n this.keyType = keyType;\n return this;\n }", "public Class<? extends DBRecordKey<gDBR>> getKeyClass()\n {\n return this.keyClass;\n }", "public PrivateKeyType getPivateKeyType() {\n return PrivateKeyType.SAPLING_EXTENED_SPEND_KEY;\n }", "@Override public io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType getType() {\n @SuppressWarnings(\"deprecation\")\n io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType result = io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.valueOf(type_);\n return result == null ? io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.UNRECOGNIZED : result;\n }", "@Override\n public io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType getType() {\n @SuppressWarnings(\"deprecation\")\n io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType result = io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.valueOf(type_);\n return result == null ? io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.UNRECOGNIZED : result;\n }", "ApiKeys regenerateKey(RegenerateKeyParameters parameters);", "boolean isTypeKey(String key);", "@Override\n\tpublic java.lang.String getTypeCode() {\n\t\treturn _permissionType.getTypeCode();\n\t}", "com.google.protobuf.ByteString getKeyRevocationActionTypeBytes();", "public interface TypeKey {\n}", "java.lang.String getPkiType();", "@Schema(required = true, description = \"Contract type (KIP-7, KIP-17, ERC-20, ERC-721)\")\n public String getType() {\n return type;\n }", "public int getType()\n {\n return pref.getInt(KEY_TYPE, 0);\n }", "java.lang.String getKeyRevocationActionType();", "public GeneratorType getGeneratorType() {\r\n return myType;\r\n }", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyType(java.lang.String value) {\n validate(fields()[2], value);\n this.keyType = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getAccessTypeCd() {\n\t return this.rtCode;\n\t}", "public int generateKey() {\n SecureRandom secureRandom = new SecureRandom();\n try {\n secureRandom = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return secureRandom.nextInt(26);\n }", "String newKey();", "T getRandomKey();", "public void setAccessType(String accessType) {\n this.accessType = Integer.parseInt(accessType);\n }", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "Object getAuthInfoKey();", "public int getAccType() {\n\t\treturn accType;\n\t}", "public String getRandomKey() {\n return randomKey;\n }", "AdminKeys regenerateAdminKeys(AdminKeyKind keyKind);", "public String getTypeId() {\r\n return typeId;\r\n }", "public int getType() {\n return _type;\n }", "public int getType() {\n return _type;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPkiTypeBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(pkiType_);\n }", "public char getType() {\n return type;\n }", "public char getType() {\n return type;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public Integer getTypeCode() {\n return typeCode;\n }", "public char getType() {\r\n return type;\r\n }", "public int getType() // pro rozeznani kdy vyuzit ai\n {\n return this.type;\n }", "public HasID get(@SuppressWarnings(\"rawtypes\") Class type, String key);", "public char getType() {\n return this._type;\n }", "public char getType() {\n\t\treturn type;\n\t}", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public void setAccessType(int accessType) {\n this.accessType = accessType;\n }", "public int getType() {\r\n return typ;\r\n }", "@Test\n public void getType() throws Exception {\n Class<?> type = new AttributeKey<Number>(Number.class, \"keyName\").getType();\n assertThat(type, is((Object) Number.class));\n }", "public short key();", "public String obtenirType() {\n\t\treturn this.type;\n\t}", "public long getType() {\r\n return type;\r\n }", "public String accessKey() {\n return this.accessKey;\n }", "default Class<?> getType(String key) {\n Object v = get(key);\n return v == null ? null : v.getClass();\n }", "public boolean hasKeyType() {\n return fieldSetFlags()[2];\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public int getType() {\r\n\t\treturn (type);\r\n\t}", "public int getType()\r\n {\r\n return type;\r\n }", "public String getAggregateKeyType() {\n return this.aggregateKeyType;\n }", "final public int getType() {\n return type;\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();" ]
[ "0.7355866", "0.7340253", "0.6867013", "0.64815235", "0.6479051", "0.6427986", "0.6264537", "0.6264537", "0.6262351", "0.6230576", "0.6215645", "0.6178192", "0.61315507", "0.607307", "0.6051033", "0.6029059", "0.5997918", "0.59085375", "0.5833456", "0.58115315", "0.5811228", "0.5764212", "0.57326615", "0.5713919", "0.5712448", "0.57032907", "0.56853485", "0.5677719", "0.5592657", "0.5578013", "0.55540866", "0.5538983", "0.5475565", "0.54567796", "0.5433497", "0.5425609", "0.54222316", "0.5415559", "0.5415559", "0.5415559", "0.5415559", "0.54150385", "0.5410959", "0.54106975", "0.54096246", "0.5400459", "0.53988844", "0.53842556", "0.5383787", "0.5383389", "0.5374363", "0.5361169", "0.5356196", "0.5356196", "0.532749", "0.5314374", "0.5314374", "0.53068554", "0.53068554", "0.53068554", "0.53068554", "0.53068554", "0.5306278", "0.5306278", "0.5305322", "0.53048754", "0.5303715", "0.5300064", "0.52946526", "0.52850527", "0.52832806", "0.52832806", "0.52832806", "0.52832806", "0.52832806", "0.52832806", "0.52832806", "0.5277148", "0.52730995", "0.5269976", "0.52688956", "0.52661484", "0.5265894", "0.52650446", "0.5264032", "0.526101", "0.5260714", "0.525779", "0.5256977", "0.5254835", "0.5254381", "0.52538323", "0.52538323", "0.52538323", "0.52538323", "0.52538323", "0.52538323", "0.52538323", "0.52538323", "0.52538323" ]
0.72215813
2
Set the keyType property: The access key to regenerate.
public RegenerateAccessKeyParameters withKeyType(KeyType keyType) { this.keyType = keyType; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setKeyClass(Type keyType) {\n this.keyType = keyType;\n return this;\n }", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyType(java.lang.String value) {\n validate(fields()[2], value);\n this.keyType = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}", "protected void setAccessType(AccessType accessType) {\n\tthis.accessType = accessType;\n }", "public void setAccessType(String accessType) {\n this.accessType = Integer.parseInt(accessType);\n }", "public java.lang.String getKeyType() {\n return keyType;\n }", "public void setAccessType(int accessType) {\n this.accessType = accessType;\n }", "public java.lang.String getKeyType() {\n return keyType;\n }", "public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }", "public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }", "public com.guidewire.datamodel.TypekeyDocument.Typekey addNewTypekey()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.TypekeyDocument.Typekey target = null;\r\n target = (com.guidewire.datamodel.TypekeyDocument.Typekey)get_store().add_element_user(TYPEKEY$16);\r\n return target;\r\n }\r\n }", "public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }", "public KeyType keyType() {\n return this.keyType;\n }", "public Gateway setTokenType(java.lang.String tokenType) {\n return genClient.setOther(tokenType, CacheKey.tokenType);\n }", "public void setTypekeyArray(com.guidewire.datamodel.TypekeyDocument.Typekey[] typekeyArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(typekeyArray, TYPEKEY$16);\r\n }\r\n }", "ApiKeys regenerateKey(RegenerateKeyParameters parameters);", "@WriteOperation\n public void setApiKey(String apiKeyId, String secretApiKey, @Nullable AuthorizationType authorizationType) {\n authenticator.setApiKey(getAuthorizationType(authorizationType), apiKeyId, secretApiKey);\n }", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder clearKeyType() {\n keyType = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "public void setIdType(int idType) {\r\n this.idType = idType;\r\n }", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "AdminKeys regenerateAdminKeys(AdminKeyKind keyKind);", "public Key(int type)\n {\n this.type = type;\n this.columns = new ArrayList<Column>();\n }", "public String getKeyType() \n {\n return DBFactory.getKeyTypeName(this.keyType);\n }", "public interface TypeKey {\n}", "public void setIdType(Integer idType) {\n this.idType = idType;\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 native void keyType(char c);", "public static PSKey createKey(int contentTypeId)\n {\n return new PSSimpleKey(KEY_CONTENTTYPEID, \"\" + contentTypeId); \n }", "public void setType(String aType) {\n iType = aType;\n }", "public static String getKeyTypeName(KeyType type)\n {\n // TODO: should be moved to DBProvider ...\n // MySQL : key identifier\n // SQLServer : key identifier\n // Derby : key identifier\n // PostgreSQL: key identifier\n switch (type) {\n // MySQL: key types ...\n case PRIMARY : return \"PRIMARY KEY\"; // table\n case UNIQUE : return \"UNIQUE\"; // table\n case INDEX : return \"INDEX\"; // table/index\n case UNIQUE_INDEX : return \"UNIQUE INDEX\"; // table/index\n default : return \"UNKNOWN\";\n }\n }", "void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }", "public void setKey(int key);", "public void setKey(int key);", "public void setType(int type) {\n type_ = type;\n }", "public void setAccessToken(String accessToken, String tokenType)\n {\n FileWriter fileWriter;\n try\n {\n fileWriter = new FileWriter(getCache(\"token\"));\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(accessToken);\n bufferedWriter.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n try\n {\n fileWriter = new FileWriter(getCache(\"tokenType\"));\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(tokenType);\n bufferedWriter.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n this.accessToken = accessToken;\n }", "public void setId_type(String id_type) {\n this.id_type = id_type;\n }", "public void setTypekeyArray(int i, com.guidewire.datamodel.TypekeyDocument.Typekey typekey)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.TypekeyDocument.Typekey target = null;\r\n target = (com.guidewire.datamodel.TypekeyDocument.Typekey)get_store().find_element_user(TYPEKEY$16, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(typekey);\r\n }\r\n }", "public void setType(String newtype)\n {\n type = newtype;\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 this.type = type;\n }", "public void setType (int type) {\n this.type = type;\n }", "protected void setType(String newType) {\n\t\ttype = newType;\n\t}", "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "void setKey(String key);", "private void _setIndexType(String ndxType)\n {\n if (this.indexType == null) {\n synchronized (this.indexTypeLock) {\n if (this.indexType == null) {\n this.indexType = ndxType;\n }\n }\n }\n }", "public static void setType(int type) {\n\t\t\tGamePreferences.type = type;\n\t\t}", "public void setType(int atype)\n {\n type = atype;\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 ) {\r\n typ = type;\r\n }", "private void setPkiType(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000002;\n pkiType_ = value;\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void setType(int type) {\n this.type = type;\n }", "Class<?> getKeyType();", "public void change_type(int type_){\n\t\ttype = type_;\n\t\tif(type != 0)\n\t\t\toccupe = 1;\n\t}", "public int getAccessType() {\n return accessType;\n }", "void setKey(java.lang.String key);", "void setType(String type) {\n this.type = type;\n }", "public AccessType getAccessType() {\n return accessType;\n }", "public AccessType getAccessType() {\n return accessType;\n }", "public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }", "public void setOpckeytype(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCKEYTYPE, value);\n\t}", "void setKey(final String key);", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "public void setType(int type)\n\t{\n\t\tthis.type = type;\n\t}", "private void setType(String type) {\n mType = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType(String type) \n {\n this.type = type;\n }", "public void setType(char type) {\n this.type = type;\n }", "public void setType(char type) {\n this.type = type;\n }", "void setKey(int key);", "public final void setType(String type){\n\t\tthis.type = type;\t\n\t}", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setTypeId(final ReferenceTypeId typeId);", "String setKey(String newKey);", "public void setKey(final String key);", "public void setKey(final String key);", "private void setTypeId(int value) {\n \n typeId_ = value;\n }", "public void setType(int type) {\n\t\tthis.type = type;\n\t}", "public void setIdType(String idType) {\n this.idType = idType == null ? null : idType.trim();\n }", "void privateSetAgregateKey(com.hps.july.persistence.StorageCardKey inKey) throws java.rmi.RemoteException;", "boolean isTypeKey(String key);", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type){\n \tthis.type = type;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public RgwAdminBuilder accessKey(String accessKey) {\n this.accessKey = accessKey;\n return this;\n }", "public void setType(String type){\n this.type = type;\n }", "public void setInitKey_accessid( int newValue ) {\n this.initKey_accessid = (newValue);\n }", "public void setType(String type)\r\n {\r\n this.mType = type;\r\n }", "public void setType(String type) {\n m_Type = type;\n }", "public void setType(String type) {\n this.type = type;\n }" ]
[ "0.6813773", "0.66903985", "0.6645802", "0.6192003", "0.6093347", "0.60753155", "0.60698056", "0.6063535", "0.60226536", "0.60226536", "0.5935015", "0.5867235", "0.5848219", "0.57156205", "0.5676", "0.56662893", "0.56448", "0.5591994", "0.5570837", "0.55502146", "0.5546149", "0.5422626", "0.538479", "0.53788453", "0.53786355", "0.53643894", "0.5354812", "0.5335599", "0.53236645", "0.53009677", "0.52930963", "0.52893806", "0.52893806", "0.52892184", "0.52763563", "0.52750915", "0.52675945", "0.5265768", "0.5259003", "0.5258829", "0.5258829", "0.52489674", "0.52483803", "0.5233372", "0.5231793", "0.5231754", "0.522953", "0.5227632", "0.5227632", "0.52153575", "0.5211449", "0.51869786", "0.51869786", "0.51869786", "0.5181324", "0.517848", "0.5177013", "0.51647687", "0.516331", "0.5157218", "0.5155033", "0.5155033", "0.51526487", "0.5147703", "0.5145915", "0.51458955", "0.51395935", "0.5126177", "0.51250577", "0.51250577", "0.51250577", "0.5122484", "0.5114502", "0.5114502", "0.51124144", "0.51112556", "0.51083726", "0.51079416", "0.5106932", "0.51008", "0.51008", "0.5098224", "0.5096638", "0.5095878", "0.50940347", "0.5093259", "0.50873286", "0.5086648", "0.5084588", "0.50839376", "0.5081777", "0.5081777", "0.5081777", "0.5081777", "0.5072834", "0.5071987", "0.5071411", "0.50616366", "0.5059189", "0.5056854" ]
0.7248751
0
Get the key property: Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType.
public String key() { return this.key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KeyType keyType() {\n return this.keyType;\n }", "public java.lang.String getKeyType() {\n return keyType;\n }", "public java.lang.String getKeyType() {\n return keyType;\n }", "public org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey() {\n return key_ == null ? org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;\n }", "public org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey() {\n if (keyBuilder_ == null) {\n return key_ == null ? org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;\n } else {\n return keyBuilder_.getMessage();\n }\n }", "public Key getKey() {\n return Key.of(getTone(), getQuality());\n }", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "public K getKey();", "public K getKey();", "public org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder getKeyOrBuilder() {\n if (keyBuilder_ != null) {\n return keyBuilder_.getMessageOrBuilder();\n } else {\n return key_ == null ?\n org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;\n }\n }", "K getKey();", "K getKey();", "K getKey();", "K getKey();", "org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();", "public kvClient.pb.Key getK() {\n if (resultCase_ == 3) {\n return (kvClient.pb.Key) result_;\n }\n return kvClient.pb.Key.getDefaultInstance();\n }", "protected K getKey() {\n return this.key;\n }", "public Object getKey() {\n return key;\n }", "public com.google.protobuf.ByteString\n getKeyBytes() {\n java.lang.Object ref = key_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n key_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Object getKey() {\r\n return key;\r\n }", "public com.google.protobuf.ByteString\n getKeyBytes() {\n java.lang.Object ref = key_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n key_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public K getKey() {\n return key;\n }", "public K getKey() {\n return key;\n }", "public K getKey() {\n return key;\n }", "public K getKey() {\n return key;\n }", "Object getKey();", "public K getKey()\r\n\t\t{\r\n\t\t\treturn key;\r\n\t\t}", "public com.google.protobuf.ByteString\n getKeyBytes() {\n Object ref = key_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n key_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public K getKey() {\r\n\t\treturn key;\r\n\t}", "public K getKey() {\n\t\treturn key;\n\t}", "public com.google.protobuf.ByteString\n getKeyBytes() {\n Object ref = key_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n key_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Object getKey()\n {\n return key;\n }", "public org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder getKeyOrBuilder() {\n return getKey();\n }", "public kvClient.pb.Key getK() {\n if (kBuilder_ == null) {\n if (resultCase_ == 3) {\n return (kvClient.pb.Key) result_;\n }\n return kvClient.pb.Key.getDefaultInstance();\n } else {\n if (resultCase_ == 3) {\n return kBuilder_.getMessage();\n }\n return kvClient.pb.Key.getDefaultInstance();\n }\n }", "public String getPropKey() {\n return propKey;\n }", "@Nullable public String getKey() {\n return key;\n }", "public String getKey() {\n Object ref = key_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getKey() {\n Object ref = key_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n }\n }", "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "public String getKeyType() \n {\n return DBFactory.getKeyTypeName(this.keyType);\n }", "public Key getKey() {\n\t\treturn key;\n\t}", "@Override\n\t\tpublic K getKey() {\n\t\t\treturn k;\n\t\t}", "@NotNull\n @JsonProperty(\"key\")\n public String getKey();", "public static JavaType getKeyType(DeserializationContext ctxt, BeanProperty property) {\n\t\tJavaType type = (property == null ? null : property.getType().containedType(0));\n \t \n \t if(type == null) {\n \t\t type = ctxt.getContextualType().containedType(0);\n \t }\n \t \n \t if(type == null && ctxt.getContextualType() instanceof MapLikeType) {\n \t\t type = ((MapLikeType) ctxt.getContextualType()).getKeyType();\n \t }\n\t\treturn type;\n\t}", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "public Key getKey() {\n\t\treturn mKey;\n\t}", "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n }\n }", "Optional<BuildCacheKey> getKey();", "public Key getKey() {\n\t\tString fieldvalue = getValue(\"sys_id\");\n\t\tassert fieldvalue != null;\n\t\treturn new Key(fieldvalue);\n\t}", "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Class<?> getKeyClass() \n\t{\n\t return keyClass ;\n\t}", "public kvClient.pb.KeyOrBuilder getKOrBuilder() {\n if (resultCase_ == 3) {\n return (kvClient.pb.Key) result_;\n }\n return kvClient.pb.Key.getDefaultInstance();\n }", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "public Key getKey()\r\n { \r\n return key; \r\n }", "UnderlayTopologyKey getKey();", "public Key getKey() {\n\t\treturn getKey(settings, url);\n\t}", "Class<?> getKeyType();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder getKeyOrBuilder();", "TemplateModel getKey();", "default String getKey() {\n return key(getClassName(), getName());\n }", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "public KeyField getKey() {\n\treturn keyField;\n }", "public String propKey() {\n return propKey;\n }", "public String getKey() {\n\t\tString t = doc.get(\"key\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "@Override\r\n\t\tpublic K getKey() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public java.lang.String getKeyName() {\n return keyName;\n }", "public kvClient.pb.KeyOrBuilder getKOrBuilder() {\n if ((resultCase_ == 3) && (kBuilder_ != null)) {\n return kBuilder_.getMessageOrBuilder();\n } else {\n if (resultCase_ == 3) {\n return (kvClient.pb.Key) result_;\n }\n return kvClient.pb.Key.getDefaultInstance();\n }\n }", "public String getKey()\r\n {\r\n return getValue().toString();\r\n }", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "public final String getKey() {\n return key;\n }", "public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}", "public java.lang.String getKeyName() {\n return keyName;\n }", "MemberVdusKey getKey();", "public String getKey() {\n return element == null ? null : element.getKey();\n }", "public String getKeyName(){\n\n //returns the value of the keyName field\n return this.keyName;\n }", "public Key getKey(String fieldname) {\n\t\tString fieldvalue = getValue(fieldname);\n\t\tif (fieldvalue==null) return null;\n\t\treturn new Key(fieldvalue);\n\t}" ]
[ "0.70759314", "0.6828642", "0.6781025", "0.66240156", "0.6545229", "0.6497841", "0.6433203", "0.6433203", "0.6433203", "0.6433203", "0.6433203", "0.6433203", "0.6431987", "0.6431987", "0.64197534", "0.6364929", "0.6364929", "0.6364929", "0.6364929", "0.6353264", "0.6349601", "0.62714505", "0.6254363", "0.62524706", "0.6251577", "0.62512684", "0.6244708", "0.6244708", "0.6244708", "0.6233588", "0.6227276", "0.62233114", "0.6220952", "0.62108916", "0.6199046", "0.61842483", "0.61616915", "0.61515784", "0.6138416", "0.6126456", "0.6114622", "0.61015236", "0.608822", "0.6055751", "0.6052587", "0.60270905", "0.6025687", "0.60222346", "0.6017381", "0.6013413", "0.6004244", "0.5995139", "0.59924495", "0.5991272", "0.59819895", "0.5981558", "0.5960097", "0.5952883", "0.5952883", "0.5950634", "0.5928668", "0.59224707", "0.5922094", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.5917142", "0.59098655", "0.59098655", "0.59098655", "0.59098655", "0.58917767", "0.58883923", "0.5883769", "0.5872025", "0.5867252", "0.5865151", "0.5856964", "0.58467066", "0.58207256", "0.5815688", "0.5812741", "0.579936", "0.579936", "0.579936", "0.5796674", "0.5795888", "0.5795795", "0.5790505", "0.57811195", "0.578109", "0.57674414" ]
0.0
-1
Set the key property: Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType.
public RegenerateAccessKeyParameters withKey(String key) { this.key = key; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setKey(Key key) {\n this.key = key;\n }", "public K setKey(K key);", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyType(java.lang.String value) {\n validate(fields()[2], value);\n this.keyType = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public void setKey(final String key);", "public void setKey(final String key);", "public void setKey (K k) {\n key = k;\n }", "void setKey(K key);", "public final void setKey(String key) {\n this.key = key;\n }", "public void setKey(String key) {\n\n this.key = key;\n }", "void setKey(java.lang.String key);", "public void setKey(String key) {\r\n this.key = key;\r\n }", "public void setKey(final String key) {\n this.key = key;\n }", "public void setKey(String key) {\n this.key = key;\n }", "public void setKey(String key) {\n this.key = key;\n }", "public void setKey(String key) {\n this.key = key;\n }", "protected void setKey(String key) {\r\n this.key = key;\r\n }", "public void setKey(String key)\r\n {\r\n m_key = key;\r\n }", "public void setKey(String key) {\r\n\t\tthis.key = key;\r\n\t}", "public void setKey(String key) {\n this.key = key;\n }", "void setKey(final String key);", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "private void setKey(String key) {\n this.key = key;\n }", "public void setKey(K newKey) {\n this.key = newKey;\n }", "public void setKey(K newKey) {\r\n\t\tkey = newKey;\r\n\t}", "public void setKey(java.lang.String key) {\n\t\tthis.key = key;\n\t}", "@Override\n\tpublic ManagedFunctionObjectTypeBuilder<M> setKey(M key) {\n\t\tthis.key = key;\n\t\tthis.index = key.ordinal();\n\t\treturn this;\n\t}", "public Builder setKeyClass(Type keyType) {\n this.keyType = keyType;\n return this;\n }", "public void setKey(TableKey key) {\n\tthis.key = key;\n }", "public void setKey(String key) {\n if (element != null) {\n element.setKey(key);\n }\n }", "public void setKey(com.coda.www.efinance.schemas.elementmaster.ElmFullKey key) {\r\n this.key = key;\r\n }", "void setKey(String key);", "private void setKey(String key){\n\t\tthis.key=key;\n\t}", "public void setKey(MessageKey key) {\n\tthis.key = key;\n }", "public void setKey(String aKey) {\n\t\tthis.key = aKey;\n\t}", "public void setKey(Boolean key) {\n this.key = key;\n }", "public void setKey(int key);", "public void setKey(int key);", "@Override\n public void setKey(byte[] key) {\n }", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyName(java.lang.String value) {\n validate(fields()[0], value);\n this.keyName = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "public void setKey(String key) {\n this.key = key == null ? null : key.trim();\n }", "public void setKey(String key) {\n this.key = key == null ? null : key.trim();\n }", "public void setPropKey(String propKey) {\n this.propKey = propKey;\n }", "public void setKeyId(String keyId) {\n setProperty(KEY_ID, keyId);\n }", "public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}", "public void setKey(KeyField key)\n\tthrows SdpException {\n\tif (key == null)\n\t throw new SdpException(\"The key is null\");\n\tsetKeyField(key);\n }", "public java.lang.String getKeyType() {\n return keyType;\n }", "public Builder setKey(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n key_ = value;\n onChanged();\n return this;\n }", "public KeyType keyType() {\n return this.keyType;\n }", "public java.lang.String getKeyType() {\n return keyType;\n }", "void setKey(int key) {\n if (key < 0) {\n throw new IllegalArgumentException(String.format(\"Error: key (%d) < 0\\n\", key));\n } else {\n this.key = key;\n }\n }", "public void setKey(byte[] argKey) {\n this.key = argKey;\n }", "public Builder setKey(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n key_ = value;\n onChanged();\n return this;\n }", "public IDataKey(String key) {\n this(key, false);\n }", "@Override public void setKey(IndexKey key) {\n listOfKeys.add(key);\n\n }", "public void setKeyField(KeyField k) {\n\tkeyField = k;\n }", "public RegenerateAccessKeyParameters withKeyType(KeyType keyType) {\n this.keyType = keyType;\n return this;\n }", "public Builder setKey(int value) {\n bitField0_ |= 0x00000001;\n key_ = value;\n onChanged();\n return this;\n }", "private void setKey() {\n\t\t \n\t}", "public void setKey(String key) throws ClientException {\n Pattern pattern = Pattern.compile(KEY_REGEX);\n Matcher matcher = pattern.matcher(key);\n\n if (matcher.matches()) {\n this.key = key;\n } else {\n throw new ClientException(\"your key is invalid\", OSSErrorCode.INVALID_ARGUMENT, null);\n }\n }", "public void setKeyProcessor(NDLMapKeyProcessor<T> keyProcessor) {\n\t\tthis.keyProcessor = keyProcessor;\n\t}", "void setObjectKey(String objectKey);", "String setKey(String newKey);", "void setKey(int key);", "String setKey(String keyName, String value, KeyOptions opts)\n throws P4JavaException;", "public DrillBuilder setPropertyKey(String propertyKey) {\n this.propertyKey = propertyKey;\n return this;\n }", "public void setKey(char key){ this.key = key;}", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder clearKeyType() {\n keyType = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "public void set(String key, Object value) {\n set(key, value, 0);\n }", "public void setKey(int position,int key) {\r\n\t\tthis.treeKey[position]=key;\r\n\t}", "public JsonWriter key(Binary key) {\n startKey();\n\n if (key == null) {\n throw new IllegalArgumentException(\"Expected map key, but got null.\");\n }\n\n writer.write('\\\"');\n writer.write(key.toBase64());\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "public final void setKeyId(int keyId)\r\n\t{\r\n\t\tthis.keyId = keyId;\r\n\t}", "public void setKey(SelectionKey key) {\n this._key = key;\n }", "public void _setKey(String e)\n {\n _key = e;\n }", "public Builder setKeyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n key_ = value;\n onChanged();\n return this;\n }", "public JsonWriter key(CharSequence key) {\n startKey();\n\n if (key == null) {\n throw new IllegalArgumentException(\"Expected map key, but got null.\");\n }\n\n writeQuotedAndEscaped(key);\n writer.write(':');\n return this;\n }", "@Override\n @NonNull\n public SliceActionImpl setKey(@NonNull String key) {\n mActionKey = key;\n return this;\n }", "public static void setUserKey(Key newKey) {\n\t\tlocalKey.set(newKey);\n\t}", "public ActionTypeProperty withKey(Boolean key) {\n setKey(key);\n return this;\n }", "public void setKeyData(String keyData)\n\t{\n\t\tthis.keyData = keyData;\n\t}", "public Builder setKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) {\n if (keyBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n key_ = value;\n onChanged();\n } else {\n keyBuilder_.setMessage(value);\n }\n\n return this;\n }", "public final void mKEY() throws RecognitionException {\n try {\n int _type = KEY;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:363:5: ( K E Y )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:363:7: K E Y\n {\n mK(); \n mE(); \n mY(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "protected void setSearchKey(Key key)\n\t{\n\t\tint last_idx = _searchKeyList.size() - 1 ;\n\t\t_searchKeyList.set(last_idx, key) ;\n\t}", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "@Test\n public void testSetKey() {\n Integer key = 12;\n AVLNode<Integer> instance = new AVLNode<> ();\n instance.setKey( key );\n assertEquals( instance.getKey(), key );\n }", "public Constraint setKey(IdDt theValue) {\n\t\tmyKey = theValue;\n\t\treturn this;\n\t}", "public void setKeyBytes(byte[] key){\n\t\t\n\t\tsetKey(new String(key));\n\t}", "@Transient\n public void setCacheKey(String key) {\n String keyVals[];\n if(key.contains(\".\")) {\n keyVals = key.split(\".\");\n } else {\n keyVals = new String[] {key};\n }\n this.setTableName(keyVals[0]);\n }", "public Builder key(String key) {\n this.key = key;\n return this;\n }", "public interface Key<T> {\n String getName();\n Class<T> getType();\n\n static <T> Key<T> of(Class<T> type) {\n return of(type.getName(), type);\n }\n\n static <T> Key<T> of(String name, Class<T> type) {\n return new Key<T>() {\n @Override\n public String getName() {\n return name;\n }\n\n @Override\n public Class<T> getType() {\n return type;\n }\n };\n }\n }", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyValue(java.lang.String value) {\n validate(fields()[1], value);\n this.keyValue = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public JsonWriter key(byte key) {\n startKey();\n\n writer.write('\\\"');\n writer.print((int) key);\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "public void setItskey(String newItskey) {\n keyTextField.setText(newItskey);\n itskey = newItskey;\n }", "@Nonnull public LockoutManagerContext setKey(@Nullable final String k) {\n key = k;\n \n return this;\n }", "protected void setSortKey(Key key)\n\t{\n\t\tfor (int i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableColumn().equals(key.getTableColumn()))\n\t\t\t{\n\t\t\t\tky.setTableOrder(key.getTableOrder()) ;\n\t\t\t\tky.setTableDesc(key.getTableDesc()) ;\n\t\t\t\t_searchKeyList.set(i, ky) ;\n\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "@Generated\n @Selector(\"setKeyData:\")\n public native void setKeyData(@NotNull NSData value);", "final <T> void set(String key, T value) {\n set(key, value, false);\n }" ]
[ "0.71559614", "0.7014795", "0.69546086", "0.69369024", "0.69369024", "0.69286907", "0.68079984", "0.6791368", "0.6769407", "0.67426103", "0.6742485", "0.6723986", "0.6712085", "0.6712085", "0.6712085", "0.6703676", "0.66849786", "0.6684596", "0.6681383", "0.6665858", "0.6654777", "0.66234773", "0.66234773", "0.6548871", "0.6540862", "0.65354896", "0.65227324", "0.6466839", "0.6444979", "0.64426476", "0.6429379", "0.6346016", "0.63212943", "0.6314134", "0.6210788", "0.619552", "0.61913264", "0.61524796", "0.61524796", "0.6137585", "0.6113778", "0.6096557", "0.60410523", "0.60369045", "0.60369045", "0.5933896", "0.5932318", "0.5887802", "0.5831955", "0.5828448", "0.582441", "0.5817258", "0.5816894", "0.57750547", "0.57604617", "0.57451016", "0.5739705", "0.572707", "0.57182467", "0.5705317", "0.5667003", "0.5657304", "0.5633941", "0.56248397", "0.5617893", "0.56045735", "0.56045", "0.5589424", "0.558763", "0.55827594", "0.5577004", "0.5565967", "0.55295455", "0.5527124", "0.55204177", "0.55163383", "0.5511444", "0.5502827", "0.5497679", "0.5491695", "0.54780704", "0.5466208", "0.5455422", "0.5418127", "0.54167736", "0.54013586", "0.5399224", "0.5398787", "0.5379519", "0.53637826", "0.5362964", "0.5340697", "0.533946", "0.53361136", "0.53315145", "0.5327303", "0.5325455", "0.5322441", "0.5307615", "0.5298452", "0.5290402" ]
0.0
-1
TODO Autogenerated method stub
@Override public void keyReleased(KeyEvent arg0) { }
{ "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 keyTyped(KeyEvent arg0) { }
{ "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: get nondefault host from command line argument
@Override public void start(Stage primaryStage) { initGUI(primaryStage); connectToServer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Host getHost();", "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "String getIntegHost();", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "void host(String host);", "void host(String host);", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "default String getHost() {\n return \"localhost\";\n }", "java.lang.String getRemoteHost();", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "String getPreferredHost() {\n return preferredHost;\n }", "public String getHost() { return host; }", "public String getRelayHost(final String defaultHost) {\n\t\treturn relayHost==null ? defaultHost : relayHost;\n\t}", "String getHost()\n {\n return host;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "public InetAddress getHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n return host.getText();\n }", "public String getHost(Env env) {\n return client.getHost();\n }", "public String getHost() {\r\n return host;\r\n }", "public String getHost(){\n\t\treturn this.host;\n\t}", "Builder hostName(String hostName);", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "String getRemoteHostName();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "String getHostName();", "String getHostName();", "@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic String getRemoteHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "String getHostname();", "String getHostname();", "public String getHostName();", "public VirtualHost getDefaultHost() {\r\n return this.defaultHost;\r\n }", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "Switch getHostSwitch();", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public void setHost(String host);", "public String getHostName (){\n return hostName;\n }", "public void setDefaultHost() {\r\n\t\tsetHost(DEFAULT_HOST);\r\n\t}", "HostInfo getHostInfo();", "public String getHostname();", "public String host() {\n return host;\n }", "public GUI GetHost() {\n\t\treturn m_Host;\n\t}", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "default Optional<String> getExternalHostName(String clusterName, String componentName) {\n return Optional.empty();\n }", "public String getHost() {\n\t\treturn url.getHost();\n }", "Target(String host) {\n try {\n address = new InetSocketAddress(InetAddress.getByName(host), 80);\n } catch (UnknownHostException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n failure = e;\n }\n }", "public static String getBaseHost() {\r\n if (baseHost == null) {\r\n baseHost = PropertiesProvider.getInstance().getProperty(\"server.name\", \"localhost\");\r\n }\r\n return baseHost;\r\n }", "public String getBoxNetHost();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "public static void main(String[] args) throws UnknownHostException {\n InetAddress myIP= InetAddress.getLocalHost();\n\n /* public String getHostAddress(): Returns the IP\n * address string in textual presentation.\n */\n System.out.println(\"My IP Address is:\");\n System.out.println(myIP.getHostAddress());\n }", "public String rabbitHost();", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "HostPort hostPort();", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public static String getRequestHostName(HttpServletRequest argRequest) {\r\n\t\tString urlStr = getRequestUrl(argRequest);\r\n\t\tif (urlStr != null) {\r\n\t\t\ttry {\r\n\t\t\t\tURL url = new URL(urlStr);\r\n\t\t\t\tString host = url.getHost();\r\n\t\t\t\treturn host;\r\n\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t// ignore\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "String getMetaServerAddress(Env targetEnv);", "boolean hasHost();", "boolean hasHost();", "public String getUserHost() {\n return userHost;\n }", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "public void testParseHost_Null() throws UnknownHostException {\n try {\n PortParser.parseHost(null);\n fail(\"Expected CommandSyntaxException\");\n }\n catch (CommandSyntaxException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "Object getMailhost();", "private void getHostnameAndPort(Scanner sc) {\n\n\t\tSystem.out.print(\"\\nPlease enter a hostname: \");\n\t\tString hostName = sc.nextLine();\n\t\t\n\t\tSystem.out.print(\"Please enter a port: \");\n\t\tString input = sc.nextLine();\n\t\tif (!input.isEmpty()) {\n\t\t\tthis.port = Integer.parseInt(input);\n\t\t}\n\t\t\n\t\tif (hostName != null && !hostName.trim().isEmpty()) {\n\t\t\tthis.hostName = hostName;\n\t\t}\n\t}", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "@Override\n\tpublic java.lang.String getRemoteHost() {\n\t\treturn _userTracker.getRemoteHost();\n\t}", "private static String getHostname()\n throws UnknownHostException {\n return InetAddress.getLocalHost().getHostName();\n }", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n return s;\n }\n }", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String customHost() {\n return this.customHost;\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this.host = host;\n }", "public boolean getGuessHostname();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }" ]
[ "0.72655284", "0.72616506", "0.72616506", "0.71128047", "0.7092505", "0.692847", "0.69006246", "0.68688184", "0.68688184", "0.6861288", "0.6861288", "0.66980565", "0.66195625", "0.651734", "0.6513314", "0.6497551", "0.6449947", "0.63905793", "0.63864577", "0.6364641", "0.6361462", "0.63288313", "0.631587", "0.6301385", "0.62775815", "0.62416345", "0.6241385", "0.6231286", "0.6215122", "0.62028205", "0.61923814", "0.61923814", "0.6192245", "0.6180863", "0.6180863", "0.61760736", "0.61760736", "0.61609095", "0.61609095", "0.61500114", "0.61190593", "0.61190593", "0.61190593", "0.61190593", "0.61190593", "0.61190593", "0.6104007", "0.6104007", "0.608944", "0.6053307", "0.6053307", "0.60524267", "0.60019636", "0.59882396", "0.598346", "0.5975921", "0.5972417", "0.5954233", "0.5949374", "0.5911452", "0.5911212", "0.5908711", "0.59043986", "0.58795834", "0.5879513", "0.5870209", "0.5856799", "0.5817419", "0.58152646", "0.58089644", "0.58083284", "0.58005744", "0.5776144", "0.5767974", "0.5764353", "0.573847", "0.5738339", "0.57350594", "0.57338923", "0.57338923", "0.57225674", "0.5719387", "0.57134885", "0.56974447", "0.56948", "0.5688633", "0.5688633", "0.5684847", "0.56842184", "0.5665241", "0.56647587", "0.5653482", "0.5647122", "0.5644396", "0.5642171", "0.5642171", "0.5642171", "0.5642171", "0.5642171", "0.5640573", "0.56401867" ]
0.0
-1
Update one cell of the table
@Override public void update(final ViewerCell cell) { // AlarmTableProvider should always provide "AlarmTreePV" elements final AlarmTreePV alarm = (AlarmTreePV) cell.getElement(); // Special handling of 'info' entry that has no parent switch (column) { case PV: cell.setText(alarm.getName()); break; case DESCRIPTION: { final String annunciation = AnnunciationFormatter.format(alarm.getDescription(), alarm.getSeverity().getDisplayName(), alarm.getValue()); cell.setText(annunciation); } break; case TIME: cell.setText(alarm.getTimestampText()); break; case CURRENT_SEVERITY: if (alarm.getParent() == null) return; cell.setText(alarm.getCurrentSeverity().getDisplayName()); cell.setBackground(color_provider.getColor(alarm.getCurrentSeverity())); break; case CURRENT_STATUS: if (alarm.getParent() == null) return; cell.setText(alarm.getCurrentMessage()); break; case SEVERITY: if (alarm.getParent() == null) return; cell.setText(alarm.getSeverity().getDisplayName()); cell.setBackground(color_provider.getColor(alarm.getSeverity())); break; case STATUS: if (alarm.getParent() == null) return; cell.setText(alarm.getMessage()); break; case VALUE: if (alarm.getParent() == null) return; cell.setText(alarm.getValue()); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateDataCell();", "void editCell(Coord coord, String string);", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void editFocusedCell() {\r\n\t\tfinal TablePosition<ArbeitspaketTableData, ?> focusedCell = tabelle.focusModelProperty().get()\r\n\t\t\t\t.focusedCellProperty().get();\r\n\t\ttabelle.edit(focusedCell.getRow(), focusedCell.getTableColumn());\r\n\t}", "public abstract void setCellValue(int cellValue, int row, int col);", "public abstract void setCell(int row, int column, T item);", "@Override\r\n\tprotected void setValue(Object element, Object value) {\r\n\t\t// update the whole table\r\n\t\tgetViewer().refresh();\r\n\t}", "@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\n\t\t\t}", "public void setCell(Object value, int col, int row) {\n ((DefaultTableModel) getModel()).setValueAt(value, row, col);\n }", "@Override\n public void setValueAt(Object value, int row, int col) {\n data[row][col] = value;\n fireTableCellUpdated(row, col);\n }", "Integer update(BoardCell cell, int newPlayerId);", "public boolean updateCell(Cell updateThis){\n char cellColumn = updateThis.getColumn();\n int cellRow = updateThis.getRow();\n String cellContent = updateThis.getContent();\n if(!cellExists(cellColumn, cellRow)) return insertToList(updateThis);\n return updated(cellColumn, cellRow, cellContent);\n }", "@Override\n public void setValueAt(Object value, int row, int column) {\n this.data[row][column] = value;\n fireTableDataChanged();\n }", "@Override\r\n\t\tpublic void update(ViewerCell cell) {\n\t\t\tUser user=(User) cell.getElement();\r\n\t\t\tif(cell.getColumnIndex()==0){\r\n\t\t\t\tcell.setText(user.getId()+\"\");\r\n\t\t\t}else if(cell.getColumnIndex()==1){\r\n\t\t\t\tcell.setText(user.getName());\r\n\t\t\t}\r\n\t\t\tsuper.update(cell);\r\n\t\t}", "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "public void setValueAt(Object value, int row, int col)\r\n throws IllegalStateException {\r\n\r\n if(columnsAreNum != null && columnsAreNum.length>0){\r\n\t for(int i =0; i< columnsAreNum.length; i++){\r\n\t if(col == columnsAreNum[i]){\r\n\t value = new Double(tranferStringToNum(value.toString()));\r\n\t break;\r\n\t }\r\n\t }\r\n\t}\r\n //Set value at cell\r\n ( (Vector) data.elementAt(row)).setElementAt(value, col);\r\n //Set status modify to this row.\r\n if (!(Integer.parseInt( ( (Vector) data.elementAt(row)).elementAt\r\n (numberOfcolumns).toString()) == IS_INSERTED)) {\r\n ((Vector) data.elementAt(row)).setElementAt(new Integer(IS_MODIFIED),\r\n numberOfcolumns);\r\n this.updatedStatus = true;\r\n }\r\n }", "public void setCell(Cell cell)\n {\n myCell = cell;\n }", "public void updateTable()\r\n {\r\n ((JarModel) table.getModel()).fireTableDataChanged();\r\n }", "public void setValueAt(Object value, int row, int col) {\n if(row < getRowCount()){\n if (DEBUG) {\n System.out.println(\"Setting value at \" + row + \",\" + col\n + \" to \" + value\n + \" (an instance of \"\n + value.getClass() + \")\");\n }\n String[] r = data.get(row);\n r[col] = (String) value;\n fireTableCellUpdated(row, col);\n\n if (DEBUG) {\n System.out.println(\"New value of data:\");\n printDebugData();\n }\n }\n }", "public void setValueAt(Object value, int row, int col) {\n \n \t\tFermentable m = (Fermentable) data.get(row);\n \t\ttry {\n \t\t\tswitch (col) {\n \t\t\t\tcase 0 :\n \t\t\t\t\tm.setName(value.toString());\n\t\t\t\t\tif (NewSwingApp.DEBUG){\n \t\t\t\t\t\tSystem.out.println(\"value is:\" + value);\n\t\t\t\t\t}\n \t\t\t\tcase 1 :\n \t\t\t\t\tm.setAmount(Double.parseDouble(value.toString()));\n \t\t\t\tcase 2 :\n \t\t\t\t\tm.setUnits(value.toString());\n \t\t\t\tcase 3 :\n \t\t\t\t\tm.setPppg(Double.parseDouble(value.toString()));\n \t\t\t\tcase 4 :\n \t\t\t\t\tm.setLov(Double.parseDouble(value.toString()));\n \t\t\t\tcase 5 :\n \t\t\t\t\tm.setCost(Double.parseDouble(value.toString()));\n \t\t\t\tcase 6 :\n \t\t\t\t\tm.setPercent(Double.parseDouble(value.toString()));\n \n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t};\n \n \t\tfireTableCellUpdated(row, col);\n \t\t\n \t}", "protected abstract double setCell(\r\n int row,\r\n int col,\r\n double valueToSet);", "@Override\n\tpublic void tableChanged(TableModelEvent e) {\n\t\tint row = e.getFirstRow();\n\t\tint column = e.getColumn();\n\t\tTableModel model = (TableModel)e.getSource();\n\t\tString columnName = model.getColumnName(column);\n\t\tObject data = model.getValueAt(row, column);\n\t\tdb.update(row, columnName, data);\n\t}", "public void setValueAt(Object value, int row, int col) {\n\t\t// data[row][col] = value;\n\t\tfireTableCellUpdated(row, col);\n\t}", "@Override\n public void setValueAt(Object aValue, int aRow, int aColumn) {\n model.setValueAt(aValue, aRow, aColumn); \n }", "public void onCellEdit(CellEditEvent event) {\n Object oldValue = event.getOldValue();\n Object newValue = event.getNewValue();\n Object o = event.getSource();\n System.out.println(\"event called: \" + newValue + \" \" + oldValue);\n System.out.println(o.toString());\n DataTable table = (DataTable) event.getComponent();\n Long id = (Long) table.getRowKey();\n System.out.println(\"#### row key is : \" + id + \" ####\");\n if (newValue != null && !newValue.equals(oldValue)) {\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Cell Changed\", \"Old: \" + oldValue + \", New:\" + newValue);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n for (Gnome gnome : user.getCart()) {\n if ((gnome.getId() != null) && (gnome.getId().compareTo(id) == 0)) {\n System.out.println(\"cart size on cell edit \" + user.getCart().size());\n gnome.setShopQuantity((Integer) newValue);\n userFacade.updateCart(user, gnome);\n }\n }\n }\n }", "void changeCellAt(int col, int row, String sexp);", "@Override\n public void cellChanged(String newCellValue) {\n\t \n }", "public void setValueAt(Object value, int row, int col)\n\t{\n\t\tdatas.set(row,value);\n\t\tfireTableCellUpdated(row, col);\n\t}", "public void update() {\r\n\t\tfor (int i = 0; i < myRows; i++)\r\n\t\t\tfor (int j = 0; j < myColumns; j++)\r\n\t\t\t\tsetCellText(cellArray[i][j]);\r\n\t}", "public void setValueAt(Object value, int row, int col) {\r\n \tswitch(col){\r\n case 0:\r\n \tattributs.get(row).setPk((Boolean)value);\r\n \tbreak;\r\n case 1:\r\n \tSystem.out.println(value);\r\n \tattributs.get(row).setName((String)value);\r\n \tbreak;\r\n case 2:\r\n \tattributs.get(row).setType((String)value);\r\n \tbreak;\r\n case 3:\r\n \tattributs.get(row).setTaille((String)value);\r\n \tbreak;\r\n case 4:\r\n \tattributs.get(row).setNul((Boolean)value);\r\n \tbreak;\r\n case 5:\r\n \tattributs.get(row).setUk((Boolean)value);\r\n \tbreak;\r\n \t\r\n \t}\r\n fireTableCellUpdated(row, col);\r\n }", "public void updatedTable() {\r\n\t\tfireTableDataChanged();\r\n\t}", "public void setCurrentCell(\n\t\t\tint index )\n\t{\n\t}", "public void updateCell(Cell cell)\r\n {\r\n if (cell.isBomb() == false && cell.active)\r\n {\r\n if (cell.getBombsNearby() > 0)\r\n {\r\n cell.setText(\"\" + cell.getBombsNearby());\r\n cell.setDisable(true);\r\n }\r\n else\r\n {\r\n cell.setDisable(true);\r\n activateNearby(cell.getX(), cell.getY());\r\n }\r\n gameBoard.emptyRemaining--;\r\n }\r\n System.out.println(\"update cell: \" + gameBoard.emptyRemaining);\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n endGame();\r\n }\r\n }", "public void updateTable() {\n ((AbstractTableModel) table.getModel()).fireTableDataChanged();\n }", "public void updateCell() {\n alive = !alive;\n simulator.getSimulation().changeState(xPosition, yPosition);\n setColor();\n }", "public void setValueAt(Object value, int row, int col)\n {\n if (col != 1)\n return;\n\n prop_map.put(row,value);\n fireTableCellUpdated(row, col);\n }", "private boolean update_cell(int row, int col) {\n if (this.cells[row][col].hasNumericValue()) {\n int val = (int)this.cells[row][col].getValue()+1;\n this.cells[row][col].setValue((char)val);\n return true;\n }\n return false;\n }", "void incrementColumnIndex();", "void incrementColumnIndex();", "public void setValueAt(Object value, int row, int col) {\r\n this.variableData.get(row).remove(col);\r\n this.variableData.get(row).add(col, value);\r\n fireTableCellUpdated(row, col);\r\n }", "public synchronized void switchCell()\n {\n cellValue = (cellValue == ALIVE) ? DEAD : ALIVE;\n }", "private void editButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editButtonActionPerformed\n try ( Connection con = DbCon.getConnection()) {\n int rowCount = flightsTable.getRowCount();\n selectedRow = flightsTable.getSelectedRow();\n //if row is chosen\n if (selectedRow >= 0) {\n\n PreparedStatement pst = con.prepareStatement(\"update Flights set departure = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 0)\n + \"', destination = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 1)\n + \"', depTime = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 2)\n + \"', arrTime = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 3)\n + \"', number = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 4)\n + \"', price = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 5)\n + \"' where number = '\" + flightsDftTblMdl.getValueAt(selectedRow, 4) + \"'\");\n\n pst.execute();\n initFlightsTable();//refresh the table after edit\n } else {\n JOptionPane.showMessageDialog(null, \"Please select row first\");\n }\n\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(CustomerRecords.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void setValueAt(Object obj, int row, int column) {\n Object[] rowValues = this.records.get(row);\n rowValues[column] = obj;\n fireTableDataChanged();\n }", "@Override\n\tpublic void update(Epreuve element) throws DaoException {\n\t\t\n\t}", "public static void SheetResultcellupdate(int row_no, int cell_no, String value) {\n\t\tString dataFilePath = \"Resources/[3DBroadCastSales]-Script_Result.xlsx\";\n\t\tFile datafile = new File(dataFilePath);\n\t\tString fullpath = datafile.getAbsolutePath();\n\t\tSheet firstSheet = null;\n\t\ttry {\n\t\t\tSystem.out.println(\"full path \" + datafile.getAbsolutePath() + \" con \" + datafile.getCanonicalPath());\n\t\t\tFileInputStream inputStream = new FileInputStream(new File(fullpath));\n\t\t\tWorkbook workbook = new XSSFWorkbook(inputStream);\n\t\t\tfirstSheet = workbook.getSheetAt(1);\n\t\t\tCell cell2Update = firstSheet.getRow(row_no).getCell(cell_no);\n\t\t\tcell2Update.setCellValue(value);\n\t\t\tinputStream.close();\n\t\t\tFileOutputStream output_file = new FileOutputStream(new File(fullpath));\n\t\t\tworkbook.write(output_file);\n\t\t\tworkbook.close();\n\t\t\toutput_file.close();\n\t\t\tSystem.out.println(\"Sheet Cell Value is Updated\");\n\t\t} catch (Exception e) {\n\n\t\t}\n\n\t}", "@Override\n\tpublic void setValueAt(Object value, int row, int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\tString expr = value.toString();\n\t\t\texpressions.set(row, expr);\n\t\t\tString result = executeExpr(expr, row);\n\n\t\t\tvalues.set(row, result);\n\t\t\tupdateModel();\n\t\t\tif (row + 1 == expressions.size()) {\n\t\t\t\texpressions.add(\"\");\n\t\t\t\tvalues.add(\"\");\n\t\t\t\tfireTableRowsInserted(row + 1, row + 1);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t// just reset column 2; ignore edits\n\t\t\tfireTableDataChanged();\n\t\t}\n\t}", "public abstract void rowsUpdated(int firstRow, int endRow, int column);", "boolean editEntry(String id, String val, String colName) throws Exception;", "public void editar(String update){\n try {\n Statement stm = Conexion.getInstancia().createStatement();\n stm.executeUpdate(update);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "public void update() {\n tableChanged(new TableModelEvent(this));\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void setCell(int x, int y, int newValue) {\n hiddenGrid[x][y] = newValue;\n }", "public void update(){}", "public void update(){}", "@Override\n\tpublic int updateByPrimaryKey(Cell record) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void setCell(Integer x, Integer y, Integer value) {\n\t\tgame[x][y] = value;\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnUpdate\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-update-select\" + i);\n\t\t\t\t\tSystem.out.println(\"row-update-supp-id\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\t\t\t\t\tString suppName = textSuppName.getText();\n\t\t\t\t\tString suppAddr = textSuppAddr.getText();\n\t\t\t\t\tString suppPhone = textSuppPhone.getText();\n\t\t\t\t\tString suppEmail = textSuppEmail.getText();\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\tsuppModel.setName(suppName);\n\t\t\t\t\tsuppModel.setAddress(suppAddr);\n\t\t\t\t\tsuppModel.setPhone(suppPhone);\n\t\t\t\t\tsuppModel.setEmail(suppEmail);\n\n\t\t\t\t\tsuppDAO.Update(suppModel);\n\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tsetTableGet(i, model);\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t}", "@Override\n public void setValueAt(Object aValue, int rowIndex, int columnIndex) {\n }", "@Override\n public void setValueAt (Object value, int row, int col) {\n SecurityRow secRow = allSecurities.get(row);\n if (col == NEW_PRICE_COLUMN) {\n if(value==null) {\n secRow.newPrice = null;\n } else if(value instanceof Double) {\n secRow.newPrice = (Double)value;\n } else {\n double d = StringUtils.parseRate(String.valueOf(value), decimalChar);\n secRow.newPrice = d==0 ? null : d;\n }\n fireTableCellUpdated (row, col);\n }\n }", "public void setValueAt(Object value, int row, int col) {\n if (rows != null && row >=0 && row < rows.size()) {\n ExtendedAttributeRow singleRow = (ExtendedAttributeRow) rows.get(row);\n if (singleRow != null) {\n switch (col) {\n case iColName:\n singleRow.setName((String) value); \n break;\n case iColDefaultValue:\n singleRow.setDefaultValue((String) value); \n break;\n case iColSearchable:\n singleRow.setSearchable((String) value);\n break;\n case iColRequired:\n singleRow.setRequired((String) value);\n break;\n default:\n return;\n }\n }\n fireTableCellUpdated(row, col);\n }\n }", "public void setElement(Pair<Integer, Integer> cell, int n){\n\t\tnumbers[cell.getFirst()][cell.getSecond()] = n;\n\t}", "public void setValueAt(Object value, int row, int col) {\n\t\tList rowList = data.get(row);\n\t\t\n\t\t// make this row long enough\n\t\tif (col>=rowList.size()) {\n\t\t\twhile (col>=rowList.size()) rowList.add(null);\n\t\t}\n\n\t\t// install the data\n\t\trowList.set(col, value);\n\t\t\n\t\t// notify model listeners of cell change\n\t\tfireTableCellUpdated(row, col);\n\t}", "public int setCell(int value){\n int newValue;\n if (isHit(value)){\n newValue = HIT;\n }\n else {\n newValue = MISS;\n }\n return newValue;\n }", "@Override\n public void setValueAt(Object value, int row, int column) { data[row][column] = value; }", "public void updateRow(String tableName, String columnName, String value, String uniqueColumnName, int uniqueId) {\r\n\t\t\r\n\t\tString baseQuery = MessageFormat.format(\"UPDATE {0} SET {1} = ? WHERE {2} = ?;\", tableName, columnName, uniqueColumnName);\r\n\t\ttry {\r\n\t\t\tPreparedStatement updateStmt = conn.prepareStatement(baseQuery);\r\n\t\t\tupdateStmt.setString(1, value);\r\n\t\t\tupdateStmt.setInt(2, uniqueId);\r\n\t\t\tupdateStmt.execute();\r\n\t\t\tSystem.out.println(\"updated column\");\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tSystem.err.println(\"Got an exception\");\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\r\n\t}", "public void setValueAt(Object value, int row, int col) {\r\n pvValues[row][col] = value;\r\n fireTableCellUpdated(row, col);\r\n }", "public void incrementCell(Label prediction, Label real){\n\t\tint rowIx = resolveIndex(prediction);\n\t\tint colIx = resolveIndex(real);\n\n\t\tInteger cell = matrix.get(rowIx).get(colIx);\n\t\tInteger newValue = cell+1;\n\t\tmatrix.get(rowIx).set(colIx, newValue);\n\n\t}", "@Override\r\n\t\t\tpublic void handle(CellEditEvent<Products, String> arg0) {\n\t\t\t\targ0.getTableView().getItems().get(arg0.getTablePosition().getRow()).setCost(arg0.getNewValue());\r\n\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\tConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET cost='\"+data.getCost()+\"' WHERE id=\"+data.getId());\r\n\t\t\t\ttxt_cost.clear();\r\n\t\t\t\ttxt_date.clear();\r\n\t\t\t\ttxt_name.clear();\r\n\t\t\t\ttxt_price.clear();\r\n\t\t\t\ttxt_qty.clear();\r\n\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\ttxt_search.clear();\r\n\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t}", "@FXML\n public void changeMarksCellEvent(CellEditEvent<UGSubjectMarks, Integer> edittedCell) throws SQLException, ClassNotFoundException{\n UGSubjectMarks markSelected = subjectmarktbl.getSelectionModel().getSelectedItem();\n markSelected.SetSubMark(Integer.parseInt(edittedCell.getNewValue().toString()));\n int newMarks = Integer.parseInt(edittedCell.getNewValue().toString());\n UGSubject.setSubjectMarks(Integer.parseInt(studentID.getText()), sem, markSelected.getSubName(), newMarks);\n \n \n }", "@Override\r\n\t\t\tpublic void handle(CellEditEvent<Products, String> arg0) {\n\t\t\t\targ0.getTableView().getItems().get(arg0.getTablePosition().getRow()).setQuantity(arg0.getNewValue());\r\n\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\tConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET quantity='\"+data.getQuantity()+\"' WHERE id=\"+data.getId());\r\n\t\t\t\ttxt_cost.clear();\r\n\t\t\t\ttxt_date.clear();\r\n\t\t\t\ttxt_name.clear();\r\n\t\t\t\ttxt_price.clear();\r\n\t\t\t\ttxt_qty.clear();\r\n\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\ttxt_search.clear();\r\n\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void rowsUpdated(int firstRow, int endRow, int column) {\n\n\t\t\t\t}", "@Override\n public void setValueAt( Object aValue, Object node, int column )\n {\n }", "public void update(int rowSelected, Posto p) {\n postos.set(rowSelected, p);\n fireTableRowsUpdated(rowSelected, rowSelected);\n }", "public void updateRoomValue(String columnName, int roomId, Object value, int row, int column) {\r\n try {\r\n if (column != 0) {\r\n stmt.executeUpdate(\"UPDATE ROOMS SET \" + columnName\r\n + \" = '\" + value + \"' WHERE ID = \" + roomId);\r\n }\r\n } catch (SQLException err) {\r\n System.out.println(err.getMessage());\r\n }\r\n }", "private void updateTable() {\n updateTableData();\n TableModelEvent e = new TableModelEvent(articleTableModel);\n\n articleTable.tableChanged(e);\n }", "public synchronized void setCellValue(GoLCell in_cell)\n {\n cellValue = in_cell.getCellValue();\n }", "void completeCell(Sheet sheet, Row row, Cell cell, ExcelField excelField, Field field, int index, int colIndex, boolean isHead);", "private void setInfo(int row)\n {\n String ID=table.getModel().getValueAt(row, 0).toString();\n String Name=table.getModel().getValueAt(row, 1).toString(); \n idText.setText(ID);\n nameText.setText(Name);\n }", "@Override\r\n\t\t\tpublic void handle(CellEditEvent<Products, String> arg0) {\n\t\t\t\targ0.getTableView().getItems().get(arg0.getTablePosition().getRow()).setPrice(arg0.getNewValue());\r\n\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\tConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET price='\"+data.getPrice()+\"' WHERE id=\"+data.getId());\r\n\t\t\t\ttxt_cost.clear();\r\n\t\t\t\ttxt_date.clear();\r\n\t\t\t\ttxt_name.clear();\r\n\t\t\t\ttxt_price.clear();\r\n\t\t\t\ttxt_qty.clear();\r\n\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\ttxt_search.clear();\r\n\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t}", "void setElement(int row, String field, Object value);", "@Override\n public boolean isCellEditable (int row, int column) {\n return (column == NEW_PRICE_COLUMN);\n }", "public void update_teacherIssuedDetailTable(){ \r\n teacher_columnID.setCellValueFactory(new PropertyValueFactory<>(\"teacherID\"));\r\n teacher_columnName.setCellValueFactory(new PropertyValueFactory<>(\"teacherName\"));\r\n teacher_columnDepart.setCellValueFactory(new PropertyValueFactory<>(\"teacherDepart\"));\r\n teacher_columnQuantity.setCellValueFactory(new PropertyValueFactory<>(\"bookQuantity\"));\r\n teacher_columnBookTitle.setCellValueFactory(new PropertyValueFactory<>(\"bookTitle\"));\r\n teacher_columnBookClass.setCellValueFactory(new PropertyValueFactory<>(\"bookClass\"));\r\n teacher_columnDateIssued.setCellValueFactory(new PropertyValueFactory<>(\"dateIssued\"));\r\n try { \r\n String sql = \"SELECT * FROM teacherissued\";\r\n pstmt = con.prepareStatement(sql);\r\n rs = pstmt.executeQuery();\r\n while(rs.next()){\r\n teacherBooksData.add( new TeacherBookIssue(\r\n rs.getString(\"teacher_ID\"),\r\n rs.getString(\"teacher_name\"),\r\n rs.getString(\"teacher_depart\"),\r\n rs.getString(\"quantity_issued\"), \r\n rs.getString(\"book_title\"),\r\n rs.getString(\"book_class\"),\r\n rs.getString(\"date_issued\") \r\n )); \r\n }\r\n //load items to the table\r\n teachserIssuedTable.setItems(teacherBooksData);\r\n pstmt.close();\r\n rs.close();\r\n } catch (SQLException e) {\r\n } finally {\r\n try {\r\n rs.close();\r\n pstmt.close();\r\n } catch (Exception e) {\r\n } \r\n }\r\n }", "public void setValueAt(Object val, int row, int col) {\r\n }", "protected abstract void setCell(int x, int y, boolean state);", "@Override\n\tpublic void setValueAt(Object value, int row, int column) {\n\t\tElectrodomestico elecAct;\n\t\telecAct = (Electrodomestico)(elec.get(row));\n\t\tswitch(column)\n\t\t{\n\t\tcase 0://ID\n\t\t\telecAct.setId(((Integer)value).intValue());\n\t\t\tbreak;\n\t\tcase 1://Class\n\t\t\t\n\t\t\tbreak;\n\t\tcase 2://Color\n\t\t\telecAct.setColor(new Color((String)value));\n\t\t\tbreak;\n\t\tcase 3://Consumo\n\t\t\telecAct.setConsumo(new ConsumoEnergetico((char)value));\n\t\t\tbreak;\n\t\tcase 4://Peso\n\t\t\telecAct.setPeso((double)value);\n\t\t\tbreak;\n\t\tcase 5://Carga (Lavarropas)\n\t\t\t((Lavarropas)elecAct).setCarga((double)value);;\n\t\t\tbreak;\n\t\tcase 6://Resolucion (Televisor)\n\t\t\t((Television)elecAct).setResolucion(((Integer)value).intValue());\n\t\t\tbreak;\n\t\tcase 7://Sintonizador (Televisor)\n\t\t\t((Television)elecAct).setSintonizador((boolean)value);\n\t\t\tbreak;\n\t\tcase 8://Precio\n\t\t\telecAct.setPrecioBase((double)value);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tTableModelEvent evento = new TableModelEvent(this, row, row, column);\n\t\taviso(evento);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tint RowNum=jt.getSelectedRow();\n\t\t\t\tif(RowNum==-1){\n\t\t\t\t\tJOptionPane.showMessageDialog(jt, \"请选择一行\");\n\t\t\t\t return ;\n\t\t\t }\n\t\t \n\t\t String info=((String)mit.getValueAt(RowNum, 1));\n\t\t \n\t\t\t\tString majorNewIn=JOptionPane.showInputDialog(\"请修改专业\",info);\n\t\t\t\tif(majorNewIn!=null)\n\t\t\t\t{\n\t\t\t\t\tif(!majorNewIn.equals(\"\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tString majorIdSql=\"select id from majorinfo where majorName='\"+Tool.string2UTF8(info)+\"'\";\n\t\t\t\t\t\tString majorid=SqlModel.getInfo(majorIdSql);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString mclassSql=\"update classinfo set major='\"+Tool.string2UTF8(majorNewIn)+\"' where major='\"+Tool.string2UTF8(info)+\"'\";\n\t\t\t\t\t\tString mjobSql=\"update jobinfo set major='\"+Tool.string2UTF8(majorNewIn)+\"' where major='\"+Tool.string2UTF8(info)+\"'\";\n\t\t\t\t\t\tString mmajorSql=\"update majorinfo set majorName='\"+Tool.string2UTF8(majorNewIn)+\"' where id='\"+majorid+\"'\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tSqlModel.updateInfo(mclassSql);\n\t\t\t\t\t\tSqlModel.updateInfo(mjobSql);\n\t\t\t\t\t\tif(SqlModel.updateInfo(mmajorSql)){\n\t\t\t\t\t\t\trefresh(jt);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"修改失败\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t \n\t\t\t}", "private boolean updated(char col, int row, String content){\n CellNode current = Head;\n while(current != null){\n if(checkColRow(current, col, row) != null){\n current.getCell().setContent(content); return true;\n }\n current = current.getNext();\n }\n return false;\n }", "public void setGFXCell(GFXDataCell gfxCell);", "@Override\r\n public boolean isCellEditable(int row, int col) {\r\n return true;\r\n }", "@Override\r\n public void update(int index, Movie object, String value) {\n \tif (!value.matches(\"^[0-9]*$\")){\r\n \t\ttimeCell.clearViewData(selectionModel.getSelectedObject()); \r\n \t\tmovieProvider.refresh();\r\n \t\tmovieTable.redraw(); \r\n \t Window.alert(value + \" ist keine gueltige eingabe. Bitte eine positive Zahl eingeben!\");\r\n \t\t}\r\n \telse {\r\n \t\tobject.setTime(Integer.valueOf(value));\r\n \t\t\tmovieTable.redraw();\r\n \t\t\t}\r\n \t}", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "public void setValueAt(Object aValue, int row, int column)\n {\n\n }", "@Override\n public boolean isCellEditable(int row, int col) {\n return col == 2;\n }", "public void setEditable(){\r\n treatmentTabletv.setEditable(true);\r\n //treatment id editable\r\n treatmentIDColumn.setEditable(true);\r\n treatmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment ID\")\r\n .text(\"Treatment ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n //if Treatment ID is a duplicate, show error\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n //else update treatment ID\r\n else {\r\n String dataUpdate = \"update treatment set treatmentID = ? where treatmentName = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getTreatmentNameProperty());\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 add an exception code here\r\n }\r\n tm.setIdProperty(t.getNewValue());\r\n }\r\n }\r\n\r\n });\r\n //treatmentName editable\r\n treatmentNameColumn.setEditable(true);\r\n treatmentNameColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentNameColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment Name\")\r\n .text(\"Treatment Name text field is empty. Text fields may not be left empty. Please insert a valid Treatment Name!\")\r\n .showError();\r\n }\r\n else {\r\n String dataUpdate = \"update treatment set treatmentName = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\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 add an exception code here\r\n }\r\n tm.setTreatmentNameProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n //medicine id editable\r\n medicineIDColumn.setEditable(true);\r\n medicineIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n medicineIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Medicine ID\")\r\n .text(\"Treatment's Medicine ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment's Medicine ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update medicine id\r\n else {\r\n String dataUpdate = \"update treatment set medicineID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\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 add an exception code here\r\n }\r\n tm.setMedicineIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n //department id editable\r\n departmentIDColumn.setEditable(true);\r\n departmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n departmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Department ID\")\r\n .text(\"Treatment's Department ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment Department ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment's ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update department ID\r\n else {\r\n String dataUpdate = \"update treatment set departmentID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\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 add an exception code here\r\n }\r\n tm.setDepartmentIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n //disease id editable\r\n diseaseIDColumn.setEditable(true);\r\n diseaseIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n diseaseIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Disease ID\")\r\n .text(\"Treatment's Disease ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment Disease ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update disease ID\r\n else {\r\n String dataUpdate = \"update treatment set diseaseID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\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 add an exception code here\r\n }\r\n tm.setDiseaseIDProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n }", "@Override\r\n public void update(int index, Movie object, String value) {\n \tobject.setPlace(value);\r\n \tmovieTable.redraw();\r\n }", "@Override\n public void setValueAt(Object obj, int row, int col) {\n if (isCellEditable(row,col)){\n Feature f = fc.get(row);\n LifeStageAttributesInterface atts = (LifeStageAttributesInterface) f.getAttribute(1);\n if (debug) logger.info(\"SetValue for row \"+atts.getCSV());\n atts.setValue(keys.get(col), obj);\n fireTableCellUpdated(row, col);\n }\n }", "@Override\n public boolean isCellEditable(int row, int column) {\n return column == DownloadCompletedTable.OPERATING;\n }", "@Override\n public void update(String key) {\n lName = key;\n if (nTable != null)\n value = nTable.getNumber(key, 0);\n }", "@Override\n public void update(int index, Disciplina object, String value) {\n object.setObrigatoria(Boolean.parseBoolean(value));\n GWTServiceDisciplina.Util.getInstance().updateDisciplinaRow(object, callbackUpdateRow);\n }", "public void setValueAt(Object value, int row, int column){\n dataEntries[row][column] = value;\n }" ]
[ "0.7831409", "0.7131963", "0.7004087", "0.6665567", "0.6595531", "0.6575318", "0.6511517", "0.6511517", "0.6464961", "0.6461204", "0.6454725", "0.64131445", "0.6396817", "0.63947237", "0.6332778", "0.6318792", "0.6309309", "0.6277733", "0.6233791", "0.62319636", "0.6220443", "0.62100154", "0.61915445", "0.6173087", "0.61417407", "0.61411333", "0.6134177", "0.61152345", "0.6113898", "0.60739744", "0.60608405", "0.6056474", "0.60450053", "0.60309744", "0.60167944", "0.6007687", "0.6000941", "0.5977647", "0.5977647", "0.59763694", "0.5949355", "0.59426755", "0.59383637", "0.59296006", "0.59258413", "0.5922102", "0.59208584", "0.59181327", "0.59048766", "0.5904535", "0.58905107", "0.5890096", "0.5883595", "0.5883595", "0.5877137", "0.5866944", "0.58544683", "0.58522886", "0.5848442", "0.5842841", "0.5840202", "0.5831102", "0.5829889", "0.5824967", "0.5808974", "0.57972836", "0.57902265", "0.57850957", "0.5775405", "0.5766333", "0.57615453", "0.5759146", "0.57580644", "0.5756843", "0.57509106", "0.5743792", "0.57437605", "0.5743737", "0.57405275", "0.5739922", "0.57302225", "0.572586", "0.5715724", "0.57155216", "0.5714263", "0.57127124", "0.5711231", "0.5709637", "0.56956583", "0.56848294", "0.5680936", "0.567401", "0.56696486", "0.56671953", "0.56650156", "0.5663908", "0.56622523", "0.56602466", "0.56580424", "0.5657053", "0.56530726" ]
0.0
-1
Created by kurt on 2015/11/23.
@RemoteServiceClient(SimpleHttpService.class) public interface ISimpleHttpServiceClient extends IServiceClient { @RemoteMessageClient(SimpleHttpService.REQUEST_START) void bootup(int port); @RemoteMessageClient(SimpleHttpService.REQUEST_STOP) void shutdown(); @RemoteMessageClient(SimpleHttpService.REQUEST_INFO) void info(int port); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "public final void mo51373a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void init() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\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 public void init() {}", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void initialize() { \n }", "private void strin() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void method_4270() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public void initialize() {}" ]
[ "0.6060789", "0.59318745", "0.59106827", "0.59058285", "0.57741195", "0.57741195", "0.57456756", "0.5732779", "0.57257587", "0.5702698", "0.5696344", "0.56808484", "0.56722426", "0.56604105", "0.5655072", "0.56550443", "0.56345403", "0.56345403", "0.56345403", "0.56345403", "0.56345403", "0.5626293", "0.5617863", "0.5617471", "0.56011957", "0.5598594", "0.5594195", "0.5564228", "0.55602247", "0.5559402", "0.55506396", "0.5538337", "0.5532777", "0.55315685", "0.55315685", "0.5526366", "0.55235314", "0.5523276", "0.55163723", "0.54973114", "0.54973114", "0.54973114", "0.54973114", "0.54973114", "0.54973114", "0.5497217", "0.5496538", "0.54961663", "0.54961663", "0.54961663", "0.5491686", "0.5491686", "0.5491686", "0.5488906", "0.54808736", "0.54796106", "0.54796106", "0.54749405", "0.5472413", "0.5469577", "0.5462186", "0.5456619", "0.5455007", "0.5454272", "0.5454272", "0.5454272", "0.54458785", "0.54437506", "0.54437506", "0.5442188", "0.5437507", "0.5432383", "0.54222876", "0.5420925", "0.54180896", "0.54070854", "0.5400695", "0.5389772", "0.53881806", "0.53873295", "0.537131", "0.5364519", "0.5349876", "0.534804", "0.5332219", "0.5332219", "0.5323205", "0.5310718", "0.5308813", "0.5294059", "0.5294059", "0.5294059", "0.5294059", "0.5294059", "0.5294059", "0.5294059", "0.5280625", "0.52793187", "0.5276116", "0.5274242", "0.526621" ]
0.0
-1
Apply the changes from UI to model.
void applyChanges() { trainFunction.setAlias(txtAlias.getText()); trainFunction.getConfiguration().setAddress(txtAddress.getValue()); trainFunction.getConfiguration().setBit(selectBit.getSelected().orElse(null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateModelFromView();", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "void updateViewFromModel();", "@Override\r\n\tpublic void setModel() {\n\t\tnew UpUI(context).execute();\r\n\t}", "void updateModel() {\n updateModel(false);\n }", "private void setModelToChanged() {\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "public void updateModel()\n {\n if (beanModel instanceof EnterTillPayrollPayOutBeanModel)\n {\n EnterTillPayrollPayOutBeanModel model = (EnterTillPayrollPayOutBeanModel) beanModel;\n model.setAmount(amountField.getText());\n model.setSelectedReasonCode(reasonCodeField.getSelectedIndex());\n model.setPaidTo(paidToField.getText());\n model.setEmployeeID(employeeIDField.getText());\n model.setAddressLine(0, addressLine1Field.getText());\n model.setAddressLine(1, addressLine2Field.getText());\n model.setAddressLine(2, addressLine3Field.getText());\n model.setSelectedApprovalCodeIndex(approvalCodeField.getSelectedIndex());\n model.setComment(commentField.getText());\n }\n }", "protected void modelChanged() {\n // create a view hierarchy\n ViewFactory f = rootView.getViewFactory();\n Document doc = editor.getDocument();\n Element elem = doc.getDefaultRootElement();\n setView(f.create(elem));\n }", "@Override\n public void Update(Model model) {\n\n }", "private void applyChanges() {\n mProgressBar.setVisibility(View.VISIBLE);\n\n String name = mNameBox.getText().toString().trim();\n String priceStr = mPriceBox.getText().toString().trim();\n\n if (!name.isEmpty() /* && !priceStr.isEmpty() */) {\n float price = Float.parseFloat(priceStr);\n ReformType reformType = new ReformType();\n reformType.setId(mReformTypeId);\n reformType.setName(name);\n reformType.setPrice(price);\n\n mReformTypeRepo.patchReformType(reformType).observe(this, isPatched -> {\n if (isPatched) {\n mReformType.setName(name);\n mReformType.setPrice(price);\n mReformTypeRepo.insertLocalReformType(mReformType);\n Toast.makeText(this, \"Reform type successfully updated.\", Toast.LENGTH_SHORT).show();\n } else {\n mIsError = true;\n mIsEditMode = !mIsEditMode;\n toggleSave();\n mNameBox.setText(mReformType.getName());\n mPriceBox.setText(String.valueOf(mReformType.getPrice()));\n }\n });\n }\n\n mProgressBar.setVisibility(GONE);\n }", "private void setUpApply() {\n apply = new Button(\"Apply\");\n apply.setOnAction(new EventHandler<ActionEvent>() {\n\n @Override\n public void handle(ActionEvent t) {\n AppVector vector = builder.build();\n Engine engine = FileEngineRelation.INSTANCE.getCurrentEngine();\n MyNode node = engine.getNode();\n node.setVector(vector);\n Dialogs.showInformationDialog(Launcher.STAGE, \"Vector edited with success : vector = \" + node.getVector(), \"OK\");\n }\n });\n }", "private void updateUI() {\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n updateText();\n updateChart();\n }", "@Override\n\tpublic int update(Object model) {\n\t\treturn 0;\n\t}", "@Override\n\t\t\t\tpublic void modelStructureChanged() {\n\n\t\t\t\t}", "public void updateUI(){}", "public void updateModel() {\n\t\tIterator<Cell> itr = iterator();\n\t\twhile(itr.hasNext()) itr.next().update();\n\t\titr = iterator();\n\t\twhile(itr.hasNext()) {\n\t\t\t(itr.next()).nextGeneration();\n\t\t}\n\t\tupdateGraph();\n\t}", "@Override\n protected void updateModelFromUi(@Nullable Selection<DataType> selection) {\n try {\n selection.setSelected(theCheckBox.isChecked());\n Logger.debug(\"Updated selection: \" + selection.toString());\n\n } catch (Exception e) {\n Logger.error(\"Failed to update selection\", e);\n }\n }", "void onModelChange();", "void updateModel() {\n\t\tfor (int i = 0; i < expressions.size(); ++i) {\n\t\t\tString expr = expressions.get(i);\n\t\t\tString result = \"\";\n\t\t\tif (expr.length() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tresult = executeExpr(expr, i);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tMessageDialogWrapper.showMessageDialog(debugGui, e.getMessage(), \"Error Compiling \",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\tif (result == null)\n\t\t\t\t\tresult = \"\";\n\t\t\t} else {\n\t\t\t\tresult = \"\";\n\t\t\t}\n\t\t\tresult = result.replace('\\n', ' ');\n\t\t\tvalues.set(i, result);\n\t\t}\n\t\tfireTableDataChanged();\n\t}", "@Override\r\n\tpublic void updateView(List<Pays> models) {\n\t}", "@Override\r\n\tpublic void setModel() {\n\t}", "@Override\r\n public void updateUI() {\r\n }", "private void actualizeazaModel() {\n model.clear();\n listaContacte.forEach((o) -> {\n model.addElement(o);\n });\n }", "public void updateCurrentValues(AnyUriModel model) {\r\n this.model = model;\r\n resetValuesFromModel();\r\n }", "@FXML private void doSave(ActionEvent event) {\n\t\tmodel.save();\n\t}", "public void update() {\n\t\tthis.editorView.update();\n\t}", "public void applyChanges(PresentationEngine presentationEngine) {\n super.realize(presentationEngine);\n }", "public void notifyModelUpdated()\n {}", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n if (view.getSelectedPackage() == null\r\n && view.getSelectedModel() == null)\r\n {\r\n loadModelAction();\r\n }\r\n else\r\n {\r\n reloadModelSwing();\r\n }\r\n }", "protected void handleModelChanged() {\n\t\t// refresh connections on the source edit part!\n\t\tif (isActive()) {\n//\t\t\tLink link = (Link)getModel();\n//\t\t\tEObject sourceActivity = FlowLinkUtil.getLinkSource(link); \n//\t\t\tif (sourceActivity != null) {\n//\t\t\t\tObject editPart = getViewer().getEditPartRegistry().get(sourceActivity);\n//\t\t\t\tif (editPart instanceof ActivityEditPart) {\n//\t\t\t\t\t((ActivityEditPart)editPart).refresh();\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tEObject targetActivity = FlowLinkUtil.getLinkTarget(link); \n//\t\t\tif (targetActivity != null) {\n//\t\t\t\tObject editPart = getViewer().getEditPartRegistry().get(targetActivity);\n//\t\t\t\tif (editPart instanceof ActivityEditPart) {\n//\t\t\t\t\t((ActivityEditPart)editPart).refresh();\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t// If property name is children, refresh children.\n\t\t\t// If property name is size or location, refresh visuals.\n\t\t\trefreshVisuals();\n\t\t}\n\t}", "@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }", "public boolean update() {\n if(0==modified) return false;\n \n final int res = modified;\n if( (res&DIRTY_MODELVIEW)!=0 ) {\n setMviMvit();\n }\n modified=0;\n return res!=0;\n }", "public void update() {\n tableChanged(new TableModelEvent(this));\n }", "public void applyAnnotationChanges() throws Exception {\n\t\tselectedChangeSet = this.getSelectedChanges();\n\t\tSwoopModel swoopModel = changeLog.swoopModel;\n\t\t\n\t\t// save current uncommitted changes\n\t\tList savedUncommittedChanges = new ArrayList(swoopModel.getUncommittedChanges());\n\t\tList savedCommittedChanges = new ArrayList(swoopModel.getCommittedChanges());\n\t\t\n\t\t// apply changes, two different methods depending on serialization method\n\t\tif (SwoopModel.changeSharingMethod == SwoopModel.JAVA_SER) {\n\t\t\tOWLOntology ont = null;\n\t\t\tfor (Iterator iter = selectedChangeSet.iterator(); iter.hasNext(); ) {\n\t\t\t\tOntologyChange change = (OntologyChange) iter.next();\n\t\t\t\tont = change.getOntology();\n\t\t\t\tchange.accept((ChangeVisitor) ont);\n\t\t\t}\n\t\t\tswoopModel.reloadOntology(ont, true);\n\t\t\tsavedCommittedChanges.addAll(selectedChangeSet);\n\t\t\tswoopModel.setUncommittedChanges(savedUncommittedChanges);\n\t\t\tswoopModel.setCommittedChanges(savedCommittedChanges);\n\t\t}\n\t\telse {\n\t\t\t// add annotation changes to uncommitted list and apply \n\t\t\tswoopModel.setUncommittedChanges(selectedChangeSet);\n\t\t\tswoopModel.applyOntologyChanges();\n\t\t\tswoopModel.setUncommittedChanges(savedUncommittedChanges);\n\t\t}\n\t\t\n\t\t// give success message\n\t\tJOptionPane.showMessageDialog(this, \"Ontology Changes applied successfully\", \"Annotated Changes\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void commitChanges(){\n\t\tskipRulesView.updateSkipRule();\n\t\tvalidationRulesView.updateValidationRule();\n\t\tdynamicListsView.updateDynamicLists();\n\t}", "public abstract void modelStructureChanged();", "public void updateUI() {\n appViewModel.usersList.observe(getViewLifecycleOwner(), new Observer<PagedList<UserModel>>() {\n @Override\n public void onChanged(PagedList<UserModel> userModels) {\n adapter.submitList(userModels);\n adapter.notifyDataSetChanged();\n }\n });\n }", "public void updateView()\n {\n int selectionCount = selection.getElementSelectionCount();\n\n // If only one item selected, enable & update the\n // text boxes and pull downs with values.\n if (selectionCount == 1) {\n // preserve selected state if a whole text field is selected\n Text text = WindowUtil.getFocusedText();\n boolean restoreSel = false;\n if ((text != null) &&\n (text.getSelectionCount() == text.getCharCount()))\n {\n restoreSel = true;\n }\n\n // get the selected item\n Iterator<FrameElement> iter =\n selection.getSelectedElementsIterator();\n\n // For each selected object, which there is only one.\n FrameElement elt = iter.next();\n\n if (elt instanceof IWidget) {\n IWidget widget = (IWidget) elt;\n\n view.useParameters(FrameEditorView.USE_SINGLE_SELECT);\n view.updateWidgetProperties(widget);\n }\n else if (elt instanceof FrameElementGroup) {\n FrameElementGroup eltGroup = (FrameElementGroup) elt;\n\n view.useParameters(FrameEditorView.USE_GROUP_SELECT);\n view.updateEltGroupProperties(eltGroup);\n }\n\n // Restore the selection state\n if (restoreSel) {\n text.selectAll();\n }\n }\n else if (selectionCount > 1) {\n // TODO: on multi selection, some values are left enabled\n // We need to set these to something or disable them.\n view.useParameters(FrameEditorView.USE_MULTI_SELECT);\n }\n else {\n view.useParameters(FrameEditorView.USE_NONE);\n view.updateFrameProperties(frame, false);\n }\n }", "protected abstract void apply(Property prop, View view, Object newValue);", "public void apply() {\n this.vgcomponent.setFont( this.fontchooser.getSelectedFont() );\n this.vgcomponent.setFontcolor( this.fontcolor.getColor() );\n\n if( this.vgcomponent instanceof VisualEdge ) {\n VisualEdge vEdge = (VisualEdge) this.vgcomponent;\n vEdge.getEdge().setFollowVertexLabel( this.followLabel.isSelected() );\n if( !this.followLabel.isSelected() ) {\n vEdge.getEdge().setLabel( this.textarea.getText() );\n }\n }\n else {\n this.vgcomponent.setLabel( this.textarea.getText() );\n }\n }", "public void applyChanges(ActionEvent event){\n\t\tString text = noteText.getText();\n\t\tdouble x = Double.parseDouble(originX.getText()), y = Double.parseDouble(originY.getText());\n\n\t\tif((!text.equals(note.getText())) || x != note.getOriginX() || y != note.getOriginY()) {\n\t\t\tcontroller.UNDONE_ACTIONS.clear();\n\t\t\ttry {\n\t\t\t\tcontroller.ACTIONS.push(new UpdateNote(note, text, x, y, this));\n\t\t\t\tevent.consume();\n\t\t\t} catch (Exception e) {\n\t\t\t\tcontroller.ACTIONS.push(new ChangeNoteText(note, noteText.getText(), this));\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void update(Interest model, InterestEntity entity) {\n\r\n\t}", "private void doAfterUpdateModel(final PhaseEvent arg0) {\n\t}", "protected final void redo() {\n requireNonNull(model);\n try {\n executeUndoableCommand();\n } catch (CommandException ce) {\n throw new AssertionError(\"The command has been successfully executed previously; \"\n + \"it should not fail now\");\n }\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "void set(Model model);", "private void processModelSideEffects(Model model) throws CommandException {\n if (model.hasInvalidDependencies()) {\n throw new CommandException(MESSAGE_UNFULFILLED_DEPENDENCIES);\n }\n\n model.updateFilteredTaskList(PREDICATE_SHOW_ALL_TASKS);\n model.commitTaskManager();\n }", "void updateView();", "void updateView();", "protected void performApply() {\n\n for (int i = 0; i < providers.getItemCount(); i++) {\n\n //TODO: The checkboxes are buggy. Sometimes the provider in the table - representation\n // seems not to be the correct VilArgumentProvier.\n if (providers.getItem(i).getChecked()) {\n VilArgumentProvider.getProvider(i).setActive(true);\n } else {\n VilArgumentProvider.getProvider(i).setActive(false);\n }\n \n //the arguments are in column 4..\n try {\n //Set the free arguments\n VilArgumentProvider.getProvider(i).setFreeArguments(providers.getItem(i).getText(4).trim().toString());\n } catch (NullPointerException e) {\n VilArgumentProvider.getProvider(i).setFreeArguments(\"\");\n }\n \n EASyPreferenceStore.persistVilArgumentProviderStates();\n }\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\r\n\t\tpublic void userModelChanged() \r\n\t\t{\n\t\t\t\r\n\t\t}", "public void saveModel() {\n\t}", "public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}", "private void performBinding() {\n mViewDataBinding.setVariable(getBindingVariable(), mViewModel);\n mViewDataBinding.setLifecycleOwner(this);\n mViewDataBinding.executePendingBindings();\n }", "public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }", "public void run() {\n if (view.getPauseState() && model.getSelectedNote() != null) {\n this.model.removeNote(model.getSelectedNote());\n this.model.setSelectedNote(null);\n }\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n }", "public void perform() {\n if (valid) {\n if (isUndo) {\n ObjArrayUtil.addItems(itemSlots, this.items, true);\n Editor.setClipboard(savedClipboard);\n } else {\n // undo operation constructs modified items for us\n getUndo();\n Editor.setClipboard(oppOper.items);\n ObjArrayUtil.deleteItems(itemSlots);\n }\n }\n }", "public void update(Observable obj, Object arg ){\n\t\trepaint();\n\t\tif(theModel.getSelectedVertexIndex() == -1){\n\t\t\ttextField.setText(\"\");\n\t\t\ttextField.setEditable(false);\n\t\t}\n\t}", "public void apply() {\n // apply general settings\n if (generalModeKeepRadioButton.isSelected()) {\n settings.getGeneralSettings().setMode(Mode.KEEP);\n } else if (generalModeUpdateRadioButton.isSelected()) {\n settings.getGeneralSettings().setMode(Mode.UPDATE);\n } else if (generalModeReplaceRadioButton.isSelected()) {\n settings.getGeneralSettings().setMode(Mode.REPLACE);\n }\n\n settings.getGeneralSettings().getLevels().clear();\n if (generalLevelTypeCheckbox.isSelected()) {\n settings.getGeneralSettings().getLevels().add(Level.TYPE);\n }\n if (generalLevelMethodCheckbox.isSelected()) {\n settings.getGeneralSettings().getLevels().add(Level.METHOD);\n }\n if (generalLevelFieldCheckbox.isSelected()) {\n settings.getGeneralSettings().getLevels().add(Level.FIELD);\n }\n\n settings.getGeneralSettings().getVisibilities().clear();\n if (generalVisibilityPublicCheckbox.isSelected()) {\n settings.getGeneralSettings().getVisibilities().add(Visibility.PUBLIC);\n }\n if (generalVisibilityProtectedCheckbox.isSelected()) {\n settings.getGeneralSettings().getVisibilities().add(Visibility.PROTECTED);\n }\n if (generalVisibilityDefaultCheckbox.isSelected()) {\n settings.getGeneralSettings().getVisibilities().add(Visibility.DEFAULT);\n }\n if (generalVisibilityPrivateCheckbox.isSelected()) {\n settings.getGeneralSettings().getVisibilities().add(Visibility.PRIVATE);\n }\n\n settings.getGeneralSettings().setOverriddenMethods(generalOtherOverriddenMethodsCheckbox.isSelected());\n settings.getGeneralSettings().setSplittedClassName(generalOtherSplittedClassName.isSelected());\n\n // apply templates settings\n settings.getTemplateSettings().setClassTemplates(classTemplatesTable.getSettings());\n settings.getTemplateSettings().setConstructorTemplates(constructorTemplatesTable.getSettings());\n settings.getTemplateSettings().setMethodTemplates(methodTemplatesTable.getSettings());\n settings.getTemplateSettings().setFieldTemplates(fieldTemplatesTable.getSettings());\n }", "private void updateModel() {\n // Reset the credentials background\n currentPassword.setBackground(Themes.currentTheme.dataEntryBackground());\n\n\n }", "void setModel(Model model);", "@Override\n public void update(java.util.Observable updatedModel, Object parametros) {\n if (parametros != Material_Modelo.ae_material_actual) {\n return;\n }\n AdministrarMaterial material = modelo.obtener_material_actual();\n \n if(material==null){\n this.jTextField_codigo.setText(\"\");\n this.jTextField_descripcion.setText(\"\");\n this.jTextField_paca.setText(\"\");\n this.jTextField_saca.setText(\"\");\n }else{\n this.jTextField_codigo.setText(material.getMaterial().getCodigo());\n if(modelo.obtener_errores().get(\"id\")!=null){\n this.jTextField_codigo.setBorder(BORDER_ERROR);\n this.jTextField_codigo.setToolTipText(modelo.obtener_errores().get(\"id\"));\n }\n else{\n this.jTextField_codigo.setBorder(BORDER_NOBORDER);\n this.jTextField_codigo.setToolTipText(null);\n }\n \n this.jTextField_descripcion.setText(material.getMaterial().getNombre());\n if(modelo.obtener_errores().get(\"nombre\")!=null){\n this.jTextField_codigo.setBorder(BORDER_ERROR);\n this.jTextField_codigo.setToolTipText(modelo.obtener_errores().get(\"nombre\"));\n }\n else{\n this.jTextField_codigo.setBorder(BORDER_NOBORDER);\n this.jTextField_codigo.setToolTipText(null);\n }\n \n if(material.getPrecioPaca()==0){\n this.jTextField_paca.setText(\"\");\n }\n else{\n this.jTextField_paca.setText(String.valueOf(material.getPrecioPaca()));\n }\n \n if(modelo.obtener_errores().get(\"paca\")!=null){\n this.jTextField_paca.setBorder(BORDER_ERROR);\n this.jTextField_paca.setToolTipText(modelo.obtener_errores().get(\"paca\"));\n }\n else{\n this.jTextField_paca.setBorder(BORDER_NOBORDER);\n this.jTextField_paca.setToolTipText(null);\n }\n \n if(material.getPrecioSaca()==0){\n this.jTextField_saca.setText(\"\");\n }\n else{\n this.jTextField_saca.setText(String.valueOf(material.getPrecioSaca()));\n }\n \n if(modelo.obtener_errores().get(\"saca\")!=null){\n this.jTextField_saca.setBorder(BORDER_ERROR);\n this.jTextField_saca.setToolTipText(modelo.obtener_errores().get(\"saca\"));\n }\n else{\n this.jTextField_saca.setBorder(BORDER_NOBORDER);\n this.jTextField_saca.setToolTipText(null);\n }\n }\n this.validate();\n \n \n if(modelo.obtener_mensaje()!=null){\n if (!modelo.obtener_mensaje().equals(\"\")) {\n JOptionPane.showMessageDialog(this, modelo.obtener_mensaje(), \"\", JOptionPane.INFORMATION_MESSAGE);\n modelo.colocar_mensaje(\"\");\n }\n }\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n modelToView(handle);\n }", "@Override\n public void update(Observable o, Object arg) {\n this.currentSelectedEntity = EntityObserver.selected;\n manageComponentVisibility();\n \n if (objectPanel.isVisible()) {\n setType();\n setPosition();\n setEntityDampening();\n setEntityReflection();\n setEntityRotation();\n \n if (colorPanel.isVisible()) {\n manageLights(EntityObserver.selected);\n }\n }\n }", "private void modelListenersNotify()\n {\n modelArray = this.toArray(new Object[this.size()]);\n notifyTableModelChange();\n notifyComboBoxModelChange(0, this.size()-1);\n }", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "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 }", "@Override\n public void startup(Model model) {\n model.updateModelRep(stateID);\n }", "@Override\r\n\tpublic boolean update(LabelArticle model) {\n\t\treturn false;\r\n\t}", "public void applyUpdates() {\r\n synchronized (visualItemMap) {\r\n adder.execute(parentGroup);\r\n for (VisualItem3D item : visualItemMap.values()) {\r\n item.applyTransform();\r\n }\r\n }\r\n }", "public void run() {\n if (infomap.containsKey(\"updateListFiles\")) {\n tblDocChanges.setModel(new DocumentApproveRejectChangesTableModel());\n List<String> odfdocs =\n (List<String>) infomap.get(\"updateListFiles\");\n changesInfo.reload(odfdocs.toArray(new String[odfdocs.size()]));\n ((DocApproveRejectListModel) listMembers.getModel()).resetModel();\n\n }\n\n if (infomap.containsKey(\"updateListFile\")) {\n tblDocChanges.setModel(new DocumentApproveRejectChangesTableModel());\n String odfdoc = (String) infomap.get(\"updateListFile\");\n changesInfo.reload(odfdoc);\n ((DocApproveRejectListModel) listMembers.getModel()).resetModel();\n }\n }", "public boolean applyDialog() {\n\n\t\tif (!editorsAreValid())\n\t\t\treturn false;\n\t\t\t\n\t\ttry {\n\t\t\tconnection.callRPC(GDL_CONFIGURE_PROC_,\n\t\t\t\tnew Object[]{editedItem, getResultStructures(), connection.retrieveSession()},\n\t\t\t\t30000);\n\t\t} catch (Exception e) {\n\t\t\tTrace.exception(e);\n\t\t\treturn false;\n\t\t}\n\t\tchangedAttributes.clear();\n\t\treturn true;\n\t}", "@Override\n\tpublic void setModel(DomainObject model, InfiniteProgressPanel progressPanel) {\n\t\tsuper.setModel(model, progressPanel);\n\t\tPatronVisits visitModel = (PatronVisits)model;\n\t\tsubjectsTable.updateCollection(visitModel.getSubjects());\n\t\tnamesTable.updateCollection(visitModel.getNames());\n\t\tresearchPurposeTable.updateCollection(visitModel.getResearchPurposes());\n resourcesTable.updateCollection(visitModel.getResources());\n\t}", "@Override\n protected void applyChangesTo(Component component) {\n component.revalidate();\n component.repaint();\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 }", "public void itemStateChanged(ItemEvent e){\n model.setSolution();\n view.update();\n\n }", "private void doBeforeUpdateModel(final PhaseEvent arg0) {\n\t}", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "public void doChanges1() {\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, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel3\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel3-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-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(53, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(52, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel3\", 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(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 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 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 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(41, 113, 59, 20)};\n Point hotspot = new Point(99, 126);\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, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 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, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 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(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, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-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 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, 359, 20));\n baselinePosition.put(\"jTextField2-359-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 }", "void update(DiffReader diff) throws ModelRuntimeException;", "public void performAdditionalUpdates() {\n\t\t// Default: do nothing - subclasses should override if needed\n\t}", "@Override\n\tpublic void setModel() {\n\t\tsuper.setModel();\n\t\tclear();\n\t}", "protected void prepareModel() {\n model();\n }", "protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public void fireModelChanged() {\n if (enabled)\n for (IInifileChangeListener listener : getListeners())\n listener.modelChanged();\n }", "private void modelToView(Handle handle) {\n\n if (handle.isUp()) {\n slider.setValue(1);\n } else {\n slider.setValue(0);\n }\n }", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "public void apply() {\n\n if( this.vgcomponent instanceof VisualVertex ) {\n String selectedShape = (String) this.shapeList.getSelectedItem();\n Rectangle2D bounds = this.vgcomponent.getGeneralPath().getBounds2D();\n\n if( selectedShape.equals( \"Rectangle\")) {\n Rectangle2D rect = new Rectangle2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());\n this.vgcomponent.setGeneralPath( rect.getPathIterator( null ) );\n }\n else if( selectedShape.equals( \"RoundedRectangle\")) {\n RoundRectangle2D rect = new RoundRectangle2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight(),\n 10, 10 );\n this.vgcomponent.setGeneralPath( rect.getPathIterator( null ) );\n }\n else if( selectedShape.equals( \"Ellipse\")) {\n Ellipse2D ellipse = new Ellipse2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());\n this.vgcomponent.setGeneralPath( ellipse.getPathIterator( null ) );\n }\n }\n\n this.vgcomponent.setFillcolor( this.fillColor.getColor() );\n this.vgcomponent.setOutlinecolor( this.outlineColorButton.getColor() );\n\n this.pathPanelList.setGeneralPath( this.vgcomponent.getGeneralPath() );\n this.pathPanelList.setOutlineColor( this.vgcomponent.getOutlinecolor() );\n }", "private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}", "private void updateUi() {\n this.tabDetail.setDisable(false);\n this.lblDisplayName.setText(this.currentChild.getDisplayName());\n this.lblPersonalId.setText(String.format(\"(%s)\", this.currentChild.getPersonalId()));\n this.lblPrice.setText(String.format(\"%.2f\", this.currentChild.getPrice()));\n this.lblAge.setText(String.valueOf(this.currentChild.getAge()));\n this.dtBirthDate.setValue(this.currentChild\n .getBirthDate()\n .toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate());\n this.lblWeight.setText(String.format(\"%.1f kg\", this.currentChild.getWeight()));\n this.sldWeight.setValue(this.currentChild.getWeight());\n this.checkboxTrueRace.setSelected(!this.currentChild.isRace());\n this.imgChildProfile.setImage(this.currentChild.getAvatar());\n if (this.currentChild.getGender().equals(GenderType.MALE)){\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/boy.png\"));\n this.lblSex.setText(\"Male\");\n }\n else {\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/girl.png\"));\n this.lblSex.setText(\"Female\");\n }\n if (this.currentChild.isVirginity()){\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/virgin.png\"));\n this.lblVirginity.setText(\"Virgin\");\n }\n else {\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/not-virgin.png\"));\n this.lblVirginity.setText(\"Not Virgin\");\n }\n\n // TODO [assignment2] nastavit obrazek/avatar ditete v karte detailu\n // TODO [assignment2] nastavit spravny obrazek pohlavi v karte detailu\n // TODO [assignment2] nastavit spravny obrazek virginity atribut v v karte detailu\n }", "private void updateUI() {\n mAdapter = new GoalAdapter(userGoals);\n goalRecyclerView.setAdapter(mAdapter);\n }", "@Override\n\t\tpublic void setModel(int model) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}", "@Action\n public void modifyAction() {\n E rowObject = (E) dataTable.getSelectedRowObject();\n if (rowObject != null) {\n rowObject = (E) rowObject.clone();\n\n if (viewRowState) {\n viewRow(rowObject);\n } else {\n E newRowObject = modifyRow(rowObject);\n if (newRowObject != null) {\n replaceTableObject(newRowObject);\n fireModify(newRowObject);\n }\n }\n }\n }", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}" ]
[ "0.72113824", "0.7179049", "0.7102483", "0.70047444", "0.6966252", "0.6601221", "0.648613", "0.64731765", "0.6376489", "0.63408685", "0.63299376", "0.62228364", "0.6208263", "0.6165557", "0.6149638", "0.6136932", "0.609286", "0.60756004", "0.60673934", "0.60360307", "0.60330313", "0.60302615", "0.60137945", "0.6012231", "0.5990812", "0.59788525", "0.59747005", "0.59500915", "0.5932319", "0.5921659", "0.5917954", "0.590898", "0.59079707", "0.59002835", "0.58622056", "0.58596385", "0.5833836", "0.5832255", "0.58281547", "0.58012694", "0.5796532", "0.57855433", "0.57791317", "0.57760435", "0.5767751", "0.5755475", "0.57512987", "0.57512987", "0.5725538", "0.57248026", "0.57248026", "0.57248026", "0.5718159", "0.57081074", "0.57006526", "0.56985545", "0.5692039", "0.56864166", "0.56798893", "0.5676352", "0.56719506", "0.5669433", "0.56562865", "0.5655416", "0.5649961", "0.5634177", "0.5615693", "0.5602582", "0.55945116", "0.55781573", "0.5576697", "0.5575116", "0.5569036", "0.5567753", "0.55520976", "0.55488455", "0.5539103", "0.55332214", "0.5526142", "0.55241793", "0.55241793", "0.5518073", "0.55162215", "0.55154616", "0.5514755", "0.54987985", "0.5491576", "0.5489997", "0.5480165", "0.54792196", "0.54792196", "0.54792196", "0.54689294", "0.5467434", "0.54604805", "0.54460204", "0.5445172", "0.5443522", "0.5439421", "0.54376745" ]
0.64289254
8
Creates new form TelaPacientePesquisa
public TelaPreAtendimentoPesquisa(TelaPreAtendimento parent, boolean modal) { super(parent, modal); initComponents(); this.preAtendimento = parent; this.daoPre = new PreAtendimentoDAO(); this.paciente = new PacienteBean(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }", "@Override\n public Paciente create(Paciente paciente) {\n return this.pacienteRepository.save(paciente);\n }", "public PlanoSaude create(long plano_id);", "public void create(PessoasEspacosDeCafe pec) {\n\n Connection con = ConnectionFactory.getConnection();\n PreparedStatement stmt = null;\n\n try {\n stmt = con.prepareStatement(\"INSERT INTO PessoasEspacosDeCafe (pessoasIdPessoas, espacosDeCafeIdEspacosDeCafe)VALUES(?, ?)\");\n\n stmt.setInt(1, pec.getPessoasIdPessoas());\n stmt.setInt(2, pec.getEspacosDeCafeIdEspacosDeCafe());\n\n stmt.executeUpdate();\n\n JOptionPane.showMessageDialog(null, \"Salvo com Sucesso!\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Erro ao Salvar: \" + ex);\n } finally {\n ConnectionFactory.closeConnection(con, stmt);\n }\n }", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "public Pacientes() {\n initComponents();\n mostrarDatosPaciente(\"\");\n }", "public Paciente agregar(PacienteDTO nuevoPaciente) {\n\n int valor_hipertension = nuevoPaciente.getHipertension().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_mareo = nuevoPaciente.getMareo().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_presion = medirPresion(nuevoPaciente.getPresion());\n int valor_fiebre = medirFiebre(nuevoPaciente.getFiebre());\n int valor_edad = medirEdad(nuevoPaciente.getEdad());\n int puntaje = valor_mareo + valor_edad + valor_presion + valor_fiebre + valor_hipertension;\n\n Date date = new Date(new java.util.Date().getTime());\n Color color = colorRepository.getColorBetweenRange(puntaje);\n\n Paciente paciente = new Paciente();\n paciente.setName(nuevoPaciente.getNombre());\n paciente.setDni(nuevoPaciente.getDni());\n paciente.setColor(color);\n paciente.setScore(puntaje);\n paciente.setStatus(cantidadSiendoAtendidos(color) < color.getCant_max_patient() ? \"Siendo atendido\" : \"En espera\");\n paciente.setDate(date);\n Paciente elemento = pacienteRepository.saveAndFlush(paciente);\n return elemento;\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "public CrearPedidos() {\n initComponents();\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void createEmp(Empresa p) throws ClassNotFoundException {\r\n\r\n java.sql.Connection con = ConnectionFactory.getConnection();\r\n PreparedStatement stmt = null;\r\n\r\n try {\r\n stmt = con.prepareStatement(\"INSERT INTO tbempresas(codEmp,nomeEmp)\" + \"VALUES(?,?)\");\r\n stmt.setInt(1, p.getCodEmp());\r\n stmt.setString(2, p.getNomeEmp());\r\n\r\n stmt.executeUpdate();\r\n\r\n JOptionPane.showMessageDialog(null, \"salvo com sucesso\");\r\n } catch (SQLException ex) {\r\n System.out.println(ex);\r\n } finally {\r\n ConnectionFactory.closeConnection((com.mysql.jdbc.Connection) con, stmt);\r\n }\r\n }", "public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.rrejecutada = p.rrejecutada;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\t\tint tamaņo = p.id.length();\n\t\tif (tamaņo == 1) {\n\t\t\tnuevo.id = p.id + \"1\";\n\t\t} else {\n\t\t\tchar id = p.id.charAt(0);\n\t\t\tint numeroId = Integer.parseInt(String.valueOf(p.id.charAt(1))) + 1;\n\t\t\tnuevo.id = String.valueOf(id) + String.valueOf(numeroId);\n\t\t}\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "Compuesta createCompuesta();", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public CrearQuedadaVista() {\n }", "public frm_tutor_subida_prueba() {\n }", "public Paciente() {\n initComponents();\n \n \n Variaveis.clickouPesquisa = 0;\n fecharJanela();\n Icon lupa = new ImageIcon(getClass().getResource(\"lupa.gif\"));\n pesquisar1.setIcon(lupa);\n pesquisar.setIcon(lupa);\n atualizar.setVisible(false);\n if(Variaveis.conCad == 1){\n btnCad.setText(\"Cadastrar\");\n idPaciente.disable();\n pesquisar.setVisible(false);\n \n }else{\n btnCad.setText(\"Consultar\");\n pesquisar.setVisible(true);\n nome.disable();\n data.disable();\n cor.disable();\n estadoCivil.disable();\n RG.disable();\n Endereco.disable();\n Cidade.disable();\n Cargo.disable();\n idEmpresa.disable();\n pai.disable();\n mae.disable();\n naturalidade.disable();\n }\n \n }", "public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "void crearCampania(GestionPrecioDTO campania);", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "@RequestMapping(value=\"/formpaciente\", method=RequestMethod.POST)\r\n\tpublic String guardarPaciente(@Valid Paciente paciente, BindingResult resultado, Model model, RedirectAttributes flash, SessionStatus status) {//@valid habilita la validacion en el objeto mapeado al form\t\r\n\t\t\r\n\t\tif(resultado.hasErrors()) {//si el resultado contiene errores retornamos al formulario\r\n\t\t\tmodel.addAttribute(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\t\r\n\t\t\treturn \"formpaciente\";\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//aca guardo en el mensajeFlash el resultado de la pregunta, si es distinto de null guardo \"paciente editado con exito\", sino guardo lo otro\r\n\t\t//System.out.println(\"A paciente= \" + paciente.getDni_paciente());\r\n\t\tString mensajeFlash = (paciente.getDni_paciente() != null)? \"Paciente guardado con éxito!!\" : \"Paciente creado con éxito!!\";\r\n\t\t//System.out.println(\"B paciente= \" + paciente.getDni_paciente() + \" \" + mensajeFlash);\r\n\t\t\r\n\t\tpacienteService.savePaciente(paciente);\t\r\n\t\tstatus.setComplete();\r\n\t\tflash.addFlashAttribute(\"success\", mensajeFlash);\r\n\t\treturn \"redirect:listar\";\r\n\t}", "public CadastroProdutoNew() {\n initComponents();\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public RegistrarPaciente() {\n initComponents();\n }", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "public void crear(Tarea t) {\n t.saveIt();\n }", "public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "@PostMapping(\"/predavanjePredava\")\n public Predavanje_Predavac createPredavanje_Predavac(@Valid @RequestBody Predavanje_Predavac pp) {\n return predavanje_PredavacDAO.save(pp);\n }", "@POST\n\t@Consumes({MediaType.APPLICATION_FORM_URLENCODED, MediaType.APPLICATION_JSON} )\n\t@Produces(MediaType.TEXT_HTML)\n\tpublic void createPunto(Punto punto,\n\t\t\t@Context HttpServletResponse servletResponse) throws IOException {\n\t\tpunto.setId(AutoIncremental.getAutoIncremental());\n\t\tpuntoService.agregarPunto(punto);\n\t\tservletResponse.sendRedirect(\"./rutas/\");\n\t}", "public void postularse() {\n\t\t\n\t\ttry {\t\t\t\n\n\t\t\tPostulante postulante= new Postulante();\n\t\t\tpostulante.setLegajo(Integer.valueOf(this.txtLegajo.getText()));\n\t\t\tpostulante.setFamiliaresACargo(Integer.valueOf(this.txtFamiliaresACargo.getText()));\n\t\t\tpostulante.setNombre(txtNombre.getText());\n\t\t\tpostulante.setApellido(txtApellido.getText());\n\t\t\t//postulante.setFechaDeNacimiento(this.txtFechaDeNaciminto.getText());\n\t\t\tpostulante.setCarrera(this.cmbCarrera.getSelectedItem().toString());\n\t\t\tpostulante.setNacionalidad(this.txtNacionalidad.getText());\n\t\t\tpostulante.setLocalidad(this.txtLocalidad.getText());\n\t\t\tpostulante.setProvincia(this.txtProvincia.getText());\n\t\t\t//postulante.setSituacionSocial(this.txtSituacionSocial.getText());\n\t\t\tpostulante.setDomicilio(this.txtDomicilio.getText());\n\t\t\tpostulante.setCodigoPostal(this.txtCodigoPostal.getText());\n\t\t\tpostulante.setEmail(this.txtEmail.getText());\n\t\t\tpostulante.setTelefono(Long.valueOf(this.txtTelefono.getText()));\n\t\t\t\n\t\t\t\n\t\t\tint ingresos=0, miembrosEconomicamenteActivos = 0;\n\t\t\tfor(Familiar familiar: familiares) {\n\t\t\t\tingresos+=familiar.getIngresos();\n\t\t\t\tif(ingresos > 0) {\n\t\t\t\t\tmiembrosEconomicamenteActivos++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpostulante.setCantidadDeFamiliares(familiares.size());\n\t\t\tdouble promedio = Math.random() * (61) + 30 ; \n\t\t\tpostulante.setPromedio((int) promedio);\n\t\t\t\n\t\t\t\n\t\t\tint pIngresos, pActLaboral = 0, pVivienda = 0, pSalud = 0, pDependencia, pPromedio, pRendimiento, pDesarrollo;\n\t\t\t\n\t\t\t//Puntaje Ingresos\n\t\t\tint canastaBasicaPostulante = familiares.size() * canastaBasicaPromedio; \n\t\t\tif(ingresos <= canastaBasicaPostulante) {\n\t\t\t\tpIngresos = 30;\n\t\t\t}\n\t\t\telse if(ingresos >= (2*canastaBasicaPostulante)) {\n\t\t\t\tpIngresos = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpIngresos = (int) (30 - 0.15 * (familiares.size() - ingresos));\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Condicion Actividad Laboral\n\t\t\t\n\t\t\t\n\t\t\tint puntajeMiembros = 0;\n\t\t\t\n\t\t\tfor (Familiar familiar: familiares) {\n\t\t\t\t\tif(familiar.getIngresos() == 0) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 5;\n\t\t\t\t\t}\n\t\t\t\t\telse if(familiar.getIngresos() < salarioMinimo) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 3;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(miembrosEconomicamenteActivos>0) {\n\t\t\tpActLaboral = puntajeMiembros/miembrosEconomicamenteActivos;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Vivienda - Extrae de cmbVivienda: 0 sin deudas - 1 con deudas - 2 sin propiedad\n\t\t\tint condicionVivienda = this.cmbVivienda.getSelectedIndex();\n\t\t\tswitch (condicionVivienda) {\n\t\t\tcase 0:\n\t\t\t\tpVivienda = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpVivienda = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpVivienda = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Salud - Extrae de cmbSalud: 0 tiene obra - 1 cobertura parcial - 2 no tiene\n\t\t\tint condicionSalud = this.cmbSalud.getSelectedIndex();\n\t\t\tswitch (condicionSalud) {\n\t\t\tcase 0:\n\t\t\t\tpSalud = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpSalud = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpSalud = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Dependencia\n\t\t\tif (familiares.size() - miembrosEconomicamenteActivos == 0) {\n\t\t\t\tpDependencia = 0;\n\t\t\t}\n\t\t\telse if(familiares.size() - miembrosEconomicamenteActivos > 2) {\n\t\t\t\tpDependencia = 5;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpDependencia = 3;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Rendimiento académico\n\t\t\tint materiasAprobadas = (int) (Math.random() * (11));\n\t\t\tif(materiasAprobadas == 0) {\n\t\t\t\tpRendimiento = 4;\n\t\t\t\tpPromedio = 14;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint materiasRegularizadas = (int) (Math.random() * (41 - materiasAprobadas));\n\t\t\t\tpRendimiento = materiasAprobadas/materiasRegularizadas * 10;\n\t\t\t//Puntaje Promedio: Se recuperaria del sysacad\n\t\t\t\tpPromedio = (int) (promedio/10 * 3.5);\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Plan Desarrollo: Evaluado por comisión local\n\t\t\tpDesarrollo = (int) (Math.random() * 5 + 1);\n\n\n\t\t\tpuntaje = pIngresos + pActLaboral + pVivienda + pSalud + pDependencia + pPromedio + pRendimiento + pDesarrollo;\n\t\t\tpostulante.setMatAprobadas(materiasAprobadas);\n\t\t\t\n\t\t\ttry{ \n\t\t\t\tcontroller.postular(postulante,puntaje); \n\t\t\t\tJOptionPane.showMessageDialog(null, \"Se postuló al alumno \"+postulante.getNombre()+\" \"+postulante.getApellido()+\".\", \"Postulación exitosa.\", JOptionPane.OK_OPTION);\n\t\t\t\tlimpiarCampos();\n\t\t\t} \n\t\t\tcatch(Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se pudo postular el alumno\", \"Error\", JOptionPane.OK_OPTION);\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"Datos incorrectos\", \"Error\", JOptionPane.OK_OPTION);\n\t\t}\n\t\t\n\t}", "public void nuevoPaciente(String idPaciente, String DNI, String nombres, String apellidos, String direccion, String ubigeo, String telefono1, String telefono2, String edad)\n {\n try\n {\n PreparedStatement pstm=(PreparedStatement)\n con.getConnection().prepareStatement(\"insert into \" + \" paciente(idPaciente, dui, nombres, apellidos, direccion, ubigeo, telefono1, telefono2, edad)\" + \"values (?,?,?,?,?,?,?,?,?)\");\n \n pstm.setString(1, idPaciente);\n pstm.setString(2, DNI);\n pstm.setString(3, nombres);\n pstm.setString(4, apellidos);\n pstm.setString(5, direccion);\n pstm.setString(6, ubigeo);\n pstm.setString(7, telefono1);\n pstm.setString(8, telefono2);\n pstm.setString(9, edad); \n \n pstm.execute();\n pstm.close();\n }\n catch(SQLException e)\n {\n System.out.print(e);\n }\n }", "@PostMapping(\"/creargrupo\")\n public String create(@ModelAttribute (\"grupo\") Grupo grupo) throws Exception {\n try {\n grupoService.create(grupo);\n return \"redirect:/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/creargrupo\" + e.getMessage());\n return \"redirect:/error\";\n }\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "public static Paquete insertPaquete(String nombre_paquete, \n String descripcion_paquete){\n Paquete miPaquete = new Paquete(nombre_paquete, descripcion_paquete);\n miPaquete.registrarPaquete();\n return miPaquete;\n \n }", "public String crearPostulante() {\n\t\tString r = \"\";\n\t\ttry {\n\t\t\tif (edicion) {\n\t\t\t\tsetPos_password(Utilidades.Encriptar(getPos_password()));// PASS\n\t\t\t\tmanagergest.editarPostulante(pos_id.trim(), pos_nombre.trim(),\n\t\t\t\t\t\tpos_apellido.trim(), pos_direccion.trim(),\n\t\t\t\t\t\tpos_correo.trim(), pos_telefono.trim(),\n\t\t\t\t\t\tpos_celular.trim(), pos_password.trim(), \"A\");\n\t\t\t\tpos_id = \"\";\n\t\t\t\tpos_nombre = \"\";\n\t\t\t\tpos_apellido = \"\";\n\t\t\t\tpos_direccion = \"\";\n\t\t\t\tpos_correo = \"\";\n\t\t\t\tpos_password = \"\";\n\t\t\t\tpos_telefono = \"\";\n\t\t\t\tpos_celular = \"\";\n\t\t\t\tpos_institucion = \"\";\n\t\t\t\tpos_gerencia = \"\";\n\t\t\t\tpos_area = \"\";\n\t\t\t\tMensaje.crearMensajeINFO(\"Modificado - Editado\");\n\t\t\t\tr = \"home?faces-redirect=true\";\n\t\t\t} else {\n\t\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn r;\n\t}", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "private void agregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_agregarActionPerformed\n boolean salida = true;\n Palabra p; \n p = new Palabra(campo1.getText());\n boolean continua = p.estaBien();\n if (continua) {\n agregarDiccionario(p);\n salida = pregunta();\n setVisible(true);\n }else {\n JOptionPane.showMessageDialog(null,\"#- Palabra mal escrita intente de nuevo -#\");\n }\n \n if (!salida) {\n JOptionPane.showMessageDialog(null,\"Gracias por usar el Corrector Ortográfico\");\n dic.guardarDiccionario();\n dispose(); //setVisible(false);\n }\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}", "public void insertar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puedes dejar cuadros en blanco\");//C.P.M Verificamos si las casillas esta vacia si es asi lo notificamos\r\n } else {//C.P.M de lo contrario prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos las variabes al modelo \r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.insertar();//C.P.M Ejecutamos el metodo del modelo \r\n if (Error.equals(\"\")) {//C.P.M Si el modelo no regresa un error es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Se guardo exitosamente la configuracion\");//C.P.M notificamos a el usuario\r\n vista.dispose();//C.P.M y cerramos la vista\r\n } else {//C.P.M de lo contrario \r\n JOptionPane.showMessageDialog(null, Error);//C.P.M notificamos a el usuario el error\r\n }\r\n }\r\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }", "public void crearActividad (Actividad a) {\r\n String query = \"INSERT INTO actividad (identificacion_navegate, numero_matricula, fecha, hora, destino, eliminar) VALUES (\\\"\" \r\n + a.getIdentificacionNavegante()+ \"\\\", \" \r\n + a.getNumeroMatricula() + \", \\\"\" \r\n + a.getFecha() + \"\\\", \\\"\" \r\n + a.getHora() + \"\\\", \\\"\" \r\n + a.getDestino()+ \"\\\" ,false)\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad creada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }", "public void inseriPessoa() throws IOException {\n\t\tString r;\n\t\tvetPessoas[nPessoas] = new Pessoa();\n\t\tSystem.out.println(\"Inseri o nome \");\n\t\tr = EntradaTeclado.leString();\n\t\tvetPessoas[nPessoas].setNome(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Cpf \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setCpf(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Endereco \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEndereco(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Email \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEmail(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Data de Nascimento fomanto (dd/mm/aaaa)\");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setDataNascimento(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Estado Civil \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEstadoCivil(r);\n\t\t\n\t\tthis.nPessoas+=1;\n\t}", "public Pantalla_Registro_Platos() {\n initComponents();\n }", "public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }", "@RequestMapping(value = { \"/new\" }, method = RequestMethod.POST)\n\tpublic String saveEntity(@Valid ENTITY tipoConsumo, BindingResult result, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\n\t\t\tif (result.hasErrors()) {\n\t\t\t\treturn viewBaseLocation + \"/form\";\n\t\t\t}\n\t\n\t\t\tabm.guardar(tipoConsumo);\n\t\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\t\n\t\t\tmodel.addAttribute(\"success\", \"La creaci&oacuten se realiz&oacute correctamente.\");\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\tmodel.addAttribute(\"success\", \"La creaci&oacuten no pudo realizarse.\");\n\t\t}\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn \"redirect:list\";\n\t}", "public void insertarPaciente ( String dni, String nombre, String apellidos, String telefono,String emaail,float peso_actual, float peso_objetivo, float altura, int edad, String sexo, String password,String complexion);", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "public TelaCadasroProjeto() {\n initComponents();\n }", "private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "public static void crearequipo(String nombre,String ciudad,String pais) {\r\n\r\n\t\t\tConnection c = ConnectionDB.conectarMySQL();\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement stmt = c\r\n\t\t\t\t\t\t.prepareStatement(\"INSERT INTO equipo (nombre , ciudad ,pais ) Values('\"+ nombre + \"','\" + ciudad + \"','\" + pais + \"')\");\r\n\t\t\t\tstmt.executeUpdate();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}", "public void nuevaEquiparacion() throws ExceptionConnection {\n FacesContext context = FacesContext.getCurrentInstance();\n try {\n\n context.getExternalContext().redirect(context.getExternalContext().getRequestContextPath() + \"/faces/paginas/Equiparaciones.xhtml\");\n } catch (IOException ex) {\n Logger.getLogger(ListaEquiparacionesController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public FormularioP() {\n initComponents();\n }", "public Trabajador(String nombre, String puesto) {\n\t\t\n\t\tthis.nombre = nombre;\n\t\tthis.puesto = puesto;\n\t}", "@Override\n\tpublic void createCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "public static Posee insertPosee(Date fecha_inicio,ServicioAdicional serv_adicional,\n Producto producto){\n Posee miPosee = new Posee(fecha_inicio,serv_adicional,producto);\n miPosee.registrarPosee();\n \n return miPosee;\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public boolean iniciarParte(){\n Conexion.conectar();\n \n String sql = \"insert into partes (fecha, trabajadores_id) values (?,?)\";\n \n try {\n PreparedStatement smt = Conexion.getConexion().prepareStatement(sql);\n \n smt.setString(1, fecha);\n smt.setBigDecimal(2, idTrabajador);\n \n smt.executeUpdate();\n smt.close();\n Conexion.desconectar();\n return true;\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se puede efectuar la conexión, hable con el administrador del sistema\" + ex.getMessage());\n }\n \n return false;\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public boolean createPalvelupiste(Palvelupiste palvelupiste);", "public TelaCadastroPlano() {\n initComponents();\n campoNome.setDocument(new CaixaAlta());\n setLocationRelativeTo(null);\n preencheTabela();\n campoCodigo.setText(Integer.toString(fachada.proximoCodigo()));\n setModalidades();\n }", "public TambahProduk() {\n initComponents();\n conn = new Koneksi();\n dapat_produk();\n loadTable();\n }", "public PessoaTest() {\n pessoa.setNome(\"Thiago\");\n pessoa.setSobrenome(\"Cury\"); \n pessoa.setIdade(36); \n }", "@Override\r\n public boolean create(Pontuacao pontuacao) {\r\n Connection conexao = mysql.getConnection();\r\n\r\n try {\r\n PreparedStatement stm = conexao.prepareStatement(createSQL);\r\n\r\n stm.setInt(1, pontuacao.getIdcodigo());\r\n stm.setString(2, pontuacao.getData());\r\n stm.setInt(3, pontuacao.getP_rodada());\r\n stm.setInt(4, pontuacao.getS_rodada());\r\n stm.setInt(5, pontuacao.getT_rodada());\r\n stm.setInt(6, pontuacao.getTotal());\r\n\r\n int registros = stm.executeUpdate();\r\n\r\n return registros > 0 ? true : false;\r\n\r\n } catch (final SQLException ex) {\r\n System.out.println(\"Falha de conexão com a base de dados!\");\r\n ex.printStackTrace();\r\n } catch (final Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n try {\r\n conexao.close();\r\n } catch (final Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n return false;\r\n }", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "public ActionForward A_GenerarPlanillaProrroga(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n //Salidas\n final String[] SALIDAS = {\"V_GestionarProrroga\", \"A_Pre_GestionarProrroga\", };\n final int SALIDA_0 = 0;\n final int SALIDA_1 = 1;\n\n int salida = SALIDA_0;\n Session s = HibernateUtil.getCurrentSession();\n Transaction tr = s.beginTransaction();\n try {\n /*aqui empieza*/\n EstRealizaProy student = (EstRealizaProy)s.createQuery(\"from EstRealizaProy where tipoproy='1' and carnetestudiante= :login\").setString(\"login\", (String)request.getSession().getAttribute(\"login\")).uniqueResult();\n Estudiante estudiante =(Estudiante)s.createQuery(\"from Estudiante where carnete = :login\").setString(\"login\", (String)request.getSession().getAttribute(\"login\")).uniqueResult();\n PreInsPasantias consulta = (PreInsPasantias)s.createQuery(\"from PreInsPasantias where estudiante = :login\").setString(\"login\", (String)request.getSession().getAttribute(\"login\")).uniqueResult();\n\n if (estudiante != null) {\n\n String carnet = (String)request.getSession().getAttribute(\"login\");\n Prorroga fF_Prorroga = (Prorroga) s.createQuery(\"from Prorroga where idc= :carnet\").setString(\"carnet\", carnet).uniqueResult();;\n String coordinacion = fF_Prorroga.getCoordinacion();\n String nombre = fF_Prorroga.getNombre();\n String codigoTutorAcademico = fF_Prorroga.getCodigoTutorAcademico();\n String tituloPasantia = fF_Prorroga.getTituloPasantia();\n String areaProyecto = fF_Prorroga.getAreaProyecto();\n String fecha = fF_Prorroga.getFecha();\n String justificacion = fF_Prorroga.getJustificacion();\n \n String path = getServlet().getServletContext().getRealPath(\"/\")+ \"../../img/\";\n\n /**************************************/\n /* PDF */\n /**************************************/\n try {\n Document pdf = new Document(PageSize.LETTER);\n\n response.setContentType(\"application/pdf4\");\n response.setHeader(\"Content-Disposition\", \" inline; filename=PlanillaProrroga.pdf\");\n\n PdfWriter.getInstance(pdf, response.getOutputStream());\n\n pdf.open();\n\n // Logo\n Image logo = Image.getInstance(path +\"logo.png\");\n logo.scaleToFit(197, 81);\n logo.setAlignment(Image.ALIGN_LEFT);\n pdf.add(logo);\n\n // Pie\n Image pie = Image.getInstance(path +\"pie.png\");\n pie.scaleToFit(500, 216);\n pie.setAbsolutePosition(40, 20);\n pdf.add(pie);\n\n Font font = FontFactory.getFont(\"Arial\", BaseFont.IDENTITY_H, 12);\n font.setStyle(Font.BOLD);\n\n Font font2 = FontFactory.getFont(\"Arial\", BaseFont.IDENTITY_H, 13);\n font2.setStyle(Font.UNDERLINE);\n font2.setStyle(Font.BOLD);\n\n Paragraph titulo = new Paragraph(\"PERMISO PARA PASANTIA (Prorroga)\", font2);\n titulo.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(titulo);\n\n Paragraph blank = new Paragraph(\"\\n\");\n\n pdf.add(blank);\n pdf.add(blank);\n\n Phrase est = new Phrase(\"Coordinación de: \"+ coordinacion , font);\n pdf.add(est);\n pdf.add(blank);\n\n est = new Phrase(\"Nombre: \" + nombre +\" Carnet: \"+ carnet, font);\n pdf.add(est);\n pdf.add(blank);\n\n Paragraph pfecha= new Paragraph(\"*Fecha Propuesta: \"+fecha);\n pfecha.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(pfecha);\n\n pfecha= new Paragraph(\"_______________________________________________________________________\", font);\n pfecha.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(pfecha);\n pdf.add(blank);\n\n pfecha= new Paragraph(\"Pasantía\", font2);\n pfecha.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(pfecha);\n pdf.add(blank);\n\n if (tituloPasantia.equals(\"3420\")){\n pfecha= new Paragraph(\"Pasantía Larga (3420) \"+ \"Periodo: \" + areaProyecto, font);\n }\n if (tituloPasantia.equals(\"2420\")){\n pfecha= new Paragraph(\"Pasantía Media (2420) \"+ \"Periodo: \" + areaProyecto, font);\n }\n if (tituloPasantia.equals(\"1420\")){\n pfecha= new Paragraph(\"Pasantía Corta (1420) \"+ \"Periodo: \" + areaProyecto, font);\n }\n\n pfecha.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(pfecha);\n pdf.add(blank);\n\n pdf.add(blank);\n\n est = new Phrase(\"*Tutor Academico: \"+codigoTutorAcademico , font);\n pdf.add(est);\n\n est = new Phrase(\" Firma:_____________________\" , font);\n pdf.add(est);\n pdf.add(blank);\n\n pfecha= new Paragraph(\"Justificacion: \",font);\n pdf.add(pfecha);\n pdf.add(blank);\n pfecha= new Paragraph( justificacion);\n pdf.add(pfecha);\n pdf.add(blank);\n pdf.add(blank);\n\n est = new Phrase(\"Observaciones:______________________________________________________\");\n pdf.add(est);\n pdf.add(blank);\n\n est = new Phrase(\"Firma y Sello Coordinación:______________________________\" , font);\n pdf.add(est);\n pdf.add(blank);\n\n est = new Phrase(\"Firma CCTDS:_____________________________________________\" , font);\n pdf.add(est);\n pdf.add(blank);\n\n pdf.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n /**************************************/\n /* PDF */\n /**************************************/\n\n }else{\n salida = SALIDA_1;\n }\n\n /*aqui termina*/\n tr.commit();\n\n } catch (Exception ex) {\n tr.rollback();\n throw ex;\n } finally {\n try { s.close(); } catch (Exception ex2) {}\n }\n if (salida==0) {\n request.setAttribute(\"msg\",\n getResources(request).getMessage(\"A_Pre_ConsultarPlanillaProrroga.msg0\"));\n }\n if (salida==1) {\n request.setAttribute(\"msg\",\n getResources(request).getMessage(\"A_Pre_ConsultarPlanillaProrroga.msg1\"));\n }\n\n return mapping.findForward(SALIDAS[salida]);\n }", "public ControladorPrueba() {\r\n }", "Negacion createNegacion();", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "public void adicionar() {\n String sql = \"insert into empresa(empresa, cnpj, endereco, telefone, email) values (?,?,?,?,?)\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpNome.getText());\n pst.setString(2, txtEmpCNPJ.getText());\n pst.setString(3, txtEmpEnd.getText());\n pst.setString(4, txtEmpTel.getText());\n pst.setString(5, txtEmpEmail.getText());\n // validacao dos campos obrigatorios\n if ((txtEmpNome.getText().isEmpty()) || (txtEmpCNPJ.getText().isEmpty())) {\n JOptionPane.showMessageDialog(null, \"Preencha todos os campos obrigatórios\");\n } else {\n //a linha abaixo atualiza a tabela usuarios com os dados do formulario\n // a esttrutura abaixo confirma a inserção na tabela\n int adicionado = pst.executeUpdate();\n if (adicionado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa adicionada com sucesso\");\n txtEmpNome.setText(null);\n txtEmpEnd.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }", "public TelaInformacoes(Pessoa codPessoa) {\n initComponents();\n \n //System.out.println(codPessoa.getCodPessoa());\n //aluno = pessoa.localizarPessoa(codPessoa);\n \n jpTela.setBackground(Color.white);\n lbNome.setText(codPessoa.getNome());\n lbSexo.setText(codPessoa.getSexo());\n lbCor.setText(codPessoa.getCorRaca());\n lbNaturalidade.setText(codPessoa.getNaturalidade());\n lbNomePai.setText(codPessoa.getNomePai());\n lbNomeMae.setText(codPessoa.getNomeMae());\n lbEstado.setText(codPessoa.getUf());\n lbOrgaoEmissor.setText(codPessoa.getOrgaoEmissor());\n lbDataNascimento.setText(codPessoa.getDataNacimento());\n lbDataExpedicao.setText(codPessoa.getDataExpedicao());\n lbRG.setText(codPessoa.getRG());\n lbCPF.setText(codPessoa.getCpf());\n \n for(Endereco temp:alunob.listarEnderecoPessoa(codPessoa.getCodPessoa()))\n {\n lbRua.setText(temp.getRua());\n lbBairro.setText(temp.getBairro());\n lbNumCasa.setText(temp.getComplemento());\n lbCidade.setText(temp.getCidade());\n lbCep.setText(temp.getCep());\n \n }\n \n for(Contato temp:alunob.listarContatoPessoa(codPessoa))\n {\n lbCelular.setText(temp.getCelular());\n lbEmail.setText(temp.getEmail());\n lbTelefone.setText(temp.getTelefone());\n \n }\n \n \n }", "public Punto_venta() {\n initComponents();\n }", "public static void crearPartida() throws FileNotFoundException, IOException, ExcepcionesFich {\n\t\tLecturaFicheros.AllLecture(\"C:\\\\Users\\\\Erick\\\\pruebaPOO.txt\");\n\t\tinterfaz = new GUI(0);\t\t\n\t}", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public pInsertar() {\n initComponents();\n }", "@Override\n public ComprobanteContable createComprobante(Aerolinea a, Boleto boleto, Cliente cliente, String tipo, NotaDebito nota) throws CRUDException {\n\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n return comprobante;\n }" ]
[ "0.7330022", "0.7097308", "0.6797164", "0.6781162", "0.66945773", "0.6668395", "0.66238046", "0.6602345", "0.65881103", "0.6586858", "0.6565723", "0.65049756", "0.6473351", "0.6469651", "0.64081967", "0.6404923", "0.6398026", "0.6396543", "0.63350254", "0.6334234", "0.632273", "0.6317686", "0.6295588", "0.629298", "0.6292052", "0.62891084", "0.62831765", "0.6277297", "0.62663597", "0.62595206", "0.62570107", "0.6251483", "0.6240502", "0.6232406", "0.6230328", "0.62297016", "0.622296", "0.6218402", "0.6201164", "0.6191308", "0.6185106", "0.6174904", "0.61714774", "0.616756", "0.61369056", "0.6130351", "0.6123148", "0.61065775", "0.6095249", "0.6089986", "0.60888004", "0.60706824", "0.6065447", "0.6060032", "0.60561544", "0.6043434", "0.6042845", "0.6042186", "0.6038706", "0.60370535", "0.6033742", "0.60101134", "0.6002938", "0.6002444", "0.59721375", "0.5969021", "0.5953624", "0.59492415", "0.5943706", "0.5937634", "0.5932783", "0.5926128", "0.59214", "0.59157825", "0.5915778", "0.5908091", "0.5907738", "0.59014726", "0.58977693", "0.58943003", "0.5892428", "0.5890193", "0.58895767", "0.58808875", "0.587473", "0.5872779", "0.5872244", "0.5867173", "0.58635414", "0.5862505", "0.58599913", "0.5853987", "0.58534425", "0.58482504", "0.58357126", "0.58351207", "0.5833936", "0.5830742", "0.5830676", "0.58304", "0.58299917" ]
0.0
-1
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() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txPesquisar = new javax.swing.JTextField(); btnPesquisar = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tabela = new javax.swing.JTable(); jPanel3 = new javax.swing.JPanel(); btnSelecionar = new javax.swing.JButton(); btnCancelar = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Tela Pesquisa Paciente"); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Pesquisa")); jLabel1.setText("Busca"); btnPesquisar.setText("Pesquisar"); btnPesquisar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPesquisarActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txPesquisar, javax.swing.GroupLayout.PREFERRED_SIZE, 431, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnPesquisar) .addContainerGap(19, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(txPesquisar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPesquisar)) .addContainerGap(40, Short.MAX_VALUE)) ); jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tabela.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null} }, new String [] { "Código", "Nome" } )); jScrollPane1.setViewportView(tabela); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 569, Short.MAX_VALUE) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(19, Short.MAX_VALUE)) ); jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnSelecionar.setText("Selecionar"); btnSelecionar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSelecionarActionPerformed(evt); } }); btnCancelar.setText("Cancelar"); btnCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCancelarActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(btnSelecionar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnCancelar) .addContainerGap(22, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSelecionar) .addComponent(btnCancelar)) .addContainerGap(18, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(layout.createSequentialGroup() .addGap(358, 358, 358) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(19, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "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 Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\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 intrebarea() {\n initComponents();\n }", "public Magasin() {\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 kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\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 frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\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 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 vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\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 }", "public sinavlar2() {\n initComponents();\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 P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public IssueBookForm() {\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 Ventaform() {\n initComponents();\n }", "public ViewPrescriptionForm() {\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.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.69450074", "0.6944328", "0.6937169", "0.6931577", "0.6927632", "0.692602", "0.6925518", "0.6911884", "0.69111824", "0.6894571", "0.68920577", "0.68919677", "0.6891793", "0.6889509", "0.6884149", "0.6883326", "0.68815684", "0.68778104", "0.6876167", "0.6873792", "0.687072", "0.6859156", "0.6856744", "0.6855844", "0.6854915", "0.68542576", "0.68534344", "0.6852383", "0.6852383", "0.6845196", "0.68370795", "0.6836554", "0.6830521", "0.68290323", "0.6827711", "0.68255705", "0.6822908", "0.68180746", "0.68179923", "0.6811043", "0.6809639", "0.68095654", "0.6808346", "0.68082345", "0.68017685", "0.67943394", "0.67933774", "0.6793048", "0.6791145", "0.67897683", "0.6788624", "0.6788244", "0.6781776", "0.67674303", "0.6767318", "0.6764773", "0.6758625", "0.6757251", "0.6753117", "0.6751926", "0.67432684", "0.6740031", "0.67374456", "0.6737373", "0.6734546", "0.6727067", "0.67267615", "0.67210555", "0.6716679", "0.6715794", "0.6715694", "0.6709429", "0.67086613", "0.67038596", "0.6702431", "0.67014176", "0.67002505", "0.66993576", "0.6694831", "0.66915953", "0.6690518" ]
0.0
-1
projectile = new Projectile(game.assetManager.get( "data/projectile.png", Texture.class));
private void initiateProjectile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Texture() {\n }", "@Override\n public void loadTexture() {\n\n }", "public abstract TextureObject getTexture();", "SurfaceTexture mo17006a();", "public interface IGameAsset {\n\t\n\t/**\n\t * abstract method for load all game's resources in startup time.\n\t */\n\tpublic void load();\n\n\t/**\n\t * Dispose the resources in game asset when exiting game\n\t */\n\tpublic void dispose();\n\t\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image file\n\t * @param fileFont font\n\t * @param fileImage font image\n\t * @return\n\t */\n\tpublic BitmapFont loadBitmapFont(String fileFont, String fileImage);\n\t/**\n\t * Load a Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @param isLoop set audio is looping\n\t * @param volumn the Volumn (0f -> 1f)\n\t * @return the Music\n\t */\n\tpublic Music loadMusic(String fileName, boolean isLoop, float volumn);\n\t/**\n\t * Load Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @return\n\t */\n\tpublic Music loadMusic(String fileName);\n\t/**\n\t * Load a Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @param volumn the Volumn (0f -> 1f)\n\t * @return\n\t */\n\tpublic Music loadMusic(String fileName, float volume);\n\t/**\n\t * Load a Sound from filepath\n\t * @param file File to load\n\t * @return the Sound\n\t */\n\tpublic Sound loadSound(String file);\n\n\t/**\n\t * Load a shader from shader-vs and shader-fs from file path\n\t * @param vsProcess\n\t * @param fsProcess\n\t * @return ShaderProgram\n\t */\n\tpublic ShaderProgram loadShader(String vsProcess, String fsProcess);\n\n\t/**\n\t * Load a Model for object 3D from file path\n\t * @param filepath\n\t * @return\n\t */\n\tpublic StillModel loadModel(String filepath);\n\t/**\n\t * Load texture from file path\n\t * @param file File to load\n\t * @return The texture\n\t */\n\tpublic Texture loadTexture(String file, Format format, boolean useMipMap);\n\n//\t/**abstract method for load TextureRegion\n//\t * @param filepath File to load\n//\t * @param format format of texture\n//\t * @param useMipMap\n//\t * @param rec \n//\t * @return\n//\t */\n//\tTextureRegion loadTextureRegion(String filepath, Format format,\n//\t\t\tboolean useMipMap, Rectangle rec);\n\n\t/**abstract method for load TextureRegion\n\t * @param texture texture of TextureRegion\n\t * @param rec rectangle used to specify the region on texture\n\t * @return\n\t */\n\tpublic TextureRegion loadTextureRegion(Texture texture, Rectangle rec);\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image file\n\t * @param fileFont font\n\t * @param fileImage font image\n\t * @param flip Flip the font for axis-y down\n\t * @return\n\t */\n\tpublic BitmapFont loadBitmapFont(String fileFont, String fileImage, boolean flip);\n\n\tpublic TextureRegion loadTextureRegion(Texture t);\n\n\tTextureRegion loadTextureRegion(String textureFile, Rectangle rec);\n\n\tTextureRegion loadTextureRegion(String textureFile);\n\n\tTexture loadTexture(String filepath);\n\n\tBitmapFont loadBitmapFont(String fileFont);\n\n\tShaderProgram loadShader(String vsFilePath);\n}", "SurfaceTexture mo17015a();", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "private Assets (){}", "abstract public void loadSprite();", "public GameObject(String name, int x, int y) {\n this.image = GameObject.processing.loadImage(\"images\" + File.separator + name + \".png\");\n this.xPosition = x;\n this.yPosition = y;\n this.active = true;\n }", "public Mario(){\n setImage(\"06.png\");\n \n }", "private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Texture(String path)\n {\n texture = load(path);\n }", "public Missile(SimpleSlickGame _game, int x, int y, int destX, int destY, Entity owner) \r\n\t{\r\n\t\t//the super constructor is called to give the x and y coordinates and call the game to use its variable and \r\n\t\tsuper(_game, x,y);\r\n\t\tsetHitboxRadius(20); \r\n\t\tthis.startX = x;\r\n\t\tthis.startY = y;\r\n\t\tthis.owner = owner;\r\n\t\tthis.destX = destX;\r\n\t\tthis.destY = destY;\r\n\t\tsetLocation(startX, startY);\r\n\t\trecalculateVector(destX, destY);\r\n\t\t\r\n\t\t//Initializes and adds a particle system to the entity\r\n\t\ttry \r\n\t\t{\r\n\n\t\t\tImage particleImg = new Image (\"Particles/particle.png\");\r\n\n\t\t\tparticles = new ParticleSystem(particleImg,150);\r\n\t\t\t\r\n\n\t\t//\tFile xmlFile = new File (\"Particles/fire effect.xml\");\r\n\t\t//\temitter = ParticleIO.loadEmitter(xmlFile);\r\n\t\t\temitter = ParticleIO.loadEmitter(\"Particles/fire effect.xml\");\r\n\n\t\t\temitter.setPosition(this.getPositionX(), this.getPositionY(),false);\r\n\t\t\t\r\n\t\t\tparticles.addEmitter(emitter);\r\n\t\t\tparticles.setBlendingMode(ParticleSystem.BLEND_ADDITIVE);\r\n\t\t\t\r\n\t\t} catch (SlickException e1) {\r\n\t\t\tSystem.out.println(\"cannot find xml file / particle image\");\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Cannot assign xml file to emitter. File might be missing.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//Adds sound files to the entity\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSound sound = new Sound(\"Sounds/lazer.wav\");\r\n\t\t\tfloat pitch = ((float)game.r.nextInt(200) + 800)/1000;\r\n\t\t\tsound.play(pitch,1f);\r\n\t\t} catch (SlickException e){\r\n\t\t\tSystem.out.println(\"Could not find sound file\");\r\n\t\t}\r\n\t\t\r\n\t\t//Adds sprites to the entity\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmissileImg = new Image(\"Graphics/Fireball.png\");\r\n\t\t\tthis.setSprite(missileImg);\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"ERROR: Could not find sprite\");\r\n\t\t}\r\n\t}", "public Image getBulletImg(){ \n return SpriteSheet.playerProjectileSprites[this.frameNumber]; \n }", "@Override\n\tpublic void create() {\n\t\tthis.batch = new SpriteBatch();\n\t\t\n//\t\tgame.batch.begin();\n// player.draw(game.batch);\n// \n// game.batch.end();\n\t\t\n\t\tmanager = new AssetManager();\n\t\tmanager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));\n\t\tmanager.load(\"data/level1.tmx\", TiledMap.class);\n\t\tmanager.load(\"data/background.png\", Texture.class);\n//\t\tmanager.load(\"level1.tsx\", TiledMapTileSet.class);\n\t\tmanager.finishLoading();\n\t\tscreen = new GameScreen(this);\n\t\tsetScreen(screen);\n\t\t\n\t}", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public Sprite() {}", "public MyAnimation getSprite();", "public EnemyGunBullet1() {\n super(DAMAGE, SPEED);\n setEnemyBullet(true);\n setShootSound(\"enemyShot.wav\");\n try {\n image = ImageIO.read(new File(\"res/images/tanks/bullets/enemyBullet1.png\"));\n }\n catch (IOException e) { }\n }", "protected Image drawAsset(String asset, int x, int y) {\n // Generate texture\n Texture texture = null;\n\n // Make sure the asset is loaded\n if (!assets.contains(asset)) {\n logger.error(\"Lazy loading asset: \" + asset);\n assets.load(asset, Texture.class, GamePart.MENU);\n }\n if (assets.isLoaded(asset)) {\n texture = assets.get(asset, Texture.class);\n } else {\n assets.finishLoadingAsset(asset);\n texture = assets.get(asset, Texture.class);\n }\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n\n // Generate image\n Image image = new Image(texture);\n image.setPosition(x, y);\n\n // Add to screen\n stage.addActor(image);\n\n return image;\n }", "public DumbEnemy(){\n setImage(new GreenfootImage(SPRITE_W,SPRITE_H));\n }", "public void create() {\r\n\t\t\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tGdx.input.setInputProcessor(new MyInputProcessor());\r\n\t\t\r\n\t\t\r\n\t\ttextures = Tex.getTex();\r\n\t\t// load images\r\n\t\ttextures.loadTexture(\"res/images/guyDown.png\", \"guyDown\");\r\n\t\ttextures.loadTexture(\"res/images/guyUp.png\", \"guyUp\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Down.png\", \"guyDown2\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Up.png\", \"guyUp2\");\r\n\t\ttextures.loadTexture(\"res/images/enemyDown.png\", \"enemyDown\");\r\n\t\ttextures.loadTexture(\"res/images/enemyUp.png\", \"enemyUp\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/skyline.png\", \"skyline\");\r\n\t\ttextures.loadTexture(\"res/images/skyline2.jpg\", \"skyline2\");\r\n\t\ttextures.loadTexture(\"res/images/skyline3.png\", \"skyline3\");\t\t\r\n\t\ttextures.loadTexture(\"res/images/circuit board.jpg\", \"fundo2\");\r\n\t\ttextures.loadTexture(\"res/images/grav3.jpg\", \"menu\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/singleplayer.png\", \"single\");\r\n\t\ttextures.loadTexture(\"res/images/multiplayer.png\", \"multi\");\r\n\t\ttextures.loadTexture(\"res/images/exit.png\", \"exit\");\r\n\t\ttextures.loadTexture(\"res/images/level1B.png\", \"B1\");\r\n\t\ttextures.loadTexture(\"res/images/level2B.png\", \"B2\");\r\n\t\ttextures.loadTexture(\"res/images/level3B.png\", \"B3\");\r\n\t\ttextures.loadTexture(\"res/images/mainMenuB.png\", \"mainB\");\r\n\t\ttextures.loadTexture(\"res/images/win1.png\", \"win1\");\r\n\t\ttextures.loadTexture(\"res/images/win2.png\", \"win2\");\r\n\t\ttextures.loadTexture(\"res/images/tryagain.png\", \"retry\");\r\n\t\ttextures.loadTexture(\"res/images/easy.png\", \"easy\");\r\n\t\ttextures.loadTexture(\"res/images/medium.png\", \"medium\");\r\n\t\ttextures.loadTexture(\"res/images/hard.png\", \"hard\");\r\n\t\ttextures.loadTexture(\"res/images/difficulty.png\", \"difficulty\");\r\n\t\ttextures.loadTexture(\"res/images/thunder2.png\", \"thunder\");\r\n\t\r\n\t\ttextures.loadTexture(\"res/images/levelcleared.png\", \"cleared\");\r\n\t\ttextures.loadTexture(\"res/images/you lost.png\", \"lost\");\r\n\t\ttextures.loadTexture(\"res/images/playerpress.png\", \"playerp\");\r\n\t\ttextures.loadTexture(\"res/images/player1press.png\", \"player1p\");\r\n\t\ttextures.loadTexture(\"res/images/player2press.png\", \"player2p\");\r\n\t\ttextures.loadTexture(\"res/images/selectthelevel.png\", \"select\");\r\n\t\t\r\n\t\t\r\n\t\tsb = new SpriteBatch();\r\n\t\tcam = new OrthographicCamera();\r\n\t\tcam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\thudCam = new OrthographicCamera();\r\n\t\thudCam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\tgsm = new GameStateManager(this);\r\n\t\t\t\t\r\n\t}", "public void cargarGameScreenTiled() {\n\n musicaTiled = get(rutaMusica, Music.class);\n musicaTiled.setLooping(true);\n platMusicInGame();\n\n TextureAtlas atlas = get(atlasTiledStuff, TextureAtlas.class);\n tiledMap = get(rutaTiled, TiledMap.class);\n\n SkeletonJson json = new SkeletonJson(atlas);\n json.setScale(.01f);\n ponySkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/personajes.json\"));\n // ponySkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/characters.json\"));\n json.setScale(.004f);\n skeletonBombData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bombs.json\"));\n bombAnim = skeletonBombData.findAnimation(\"b1\");\n bombExAnim = skeletonBombData.findAnimation(\"b2x\");\n\n json.setScale(.005f);\n skeletonMonedaData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/coin.json\"));\n monedaAnim = skeletonMonedaData.findAnimation(\"normal\");\n monedaTomadaAnim = skeletonMonedaData.findAnimation(\"plus1\");\n\n json.setScale(.009f);\n chileSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/chile.json\"));\n chileAnim = chileSkeletonData.findAnimation(\"normal\");\n chileTomadaAnim = chileSkeletonData.findAnimation(\"toospicy\");\n\n json.setScale(.009f);\n globoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/ballons.json\"));\n globoAnim = globoSkeletonData.findAnimation(\"normal\");\n globoTomadaAnim = globoSkeletonData.findAnimation(\"plus5\");\n\n json.setScale(.009f);\n dulceSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/chocolate.json\"));\n dulceAnim = dulceSkeletonData.findAnimation(\"normal\");\n dulceTomadaAnim = dulceSkeletonData.findAnimation(\"speedup\");\n\n medallaPrimerLugar = atlas.findRegion(\"imagenes/podio/1stplacetrophy\");\n medallaSegundoLugar = atlas.findRegion(\"imagenes/podio/2ndplace\");\n medallaTercerLugar = atlas.findRegion(\"imagenes/podio/3rdplace\");\n congratulations = atlas.findRegion(\"imagenes/podio/congratulations\");\n youLose = atlas.findRegion(\"imagenes/podio/youlose\");\n timeUp = atlas.findRegion(\"imagenes/podio/timeup\");\n\n // json.setScale(.003f);\n // SkeletonData fuegoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bombs.json\"));\n // fuegoAnim = fuegoSkeletonData.findAnimation(\"firedancing\");\n // fuegoSkeleton = new Skeleton(fuegoSkeletonData);\n\n json.setScale(.01f);\n SkeletonData fondoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/background.json\"));\n fondoAnim = fondoSkeletonData.findAnimation(\"animation\");\n fondoSkeleton = new Skeleton(fondoSkeletonData);\n\n //\n // json.setScale(.011f);\n // SkeletonData fogataSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/fogata.json\"));\n // fogataAnim = fogataSkeletonData.findAnimation(\"fogata\");\n // fogataSkeleton = new Skeleton(fogataSkeletonData);\n //\n // json.setScale(.005f);\n // SkeletonData plumaSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/feather.json\"));\n // plumaAnim = plumaSkeletonData.findAnimation(\"pluma\");\n // plumaSkeleton = new Skeleton(plumaSkeletonData);\n //\n // json.setScale(.011f);\n // SkeletonData bloodStoneSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bloodstone.json\"));\n // bloodStoneAnim = bloodStoneSkeletonData.findAnimation(\"animation\");\n // bloodStoneSkeleton = new Skeleton(bloodStoneSkeletonData);\n //\n // SkeletonData bloodStone2SkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bloodstones.json\"));\n // bloodStone2Anim = bloodStone2SkeletonData.findAnimation(\"glow1\");\n // bloodStone2Skeleton = new Skeleton(bloodStone2SkeletonData);\n\n fondo = atlas.findRegion(\"imagenes/fondo\");\n\n padIzq = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pad_izq\")));\n padDer = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pad_derecha\")));\n btBombaDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/bombasalpresionar\")));\n btBombaUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/bombasinpresionar\")));\n\n btJumpDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/saltoalpresionar\")));\n btJumpUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/saltosinpresionar\")));\n // btTroncoUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/botontroncosinpresionar\")));\n // btTroncoDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/botontroncopresionado\")));\n\n btTroncoUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/btPlatanoTachuelas\")));\n btTroncoDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/btPlatanoTachuelasPresionado\")));\n\n btPauseUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pause\")));\n\n indicador = atlas.findRegion(\"Interfaz/indicador\");\n indicadorCloud = atlas.findRegion(\"Interfaz/icono000\");\n indicadorCientifico = atlas.findRegion(\"Interfaz/icono001\");\n indicadorMinion = atlas.findRegion(\"Interfaz/icono002\");\n indicadorNatylol = atlas.findRegion(\"Interfaz/icono003\");\n indicadorLighthingAlba = atlas.findRegion(\"Interfaz/icono004\");\n indicadorIgnis = atlas.findRegion(\"Interfaz/icono005\");\n\n perfilRegionCloud = atlas.findRegion(\"perfiles/cloud\");\n perfilRegionNatylol = atlas.findRegion(\"perfiles/natylol\");\n perfilRegionIgnis = atlas.findRegion(\"perfiles/ignis\");\n perfilRegionCientifico = atlas.findRegion(\"perfiles/scientist\");\n perfilRegionLAlba = atlas.findRegion(\"perfiles/lightingalba\");\n perfilRegionEnemigo = atlas.findRegion(\"perfiles/enemy\");\n\n lugaresMarco = atlas.findRegion(\"Interfaz/lugares\");\n\n moneda = atlas.findRegion(\"moneda\");\n\n tronco = atlas.findRegion(\"tachuelas\");\n tachuelas = atlas.findRegion(\"tachuelas\");\n platano = atlas.findRegion(\"platano\");\n\n pickCoin = get(\"data/musica/coin.mp3\");\n jump = get(\"data/musica/salto.mp3\");\n }", "public StoneSummon() {\n// ArrayList<BufferedImage> images = SprssssssaasssssaddddddddwiteUtils.loadImages(\"\"\n createStones();\n\n }", "public Texture(String path) {\n load(path);\n }", "public void loadTextures(){\n switch (playerCarColor){\n case \"Black\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlack.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlackFaded.png\"));\n break;\n case \"White\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhite.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhiteFaded.png\"));\n break;\n }\n\n enemyPistolTexture = new Texture(Gdx.files.internal(\"images/enemyPistol.png\"));\n enemyAWPTexture = new Texture(Gdx.files.internal(\"images/enemyAWP.png\"));\n enemyStalkerTexture = new Texture(Gdx.files.internal(\"images/enemyStalker.png\"));\n bulletTexture = new Texture(Gdx.files.internal(\"images/bullet.png\"));\n enemyBossTexture = new Texture(Gdx.files.internal(\"images/enemyBoss.png\"));\n }", "public void Boom()\r\n {\r\n image1 = new GreenfootImage(\"Explosion1.png\");\r\n image2 = new GreenfootImage(\"Explosion2.png\");\r\n image3 = new GreenfootImage(\"Explosion3.png\");\r\n image4 = new GreenfootImage(\"Explosion4.png\");\r\n image5 = new GreenfootImage(\"Explosion5.png\");\r\n image6 = new GreenfootImage(\"Explosion6.png\");\r\n setImage(image1);\r\n\r\n }", "GameObject(int x, int y){\n loadSprite();\n this.x = x;\n this.y = y;\n }", "public void makeProjectile(float time){\n Geometry proj_geo = new Geometry(\"bullet projectile\", sphere);\n proj_geo.setMaterial(proj_mat);\n \n //Attach geometry to rootNode\n rootNode.attachChild(proj_geo);\n //Configure position and direction vectors\n proj_geo.setLocalTranslation(cam.getLocation());\n proj_geo.lookAt(cam.getDirection(), cam.getUp());\n \n proj_ctrl = new ProjectileControl();\n //proj_phy = new ProjectilePhysicsControl();\n proj_geo.addControl(proj_ctrl);\n \n proj_ctrl.setLinearVelocity(cam.getDirection().mult(40));\n proj_ctrl.setLifetime(1f);\n \n //proj_geo.addControl(proj_phy);\n bulletAppState.getPhysicsSpace().addCollisionListener(this);\n }", "public Mesita()\r\n {\r\n super(\"mesa.png\"); \r\n }", "public abstract void createSprites() throws FileNotFoundException;", "@Override\n public void create() {\n\n batch = new SpriteBatch();\n manager = new AssetManager();\n\n manager.load(\"audio/main_theme.mp3\", Music.class);\n // manager.load(\"String sonido\", Sound.class);\n manager.load(\"sprites/dragon.pack\", TextureAtlas.class);\n manager.load(\"sprites/vanyr.pack\", TextureAtlas.class);\n manager.finishLoading();\n\n setScreen(new PlayScreen(this));\n\n }", "public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }", "public MyTextureMoon(){\n textureMoon = new Texture(Gdx.files.internal(\"moon2.png\"));\n lastTimeMoon = TimeUtils.nanoTime();\n moonXposition = Gdx.graphics.getWidth() / 2 - textureMoon.getWidth() / 2;\n isXAtBorder = false;\n lastTimeXAtBorder = 0;\n }", "private TextureLoader() {\n }", "@Override\n protected void initGame() {\n\n// entityBuilder()\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(getAppWidth() - 64, getAppHeight() - 64)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(0, getAppHeight() / 2 - 32)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .with(new ProjectileComponent(new Point2D(1, 0), 150))\n// .buildAndAttach();\n }", "public void preLoadContent(AssetManager manager) {\n\t\tif (worldAssetState != AssetState.EMPTY) {\n\t\t\treturn;\n\t\t}\n\n\t\tworldAssetState = AssetState.LOADING;\n\n\t\tmanager.load(KOI_TEXTURE, Texture.class);\n\t\tassets.add(KOI_TEXTURE);\n\n\t\tmanager.load(ENEMY_TEXTURE, Texture.class);\n\t\tassets.add(ENEMY_TEXTURE);\n\n\t\tmanager.load(LILY_TEXTURE, Texture.class);\n\t\tassets.add(LILY_TEXTURE);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_N, Texture.class);\n\t\tassets.add(LILY_TEXTURE_N);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_S, Texture.class);\n\t\tassets.add(LILY_TEXTURE_S);\n\n\t\tmanager.load(LANTERN_TEXTURE, Texture.class);\n\t\tassets.add(LANTERN_TEXTURE);\n\n\t\tmanager.load(LIGHTING_TEXTURE, Texture.class);\n\t\tassets.add(LIGHTING_TEXTURE);\n\n\t\tmanager.load(SHADOW_TEXTURE, Texture.class);\n\t\tassets.add(SHADOW_TEXTURE);\n\n\t\tmanager.load(GOAL_TEXTURE, Texture.class);\n\t\tassets.add(GOAL_TEXTURE);\n\n\t\tmanager.load(EARTH_FILE,Texture.class);\n\t\tassets.add(EARTH_FILE);\n\n\t\tmanager.load(EARTH_FILE_D,Texture.class);\n\t\tassets.add(EARTH_FILE_D);\n\t\tmanager.load(EARTH_FILE_N,Texture.class);\n\t\tassets.add(EARTH_FILE_N);\n\t\tmanager.load(EARTH_FILE_S,Texture.class);\n\t\tassets.add(EARTH_FILE_S);\n\t\tmanager.load(SHORE_FILE,Texture.class);\n\t\tassets.add(SHORE_FILE);\n\n\t\tmanager.load(ROCK_FILE_D,Texture.class);\n\t\tassets.add(ROCK_FILE_D);\n\t\tmanager.load(ROCK_FILE_N,Texture.class);\n\t\tassets.add(ROCK_FILE_N);\n\t\tmanager.load(ROCK_FILE_S,Texture.class);\n\t\tassets.add(ROCK_FILE_S);\n\n\t\tmanager.load(WHIRLPOOL_TEXTURE, Texture.class);\n\t\tassets.add(WHIRLPOOL_TEXTURE);\n\t\t\n\t\tmanager.load(ENERGYBAR_TEXTURE, Texture.class);\n\t\tassets.add(ENERGYBAR_TEXTURE);\n\n\t\tmanager.load(UI_FLOWER, Texture.class);\n\t\tassets.add(UI_FLOWER);\n\n\t\tmanager.load(OVERLAY, Texture.class);\n\t\tassets.add(OVERLAY);\n\n\t\tmanager.load(BACKGROUND_FILE_N, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_N);\n\n\t\tmanager.load(BACKGROUND_FILE_D, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_D);\n\n\t\tmanager.load(BACKGROUND_FILE_S, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_S);\n\t\t\n\t\t\n\n\t\tmanager.load(OVERLAY_FILE, Texture.class);\n\t\tassets.add(OVERLAY_FILE);\n\n\t\tmanager.load(KOI_ARROW, Texture.class);\n\t\tassets.add(KOI_ARROW);\n\t\tmanager.load(WHIRL_ARROW, Texture.class);\n\t\tassets.add(WHIRL_ARROW);\n\t\t\n\t\tmanager.load(TUTORIAL_TEXTURE1, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE1);\n\t\tmanager.load(TUTORIAL_TEXTURE2, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE2);\n\t\tmanager.load(TUTORIAL_TEXTURE3, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE3);\n\t\tmanager.load(TUTORIAL_TEXTURE4, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE4);\n\t\tmanager.load(TUTORIAL_TEXTURE5, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE5);\n\t\tmanager.load(TUTORIAL_TEXTURE6, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE6);\n\t\t\n\t\tmanager.load(HELP_TEXTURE, Texture.class);\n\t\tassets.add(HELP_TEXTURE);\n\t\t\n\n\t\treferenceC.a = 0f;\n\n\t\t// Load the font\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size2Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize2Params.fontFileName = FONT_FILE;\n\t\tsize2Params.fontParameters.size = FONT_SIZE;\n\t\tmanager.load(FONT_FILE, BitmapFont.class, size2Params);\n\t\tassets.add(FONT_FILE);\n\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size3Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize3Params.fontFileName = FONT_FILE2;\n\t\tsize3Params.fontParameters.size = FONT_SIZE2;\n\t\tmanager.load(FONT_FILE2, BitmapFont.class, size3Params);\n\t\tassets.add(FONT_FILE2);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic String getTextureFile() \n\t{\n\t\treturn \"/reactioncraft/rcs/Blocks.png\";\n\t}", "void createSurface(SurfaceTexture surfaceTexture);", "GameObject getObject();", "public static void makeGeometry(AssetManager am) {\n geom = am.loadModel(\"Models/container/container.j3o\");\n mat = new Material(am, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Texture Tex = am.loadTexture(\n \"Textures/Container/Template/texture.png\");\n\n\n Colors.add(am.loadTexture(\n \"Textures/Container/blue.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/green.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/purple.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/red.png\"));\n companyTextures.put(\"UPS\", am.loadTexture(\n \"Textures/Container/UPS.png\"));\n companyTextures.put(\"CocaCola\", am.loadTexture(\n \"Textures/Container/cocacola.png\"));\n companyTextures.put(\"McDonalds\", am.loadTexture(\n \"Textures/Container/mac.png\"));\n\n companyTextures.put(\"Grolsch\", am.loadTexture(\n \"Textures/Container/grolsch.png\"));\n companyTextures.put(\"Heineken\", am.loadTexture(\n \"Textures/Container/heineken.png\"));\n companyTextures.put(\"Nestle\", am.loadTexture(\n \"Textures/Container/nestle.png\"));\n companyTextures.put(\"Shell\", am.loadTexture(\n \"Textures/Container/shell.png\"));\n companyTextures.put(\"DeutschePost\", am.loadTexture(\n \"Textures/Container/post.png\"));\n companyTextures.put(\"PostBank\", am.loadTexture(\n \"Textures/Container/postbank.png\"));\n companyTextures.put(\"Airfrance\", am.loadTexture(\n \"Textures/Container/airfrance.png\"));\n\n companyTextures.put(\"BallastNedam\", am.loadTexture(\n \"Textures/Container/ballastnedam.png\"));\n companyTextures.put(\"Manpower\", am.loadTexture(\n \"Textures/Container/manpower.png\"));\n\n companyTextures.put(\"Lufthansa\", am.loadTexture(\n \"Textures/Container/lufthansa.png\"));\n companyTextures.put(\"Bayer\", am.loadTexture(\n \"Textures/Container/bayer.png\"));\n\n\n companyTextures.put(\"Danone\", am.loadTexture(\n \"Textures/Container/danone.png\"));\n companyTextures.put(\"Ericsson\", am.loadTexture(\n \"Textures/Container/ericsson.png\"));\n\n companyTextures.put(\"Danone\", am.loadTexture(\n \"Textures/Container/danone.png\"));\n companyTextures.put(\"Ericsson\", am.loadTexture(\n \"Textures/Container/ericsson.png\"));\n\n\n companyTextures.put(\"OCE\", am.loadTexture(\n \"Textures/Container/oce.png\"));\n companyTextures.put(\"BeterBed\", am.loadTexture(\n \"Textures/Container/beterbed.png\"));\n\n companyTextures.put(\"TenCate\", am.loadTexture(\n \"Textures/Container/tencate.png\"));\n\n companyTextures.put(\"FederalExpress\", am.loadTexture(\n \"Textures/Container/fedex.png\"));\n companyTextures.put(\"IBM\", am.loadTexture(\n \"Textures/Container/IBM.png\"));\n companyTextures.put(\"KraftFoods\", am.loadTexture(\n \"Textures/Container/kraft.png\"));\n companyTextures.put(\"Hanjin\", am.loadTexture(\n \"Textures/Container/hanjin.png\"));\n companyTextures.put(\"CargoTrans\", am.loadTexture(\n \"Textures/Container/cargotrans.png\"));\n\n\n companyTextures.put(\"Metro\", am.loadTexture(\n \"Textures/Container/metro.png\"));\n companyTextures.put(\"Carrefour\", am.loadTexture(\n \"Textures/Container/carefour.png\"));\n companyTextures.put(\"Amstel\", am.loadTexture(\n \"Textures/Container/amstel.png\"));\n companyTextures.put(\"TransNL\", am.loadTexture(\n \"Textures/Container/transnl.png\"));\n companyTextures.put(\"Gilette\", am.loadTexture(\n \"Textures/Container/gillete.png\"));\n\n\n companyTextures.put(\"WalMart\", am.loadTexture(\n \"Textures/Container/walmart.png\"));\n companyTextures.put(\"Delhaize\", am.loadTexture(\n \"Textures/Container/delhaize.png\"));\n companyTextures.put(\"BASF\", am.loadTexture(\n \"Textures/Container/basf.png\"));\n companyTextures.put(\"SeaTrans\", am.loadTexture(\n \"Textures/Container/seatrans.png\"));\n companyTextures.put(\"DowChemical\", am.loadTexture(\n \"Textures/Container/dow.png\"));\n\n companyTextures.put(\"AXA\", am.loadTexture(\n \"Textures/Container/axe.png\"));\n companyTextures.put(\"LLyod\", am.loadTexture(\n \"Textures/Container/lloyd.png\"));\n \n companyTextures.put(\"GJMW\", am.loadTexture(\n \"Textures/Container/GJMW.png\"));\n companyTextures.put(\"WoodNorge\", am.loadTexture(\n \"Textures/Container/woodnorge.png\"));\n companyTextures.put(\"FlowersNL\", am.loadTexture(\n \"Textures/Container/flowersnl.png\"));\n \n companyTextures.put(\"FruitINT\", am.loadTexture(\n \"Textures/Container/fruitint.png\"));\n companyTextures.put(\"IntTrans\", am.loadTexture(\n \"Textures/Container/inttrans.png\"));\n companyTextures.put(\"MaasHolland\", am.loadTexture(\n \"Textures/Container/maasholland.png\"));\n\n mat.setTexture(\"ColorMap\", Tex);\n r = new Random();\n\n mat.setColor(\"Color\", ColorRGBA.White);\n\n geom.setMaterial(mat);\n }", "public Hero(int x, int y) {\r\n this.centerX = x;\r\n this.centerY = y;\r\n this.currentHealth = 100;\r\n rect1 = new FloatRect (100,630,80,110);\r\n imgTexture = new Texture ();\r\n try {\r\n imgTexture.loadFromFile (Paths.get (ImageFile));\r\n } catch (IOException ex) {\r\n ex.printStackTrace ();\r\n }\r\n imgTexture.setSmooth (true);\r\n\r\n img = new Sprite (imgTexture);\r\n img.setOrigin (Vector2f.div (new Vector2f (imgTexture.getSize ()), 2));\r\n img.setPosition (x, y);\r\n // Store references to object and key methods\r\n obj = img;\r\n setPosition = img::setPosition;\r\n\r\n background = new Sprite (bg.loadTextures ());\r\n background.setOrigin(Vector2f.div(new Vector2f(bg.getTexture1 ()), 1000000));\r\n background.setPosition (0,0);\r\n }", "public CopyOfPlayer(){ //Loads and scales the images\n for (int i = 0; i < robotImages.length; i++){\n for (int j = 0; j < black.length; j++){\n robotImages[i][j].scale(300, 300);\n }\n }\n costume = PrefLoader.getCostume(); //Sets costume according to file\n setImage(robotImages[costume][2]);\n }", "protected ResourceLocation getEntityTexture(EntityZombie p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }", "public GameObject(String tag, Bitmap res, int x, int y, int columns, int rows)\n {\n super(GamePanel.sContext);\n //spritesheet = res;\n this.tag = tag;\n setX(x);\n setY(y);\n this.WIDTH = res.getWidth()/rows;\n this.HEIGHT = res.getHeight()/columns;\n bounds = new Rect(x, y, WIDTH, HEIGHT);\n int numframes = columns*rows;\n int sheet_index = 0;\n\n Bitmap[] image = new Bitmap[numframes];\n\n for (int col = 0; col < columns; col++)\n {\n for(int r = 0; r < rows; r++)\n {\n image[sheet_index] = Bitmap.createBitmap(res, r*WIDTH, col*HEIGHT, WIDTH, HEIGHT);\n\n System.out.println(image[sheet_index] + \",\" + image.length);\n sheet_index++;\n }\n }\n\n if(animate) {\n animation.setFrames(image);\n animation.setDelay(10);\n }\n startTime = System.nanoTime();\n }", "@Override\r\n\tpublic void create() {\n\t\tbatch = new SpriteBatch();\r\n\t\tcamera = new OrthographicCamera();\r\n\t\tassets = new AssetManager();\r\n\t\t\r\n\t\tcamera.setToOrtho(false,WIDTH,HEIGHT);\r\n\t\t\r\n\t\tTexture.setAssetManager(assets);\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tsetScreen(new SplashScreen(this));\r\n\t}", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }", "Texture getIcon();", "WorldImage getImage();", "@Override\n\tpublic String getTextureFile() {\n\t\treturn \"/reactioncraft/rcs/Blocks.png\";\n\t}", "private void chargerTextures() {\n String messageErreur = \"\";\n try {\n JETON_2 = new Texture(Gdx.files.internal(\"textures/jeton_2.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_2.png\"+\"\\n\";\n }\n try {\n JETON_3 = new Texture(Gdx.files.internal(\"textures/jeton_3.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_3.png\"+\"\\n\";\n }\n try {\n JETON_4 = new Texture(Gdx.files.internal(\"textures/jeton_4.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_4.png\"+\"\\n\";\n }\n try {\n JETON_5 = new Texture(Gdx.files.internal(\"textures/jeton_5.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_5.png\"+\"\\n\";\n }\n try {\n JETON_6 = new Texture(Gdx.files.internal(\"textures/jeton_6.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_6.png\"+\"\\n\";\n }\n try {\n JETON_8 = new Texture(Gdx.files.internal(\"textures/jeton_8.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_8.png\"+\"\\n\";\n }\n try {\n JETON_9 = new Texture(Gdx.files.internal(\"textures/jeton_9.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_9.png\"+\"\\n\";\n }\n try {\n JETON_10 = new Texture(Gdx.files.internal(\"textures/jeton_10.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_10.png\"+\"\\n\";\n }\n try {\n JETON_11 = new Texture(Gdx.files.internal(\"textures/jeton_11.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_11.png\"+\"\\n\";\n }\n try {\n JETON_12 = new Texture(Gdx.files.internal(\"textures/jeton_12.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_12.png\"+\"\\n\";\n }\n try {\n FORET = new Texture(Gdx.files.internal(\"textures/texture_foret.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_foret.png\"+\"\\n\";\n }\n try {\n PRE = new Texture(Gdx.files.internal(\"textures/texture_pre.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_pre.png\"+\"\\n\";\n }\n try {\n CHAMP = new Texture(Gdx.files.internal(\"textures/texture_champ.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_champ.png\"+\"\\n\";\n }\n try {\n COLLINE = new Texture(Gdx.files.internal(\"textures/texture_colline.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_colline.png\"+\"\\n\";\n }\n try {\n MONTAGNE = new Texture(Gdx.files.internal(\"textures/texture_montagne.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_montagne.png\"+\"\\n\";\n }\n try {\n DESERT = new Texture(Gdx.files.internal(\"textures/texture_desert.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_desert.png\"+\"\\n\";\n }\n try {\n MER = new Texture(Gdx.files.internal(\"textures/texture_mer.jpg\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_mer.jpg\"+\"\\n\";\n }\n try {\n PORT = new Texture(Gdx.files.internal(\"textures/texture_port2.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_port2.png\"+\"\\n\";\n }\n System.err.println(messageErreur);\n }", "public Building (Pixmap image,\n Location3D center,\n Dimension size,\n Sound sound,\n int playerID,\n int health,\n double buildTime) {\n super(image, center, size, sound, playerID, MAXHEALTH, buildTime);\n myRallyPoint = new Location3D(getWorldLocation().getX(), getWorldLocation().getY() + 150, 0);\n \n }", "public Sprite(String newSpriteLocation){\n\t\timages = new Texture[1];\n\t\timages[0] = new Texture(newSpriteLocation);\n\t}", "@Override\n public void init() {\n GetSprite(\"/images/bullet.png\");\n MusicUtils.StopASounds(\"/music/Laser_Shoot.wav\");\n Level().play(\"/music/Laser_Shoot.wav\");\n }", "public static void loadImages(){\n\t\tsetPath(main.getShop().inventory.getEquipID());\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"res/world/bg.png\"));\n\t\t\tterrain = ImageIO.read(new File(\"res/world/solids.png\"));\n\t\t\t// Character and Armour\n\t\t\tcharacters = ImageIO.read(new File(\"res/world/char3.png\"));\n\t\t\tcharactersHead =ImageIO.read(new File(\"res/world/charhead\"+path[0]+\".png\"));\n\t\t\tcharactersTop = ImageIO.read(new File(\"res/world/chartop\"+path[2]+\".png\"));\n\t\t\tcharactersShoulder = ImageIO.read(new File(\"res/world/charshoulders\"+path[3]+\".png\"));\n\t\t\tcharactersHand = ImageIO.read(new File(\"res/world/charhands\"+path[5]+\".png\"));\n\t\t\tcharactersBottom = ImageIO.read(new File(\"res/world/charbottom\"+path[8]+\".png\"));\n\t\t\tcharactersShoes = ImageIO.read(new File(\"res/world/charshoes\"+path[9]+\".png\"));\n\t\t\tcharactersBelt = ImageIO.read(new File(\"res/world/charBelt\"+path[4]+\".png\"));\n\n\t\t\tweaponBow = ImageIO.read(new File(\"res/world/bow.png\"));\n\t\t\tweaponArrow = ImageIO.read(new File(\"res/world/arrow.png\"));\n\t\t\tweaponSword = ImageIO.read(new File(\"res/world/sword.png\"));\n\t\t\titems = ImageIO.read(new File(\"res/world/items.png\"));\n\t\t\tnpc = ImageIO.read(new File(\"res/world/npc.png\"));\n\t\t\thealth = ImageIO.read(new File(\"res/world/health.png\"));\n\t\t\tenemies = ImageIO.read(new File(\"res/world/enemies.png\"));\n\t\t\tcoin = ImageIO.read(new File(\"res/world/coin.png\"));\n\t\t\tmana = ImageIO.read(new File(\"res/world/mana.gif\"));\n\t\t\tarrowP = ImageIO.read(new File(\"res/world/arrowP.png\"));\n\t\t\tbutton = ImageIO.read(new File(\"res/world/button.png\"));\n\t\t\tblood = ImageIO.read(new File(\"res/world/blood.png\"));\n\t\t\tarrowDisp = ImageIO.read(new File(\"res/world/arrowDisp.png\"));\n\t\t\tboss1 = ImageIO.read(new File(\"res/world/boss1.png\"));\n\t\t\tmagic = ImageIO.read(new File(\"res/world/magic.png\"));\n\t\t\tmainMenu = ImageIO.read(new File(\"res/world/MainMenu.png\"));\n\t\t\tinstructions = ImageIO.read(new File(\"res/world/instructions.png\"));\n\t\t\trespawn = ImageIO.read(new File(\"res/world/respawn.png\"));\n\t\t\tinventory = ImageIO.read(new File(\"res/world/inventory.png\"));\n shop = ImageIO.read(new File(\"res/world/shop.png\"));\n dizzy = ImageIO.read(new File(\"res/world/dizzy.png\"));\n pet = ImageIO.read(new File(\"res/world/pet.png\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error Loading Images\");\n\t\t}\n\t}", "@Override\n public Sprite createSprite(SnakeSmash game) {\n Texture texture = game.getAssetManager().get(\"pinkSquare.png\");\n return new Sprite(texture, texture.getWidth(), texture.getHeight());\n }", "private static void initResources() {\n\t\tString[] res = new String[4];\r\n\t\tres[0] = \"res/entity/spaceshipv1.png\";\r\n\t\tres[1] = \"res/entity/prob.png\";\r\n\t\tres[2] = \"res/dot.png\";\r\n\t\tres[3] = \"res/entity/spaceshipv2.png\";\r\n\t\tSResLoader.addSpriteArray(res);\r\n\t}", "@Override\n\tpublic void onLoadResources() {\n\t\tBitmapTextureAtlasTextureRegionFactory.setAssetBasePath(\"gfx/\");\t\t\n\t\tmBitmapParralaxTextureAtlas=new BitmapTextureAtlas(1024,1024);\n\t\tmBitmapTextureAtlas=new BitmapTextureAtlas(512, 512);\n\t\tmTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(mBitmapParralaxTextureAtlas, this, \"parallax_background_layer_back.png\", 0, 0);\n\t\tbananaRegion=BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(mBitmapTextureAtlas, this, \"banana_tiled.png\", 0, 0, 4,2);\n\t\tmEngine.getTextureManager().loadTextures(mBitmapParralaxTextureAtlas,mBitmapTextureAtlas);\n\t}", "private void setSprite(String filepath){\n try {\n this.sprite = new Sprite(new Texture(Gdx.files.internal(filepath)));\n }\n catch (Exception e){\n }\n }", "protected void init() {\n splashImg = new Texture(\"splash.png\");\n }", "public static void load() {\n\t\tspritesheet = new Spritesheet(\"src/de/kaffeeliebhaber/assets/pyxel/voland_spritesheet_new.png\", 32, 32);\n\t\tspritesheet.load();\n\t\t\n\t\t// load player\n\t\tAssetsLoader.loadPlayerAssets();\n\t\t\n\t\t// load crate\n\t\tAssetsLoader.loadCrates();\n\t\t\n\t\t// load item spritesheet \n\t\tspritesheetInventory = new Spritesheet(Config.ITEM_SPRITESHEET, Config.ITEM_SIZE, Config.ITEM_SIZE);\n\t\tspritesheetInventory.load();\n\t\t\n\t\t// load font \n\t\tloadFonts();\n\t\t\n\t\t// ui\n\t\timageUI = ImageLoader.loadImage(\"src/de/kaffeeliebhaber/assets/ui/ui.png\");\n\t\t\n\t\tAssetsLoader.loadInfoPaneAssets();\n\t\t\n\t\t// npc\n\t\tspritesheetNPC = new Spritesheet(\"src/de/kaffeeliebhaber/assets/AH_SpriteSheet_People1.png\", 16, 16);\n\t\tspritesheetNPC.load();\n\t\t\n\t\t// fox\n\t\tspritesheetNPCFox = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/72c68863962b7a6b5a9f5f5bcc5afb16.png\", 32, 32);\n\t\tspritesheetNPCFox.load();\n\n\t\t// *** LOAD NPCs\n\t\tAssetsLoader.loadFoxAssets();\n\t\t\n\t\tAssetsLoader.loadNPCs();\n\t\t\n\t\tspritesheetFemale = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/Female 01-1.png\", 32, 32);\n\t\tspritesheetFemale.load();\n\t}", "public gameScene_Model(Stage primaryStage){\n this.primaryStage = primaryStage;\n background = new MyStage();\n this.scene = new Scene(background,600,800);\n animal = new Animal(\"file:src/FroggerApp/Images_File/froggerUp.png\");\n }", "String getTextureName();", "public GameObject(PImage img, int x, int y, int width, int height, int[] velocity){\n this.img = img;\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n this.velocity= velocity;\n health = 1; //Default value for health\n }", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityBat)p_110775_1_);\n }", "Enemy(Bitmap image) {\n super(image);\n }", "public GameView() {\n this.astronautaImage = new Image(getClass().getResourceAsStream(\"/res/astronauta.gif\"));\n this.ovniImage = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovni2Image = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovnidestructibleImage = new Image(getClass().getResourceAsStream(\"/res/ovnidestructible.png\"));\n this.wallImage = new Image(getClass().getResourceAsStream(\"/res/wall.png\"));\n this.pistolaImage = new Image(getClass().getResourceAsStream(\"/res/pistola.png\"));\n this.alienEggImage = new Image(getClass().getResourceAsStream(\"/res/alienEgg.png\"));\n }", "public Objects(String image){\n\t\tthis.face = new Image(\"file:res/\" + image);\n\t\tthis.MoveSpeed = 6;\n\t}", "@Override\n\tpublic void init() {\n\t\tEffect().registerEffect(40, 40, 3, \"ExplosionSheet.png\");\n\t\tbg = new Background();\n\t\tobj = new TestObj();\n\t\tobj.init();\n\t\ttest = new Test2[50];\n\t\tfor(int x = 0; x < test.length; x++ )\n\t\t\ttest[x] = new Test2(x*30-600,30 *(float)Math.pow(-1, x), \"g.png\");\n\t\t\n\t\ttest2 = new Test2[50000];\n\t\tfor(int x = 0; x < test2.length; x++ )\n\t\t\ttest2[x] = new Test2(x*30-600,150+30 *(float)Math.pow(-1, x), \"AlienPawn.png\");\n\t\t\n\t\ttest3 = new Test2[50000];\n\t\tfor(int x = 0; x < test3.length; x++ )\n\t\t\ttest3[x] = new Test2(x*30-600,-200+30 *(float)Math.pow(-1, x), \"AlienPawn - Copy.png\");\n\t\n\t}", "public void load(String path) {\n try {\n texId = new TextureId(path);\n BufferedImage image = ImageIO.read(new FileInputStream(\"resources\" + texId.getPath()));\n createImage(image);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }", "public static InternalTextureLoader get() {\n/* 40 */ return loader;\n/* */ }", "Ground(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\", \"3015\");}", "private Image addImageToGameObject(Class gameObject, double width, double height) {\n InputStream inputStream;\n imageWidth = 64;\n imageHeight = 64;\n if (gameObject.equals(Asteroid.class)) {\n inputStream = getClass().getClassLoader().getResourceAsStream(mediumAsteroidFilePath);\n assert inputStream != null;\n image = new Image(inputStream);\n if (width > 32) {\n imageWidth = 100;\n imageHeight = 100;\n }\n } else if (gameObject.equals(HealthPowerUp.class)) {\n inputStream = getClass().getClassLoader().getResourceAsStream(shieldFilePath);\n assert inputStream != null;\n image = new Image(inputStream);\n } else if (gameObject.equals(ShieldPowerUp.class)) {\n inputStream = getClass().getClassLoader().getResourceAsStream(hpFilePath);\n assert inputStream != null;\n image = new Image(inputStream);\n } else if (gameObject.equals(Spaceship.class)) {\n inputStream = getClass().getClassLoader().getResourceAsStream(spaceshipImageName);\n assert inputStream != null;\n image = new Image(inputStream);\n } else if (gameObject.equals(SlowDebuff.class)) {\n imageWidth = 32;\n imageHeight = 32;\n inputStream = getClass().getClassLoader().getResourceAsStream(timeDebuffPath);\n assert inputStream != null;\n image = new Image(inputStream);\n } else if (gameObject.equals(LaserBeam.class)) {\n laserGUI.setIsVertical(width < height);\n image = laserGUI.getFrame(animationTime);\n imageWidth = image.getWidth();\n imageHeight = image.getHeight();\n }\n return image;\n }", "public Warrior(Point3D position, int speed) {\r\n super(\"img/Ants/warrior.png\", position, speed);\r\n currentBehaviour = WarriorBehaviour.PATROL;\r\n }", "private void graphicsLoader() {\n\t\tff2Logo = new Texture(Gdx.files.internal(uiName + \"/ff2logo.png\"));\n\t\tff2LogoHit = new Texture(Gdx.files.internal(uiName + \"/ff2logohit.png\"));\n\t\tplayerword = new Texture(Gdx.files.internal(uiName + \"/playerword.png\"));\n\t\tplayerwordHit = new Texture(Gdx.files.internal(uiName + \"/playerwordhit.png\"));\n\t\tturretword = new Texture(Gdx.files.internal(uiName + \"/turretword.png\"));\n\t\tturretwordHit = new Texture(Gdx.files.internal(uiName + \"/turretwordhit.png\"));\n\t\tfenceword = new Texture(Gdx.files.internal(uiName + \"/fenceword.png\"));\n\t\tfencewordHit = new Texture(Gdx.files.internal(uiName + \"/fencewordhit.png\"));\n\t\tbarrierword = new Texture(Gdx.files.internal(uiName + \"/barrierword.png\"));\n\t\tbarrierwordHit = new Texture(Gdx.files.internal(uiName + \"/barrierwordhit.png\"));\n\t\tgatewayword = new Texture(Gdx.files.internal(uiName + \"/gatewayword.png\"));\n\t\tgatewaywordHit = new Texture(Gdx.files.internal(uiName + \"/gatewaywordhit.png\"));\n\t\tpowerupword = new Texture(Gdx.files.internal(uiName + \"/powerupword.png\"));\n\t\tpowerupwordHit = new Texture(Gdx.files.internal(uiName + \"/powerupwordhit.png\"));\n\t\tswitchword = new Texture(Gdx.files.internal(uiName + \"/switchword.png\"));\n\t\tswitchwordHit = new Texture(Gdx.files.internal(uiName + \"/switchwordhit.png\"));\n\t\tenemyfighterword = new Texture(Gdx.files.internal(uiName + \"/enemyfighterword.png\"));\n\t\tenemyfighterwordHit = new Texture(Gdx.files.internal(uiName + \"/enemyfighterwordhit.png\"));\n\t\tmineword = new Texture(Gdx.files.internal(uiName + \"/mineword.png\"));\n\t\tminewordHit = new Texture(Gdx.files.internal(uiName + \"/minewordhit.png\"));\n\t\tpushblockword = new Texture(Gdx.files.internal(uiName + \"/pushblockword.png\"));\n\t\tpushblockwordHit = new Texture(Gdx.files.internal(uiName + \"/pushblockwordhit.png\"));\n\t\tbombupword = new Texture(Gdx.files.internal(uiName + \"/bombupword.png\"));\n\t\tbombupwordHit = new Texture(Gdx.files.internal(uiName + \"/bombupwordhit.png\"));\n\t\t\n\t\t// ui\n\t\tsoundonbutton = new Texture(Gdx.files.internal(uiName + \"/soundon.png\"));\n\t\tsoundoffbutton = new Texture(Gdx.files.internal(uiName + \"/soundoff.png\"));\n\t\tcreatebutton = new Texture(Gdx.files.internal(uiName + \"/createbutton.png\"));\n\t\tnocreatebutton = new Texture(Gdx.files.internal(uiName + \"/nocreatebutton.png\"));\n\t\tloaderTexture = new Texture(Gdx.files.internal(uiName + \"/ff2loader.png\"));\n\t\tgameOverTexture = new Texture(Gdx.files.internal(uiName + \"/gameover.png\"));\n\t\tnextFieldTexture = new Texture(Gdx.files.internal(uiName + \"/nextfield.png\"));\n\t\t\n\t\tmenubutton = new Texture(Gdx.files.internal(uiName + \"/menubutton.png\"));\n\t\tnomenubutton = new Texture(Gdx.files.internal(uiName + \"/nomenubutton.png\"));\n\t\tdiffEasyButton = new Texture(Gdx.files.internal(uiName + \"/diffeasybutton.png\"));\n\t\tdiffNormButton = new Texture(Gdx.files.internal(uiName + \"/diffnormbutton.png\"));\n\t\tdiffHardButton = new Texture(Gdx.files.internal(uiName + \"/diffhardbutton.png\"));\n\t\tosdButton = new Texture(Gdx.files.internal(uiName + \"/osdbutton.png\"));\n\t\t\n\t\texoFFfont = new BitmapFont(Gdx.files.internal(uiName + \"/font/exo-ff.fnt\"), true);\n\t\t\n\t\t// creator\n\t\texitbutton = new Texture(Gdx.files.internal(creatorName + \"/exitbutton.png\"));\n\t\tfilebutton = new Texture(Gdx.files.internal(creatorName + \"/filebutton.png\"));\n\t\ttoolsbutton = new Texture(Gdx.files.internal(creatorName + \"/toolsbutton.png\"));\n\t\tnextbutton = new Texture(Gdx.files.internal(creatorName + \"/nextbutton.png\"));\n\t\tprevbutton = new Texture(Gdx.files.internal(creatorName + \"/prevbutton.png\"));\n\t\tdeletebutton = new Texture(Gdx.files.internal(creatorName + \"/deletebutton.png\"));\n\t\tyesbutton = new Texture(Gdx.files.internal(creatorName + \"/yesbutton.png\"));\n\t\tnobutton = new Texture(Gdx.files.internal(creatorName + \"/nobutton.png\"));\n\t\tbuildbutton = new Texture(Gdx.files.internal(creatorName + \"/buildbutton.png\"));\n\t\tprocbutton = new Texture(Gdx.files.internal(creatorName + \"/procbutton.png\"));\n\t\trandbutton = new Texture(Gdx.files.internal(creatorName + \"/randbutton.png\"));\n\t\tgroupsbutton = new Texture(Gdx.files.internal(creatorName + \"/groupsbutton.png\"));\n\t\tarenabutton = new Texture(Gdx.files.internal(creatorName + \"/arenabutton.png\"));\n\t\tfileExitButton = new Texture(Gdx.files.internal(creatorName + \"/fileexitbutton.png\"));\n\t\tfileLoadButton = new Texture(Gdx.files.internal(creatorName + \"/loadbutton.png\"));\n\t\tfileSaveButton = new Texture(Gdx.files.internal(creatorName + \"/savebutton.png\"));\n\t\tfilePlayButton = new Texture(Gdx.files.internal(creatorName + \"/playbutton.png\"));\n\t\tfileNoPlayButton = new Texture(Gdx.files.internal(creatorName + \"/noplaybutton.png\"));\n\t\tfileSendButton = new Texture(Gdx.files.internal(creatorName + \"/sendbutton.png\"));\n\t\ttoasterBack = new Texture(Gdx.files.internal(creatorName + \"/toasterback.png\"));\n\t\twindowBack = new Texture(Gdx.files.internal(creatorName + \"/windowback.png\"));\n\t\temptyCellTexture = new Texture(Gdx.files.internal(creatorName + \"/emptycell.png\"));\n\t\tcreateSplashTexture = new Texture(Gdx.files.internal(creatorName + \"/createsplash.png\"));\n\t\t\n\t\tplayerDef = new Texture(Gdx.files.internal(creatorName + \"/player_def.png\"));\n\t\tgatewayDef = new Texture(Gdx.files.internal(creatorName + \"/gateway_def.png\"));\n\t\tpowerupDef = new Texture(Gdx.files.internal(creatorName + \"/powerup_def.png\"));\n\t\tbombupDef = new Texture(Gdx.files.internal(creatorName + \"/bombup_def.png\"));\n\t\tswitchDef = new Texture(Gdx.files.internal(creatorName + \"/switch_def.png\"));\n\t\tscaffoldDef = new Texture(Gdx.files.internal(creatorName + \"/scaffold_def.png\"));\n\t\tbarrierDef = new Texture(Gdx.files.internal(creatorName + \"/barrier_def.png\"));\n\t\tfenceDef = new Texture(Gdx.files.internal(creatorName + \"/fence_def.png\"));\n\t\tturretDef = new Texture(Gdx.files.internal(creatorName + \"/turret_def.png\"));\n\t\tenemyDef = new Texture(Gdx.files.internal(creatorName + \"/enemy_def.png\"));\n\t\tmineDef = new Texture(Gdx.files.internal(creatorName + \"/mine_def.png\"));\n\t\tpushblockDef = new Texture(Gdx.files.internal(creatorName + \"/pushblock_def.png\"));\n\t\thangerDef = new Texture(Gdx.files.internal(creatorName + \"/hanger_def.png\"));\n\t\t\n\t\tdeleteDef = new Texture(Gdx.files.internal(creatorName + \"/delete_def.png\"));\n\t\tdeleteSel = new Texture(Gdx.files.internal(creatorName + \"/delete_sel.png\"));\n\t\tlockUnlock = new Texture(Gdx.files.internal(creatorName + \"/lock_unlock.png\"));\n\t\tlockLock = new Texture(Gdx.files.internal(creatorName + \"/lock_lock.png\"));\n\t\ttoolSelect = new Texture(Gdx.files.internal(creatorName + \"/toolselect.png\"));\n\t\t\n\t\t// game stuff\n\t\tplayerShipTexture = new Texture(Gdx.files.internal(gameName + \"/player2ship.png\"));\n\t\tplayerShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shippowerup.png\"));\n\t\tplayerShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shipbombup.png\"));\n\t\tenemyShipTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2ship.png\"));\n\t\tenemyShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shippowerup.png\"));\n\t\tenemyShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipbombup.png\"));\n\t\tenemyShipOrderedTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipordered.png\"));\n\t\tplayerBulletTexture = new Texture(Gdx.files.internal(gameName + \"/playerlaser.png\"));\n\t\tplayerCableTexture = new Texture(Gdx.files.internal(gameName + \"/playercable.png\"));\n\t\tenemyBulletTexture = new Texture(Gdx.files.internal(gameName + \"/enemylaser.png\"));\n\t\tenemyCableTexture = new Texture(Gdx.files.internal(gameName + \"/enemycable.png\"));\n\t\tbombCableTexture = new Texture(Gdx.files.internal(gameName + \"/bombcable.png\"));\n\t\tturretTexture = new Texture(Gdx.files.internal(gameName + \"/turret.png\"));\n\t\tturrethitTexture = new Texture(Gdx.files.internal(gameName + \"/turrethit.png\"));\t\n\t\tfenceTexture = new Texture(Gdx.files.internal(gameName + \"/fence.png\"));\n\t\tfencehitTexture = new Texture(Gdx.files.internal(gameName + \"/fencehit.png\"));\n\t\tbarrierTexture = new Texture(Gdx.files.internal(gameName + \"/barrier.png\"));\n\t\tbarrierhitTexture = new Texture(Gdx.files.internal(gameName + \"/barrierhit.png\"));\n\t\tgatewayonTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayon.png\"));\n\t\tgatewayoffTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayoff.png\"));\n\t\tpowerupTexture = new Texture(Gdx.files.internal(gameName + \"/powerup.png\"));\n\t\tbombupTexture = new Texture(Gdx.files.internal(gameName + \"/bombup.png\"));\n\t\tbombupCharge = new Texture(Gdx.files.internal(gameName + \"/bombupcharge.png\"));\n\t\texplosion = new Texture(Gdx.files.internal(gameName + \"/explosion.png\"));\n\t\tdeath = new Texture(Gdx.files.internal(gameName + \"/death.png\"));\n\t\tpowerupCharge = new Texture(Gdx.files.internal(gameName + \"/powerupcharge.png\"));\n\t\tswitchonTexture = new Texture(Gdx.files.internal(gameName + \"/switchon.png\"));\n\t\tswitchoffTexture = new Texture(Gdx.files.internal(gameName + \"/switchoff.png\"));\n\t\tscaffoldTexture = new Texture(Gdx.files.internal(gameName + \"/scaffold.png\"));\n\t\tmineTexture = new Texture(Gdx.files.internal(gameName + \"/mine.png\"));\n\t\tminehitTexture = new Texture(Gdx.files.internal(gameName + \"/minehit.png\"));\n\t\tmineDebrisTexture = new Texture(Gdx.files.internal(gameName + \"/minedebris.png\"));\n\t\tpushblockTexture = new Texture(Gdx.files.internal(gameName + \"/pushblock.png\"));\n\t\thangerTexture = new Texture(Gdx.files.internal(gameName + \"/hanger.png\"));\n\t\thangerhitTexture = new Texture(Gdx.files.internal(gameName + \"/hangerhit.png\"));\n\t\t// have a catch here for the loaded=true?\n\t\tloaded = true;\n\t}", "public Boss() {\n\t\tlife = 3;\n\t\timage = new Image(\"/Model/boss3.png\", true);\n\t\tboss = new ImageView(image);\n\t\tRandom r = new Random();\n\t\tboss.setTranslateX(r.nextInt(900));\n\t\tboss.setTranslateY(0);\n\t\tisAlive = true;\n\t}", "protected ResourceLocation getEntityTexture(EntityMegaZombie p_110775_1_)\n {\n return zombieTextures;\n }", "@Override\r\n\tprotected ResourceLocation getEntityTexture(EntityAngel entity)\r\n {\r\n return ANGEL_TEXTURE;\r\n }", "public void atacar() {\n texture = new Texture(Gdx.files.internal(\"recursos/ataques.png\"));\n rectangle=new Rectangle(x,y,texture.getWidth(),texture.getHeight());\n tmp = TextureRegion.split(texture, texture.getWidth() / 4, texture.getHeight() / 4);\n switch (jugadorVista) {\n case \"Derecha\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Izquierda\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Abajo\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Arriba\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n }\n }", "private static void loadSprites(){\n \t\tshipSprites.put(\"SCOUT_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/colonizer.png\"), 0.5f, 0.5f));\n \t\t\n \t\t/*\n \t\t * Ships Red Player\n \t\t */\n \t\tshipSprites.put(\"SCOUT_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/colonizer.png\"), 0.5f, 0.5f));\n \n \t\t/*\n \t\t * Path Arrows\n \t\t */\n\t\tpathTextures.put(\"HEAD\", Toolkit.getDefaultToolkit().getImage(\"res/path/head.png\"));\n\t\tpathTextures.put(\"START\", Toolkit.getDefaultToolkit().getImage(\"res/path/start.png\"));\n\t\tpathTextures.put(\"STRAIGHT\", Toolkit.getDefaultToolkit().getImage(\"res/path/straight.png\"));\n\t\tpathTextures.put(\"TURN\", Toolkit.getDefaultToolkit().getImage(\"res/path/turn.png\"));\n \t\t\n \t\t/*\n \t\t * Planets\n \t\t */\n \t\tmetalplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_0.png\"), 0.5f, 0));\n \t\tmetalplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_1.png\"), 0.5f, 0));\n \t\tmetalplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_2.png\"), 0.5f, 0));\n \t\tmetalplanets.put(3, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_3.png\"), 0.5f, 0));\n \t\tgasplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_0.png\"), 0.5f, 0));\n \t\tgasplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_1.png\"), 0.5f, 0));\n \t\tgasplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_2.png\"), 0.5f, 0));\n \t\t\n \t\t/*\n \t\t * Colony Sprite\n \t\t */\n \t\tloadColonySprites(Color.RED, \"RED\");\n \t\tloadColonySprites(Color.BLUE, \"BLUE\");\n \t}", "@Override\r\n\tpublic Projectile getProjectile(int yield) {\r\n\t\treturn new BazookaProjectile(getWorm(), yield);\r\n\t}", "@Override\n\tpublic int getTexture() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic final IRenderable load() {\n\t\tImage img = loadImage();\n\t\tassertImageIsValid(img);\n\t\treturn new ImageRenderable(img);\n\t}", "private Asset() {\r\n super(IAsset.TYPE_ID);\r\n }", "public void pararJugador() {\n texture = new Texture(Gdx.files.internal(\"recursos/character.png\"));\n rectangle=new Rectangle(x,y,texture.getWidth(),texture.getHeight());\n tmp = TextureRegion.split(texture, texture.getWidth() / 4, texture.getHeight() / 4);\n switch (jugadorVista) {\n case \"Derecha\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n case \"Izquierda\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n case \"Abajo\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n case \"Arriba\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n }\n }", "public void moveLeft() {\r\n speedX = -6;\r\n Texture r1 = changeImg (\"./graphics/characters/player/leftWalk1.png\");\r\n img = new Sprite (r1);\r\n }", "@Override\n public Sprite createSprite(MyCumulusGame game) {\n walkingAnimation = createWalkingAnimation(game);\n jumpingAnimation = createJumpingAnimation(game);\n\n return new Sprite(jumpingAnimation);\n }", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCaveSpiderTextures((EntityCaveSpider)par1Entity);\n }", "public static void loadBg() {\n bg = new Texture (Gdx.files.internal(\"data/bbb.png\"));\n textureBg =new TextureRegion(bg);\n player = new Texture (Gdx.files.internal(\"data/nave2.png\"));\n texturePlayer =new TextureRegion(player);\n gameOver = new Texture (Gdx.files.internal(\"data/gameOver.png\"));\n textureGameOver =new TextureRegion(gameOver);\n textureGameOver.flip(false, true);\n laser= new Texture (Gdx.files.internal(\"data/disparo_sprite.png\"));\n textureLaser = new TextureRegion(laser);\n obstacle= new Texture (Gdx.files.internal(\"data/square.gif\"));\n textureObstacle = new TextureRegion(obstacle);\n title= new Texture (Gdx.files.internal(\"data/invadpt2.png\"));\n textureTitle = new TextureRegion(title);\n win = new Texture (Gdx.files.internal(\"data/win.png\"));\n textureWin =new TextureRegion(win);\n textureWin.flip(false, true);\n ranking = new Texture (Gdx.files.internal(\"data/ranking.png\"));\n textureRanking =new TextureRegion(ranking);\n textureRanking.flip(false, true);\n ranking1 = new Texture (Gdx.files.internal(\"data/ranking1.png\"));\n textureRanking1 =new TextureRegion(ranking1);\n textureRanking1.flip(false, true);\n ranking2 = new Texture (Gdx.files.internal(\"data/ranking2.png\"));\n textureRanking2 =new TextureRegion(ranking2);\n textureRanking2.flip(false, true);\n superEnemy= new Texture (Gdx.files.internal(\"data/superEnemy.png\"));\n textureSuperEnemy = new TextureRegion(superEnemy);\n textureSuperEnemy.flip(false, true);\n\n text1=new Texture(Gdx.files.internal(\"data/bg.jpg\"));\n text2 = new TextureRegion(text1);\n text= new TextureAtlas();\n text.addRegion(\"text\",text2);\n text.addRegion(\"text\",text1,0,0,20,30);\n loadColorInvaders();\n\n\n }", "public Game()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1, false); \n Greenfoot.start(); //Autostart the game\n Greenfoot.setSpeed(50); // Set the speed to 30%\n setBackground(bgImage);// Set the background image\n \n //Create instance\n \n Airplane gameplayer = new Airplane ();\n addObject (gameplayer, 100, getHeight()/2);\n \n }", "public flappyBird(){\n GreenfootImage image = getImage();\n image.scale(image.getWidth(),image.getHeight());\n }", "Pokemon.PlayerAvatar getAvatar();", "@Override\r\n\tpublic void render(Graphics g) {\r\n\t\tg.drawImage(objectsType.texture, (int) (x - handler.getGameCamera().getxOffset()),\r\n\t\t\t\t(int) (y - handler.getGameCamera().getyOffset()), width, height);\r\n\r\n\t\tif (DEBUGMODE) {\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawRect((int) (x + bounds.x - handler.getGameCamera().getxOffset()),\r\n\t\t\t\t\t(int) (y + bounds.y - handler.getGameCamera().getyOffset()), bounds.width, bounds.height);\r\n\t\t}\r\n\r\n\t}", "public GameObject getGameObject()\n {\n return this.gameObject;\n }", "public interface IGameObject {\n\n public void create();\n public void load(RenderManager renderManager);\n public void draw(RenderManager renderManager);\n public void update(GameManager gameManager);\n public void destroy();\n}", "private void heroStandingTextureLoad() {\n standLeft = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n standBack = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_back.png\", Texture.class), 1, 1, 16, 21);\n standFront = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_front.png\", Texture.class), 1, 1, 17, 22);\n standRight = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n }", "public Texture getImage(){\n\t\treturn images[0];\t\t\n\t}", "TextureAtlas.AtlasRegion getTexture(FileHandle textureFile);", "GameItem(String rarity, String name, String pickuptext, String effect, ArrayList<Double> stack){\n this.rarity = rarity;\n this.name = name;\n this.pickuptext = pickuptext;\n this.effect = effect;\n this.stack = stack;\n // this.imageloc = \"/../../../pictures/items/\"+this.rarity+\"/\"+this.name+\".png\";\n //this.img = new javax.swing.ImageIcon(getClass().getResource(this.imageloc));\n //Icon\n }" ]
[ "0.6892844", "0.68412626", "0.66846836", "0.6618945", "0.6575167", "0.6562741", "0.62387294", "0.6236771", "0.62229085", "0.62151825", "0.62141424", "0.61895186", "0.61791956", "0.61632836", "0.61221415", "0.6115871", "0.6099061", "0.60897094", "0.6061906", "0.6042945", "0.60286295", "0.60177237", "0.60113144", "0.60062295", "0.60016763", "0.59860694", "0.59699804", "0.5964515", "0.5950941", "0.59500116", "0.5946321", "0.5943807", "0.5935461", "0.5934813", "0.59342676", "0.5928897", "0.5914206", "0.58965385", "0.5890593", "0.5880169", "0.58790374", "0.5869816", "0.5867719", "0.58544606", "0.5848044", "0.5843417", "0.5841339", "0.5826256", "0.582303", "0.58153725", "0.57922864", "0.57922643", "0.57912123", "0.5778052", "0.5764751", "0.57625955", "0.574909", "0.57474196", "0.57408166", "0.57397115", "0.573593", "0.5734887", "0.57312167", "0.57273746", "0.57179385", "0.57138044", "0.571266", "0.5711384", "0.5706445", "0.5692784", "0.5688175", "0.5682265", "0.5674928", "0.5673749", "0.5672176", "0.56681633", "0.56680334", "0.56639874", "0.56626296", "0.56617826", "0.5656792", "0.5638654", "0.5637053", "0.5629701", "0.5617925", "0.56173956", "0.5612841", "0.5612174", "0.5606742", "0.56065327", "0.56056756", "0.5595764", "0.5588605", "0.55875945", "0.5586878", "0.55861723", "0.55723906", "0.5565877", "0.5563177", "0.5561132" ]
0.5700167
69
If pond/tank go to environmental
public void onClickedNet(View view) { Class<?> next = "cage".equals(ca.getCageType()) ? EnterNetCheckActivity.class : EnvironmentalContainerMenuActivity.class; Intent i = new Intent(this, next); i.putExtra("cageAllocationId", cageAllocationId); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean development() {\n final String mode = mode();\n return \"dev\".equalsIgnoreCase(mode);\n }", "private void randomizeEnvironment() {\n }", "@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().disableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case CLUSTER_OBJECT_REUSE:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().enableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case COLLECTION:\n new CollectionTestEnvironment().setAsContext();\n break;\n }\n }", "public boolean isEngineOn();", "@Override\n public boolean isStealthOn() {\n // Try to find a Mek Stealth system.\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_STEALTH)) {\n if (mEquip.curMode().equals(\"On\")) {\n // Return true if the mode is \"On\"\n return true;\n }\n }\n }\n // No Mek Stealth or system inactive. Return false.\n return false;\n }", "boolean check (Env env) {\n return true;\n }", "public static boolean isDevEnv() {\n return (Boolean) Launch.blackboard.get(\"fml.deobfuscatedEnvironment\");\n }", "void sitOn();", "public boolean isProdEnvironment() {\n\n\t\tif (driver.getCurrentUrl().contains(\"www.homedepot.com\")\n\t\t\t\t|| dataHelper.getCommonData(CommonDataColumn.EnvironmentUrl)\n\t\t\t\t\t\t.contains(\"www.homedepot.com\")\n\t\t\t\t|| HelperClass.baseModel.runEnvironment.equals(\"Prod\")) {\n\n\t\t\treturn true;\n\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}", "public void engineOn(){\n engine = true;\n }", "public boolean getDevelopment();", "abstract boolean check(Env env);", "File prepareEnvironment();", "private void selectProdEnv() {\n\n new Handler(getMainLooper()).postDelayed(new Runnable() {\n @Override\n public void run() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", true);\n editor.apply();\n }\n }, AppPreference.MENU_DELAY);\n }", "public void setEngineOn();", "protected void setupLocal() {}", "String getEnvironment();", "private void checkProductionMode() {\n if (getApplicationOrSystemProperty(SERVLET_PARAMETER_DEBUG, \"true\")\n .equals(\"false\")) {\n // \"Debug=true\" is the old way and should no longer be used\n productionMode = true;\n } else if (getApplicationOrSystemProperty(\n SERVLET_PARAMETER_PRODUCTION_MODE, \"false\").equals(\"true\")) {\n // \"productionMode=true\" is the real way to do it\n productionMode = true;\n }\n \n if (!productionMode) {\n /* Print an information/warning message about running in debug mode */\n // TODO Maybe we need a different message for portlets?\n logger.warning(NOT_PRODUCTION_MODE_INFO);\n }\n }", "public boolean isPumpkin() {\n return this.type == Type.PUMPKIN;\n }", "@Before\n\tpublic void setup() {\n\t\tdante.can(BrowseTheWeb.with(hisBrowser));\n\t}", "boolean k2h_load_debug_env();", "public interface RealEnvironment extends Environment {\n\n}", "void deployRobot(){\n\n //Robot going down\n //Can be omitted if for test purposes\n if(!autonomonTesting) {\n while (robot.mechLiftLeft.getCurrentPosition() < robot.MAX_LIFT_POSITION &&\n robot.mechLiftRight.getCurrentPosition() < robot.MAX_LIFT_POSITION && !isStopRequested()) {\n robot.liftMovement(robot.LIFT_SPEED, false);\n }\n telemetry.addData(\"Lift Position\", robot.mechLiftLeft.getCurrentPosition());\n }\n else{\n telemetry.addLine(\"Tesint mode, without lift\");\n }\n robot.liftMovement(0, false);\n telemetry.update();\n\n\n //tensor activation\n if (tfod != null) {\n tfod.activate();\n }\n\n //moving to get in position for TensorFlow scan\n\n //out of the hook\n robot.setDrivetrainPosition(-300, \"translation\", .6);\n\n //away from the lander\n robot.setDrivetrainPosition(800, \"strafing\", .3);\n\n //back to initial\n robot.setDrivetrainPosition(300, \"translation\", .6);\n\n }", "public void intServerEnv() {\n\t\tServerUtils serverUtils = new ServerUtils();\n\t\tTouchstoneParsers parsers = new TouchstoneParsers();\n\n\t\tString CONFIGFILE = psoResourcePkg + \"/configs/server.properties\";\n\t\tString testConfigFile = ServerUtils.class.getResource(CONFIGFILE).getFile();\n\n\t\tHashMap<String, HashMap<String, String>> configPropsMap = parsers.readPropsFile(new File(testConfigFile));\n\t\thostIP = (configPropsMap.get(\"URL_PARAMS\").get(\"LOCAL_ENV\").equalsIgnoreCase(\"yes\") ? \"localhost\" : serverUtils.getHostIp());\n\n\t\t// JDBC driver name and database URL\n\t\tJDBC_DRIVER=\"com.mysql.jdbc.Driver\";\n\t\tDB_URL=\"jdbc:mysql://\" + hostIP + \"/psotest\";\n\n\t\t// Database credentials\n\t\tUSERID = configPropsMap.get(\"SERVER_ENV\").get(\"USERID\");\n\t\tPASSWORD = configPropsMap.get(\"SERVER_ENV\").get(\"PASSWORD\");\n\n\t\t// Database tables:\n\t\tCLICKS_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"CLICKS_TABLE\");\n\t\tBEACON_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"BEACON_TABLE\");\n\n\t}", "@Override\n public Environment getEnvironment(XYCoord coord)\n {\n return master.getEnvironment(coord);\n }", "private static boolean isLightMode(Context context)\n {\n return ((BladeSampleApplication)context.getApplicationContext()).isLightMode();\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n boolean boolean0 = DBUtil.existsEnvironment(\"alter session\");\n assertFalse(boolean0);\n }", "void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }", "public boolean isAbovePlatform() { return isAbovePlatform; }", "public Continuous2D getEnvironment() {\n return environment;\n }", "boolean isHome(IGeneticMob geneticMob);", "@Override\n public boolean isStealthActive() {\n // Try to find a Mek Stealth system.\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_STEALTH)) {\n\n if (mEquip.curMode().equals(\"On\") && hasActiveECM() && !Compute.isAffectedByECCM(this, getPosition(), getPosition())) {\n // Return true if the mode is \"On\" and ECM is working\n // and we're not in ECCM\n return true;\n }\n }\n }\n // No Mek Stealth or system inactive. Return false.\n return false;\n }", "@Override\r\n\tpublic Boolean SitOn() {\n\t\treturn true;\r\n\t}", "boolean getToForeman();", "public boolean isPistonACEngine () \n\t{\n\t\tObject oo = get_Value(COLUMNNAME_IsPistonACEngine);\n\t\tif (oo != null) \n\t\t{\n\t\t\t if (oo instanceof Boolean) \n\t\t\t\t return ((Boolean)oo).booleanValue(); \n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "protected boolean isAlwaysExperienceDropper() {\n/* 1849 */ return true;\n/* */ }", "private void setDozeMode() {\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n Intent intent = new Intent();\n String packageName = getPackageName();\n PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);\n\n if (!powerManager.isIgnoringBatteryOptimizations(packageName)) {\n intent.setAction(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS);\n intent.setData(Uri.parse(\"package:\" + packageName));\n startActivity(intent);\n }\n }\n }", "public boolean isSetup(){\n return isSetup;\n }", "public void turnOn(){\n Logger.getGlobal().log(Level.INFO,\" Turning On..\");\n vendingMachine = new VendingMachine();\n inventoryPopulation();\n idle();\n }", "public void setup()\n {\n // we use a separate ArrayList to keep track of each animal. \n // our room is 50 x 50.\n creatures = new ArrayList<Creature>();\n for (int i = 0; i < 55; i++) {\n if (i < 5) {\n creatures.add(new Fox((int)(Math.random()*48)+1, 1, (int)(Math.random()*48)+1)); \n } else {\n creatures.add(new Tux((int)(Math.random()*48)+1, 1, (int)(Math.random()*48)+1));\n }\n }\n \n env.setRoom(new Room());\n \n // Add all the animals into to the environment for display\n for (Creature c : creatures) {\n env.addObject(c);\n }\n \n // Sets up the camera\n env.setCameraXYZ(25, 50, 55);\n env.setCameraPitch(-63);\n \n // Turn off the default controls\n env.setDefaultControl(false);\n env.setShowController(false);\n \n }", "public boolean isInEnv()\n {\n return environment().objectAt(location()) == this;\n }", "@Override\n public boolean isChameleonShieldActive() {\n if (!isShutDown()) {\n for (Mounted m : getMisc()) {\n EquipmentType type = m.getType();\n if (type.hasFlag(MiscType.F_CHAMELEON_SHIELD) && m.curMode().equals(\"On\") && m.isReady()) {\n return true;\n }\n }\n }\n return false;\n }", "private boolean getStandalone( HttpServletRequest request )\r\n {\r\n String strStandalone = request.getParameter( PARAMETER_STANDALONE );\r\n if ( strStandalone != null && ( strStandalone.equalsIgnoreCase( \"true\" ) || strStandalone.equalsIgnoreCase( \"on\" ) ) )\r\n {\r\n return true;\r\n }\r\n strStandalone = AppPropertiesService.getProperty( PROPERTY_STANDALONE );\r\n if ( strStandalone != null && ( strStandalone.equalsIgnoreCase( \"true\" ) || strStandalone.equalsIgnoreCase( \"on\" ) ) )\r\n {\r\n return true;\r\n }\r\n return false;\r\n }", "public void letSmartComputerSetup() {\n //generates a random spot for the flag\n int randomRow = (int)(Math.random() * 2);\n int randomCol = (int)(Math.random() * 10);\n\n //adjusts the flag for the proper team\n if(state.getCurrentTeamsTurn().getTEAMNUMBER() == 0) {\n randomRow += 8;\n }\n\n //adds the flag to the board\n state.setLastTappedPieceButton(Rank.FLAG);\n state.tapOnSquare(randomRow, randomCol);\n state.tapOnSquare(randomRow, randomCol);\n\n //places bombs around the flag if possible\n state.setLastTappedPieceButton(Rank.BOMB);\n if(randomRow != 0) {\n state.tapOnSquare(randomRow - 1, randomCol);\n state.tapOnSquare(randomRow - 1, randomCol);\n }\n if(randomRow != 9) {\n state.tapOnSquare(randomRow + 1, randomCol);\n state.tapOnSquare(randomRow + 1, randomCol);\n }\n if(randomCol != 0) {\n state.tapOnSquare(randomRow, randomCol -1);\n state.tapOnSquare(randomRow, randomCol -1);\n }\n if(randomCol != 9) {\n state.tapOnSquare(randomRow, randomCol + 1);\n state.tapOnSquare(randomRow, randomCol + 1);\n }\n\n //transitions the player to play phase\n state.transitionPhases();\n }", "private void determinePlanet(DrawButtonInterface db, boolean airResistanceHitBox)\n\t{\n\t\t// Reset boolean\n\t\tnoAtmosphere = false;\n\n\t\t// Strings of the planets are located in DrawButtonInterface under addPlanets()\n\t\tif(db.getPlanetButton().getString() == \"Earth\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 9.80665;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 1.23;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Earth\";\n\t\t\tSystem.out.println(\"Earth: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Moon\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 1.622;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Moon\";\n\n\t\t\t// Super Thin Atmosphere\n\t\t\tnoAtmosphere = true;\n\t\t\tSystem.out.println(\"Moon: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Mercury\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 3.7;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Mercury\";\n\n\t\t\t// Super Thin Atmosphere\n\t\t\tnoAtmosphere = true;\n\t\t\tSystem.out.println(\"Mercury: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Venus\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 8.87;\n\n\t\t\t// Set density(yes that high)\n\t\t\tdensityOfAir = 67;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Venus\";\n\t\t\tSystem.out.println(\"Venus: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Mars\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 3.711;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0.020;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Mars\";\n\t\t\tSystem.out.println(\"Mars: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Jupiter\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 24.79;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0.16;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Jupiter\";\n\t\t\tSystem.out.println(\"Jupiter: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Saturn\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 10.44;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0.19;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Saturn\";\n\t\t\tSystem.out.println(\"Saturn: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Uranus\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 8.69;\n\n\t\t\t// Set density name\n\t\t\tdensityOfAir = 0.42;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Uranus\";\n\t\t\tSystem.out.println(\"Uranus: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Neptune\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 11.15;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0.45;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Neptune\";\n\t\t\tSystem.out.println(\"Neptune: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Pluto\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 0.658;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Pluto\";\n\n\t\t\t// Super Thin Atmosphere\n\t\t\tnoAtmosphere = true;\n\t\t\tSystem.out.println(\"Pluto: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Io\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 1.796;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Io\";\n\n\t\t\t// Super Thin Atmosphere\n\t\t\tnoAtmosphere = true;\n\t\t\tSystem.out.println(\"Io: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Europa\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 1.314;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Europa\";\n\n\t\t\t// Super Thin Atmosphere\n\t\t\tnoAtmosphere = true;\n\t\t\tSystem.out.println(\"Europa: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Titan\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 1.352;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Titan\";\n\n\t\t\t// Super Thin Atmosphere\n\t\t\tnoAtmosphere = true;\n\t\t\tSystem.out.println(\"Titan: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Sun\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 274;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 0;\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Sun\";\n\n\t\t\t// Super Thin Atmosphere\n\t\t\tnoAtmosphere = true;\n\t\t\tSystem.out.println(\"Sun: Gravity = \" + gravity);\n\t\t}\n\t\telse if(db.getPlanetButton().getString() == \"Neutron Star\")\n\t\t{\n\t\t // Set gravity\n\t\t\tgravity = 25800 * 100000000;\n\n\t\t\t// Set density\n\t\t\tdensityOfAir = 1.23; // Doesn't matter because gravity so great\n\n\t\t\t// Set planet name\n\t\t\tplanet = \"Neutron Star\";\n\t\t\tSystem.out.println(\"Neutron Star: Gravity = \" + gravity);\n\t\t}\n\n\t\t// Final calculation for b and terminal velocity\n\t\tb = .5 * dragCoef * densityOfAir * crossSectionArea;\n\t\tterminalVelocity = Math.sqrt(((mass * gravity) / b));\n\t\tSystem.out.println(\"b: \" + b + \"TV: \" + terminalVelocity);\n\t}", "private static void mainTribrid(Player player) {\n\t\tbankInventoryAndEquipment(player);\n\t\tspawnInventory(player, TribridMain.inventorySet(player));\n\t\tspawnEquipment(player, TribridMain.equipmentSet(player));\n\t\tupdateEquipment(player);\n\t\theal(player, true, true);\n\t\tsetCombatSkills(player, \"MAIN\", false, null);\n\t\tsetPrayerAndMagicBook(player, \"ANCIENT\");\n\t\tPresets.isPresetFlagged(player, player.bankIsFullWhileUsingPreset);\n\t}", "void setEnvironment(Environment environment) {\n this.environment = environment;\n }", "public boolean isRunOnHost() {\n return Mode.HOST == mode;\n }", "Environment createEnvironment();", "Environment createEnvironment();", "private static boolean getState(Context context) {\n return Settings.System.getInt(context.getContentResolver(),\n Settings.System.AIRPLANE_MODE_ON, 0) == 1;\n }", "protected boolean isTerrainDependent()\n {\n return this.getAltitudeMode() != WorldWind.ABSOLUTE;\n }", "public void setGameEnvironment(GameEnvironment ge) {\n this.gameEnvironment = ge;\n }", "@Before\r\n\tpublic void setup()\r\n\t{\n\t\tgame = factory.makeHantoGame(HantoGameID.EPSILON_HANTO, BLUE);\r\n\t}", "private void initialiseByHand() {\n Configuration production = new Configuration(\"api.example.com\", false, 2000);\n Configuration staging = new Configuration(\"api-staging.example.com\", false, 2000);\n Configuration debug = new Configuration(\"api-dev.example.com\", true, 1000);\n Map<String, Configuration> baseVariants = new HashMap<>();\n baseVariants.put(PRODUCTION, production);\n baseVariants.put(STAGING, staging);\n baseVariants.put(DEBUG, debug);\n Neanderthal.initialise(this, baseVariants, PRODUCTION);\n }", "default boolean isBear() {\n return true;\n }", "static boolean m61447d(Context context) {\n try {\n if (System.getInt(context.getContentResolver(), \"airplane_mode_on\", 0) != 0) {\n return true;\n }\n return false;\n } catch (NullPointerException unused) {\n return false;\n }\n }", "private void loadEnvironment () {\r\n Factory forceFactory = new ForceFactory(mySimulation);\r\n int response = INPUT_CHOOSER.showDialog(null, \"Environment file\");\r\n if (response == JFileChooser.APPROVE_OPTION) {\r\n forceFactory.loadFile(INPUT_CHOOSER.getSelectedFile());\r\n }\r\n }", "public void teleport(boolean penalty) { \n\t\tPublisher teleport_h = new Publisher(\"/ariac_human/go_home\", \"std_msgs/Bool\", bridge);\n\t\tif(penalty)\t\n\t\t\tteleport_h.publish(new Bool(true));\t\n\t\telse\n\t\t\tteleport_h.publish(new Bool(false));\t\n\n\t\t// Reset \"smart\" orientation variables\n\t\tlastHumanState_MsgT = System.currentTimeMillis();\n\t\tlastUnsafeD_MsgT = System.currentTimeMillis();\n\t\tpreviousDistance = 50.0;\n\t\tisAproximating = false;\n\t}", "public void setEnvironment(Object environment) {\n this.environment = environment;\n }", "boolean isSetSystem();", "private boolean setupEconomy() {\n if (getServer().getPluginManager().getPlugin(\"Vault\") == null) {\n return false;\n }\n RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);\n if (rsp == null) {\n return false;\n }\n econ = rsp.getProvider();\n return econ != null;\n }", "public void setInPlatform(boolean inPlatform) {\n isInPlatform = inPlatform;\n }", "public boolean isSetTechPlatformEnv() {\n return this.techPlatformEnv != null;\n }", "private void automaticModeChecks(){\n // turn on lights if underground\n if (this.isUnderground()){ this.selectedTrain.setLights(1);}\n // set heat\n if (this.selectedTrain.getTemp() <= 40.0){this.selectedTrain.setThermostat(60.0);}\n else if (this.selectedTrain.getTemp() >= 80){ this.selectedTrain.setThermostat(50.0);}\n }", "private void selectPRODUCTIONEnv() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", false);\n editor.apply();\n }", "boolean goHome(IGeneticMob geneticMob);", "public void setEnvironment(String environment1) {\n this.environment = environment1;\n }", "protected boolean canSustainPlant(IBlockState state){\n return state.getBlock() == getSoilBlock();\n }", "boolean hasPants();", "@Override\n public boolean activate() {\n return Monsters.flameNpc() == null;\n }", "public boolean isPiston() {\n return this.type == Type.PISTON;\n }", "void think() {\n //get the output of the neural network\n decision = brain.output(vision);\n\n if (decision[0] > 0.8) {//output 0 is boosting\n boosting = true;\n } else {\n boosting = false;\n }\n if (decision[1] > 0.8) {//output 1 is turn left\n spin = -0.08f;\n } else {//cant turn right and left at the same time\n if (decision[2] > 0.8) {//output 2 is turn right\n spin = 0.08f;\n } else {//if neither then dont turn\n spin = 0;\n }\n }\n //shooting\n if (decision[3] > 0.8) {//output 3 is shooting\n shoot();\n }\n }", "public void changeEnvironmentTypeToTown() {\n this.setEnvironmentType(EnvironmentTypesList.getTownEnvironmentType());\n\n }", "public void setup() {\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected final SituatedEnvironment<?,?,?,?,IT> getEnvironment() {\n\t\tEnvironment env = Kernel.getSingleton().getEnvironment();\n\t\tif (env instanceof SituatedEnvironment) {\n\t\t\treturn (SituatedEnvironment<?,?,?,?,IT>)env;\n\t\t}\n\t\treturn null;\n\t}", "public boolean getIsInPlatform(){\n return isInPlatform();\n }", "void askDefaultProduction();", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "public void flashlightSwitch()\n {\n usingFlashlight = !usingFlashlight;\n }", "boolean isSwitchingScope();", "public interface EnvironmentAware extends Aware{\n void setEnvironment(Environment ev);\n}", "@Override\n\t\n\tvoid level_specific_turret_setup(){\n\t}", "boolean hasMainUtteranceTargetLevel();", "boolean canSnowFallOn();", "public boolean isSingleDriver() {\n return true;\n }", "public static Boolean isStandAloneDeployment()\n\t{\n\t\tString deploymentType=Util.getProperty(Constants.PLUGIN_TYPE);\n\t\tif(Constants.PLUGIN_TYPE_STAND_ALONE.equals(deploymentType))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void penguinStormReaction(){\n if(obstacle.getUserData().getAssetId().equals(OBSTACLE_CLOUD_ASSETS_ID)){\n if(penguin.isFrightStopped()){\n obstacle.setStormRaining(false);\n }else{\n obstacle.setStormRaining(true);\n }\n }\n }", "@BeforeTest\r\n\tpublic void setupenvi() throws IOException {\r\n\t\tsetup();\r\n\t\tinit();\r\n\t}", "public boolean isDas() {\n return env.isDas() || env.isEmbedded();\n }", "public abstract boolean attack(TemporaryCharm i);", "private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }", "abstract void setup();", "@Override\n public boolean activate() {\n //When will this activate?\n return Areas.FALADOR.contains(ctx.players.local().tile())\n && ctx.widgets.component(1371,0).visible()\n && !ctx.objects.select().name(\"Waterpump\").within(6.0).isEmpty();\n }", "private void setupSpout(P factions)\n \t{\n \t\tPlugin test = factions.getServer().getPluginManager().getPlugin(\"Spout\");\n \n \t\tif (test != null && test.isEnabled())\n \t\t{\n \t\t\tSpoutFeatures.setAvailable(true, test.getDescription().getFullName());\n \t\t}\n \t}", "abstract public boolean isTurtleCommand();", "@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }", "@Override\n public void powerOn() {\n if(isOn)System.out.println(\"The Projector is already ON!\");\n else{\n System.out.println(\"The Projector is now ON!\");\n isOn = true;\n }\n }", "public static boolean playsAsZerg() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Zerg);\n }", "public void create(Environment environment);", "default boolean isBear() {\n return false;\n }" ]
[ "0.5568406", "0.55269414", "0.54672176", "0.546719", "0.546576", "0.5408094", "0.5343838", "0.5314811", "0.52759576", "0.5258975", "0.5157153", "0.50920796", "0.50833374", "0.5079553", "0.5072052", "0.5067137", "0.50607663", "0.50232935", "0.50197154", "0.49972683", "0.49948034", "0.49875996", "0.4982812", "0.49711898", "0.4960752", "0.49472186", "0.49393943", "0.49388725", "0.4938281", "0.49242178", "0.4922126", "0.4921817", "0.49206352", "0.49105468", "0.49056074", "0.48951313", "0.48889804", "0.4863456", "0.4860645", "0.485254", "0.48476645", "0.48472166", "0.48438665", "0.4842955", "0.48428804", "0.48271522", "0.48173657", "0.48048413", "0.48042706", "0.48042706", "0.4803394", "0.4802349", "0.4801751", "0.47987586", "0.47936884", "0.47890934", "0.47876123", "0.47856772", "0.47837847", "0.477856", "0.47730574", "0.4770531", "0.47669873", "0.47626415", "0.475953", "0.47592998", "0.4756492", "0.47548673", "0.47509703", "0.4749856", "0.47472736", "0.4743243", "0.47413814", "0.47413185", "0.4739737", "0.47380885", "0.47369", "0.47366878", "0.4723481", "0.4722895", "0.47157818", "0.47121736", "0.4711241", "0.4710019", "0.47013646", "0.47001714", "0.46992123", "0.46976265", "0.4697252", "0.4691792", "0.46876076", "0.46842065", "0.46791032", "0.4676466", "0.46746966", "0.46716812", "0.4666272", "0.46652272", "0.4661959", "0.4661452", "0.46584302" ]
0.0
-1
Constructor for queue of given size
public BoundedQueue(int size){ queueArray = (T[]) new Object[size]; tail = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "myQueue(int size){\n }", "public Queue(int size)\n\t{\n\t\tlist = new String[size];\n\t\trear = size - 1;\n\t}", "public Queue(int size){\r\n\t\tthis.maxSize = size;\r\n\t\tthis.queueArray = new long[size];\r\n\t\tthis.front = 0; //index pos of the first slot of array\r\n\t\tthis.rear = -1; // there's no item in the array yet to be considered last item.\r\n\t\tthis.nItems = 0; //don't have elements in array yet\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tQueue(int size){\n\t\tarr = (T[]) new Object[size];\n\t\tcapacity = size;\n\t\tfront = 0;\n\t\trear = -1;\n\t\tcount = 0;\n\t}", "public FixedQueue(int size) {\r\n q = new char[size]; // allocate memory for queue\r\n putloc = getlock = 0;\r\n }", "public Queue()\r\n\t{\r\n\t\tthis(capacity);\r\n\t}", "public SimpleQueue(int size) {\n initQueue(size);\n WRITE_PTR = 0;\n READ_PTR = 0;\n }", "public ArrayQueue() {\n this(10);\n }", "public CellQueue(int size) {\n\t\tif (size <= 0) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Initial size must be greater than 0\");\n\t\t}\n\t\tmanyItems = 0;\n\t\tdata = new Cell[size];\n\t}", "public Queue(int s)\n\t{\n\t\tsize = s;\n\t\tqueue = new int[s];\n\t}", "public CircularArrayQueue() {\n\t\tthis(QUEUESIZE);\t// constructs queue with default queue size\n\t}", "public PriorityQueue(int size) {\n nodes = new Vector(size);\n }", "public HeapPriorityQueue(int size)\n\t{\n\t\tstorage = new Comparable[size + 1];\n\t\tcurrentSize = 0;\n\t}", "public DEQueue(int size) {\n tasks = new Runnable[size];\n top = new AtomicStampedReference<Integer>(0, 0);\n bottom = 0;\n }", "Queue3(int size){\n\t\tq = new char[size];\n\t\tputloc = getloc = 0;\n\t}", "public Queue(){\n first = null;\n last = null;\n N = 0;\n }", "public ArrayQueue() {\n\t\tthis(Integer.MAX_VALUE);\n\t}", "public Queue() {}", "public PQueue(int length) {\n this(length,null);\n }", "public MyCircularQueue(int k) {\n this.queue = new int[1000];\n this.size = k;\n }", "public ArrayQueue(int startSize) {\n if (startSize <= 1) startSize = 2;\n this.queue = new Object[startSize];\n this.size = 0;\n this.startPos = 0;\n this.currentPos = 0;\n }", "public <T> ArrayBlockingQueue<T> create(int size){\n return new ArrayBlockingQueue<T>(size);\n }", "public RandomizedQueue() {\n\t\tsize = 0;\n\t\tqueue = (Item[]) new Object[size];\n\t}", "public Queue()\n\t{\n\t\tsuper();\n\t}", "public MessageQueue(int capacity) \n { \n elements = new Message[capacity]; \n count = 0; \n head = 0; \n tail = 0; \n }", "@SuppressWarnings(\"unchecked\")\n public ArrayQueue(int initialSize) {\n if (initialSize < 1) initialSize = INITIAL_SIZE;\n store = (T[]) new Object[initialSize];\n frontIndex = 0;\n count = 0;\n }", "public IntPriorityQueue(int size) {\n initialize(size);\n }", "public RandomizedQueue() { }", "public MyQueue() {\n \n }", "public PriorityQueue(int size){\n heap = new Element[size];\n }", "public RandomizedQueue() {\n size = 0;\n arr = (Item[]) new Object[MINIMUM_STORAGE_SIZE];\n }", "public Deque() {\n size = 0;\n\n }", "public MyQueue() {\n front = null;\n rear = null;\n size = 0;\n }", "public HeapPriorityQueue () \n\t{\n\t\tthis(DEFAULT_SIZE);\n\t}", "public PQueue() {\n this(0,null);\n }", "public BlockingQueue(int maxSize) {\r\n\t\tthis.maxSize = maxSize;\r\n\t\tqueue = new LinkedList<T>();\r\n\t}", "public MyQueue() {\n\n }", "public Queue() {\n\t\tfirst = null;\n\t\tlast = null;\n\t\tN = 0;\n\t}", "public RandomizedQueue() {\n \t\titems = new Object[MIN_COUNT];\n \t\tsize = 0;\n \t}", "public Queue(){ }", "public ArrayQueue(int capacity){\r\n\t\tq = new String [capacity];\r\n\t\tn = 0;\r\n\t\tfirst = 0;\r\n\t\tlast = 0; \r\n\t}", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "public RandomizedQueue() {\n queue = (Item[]) new Object[1];\n size = 0;\n }", "public PriorityQueue(final int theLength) {\r\n super(theLength);\r\n }", "public Queue(int maxsize){\n this.maxsize=maxsize; // sets the limit\n System.out.println(\"The maxsize was set to \"+maxsize);\n }", "public MyQueue() {\n\n }", "public MyQueue() {\n\n }", "public static Queue newQueue(int n){\n Queue q = new Queue(); //New object \n String array[] = new String[n]; //Create a new array of specified size \n q.names = array; //Make a new array onject \n q.queuesize = 0; //Set the initial size to 0 \n return q; //Return the whole queue out\n }", "public SQueue(){\n\n\t}", "public MyQueue() {\n stack = new LinkedList<Integer>();\n cache = new LinkedList<Integer>();\n }", "public RandomizedQueue() {\n a = (Item[]) new Object[1];\n n = 0;\n }", "Queue() {\r\n\t\telements = new int[DEFAULT_CAPACITY];\r\n\t}", "public RandomizedQueue(){\n itemCount = 0;\n array = (Item[]) new Object[8]; // initial size of 8 just to not keep resizing in the early stages\n }", "public test346(int size) {\n \tqueue = new LinkedList<>(); \n \tcap = size;\n }", "public RandomizedQueue() {\n size = 0;\n items = (Item[]) new Object[1];\n }", "public Cache(int size) {\r\n\t\t\r\n\t\tcache = new LinkedList<T>();\r\n\t\tmaxStorage = size;\r\n\t}", "ValueQueue() { super(); }", "public RandomizedQueue() {\n this.capacity = 2;\n this.numberOfItems = 0;\n\n this.queue = (Item[]) new Object[capacity];\n }", "public RandomizedQueue() {\n this.size = 0;\n this.storage = (Item[]) new Object[1];\n this.currentIndex = 0;\n }", "public TimeSliceQueue(int size, int resolution) {\n this(size, resolution, 0);\n }", "public MyQueue() {\n storeStack = new Stack<>();\n }", "public HighPerformanceQueue(int size) throws NoSuchFieldException {\n if(size <= 0) throw new IllegalArgumentException(\"size must be positive\");\n if((size & (size-1)) != 0){\n throw new IllegalArgumentException(\"size must be multiple of 2\");\n }\n\n this.max_size = size;\n front = rear = 0;\n\n // Space pre allocation\n data = new Object[max_size];\n available = new boolean[max_size];\n\n // Get the offset in the object and modify it with CAS later\n this.help = Util.createUnsafe();\n frontOffset = help.objectFieldOffset(HighPerformanceQueue.class.getDeclaredField(\"front\"));\n rearOffset = help.objectFieldOffset(HighPerformanceQueue.class.getDeclaredField(\"rear\"));\n }", "public PriorityQueue(int capacity) { \r\n this.capacity=capacity;\r\n this.currentSize=0;\r\n this.queue=new NodeBase[capacity];\r\n }", "public MyQueue() {\n stack = new Stack<>();\n }", "public RandomizedQueue() {\n queue = (Item[]) new Object[1];\n }", "public MyQueue() {\n queue = new PriorityQueue<>();\n }", "public RandomizedQueue() {\n count = 0;\n N = 2;\n }", "public SimpleQueue() {\n initQueue(DEFAULT_SIZE);\n WRITE_PTR = 0;\n READ_PTR = 0;\n LAST_READ_TIME = now();\n LAST_WRITE_TIME = now();\n }", "public AsyncQueueBroker(int capacity, int timeoutDuration)\n {\n super(capacity, timeoutDuration);\n queue = new ArrayBlockingQueue<V>(100);\n }", "public HoldingQueue(int maxSize) {\n this.maxSize = maxSize;\n holdingQueue = new ArrayList<Person>(maxSize);\n numPeople = 0;\n }", "public RandomizedQueue() {\r\n\t\tqueue = (Item[]) new Object[1];\r\n\t}", "public RandomizedQueue() {\n\t\tN = 0;\n\t\tarr = (Item []) new Object[1];\n\t}", "public RandomizedQueue() {\n s = (Item[]) new Object[1];\n }", "public ArrayQueue() {\n Object[] arr = new Object[INITIAL_CAPACITY];\n backingArray = (T[]) arr;\n size = 0;\n front = 0;\n }", "public Deque() {}", "public RandomizedQueue() {\n collection = (Item[]) new Object[1];\n }", "public RandomizedQueue() {\n first = 0;\n s = (Item[]) new Object[INIT_CAPACITY];\n }", "public CoalescingBufferQueue(Channel channel, int initSize)\r\n/* 20: */ {\r\n/* 21:44 */ this(channel, initSize, false);\r\n/* 22: */ }", "public BaseMpscLinkedArrayQueue(int initialCapacity)\r\n/* 20: */ {\r\n/* 21:184 */ RangeUtil.checkGreaterThanOrEqual(initialCapacity, 2, \"initialCapacity\");\r\n/* 22: */ \r\n/* 23:186 */ int p2capacity = Pow2.roundToPowerOfTwo(initialCapacity);\r\n/* 24: */ \r\n/* 25:188 */ long mask = p2capacity - 1 << 1;\r\n/* 26: */ \r\n/* 27:190 */ E[] buffer = CircularArrayOffsetCalculator.allocate(p2capacity + 1);\r\n/* 28:191 */ this.producerBuffer = buffer;\r\n/* 29:192 */ this.producerMask = mask;\r\n/* 30:193 */ this.consumerBuffer = buffer;\r\n/* 31:194 */ this.consumerMask = mask;\r\n/* 32:195 */ soProducerLimit(mask);\r\n/* 33: */ }", "public RandomizedQueue()\r\n {\r\n a = (Item[]) new Object[2];\r\n n = 0;\r\n }", "public BetterParkingLot( int size )\n\t{\n\t\tsuper(size);\n queue = new PriorityQueue<Integer>(size);\n\n // add all available parking slots in zero-indexed form\n for(int i=0; i <= size; i++) // this is my only problem. It HAS to be O(n) here.\n queue.add(i);\n\t}", "@SuppressWarnings(\"unchecked\")\n public ArrayQueue(int capacity) {\n headLock = new ReentrantLock();\n tailLock = new ReentrantLock();\n data = (T[]) new Object[capacity+1];\n head = 0;\n tail = 0;\n }", "PriorityQueueUsingArray(int size) {\n\t\tthis.array = new Nodes[size + 1];\n\t}", "public ListQueue() {\n \n }", "public CincamimisQueue()\r\n {\r\n measurementQueue=new ArrayBlockingQueue(10,true);\r\n }", "public MyQueue() {\n pushStack = new Stack<>();\n popStack = new Stack<>();\n }", "public CircularQueue(int maxSize)\n\t{\n\t\tqueueArray = new int[maxSize];\n\t\tfront = -1;\n\t\trear = -1;\n\t}", "public As2RandomizedQueue() {\n resize(1);\n }", "public MyQueue() {\n push=new Stack<>();\n pull=new Stack<>();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic ArrayQueue() {\r\n a = (Item[]) new Object[2];\r\n n = 0;\r\n head =0;\r\n tail = 0;\r\n }", "public MyCircularQueue(int k) {\n this.capacity = k;\n this.queue = new int[k];\n this.headIndex = 0;\n this.count = 0;\n }", "public MyCircularQueue(int k) {\n b = e = -1;\n buf = new int[k];\n }", "public LinkedQueue(){\n length = 0;\n front = rear = null;\n }", "public WaitablePQueue() {\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\n\t}", "public CacheThreadPool(final int size)\n {\n synchronized (m_lock)\n {\n m_pool = new PooledThread[size];\n \n // We assume that a list is expanded once it reaches half of its capacity\n // and it doesn't harm if the assumption is wrong.\n m_index = new ArrayList(size + 1 + (size / 2));\n }\n }", "public CircularQueueUsingArray() {\n\t\tarray = new int[size];\n\t}", "public QueueNode() {\n first = null;\n last = null;\n n = 0;\n }", "@SuppressWarnings(\"unchecked\")\n public RandomizedQueue()\n {\n items = (Item[]) new Object[5];\n }", "public LinkedQueue() \r\n\t{\r\n\t\tthis.size = 0;\r\n\t\tthis.head = null;\r\n\t\tthis.tail = null;\r\n\t}", "public Queue()\n\t{\n\t\thead = null;\n\t}" ]
[ "0.83054394", "0.8263977", "0.81641686", "0.8041046", "0.80007476", "0.791695", "0.7843932", "0.7831646", "0.775514", "0.7713408", "0.7627687", "0.7609012", "0.75693125", "0.74778193", "0.7476374", "0.7442957", "0.7386989", "0.7358156", "0.7339935", "0.733377", "0.7332386", "0.7322514", "0.7260412", "0.7235153", "0.7211698", "0.7206664", "0.7179532", "0.7166198", "0.71640724", "0.7158587", "0.7148261", "0.7146079", "0.71286803", "0.71224934", "0.70965093", "0.7074242", "0.70738786", "0.7070009", "0.7061693", "0.70570534", "0.7041323", "0.70319146", "0.7027906", "0.700914", "0.70086646", "0.69549596", "0.69549596", "0.6945658", "0.69326526", "0.691589", "0.6914053", "0.6911094", "0.69016826", "0.68969554", "0.687007", "0.68657833", "0.6843837", "0.6838304", "0.68329453", "0.6829015", "0.6823824", "0.6820332", "0.6819355", "0.681007", "0.6807239", "0.6782599", "0.6743001", "0.6737095", "0.6725249", "0.67170686", "0.671188", "0.6703655", "0.6700527", "0.66996187", "0.6699615", "0.66968834", "0.6682406", "0.6650746", "0.66488403", "0.66465765", "0.664501", "0.6640743", "0.66363406", "0.66315323", "0.6597359", "0.6596889", "0.6596175", "0.6582109", "0.65818286", "0.65764326", "0.65754014", "0.65728295", "0.6558472", "0.6549164", "0.65397483", "0.6532066", "0.6531467", "0.65275645", "0.6520775", "0.65163046" ]
0.80795306
3
return the number of elements in the queue
int size(){ return tail; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "public int size() {\n return queue.size();\n }", "public int size() {\n\t\treturn queue.size();\n\t}", "public int size() {\n return _queue.size();\n }", "public int size() {\n return this.queue.size();\n }", "public int getCount() {\n return queue.size();\n }", "int getQueueSize();", "public int size() \r\n {\r\n if(measurementQueue==null) return 0;\r\n \r\n return measurementQueue.size();\r\n }", "public int queueSize() {\n\t\treturn queue.size();\t\n\t}", "public static int size() {\n System.out.println();\n System.out.println(\"The size of the queue is: \" + queue.size());\t \n return queue.size();\n }", "public int size()\n\t{\n\t\tif(isEmpty())\n\t\t\treturn 0;\n\t\tif(isFull())\n\t\t\treturn queueArray.length;\n\t\t\n\t\tint i=front;\n\t\tint sz=0;\n\t\tif(front<=rear)\n\t\t\twhile(i<=rear)\n\t\t\t{\n\t\t\t\tsz++;\n\t\t\t\ti++;\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\twhile(i<=queueArray.length-1)\n\t\t\t{\n\t\t\t\tsz++;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ti=0;\n\t\t\twhile(i<=rear)\n\t\t\t{\n\t\t\t\tsz++;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\treturn sz;\n\t}", "public abstract int getQueueLength();", "public int size() {\n\t\t//Because we're the only consumer, we know nothing will be removed while\n\t\t//we're computing the size, so we know there are at least (rear - front)\n\t\t//elements already added.\n\t\treturn (int)(rear.get() - front.get());\n\t}", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "public long getQueueSize(){\n return queue.size();\n }", "public int size() {\n processQueue();\n return weakCache.size();\n }", "public int numVehiclesInQueue() {\r\n\t\treturn vehiclesInQueue.size();\r\n\t}", "public int size() {\r\n\t\treturn q.size();\r\n\t}", "public int inputQueueSize() {\n\t\tsynchronized (inputQueue) {\n\t\t\treturn inputQueue.size();\n\t\t}\n\t}", "public int getQueueSize() {\r\n\t\treturn this.queue.size();\r\n\t}", "public int size() {\n \t\n \tint i = 0;\n \t\n \twhile(this.front != null) {\n \t\ti = i+1;\n \t\tthis.front = this.front.next; \n \t}\n \t\n \treturn i;\n \t\n }", "public int size()\n\t{\n\t\treturn requestQueue != null ? requestQueue.size() : 0;\n\t}", "Long getNumberOfElement();", "public int queueArrayLength(){\n\t\treturn queueArray.length;\n\t}", "public int getRunnableCount() {\n return queue.size();\n }", "public int size() {\r\n int temp = 0;\r\n for (int i = 0; i < elem.length; i++) {\r\n if (elem[i] != null) {\r\n temp++;\r\n }\r\n }\r\n return temp;\r\n }", "final int getQueueSize() {\n // suppress momentarily negative values\n return Math.max(0, sp - base);\n }", "public int getNumQueues() {\n return queues.size();\n }", "@Override\n public int queueLength() {\n return this.job_queue.size();\n }", "public int size() {\n int found = 0;\n Node<T> it = head.get();\n // Do a raw count.\n for (int i = 0; i < capacity; i++) {\n if (!it.free.get()) {\n found += 1;\n }\n it = it.next;\n }\n return found;\n }", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public final int size()\r\n/* 41: */ {\r\n/* 42:215 */ long after = lvConsumerIndex();\r\n/* 43: */ for (;;)\r\n/* 44: */ {\r\n/* 45:219 */ long before = after;\r\n/* 46:220 */ long currentProducerIndex = lvProducerIndex();\r\n/* 47:221 */ after = lvConsumerIndex();\r\n/* 48:222 */ if (before == after)\r\n/* 49: */ {\r\n/* 50:224 */ long size = currentProducerIndex - after >> 1;\r\n/* 51:225 */ break;\r\n/* 52: */ }\r\n/* 53: */ }\r\n/* 54: */ long size;\r\n/* 55:230 */ if (size > 2147483647L) {\r\n/* 56:232 */ return 2147483647;\r\n/* 57: */ }\r\n/* 58:236 */ return (int)size;\r\n/* 59: */ }", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int getNumberOfElements();", "public int size() {\r\n assert numElements >= 0 : numElements;\r\n assert numElements <= capacity : numElements;\r\n assert numElements >= elementsByFitness.size() : numElements;\r\n return numElements;\r\n }", "public int getQueueSize() {\n return queue.getQueueSize();\n }", "public synchronized int size() {\n return count;\n }", "public abstract Integer getNumberOfElements();", "public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}", "public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}", "public int size()\r\n {\r\n return count;\r\n }", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "public int size()\n {\n return count;\n }", "public int size() {\n return numOfElements;\n }", "public int size() {\n\t\tint count = 0;\n\t\tListNode current = front;\n\t\twhile (current != null) {\n\t\t\tcurrent = current.next;\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn this.elements.size();\n\t}", "public int size() {\r\n\t\treturn elements.size();\r\n\t}", "public int size()\n {\n return N;\n }", "public int size() {\n\t\treturn elements.size();\n\t}", "public int size() {\n return elements.size();\n }", "public int size(){\n int size = 0;\n for(LinkedList<E> item : this.data){\n size += item.size();\n }\n return size;\n }", "public void incTotalOfQueueEntries() {\n totalOfQueueEntries++;\n }", "public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}", "public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }", "public int size() {\n\t\treturn N;\n\t}", "public int size() {\n\t\treturn N;\n\t}", "public int size() {\n\t\treturn N;\n\t}", "public int size() {\n\t\treturn N;\n\t}", "public int size() {\n\t\treturn N;\n\t}", "int size() {\n if (this.next.equals(this)) {\n return 0;\n }\n return this.next.size(this);\n }", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "public int count() {\n\t\tint q = 0;\n\t\tfor(int i = 0; i < list.length; i++) if (list[i] != null) q++;\n\t\treturn q;\n\t\t\n\t}", "public int size() {\n return count;\n }", "public int size(){\n\t\t\r\n\t\treturn N;\r\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() { return dequeSize; }", "public int size() {\n return N;\n }", "public int size() {\n return N;\n }", "public int size() {\n return N;\n }", "public int size() {\n return N;\n }", "public int size() {\n return N;\n }", "public int size() {\n return N;\n }", "public int size() {\n return N;\n }", "public int size() {\n\n return elements.size();\n }", "public int size() { return count; }", "public int size()\n {\n Node n = head.getNext();\n int count = 0;\n while(n != null)\n {\n count++; \n n = n.getNext();\n }\n return count;\n }", "public int size() {\r\n return N;\r\n }", "public int size()\n\t\t{\n\t\treturn N;\n\t\t}", "public int size()\r\n { return N; }", "public int getOutgoingQueueSize();", "int getNumBufferedBytes() {\n ChannelBuffer buf;\n int IOQueued;\n for (IOQueued = 0, buf = inQueueHead;\n buf != null; buf = buf.next) {\n IOQueued += buf.nextAdded - buf.nextRemoved;\n }\n return IOQueued;\n }", "@Test\n public void sizeTest() {\n assertThat(4, is(this.queue.size()));\n }", "public static int size(ArrayQueueADT arrayQueue) {\n return arrayQueue.size;\n }", "@Override\n public int size() {\n // Returns the number of elements stored in the heap\n return nelems;\n }", "public int queueSize() {\n return executor.getQueue().size();\n }", "public int size(){\r\n\t\treturn N;\r\n\t}", "public int size() {\r\n\t\treturn elements;\r\n\t}", "public final int size()\n {\n return m_count;\n }", "public int size() {\n\t\treturn elements;\n\t}", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "public int size()\n\t{\n\t\treturn m_elements.size();\n\t}", "Integer size();", "Integer size();", "public int size()\r\n\t{\r\n\t\treturn heap.size();\r\n\t}", "@Override\n\tpublic int size() {\n\t\treturn N;\n\t}", "public int size() {\n return qSize;\n }", "long getExcutorTasksInWorkQueueCount();", "public int size() {\n return N;\n\n }", "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}" ]
[ "0.84412354", "0.82808983", "0.8245116", "0.821761", "0.8182177", "0.8157369", "0.79931134", "0.7960584", "0.7923569", "0.79086787", "0.7820503", "0.779916", "0.7670427", "0.75745755", "0.75431305", "0.752689", "0.75117755", "0.7449031", "0.7435618", "0.73463833", "0.7343401", "0.7307777", "0.7178069", "0.7151068", "0.7133041", "0.7122699", "0.71077627", "0.7095026", "0.7092921", "0.7090187", "0.70637465", "0.7049669", "0.7042706", "0.7029678", "0.7027411", "0.70262295", "0.7023946", "0.7005809", "0.6987611", "0.6987357", "0.6987265", "0.69802284", "0.696872", "0.69661725", "0.69646287", "0.69594514", "0.69563824", "0.69556665", "0.6955259", "0.6953559", "0.6952305", "0.69428045", "0.69350517", "0.6932198", "0.6930325", "0.6930325", "0.6930325", "0.6930325", "0.6930325", "0.6927903", "0.69244045", "0.6919408", "0.69070023", "0.6901146", "0.6900963", "0.6900963", "0.6900963", "0.68931264", "0.6890162", "0.6890162", "0.6890162", "0.6890162", "0.6890162", "0.6890162", "0.6890162", "0.68892664", "0.68841445", "0.6883646", "0.6883216", "0.688104", "0.68799806", "0.6876558", "0.6871409", "0.6869765", "0.685643", "0.6854969", "0.68514574", "0.6848816", "0.683856", "0.6835191", "0.683115", "0.6829074", "0.68266416", "0.6826569", "0.6826569", "0.6826508", "0.68236744", "0.6821051", "0.68124175", "0.68106955", "0.6803419" ]
0.0
-1
check if the queue is empty
boolean isEmpty(){ return tail==0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isEmpty() {\n return queue.isEmpty();\n }", "@Override\n public boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean isEmpty() \n {\n\treturn queue.size() == 0;\n }", "public boolean queueEmpty() {\r\n\t\tif (vehiclesInQueue.size() == 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean isEmpty()\n {\n return queue.isEmpty();\n }", "public boolean isEmpty() {\n return this.queue.size() == 0;\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}", "public boolean isEmpty(){\n\t\tif(queue.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\r\n return this.queueMain.isEmpty();\r\n }", "public boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean empty() {\r\n return queue1.size() == 0;\r\n }", "public boolean empty() {\r\n return queue1.size() == 0;\r\n }", "public boolean empty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean isQueueEmpty(Queue objQueue){\r\n\t\treturn objQueue.getRare()==-1;\r\n\t}", "public boolean queueFull() {\r\n\t\tif (vehiclesInQueue.size() > maxQueueSize) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isFull(){\n return size == arrayQueue.length;\n }", "public static boolean isEmpty() {\n System.out.println();\t \n if(queue.isEmpty()) {\t \n System.out.println(\"The queue is currently empty and has no elements.\");\t \t \t \n }\n else {\n System.out.println(\"The queue is currently not empty.\");\t \t\t \n }\n return queue.isEmpty();\n }", "public boolean isEmpty() {\n return holdingQueue.isEmpty();\n }", "private boolean queueFullError() {\n\t\tSystem.out.println(\"Queue Full!!!\");\n\t\treturn false;\n\t}", "public boolean isEmpty()\r\n\t{\n\t\tif(backIndex<0)\r\n\t\t{\r\n\t\t\tbackIndex=-1;\r\n\t\t\tSystem.out.println(\"Queue is Empty\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isQueueFull(Queue objQueue){\r\n\t\treturn objQueue.getRare()==objQueue.getArrOueue().length;\r\n\t}", "public boolean isMessageQueueEmpty() {\r\n\t\treturn this.messages.size() == 0;\r\n\t}", "public boolean empty() {\n return queue1.isEmpty();\n }", "public static boolean isEmpty() {\n\t\treturn resultQueue.isEmpty();\n\t}", "public boolean isFull() { return front == (rear + 1) % MAX_QUEUE_SIZE; }", "public boolean isEmpty() {\r\n boolean z = false;\r\n if (!isUnconfinedQueueEmpty()) {\r\n return false;\r\n }\r\n DelayedTaskQueue delayedTaskQueue = (DelayedTaskQueue) this._delayed;\r\n if (delayedTaskQueue != null && !delayedTaskQueue.isEmpty()) {\r\n return false;\r\n }\r\n Object obj = this._queue;\r\n if (obj != null) {\r\n if (obj instanceof LockFreeTaskQueueCore) {\r\n z = ((LockFreeTaskQueueCore) obj).isEmpty();\r\n }\r\n return z;\r\n }\r\n z = true;\r\n return z;\r\n }", "private void check() {\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new RuntimeException(\"Queue is empty\");\r\n\t\t}\r\n\t}", "public boolean isFull() {\n int nexttail = (tail + 1 == queue.length) ? 0 : tail + 1;\n return (nexttail == head) && (queue[tail] != null);\n }", "public boolean isEmpty()\r\n {\r\n if(measurementQueue==null) return true;\r\n \r\n return measurementQueue.isEmpty();\r\n }", "public boolean empty() {\n return normalQueue.isEmpty() && reverseQueue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty() && forReverse.isEmpty();\n }", "public boolean empty() {\n return queueA.isEmpty() && queueB.isEmpty();\n }", "public boolean isFull()\n\t{\n\t return (front==0 && rear==queueArray.length-1 || (front==rear+1));\n\t}", "public boolean isEmpty() { return (dequeSize == 0); }", "public boolean isEmpty() {\n // Write your code here\n return queue1.isEmpty() && queue2.isEmpty();\n }", "public boolean isEmpty() {\n return qSize == 0;\n }", "public void testEmptyFull() {\n SynchronousQueue q = new SynchronousQueue();\n assertTrue(q.isEmpty());\n\tassertEquals(0, q.size());\n assertEquals(0, q.remainingCapacity());\n assertFalse(q.offer(zero));\n }", "private boolean isEmpty() {\n int ro = reserveOffset;\n if (ro >= reserve) {\n if (queue[reserve].isCommitted()) {\n ro = reserve + 1;\n } else {\n ro = reserve;\n }\n }\n\n LOG.debug(\"Effective flush/reserve offset {}/{}\", flushOffset, ro);\n return ro <= flushOffset;\n }", "public boolean isEmpty(){\n\t\treturn ( startQueue.isEmpty() && finishQueue.isEmpty() && completedRuns.isEmpty() );\n\t}", "boolean isEmpty() {\n\t\t\n\t\t// array is empty if no elements can be polled from it\n\t\t// \"canPoll\" flag shows if any elements can be polled from queue\n\t\t// NOT \"canPoll\" means - empty\n\t\t\n\t\treturn !canPoll;\n\t}", "public boolean empty() {\n\t if(q.size()==0) return true;\n\t return false;\n\t }", "public boolean empty() {\n return q.isEmpty();\n }", "public boolean empty() {\n return q.isEmpty();\n }", "public boolean isEmpty() {\n return (head == tail) && (queue[head] == null);\n }", "public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }", "public boolean empty() { \t \n\t\t return size <= 0;\t \n }", "public boolean empty() {\n if (queue1.isEmpty() && queue2.isEmpty()){\n return true;\n }\n return false;\n }", "@Test\n public void emptyFalseTest() {\n SimpleQueue<String> queue = new SimpleQueue<>();\n final String result = queue.push(this.work1);\n assertThat(false, is(queue.empty()));\n assertThat(\"work1\", is(result));\n }", "@Test\n public void emptyTrueTest() {\n SimpleQueue<String> queue = new SimpleQueue<>();\n assertThat(true, is(queue.empty()));\n }", "public boolean isEmpty(){\n return myHeap.getLength() == 0;\n }", "private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean empty() {\n return size <= 0;\n }", "@Override\n public boolean isEmpty() {\n return _size == 0;\n }", "public boolean empty() {\r\n return size == 0;\r\n }", "public boolean isEmpty(){\r\n return currentSize == 0;\r\n }", "@Test\n public void testIsEmpty() {\n this.queue = new HeapPriorityQueue<Person>(5); \n boolean actualResult = this.queue.isEmpty();\n \n boolean expectedResult = true;\n \n assertEquals(expectedResult, actualResult);\n }", "public synchronized boolean isEmpty() {\r\n return size == 0;\r\n }", "public boolean empty() {\n return push.isEmpty();\n }", "public boolean empty()\r\n\t{\r\n\t\treturn currentSize == 0;\r\n\t}", "private boolean isEmpty() {\n return (size == 0);\n }", "private boolean isEmpty() { return getSize() == 0; }", "public boolean empty() {\n return size == 0;\n }", "public boolean isEmpty() {\n \t return size == 0;\n }", "@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }", "public boolean isSetQueue() {\n return this.queue != null;\n }", "public boolean clear() {\n return queue.clear();\n }", "public boolean isEmpty()\n\t{ \n\t\treturn (front==-1);\n\t}", "public boolean isEmpty(){\n return size == 0;\n }", "public void testFairEmptyFull() {\n SynchronousQueue q = new SynchronousQueue(true);\n assertTrue(q.isEmpty());\n\tassertEquals(0, q.size());\n assertEquals(0, q.remainingCapacity());\n assertFalse(q.offer(zero));\n }", "public boolean isEmpty()\n {\n return heapSize == 0;\n }", "public boolean isEmpty(){\n return size == 0;\n }", "public boolean isEmpty(){\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return heapSize == 0;\n }", "public boolean isEmpty() {\n\t\tboolean empty = true;\n\n\t\tfor(LinkedList<Passenger> queue : queues) { // loop through each queue to see if its empty.\n\t\t\tif(!queue.isEmpty()){\n\t\t\t\tempty = false;\n\t\t\t}\n \t}\n\t\treturn empty;\n }", "public boolean isQueueClosed();", "@Override\n public boolean isEmpty()\n {\n return size == 0;\n }", "@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }", "public boolean empty() {\n\t\treturn (size() <= 0);\n\t}", "public synchronized boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty()\n {\n return size <= 0;\n }" ]
[ "0.8558963", "0.8503415", "0.83926964", "0.831774", "0.8315382", "0.8275619", "0.8243737", "0.82242405", "0.81682605", "0.81622714", "0.8157458", "0.8157458", "0.8157458", "0.8157458", "0.8157458", "0.8157458", "0.8157458", "0.81539166", "0.81539166", "0.81539166", "0.81539166", "0.81539166", "0.81514823", "0.814453", "0.81438434", "0.81438434", "0.81380904", "0.8117716", "0.8117716", "0.8085308", "0.8068686", "0.8001769", "0.79376996", "0.7936515", "0.7922173", "0.7913046", "0.7888939", "0.7816826", "0.7793327", "0.7690851", "0.7685032", "0.76585925", "0.7593794", "0.7590092", "0.75689816", "0.75461024", "0.75229967", "0.7521763", "0.7496398", "0.74739873", "0.746727", "0.74447113", "0.74377555", "0.74041545", "0.7365036", "0.7341657", "0.7338657", "0.7332738", "0.7318568", "0.73103493", "0.72967714", "0.7296741", "0.72549087", "0.7205153", "0.7199316", "0.7181433", "0.7151256", "0.71490616", "0.71456575", "0.71396995", "0.7134956", "0.71194047", "0.70969576", "0.7089512", "0.7088236", "0.7066952", "0.7066041", "0.70583373", "0.7051024", "0.7050311", "0.704685", "0.7030671", "0.7027963", "0.70264316", "0.701291", "0.7012471", "0.70093477", "0.70093477", "0.70082396", "0.7005697", "0.6997064", "0.69957495", "0.6995556", "0.6990895", "0.6990147", "0.6981475", "0.6981475", "0.6981475", "0.6981475", "0.6981475", "0.6976772" ]
0.0
-1