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 |
|---|---|---|---|---|---|---|
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // EXCEPTION_ID\n return EXCEPTION_ID;\n case 3: // USER_ID\n return USER_ID;\n case 4: // REPORT_DATE\n return REPORT_DATE;\n case 5: // UN_ASSURE_CONDITION\n return UN_ASSURE_CONDITION;\n case 6: // HOUSE_PROPERY_CONDITION\n return HOUSE_PROPERY_CONDITION;\n case 7: // REMARK\n return REMARK;\n case 8: // CREATE_DATE\n return CREATE_DATE;\n case 9: // CREATE_ID\n return CREATE_ID;\n case 10: // UPDATE_DATE\n return UPDATE_DATE;\n case 11: // UPDATE_ID\n return UPDATE_ID;\n case 12: // PROJECT_ID\n return PROJECT_ID;\n case 13: // LEGAL_LIST\n return LEGAL_LIST;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // POSITION_ID\n return POSITION_ID;\n case 3: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // APP_CODE\n \treturn APP_CODE;\n case 2: // REQUEST_DATE\n \treturn REQUEST_DATE;\n case 3: // SIGN\n \treturn SIGN;\n case 4: // SP_ID\n \treturn SP_ID;\n case 5: // OUT_ORDER_ID\n \treturn OUT_ORDER_ID;\n case 6: // DEVICE_NO\n \treturn DEVICE_NO;\n case 7: // DEVICE_TYPE\n \treturn DEVICE_TYPE;\n case 8: // PROVINCE_ID\n \treturn PROVINCE_ID;\n case 9: // CUST_ID\n \treturn CUST_ID;\n case 10: // NUM\n \treturn NUM;\n case 11: // REMARK\n \treturn REMARK;\n case 12: // ACTIVE_ID\n \treturn ACTIVE_ID;\n case 13: // EXP_TIME\n \treturn EXP_TIME;\n default:\n \treturn null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ID\r\n return ID;\r\n case 2: // ID_CURSA\r\n return ID_CURSA;\r\n case 3: // NR_LOC\r\n return NR_LOC;\r\n case 4: // CLIENT\r\n return CLIENT;\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXEC_TRADE_ID\n return EXEC_TRADE_ID;\n case 2: // SUB_ACCOUNT_ID\n return SUB_ACCOUNT_ID;\n case 3: // SLED_CONTRACT_ID\n return SLED_CONTRACT_ID;\n case 4: // EXEC_ORDER_ID\n return EXEC_ORDER_ID;\n case 5: // TRADE_PRICE\n return TRADE_PRICE;\n case 6: // TRADE_VOLUME\n return TRADE_VOLUME;\n case 7: // EXEC_TRADE_DIRECTION\n return EXEC_TRADE_DIRECTION;\n case 8: // CREATE_TIMESTAMP_MS\n return CREATE_TIMESTAMP_MS;\n case 9: // LASTMODIFY_TIMESTAMP_MS\n return LASTMODIFY_TIMESTAMP_MS;\n case 10: // SLED_COMMODITY_ID\n return SLED_COMMODITY_ID;\n case 11: // CONFIG\n return CONFIG;\n case 12: // ORDER_TOTAL_VOLUME\n return ORDER_TOTAL_VOLUME;\n case 13: // LIMIT_PRICE\n return LIMIT_PRICE;\n case 14: // SOURCE\n return SOURCE;\n case 15: // TRADE_ACCOUNT_ID\n return TRADE_ACCOUNT_ID;\n case 16: // TRADE_TIMESTAMP_MS\n return TRADE_TIMESTAMP_MS;\n case 17: // ASSET_TRADE_DETAIL_ID\n return ASSET_TRADE_DETAIL_ID;\n case 18: // SUB_USER_ID\n return SUB_USER_ID;\n case 19: // SLED_ORDER_ID\n return SLED_ORDER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONF\n return CONF;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONTRACT_ADDRESS\n return CONTRACT_ADDRESS;\n case 2: // OBJECT\n return OBJECT;\n case 3: // STATE_CAN_MODIFY\n return STATE_CAN_MODIFY;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }"
] | [
"0.76270795",
"0.76270795",
"0.76270795",
"0.76270795",
"0.76270795",
"0.76270795",
"0.76270795",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7621982",
"0.7542958",
"0.7535207",
"0.74425733",
"0.74425733",
"0.74425733",
"0.74425733",
"0.74425733",
"0.74425733",
"0.74289787",
"0.74289787",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74279505",
"0.74236625",
"0.74236405",
"0.7404105",
"0.7395381",
"0.7394652",
"0.739202",
"0.73831457",
"0.73787355",
"0.7376722",
"0.7373187",
"0.7363257",
"0.7363257",
"0.735147",
"0.735147",
"0.73425096",
"0.73425096",
"0.73425096",
"0.73350257",
"0.73277926",
"0.73178643",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.731567",
"0.7309486",
"0.72892857",
"0.7286348",
"0.72713786",
"0.72708756",
"0.7268516",
"0.72569364",
"0.72555745",
"0.72549164",
"0.7249944",
"0.7249944",
"0.72482306",
"0.72482306",
"0.72482306",
"0.72482306",
"0.72482306"
] | 0.0 | -1 |
Find the _Fields constant that matches name, or null if its not found. | public static _Fields findByName(String name) {
return byName.get(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }",
"@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}",
"@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}"
] | [
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.7578759",
"0.7578759",
"0.7571673",
"0.7571673",
"0.756394",
"0.756394"
] | 0.0 | -1 |
Performs a deep copy on other. | public PlaceEvent(PlaceEvent other) {
if (other.isSetLimb()) {
this.limb = other.limb;
}
if (other.isSetPos()) {
this.pos = new Position(other.pos);
}
if (other.isSetOri()) {
this.ori = new Orientation(other.ori);
}
if (other.isSetSpeed()) {
this.speed = new Speed(other.speed);
}
if (other.isSetAngls()) {
this.angls = new Angles(other.angls);
}
if (other.isSetMode()) {
this.mode = other.mode;
}
if (other.isSetKin()) {
this.kin = other.kin;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Prototype makeCopy();",
"public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperties)\n\t\t{\n\t\t\tproperties.put(property.key, property.clone());\n\t\t}\n\t}",
"public void copyDataFrom(ParamUnit other)\r\n\t{\r\n\t\tif (this.data.row != other.data.row || this.data.col != other.data.col)\r\n\t\t\tthrow new DeepException(\"Cannot copy data from a different dimension.\");\r\n\t\tthis.data.copyFrom(other.data);\r\n\t}",
"private Path(Path other){\n\t\t\n\t\tthis.source = other.source;\n\t\tthis.destination = other.destination;\n\t\tthis.cities = other.cities;\n\t\t\n\t\tthis.cost = other.cost;\n\t\tthis.destination = other.destination;\n\t\t\n\t\tthis.connections = new LinkedList<Connection>();\n\t\t\n\t\tfor (Connection c : other.connections){\n\t\t\tthis.connections.add((Connection) c.clone());\n\t\t}\n\t\t\n\t}",
"@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}",
"public void copy() {\n\n\t}",
"public abstract B copy();",
"public CMObject copyOf();",
"public T cloneDeep();",
"public void copy(BlastGraph<HitVertex, ValueEdge> graphToCopy) {\n\t\t// empty this graph\n\t\tthis.empty();\n\n\t\t// union this empty graph with graphToCopy\n\t\tthis.union(graphToCopy);\n\t}",
"public void mirror(Dataset other) {\n clear();\n this.ntree.addAll(other.ntree);\n }",
"Model copy();",
"public abstract INodo copy();",
"static void setCopying(){isCopying=true;}",
"Nda<V> shallowCopy();",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"T copy();",
"@Override\n\t\tpublic ImmutableSequentialGraph copy() {\n\t\t\treturn new ComposedGraph( g0, g1.copy() );\n\t\t}",
"public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}",
"Component deepClone();",
"public Data assign(Data other) {\r\n this.setDimension(other.dimension);\r\n this.distanz = other.distanz;\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = other.data[i];\r\n }\r\n this.id = other.id;\r\n return this;\r\n }",
"@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }",
"public AST copy()\n {\n return new Implicate(left, right);\n }",
"@Override\n public void copyValues(final fr.jmmc.oiexplorer.core.model.OIBase other) {\n final View view = (View) other;\n\n // copy type, subsetDefinition (reference):\n this.type = view.getType();\n this.subsetDefinition = view.getSubsetDefinition();\n }",
"public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }",
"public abstract Node copy();",
"protected void copy(Writable other) {\n\t\tif (other != null) {\n\t\t\ttry {\n\t\t\t\tDataOutputBuffer out = new DataOutputBuffer();\n\t\t\t\tother.write(out);\n\t\t\t\tDataInputBuffer in = new DataInputBuffer();\n\t\t\t\tin.reset(out.getData(), out.getLength());\n\t\t\t\treadFields(in);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalArgumentException(\"map cannot be copied: \" +\n\t\t\t\t\t\te.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"source map cannot be null\");\n\t\t}\n\t}",
"protected void copyInto(Schedule other) {\r\n\t\tfor(int i = MIN_WEEKDAY; i <= MAX_WEEKDAY; i++)\r\n\t\t\tfor(int j = MIN_SEGMENT; j <= MAX_SEGMENT; j++)\r\n\t\t\t\tother.schedule[i][j] = schedule[i][j];\t\t\r\n\t}",
"public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }",
"public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}",
"@Override\n\tpublic graph copy() {\n\t\tgraph copy = new DGraph();\n\t\tCollection<node_data> nColl = this.GA.getV();\n\t\tfor (node_data node : nColl) {\n\t\t\tnode_data temp = new Node((Node) node );\n\t\t\tcopy.addNode(node);\n\t\t}\n\t\tCollection<node_data> nColl2 = this.GA.getV();\n\t\tfor (node_data node1 : nColl2) {\n\t\t\tCollection<edge_data> eColl = this.GA.getE(node1.getKey());\n\t\t\tif (eColl!=null) {\n\t\t\t\tfor (edge_data edge : eColl) {\n\t\t\t\t\tcopy.connect(edge.getSrc(), edge.getDest(), edge.getWeight());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}",
"Object clone();",
"Object clone();",
"@Override\n public FieldEntity copy()\n {\n return state.copy();\n }",
"private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"Nda<V> deepCopy();",
"@Override\n public LocalStore<V> copy() {\n return this;\n }",
"public abstract TreeNode copy();",
"@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 }",
"protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }",
"@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}",
"public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }",
"@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}",
"public Data copy(Object value) {\n if (mValue instanceof Data) {\n ((Data) mValue).copy(value);\n } else {\n mValue = value;\n }\n return this;\n }",
"public void\n\tcopy( Vector3 other )\n\t{\n\t\tdata[0] = other.data[0];\n\t\tdata[1] = other.data[1];\n\t\tdata[2] = other.data[2];\n\t}",
"private static void copy(List<? super Number> dest, List<? extends Number> src) {\n for (int i = 0; i < src.size(); i++) {\n dest.set(i, src.get(i));\n //dest.add(src.get(i));\n }\n }",
"private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }",
"public abstract void copy(Result result, Object object);",
"protected AbstractChartModel copy(AbstractChartModel aCopy) {\n aCopy.title = title;\n aCopy.xAxisTitle = xAxisTitle;\n aCopy.yAxisTitle = yAxisTitle;\n aCopy.xRangeMax = xRangeMax;\n aCopy.xRangeMin = xRangeMin;\n aCopy.xRangeIncr = xRangeIncr;\n aCopy.yRangeMax = yRangeMax;\n aCopy.yRangeMin = yRangeMin;\n aCopy.yRangeIncr = yRangeIncr;\n aCopy.simModel = simModel;\n ArrayList list = new ArrayList();\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource) dataSources.get(i);\n list.add(ds.copy());\n }\n aCopy.dataSources = list;\n\n return aCopy;\n }",
"@Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);",
"private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }",
"public Game copy();",
"public void pasteFrom(Flow other)\n\t\t{\n\t\tunits.addAll(other.units);\n\t\tconns.addAll(other.conns);\n\t\t}",
"@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }",
"public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}",
"public CFExp deepCopy(){\r\n return this;\r\n }",
"DataContext copy();",
"@Override\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS(this.ga);//create the copy graph via copy constructor\n return copy;\n }",
"@Override\n\tpublic SecuredRDFList copy();",
"@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}",
"public O copy() {\n return value();\n }",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"public abstract Object clone();",
"public Function clone();",
"public abstract Type treeCopy();",
"public Tree<K, V> copy(Tree<K, V> t, Tree<K, V> copy) {\n\t\tcopy = copy.add(key, value);\n\t\tcopy = left.copy(left, copy);\n\t\tcopy = right.copy(right, copy);\n\t\treturn copy;\n\t}",
"public Results copy()\n {\n Results copy = new Results();\n for(Object object : results) {\n copy.add( object );\n }\n return copy;\n }",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}",
"@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}",
"public directed_weighted_graph deepCopy() {\n DWGraph_DS copyGraph = new DWGraph_DS(this); //create a new graph with the original graph data (only primitives)\n HashMap<Integer, node_data> copyNodesMap = new HashMap<>(); //create a new nodes HashMap for the new graph\n for (node_data node : nodes.values()) { //loop through all nodes in the original graph\n copyNodesMap.put(node.getKey(), new NodeData((NodeData) node)); //makes a duplicate of the original HashMap\n }\n copyGraph.nodes = copyNodesMap; //set the new graph nodes to the new HashMap we made.\n return copyGraph;\n }",
"public Object clone() {\n return this.copy();\n }",
"@Override\n public Operator visitCopy(Copy operator)\n {\n throw new AssertionError();\n }",
"@Test\n\tpublic void copy() {\n\t\tBody b1 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\tCollisionItemAdapter<Body, BodyFixture> c1 = this.item.copy();\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\t\n\t\tthis.item.set(b1, b1f1);\n\t\tCollisionItemAdapter<Body, BodyFixture> c2 = this.item.copy();\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t\t\n\t\t// make sure it's a deep copy\n\t\tc1.set(null, null);\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t}",
"public abstract Object clone() ;",
"public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}",
"public PaginationVO(PaginationVO other) {\n __isset_bitfield = other.__isset_bitfield;\n this.pageSize = other.pageSize;\n this.pageNo = other.pageNo;\n this.upPage = other.upPage;\n this.nextPage = other.nextPage;\n this.totalCount = other.totalCount;\n this.totalPage = other.totalPage;\n if (other.isSetPageUrl()) {\n this.pageUrl = other.pageUrl;\n }\n if (other.isSetParams()) {\n this.params = other.params;\n }\n if (other.isSetDatas()) {\n List<BlogPostVO> __this__datas = new ArrayList<BlogPostVO>();\n for (BlogPostVO other_element : other.datas) {\n __this__datas.add(new BlogPostVO(other_element));\n }\n this.datas = __this__datas;\n }\n }",
"public WorldState (WorldState other)\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\t\t\n\t\tcopy(other);\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}",
"@Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);",
"@Override\n public INDArray copy(INDArray x, INDArray y) {\n //NativeBlas.dcopy(x.length(), x.data(), 0, 1, y.data(), 0, 1);\n JavaBlas.rcopy(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1);\n return y;\n }",
"@Override\n\tpublic function copy() {\n\t\tMonom M=new Monom(this.get_coefficient(),this.get_power());\n\t\t\n\t\treturn M;\n\t}",
"public Object detachCopy(Object po)\n{\n\treturn po;\n}",
"public ConfabulatorObject getCopy() {\n\t\tConfabulatorObject copy = new ConfabulatorObject(getMessenger());\n\t\tlockMe(this);\n\t\tint maxD = maxLinkDistance;\n\t\tint maxC = maxLinkCount;\n\t\tList<Link> linksCopy = new ArrayList<Link>();\n\t\tfor (Link lnk: links) {\n\t\t\tlinksCopy.add(lnk.getCopy());\n\t\t}\n\t\tunlockMe(this);\n\t\tcopy.initialize(maxD,maxC,linksCopy);\n\t\treturn copy;\n\t}",
"@Override\r\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS();\r\n for (node_info curr : this.Graph.getV()) { //The loop passes through all the ver' of the graph\r\n Nodes t = new Nodes(curr); //create new node\r\n copy.addNode(t.key); //copy the the old node to the new node\r\n }\r\n for (node_info curr0 : this.Graph.getV()) {\r\n for (node_info curr1 : this.Graph.getV(curr0.getKey())) { //this loops pass over the all nodes and copy the connection\r\n double i = this.Graph.getEdge(curr0.getKey(), curr1.getKey());\r\n if (i != -1) {\r\n copy.connect(curr0.getKey(), curr1.getKey(), i);\r\n }\r\n }\r\n }\r\n return copy;\r\n\r\n }",
"@Override\n public Object clone() {\n return super.clone();\n }",
"public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }",
"public static void main(String[] args) throws CloneNotSupportedException\n {\n ArrayList<String> companies = new ArrayList<String>();\n companies.add(\"Baidu\");\n companies.add(\"Tencent\");\n companies.add(\"Ali\");\n WorkExprience workExprience = new WorkExprience(companies);\n String nameString = new String(\"Tom\");\n String genderString = new String(\"male\");\n Resume resume = new Resume(nameString, 23, genderString, workExprience);\n System.out.println(\"Source Resume\");\n resume.printResum();\n \n ArrayList<String> companies1 = new ArrayList<String>();\n companies1.add(\"Google\");\n companies1.add(\"Microsoft\");\n companies1.add(\"Oracle\");\n Resume copyResume = (Resume)resume.clone();\n String nameString1 = new String(\"Jerry\");\n String genderString1 = new String(\"Fmale\");\n copyResume.setName(nameString1);\n copyResume.setAge(20);\n copyResume.setGender(genderString1);\n copyResume.getWorkExprience().setCompanyArrayList(companies1);\n System.out.println();\n System.out.println(\"Source Resume\");\n resume.printResum();\n System.out.println();\n System.out.println(\"Copy Resume\");\n copyResume.printResum();\n }",
"public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}",
"protected void deepCloneReferences(uka.transport.DeepClone _helper)\n throws CloneNotSupportedException\n {\n //Cloning the byte array\n\t this.value = _helper.doDeepClone(this.value);\n //byte[] value_clone = new byte[this.value.length]; \n //System.arraycopy(this.value, 0, value_clone, 0, this.value.length);\n //this.value = value_clone;\n }",
"static void setNotCopying(){isCopying=false;}",
"void copy(DependencyRelations deps){\n if (deps == null)\n throw new IllegalArgumentException(\"the source is null.\");\n\n size_ = deps.size_;\n for(int i = 0; i < size_ ; i++){\n if (nodes_[i] == null)\n nodes_[i] = new Node();\n nodes_[i].copy(deps.nodes_[i]);\n }\n }",
"@SuppressWarnings(\"All\")\n public <T> void copy(MyList<? super T> to, MyList<? extends T> from) {\n\n System.out.println(\"from size \" + from.size);\n for (int i = 0; i < from.getSize(); i++) {\n to.add(from.getByIndex(i));\n }\n }",
"public void copy(Posts that) {\r\n\t\tsetId(that.getId());\r\n\t\tsetTitle(that.getTitle());\r\n\t\tsetContent(that.getContent());\r\n\t\tsetShareDate(that.getShareDate());\r\n\t\tsetIsPrivate(that.getIsPrivate());\r\n\t\tsetUsers(that.getUsers());\r\n\t\tsetCommentses(new java.util.LinkedHashSet<com.ira.domain.Comments>(that.getCommentses()));\r\n\t}",
"@Override\n public TopicObject copy() {\n return new TopicObject(this);\n }"
] | [
"0.7214815",
"0.6982586",
"0.6743959",
"0.66792786",
"0.6563397",
"0.6549605",
"0.65230364",
"0.652084",
"0.64842516",
"0.64743775",
"0.6450891",
"0.6438907",
"0.64186275",
"0.640633",
"0.6403375",
"0.63743764",
"0.6373319",
"0.6358263",
"0.6322797",
"0.63214344",
"0.62839",
"0.6270614",
"0.6265534",
"0.6262602",
"0.6245396",
"0.6226707",
"0.62195224",
"0.6199828",
"0.6194176",
"0.61679715",
"0.61505216",
"0.6141201",
"0.6141201",
"0.613657",
"0.61238766",
"0.6113572",
"0.6078777",
"0.6067093",
"0.6051407",
"0.60489607",
"0.60435355",
"0.6034403",
"0.6030665",
"0.603029",
"0.6002317",
"0.5987207",
"0.5984917",
"0.59831345",
"0.5962016",
"0.5931717",
"0.59043086",
"0.58999294",
"0.58940864",
"0.5888768",
"0.5887435",
"0.5887003",
"0.5872753",
"0.58715606",
"0.5867456",
"0.5854781",
"0.5835268",
"0.5833011",
"0.58237326",
"0.58237326",
"0.58237326",
"0.58237326",
"0.5821464",
"0.5818652",
"0.5814066",
"0.57974726",
"0.579667",
"0.5792226",
"0.57900447",
"0.57734174",
"0.57581633",
"0.5751797",
"0.57507133",
"0.5744841",
"0.5744065",
"0.5744024",
"0.5743795",
"0.5740732",
"0.57376605",
"0.5736934",
"0.5736099",
"0.5727886",
"0.5727659",
"0.5714002",
"0.5700601",
"0.56953377",
"0.5689013",
"0.5682943",
"0.5676875",
"0.56736434",
"0.56729144",
"0.567041",
"0.5669635",
"0.56651294",
"0.56643426",
"0.5662451",
"0.5647604"
] | 0.0 | -1 |
Returns true if field limb is set (has been assigned a value) and false otherwise | public boolean isSetLimb() {
return this.limb != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"boolean isSetValue();",
"boolean isSetValue();",
"public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"boolean hasMPValue();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSetGuardBand() {\n return (this.guardBand != null ? this.guardBand.isSetValue() : false);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEFORE:\n return isSetBefore();\n case AFTER:\n return isSetAfter();\n }\n throw new IllegalStateException();\n }",
"public boolean needsValueField() {\n/* 227 */ for (CEnumConstant cec : this.members) {\n/* 228 */ if (!cec.getName().equals(cec.getLexicalValue()))\n/* 229 */ return true; \n/* */ } \n/* 231 */ return false;\n/* */ }",
"public boolean isSetDrivingmileage() {\n return __isset_bit_vector.get(__DRIVINGMILEAGE_ISSET_ID);\n }",
"public boolean hasMPValue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSetNumber() {\n return (this.number != null ? this.number.isSetValue() : false);\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean hasMPValue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBMT$4) != 0;\r\n }\r\n }",
"public boolean isSetBirth() {\n\t\treturn this.birth != null;\n\t}",
"public boolean isSetFields() {\n return this.fields != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }",
"boolean hasField4();",
"public boolean isSetPdb()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PDB$28) != 0;\r\n }\r\n }",
"protected boolean acceptUninitializedField(Field f) {\n return false;// by default all property need to be initialized after setup.\n }",
"public boolean isSetInstantRFBW03() {\n return (this.instantRFBW03 != null ? this.instantRFBW03.isSetValue() : false);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EX:\n return isSetEx();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAYER:\n return isSetPlayer();\n case CREATION_TIME:\n return isSetCreationTime();\n case TYPE:\n return isSetType();\n case CHAT:\n return isSetChat();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BLOCK_MASTER_INFO:\n return isSetBlockMasterInfo();\n }\n throw new IllegalStateException();\n }",
"public final boolean isValueLockedSetted() {\n\t\treturn engine.isPropertySetted(Properties.VALUE_LOCKED);\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return isSetStatus();\n case STATE_MSG:\n return isSetStateMsg();\n case LAST_UPDATE_TIMESTAMP_MS:\n return isSetLastUpdateTimestampMs();\n }\n throw new IllegalStateException();\n }",
"public boolean hasValue() {\n return value_ != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n case VALUE:\n return isSetValue();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet() {\n\t\treturn false;\n\t}",
"public boolean hasJamMulai() {\n return fieldSetFlags()[2];\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BID_PRICE4:\n return isSetBidPrice4();\n case BID_VOLUME4:\n return isSetBidVolume4();\n case BID_PRICE5:\n return isSetBidPrice5();\n case BID_VOLUME5:\n return isSetBidVolume5();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(EMBL$10) != 0;\r\n }\r\n }",
"boolean hasSetProperty();",
"boolean hasVal();"
] | [
"0.7647111",
"0.7647111",
"0.7077453",
"0.7032341",
"0.6854947",
"0.6854947",
"0.6812064",
"0.660008",
"0.6446849",
"0.6393179",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63930786",
"0.63917",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.63785493",
"0.6365746",
"0.63357663",
"0.6310954",
"0.62990427",
"0.62973654",
"0.6293305",
"0.6288223",
"0.62697875",
"0.6261447",
"0.62486106",
"0.62409484",
"0.6217642",
"0.6187623",
"0.6187623",
"0.6187623",
"0.6187623",
"0.6187623",
"0.6187623",
"0.6174858",
"0.6159688",
"0.61473066",
"0.61423194",
"0.61306274",
"0.6128171",
"0.61278826",
"0.61278826",
"0.6126421",
"0.6119821",
"0.6116997",
"0.611576",
"0.6101804",
"0.60967547",
"0.60858476",
"0.6085679",
"0.608564",
"0.6076908",
"0.6076408",
"0.6076408",
"0.6074696",
"0.6074696",
"0.60726225",
"0.6069921",
"0.6067596"
] | 0.7417898 | 2 |
Returns true if field pos is set (has been assigned a value) and false otherwise | public boolean isSetPos() {
return this.pos != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasPosition() {\n return fieldSetFlags()[7];\n }",
"public static boolean isSet(int field, int pos) {\n if(pos < 1 || pos > 32) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 32\");\n }\n long flag = (long) Math.pow(2, (pos-1));\n return hasFlag(field, flag);\n }",
"public static boolean isSet(byte field, int pos) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n int flag = (int) Math.pow(2, (pos-1));\n return hasFlag(field, flag);\n }",
"public static boolean isSet(long field, int pos) {\n if(pos < 1 || pos > 64) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 64\");\n }\n long flag = (long) Math.pow(2, (pos-1));\n return hasFlag(field, flag);\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetPositionX() {\r\n return EncodingUtils.testBit(__isset_bitfield, __POSITIONX_ISSET_ID);\r\n }",
"boolean isSetControlPosition();",
"public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }",
"public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }",
"public static boolean isSet(short field, int pos) {\n if(pos < 1 || pos > 16) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 16\");\n }\n int flag = (int) Math.pow(2, (pos-1));\n return hasFlag(field, flag);\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }",
"@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }",
"@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }",
"public boolean isSetNetPosition() {\n return EncodingUtils.testBit(__isset_bitfield, __NETPOSITION_ISSET_ID);\n }",
"public boolean isSetLongPosition() {\n return EncodingUtils.testBit(__isset_bitfield, __LONGPOSITION_ISSET_ID);\n }",
"public boolean isSetNumRFPositions() {\n return (this.numRFPositions != null ? this.numRFPositions.isSetValue() : false);\n }",
"public boolean hasPositionX() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"boolean isSetBeginPosition();",
"public boolean hasPositionX() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean isSetPositionId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __POSITIONID_ISSET_ID);\n }",
"public boolean hasStartPosition() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public boolean hasPositionX() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasPositionX() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasPositionX() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"public boolean hasStartPosition() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"boolean hasPosition();",
"boolean hasPosition();",
"boolean hasPosition();",
"boolean hasPosition();",
"public boolean hasPositionX() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"public boolean hasPt() {\n return fieldSetFlags()[0];\n }",
"public boolean isSetPositionY() {\r\n return EncodingUtils.testBit(__isset_bitfield, __POSITIONY_ISSET_ID);\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }",
"public final boolean get(int position)\n \t{\n \t\treturn isSet(position);\n \t}",
"public boolean someLegalPos() {\n return !legalPos.isEmpty();\n }",
"public boolean isSetNrLoc() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NRLOC_ISSET_ID);\r\n }",
"public boolean isSetShortPosition() {\n return EncodingUtils.testBit(__isset_bitfield, __SHORTPOSITION_ISSET_ID);\n }",
"public boolean setPosition(Position2D pos)\n {\n previousPosition = (previousPosition == null) ? new Position2D(pos) : position;\n position = new Position2D(pos);\n return true;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case Q:\n return isSetQ();\n case START_INDEX:\n return isSetStartIndex();\n }\n throw new IllegalStateException();\n }",
"Position positionField(String name, boolean isDefined, Position value)\n throws InvalidFieldValue;",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case START_INDEX:\n return isSetStartIndex();\n case NUMBER:\n return isSetNumber();\n case LENGTH:\n return isSetLength();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TARGET_KEY:\n return isSetTargetKey();\n case SUB_ACCOUNT_ID:\n return isSetSubAccountId();\n case TARGET_TYPE:\n return isSetTargetType();\n case LONG_POSITION:\n return isSetLongPosition();\n case SHORT_POSITION:\n return isSetShortPosition();\n case NET_POSITION:\n return isSetNetPosition();\n case POSITION_AVG_PRICE:\n return isSetPositionAvgPrice();\n case CREATE_TIMESTAMP_MS:\n return isSetCreateTimestampMs();\n case LASTMODIFY_TIMESTAMP_MS:\n return isSetLastmodifyTimestampMs();\n }\n throw new IllegalStateException();\n }",
"private boolean validate(int position) {\n return ((position >= 0) && (position < this.values.length));\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case POSITION_ID:\n return isSetPositionId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean hasOffset() {\n return fieldSetFlags()[2];\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"boolean isSetOffset();",
"public boolean hasVar121() {\n return fieldSetFlags()[122];\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"public boolean isSetPoint() {\n return EncodingUtils.testBit(__isset_bitfield, __POINT_ISSET_ID);\n }",
"public boolean hasOffset() {\n return fieldSetFlags()[6];\n }",
"boolean hasPositionX();",
"boolean hasPositionX();",
"boolean hasPositionX();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean hasPositionCall() {\n if (_left.hasPositionCall()) return true;\n if (_right.hasPositionCall()) return true;\n return false;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEFORE:\n return isSetBefore();\n case AFTER:\n return isSetAfter();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PARENT_INDEX:\n return isSetParentIndex();\n case CHILD_INDEX:\n return isSetChildIndex();\n case IS_LEFT:\n return isSetIsLeft();\n }\n throw new IllegalStateException();\n }",
"public boolean hasLocation() {\n return fieldSetFlags()[3];\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }"
] | [
"0.76383346",
"0.7451078",
"0.7320905",
"0.72167677",
"0.7190639",
"0.7190639",
"0.70946616",
"0.7024234",
"0.70051736",
"0.70051736",
"0.6866722",
"0.68522716",
"0.67913526",
"0.67913526",
"0.6783173",
"0.6756336",
"0.67434156",
"0.6708427",
"0.67032427",
"0.6699076",
"0.6693301",
"0.6662474",
"0.66594183",
"0.6644292",
"0.6633696",
"0.66279787",
"0.6620376",
"0.6620376",
"0.6620376",
"0.6620376",
"0.66061467",
"0.6469855",
"0.6436669",
"0.6430698",
"0.63938755",
"0.6385806",
"0.63762265",
"0.6360331",
"0.6356126",
"0.6337896",
"0.63248676",
"0.63116115",
"0.6297961",
"0.6295051",
"0.62891763",
"0.6288449",
"0.62825763",
"0.6279057",
"0.6262499",
"0.6252574",
"0.62462085",
"0.6227305",
"0.62258",
"0.62258",
"0.62258",
"0.62227345",
"0.62054694",
"0.6199363",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.619851",
"0.61944324",
"0.6192726",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856",
"0.61862856"
] | 0.8097357 | 1 |
Returns true if field ori is set (has been assigned a value) and false otherwise | public boolean isSetOri() {
return this.ori != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean hasOR() {\n return fieldSetFlags()[16];\n }",
"public boolean isSetOe() {\n\t\t\treturn this.oe != null;\n\t\t}",
"@Override\n public boolean isSet() {\n return loci != null;\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSetRiu() {\n return this.riu != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetTurno() {\n return EncodingUtils.testBit(__isset_bitfield, __TURNO_ISSET_ID);\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSetDataRealizacaoTesteOrelhinha() {\n return EncodingUtils.testBit(__isset_bitfield, __DATAREALIZACAOTESTEORELHINHA_ISSET_ID);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"boolean isSetValue();",
"boolean isSetValue();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KAU:\n return isSetKau();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KAU:\n return isSetKau();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n case USER_EMPLOYEE_DOS:\n return isSetUserEmployeeDOS();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case START_INDEX:\n return isSetStartIndex();\n case NUMBER:\n return isSetNumber();\n case LENGTH:\n return isSetLength();\n }\n throw new IllegalStateException();\n }",
"boolean hasField4();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case Q:\n return isSetQ();\n case START_INDEX:\n return isSetStartIndex();\n }\n throw new IllegalStateException();\n }",
"boolean hasField3();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INDEX_NAME:\n return isSetIndexName();\n case TYPE:\n return isSetType();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n case VALUE:\n return isSetValue();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n case COR:\n return isSetCor();\n case PESO:\n return isSetPeso();\n case DESCRICAO:\n return isSetDescricao();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n case COR:\n return isSetCor();\n case PESO:\n return isSetPeso();\n case DESCRICAO:\n return isSetDescricao();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EX:\n return isSetEx();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case RECOM_ID:\n return isSetRecomId();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }"
] | [
"0.7192",
"0.7192",
"0.68889683",
"0.66063523",
"0.65721244",
"0.65534735",
"0.6547811",
"0.65075475",
"0.64973116",
"0.64973116",
"0.64973116",
"0.64973116",
"0.64973116",
"0.64973116",
"0.64973116",
"0.64973116",
"0.64973116",
"0.64973116",
"0.64973116",
"0.6355795",
"0.63284916",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6306204",
"0.6301807",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6292521",
"0.6289137",
"0.62814623",
"0.62814623",
"0.62814623",
"0.62814623",
"0.62814623",
"0.62814623",
"0.6267524",
"0.6267524",
"0.62664986",
"0.6263839",
"0.6263839",
"0.6263059",
"0.6263059",
"0.62554604",
"0.625532",
"0.6241533",
"0.6240725",
"0.6238472",
"0.62330127",
"0.6232934",
"0.62322176",
"0.6230321",
"0.6229189",
"0.62164956",
"0.62045324",
"0.62045324",
"0.62015474",
"0.620126",
"0.61990863",
"0.6197976",
"0.61978275"
] | 0.7438948 | 0 |
Returns true if field speed is set (has been assigned a value) and false otherwise | public boolean isSetSpeed() {
return this.speed != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"public boolean isSetHorzScanSpeed() {\n return (this.horzScanSpeed != null ? this.horzScanSpeed.isSetValue() : false);\n }",
"public boolean isSetVertScanSpeed() {\n return (this.vertScanSpeed != null ? this.vertScanSpeed.isSetValue() : false);\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkSpeed() {\n\t\tboolean flag = oTest.checkSpeed();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"boolean hasSimspeed();",
"public boolean hasSimspeed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isOverSpeed(){ return vehicleAvarageSpeed > roadMaxSpeed; }",
"public boolean hasSimspeed() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Override\n\tpublic boolean speedBtn()\n\t{\n\t\treturn this.speed;\n\t}",
"public boolean isProjectile(){\n\t\treturn (getSpeed() != -1);\t\t\n\t}",
"public boolean canMove()\n\t{\n\t\tif(delayMove>compareSpeed())\n\t\t{\n\t\t\tdelayMove=0;\n\t\t\treturn true;\n\t\t\t\n\t\t}else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public void setSpeed(float val) {speed = val;}",
"@Override\n public final boolean hasLandspeedAttribute() {\n return true;\n }",
"public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }",
"@Test\n\tpublic void TestSetSpeed() {\n\t\tassertTrue(v1.setSpeed(70));\n\t\tassertEquals(\"Speed of car is not set to 70.\",v1.getSpeed(),70.0, 0);\n\t\tassertFalse(v2.setSpeed(150));\n\t\tassertEquals(\"Speed of truck is changed from 0.\",v2.getSpeed(), 0, 0);\n\t}",
"boolean hasMPPerSecond();",
"public boolean hasValidToMillis() {\n return fieldSetFlags()[5];\n }",
"@Test\r\n\tpublic final void testSetSpeed() {\n\t\t a=new airConditioner(\"ON\",33);\r\n\t\tassertEquals(33,a.getSpeed());\r\n\t}",
"public boolean isSetRFSlotDuration() {\n return (this.rfSlotDuration != null ? this.rfSlotDuration.isSetValue() : false);\n }",
"boolean isSetDuration();",
"boolean isSetDuration();",
"boolean isSetDuration();",
"@Override\n public boolean isFinished() {\n// return false;\n return LightningMath.epsilonEqual(shooter.getFlywheelMotor1Velocity(), shooter.motor1setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor2Velocity(), shooter.motor2setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor3Velocity(), shooter.motor3setpoint, Constants.FLYWHEEL_EPSILON);\n }",
"boolean isSetValueRatio();",
"public boolean isSetTuningStep() {\n return (this.tuningStep != null ? this.tuningStep.isSetValue() : false);\n }",
"public Boolean setSpeed(Integer speed)\r\n\t{\r\n\t\tspeed = checkSpeed(speed);\r\n String cmd = String.format(\"flippers/speed?value=%d\", speed);\r\n return cmdSimpleResult(cmd);\r\n\t}",
"public boolean hasValidFromMillis() {\n return fieldSetFlags()[4];\n }",
"public boolean isSetDistance() {\n return __isset_bit_vector.get(__DISTANCE_ISSET_ID);\n }",
"public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }",
"public void setSpeed(double speed) {\n \tthis.speed = speed;\n }",
"public boolean hasMPPerSecond() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"protected boolean isFinished() {\n return (shooterWheel.shooterWheelSpeedControllerAft.isEnabled() == false && shooterWheel.shooterWheelSpeedControllerFwd.isEnabled() == false);\n }",
"public boolean hasMPPerSecond() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean stopped() {\n\t\tif (change != null) {\n\t\t\t//Check if the bot's current speed is very low, and it wasn't before\n\t\t\treturn (getVelocity() < 0.01 && change.getVelocity() > 0.01);\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n \t}",
"public boolean isVelocityValid() {\n return velocityValid;\n }",
"public boolean isStopped(){\n return (currentSpeed == 0);\n }",
"public float getSpeed() {\n return this.speedValue;\n }",
"public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}",
"public float getSpeed() {\n return speed;\n }",
"public float getSpeed() {\n return speed;\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isShowFPS() {\n return showFPS;\n }",
"public void setSpeed(float speed) {\n this.speed = speed;\n }",
"public void setSpeed(float speed) {\n this.speed = speed;\n }",
"public void setSpeed(double speed) {\n this.speed = speed;\n }",
"public void setSpeed(double speed) {\n this.speed = speed;\n }",
"public boolean updateRequired() {\r\n\r\n // Run at 10 frames per second\r\n final long TARGET_FPS = 10;\r\n // There are 1000 milliseconds in a second\r\n final long MILLIS_PER_SECOND = 1000;\r\n\r\n // Are we due to update the frame\r\n if (mNextFrameTime <= System.currentTimeMillis()) {\r\n // Tenth of a second has passed\r\n\r\n // Setup when the next update will be triggered\r\n mNextFrameTime = System.currentTimeMillis()\r\n + MILLIS_PER_SECOND / TARGET_FPS;\r\n\r\n // Return true so that the update and draw\r\n // methods are executed\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"public double getSpeed() {\n return speed;\n }",
"public float getSpeed()\n\t{\n\t\treturn speed;\n\t}",
"public boolean isSetRFTuningStep() {\n return (this.rfTuningStep != null ? this.rfTuningStep.isSetValue() : false);\n }",
"public double getSpeed() {\n return speed;\n }",
"public double getSpeed() {\n return speed;\n }",
"public double getSpeed() {\n return speed;\n }",
"public double getSpeed() {\n return speed;\n }",
"boolean isSetWheel();",
"public float getSpeed (){\n return speed;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }",
"boolean hasMPValue();",
"public double speed()\r\n {\r\n return speed;\r\n }",
"public double getSpeed() {\r\n\t\treturn speed;\r\n\t}",
"public float getSpeed() {\n\t\treturn speed;\n\t}",
"@Override\n public boolean get() {\n return this.joystick.getPOV() == this.angle;\n }",
"@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}",
"public boolean hasMillis() {\n return fieldSetFlags()[1];\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }",
"public Speed getSpeed() {\n\t\treturn speed;\n\t}",
"public boolean isSetUpdateTime() {\n return __isset_bit_vector.get(__UPDATETIME_ISSET_ID);\n }",
"public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }",
"@Override\n\tpublic void setSpeed(double speed) {\n\n\t}",
"public final boolean mo30745d() {\n return this.f8032d;\n }",
"public synchronized boolean isMotorStarted() {\n return isMotorStarted;\n }",
"boolean isSetValue();",
"boolean isSetValue();",
"public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }",
"public boolean mo17604g() {\n return this.f2599g != null;\n }",
"public boolean mo1244d() {\n return this.f901b >= 0;\n }",
"public <T extends Number> void setSpeedPerFrame(T speed){\r\n\t\tif(speed.doubleValue() <= 0){\r\n\t\t\tthis.speed = 1;\r\n\t\t\tSystem.err.println(\"Negative Speed, resulting to a speed of 1!\");\r\n\t\t}else{\r\n\t\t\tthis.speed = speed.doubleValue();\r\n\t\t}\r\n\t}",
"public boolean isMovementChanged() {\n return movementChanged;\n }",
"public boolean isSetUpdateTime() {\n\t\treturn this.updateTime != null;\n\t}",
"public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }",
"boolean isCameraBurstPref();"
] | [
"0.7724837",
"0.7724837",
"0.7724837",
"0.7724837",
"0.7724837",
"0.7724837",
"0.7590857",
"0.75908256",
"0.75908256",
"0.757857",
"0.7577286",
"0.7577286",
"0.75467545",
"0.75393045",
"0.7436597",
"0.7419952",
"0.7346138",
"0.7314241",
"0.73040795",
"0.7231405",
"0.70393336",
"0.6878585",
"0.6724799",
"0.66904473",
"0.6685172",
"0.64474267",
"0.6314238",
"0.6233461",
"0.6203653",
"0.6160737",
"0.61425656",
"0.6129586",
"0.60439664",
"0.5970729",
"0.59695274",
"0.5939718",
"0.59338737",
"0.59338737",
"0.59338737",
"0.5932842",
"0.59235036",
"0.5906496",
"0.589606",
"0.58593524",
"0.5846665",
"0.5842107",
"0.5814646",
"0.58072627",
"0.5806898",
"0.5804251",
"0.5798459",
"0.579647",
"0.5789151",
"0.5786768",
"0.5769449",
"0.5761165",
"0.5761165",
"0.5752361",
"0.5752361",
"0.57440007",
"0.57371527",
"0.57371527",
"0.5726741",
"0.5726741",
"0.57183933",
"0.57176036",
"0.5714458",
"0.5710602",
"0.57013565",
"0.57013565",
"0.57013565",
"0.57013565",
"0.5699079",
"0.56963414",
"0.56954205",
"0.56825125",
"0.56773317",
"0.5667201",
"0.5665789",
"0.56606925",
"0.56531125",
"0.5646408",
"0.5644891",
"0.5642979",
"0.563789",
"0.56329155",
"0.56296086",
"0.56209046",
"0.5618546",
"0.5617383",
"0.55993617",
"0.55993617",
"0.55972624",
"0.55967176",
"0.55945337",
"0.5590392",
"0.55871034",
"0.5584983",
"0.558205",
"0.5576642"
] | 0.84256035 | 0 |
Returns true if field angls is set (has been assigned a value) and false otherwise | public boolean isSetAngls() {
return this.angls != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetFields() {\n return this.fields != null;\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public boolean isSetValue() {\n return this.value != null;\n }",
"public boolean isSetGang() {\n return EncodingUtils.testBit(__isset_bitfield, __GANG_ISSET_ID);\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet() {\n\t\treturn false;\n\t}",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"boolean hasField4();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INNER_STR:\n return isSetInner_str();\n case INNER_DOUBLE:\n return isSetInner_double();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetNumRFElements() {\n return (this.numRFElements != null ? this.numRFElements.isSetValue() : false);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case BINDING_PARAMS:\n return isSetBindingParams();\n case BIND_SOURCE:\n return isSetBindSource();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case START_INDEX:\n return isSetStartIndex();\n case NUMBER:\n return isSetNumber();\n case LENGTH:\n return isSetLength();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EX:\n return isSetEx();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ACTIVATION_CODEE:\n return isSetActivationCodee();\n case BIND_EMAIL_SOURCE:\n return isSetBindEmailSource();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEFORE:\n return isSetBefore();\n case AFTER:\n return isSetAfter();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"boolean isSetValue();",
"boolean isSetValue();",
"boolean hasField0();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KAU:\n return isSetKau();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KAU:\n return isSetKau();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"boolean isSetRequired();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }",
"boolean hasField3();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }",
"default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}",
"boolean hasField1();",
"public boolean fieldsAreFilled(){\r\n boolean filled = true;\r\n if(txtFName.getText().trim().isEmpty() | txtFEmail.getText().trim().isEmpty() | txtFPhone.getText().trim().isEmpty()){\r\n filled = false;\r\n }\r\n return filled;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case NAME:\n return isSetName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }",
"public boolean hasValue() {\n return valueBuilder_ != null || value_ != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case Q:\n return isSetQ();\n case START_INDEX:\n return isSetStartIndex();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ERROR_MAP:\n return isSetErrorMap();\n case SUCCESS_BATCH_CODE:\n return isSetSuccessBatchCode();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n case VALUE:\n return isSetValue();\n }\n throw new java.lang.IllegalStateException();\n }"
] | [
"0.7278399",
"0.7278399",
"0.6760184",
"0.6724771",
"0.67100835",
"0.6653211",
"0.6647936",
"0.6617894",
"0.6581007",
"0.65798116",
"0.65798116",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6569866",
"0.6568797",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.65567976",
"0.6552817",
"0.65497035",
"0.65455633",
"0.65317804",
"0.6514804",
"0.65071934",
"0.64895976",
"0.6430924",
"0.6428208",
"0.6428208",
"0.6428208",
"0.6428208",
"0.6428208",
"0.6428208",
"0.642166",
"0.6413678",
"0.64115673",
"0.64085364",
"0.64046025",
"0.64011794",
"0.64003754",
"0.64003754",
"0.6399406",
"0.6396152",
"0.6388044",
"0.6388044",
"0.6370898",
"0.63624275",
"0.6359597",
"0.6359361",
"0.6338183",
"0.6332265",
"0.63313943",
"0.63303554",
"0.6320506",
"0.6320506",
"0.6319985",
"0.6309559",
"0.63087237",
"0.63077205",
"0.63076884",
"0.6299537"
] | 0.7247372 | 2 |
Returns true if field mode is set (has been assigned a value) and false otherwise | public boolean isSetMode() {
return this.mode != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetModeID() {\n return (this.modeID != null ? this.modeID.isSetValue() : false);\n }",
"public boolean isSetModeName() {\n return (this.modeName != null ? this.modeName.isSetValue() : false);\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"boolean hasMode();",
"public boolean hasMode() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }",
"public boolean hasMode() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean isSetFields() {\n return this.fields != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"public boolean isMode() {\n return mode;\n }",
"boolean hasField4();",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAYER:\n return isSetPlayer();\n case CREATION_TIME:\n return isSetCreationTime();\n case TYPE:\n return isSetType();\n case CHAT:\n return isSetChat();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }",
"boolean hasFieldId();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return is_set_status();\n case DATA:\n return is_set_data();\n case SUMMARY:\n return is_set_summary();\n case FEATURE:\n return is_set_feature();\n case PREDICT_RESULT:\n return is_set_predictResult();\n case MSG:\n return is_set_msg();\n }\n throw new IllegalStateException();\n }",
"public boolean hasField(String fname, PortletMode value) {\n boolean result = false;\n\n try {\n Field f = cut.getField(fname);\n PortletMode fValue = (PortletMode) f.get(null);\n if (fValue.equals(value)) {\n result = true;\n }\n } catch (Exception e) {\n }\n\n return result;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case OUTPUT_DIR:\n return isSetOutputDir();\n case SUBSET:\n return isSetSubset();\n case TYPES:\n return isSetTypes();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE:\n return isSetFile();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean fieldsAreFilled(){\r\n boolean filled = true;\r\n if(txtFName.getText().trim().isEmpty() | txtFEmail.getText().trim().isEmpty() | txtFPhone.getText().trim().isEmpty()){\r\n filled = false;\r\n }\r\n return filled;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return isSetStatus();\n case STATE_MSG:\n return isSetStateMsg();\n case LAST_UPDATE_TIMESTAMP_MS:\n return isSetLastUpdateTimestampMs();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case START_INDEX:\n return isSetStartIndex();\n case NUMBER:\n return isSetNumber();\n case LENGTH:\n return isSetLength();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }",
"boolean getField0();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case SUB_TYPE:\n return isSetSubType();\n case OP_TYPE:\n return isSetOpType();\n case ID:\n return isSetId();\n case MSG:\n return isSetMsg();\n case WORK_TYPE:\n return isSetWorkType();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EMAIL_ID:\n return isSetEmailId();\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case COUNTRY:\n return isSetCountry();\n case PHONE:\n return isSetPhone();\n case LAST_LOGGED_IN:\n return isSetLastLoggedIn();\n case ACTIVE:\n return isSetActive();\n case NEWSLETTER:\n return isSetNewsletter();\n case REGISTERED:\n return isSetRegistered();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_BYTE_BUFFER:\n return isSetFileByteBuffer();\n case APP_NAME:\n return isSetAppName();\n case ORIGIN_NAME:\n return isSetOriginName();\n case USER_ID:\n return isSetUserId();\n case USER_IP:\n return isSetUserIp();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case M_COMMAND_TYPE:\n return isSetMCommandType();\n case M_BLOCK_IDS:\n return isSetMBlockIds();\n case M_FILE_PATH:\n return isSetMFilePath();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PROCESS_NAME:\n return isSetProcessName();\n case PROCESS_COUNT:\n return isSetProcessCount();\n case U_ID:\n return isSetUId();\n case SLEEPING:\n return isSetSleeping();\n case FOREGROUND:\n return isSetForeground();\n case FOREGROUND_TIME:\n return isSetForegroundTime();\n case LAUNCH_COUNT:\n return isSetLaunchCount();\n case IMPORTANCE:\n return isSetImportance();\n case CRASH_COUNT:\n return isSetCrashCount();\n case LAST_START_SINCE_BOOT:\n return isSetLastStartSinceBoot();\n case LAST_START_TIMESTAMP:\n return isSetLastStartTimestamp();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case DIR_NAME:\n return isSetDirName();\n case FILE_LENGTH:\n return isSetFileLength();\n case DK_FILE_CONF:\n return isSetDkFileConf();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case DIR_NAME:\n return isSetDirName();\n case FILE_LENGTH:\n return isSetFileLength();\n case DK_FILE_CONF:\n return isSetDkFileConf();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_SIZE:\n return isSetPageSize();\n case PAGE_NO:\n return isSetPageNo();\n case UP_PAGE:\n return isSetUpPage();\n case NEXT_PAGE:\n return isSetNextPage();\n case TOTAL_COUNT:\n return isSetTotalCount();\n case TOTAL_PAGE:\n return isSetTotalPage();\n case PAGE_URL:\n return isSetPageUrl();\n case PARAMS:\n return isSetParams();\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERSION:\n return isSetVersion();\n case AM_HANDLE:\n return isSetAm_handle();\n case USER:\n return isSetUser();\n case QUEUE:\n return isSetQueue();\n case RESOURCES:\n return isSetResources();\n case GANG:\n return isSetGang();\n case RESERVATION_ID:\n return isSetReservation_id();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EX:\n return isSetEx();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CIPHERTEXT:\n return isSetCiphertext();\n }\n throw new IllegalStateException();\n }"
] | [
"0.75069106",
"0.7271144",
"0.71088123",
"0.71088123",
"0.6944968",
"0.69009215",
"0.68525994",
"0.6732094",
"0.6714349",
"0.66697013",
"0.6637108",
"0.66289824",
"0.65848935",
"0.6578665",
"0.65685487",
"0.65386593",
"0.6512231",
"0.6503502",
"0.6491179",
"0.648721",
"0.64747137",
"0.6468639",
"0.6468639",
"0.64583135",
"0.64378273",
"0.6435511",
"0.64339495",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.6426895",
"0.64160943",
"0.6415927",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6415461",
"0.6413371",
"0.64123255",
"0.64093125",
"0.6407711",
"0.64051527",
"0.63982695",
"0.63982695",
"0.6394288",
"0.6392687",
"0.63913864",
"0.63913864",
"0.63901883",
"0.63721985",
"0.63721985",
"0.6362022",
"0.6362022",
"0.6360086",
"0.63502455",
"0.63497853",
"0.63474834",
"0.6344826",
"0.6342683",
"0.6342683",
"0.63415873",
"0.6339372"
] | 0.7534447 | 0 |
Returns true if field kin is set (has been assigned a value) and false otherwise | public boolean isSetKin() {
return this.kin != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetKau() {\n return this.kau != null;\n }",
"public boolean isSetKau() {\n return this.kau != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }",
"public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }",
"public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean hasKeyValue() {\n return fieldSetFlags()[1];\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetKey() {\n return EncodingUtils.testBit(__isset_bitfield, __KEY_ISSET_ID);\n }",
"public boolean isSetKey() {\n return EncodingUtils.testBit(__isset_bitfield, __KEY_ISSET_ID);\n }",
"public boolean hasHariKe() {\n return fieldSetFlags()[1];\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetNumber() {\n return (this.number != null ? this.number.isSetValue() : false);\n }",
"boolean isSetNcbieaa();",
"public boolean isSetKeff() {\r\n return isSetAttribute(MEConstants.keff);\r\n }",
"public boolean isSet() {\n\t\treturn false;\n\t}",
"boolean isSetValue();",
"boolean isSetValue();",
"public boolean hasNamaKelas() {\n return fieldSetFlags()[9];\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n case VALUE:\n return isSetValue();\n }\n throw new java.lang.IllegalStateException();\n }",
"boolean isSetNcbi8Aa();",
"public boolean isSetPk_name() {\n return this.pk_name != null;\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"public boolean isSetIn_hb() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __IN_HB_ISSET_ID);\n }",
"public boolean isSetIsinctransfer() {\n return __isset_bit_vector.get(__ISINCTRANSFER_ISSET_ID);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KAU:\n return isSetKau();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KAU:\n return isSetKau();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean kosong() {\r\n return ukuran == 0;\r\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"boolean isSetValueQuantity();",
"boolean defined(K k);",
"public boolean hasKdKelas() {\n return fieldSetFlags()[0];\n }",
"boolean isSetNextrun();",
"public boolean isSetIsowncar() {\n return __isset_bit_vector.get(__ISOWNCAR_ISSET_ID);\n }",
"boolean hasField3();",
"public boolean isSetIsbangmaiche() {\n return __isset_bit_vector.get(__ISBANGMAICHE_ISSET_ID);\n }",
"public boolean hasKdMk() {\n return fieldSetFlags()[7];\n }",
"public boolean isSetGang() {\n return EncodingUtils.testBit(__isset_bitfield, __GANG_ISSET_ID);\n }",
"public boolean isSetIsbangmai() {\n return __isset_bit_vector.get(__ISBANGMAI_ISSET_ID);\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENBANK$8) != 0;\r\n }\r\n }",
"@Override\n public boolean isSet() {\n return loci != null;\n }",
"boolean hasMPValue();",
"boolean hasField4();",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetUcarserialnumber() {\n return this.ucarserialnumber != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetDrivingmileage() {\n return __isset_bit_vector.get(__DRIVINGMILEAGE_ISSET_ID);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSetNum() {\n return this.Num != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KNF:\n return isSetKnf();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TICKET_VALUE:\n return isSetTicketValue();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CIPHERTEXT:\n return isSetCiphertext();\n }\n throw new IllegalStateException();\n }",
"boolean hasVal();",
"boolean hasVal();",
"public boolean isSet() {\n\t\treturn is_set_;\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }",
"public boolean hasK() {\n return resultCase_ == 3;\n }",
"public boolean isSetJobnumber() {\n return this.jobnumber != null;\n }",
"public boolean isSetGiim()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIIM$6) != 0;\r\n }\r\n }",
"public boolean hasK() {\n return resultCase_ == 3;\n }",
"boolean isSetLabel();",
"boolean isSetRequired();",
"public boolean isSetPreRepayAmt() {\n return EncodingUtils.testBit(__isset_bitfield, __PREREPAYAMT_ISSET_ID);\n }",
"public boolean hasVar123() {\n return fieldSetFlags()[124];\n }",
"public boolean isSetCarlevelvalue() {\n return __isset_bit_vector.get(__CARLEVELVALUE_ISSET_ID);\n }",
"public boolean isSetPkcolumn_name() {\n return this.pkcolumn_name != null;\n }",
"public boolean hasKullaniciId() {\n return fieldSetFlags()[2];\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }"
] | [
"0.7089871",
"0.7089871",
"0.70178497",
"0.70178497",
"0.70178497",
"0.70178497",
"0.70178497",
"0.70178497",
"0.70178497",
"0.70178497",
"0.70178497",
"0.6776391",
"0.6776391",
"0.6776391",
"0.6497865",
"0.6497865",
"0.64167947",
"0.64167947",
"0.64164",
"0.6393725",
"0.6393725",
"0.63470995",
"0.63470995",
"0.6337996",
"0.6230405",
"0.6218865",
"0.6203303",
"0.6183119",
"0.6164692",
"0.6153868",
"0.6153868",
"0.61435354",
"0.6132886",
"0.6115044",
"0.6092562",
"0.6085036",
"0.6078208",
"0.6050813",
"0.6047523",
"0.6047523",
"0.6033779",
"0.6033195",
"0.602624",
"0.6025117",
"0.60219073",
"0.60202366",
"0.59923315",
"0.5982871",
"0.5972468",
"0.59696084",
"0.59692276",
"0.5968657",
"0.5965122",
"0.5961458",
"0.5946581",
"0.5932001",
"0.5928959",
"0.5927995",
"0.5927995",
"0.5927995",
"0.5925839",
"0.5912063",
"0.5912063",
"0.5909128",
"0.59075826",
"0.59053755",
"0.59001243",
"0.59001243",
"0.59001243",
"0.59001243",
"0.59001243",
"0.59001243",
"0.59001243",
"0.59001243",
"0.59001243",
"0.5896812",
"0.5896591",
"0.58881253",
"0.58881253",
"0.5875321",
"0.5870129",
"0.58681905",
"0.58681804",
"0.58670497",
"0.5866937",
"0.58665174",
"0.5866397",
"0.58545595",
"0.5846799",
"0.5844129",
"0.58430237",
"0.5842903",
"0.5836137",
"0.5836137",
"0.5836137",
"0.5836137",
"0.5836137",
"0.5836137",
"0.5836137",
"0.5836137"
] | 0.8202932 | 0 |
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise | public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case LIMB:
return isSetLimb();
case POS:
return isSetPos();
case ORI:
return isSetOri();
case SPEED:
return isSetSpeed();
case ANGLS:
return isSetAngls();
case MODE:
return isSetMode();
case KIN:
return isSetKin();
}
throw new IllegalStateException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PARAMS:\n return isSetParams();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }",
"boolean hasField4();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case POST_ID:\n return isSetPostId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ENTITY_ID:\r\n return isSetEntityId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }",
"boolean hasFieldId();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"boolean hasField0();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PARENT_ID:\n return isSetParentId();\n case TYPE:\n return isSetType();\n case VALUE:\n return isSetValue();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetFields() {\n return this.fields != null;\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RELATED_ID:\n return isSetRelatedId();\n case COMPANY_ID:\n return isSetCompanyId();\n case COMPANY_GROUP_ID:\n return isSetCompanyGroupId();\n case MACHINE_ID:\n return isSetMachineId();\n case ACTIVE_START_TIMESTAMP:\n return isSetActiveStartTimestamp();\n case ACTIVED_END_TIMESTAMP:\n return isSetActivedEndTimestamp();\n case MACHINE_INNER_IP:\n return isSetMachineInnerIP();\n case MACHINE_OUTER_IP:\n return isSetMachineOuterIP();\n case CREATE_TIMESTAMP:\n return isSetCreateTimestamp();\n case LASTMODIFY_TIMESTAMP:\n return isSetLastmodifyTimestamp();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case COMMODITY_IDS:\n return isSetCommodityIds();\n }\n throw new IllegalStateException();\n }",
"boolean hasField1();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case X:\n return isSetX();\n case Y:\n return isSetY();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new java.lang.IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case ID_CURSA:\r\n return isSetIdCursa();\r\n case NR_LOC:\r\n return isSetNrLoc();\r\n case CLIENT:\r\n return isSetClient();\r\n }\r\n throw new java.lang.IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PID:\n return isSetPid();\n case EXCEPTION_ID:\n return isSetExceptionId();\n case USER_ID:\n return isSetUserId();\n case REPORT_DATE:\n return isSetReportDate();\n case UN_ASSURE_CONDITION:\n return isSetUnAssureCondition();\n case HOUSE_PROPERY_CONDITION:\n return isSetHouseProperyCondition();\n case REMARK:\n return isSetRemark();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATE_ID:\n return isSetCreateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n case UPDATE_ID:\n return isSetUpdateId();\n case PROJECT_ID:\n return isSetProjectId();\n case LEGAL_LIST:\n return isSetLegalList();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }"
] | [
"0.79056656",
"0.79056656",
"0.78333884",
"0.78036314",
"0.77937067",
"0.7780796",
"0.7780796",
"0.7780796",
"0.7780796",
"0.76468164",
"0.754723",
"0.75451803",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.75237954",
"0.7519931",
"0.7519931",
"0.7518171",
"0.7517334",
"0.7517334",
"0.7517334",
"0.7517334",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.75077486",
"0.74782556",
"0.7463401",
"0.7450414",
"0.74464494",
"0.74464494",
"0.7432297",
"0.74118006",
"0.73933053",
"0.7392036",
"0.7386285",
"0.7381753",
"0.7379419",
"0.7373811",
"0.7371855",
"0.73575383",
"0.73532623",
"0.7346856",
"0.73463356",
"0.7345177",
"0.7345177",
"0.73431945",
"0.7337974",
"0.7333134",
"0.7332566",
"0.73245287",
"0.7323758",
"0.7319723",
"0.7318809",
"0.7317446",
"0.7308939",
"0.7308939",
"0.7308939",
"0.7308939",
"0.7308939"
] | 0.0 | -1 |
check for required fields | public void validate() throws org.apache.thrift.TException {
if (limb == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'limb' was not present! Struct: " + toString());
}
if (pos == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'pos' was not present! Struct: " + toString());
}
if (ori == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'ori' was not present! Struct: " + toString());
}
if (speed == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'speed' was not present! Struct: " + toString());
}
if (angls == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'angls' was not present! Struct: " + toString());
}
if (mode == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'mode' was not present! Struct: " + toString());
}
if (kin == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'kin' was not present! Struct: " + toString());
}
// check for sub-struct validity
if (pos != null) {
pos.validate();
}
if (ori != null) {
ori.validate();
}
if (speed != null) {
speed.validate();
}
if (angls != null) {
angls.validate();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }",
"boolean isRequired();",
"boolean isRequired();",
"boolean isRequired();",
"private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}",
"private void fillMandatoryFields() {\n\n }",
"private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }",
"public boolean isRequired();",
"private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}",
"private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }",
"private boolean checkfields() {\n try {\n Integer.parseInt(checknum.getText().toString());\n Integer.parseInt(banknum.getText().toString());\n Integer.parseInt(branchnum.getText().toString());\n Integer.parseInt(accountnum.getText().toString()); //was commented\n\n } catch (NumberFormatException e) { // at least one of these numbers is not Integer\n return false;\n }\n\n if (checknum.getText().toString().equals(null) || banknum.getText().toString().equals(null) ||branchnum.getText().toString().equals(null)|| accountnum.getText().toString().equals(null))\n return false; // At least one of the fields is empty\n\n return true;\n }",
"public void checkFields(){\n }",
"protected boolean isAllRequiredTxtFieldsFilled() {\r\n JTextField[] txtFields = {\r\n txtFieldFirstName, txtFieldLastName,\r\n txtFieldDateOfBirth, txtFieldIBAN,\r\n txtFieldState, txtFieldHouseNumber,\r\n txtFieldPostcode, txtFieldLocation,\r\n txtFieldCountry, txtFieldState\r\n };\r\n\r\n for (JTextField txtField : txtFields) {\r\n if (txtField.getText().equals(\"\")) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }",
"public static boolean checkMandatoryFields(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean validateInputs() {\n return !proID.getText().isEmpty() || \n !proName.getText().isEmpty() ||\n !proPrice.getText().isEmpty();\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public boolean hasFieldErrors();",
"private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }",
"private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }",
"public abstract List<String> requiredFields();",
"public final boolean hasAllRequiredField() {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n CharSequence obj = editText.getText().toString();\n int length = obj.length() - 1;\n int i = 0;\n boolean z = false;\n while (i <= length) {\n boolean z2 = obj.charAt(!z ? i : length) <= ' ';\n if (!z) {\n if (!z2) {\n z = true;\n } else {\n i++;\n }\n } else if (!z2) {\n break;\n } else {\n length--;\n }\n }\n String obj2 = obj.subSequence(i, length + 1).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n CharSequence obj3 = editText2.getText().toString();\n int length2 = obj3.length() - 1;\n int i2 = 0;\n boolean z3 = false;\n while (i2 <= length2) {\n boolean z4 = obj3.charAt(!z3 ? i2 : length2) <= ' ';\n if (!z3) {\n if (!z4) {\n z3 = true;\n } else {\n i2++;\n }\n } else if (!z4) {\n break;\n } else {\n length2--;\n }\n }\n String obj4 = obj3.subSequence(i2, length2 + 1).toString();\n if (TextUtils.isEmpty(obj2) || TextUtils.isEmpty(obj4)) {\n return false;\n }\n return true;\n }",
"public static boolean checkMandatoryFieldsRegistration(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }",
"public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }",
"private void verifyInput(){\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n\n mNameFieldsFilled = !TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName);\n\n }",
"private void checkValidation() {\n String getInstituteName = NameofInstitute.getText().toString();\n String getDegreename = SpinnerDegree.getSelectedItem().toString();\n\n\n // Check if all strings are null or not\n if (getInstituteName.equals(\"\") || getInstituteName.length() == 0 || getDegreename.equals(\"\") || getDegreename.length() == 0)\n new CustomToast().Show_Toast(getActivity(), getView(),\"All fields are required.\");\n // Else do signup or do your stuff\n else {\n //Toast.makeText(getActivity(), \"All Ok till Now\", Toast.LENGTH_SHORT).show();\n AddQualifications(getDegreename,getInstituteName);\n }\n\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"@Override\n\tprotected Boolean isValid(String[] fields) {\n\t\t//check - evnet_id, yes, maybe, invited, no\n return (fields.length > 4);\n\t}",
"boolean isSetRequired();",
"private boolean validateFields() {\r\n\t\tif (txUsuario.getText().equals(\"\") || txPassword.getText().equals(\"\")\r\n\t\t\t\t|| checkAdmin.isIndeterminate()|| checkTPV.isIndeterminate())\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }",
"boolean isMandatory();",
"public boolean checkFields(){\n String message = \"\";\n if (firstName.getText().isEmpty()){\n message=\"First name is required\";\n }\n if (lastName.getText().isEmpty()){\n if (message.isEmpty())\n message = \"Last name is required\";\n else\n message = \"First name and Last name are required\";\n }\n if (birthday.getValue() == null){\n if (message.isEmpty())\n message = \"please select your birthday\";\n else if (firstName.getText().isEmpty()&& !lastName.getText().isEmpty())\n message = \"First name and birthday required\";\n else if (!firstName.getText().isEmpty() && lastName.getText().isEmpty())\n message = \"Last name and birthday required\";\n else\n message = \"all fields are required\";\n }\n errorDisplay.setText(message);\n return message.equals(\"\");\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"public boolean fieldsAreFilled(){\r\n boolean filled = true;\r\n if(txtFName.getText().trim().isEmpty() | txtFEmail.getText().trim().isEmpty() | txtFPhone.getText().trim().isEmpty()){\r\n filled = false;\r\n }\r\n return filled;\r\n }",
"private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean isRequired() {\n return field.isRequired();\n }",
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }",
"@Override\n public JsonNode required(String fieldName) {\n return _reportRequiredViolation(\"Node of type %s has no fields\",\n ClassUtil.nameOf(getClass()));\n }",
"private boolean fieldsFilled(){\n return !editTextEmail.getText().toString().isEmpty() &&\n !editTextPassword.getText().toString().isEmpty();\n }",
"public boolean validations() {\n boolean result = false;\n String nameString = mItemNameEditText.getText().toString().trim();\n String locationString = mItemLocationEditText.getText().toString().trim();\n\n if (nameString.isEmpty() || nameString == null || locationString.isEmpty() || locationString == null || isImageNotPresent()) {\n displayToastMessage(getString(R.string.fields_mandatory_msg));\n return result;\n } else {\n result = true;\n return result;\n }\n }",
"private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }",
"private boolean validateInputs() {\n if (Constants.NULL.equals(review)) {\n reviewET.setError(\"Must type a review!\");\n reviewET.requestFocus();\n return false;\n }\n if (Constants.NULL.equals(heading)) {\n headingET.setError(\"Heading cannot be empty\");\n headingET.requestFocus();\n return false;\n }\n return true;\n }",
"private boolean noFieldsEmpty() {\n if ( nameField.getText().isEmpty()\n || addressField.getText().isEmpty()\n || cityField.getText().isEmpty()\n || countryComboBox.getSelectionModel().getSelectedItem() == null\n || divisionComboBox.getSelectionModel().getSelectedItem() == null\n || postalField.getText().isEmpty()\n || phoneField.getText().isEmpty() ) {\n errorLabel.setText(rb.getString(\"fieldBlank\"));\n return false;\n }\n return true;\n }",
"private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }",
"public boolean verifyData()\n {\n if(jTextFieldName.getText().equals(\"\") && jTextFieldNumber.getText().equals(\"\") \n || jTextFieldSupplier.getText().equals(\"\") || jTextArea1.getText().equals(\"\") || jTextFieldModel.getText().equals(\"\"))\n {\n JOptionPane.showMessageDialog(null, \"One or More Fields Are Empty\");\n return false;\n }\n \n else\n {\n return true;\n }\n \n }",
"boolean hasField3();",
"private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}",
"public boolean isRequired() {\n return required;\n }",
"private void validarCampos() {\n }",
"public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }",
"public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}",
"private boolean validateData() {\n if (!mCommon.validateData()) return false;\n\n Core core = new Core(this);\n\n // Due Date is required\n if (TextUtils.isEmpty(getRecurringTransaction().getDueDateString())) {\n core.alert(R.string.due_date_required);\n return false;\n }\n\n if (TextUtils.isEmpty(mCommon.viewHolder.dateTextView.getText().toString())) {\n core.alert(R.string.error_next_occurrence_not_populate);\n\n return false;\n }\n\n // Payments Left must have a value\n if (getRecurringTransaction().getPaymentsLeft() == null) {\n core.alert(R.string.payments_left_required);\n return false;\n }\n return true;\n }",
"public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }",
"boolean getRequired();",
"boolean getRequired();",
"boolean getRequired();",
"Rule FieldReq() {\n // No effect on the value stack\n return FirstOf(\"required \", \"optional \");\n }",
"protected boolean checkFields() {\n // Check if any of the fields are empty\n boolean ok = true;\n ok = !isFieldEmpty(password2) && ok;\n ok = !isFieldEmpty(password) && ok;\n ok = !isFieldEmpty(email) && ok;\n\n if (!ok)\n return false;\n\n // Check whether passwords match\n if (!password.getText().toString().equals(password2.getText().toString())){\n password2.setError(getString(R.string.signup_password_mismatch));\n password2.requestFocus();\n return false;\n }\n return true;\n }",
"public static void validateRequiredEntries(FlightMap flightMap, String... keys) {\n for (String key : keys) {\n if (null == flightMap.getRaw(key)) {\n throw new MissingRequiredFieldsException(\n String.format(\"Required entry with key %s missing from flight map.\", key));\n }\n }\n }",
"public void TC_03_verify_FirstName_Mandatory_Field() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details except first name\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", \"\");\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding first name\r\n\t\t// is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Please enter a value for First Name\");\r\n\r\n\t}",
"private boolean isValid(){\n if(txtFirstname.getText().trim().isEmpty() || txtLastname.getText().trim().isEmpty() ||\n txtEmailAddress.getText().trim().isEmpty() || dobPicker.getValue()==null\n || txtPNum.getText().trim().isEmpty()\n || txtDefUsername.getText().trim().isEmpty()\n || curPassword.getText().trim().isEmpty()){\n \n return false; // return false if one/more fields are not filled\n }else{\n if(!newPassword.getText().trim().isEmpty()){\n if(!confirmPassword.getText().trim().isEmpty()){\n return true;\n }else{\n return false;\n }\n }\n return true; // return true if all fields are filled\n }\n }",
"public boolean isRequired() {\n \treturn model.isRequired();\n }",
"private boolean formIsValid(){\r\n // check if all the required fields have been filled in\r\n boolean allFieldsEntered = formComplete();\r\n // check if Name field has valid input\r\n boolean nameFieldValid = isAllChars(NAME_FIELD.getText());\r\n // check if city field has valid input\r\n boolean cityFieldValid = isAllChars(CITY_FIELD.getText());\r\n // check if country field has valid input\r\n boolean ctryFieldValid = isAllChars(COUNTRY_FIELD.getText());\r\n // check if zipcode field has valid input\r\n boolean zipFieldValid = isAllNums(ZIP_FIELD.getText());\r\n // check if phone field has valid input\r\n boolean phoneFieldValid = isAllNums(PHONE_FIELD.getText());\r\n // check if all fields and form are valid\r\n return allFieldsEntered && nameFieldValid &&\r\n cityFieldValid && ctryFieldValid &&\r\n zipFieldValid && phoneFieldValid; \r\n }",
"private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionDataException(\"No username field\");\n if (password == null) throw new InvalidConnectionDataException(\"No password field\");\n }",
"boolean hasField4();",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }",
"public static boolean checkMandatoryFieldsUpdateUser(Object obj) {\n\n\t\tif (obj instanceof UpdateUserDTO) {\n\n\t\t\tUpdateUserDTO updateUserDTO = (UpdateUserDTO) obj;\n\n\t\t\tif (updateUserDTO.getFirstName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getLastName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getAddress1().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getCity().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getState().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getZipCode().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getNewEmailId().trim().isEmpty()\n\n\t\t\t) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean isRequired () {\n return required;\n }",
"@Test(priority=1)\n\tpublic void testWhenFieldsAreEmpty() {\n\t\tsignup.clearAllFields();\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\n\t\t// when all fields are empty errors list is greater than 2\n\t\t// the best way to do it is to have a list of all expected values and compare it with the actual received strings\n\t\tAssert.assertTrue(3<errors.size());\n\t}",
"@Test (priority = 2)\n\tpublic void TC2_CheckAllFields_Exisit ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If all fields of create user page are existing\n\t\tUserObj.Validate_AllFields_Exsist();\n\t\n\n\t}",
"private List<String> returnEmptyRequiredFields(List<String> requiredFields, Object givenObject){\n return requiredFields.stream()\n .filter(x -> {\n try {\n return StringUtils.isEmpty((String) givenObject.getClass().getDeclaredField(x).get(givenObject));\n } catch (Exception e) {\n //Not going to try and scmOrganization for exceptions; if there is an exception we probably have greater issues than an empty/null field\n getLog().debug(String.format(\"Unable to ascertain if %s is null/empty\",x));\n return true;\n }\n })\n .collect(Collectors.toList());\n }",
"public boolean isRequired() {\r\n return required;\r\n }",
"private void checkMandatoryArgs(UserResource target, Errors errors) {\n final String proc = PACKAGE_NAME + \".checkMandatoryArgs.\";\n final String email = target.getEmail();\n final String password = target.getPassword();\n final String lastName = target.getLastName();\n\n logger.debug(\"Entering: \" + proc + \"10\");\n\n if (TestUtils.isEmptyOrWhitespace(email)) {\n errors.rejectValue(\"email\", \"user.email.required\");\n }\n logger.debug(proc + \"20\");\n\n if (TestUtils.isEmptyOrWhitespace(password)) {\n errors.rejectValue(\"password\", \"user.password.required\");\n }\n logger.debug(proc + \"30\");\n\n if (TestUtils.isEmptyOrWhitespace(lastName)) {\n errors.rejectValue(\"lastName\", \"userLastName.required\");\n }\n logger.debug(\"Leaving: \" + proc + \"40\");\n }",
"private void validateEmptyElements()\n {\n // Check if something is missing\n if (_dietTreatment.getName().length() < 1)\n {\n getErrors().add(\"Kein Name angegeben.\");\n }\n\n // TODO: check that at least one user is TREATING!\n if (_dietTreatment.getSystemUsers().isEmpty())\n {\n getErrors().add(\"Kein verantwortlicher User angegeben.\");\n }\n\n if (_dietTreatment.getPatientStates().isEmpty())\n {\n getErrors().add(\"Keine Zuweisungsdiagnose angegeben.\");\n }\n }",
"private boolean validarCampos() {\r\n\t\tif (cedula.equals(\"\") || nombre.equals(\"\") || apellido.equals(\"\") || telefono.equals(\"\")) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }",
"private boolean areFieldsNotBlank() {\r\n boolean ok=true;\r\n if (dogNameField.getText() == null) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n } else if (dogNameField.getText().isBlank()) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n }\r\n return ok;\r\n }",
"private boolean checkInfo()\n {\n boolean flag = true;\n if(gName.isEmpty())\n {\n groupName.setError(\"Invalid name\");\n flag = false;\n }\n if(gId.isEmpty())\n {\n groupId.setError(\"Invalid id\");\n flag = false;\n }\n if(gAddress.isEmpty())\n {\n groupAddress.setError(\"Invalid address\");\n flag = false;\n }\n\n for(char c : gName.toCharArray()){\n if(Character.isDigit(c)){\n groupName.setError(\"Invalid Name\");\n flag = false;\n groupName.requestFocus();\n }\n }\n\n if(groupType.isEmpty())\n {\n flag = false;\n rPublic.setError(\"Choose one option\");\n }\n\n if(time.isEmpty())\n time = \"not set\";\n\n if(groupDescription.getText().toString().length()<20||groupDescription.getText().toString().length()>200)\n groupDescription.setError(\"Invalid description\");\n\n return flag;\n }",
"public boolean isRequired()\n\t{\n\t\treturn required;\n\t}",
"@Override\n public void validate() {\n boolean b = false;\n\n //retrieving the contact us form details from request object\n String firstName = objContactUsForm.getName().trim();\n String email = objContactUsForm.getEmail().trim();\n String message = objContactUsForm.getMessage().trim();\n\n //now validating each of the field\n if (firstName.isEmpty()) {\n addFieldError(\"name\", getText(\"name.required\"));\n b = true;\n }\n\n if (email.isEmpty()) {\n addFieldError(\"email\", getText(\"email.required\"));\n b = true;\n }\n if (!b) {\n Pattern p = Pattern.compile(\".+@.+\\\\.[a-z]+\");\n Matcher m = p.matcher(email);\n boolean matchFound = m.matches();\n if (!matchFound) {\n addFieldError(\"email\", \"Please Provide Valid Email ID\");\n }\n }\n\n if (message.isEmpty()) {\n addFieldError(\"message\", getText(\"message.required\"));\n b = true;\n }\n\n if (!b) {\n boolean matches = message.matches(\"[<>!~@$%^&\\\"|!\\\\[#$]\");\n if (matches) {\n addFieldError(\"message\", \"Please Provide Valid Message Name\");\n b = true;\n }\n }\n }",
"boolean hasField1();",
"public static String errorMessageForRequiredFields(HashMap<String, String> requiredFields){\n String errorMessage = \"\";\n for(String fieldName: requiredFields.keySet()){\n if(requiredFields.get(fieldName).isBlank()){\n errorMessage += \"- \"+fieldName + \" is required!\\n\";\n }\n }\n if(!errorMessage.isBlank()){\n errorMessage = \"Please solve the following errors:\\n\" +errorMessage;\n }\n return errorMessage;\n }",
"private boolean validSignInFields() {\n final EditText etEmail = findViewById(R.id.etSignInEmail);\n final EditText etPassword = findViewById(R.id.etSignInPassword);\n\n final String email = etEmail.getText().toString();\n final String password = etPassword.getText().toString();\n\n if (email.isEmpty()) {\n etEmail.setError(\"Email field is required.\");\n etEmail.requestFocus();\n } else if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n etEmail.setError(\"Valid email address required.\");\n etEmail.requestFocus();\n } else if (password.isEmpty()) {\n etPassword.setError(\"Password field is required.\");\n etPassword.requestFocus();\n } else {\n return true;\n }\n\n return false;\n }",
"@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}",
"boolean isNameRequired();",
"public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n\t\t\tisValid = false;\n\t\t}\n\t\treturn isValid;\n\t}",
"public void validateRequired(Arguments arguments) {\n if (StructuredLoggerFactory.requiredValuesEnabled() && !requireds.isEmpty()) {\n requireds.forEach(index -> {\n if (arguments.get(index) == null) {\n throw new MissingSchemaValueException(\"Entire schema must be specified. Missing: \" + names.get(index));\n }\n });\n }\n }",
"public boolean isRequired() {\r\n return required;\r\n }",
"public boolean isRequired() {\r\n return required;\r\n }",
"private void checkFieldsForEmptyValues() {\n String s1 = edtEmail.getText().toString();\n String s2 = edtDisplayName.getText().toString();\n String s3 = edtPaswd.getText().toString();\n\n if (s1.equals(\"\") || s2.equals(\"\") || s3.equals(\"\")) { //disables the button\n btnRegister.setEnabled(false);\n } else { //enables the button\n btnRegister.setEnabled(true);\n }\n }",
"@Override\n public boolean isPageComplete() {\n Text description = getMandatoryWidgets().get(\"description\");\n if (description.getText().length() == 0) {\n setErrorMessage(I18N.tr(\"Field is mandatory\") + \": \"\n + I18N.tr(XWT.getElementName((Object) description)));\n return false;\n }\n // Optional\n HashMap<String, Text> optWidgets = getOptionalWidgets();\n // Sorted array\n Text[] optArray = { optWidgets.get(\"airPerformance\"), optWidgets.get(\"motorPower\"),\n optWidgets.get(\"ventilatorPerformance\"), optWidgets.get(\"motorRPM\"),\n optWidgets.get(\"current\"), optWidgets.get(\"voltage\") };\n for (int i = 0; i < optArray.length; i++) {\n if (!checkValidity(optArray[i])) {\n setErrorMessage(I18N.tr(\"Invalid input for field\") + \" \"\n + I18N.tr(XWT.getElementName((Object) optArray[i])));\n return false;\n }\n }\n setErrorMessage(null);\n return true;\n }",
"public boolean verifyFields()\n\t{\n\t\t// check name first\n\t\tif (!validateUserName(username.getText()))\n\t\t\treturn false;\n\n\t\t// check address if name is valid\n\t\tif (!validateIP(address.getText()))\n\t\t{\n\t\t\tsetWarning(\"invalid address\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// only check port if name and address are okay\n\t\ttry\n\t\t{\n\t\t\tInteger.parseInt(port.getText());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tsetWarning(\"invalid port number\");\n\t\t\treturn false;\n\t\t}\n\n\t\tstatus.setTextFill(GREEN);\n\t\tstatus.setText(\"attempting connection\");\n\n\t\treturn true;\n\t}",
"private boolean areFieldsValid() {\n // Whether the values from the fields can be inserted into the database without conflict.\n boolean retVal = true;\n\n if (vehicleId == -1) {\n // Then we don't know which vehicle to attach this issue to. This should never happen\n return false;\n // TODO: Display something to the user\n }\n\n // If we're creating a new Issue, we need to create the Issue object\n if (issue == null) {\n // A new issue is not fixed, and thus will be open.\n // Try to get the open status id and ensure it properly fetched\n int openIssueId = dbHelper.getOpenIssueStatusId();\n if (openIssueId != -1) {\n issue = new Issue(mTitle.getText().toString().trim(), vehicleId, openIssueId);\n }\n }\n\n // Convert the EditText fields to strings\n String checkTitle = mTitle.getText().toString().trim();\n String checkDescription = mDescription.getText().toString().trim();\n String checkPriority = mPriority.getText().toString().trim();\n\n if (checkTitle.isEmpty()) {\n retVal = false;\n eTitle.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else if (!VerifyUtil.isStringSafe(checkTitle)) {\n retVal = false;\n eTitle.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessageInvalidCharacters));\n } else {\n eTitle.setError(null);\n issue.setTitle(checkTitle);\n }\n\n if (checkDescription.isEmpty()) {\n retVal = false;\n eDescription.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else if (!VerifyUtil.isTextSafe(checkDescription)) {\n retVal = false;\n eDescription.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessageInvalidCharacters));\n } else {\n eDescription.setError(null);\n issue.setDescription(checkDescription);\n }\n\n if (checkPriority.isEmpty()) {\n retVal = false;\n ePriority.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else {\n ePriority.setError(null);\n issue.setPriority(priorityStringToInt(checkPriority));\n }\n\n return retVal;\n }",
"public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }",
"@Override\n\tpublic void validate() {\n\t\tSystem.out.println(user+\"//\"+password);\n\t\tif (user == null || user.trim().equals(\"\")) {\n\t\t\taddFieldError(\"user\", \"The user is required\");\n\t\t}\n\t\tif (password == null || password.trim().equals(\"\")) {\n\t\t\taddFieldError(\"password\", \"password is required\");\n\t\t}\n\t}",
"private boolean checkIfHasRequiredFields(BoxItem shareItem){\n return shareItem.getSharedLink() != null && shareItem.getAllowedSharedLinkAccessLevels() != null;\n }",
"void checkValid();",
"private boolean formComplete(){\r\n return NAME_FIELD.getLength()>0 && ADDRESS_1_FIELD.getLength()>0 &&\r\n CITY_FIELD.getLength()>0 && ZIP_FIELD.getLength()>0 && \r\n COUNTRY_FIELD.getLength()>0 && PHONE_FIELD.getLength()>0; \r\n }"
] | [
"0.75287306",
"0.7430543",
"0.7430543",
"0.7430543",
"0.7394445",
"0.73590785",
"0.7280072",
"0.7234574",
"0.72328943",
"0.72021484",
"0.7163772",
"0.71448237",
"0.7141192",
"0.7092876",
"0.7075819",
"0.7058885",
"0.70559984",
"0.70541537",
"0.70536923",
"0.7030236",
"0.7028824",
"0.69982386",
"0.69936967",
"0.6945487",
"0.6931262",
"0.69299215",
"0.6905577",
"0.6896448",
"0.6888563",
"0.6881679",
"0.68593067",
"0.68424296",
"0.6833708",
"0.68163055",
"0.6798157",
"0.6779351",
"0.67570937",
"0.667031",
"0.6647974",
"0.66358423",
"0.6608286",
"0.6605936",
"0.6597781",
"0.6552027",
"0.65355825",
"0.65244114",
"0.6480909",
"0.64798933",
"0.64619744",
"0.6460281",
"0.645311",
"0.64490265",
"0.6440438",
"0.64317304",
"0.6427133",
"0.6422657",
"0.64017546",
"0.64017546",
"0.64017546",
"0.640012",
"0.63954586",
"0.6381656",
"0.6374054",
"0.6373196",
"0.6366658",
"0.6365349",
"0.6361256",
"0.6342586",
"0.6333807",
"0.63335514",
"0.63310766",
"0.632473",
"0.63214755",
"0.6307248",
"0.6301159",
"0.62886345",
"0.6285287",
"0.6284661",
"0.62787616",
"0.62729526",
"0.62715185",
"0.6265448",
"0.62648284",
"0.62618536",
"0.62610465",
"0.62609226",
"0.62592363",
"0.62584704",
"0.6255578",
"0.62527883",
"0.6252605",
"0.6252605",
"0.62513506",
"0.62484074",
"0.62386894",
"0.62345177",
"0.6225108",
"0.62071985",
"0.62053126",
"0.6195577",
"0.6183042"
] | 0.0 | -1 |
create a shader program | private static int compileShader(int type, String shaderCode){
final int shaderObjectId = glCreateShader(type);
if(shaderObjectId == 0){
System.out.print("Can't create a shader\n");
return 0;
}
//传递glsl代码
glShaderSource(shaderObjectId,shaderCode);
glCompileShader(shaderObjectId);
final int [] compileStatus = new int [1];
glGetShaderiv(shaderObjectId,GL_COMPILE_STATUS,compileStatus,0);;
if(compileStatus[0]==0){
glDeleteShader(shaderObjectId);
System.out.print("Compiliation of shader failed");
return 0;
}
return shaderObjectId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ShaderProgram(Context context, int vertexShaderResourceId, int fragmentShaderResourceId, ShaderType type) {\n\t\t// Compile the shaders and link the program.\n\t\tmProgram = ShaderHelper.getInstance().buildProgram(TextResourceReader.readTextFileFromResource(context, vertexShaderResourceId),\n\t\t\tTextResourceReader.readTextFileFromResource(context, fragmentShaderResourceId));\n\t}",
"private static int createProgram(int[] shaderIds){\n int shaderProgramId = glCreateProgram();\n\n for(int shader: shaderIds){\n if(shader != -1){\n glAttachShader(shaderProgramId, shader);\n }\n }\n glLinkProgram(shaderProgramId);\n\n int[] linkResult = {0};\n glGetProgramiv(shaderProgramId, GL_LINK_STATUS, linkResult);\n if(linkResult[0] == GL_FALSE){\n System.err.println(\"Failed to link shader program.\");\n String log = glGetProgramInfoLog(shaderProgramId);\n System.err.println(\"Log: \");\n System.err.println(log);\n }\n\n glValidateProgram(shaderProgramId);\n\n int[] validationResult = {0};\n glGetProgramiv(shaderProgramId, GL_VALIDATE_STATUS, validationResult);\n if(validationResult[0] == GL_FALSE){\n System.err.println(\"Failed to validate shader program.\");\n String log = glGetProgramInfoLog(shaderProgramId);\n System.err.println(\"Log: \");\n System.err.println(log);\n }\n\n return shaderProgramId;\n }",
"public ShaderProgram loadShader(String vsProcess, String fsProcess);",
"void glAttachShader(int program, int shader);",
"public void addFragmentShader(String fileName);",
"@NativeType(\"bgfx_program_handle_t\")\n public static short bgfx_create_program(@NativeType(\"bgfx_shader_handle_t\") short _vsh, @NativeType(\"bgfx_shader_handle_t\") short _fsh, @NativeType(\"bool\") boolean _destroyShaders) {\n long __functionAddress = Functions.create_program;\n return invokeCCC(_vsh, _fsh, _destroyShaders, __functionAddress);\n }",
"void glShaderSource(int shader, String string);",
"private static int createGlProgram(String vertexCode, String fragmentCode) {\n int vertex = loadShader(GLES20.GL_VERTEX_SHADER, vertexCode);\n if (vertex == 0) {\n return 0;\n }\n int fragment = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentCode);\n if (fragment == 0) {\n return 0;\n }\n int program = GLES20.glCreateProgram();\n if (program != 0) {\n GLES20.glAttachShader(program, vertex);\n GLES20.glAttachShader(program, fragment);\n GLES20.glLinkProgram(program);\n int[] linkStatus = new int[1];\n GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);\n if (linkStatus[0] != GLES20.GL_TRUE) {\n LogUtil.error(TAG, \"Could not link program \" + GLES20.glGetProgramInfoLog(program));\n GLES20.glDeleteProgram(program);\n program = 0;\n }\n }\n return program;\n }",
"public static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n \n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n \n return shader;\n }",
"private static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n return shader;\n }",
"@NativeType(\"bgfx_shader_handle_t\")\n public static short bgfx_create_shader(@NativeType(\"bgfx_memory_t const *\") BGFXMemory _mem) {\n return nbgfx_create_shader(_mem.address());\n }",
"int glCreateProgram();",
"private int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n GLUtils.checkGLError(\"glCreateShader\");\n \n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLUtils.checkGLError(\"glShaderSource\");\n GLES20.glCompileShader(shader);\n GLUtils.checkGLError(\"glCompileShader\");\n\n return shader;\n }",
"public void addVertexShader(String fileName);",
"public int createProgram(GL2 gl2) {\r\n programID = gl2.glCreateProgram();\r\n\r\n for (int i = 0; i < vertexShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, vertexShaderList.elementAt(i));\r\n }\r\n for (int i=0; i < geometryShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, geometryShaderList.elementAt(i));\r\n }\r\n for (int i = 0; i < fragmentShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, fragmentShaderList.elementAt(i));\r\n }\r\n //gl2.glLinkProgram(programID); \r\n /*\r\n if (! linkStatus(gl2, programID)) {\r\n System.exit(0); \r\n }\r\n */\r\n return programID;\r\n }",
"public static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n return shader;\n }",
"static public ShaderProgram createDefaultShader() {\n String vertexShader = \"attribute vec4 \" + ShaderProgram.POSITION_ATTRIBUTE + \";\\n\" //\n + \"attribute vec2 \" + ShaderProgram.TEXCOORD_ATTRIBUTE + \"0;\\n\" //\n + \"uniform mat4 u_projTrans;\\n\" //\n + \"varying vec2 v_texCoords;\\n\" //\n + \"\\n\" //\n + \"void main()\\n\" //\n + \"{\\n\" //\n + \" v_texCoords = \" + ShaderProgram.TEXCOORD_ATTRIBUTE + \"0;\\n\" //\n + \" gl_Position = u_projTrans * \" + ShaderProgram.POSITION_ATTRIBUTE + \";\\n\" //\n + \"}\\n\";\n String fragmentShader = \"#ifdef GL_ES\\n\" //\n + \"#define LOWP lowp\\n\" //\n + \"precision mediump float;\\n\" //\n + \"#else\\n\" //\n + \"#define LOWP \\n\" //\n + \"#endif\\n\" //\n + \"varying vec2 v_texCoords;\\n\" //\n + \"uniform sampler2D u_texture;\\n\" //\n + \"void main()\\n\"//\n + \"{\\n\" //\n + \" gl_FragColor = texture2D(u_texture, v_texCoords);\\n\" //\n + \"}\";\n\n ShaderProgram shader = new ShaderProgram(vertexShader, fragmentShader);\n if (shader.isCompiled() == false)\n throw new IllegalArgumentException(\"couldn't compile shader: \" + shader.getLog());\n return shader;\n }",
"public int createShader(GL2 gl2, String name, int shaderType) {\r\n int shader = gl2.glCreateShader(shaderType);\r\n \r\n if ( !(shaderType == GL2.GL_VERTEX_SHADER || shaderType == GL2.GL_FRAGMENT_SHADER || shaderType == GL3.GL_GEOMETRY_SHADER) ) {\r\n System.out.println(\"Incorrection shader type : \" + shaderType);\r\n System.exit(0);\r\n }\r\n \r\n try {\r\n //System.out.println(\"Creating : \" + name );\r\n \r\n String fsrc = \"\";\r\n String line = \"\";\r\n String buffer[];\r\n BufferedReader reader = new BufferedReader(new FileReader(name));\r\n while ((line=reader.readLine()) != null) {\r\n fsrc += line + \"\\n\";\r\n }\r\n reader.close();\r\n buffer = new String[] { fsrc };\r\n gl2.glShaderSource(shader, 1, buffer, (int[])null, 0);\r\n gl2.glCompileShader(shader);\r\n if (compileStatus(gl2, shader)) {\r\n switch (shaderType) {\r\n case GL2.GL_FRAGMENT_SHADER: { fragmentShaderList.add(shader); break; }\r\n case GL2.GL_VERTEX_SHADER: { vertexShaderList.add(shader); break; }\r\n case GL3.GL_GEOMETRY_SHADER: { geometryShaderList.add(shader); break; }\r\n default: System.exit(0);\r\n }\r\n } else {\r\n System.exit(0);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return shader;\r\n }",
"@NativeType(\"bgfx_program_handle_t\")\n public static short bgfx_create_compute_program(@NativeType(\"bgfx_shader_handle_t\") short _csh, @NativeType(\"bool\") boolean _destroyShaders) {\n long __functionAddress = Functions.create_compute_program;\n return invokeCC(_csh, _destroyShaders, __functionAddress);\n }",
"private void initialize() {\n ShaderProgram.pedantic = false;\r\n\r\n shader = CustomShaderLoader.createShader();\r\n if (!shader.isCompiled()) {\r\n System.err.println(shader.getLog());\r\n System.exit(0);\r\n }\r\n if (shader.getLog().length() != 0)\r\n System.out.println(shader.getLog());\r\n }",
"public static int loadShader(int type, String shaderCode) {\n int shader = GLES20.glCreateShader(type);\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n return shader;\n }",
"private int loadGLShader(int type, String code) {\n int shader = GLES20.glCreateShader(type);\n GLES20.glShaderSource(shader, code);\n GLES20.glCompileShader(shader);\n\n // Get the compilation status.\n final int[] compileStatus = new int[1];\n GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compileStatus, 0);\n\n // If the compilation failed, delete the shader.\n if (compileStatus[0] == 0) {\n Log.e(TAG, \"Error compiling shader: \" + GLES20.glGetShaderInfoLog(shader));\n GLES20.glDeleteShader(shader);\n shader = 0;\n }\n\n if (shader == 0) {\n throw new RuntimeException(\"Error creating shader.\");\n }\n\n return shader;\n }",
"@Override\n protected int createProgram(Context context) {\n return PGLNativeIpl.loadLipsHighLightProgram();\n }",
"public ShaderProgram getShader () {\n return shader;\n }",
"public static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n\n int[] isCompiled = new int[1];\n\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, isCompiled, 0);\n if(isCompiled[0] == 0)\n\t\t{\n\t\t\tSystem.out.println(\"Shader did not compile\");\n }\n \n return shader;\n }",
"void glUseProgram(int program);",
"private boolean compileShader(GL gl, int shader, String source)\r\n {\r\n boolean result = gl.compileShader(shader, source);\r\n \r\n ///#if defined(DEBUG)\r\n // _nativeGL->printShaderInfoLog(shader);\r\n ///#endif\r\n \r\n if (result)\r\n {\r\n gl.attachShader(_programID, shader);\r\n }\r\n else\r\n {\r\n ILogger.instance().logError(\"GPUProgram: Problem encountered while compiling shader.\");\r\n }\r\n \r\n return result;\r\n }",
"@Override\n\tprotected void init() {\n\t\tShaderProgram shaderProgram = new ShaderProgram(\"aufgabe2\");\n\t\tglUseProgram(shaderProgram.getId());\n\t\tfloat [] vertex_data = {\n\t\t\t\t-0.5f,-0.5f,\n\t\t\t\t0.5f,-0.5f,\n\t\t\t\t0.0f,0.5f,\n\t\t};\n\t\tfloat[] frag_data = { 1f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 1f };\n\t\t// Koordinaten, VAO, VBO, ... hier anlegen und im Grafikspeicher ablegen\n\t\tint vaoId = glGenVertexArrays();\n\t\tglBindVertexArray(vaoId);\n\t\tint vboId = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId);\n\t\tglBufferData(GL_ARRAY_BUFFER,vertex_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(0, 2, GL_FLOAT,false, 0, 0);\n\t\tglEnableVertexAttribArray(0);\n\t\tint vboId2 = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId2);\n\t\tglBufferData(GL_ARRAY_BUFFER,frag_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n\t\tglEnableVertexAttribArray(1);\n\t}",
"public Shader(String fileNames){\n\n this.files = new ArrayList<>();\n this.uniformLocationCache = new HashMap<>();\n\n ArrayList<Integer> compiledShaders = new ArrayList<>();\n\n // Get the root directory of the file\n File baseFile = new File(fileNames);\n String rootDirectory = baseFile.getParent();\n if(rootDirectory == null){\n rootDirectory = \"./\";\n }\n\n // Loop through all files in directory\n File f = new File(rootDirectory);\n File[] files = f.listFiles();\n if(files != null){\n for(File file: files) {\n // Get file extension\n String fileName = file.getName();\n // If the file matches the nave we gave\n if (fileName.startsWith(baseFile.getName())) {\n int indexOfDot = fileName.lastIndexOf('.');\n String extension = \"\";\n if (indexOfDot > 0) {\n extension = fileName.substring(indexOfDot + 1);\n }\n\n String fileContent;\n\n String absoluteFilePath;\n\n int shaderType = -1;\n\n switch (extension) {\n case \"vert\":\n shaderType = GL_VERTEX_SHADER;\n break;\n case \"frag\":\n shaderType = GL_FRAGMENT_SHADER;\n break;\n case \"geom\":\n shaderType = GL_GEOMETRY_SHADER;\n break;\n case \"comp\":\n shaderType = GL_COMPUTE_SHADER;\n break;\n }\n\n if (shaderType != -1) {\n absoluteFilePath = Paths.get(rootDirectory, fileName).toString();\n fileContent = loadFile(absoluteFilePath);\n int currentShader = compileShader(fileContent, shaderType);\n compiledShaders.add(currentShader);\n this.files.add(absoluteFilePath);\n }\n }\n }\n }\n\n this.shaderId = createProgram(compiledShaders.stream().mapToInt(i -> i).toArray());\n\n if(this.shaderId == -1){\n throw new RuntimeException(\"Failed to compile shader: \" + fileNames);\n }\n }",
"public static int CreateProgram(int vertexShaderId, int fragmentShaderId) {\n final int programId = GLES20.glCreateProgram();\n if (programId == 0) {\n return 0;\n }\n GLES20.glAttachShader(programId, vertexShaderId);\n GLES20.glAttachShader(programId, fragmentShaderId);\n GLES20.glLinkProgram(programId);\n final int[] linkStatus = new int[1];\n GLES20.glGetProgramiv(programId, GLES20.GL_LINK_STATUS, linkStatus, 0);\n if (linkStatus[0] == 0) {\n GLES20.glDeleteProgram(programId);\n return 0;\n }\n return programId;\n }",
"private static int loadShader(String file,\r\n\t\t\tint type) {\r\n\t\tStringBuilder source = new StringBuilder();\r\n\t\t\r\n\t\t/* read in the entire file */\r\n\t\ttry{\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\r\n\t\t\tString line;\r\n\t\t\t\r\n\t\t\twhile((line = reader.readLine()) != null){\r\n\t\t\t\tsource.append(line).append(\"\\n\");\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.err.println(\"Error reading shader file: \" + file);\r\n\t\t}\r\n\t\t\r\n\t\t/* creates the shader */\r\n\t\tint shaderID = GL20.glCreateShader(type);\r\n\t\tGL20.glShaderSource(shaderID, source);\r\n\t\tGL20.glCompileShader(shaderID);\r\n\t\t\r\n\t\t/* checks if shader complied successfully*/\r\n\t\tif(GL20.glGetShaderi(shaderID, GL20.GL_COMPILE_STATUS )\r\n\t\t\t\t== GL11.GL_FALSE){\r\n\t\t\t/* Shader compile error */\r\n\t\t\tSystem.out.println(GL20.glGetShaderInfoLog(shaderID, 500));\r\n\t\t\tSystem.err.println(\"Could not compile shader: \" + file);\r\n\t\t\tSystem.exit(-1);\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn shaderID;\r\n\t}",
"@Override\n public void create() {\n tex = new Texture(Gdx.files.internal(\"data/scene.png\"));\n\n //important since we aren't using some uniforms and attributes that SpriteBatch expects\n ShaderProgram.pedantic = false;\n\n //print it out for clarity\n System.out.println(\"Vertex Shader:\\n-------------\\n\\n\" + VERT);\n System.out.println(\"\\n\");\n System.out.println(\"Fragment Shader:\\n-------------\\n\\n\" + FRAG);\n\n shader = new ShaderProgram(VERT, FRAG);\n if (!shader.isCompiled()) {\n System.err.println(shader.getLog());\n System.exit(0);\n }\n if (shader.getLog().length() != 0)\n System.out.println(shader.getLog());\n\n\n batch = new SpriteBatch(1000, shader);\n batch.setShader(shader);\n\n cam = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n cam.setToOrtho(false);\n }",
"Program createProgram();",
"Program createProgram();",
"Program createProgram();",
"protected int createShader(String shaderCode, final int shaderType) throws Exception {\n\t\tint shaderId = glCreateShader(shaderType);\n\t\tif (shaderId == GL_FALSE) throw new Exception(\"Error creating graphics; type: \" + shaderType);\n\t\t\n\t\tglShaderSource(shaderId, shaderCode);\n\t\tglCompileShader(shaderId);\n\t\t\n\t\tif (glGetShaderi(shaderId, GL_COMPILE_STATUS) == GL_FALSE)\n\t\t\tthrow new Exception(\"Error compiling graphics code: \" + glGetShaderInfoLog(shaderId, 1024));\n\t\tglAttachShader(programId, shaderId);\n\t\treturn shaderId;\n\t}",
"private FontRenderer prepareShader() {\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"width\", .46f * (1 + size / 100f));\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"edge\", .2f * (1f / (size * 2)));\n\t\tFontShaderProgram.INSTANCE.sendVec4(\"fontColor\", color);\n\t\t\n\t\treturn this;\n\t}",
"@Override\n\t\t\tpublic ShaderProgram get() {\n\t\t\t\tvar source = sources.values().stream().findFirst().orElseThrow();\n\t\t\t\tvar newShader = new ShaderProgram().attachSources(source);\n\t\t\t\tnewShader.upload();\n\t\t\t\tshaders.put(name, newShader);\n\t\t\t\treturn newShader;\n\t\t\t}",
"int glGetUniformLocation(int program, String name);",
"void glLinkProgram(int program);",
"BasicShader( String name ) {\n this( name, null );\n }",
"@Override\n public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n \n String vertexShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_vertex_shader);\n String fragmentShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_fragment_shader);\n \n int vertexShaderId = ShaderHelper.compileVertexShader(vertexShaderSource);\n int fragmentShaderId = ShaderHelper.compileFragmentShader(fragmentShaderSource);\n \n program = ShaderHelper.linkProgram(vertexShaderId, fragmentShaderId);\n \n if(LoggerConfig.ON){\n \tShaderHelper.validateProgram(program);\n }\n glUseProgram(program);\n uColorLocation = glGetUniformLocation(program, U_COLOR);\n aPositionLocation = glGetAttribLocation(program, A_POSITION);\n \n vertexData.position(0);\n glVertexAttribPointer(aPositionLocation, POSITION_COMPONENT_COUNT, GL_FLOAT, false, 0, vertexData);\n glEnableVertexAttribArray(aPositionLocation); \n }",
"public ShaderProgram requireShader () {\n if (shader == null)\n throw new IllegalStateException(\"The ShaderProgram has not been assigned.\");\n return shader;\n }",
"@Override\n\tpublic void glSetup(Context cx) {\n\t\tmShader = ShaderHelper.glGenerateShader(cx, \"vertex_shader\",\n\t\t\t\t\"scene_enhance_fragment_shader\", \"aPosition\", \"uMVPMatrix\",\n\t\t\t\t\"uTexture\", \"uTextureCurve\");\n\n\t}",
"public void init () {\n\t\tshaderProgram.addUniform(TEXTURE_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(SCALING_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(TRANSLATION_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(POSITION_UNIFORM_KEY);\n\t}",
"BasicShader( String name, Color baseColor ) {\n name_ = name;\n baseColor_ = baseColor;\n }",
"public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }",
"public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\t\tmVertexShader = RawResourceReader.readTextFileFromRawResource(mContext,\n\t\t\t\tde.moliso.shelxle.R.raw.atoms_vetrex_shader);\n\t\tmFragmentShader = RawResourceReader.readTextFileFromRawResource(\n\t\t\t\tmContext, de.moliso.shelxle.R.raw.atoms_fragment_shader);\n\n\t\tmProgram = createProgram(mVertexShader, mFragmentShader);\n\t\tif (mProgram == 0) {\n\t\t\treturn;\n\t\t}\n\t\ttry{\n\t\t\tversionName = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n\t\t}catch (NameNotFoundException e){\n\t\t\t//wurst\n\t\t}\n\t\ttexturH = GLES20.glGetUniformLocation(mProgram, \"text\");\n\t\tellipsoidH = GLES20.glGetUniformLocation(mProgram, \"eli\");\n\t\tlichtH = GLES20.glGetUniformLocation(mProgram, \"lighting\");\n\n\t\tvertexAttr1 = GLES20.glGetAttribLocation(mProgram, \"vertex\");\n\n\t\tnormalAttr1 = GLES20.glGetAttribLocation(mProgram, \"normal\");\n\t\tmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"matrix\");\n\t\tinvmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"invmatrix\");\n\t\tcolorUniform1 = GLES20.glGetUniformLocation(mProgram, \"col\");\n\n\t\tmTextureLoc = GLES20.glGetUniformLocation(mProgram, \"textureSampler\");\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t// Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n\t}",
"@Override\n public void initShaderProgram(util.ShaderProgram shaderProgram, Map<String, String> shaderVarsToVertexAttribs) {\n Objects.requireNonNull(glContext);\n GL3 gl = glContext.getGL().getGL3();\n\n shaderLocations = shaderProgram.getAllShaderVariables(gl);\n this.shaderVarsToVertexAttribs = new HashMap<String, String>(shaderVarsToVertexAttribs);\n shaderLocationsSet = true;\n }",
"public void init() {\n createVertexShader(vertexShader(true));\n createFragmentShader(fragShader.SHADER_STRING);\n\n /* Binds the code and checks that everything has been done correctly. */\n link();\n\n createUniform(\"worldMatrix\");\n createUniform(\"modelMatrix\");\n createUniform(\"normalMatrix\");\n\n /* Initialization of the shadow map matrix uniform. */\n createUniform(\"directionalShadowMatrix\");\n\n /* Create uniform for material. */\n createMaterialUniform(\"material\");\n createUniform(\"texture_sampler\");\n /* Initialization of the light's uniform. */\n createUniform(\"camera_pos\");\n createUniform(\"specularPower\");\n createUniform(\"ambientLight\");\n createPointLightListUniform(\"pointLights\", LightModel.MAX_POINTLIGHT);\n createSpotLightUniformList(\"spotLights\", LightModel.MAX_SPOTLIGHT);\n createDirectionalLightUniform(\"directionalLight\");\n createUniform(\"shadowMapSampler\");\n createUniform(\"bias\");\n }",
"@Test\n public void testConstMutations() throws Exception {\n final String program = \"#version 310 es\\n\"\n + \"precision highp float;\\n\"\n + \"uniform vec2 injectionSwitch;\\n\"\n + \"const int a = 1;\\n\"\n + \"const int b = 2;\\n\"\n + \"const float c = 3.0;\\n\"\n + \"const float d = 4.0;\\n\"\n + \"void main() {\"\n + \" const int x = 2;\\n\"\n + \" const int y = 3;\\n\"\n + \" const float f = 4.0;\\n\"\n + \" const float g = 5.0;\\n\"\n + \"}\";\n final ShaderJobFileOperations fileOperations = new ShaderJobFileOperations();\n for (int i = 0; i < 20; i++) {\n final TranslationUnit tu = ParseHelper.parse(program);\n new IdentityMutationFinder(tu,\n new RandomWrapper(i), GenerationParams.normal(ShaderKind.FRAGMENT, false, true))\n .findMutations()\n .forEach(Expr2ExprMutation::apply);\n final File shaderJobFile = temporaryFolder.newFile(\"shader\" + i + \".json\");\n final ShaderJob shaderJob = new GlslShaderJob(Optional.empty(), new PipelineInfo(),\n tu);\n fileOperations.writeShaderJobFile(shaderJob, shaderJobFile);\n // Check that there is no invalidity due to mis-use of constants (in which case an exception\n // will be thrown, but we assert the result of 'areShadersValid' is true just to be sure.\n assertTrue(fileOperations.areShadersValid(shaderJobFile, true));\n }\n }",
"public void drawTriangles(float[] mvpMatrix)\n\t{\n // Add program to OpenGL ES environment\n //GLES20.glUseProgram(mTriProgram);\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Use Tri Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, triVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,color[0],color[1],color[2],color[3]);\n }\n\n if (StigChopper.textures)\n {\n mTextureUniformHandle = GLES20.glGetUniformLocation(chopperProgram, \"u_texture\");\n if (mTextureUniformHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture uniform\");\n }\n\n mTextureCoordinateHandle = GLES20.glGetAttribLocation(chopperProgram, \"a_texCoordinate\");\n if (mTextureCoordinateHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture coordinates.\");\n }\n GLES20.glEnableVertexAttribArray(mTextureCoordinateHandle);\n\n // Prepare the uv coordinate data.\n GLES20.glVertexAttribPointer(mTextureCoordinateHandle, 2,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, 8, triUvBuffer);\n\n // Set the active texture unit to texture unit 0.\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\n // Bind the texture to this unit.\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, -1);\n\n\t\t\t// Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n\t\t\tGLES20.glUniform1i(mTextureUniformHandle, 0);\n }\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, triDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, triDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper:Triangle Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n if (StigChopper.textures)\n {\n // Disable texture array\n GLES20.glDisableVertexAttribArray(mTextureCoordinateHandle);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}",
"protected void begin()\t{\n\t\t glUseProgram(programID);\n\t\t shadUniLoc.put(UNIFORM_TRANS, \n\t\t\t\t glGetUniformLocation(programID, UNIFORM_TRANS));\n\t}",
"void exit(int vertexShader, int fragmentShader);",
"public float[] convertShader() {\r\n\t\tfloat[] w = new float[16];\r\n\t\t\r\n\t\tw[0] = m[0][0]; w[1] = m[0][1]; w[2] = m[0][2]; w[3] = m[0][3];\r\n\t\tw[4] = m[1][0]; w[5] = m[1][1]; w[6] = m[1][2]; w[7] = m[1][3];\r\n\t\tw[8] = m[2][0]; w[9] = m[2][1]; w[10] = m[2][2]; w[11] = m[2][3];\r\n\t\tw[12] = m[3][0]; w[13] = m[3][1]; w[14] = m[3][2]; w[15] = m[3][3];\r\n\t\t\t\t\r\n\t\treturn w;\r\n\r\n\t}",
"int glGetAttribLocation(int program, String name);",
"@Override\n\tpublic void create() {\n\t\tassets = new AssetManager();\n\t\tspriteBatch = new SpriteBatch();\n\t\tGdx.input.setInputProcessor(this);\n\t\tGdx.input.setCatchMenuKey(true);\n\t\tGdx.input.setCatchBackKey(true);\n\t\tGdx.input.setInputProcessor(this);\n\t\t\n\t\t//WorldRenderer.BLEND_FUN1=GL20.GL_SRC_ALPHA;\n\t\t//WorldRenderer.BLEND_FUN2=GL20.GL_ONE_MINUS_SRC_ALPHA;\n\t\t//WorldRenderer.CLEAR_COLOR.set(0.5f,0.1f,0.2f,1);\n\t\t//UIRenderer.BLEND_FUN1=GL20.GL_SRC_ALPHA;\n\t\t//UIRenderer.BLEND_FUN2=GL20.GL_ONE_MINUS_SRC_ALPHA;\n\t\t\n\t\tspriteBatch.setBlendFunction(GL20.GL_SRC_ALPHA,GL20.GL_ONE);\n\t\tspriteBatch.enableBlending();\n\t\t\n\t\tdefaultShader=SpriteBatch.createDefaultShader();\n\t}",
"@Override\r\n\tpublic void add(ShaderVar var) {\n\t\t\r\n\t}",
"@Override\n public int glGetUniformLocation(final int program, final String name) {\n return GL20.glGetUniformLocation(program, name + \"\\0\");\n }",
"public static EglBase create() {\n return create(null /* shaderContext */, CONFIG_PLAIN);\n }",
"public static void bgfx_set_shader_name(@NativeType(\"bgfx_shader_handle_t\") short _handle, @NativeType(\"char const *\") ByteBuffer _name) {\n nbgfx_set_shader_name(_handle, memAddress(_name), _name.remaining());\n }",
"public void render(Shader shader, RenderingEngine renderingEngine) { meshRenderer.render(shader, renderingEngine); }",
"public ShaderProgram getFirstShader() {\n\t\tShaderProgram shader = shaders.values().stream().findFirst().orElseGet(new Supplier<ShaderProgram>() {\n\n\t\t\t@Override\n\t\t\tpublic ShaderProgram get() {\n\t\t\t\t// Compute the new shader.\n\t\t\t\tvar source = sources.values().stream().findFirst().orElseThrow();\n\t\t\t\tvar newShader = new ShaderProgram().attachSources(source);\n\t\t\t\tnewShader.upload();\n\t\t\t\tshaders.put(name, newShader);\n\t\t\t\treturn newShader;\n\t\t\t}\n\t\t});\n\t\t\n\t\treturn shader;\n\t}",
"public void draw() {\n // añadimos el programa al entorno de opengl\n GLES20.glUseProgram(mProgram);\n\n // obtenemos el identificador de los sombreados del los vertices a vPosition\n positionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // habilitamos el manejo de los vertices del triangulo\n GLES20.glEnableVertexAttribArray(positionHandle);\n\n // Preparamos los datos de las coordenadas del triangulo\n GLES20.glVertexAttribPointer(positionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // Obtenemos el identificador del color del sombreado de los fragmentos\n colorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Establecemos el color para el dibujo del triangulo\n GLES20.glUniform4fv(colorHandle, 1, color, 0);\n\n // SE dibuja el triangulo\n GLES20.glDrawArrays(GLES20.GL_LINE_LOOP, 0, vertexCount);\n\n // Deshabilitamos el arreglo de los vertices (que dibuje una sola vez)\n GLES20.glDisableVertexAttribArray(positionHandle);\n }",
"public void dispose()\r\n {\r\n \r\n //ILogger::instance()->logInfo(\"Deleting program %s\", _name.c_str());\r\n \r\n // if (_manager != NULL) {\r\n // _manager->compiledProgramDeleted(_name);\r\n // }\r\n \r\n for (int i = 0; i < _nUniforms; i++)\r\n {\r\n if (_createdUniforms[i] != null)\r\n _createdUniforms[i].dispose();\r\n }\r\n \r\n for (int i = 0; i < _nAttributes; i++)\r\n {\r\n if (_createdAttributes[i] != null)\r\n _createdAttributes[i].dispose();\r\n }\r\n \r\n _createdAttributes = null;\r\n _createdUniforms = null;\r\n \r\n if (!_gl.deleteProgram(this))\r\n {\r\n ILogger.instance().logError(\"GPUProgram: Problem encountered while deleting program.\");\r\n }\r\n }",
"public void build_buffers(float[] color /*RGBA*/) {\n int i;\n int offset = 0;\n final float[] vertexData = new float[\n mVertices.size() / 3\n * STRIDE_IN_FLOATS];\n\n float vx, vy, vz;\n\n /*\n * loop to generate vertices.\n */\n for (i = 0; i < mVertices.size(); i += 3) {\n\n vertexData[offset++] = mVertices.get(i + 0);\n vertexData[offset++] = mVertices.get(i + 1);\n vertexData[offset++] = mVertices.get(i + 2);\n\n vertexData[offset++] = 0.0f; // set normal to zero for now\n vertexData[offset++] = 0.0f;\n vertexData[offset++] = 0.0f;\n\n if (mHaveMaterialColor) {\n vertexData[offset++] = mColors.get(i + 0);\n vertexData[offset++] = mColors.get(i + 1);\n vertexData[offset++] = mColors.get(i + 2);\n vertexData[offset++] = 1.0f; // TODO: unwire the alpha?\n } else {\n // color value\n vertexData[offset++] = color[0];\n vertexData[offset++] = color[1];\n vertexData[offset++] = color[2];\n vertexData[offset++] = color[3];\n }\n }\n\n // calculate the normal,\n // set it in the packed VBO.\n // If current normal is non-zero, average it with previous value.\n\n int v1i, v2i, v3i;\n for (i = 0; i < mIndices.size(); i += 3) {\n v1i = mIndices.get(i + 0) - 1;\n v2i = mIndices.get(i + 1) - 1;\n v3i = mIndices.get(i + 2) - 1;\n\n v1[0] = mVertices.get(v1i * 3 + 0);\n v1[1] = mVertices.get(v1i * 3 + 1);\n v1[2] = mVertices.get(v1i * 3 + 2);\n\n v2[0] = mVertices.get(v2i * 3 + 0);\n v2[1] = mVertices.get(v2i * 3 + 1);\n v2[2] = mVertices.get(v2i * 3 + 2);\n\n v3[0] = mVertices.get(v3i * 3 + 0);\n v3[1] = mVertices.get(v3i * 3 + 1);\n v3[2] = mVertices.get(v3i * 3 + 2);\n\n n = XYZ.getNormal(v1, v2, v3);\n\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n }\n\n /*\n * debug - print out list of formated vertex data\n */\n// for (i = 0; i < vertexData.length; i+= STRIDE_IN_FLOATS) {\n// vx = vertexData[i + 0];\n// vy = vertexData[i + 1];\n// vz = vertexData[i + 2];\n// String svx = String.format(\"%6.2f\", vx);\n// String svy = String.format(\"%6.2f\", vy);\n// String svz = String.format(\"%6.2f\", vz);\n//\n// Log.w(\"data \", i + \" x y z \"\n// + svx + \" \" + svy + \" \" + svz + \" and color = \"\n// + vertexData[i + 6] + \" \" + vertexData[i + 7] + \" \" + vertexData[i + 8]);\n// }\n\n final FloatBuffer vertexDataBuffer = ByteBuffer\n .allocateDirect(vertexData.length * BYTES_PER_FLOAT)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n vertexDataBuffer.put(vertexData).position(0);\n\n if (vbo[0] > 0) {\n GLES20.glDeleteBuffers(1, vbo, 0);\n }\n GLES20.glGenBuffers(1, vbo, 0);\n\n if (vbo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexDataBuffer.capacity() * BYTES_PER_FLOAT,\n vertexDataBuffer, GLES20.GL_STATIC_DRAW);\n\n // GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n\n /*\n * create the buffer for the indices\n */\n offset = 0;\n int x;\n final short[] indexData = new short[mIndices.size()];\n for (x = 0; x < mIndices.size(); x++) {\n\n short index = mIndices.get(x).shortValue();\n indexData[offset++] = --index;\n }\n mTriangleIndexCount = indexData.length;\n\n /*\n * debug - print out list of formated vertex data\n */\n// short ix, iy, iz;\n// for (i = 0; i < indexData.length; i += 3) {\n// ix = indexData[i + 0];\n// iy = indexData[i + 1];\n// iz = indexData[i + 2];\n//\n// Log.w(\"data \", i + \" i1 i2 i3 \"\n// + ix + \" \" + iy + \" \" + iz );\n// }\n\n final ShortBuffer indexDataBuffer = ByteBuffer\n .allocateDirect(indexData.length * BYTES_PER_SHORT).order(ByteOrder.nativeOrder())\n .asShortBuffer();\n indexDataBuffer.put(indexData).position(0);\n\n if (ibo[0] > 0) {\n GLES20.glDeleteBuffers(1, ibo, 0);\n }\n GLES20.glGenBuffers(1, ibo, 0);\n if (ibo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER,\n indexDataBuffer.capacity()\n * BYTES_PER_SHORT, indexDataBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n }",
"@Override\n public void applyEffect(int inputTextureId, long timeProgress, float[] transformMatrix) {\n GLES20.glUseProgram(shaderProgram.getProgramHandle());\n checkGlError();\n\n // Set the vertex attributes\n GLES20.glVertexAttribPointer(textureCoordinateHandle, 2, GLES20.GL_FLOAT, false, 0, textureVertices);\n GLES20.glEnableVertexAttribArray(textureCoordinateHandle);\n GLES20.glVertexAttribPointer(posCoordinateHandle, 2, GLES20.GL_FLOAT, false, 0, posVertices);\n GLES20.glEnableVertexAttribArray(posCoordinateHandle);\n checkGlError();\n\n // Set the input texture\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n checkGlError();\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textures[0]);\n checkGlError();\n\n // Draw\n GLES20.glClearColor(0.0f, 0.0f, 0.5f, 1.0f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4);\n }",
"public void Setup(int nPoints, float swp, float shp, float ssu)\n {\n Random rnd = new Random();\n\n // Our collection of vertices\n vertices = new float[nPoints*VERTICES_PER_GLYPH*TOTAL_COMPONENT_COUNT];\n\n // Create the vertex data\n for(int i=0;i<nPoints;i++) {\n int offset_x = rnd.nextInt((int)swp);\n int offset_y = rnd.nextInt((int)shp);\n\n float llu = rnd.nextInt(2) * 0.5f;\n float llv = rnd.nextInt(2) * 0.5f;\n \n \n AddGlyph(offset_x, offset_y, ssu, llu, llv, 0.5f, 0.5f);\n }\n\n // The indices for all textured quads\n indices = new short[nPoints*3*TRIANGLES_PER_GLYPH]; \n int last = 0;\n for(int i=0;i<nPoints;i++) {\n // We need to set the new indices for the new quad\n indices[(i*6) + 0] = (short) (last + 0);\n indices[(i*6) + 1] = (short) (last + 1);\n indices[(i*6) + 2] = (short) (last + 2);\n indices[(i*6) + 3] = (short) (last + 0);\n indices[(i*6) + 4] = (short) (last + 2);\n indices[(i*6) + 5] = (short) (last + 3);\n\n // Our indices are connected to the vertices so we need to keep them\n // in the correct order.\n // normal quad = 0,1,2,0,2,3 so the next one will be 4,5,6,4,6,7\n last = last + 4;\n }\n\n // The vertex buffer.\n ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * BYTES_PER_FLOAT);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(vertices);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(indices.length * BYTES_PER_SHORT);\n dlb.order(ByteOrder.nativeOrder());\n indexBuffer = dlb.asShortBuffer();\n indexBuffer.put(indices);\n indexBuffer.position(0);\n\n }",
"protected void delete()\t{\n\t\tglUseProgram(0);\n\t\t\n\t\tglDetachShader(programID, vShaderID);\n\t\tglDetachShader(programID, fShaderID);\n\t\t\n\t\tglDeleteShader(vShaderID);\n\t\tglDeleteShader(fShaderID);\n\t\t\n\t\tglDeleteProgram(programID);\t\n\t}",
"public void setup(){\n\t\t gl.glEnable(GL.GL_BLEND);\n\t\t gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n\t\t for (int i = 0; i< cubes.length; i++){\n\t\t cubes[i] = this.s.new Cube(\n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\t5,//Math.round(random(-100, 100)),\n\t\t \t\tMath.round(p.random(-10, 10)), \n\t\t \t\t\tMath.round(p.random(-10, 10)), \n\t\t\t\t\tMath.round( p.random(-10, 10))\n\t\t );\n\t\t cubRotation[i]=new Vector3D();\n\t\t cubRotationFactor[i]=new Vector3D();\n\t\t cubRotationFactor[i].x = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].y = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].z = (float)Math.random()/2f;\n\t\t \n\t\t cubColor[i]=new Vector3D();\n\t\t cubColor[i].x = (float)Math.random();\n\t\t cubColor[i].y = (float)Math.random();\n\t\t cubColor[i].z = (float)Math.random();\n\t\t }\n\t\t \n\t\t try {\n\t\t\togl.makeProgram(\n\t\t\t\t\t\t\"glass\",\n\t\t\t\t\t\tnew String[] {},\n\t\t\t\t\t\tnew String[] {\"SpecularColor1\",\"SpecularColor2\",\"SpecularFactor1\",\"SpecularFactor2\",\"LightPosition\"}, //\"GlassColor\",\n\t\t\t\t\t\togl.loadGLSLShaderVObject(\t\"resources/robmunro/perform/ol5/glass_c.vert\" ), \n\t\t\t\t\t\togl.loadGLSLShaderFObject(\t\"resources/robmunro/perform/ol5/glass_c.frag\"\t)\n\t\t\t\t);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}",
"private void printShaderLogInfo(int id) \r\n {\r\n IntBuffer infoLogLength = ByteBuffer.allocateDirect(4)\r\n .order(ByteOrder.nativeOrder()).asIntBuffer();\r\n glGetShader(id, GL_INFO_LOG_LENGTH, infoLogLength);\r\n if (infoLogLength.get(0) > 0) \r\n {\r\n infoLogLength.put(0, infoLogLength.get(0)-1);\r\n }\r\n\r\n ByteBuffer infoLog = ByteBuffer.allocateDirect(infoLogLength.get(0))\r\n .order(ByteOrder.nativeOrder());\r\n glGetShaderInfoLog(id, infoLogLength, infoLog);\r\n\r\n String infoLogString =\r\n Charset.forName(\"US-ASCII\").decode(infoLog).toString();\r\n if (infoLogString.trim().length() > 0)\r\n {\r\n ErrorHandler.handle(\"shader log:\\n\"+infoLogString);\r\n }\r\n }",
"public void render(int i, Shader shader){\n\t\ttex[i].bind();\n\t\tshader.enable();\n\t\tshader.setUniformMat4f(\"ml_matrix\", Matrix4f.translate(position));\n\t\tVAO.render();\n\t\tshader.disable();\n\t\ttex[i].unbind();\n\t}",
"public Triangle() {\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n triangleCoords.length * 4);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = bb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(triangleCoords);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n // prepare shaders and OpenGL program\n int vertexShader = MyGLRenderer.loadShader(\n GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(\n GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram); // create OpenGL program executables\n\n }",
"public void draw(float[] mvpMatrix, int note) {\n GLES30.glUseProgram(mProgram);\n MyGLRenderer.checkGlError(\"glUseProgram\");\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES30.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES30.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n //Matrix.multiplyMV(vertexBuffer, 0, scaleMatrix, 0, vertexBuffer, 0);\n GLES30.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n \n // get handle to fragment shader's vColor member\n //mColorHandle = GLES30.glGetUniformLocation(mProgram, \"vColor\");\n\n mTextureUniformHandle = GLES30.glGetUniformLocation(mProgram, \"u_Texture\");\n mTextureCoordinateHandle = GLES30.glGetAttribLocation(mProgram, \"a_TexCoordinate\");\n \n // Set the active texture unit to texture unit 1. (0 reserved for FBO?)\n GLES30.glActiveTexture(GLES30.GL_TEXTURE0);\n \n // Bind the texture to this unit.\n GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, mTextureDataHandles[note]);\n \n // Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n GLES30.glUniform1i(mTextureUniformHandle, 0);\n \n // Set color for drawing the triangle\n //GLES30.glUniform4fv(mColorHandle, 1, color, 0);\n\n // Pass in the texture coordinate information\n mCubeTextureCoordinates.position(0);\n GLES30.glVertexAttribPointer(mTextureCoordinateHandle, mTextureCoordinateDataSize, GLES30.GL_FLOAT, false, \n \t\t0, mCubeTextureCoordinates);\n \n GLES30.glEnableVertexAttribArray(mTextureCoordinateHandle);\n \n \n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n MyGLRenderer.checkGlError(\"glGetUniformLocation\");\n\n // Apply the projection and view transformation\n GLES30.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n MyGLRenderer.checkGlError(\"glUniformMatrix4fv\");\n\n // Draw the square\n GLES30.glDrawElements(GLES30.GL_TRIANGLES, drawOrder.length,\n GLES30.GL_UNSIGNED_SHORT, drawListBuffer);\n\n // Disable vertex array\n GLES30.glDisableVertexAttribArray(mPositionHandle);\n }",
"private static void setupProperties(ShaderProgram shader, Map<String, Object> properties, SpriteComponent spriteComponent){\n /*for (Map.Entry<String, Object> shaderProperty : shaderComponent.shaderProperties.entrySet()) {\n shader.setUniformf(shaderProperty.getKey(), shaderProperty.getValue());\n }*/\n shader.setUniformf(\"u_viewportInverse\", new Vector2(1f / spriteComponent.sprite.getTexture().getWidth(),\n 1f / spriteComponent.sprite.getTexture().getHeight()));\n shader.setUniformf(\"u_offset\", 1f);\n shader.setUniformf(\"u_step\", Math.min(1f, spriteComponent.sprite.getTexture().getWidth() / 70f));\n if(properties.containsKey(ShaderComponent.COLOR)) {\n shader.setUniformf(\"u_color\", ((Color)properties.get(ShaderComponent.COLOR)));\n //shader.setUniformf(\"u_color\", new Vector3(1f, 0, 0));\n } else {\n Logger.warning(\"Shader's color is not defined!\");\n shader.setUniformf(\"u_color\", new Vector3(1f, 1f, 1f));\n }\n }",
"public void onSurfaceCreated(int vertexShader, int gridShader, int passthroughShader) {\r\n \tstuff();\r\n program = GLES20.glCreateProgram();\r\n GLES20.glAttachShader(program, vertexShader);\r\n if (this instanceof GLSelectableObject) {\r\n GLES20.glAttachShader(program, passthroughShader);\r\n } else {\r\n GLES20.glAttachShader(program, gridShader);\r\n }\r\n GLES20.glLinkProgram(program);\r\n GLES20.glUseProgram(program);\r\n\r\n checkGLError(\"Floor program\");\r\n\r\n modelParam = GLES20.glGetUniformLocation(program, \"u_Model\");\r\n modelViewParam = GLES20.glGetUniformLocation(program, \"u_MVMatrix\");\r\n modelViewProjectionParam = GLES20.glGetUniformLocation(program, \"u_MVP\");\r\n lightPosParam = GLES20.glGetUniformLocation(program, \"u_LightPos\");\r\n\r\n positionParam = GLES20.glGetAttribLocation(program, \"a_Position\");\r\n normalParam = GLES20.glGetAttribLocation(program, \"a_Normal\");\r\n colorParam = GLES20.glGetAttribLocation(program, \"a_Color\");\r\n\r\n GLES20.glEnableVertexAttribArray(positionParam);\r\n GLES20.glEnableVertexAttribArray(normalParam);\r\n GLES20.glEnableVertexAttribArray(colorParam);\r\n\r\n checkGLError(\"Floor program params\");\r\n Matrix.setIdentityM(model, 0);\r\n Matrix.translateM(model, 0, -xPos, -yPos, -zPos); // Floor appears\r\n // below user.\r\n\r\n }",
"public static Shader createFixedShader( final String name, Color color ) {\n final float[] fixedRgba = color.getRGBComponents( new float[ 4 ] );\n return new BasicShader( name ) {\n public void adjustRgba( float[] rgba, float value ) {\n for ( int i = 0; i < 4; i++ ) {\n rgba[ i ] = fixedRgba[ i ];\n }\n }\n };\n }",
"public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n Log.i(Focus.TAG, \"onSurfaceCreated, thread is \" + Thread.currentThread());\n\n root = new Root();\n renderable = new Triangle();\n\n try {\n shader = new ShaderLoader(context).load(\"plain\");\n renderable = new Triangle();\n renderable.setShaderProgram(shader);\n Log.i(Focus.TAG, \"shader found, id: \" + shader);\n } catch (IOException ex) {\n Log.e(Focus.TAG, \"error creating shader\", ex);\n }\n\n }",
"public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.1f, 0.1f, 0.25f, 1.0f);\n RSGFXShaderManager.loadShaders();\n next_game_tick = SystemClock.elapsedRealtime();\n // No culling of back faces\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n \n // No depth testing\n //GLES20.glDisable(GLES20.GL_DEPTH_TEST);\n setupRender();\n // Enable blending\n // GLES20.glEnable(GLES20.GL_BLEND);\n // GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE);\n \n // Setup quad \n \t\t// Generate your vertex, normal and index buffers\n \t\t// vertex buffer\n \t\t_qvb = ByteBuffer.allocateDirect(_quadv.length\n \t\t\t\t* FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();\n \t\t_qvb.put(_quadv);\n \t\t_qvb.position(0);\n\n \t\t// index buffer\n \t\t_qib = ByteBuffer.allocateDirect(_quadi.length\n \t\t\t\t* 4).order(ByteOrder.nativeOrder()).asIntBuffer();\n \t\t_qib.put(_quadi);\n \t\t_qib.position(0);\n }",
"public static void bgfx_set_shader_name(@NativeType(\"bgfx_shader_handle_t\") short _handle, @NativeType(\"char const *\") CharSequence _name) {\n MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();\n try {\n int _nameEncodedLength = stack.nUTF8(_name, false);\n long _nameEncoded = stack.getPointerAddress();\n nbgfx_set_shader_name(_handle, _nameEncoded, _nameEncodedLength);\n } finally {\n stack.setPointer(stackPointer);\n }\n }",
"@Override\n\t\tpublic void onSurfaceCreated(GL10 unused, EGLConfig config)\n\t\t{\n\t\t\tupdateBackgroundColor();\n\n\t\t\t// Get pointers to the shaders.\n\t\t\tint vertexShader = renderer.loadShader(GLES20.GL_VERTEX_SHADER,\tGLProgram.vertexShaderCode);\n\t\t\tint fragmentShader = renderer.loadShader(GLES20.GL_FRAGMENT_SHADER,\tGLProgram.fragmentShaderCode);\n\n\t\t\t// Create a new OpenGL program.\n\t\t\tGLProgram.glProgram = GLES20.glCreateProgram();\n\n\t\t\t// Add a vertex shader.\n\t\t\tGLES20.glAttachShader(GLProgram.glProgram, vertexShader);\n\n\t\t\t// Add a fragment shader.\n\t\t\tGLES20.glAttachShader(GLProgram.glProgram, fragmentShader);\n\n\t\t\t// Compile the program.\n\t\t\tGLES20.glLinkProgram(GLProgram.glProgram);\n\n\t\t\t// Use it.\n\t\t\tGLES20.glUseProgram(GLProgram.glProgram);\n\n\t\t\t// Initialize the project if it hasn't been done already.\n\t\t\t// Use a posted Runnable since NotepadActivity.initProject() should run on the UI thread.\n\t\t\tif (project == null)\n\t\t\t{\n\t\t\t\tpost(new Runnable()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tproject = new Project();\n\t\t\t\t\t\tactivity.initProject();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}",
"public static Shader applyShader( Shader shader, Color baseColor,\n int nsample ) {\n return new AppliedLutShader( shader, baseColor, nsample );\n }",
"private void doBeam(Vector3f start, Vector3f end, Vector3f up, float len, float spanWidth, Vector4f color) {\n boolean useSoftSprites = false;//Ref.glRef.srgbBuffer != null && Ref.glRef.r_softparticles.isTrue();\n CubeTexture tex = null; // depth\n\n Shader sh = Ref.glRef.getShader(\"Poly\");\n Ref.glRef.PushShader(sh);\n sh.setUniform(\"ModelView\", view.viewMatrix);\n sh.setUniform(\"Projection\", view.ProjectionMatrix);\n// if(useSoftSprites) {\n// // use soft particle shader\n// Ref.glRef.PushShader(softSprite);\n// softSprite.setUniform(\"res\", Ref.glRef.GetResolution());\n//\n// // Bind depth from FBO\n// int depth = Ref.glRef.srgbBuffer.getDepthTextureId();\n// tex = new CubeTexture(Ref.glRef.srgbBuffer.getTarget(), depth, null);\n// tex.textureSlot = 1;\n// tex.loaded = true;\n// tex.Bind();\n// }\n\n GL11.glDisable(GL11.GL_CULL_FACE);\n\n GL11.glDepthMask(false); // dont write to depth\n GL11.glBegin(GL11.GL_QUADS);\n {\n // Fancy pants shaders\n Vector3f v = Helper.VectorMA(start, spanWidth, up, null);\n GL20.glVertexAttrib2f(Shader.INDICE_COORDS, 1, 0);\n Helper.col(color);\n GL20.glVertexAttrib3f(Shader.INDICE_POSITION, v.x, v.y, v.z);\n\n Helper.VectorMA(start, -spanWidth, up, v);\n GL20.glVertexAttrib2f(Shader.INDICE_COORDS, 1, 1);\n Helper.col(color);\n GL20.glVertexAttrib3f(Shader.INDICE_POSITION, v.x, v.y, v.z);\n\n \n\n Helper.VectorMA(end, -spanWidth, up, v);\n GL20.glVertexAttrib2f(Shader.INDICE_COORDS, 0, 1);\n Helper.col(color);\n GL20.glVertexAttrib3f(Shader.INDICE_POSITION, v.x, v.y, v.z);\n\n Helper.VectorMA(end, spanWidth, up, v);\n GL20.glVertexAttrib2f(Shader.INDICE_COORDS, 0, 0);\n Helper.col(color);\n GL20.glVertexAttrib3f(Shader.INDICE_POSITION, v.x, v.y, v.z);\n }\n GL11.glEnd();\n GL11.glDepthMask(true);\n\n GL11.glEnable(GL11.GL_CULL_FACE);\n\n if(useSoftSprites) {\n tex.Unbind();\n Ref.glRef.PopShader();\n }\n Ref.glRef.PopShader();\n }",
"public void d() {\n super.d();\n int glGetUniformLocation = GLES20.glGetUniformLocation(this.x, \"target\");\n GLES20.glActiveTexture(33984);\n GLES20.glBindTexture(3553, this.f1221a);\n GLES20.glUniform1i(glGetUniformLocation, 0);\n int glGetUniformLocation2 = GLES20.glGetUniformLocation(this.x, \"source\");\n GLES20.glActiveTexture(33985);\n GLES20.glBindTexture(3553, this.f1222b);\n GLES20.glUniform1i(glGetUniformLocation2, 1);\n int glGetUniformLocation3 = GLES20.glGetUniformLocation(this.x, \"field\");\n GLES20.glActiveTexture(33986);\n GLES20.glBindTexture(3553, this.c);\n GLES20.glUniform1i(glGetUniformLocation3, 2);\n int glGetUniformLocation4 = GLES20.glGetUniformLocation(this.x, \"source_size\");\n float[] fArr = this.d;\n GLES20.glUniform2f(glGetUniformLocation4, fArr[0], fArr[1]);\n int glGetUniformLocation5 = GLES20.glGetUniformLocation(this.x, \"target_size\");\n float[] fArr2 = this.e;\n GLES20.glUniform2f(glGetUniformLocation5, fArr2[0], fArr2[1]);\n int glGetUniformLocation6 = GLES20.glGetUniformLocation(this.x, \"field_size\");\n float[] fArr3 = this.f;\n GLES20.glUniform2f(glGetUniformLocation6, fArr3[0], fArr3[1]);\n int glGetUniformLocation7 = GLES20.glGetUniformLocation(this.x, \"full_size\");\n float[] fArr4 = this.g;\n GLES20.glUniform2f(glGetUniformLocation7, fArr4[0], fArr4[1]);\n GLES20.glUniform1f(GLES20.glGetUniformLocation(this.x, \"jump\"), this.h);\n GLES20.glUniformMatrix4fv(GLES20.glGetUniformLocation(this.x, \"region\"), 1, false, this.i, 0);\n }",
"public void changeFragmentShader(String fragmentShader) {\n mTextureRender.changeFragmentShader(fragmentShader);\n }",
"public void apply() {\n\t\tif (! defaultFragmentShader.exists() || ! defaultVertexShader.exists()) {\n\t\t\tthrow new IllegalArgumentException(\"No default shader exists.\");\n\t\t}\n\t\t\n\t}",
"protected abstract void initializeUniforms();",
"public Square() {\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (# of coordinate values * 4 bytes per float)\n squareCoords.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareCoords);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(\n // (# of coordinate values * 2 bytes per short)\n drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n\n // prepare shaders and OpenGL program\n int vertexShader = MyGLRenderer.loadShader(\n GLES20.GL_VERTEX_SHADER,\n vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(\n GLES20.GL_FRAGMENT_SHADER,\n fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram); // create OpenGL program executables\n }",
"public void addShader(AbstractShader shader) {\n\t\tif (! shaderStack.contains(shader)) {\n\t\t\tshaderStack.add(shader);\n\t\t}\n\t}",
"public void drawMainRotor(float[] mvpMatrix)\n\t{\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper -- drawMainRotor: Use Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper -- rotors: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, mainRotorVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,1.0f,1.0f,0.0f,0.7f);\n }\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n\t\tGLES20.glLineWidth(lineWidth);\n GLES20.glDrawElements(GLES20.GL_LINES, mainRotorDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, mainRotorDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Rotor Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}",
"@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n GLES20.glClearColor(0.15f, 0.15f, 0.15f, 0.15f);\n\n // Position the eye behind the origin.\n final float eyeX = 0.0f;\n final float eyeY = 0.0f;\n final float eyeZ = 1.5f;\n\n // We are looking toward the distance\n final float lookX = 0.0f;\n final float lookY = 0.0f;\n final float lookZ = -5.0f;\n\n // Set our up vector. This is where our head would be pointing were we holding the camera.\n final float upX = 0.0f;\n final float upY = 1.0f;\n final float upZ = 0.0f;\n\n Matrix.setLookAtM(mViewMatrix, 0, eyeX, eyeY, eyeZ, lookX,\n lookY, lookZ, upX, upY, upZ);\n\n String fragmentShader = \"precision mediump float; \\n\"\n // This is the color from the vertex shader interpolated across the\n + \"varying vec4 v_Color; \\n\"\n // triangle per fragment.\n + \"void main() \\n\"\n + \"{ \\n\"\n + \" gl_FragColor = v_Color; \\n\"\n + \"} \\n\";\n String vertexShader = \"uniform mat4 u_MVPMatrix; \\n\"\n // Per-vertex position information we will pass in.\n + \"attribute vec4 a_Position; \\n\"\n\n // Per-vertex color information we will pass in.\n + \"attribute vec4 a_Color; \\n\"\n\n // This will be passed into the fragment shader.\n + \"varying vec4 v_Color; \\n\"\n\n + \"void main() \\n\"\n + \"{ \\n\"\n\n // Pass the color through to the fragment shader.\n + \" v_Color = a_Color; \\n\"\n\n // gl_Position is a special variable used to store the final position.\n // Multiply the vertex by the matrix to get the final point in\n // normalized screen coordinates.\n + \" gl_Position = u_MVPMatrix \\n\"\n + \" * a_Position; \\n\"\n + \"} \\n\";\n\n program = new GLProgram(vertexShader, fragmentShader);\n\n String positionVariableName = \"a_Position\";\n program.declareAttribute(positionVariableName);\n\n String colorVariableName = \"a_Color\";\n program.declareAttribute(colorVariableName);\n\n program.declareUniform(U_MVP_MATRIX);\n\n // Tell OpenGL to use this program when rendering.\n program.activate();\n\n // This triangle is red, green, and blue.\n final float[] triangle1VerticesData = {\n // X, Y, Z,\n // R, G, B, A\n -0.5f, -0.25f, 0.0f,\n 0.5f, -0.25f, 0.0f,\n 0.0f, 0.559016994f, 0.0f,\n };\n\n final float[] triangleColorData = {\n 1.0f, 0.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n };\n\n VertexArray mTriangleVertices = new VertexArray(triangle1VerticesData,\n program.getVariableHandle(positionVariableName), true);\n /*\n Store our model data in a float buffer.\n */\n ColorArray mTriangleColors = new ColorArray(triangleColorData,\n program.getVariableHandle(colorVariableName), true);\n\n positionVbo = new VertexBufferObject(mTriangleVertices);\n colorVbo = new VertexBufferObject(mTriangleColors);\n }",
"public void testShaderWithoutExcludesShouldRemoveReferencesOfOriginalPattern() throws Exception {\n shaderWithPattern(\"org/shaded/plexus/util\", new File(\"target/foo-custom-without-excludes.jar\"), new String[]{});\n }",
"private void createVertexBuffer(int attributeNumber, float[] data){\n\t\tint vboID = glGenBuffers();\n\t\tvbos.add(vboID);\n\n\t\t// activate buffer and upload data\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboID);\n\t\tFloatBuffer buffer = storeDataInFloatBuffer(data);\n\t\tglBufferData(GL_ARRAY_BUFFER, buffer, GL_STATIC_DRAW);\n\n\t\t// tell OpenGL how to interpret the data\n\t\tglVertexAttribPointer(attributeNumber,3,GL_FLOAT,false,0,0);\n\n\t\t// unbind buffer\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t}",
"@Override\n\tpublic void render3D(Shader shader, RenderingEngine engine) {\n\t\t\n\t}",
"Program program() throws SyntaxException {\n\t\tif(t.kind == IDENTIFIER){\n\t\t\tToken name = t, firstToken = t;\n\t\t\tconsume();\n\t\t\tArrayList<ASTNode> decsAndStatements = new ArrayList<>();\n\n\t\t\twhile (t.kind == KW_int || t.kind == KW_boolean || t.kind == KW_image\n\t\t\t\t\t|| t.kind == KW_url || t.kind == KW_file || t.kind == IDENTIFIER){\n\n\t\t\t\tif (t.kind == KW_int || t.kind == KW_boolean || t.kind == KW_image\n\t\t\t\t\t\t|| t.kind == KW_url || t.kind == KW_file){\n\t\t\t\t\tdecsAndStatements.add(declaration());\n\t\t\t\t}\n\t\t\t\telse if (t.kind == IDENTIFIER){\n\t\t\t\t\tdecsAndStatements.add(statement());\n\t\t\t\t}\n\t\t\t\tmatch(SEMI);\n\t\t\t}\n\n\t\t\treturn new Program(firstToken, name, decsAndStatements);\n\t\t}\n\t\telse {\n\t\t throw new SyntaxException(t, \"Input not valid. \\nProgram should start with an IDENTIFIER.\");\n }\n\t}",
"@Test\n public void testMutationsWithCommaOperator() throws Exception {\n final String program = \"#version 310 es\\n\"\n + \"precision highp float;\\n\"\n + \"void main() {\"\n + \" int a, b, c, d, e;\\n\"\n + \" a, b, c, d, e, a, b, c, d, e;\\n\"\n + \"}\";\n final ShaderJobFileOperations fileOperations = new ShaderJobFileOperations();\n for (int i = 0; i < 20; i++) {\n final TranslationUnit tu = ParseHelper.parse(program);\n new IdentityMutationFinder(tu,\n new RandomWrapper(i), GenerationParams.normal(ShaderKind.FRAGMENT, false, false))\n .findMutations()\n .forEach(Expr2ExprMutation::apply);\n final File shaderJobFile = temporaryFolder.newFile(\"shader\" + i + \".json\");\n final ShaderJob shaderJob = new GlslShaderJob(Optional.empty(), new PipelineInfo(),\n tu);\n fileOperations.writeShaderJobFile(shaderJob, shaderJobFile);\n // Check that there is no invalidity due to mis-use of constants (in which case an exception\n // will be thrown, but we assert the result of 'areShadersValid' is true just to be sure.\n assertTrue(fileOperations.areShadersValid(shaderJobFile, true));\n }\n }",
"@Override\r\n\tpublic vec3 plus(ShaderVar var) {\n\t\treturn null;\r\n\t}",
"void glUniform1i(int location, int x);",
"void glVertexAttribPointer(int indx, int size, int type, boolean normalized,\n int stride, Buffer ptr, int bufferIndex, int bufferSize);",
"@Override\n public void onSurfaceCreated(EGLConfig config) {\n Log.i(TAG, \"onSurfaceCreated\");\n GLES20.glClearColor(0.1f, 0.1f, 0.1f, 0.5f); // Dark background so text shows up well\n\n ByteBuffer bb = ByteBuffer.allocateDirect(squareVertices.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareVertices);\n vertexBuffer.position(0);\n\n ByteBuffer dlb = ByteBuffer.allocateDirect(drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n\n ByteBuffer bb2 = ByteBuffer.allocateDirect(textureVertices.length * 4);\n bb2.order(ByteOrder.nativeOrder());\n textureVerticesBuffer = bb2.asFloatBuffer();\n textureVerticesBuffer.put(textureVertices);\n textureVerticesBuffer.position(0);\n\n int vertexShader = loadGLShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = loadGLShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL ES Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram);\n\n texture = createTexture();\n startCamera(texture);\n }"
] | [
"0.73096067",
"0.7276405",
"0.71225697",
"0.69831955",
"0.68467766",
"0.68013996",
"0.67725354",
"0.676714",
"0.6751442",
"0.6742909",
"0.66847384",
"0.6680794",
"0.655843",
"0.65461445",
"0.6521269",
"0.65098095",
"0.6499301",
"0.6486424",
"0.64712816",
"0.64443487",
"0.63671815",
"0.631589",
"0.62688553",
"0.6255648",
"0.62336004",
"0.6179417",
"0.6157271",
"0.61219156",
"0.6054292",
"0.6046929",
"0.6035543",
"0.6033044",
"0.60253006",
"0.60253006",
"0.60253006",
"0.5980495",
"0.59684694",
"0.5920706",
"0.59119034",
"0.58906394",
"0.588775",
"0.5834708",
"0.5667283",
"0.56615037",
"0.560669",
"0.56056106",
"0.5574364",
"0.54604715",
"0.5448503",
"0.54286855",
"0.5391941",
"0.5387741",
"0.53440523",
"0.5337125",
"0.53322154",
"0.53187853",
"0.5314068",
"0.52257687",
"0.5221766",
"0.5202801",
"0.5188412",
"0.5185248",
"0.51427096",
"0.5127114",
"0.51183456",
"0.5114881",
"0.50891894",
"0.50714594",
"0.50535035",
"0.5051273",
"0.50465477",
"0.50440776",
"0.50399536",
"0.5032198",
"0.5019131",
"0.50172615",
"0.50152594",
"0.50095",
"0.50079167",
"0.4994545",
"0.4969727",
"0.49457183",
"0.49392915",
"0.4938109",
"0.493301",
"0.49146104",
"0.4903842",
"0.4896503",
"0.48835036",
"0.48706326",
"0.48346037",
"0.48183268",
"0.48173982",
"0.48158506",
"0.48138136",
"0.48055986",
"0.47701997",
"0.47697482",
"0.47679904",
"0.47665572"
] | 0.67900234 | 6 |
TODO Autogenerated method stub | @Override
public void add(BookInfoVO vo) {
bookInfoDao.add(vo);
} | {
"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 delete(BookInfoVO vo) {
bookInfoDao.delete(vo);
} | {
"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 modify(BookInfoVO vo) {
bookInfoDao.modify(vo);
} | {
"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 List<BookInfoVO> findAll() {
return bookInfoDao.findAll();
} | {
"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 BookInfoVO findByNo(BookInfoVO vo) {
return bookInfoDao.findByNo(vo);
} | {
"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 |
Parent is default Ctor. needed for Firestore. | public Parent() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Parent() {\n\t System.out.println(\"i am from Parent Class\");\n\t }",
"Parent()\n\t{\n\t\tSystem.out.println(\"This is parent's default constructor\");\n\t}",
"public DocumentBase() {\n \n }",
"public CouchDoc() {\n super();\n docType = getClass().getSimpleName();\n }",
"protected ChildType() {/* intentionally empty block */}",
"public AvroReadContext(AvroReadContext parent, String typeId)\n {\n super();\n _parent = parent;\n _typeId = typeId;\n _nestingDepth = parent == null ? 0 : parent._nestingDepth + 1;\n }",
"public void setParent(DocxContext<?> parent) {\n\n }",
"public MessageBus(MessageBus aParent)\r\n\t{\r\n\t\tthis.parentBus = aParent;\r\n\t}",
"protected Document() {/* intentionally empty block */}",
"public ConStructorInheritance(){\r\n\t\t\r\n\t\tSystem.out.println(\"Parent Class Constructor\");\r\n\t\t\r\n\t\t\r\n\t}",
"protected AbstractSplinePathBuilder(ScriptingContext parent) {\n\tsuper(parent);\n\tthis.parent = parent;\n }",
"protected DBLegalityTool(DBPersistanceController parentController) {\r\n super(parentController);\r\n }",
"public DocumentDao() {\n super(Document.DOCUMENT, cn.edu.nju.teamwiki.jooq.tables.pojos.Document.class);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n\t\t}",
"public Document() {\n }",
"private Builder() {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n }",
"public Documento() {\n\n\t}",
"public SearchDocument() {\n super();\n }",
"private Builder() {\n super(com.politrons.avro.AvroPerson.SCHEMA$);\n }",
"public TopicObject(TopicObject parent) {\n this.id = parent.getId();\n this.projectId = parent.getProjectId();\n this.title = parent.getTitle();\n this.excerpt = parent.getExcerpt();\n this.lastUpdatorId = parent.getLastUpdatorId();\n this.lastUpdatorName = parent.getLastUpdatorName();\n this.refId = parent.getRefId();\n this.refType = parent.getRefType();\n this.deleted = parent.getDeleted();\n this.created = parent.getCreated();\n this.updated = parent.getUpdated();\n this.bcId = parent.getBcId();\n this.companyId = parent.getCompanyId();\n this.stick = parent.getStick();\n }",
"public DocumentBuilder() {\n this.document = new Document();\n }",
"private Construct(Builder builder) {\n super(builder);\n }",
"private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }",
"public Contact() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.person.tables.Contact.Contact);\n\t}",
"VersionedDocument getParentDocument();",
"protected Agent(final lotus.domino.Agent delegate, final org.openntf.domino.Database parent) {\n\t\tsuper(delegate, parent, NOTES_MACRO);\n\t\tinitialize(delegate);\n\n\t}",
"public PhotoStore(Activity parent, String albumName) {\r\n\t\tthis.albumName = albumName;\t\r\n\t\tthis.parent = parent;\r\n\t}",
"public Scope(Scope parent){\r\n\t\tthis. parent = parent;\r\n\t}",
"public OwnerTrace<T> parent(Object parent) {\n\t\tif (parent instanceof OwnerTrace)\n\t\t\tdata.parent = ((OwnerTrace<?>)parent).data;\n\t\telse if (parent == null)\n\t\t\tdata.parent = null;\n\t\telse\n\t\t\tdata.parent = OwnerTrace.of(parent).data;\n\t\treturn this;\n\t}",
"public DatabaseClient() {\n initConnection();\n dbClient = FirestoreClient.getFirestore();\n }",
"private Builder()\n {\n }",
"public Scope(Scope parent) {\n this();\n this.parent = parent;\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"private Builder() {\n super(sparqles.avro.analytics.EPViewInteroperability.SCHEMA$);\n }",
"public Builder(P parent, Consumer<R> consumer) {\n _parent = parent;\n _consumer = consumer;\n }",
"public abstract Optional<TypeName> parent();",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"public OnshapeDocument() {\n this(null, null, null);\n }",
"private Builder() {\n super(com.twc.bigdata.views.avro.viewing_info.SCHEMA$);\n }",
"private Builder() {\n super(graphene.model.idl.G_DocumentError.SCHEMA$);\n }",
"O() { super(null); }",
"public ImageBrowserDocumentPanel(IChart parent) {\n this.title = TITLE;\n this.parent = parent;\n appCtx = GlobalConstants.getApplicationContext();\n app = appCtx.getApplication();\n taskMonitor = appCtx.getTaskMonitor();\n // taskService = appCtx.getTaskService();\n // setTitle(TITLE);\n setDirty(false);\n }",
"public FieldMetaData(MetaData parent, final String name)\r\n {\r\n super(parent, name);\r\n }",
"public TuxAPIFlippers(TuxAPI parent)\r\n\t{\r\n\t\tpParent = parent;\r\n\t\teventHandlers = pParent.getEventHandlers();\r\n\t}",
"public Builder() {\n\t\t}",
"public ResourceImpl(Persistence persistence, CoralCore coral, CoralEventHub coralEventHub,\n String name, ResourceClass resourceClass, Resource parent, Subject creator)\n {\n super(persistence, name);\n this.coral = coral;\n this.coralEventHub = coralEventHub;\n\n this.resourceClass = resourceClass;\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n {\n this.parentId = parent.getId();\n } \n this.creator = creator;\n this.owner = creator;\n this.modifier = creator;\n this.created = new Date();\n this.modified = this.created;\n }",
"public Resolver(Resolver parentResolver) {\n\t\tparent = parentResolver;\n\t\tstorage = new Slots();\n\t}",
"public SuperProduct() {\n\t\tsuper();\n\t}",
"private Nested(Builder builder) {\n super(builder);\n }",
"public BookRecord() {\n super(Book.BOOK);\n }",
"public void setParent(Instance parent) {\r\n \t\tthis.parent = parent;\r\n \t}",
"public void setParent(ProviderStore parent) {\n this.parent = parent;\n }",
"public InteractionClass( ObjectModel model, String name, InteractionClass parent )\n\t{\n\t\tthis.model = model;\n\t\tthis.name = name;\n\t\tthis.qualifiedName = null;\n\t\tthis.handle = null;\n\t\tthis.parent = parent;\n\t\tthis.children = new HashSet<>();\n\t\tthis.parameters = new HashMap<>();\n\t\t\n\t\t// add ourselves to the parent (unless we're the root, in which case we have no parent)\n\t\tif( parent != null )\n\t\t\tparent.addChild( this );\n\t}",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"private Builder() {\n super(sparqles.avro.discovery.DGETInfo.SCHEMA$);\n }",
"public SQLDataBase(Context context){ // is this supposed to be public?\n super(context, DATABASE_NAME, null, 1);\n }",
"private Db() {\n super(Ke.getDatabase(), null);\n }",
"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 }",
"protected TreeProcessor(TreeProcessor parent, ComponentManager manager) {\n this.parent = parent;\n\n // Copy all that can be copied from the parent\n this.enableLogging(parent.getLogger());\n this.context = parent.context;\n this.roleManager = parent.roleManager;\n this.builderSelector = parent.builderSelector;\n this.checkReload = parent.checkReload;\n this.lastModifiedDelay = parent.lastModifiedDelay;\n\n // We have our own CM\n this.manager = manager;\n }",
"public Uploader() {\n super();\n }",
"@Override\n public void initSelf(OrchidContext oc) throws OrchidException\n {\n super.initSelf(oc);\n\n try {\n BlogPolicy blog = getParentBlog();\n if (blog != null) {\n ContentId blogId = blog.getContentId().getContentId();\n\n parentBlogLink = new OContentIdLink();\n parentBlogLink.setContentId(blogId);\n parentBlogLink.setLabel(blog.getName());\n parentBlogLink.setTitle(blogId.getContentIdString());\n parentBlogLink.init(oc);\n }\n } catch (CMException e) {\n e.printStackTrace();\n }\n }",
"public TravelAuthorizationDocument() {\n super();\n }",
"protected Book() {\n this.title = \"Init\";\n this.author = \"Init\";\n this.bookCategories = new HashSet<>(10);\n }",
"private Builder() {\n super(edu.pa.Rat.SCHEMA$);\n }",
"public void setParent(String parent) {\n _parent = parent;\n }",
"public MyDocument() {\r\n }",
"protected Product() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public Builder() {\n }",
"public Builder() {\n }",
"public FileDicomBaseInner() {}",
"protected Depot() {\n\t\tthis(null);\n\t}",
"public Model(CoreSession session, String parentPath, String title)\n throws ClientException {\n \tthis.session = session;\n this.doc = session.createDocumentModel(parentPath, title,\n PAGENAV.type());\n this.doc.setPropertyValue(\"dc:title\", title);\n }",
"private Builder() {\n super(baconhep.TTau.SCHEMA$);\n }",
"public DleseCollectionDocReader() {\n\t}",
"private RecordImpl(Table tableParent, long lRecord, RecordType rt) throws IOException\n\t{\n\t\t_tableParent\t= tableParent;\n\t\t_lRecord\t\t= lRecord;\n\t\tif (rt.getAny().size() > 0)\n\t\t{\n\t\t\tElement el = (Element) rt.getAny().get(0);\n\t\t\tif (el.getOwnerDocument() != getDocument())\n\t\t\t{\n\t\t\t\t_doc = el.getOwnerDocument();\n\t\t\t}\n\t\t}\n\t\tsetRecordType(rt);\n\t}",
"protected void childInit()\n {\n }"
] | [
"0.6696346",
"0.6536181",
"0.6387659",
"0.63774747",
"0.61829424",
"0.60268724",
"0.5958084",
"0.5950794",
"0.59449565",
"0.5921083",
"0.5916941",
"0.5868402",
"0.57653373",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.5757968",
"0.575782",
"0.57553166",
"0.57281744",
"0.5724842",
"0.571237",
"0.5708056",
"0.56827015",
"0.5676076",
"0.56742924",
"0.56650794",
"0.5652894",
"0.56471384",
"0.56448203",
"0.56306297",
"0.56298935",
"0.5621201",
"0.55977577",
"0.5587823",
"0.55761474",
"0.5575938",
"0.5575938",
"0.5566838",
"0.55663466",
"0.5554973",
"0.5551743",
"0.5543822",
"0.5542853",
"0.5542188",
"0.55409163",
"0.5539065",
"0.5536593",
"0.55344015",
"0.5526352",
"0.5509629",
"0.5507842",
"0.5502401",
"0.54966223",
"0.54917574",
"0.548863",
"0.5481216",
"0.5481028",
"0.54760253",
"0.5460149",
"0.5460149",
"0.5452256",
"0.54421145",
"0.54354054",
"0.5422138",
"0.542116",
"0.54202735",
"0.5418405",
"0.5409067",
"0.54050654",
"0.53968745",
"0.5394873",
"0.5381017",
"0.536409",
"0.5362033",
"0.5360911",
"0.5360911",
"0.5357405",
"0.53571445",
"0.5354838",
"0.5352369",
"0.5344331",
"0.53389156",
"0.5335363"
] | 0.7264148 | 0 |
The display method displays all the details about that game. Total No of players for the selected game, Number of players online for the game, what open matches are there for the game. Help topics, Multilayer support, Head to head FAQ is provided.All the widgets information is stored. | @Override
public ActionForward display(ActionMapping mapping, BaseForm form,
String operation, HttpServletRequest request,
HttpServletResponse response) {
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
G4GConstants.CALLINGMETHOD).append(
DataUtil.getCallingMethod()).append(
G4GConstants.DISPLAY_STARTS)
.append(G4GConstants.DASHES).append(
request.getSession().getId()).toString(),
Level.INFO);
if (request.getSession().getAttribute(G4GConstants.USERDTO) == null) {
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
G4GConstants.COLON_WITH_SPACES).append(
DataUtil.getCurrentMethod()).append(
G4GConstants.COLON_WITH_SPACES).append(G4GConstants.DASHES)
.append(request.getSession().getId()).append(
G4GConstants.USER_NOT_RECOGNIZE).append(
request.getSession().getId()).toString(),
Level.INFO);
return mapping.findForward(G4GConstants.HOMEPAGE);
}
List<OpenMatchDTO> matchList = new ArrayList<OpenMatchDTO>();
UserDTO userDTO;
GameDTO gameDTO = null;
int playerId = G4GConstants.ZERO;
GameDetailsForm gameDetailsForm = new GameDetailsForm();
int gameId =G4GConstants.ZERO;
try {
gameId = request.getParameter(G4GConstants.GAMEID) != null ? Integer
.parseInt(request.getParameter(G4GConstants.GAMEID))
: G4GConstants.ZERO;
userDTO = DataUtil.getUserDTO(request);
playerId = userDTO.getPlayerDTO().getId();
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
CALLINGMETHOD).append(DataUtil.getCallingMethod())
.append(DISPLAY_STARTS).append(DASHES).append(
G4GConstants.GETTING_DETAILS).append(
request.getSession().getId()).toString());
/* Getting game details as per the gameId */
gameDTO = GameServiceDelegator.getGame(gameId);
if(gameDTO == null){
return mapping.findForward(G4GConstants.GAMELOBBY);
}
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
CALLINGMETHOD).append(DataUtil.getCallingMethod())
.append(DISPLAY_STARTS).append(DASHES).append(
G4GConstants.THIS_IS_GAME).append(
gameDTO.getGamename()).append(
request.getSession().getId()).toString());
/* Getting match details for openMatches tab */
matchList = TwoPlayerTournamentServiceDelegator
.getOpenMatchesDetails(gameId, playerId);
/*
* Form field allPlayers id populated with players having this
* gameId
*/
gameDetailsForm.setAllPlayers(PlayerServiceDelegator
.getGameWisePlayersList(gameId));
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
G4GConstants.GAME_ID_IS).append(gameId).toString());
request.setAttribute(G4GConstants.GAMEDETAILSFORM, gameDetailsForm);
}catch(NumberFormatException e) {
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
G4GConstants.COLON_WITH_SPACES).append(
DataUtil.getCurrentMethod()).append(
G4GConstants.COLON_WITH_SPACES).append(G4GConstants.DASHES)
.append(request.getSession().getId()).append(
"No Game with this id").append(
e.getMessage()).toString(),
Level.ERROR);
return mapping.findForward(G4GConstants.GAMELOBBY);
} catch (NullPointerException exception) {
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_HIBERNATE,
new StringBuffer(this.getClass().getName()).append(
G4GConstants.COLON_WITH_SPACES).append(
DataUtil.getCurrentMethod()).append(
G4GConstants.DASHES).append(exception.getMessage())
.append(
DataUtil.getUserDTO(request).getPlayerDTO()
.getScreenname()).append(
request.getSession().getId()).toString(),
Level.ERROR);
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
G4GConstants.COLON_WITH_SPACES).append(
DataUtil.getCurrentMethod()).append(
G4GConstants.DASHES).append(exception.getMessage())
.append(
DataUtil.getUserDTO(request).getPlayerDTO()
.getScreenname()).append(
request.getSession().getId()).toString(),
Level.ERROR);
}
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
CALLINGMETHOD).append(DataUtil.getCallingMethod())
.append(DASHES).append(G4GConstants.SET_FORM_FIELDS)
.append(request.getSession().getId()).toString(),
Level.INFO);
request.setAttribute(G4GConstants.ALLPLAYERSLIST,
PlayerServiceDelegator.getGameWisePlayersList(gameId));
request.setAttribute(G4GConstants.MATCHLIST, matchList);
request.setAttribute(G4GConstants.GAMEDTO, gameDTO);
/*if (WidgetsServiceDelegator.getActivePlayers(G4GConstants.MAX_RECORDS,
G4GConstants.MAX_PLAYED_IN_DAYS).size() > G4GConstants.ZERO) {
request.setAttribute(G4GConstants.ACTIVEPLAYERS, WidgetsAjaxImpl
.getActivePlayers(G4GConstants.MAX_RECORDS,
G4GConstants.MAX_PLAYED_IN_DAYS, request));
} else {
request.setAttribute(G4GConstants.ACTIVEPLAYERS, null);
}*/
GameLobbyPageForm gameLobbyForm = new GameLobbyPageForm();
List<ActivePlayersDTO> activePlayersList = WidgetsServiceDelegator
.getActivePlayers(G4GConstants.MAX_RECORDS, G4GConstants.MAX_PLAYED_IN_DAYS);
gameLobbyForm.setActivePlayers(activePlayersList);
List<GameDTO> xbox360GamesList = WidgetsServiceDelegator.getMyLobby(
playerId, G4GConstants.NETWORK_XBOX360_LIST_KEY);
gameLobbyForm.setXbox360Games(xbox360GamesList);
List<GameDTO> ps2GamesList = WidgetsServiceDelegator.getMyLobby(
playerId, G4GConstants.NETWORK_PS2_ID_LIST_KEY);
gameLobbyForm.setPs2Games(ps2GamesList);
List<GameDTO> ps3GamesList = WidgetsServiceDelegator.getMyLobby(
playerId, G4GConstants.NETWORK_PS3_ID_LIST_KEY);
gameLobbyForm.setPs3Games(ps3GamesList);
request.setAttribute(G4GConstants.GAME_LOBBY_PAGE_FORM, gameLobbyForm);
return mapping.findForward(G4GConstants.SUCCESS);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void display(){\n out.println(\"\\n-STOCK EXCHANGE-\");\n out.println(\"Apple - Share Price: \" + game.apple.getSharePrice() + \" [\" + game.apple.top() + \"]\");\n out.println(\"BP - Share Price: \" + game.bp.getSharePrice() + \" [\" + game.bp.top() + \"]\");\n out.println(\"Cisco - Share Price: \" + game.cisco.getSharePrice() + \" [\" + game.cisco.top() + \"]\");\n out.println(\"Dell - Share Price: \" + game.dell.getSharePrice() + \" [\" + game.dell.top() + \"]\");\n out.println(\"Ericsson - Share Price: \" + game.ericsson.getSharePrice() + \" [\" + game.ericsson.top() + \"]\");\n\n out.println(\"\\n-PLAYERS-\");\n// System.out.println(playerList.toString());\n for (Player e : playerList) {\n if (e.equals(player)) {\n out.println(e.toString() + \" (you)\");\n } else {\n out.println(e.toString());\n }\n }\n }",
"private void displayPlayers() {\n\t\tfor (Player p: game.getPlayers()) {\n\t\t\tview.updateDisplay(p.getId(), p.getDeck().getNumberOfCards());\n\t\t}\n\t}",
"public void setGameDisplay(GameList gameList){\n String[][] m_data = new String[gameList.getLength()][3];\n int m_counter = 0;\n //iterates through the game list and sets the information at each column to the current games information\n for (Game g : (Iterable<Game>)gameList) {\n m_data[m_counter][0] = g.getTitle();\n m_data[m_counter][1] = g.getGenre();\n m_data[m_counter++][2] = g.getPublisher();\n\n Game m_tmpGame = new Game();\n m_tmpGame = g;\n m_searchResult.addGame(g); // adds the game to the searchResults List\n }\n //sets the table with basic information\n m_gameTable.setModel( new DefaultTableModel(\n m_data,\n new String[]{\"Title\", \"Genre\", \"Publisher\"}\n ));\n TableColumnModel columns = m_gameTable.getColumnModel();\n columns.getColumn(0).setMinWidth(0);\n m_gameTable.setAutoCreateRowSorter(true);\n }",
"public void display() {\r\n\t\tJFrame myFrame = new JFrame(\"BlackJack\");\r\n\t\tmyFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tmyFrame.setContentPane(this);\r\n\t\tmyFrame.setPreferredSize(new Dimension(700, 550));\r\n\t\tmyFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t// Display the window.\r\n\t\tmyFrame.pack();\r\n\t\tmyFrame.setVisible(true);\r\n\t\t//game = new Blackjack();\r\n\t}",
"@Override\n public void display() {\n Game game = PiggysRevenge.getCurrentGame();\n int bricks = 0;\n House house = game.getHouse();\n if (game.getHouse().isCompleted()) {\n try {\n bricks = GameControl.calcNumberOfBricks(house.getLength(), house.getWidth(), house.getHeight(), house.getStories());\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n } else {\n bricks = 0;\n }\n int turns = game.getTurns();\n boolean hasEaten = game.getPlayer().isHasEaten();\n boolean wolfKilled = game.isWolfKilled();\n int result = 0;\n try {\n result = GameControl.calcScore(bricks, turns, hasEaten, wolfKilled);\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n if (result>0) {\n this.console.println(\"+\" + (bricks*10) + \" Points for building the house.\");\n this.console.println(\"-\" + (turns*10) + \" Points for the number of turns taken (\" + turns + \" turns).\");\n } else {\n this.console.println(\"You get no points if you do not build a house,\"\n + \"\\neat the roast beef, or kill the wolf.\");\n }\n if (hasEaten) {\n this.console.println(\"+1000 Points for eating roast beef.\");\n }\n if (wolfKilled) {\n this.console.println(\"+2000 Points for killing the wolf.\");\n }\n this.console.println(\"\\nYOUR SCORE IS: \" + result);\n\n if (gameOver) {\n HighScore[] highScores;\n\n File varTmpDir = new File(\"highscores.txt\");\n\n if (varTmpDir.exists()) {\n try (FileInputStream fips = new FileInputStream(\"highscores.txt\");\n ObjectInputStream input = new ObjectInputStream(fips);) {\n \n\n highScores = (HighScore[]) input.readObject();\n highScores[10] = new HighScore(game.getPlayer().getName(), result, house);\n\n for (int n = 0; n < highScores.length; n++) {\n for (int m = 0; m < highScores.length - 1 - n; m++) {\n if (highScores[m].getScore() < highScores[m + 1].getScore()\n || \"---\".equals(highScores[m].getName())) {\n HighScore swapHighScore = highScores[m];\n highScores[m] = highScores[m + 1];\n highScores[m + 1] = swapHighScore;\n }\n }\n }\n\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n output.writeObject(highScores);\n this.console.println(\"Score saved successfully\");\n \n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n } else {\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n\n highScores = new HighScore[11];\n for (int i = 0; i < highScores.length; i++){\n highScores[i] = new HighScore(\"---\", 0, new House(5, 5, 6, 1));\n \n }\n\n highScores[0] = new HighScore(game.getPlayer().getName(), result, house);\n output.writeObject(highScores);\n this.console.println(\"New highscore file created. Score saved successfully\");\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n }\n }\n }",
"public void DisplayWithMultiTypes() {\n\t\tplayers = new ArrayList<Player>();\n\t\tplayer1 = new Player(\"Nick\");\n\t\tplayer2 = new Player(\"Ausitn\");\n\t\tplayers.add(player1);\n\t\tplayers.add(player2);\n\t\tgame = new GameState();\n\t\tgame.initializeServer(players);\n\t\tRulesEngine.setColour(game, String.valueOf(Type.BLUE));\n\t\t\n\t\tgame.setTurn(0);\n\t\t\n\t\t\n\t\t//create cards to be added to player's hand and target's display\n\t\tCard purpleCard = new Card(Type.PURPLE, 3);\n\t\tCard greenCard = new Card(Type.GREEN, 1);\n\t\tCard yellowCard = new Card(Type.YELLOW, 2);\n\t\tCard blueCard = new Card(Type.BLUE, 3);\n\t\tCard redCard = new Card(Type.RED, 4);\n\t\tCard squire = new Card(Type.WHITE, 2);\n\t\tCard maiden = new Card (Type.WHITE, 6);\n\t\t\n\t\t//Give one of the players a riposte card to play\n\t\tCard riposte = new Card(Type.ACTION, Card.RIPOSTE);\n\t\tgame.getAllPlayers().get(0).getHand().add(riposte);\n\t\t\n\t\t//Give target player a custom display\n\t\tgame.getDisplay(1).add(redCard);\n\t\tgame.getDisplay(1).add(purpleCard);\n\t\tgame.getDisplay(1).add(blueCard);\n\t\tgame.getDisplay(1).add(greenCard);\n\t\tgame.getDisplay(1).add(squire);\n\t\tgame.getDisplay(1).add(yellowCard);\n\t\tgame.getDisplay(1).add(maiden);\n\t}",
"public void display() {\n System.out.println(\"Title: \" + this.title);\n System.out.println(\"Description: \" + this.des);\n System.out.println(\"Price Per Night: $\" + this.price);\n System.out.println(\"Max Guests: \" + this.guests);\n System.out.println(\"Length of stay: \" + this.days + \" days\");\n System.out.println(\"Total for stay: $\" + this.total);\n System.out.println(\"-----------------------------------\");\n }",
"public void buildDisplay() {\n ColorMap map = new ColorMap();\n\n for (int i = 1; i <= maxGrassPerCell; i++) {\n map.mapColor(i, new Color(0, Math.max(256 - i * 12, 50), 0));\n }\n map.mapColor(0, Color.white);\n\n Value2DDisplay displayMoney =\n new Value2DDisplay(space.getCurrentGrassSpace(), map);\n\n Object2DDisplay displayRabbits = new Object2DDisplay(space.getCurrentRabbitSpace());\n displayRabbits.setObjectList(rabbitList);\n\n displaySurf.addDisplayableProbeable(displayMoney, \"Grass\");\n displaySurf.addDisplayableProbeable(displayRabbits, \"Rabbits\");\n\n populationPlot.addSequence(\"Number of Rabbits\", new rabbitCount(), Color.BLUE);\n populationPlot.addSequence(\"Number of Grass\", new grassCount(), new Color(0, 150, 0));\n }",
"public SteamGui(ArrayList<Game>games) {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.games = games;\n\t\tsetBounds(100, 100, 1411, 1030);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\ttabbedPane.setBounds(27, 127, 1368, 784);\n\t\t\n\t\tcontentPane.add(tabbedPane);\n\t\t\n\t\ttabbedPane.addTab(\"Steam Table\", null, panel, null);\n\t\tpanel.setLayout(null);\n\t\tscrollPane.setBounds(0, 0, 1332, 745);\n\t\t\n\t\tpanel.add(scrollPane);\n\t\t\n\t\tscrollPane.setViewportView(table);\n\t\ttable.setModel(tm);\n\t\tsortingOn.setModel(new DefaultComboBoxModel(new String[] {\"Name\", \"Date\", \"Positive Reviews\", \"Negative Reviews\", \"Average Playtime\", \"Median Playtime\", \"Minimum Owners\", \"Maximum Owners\", \"Price\"}));\n\t\tsortingOn.setBounds(133, 932, 137, 22);\n\t\t\n\t\tcontentPane.add(sortingOn);\n\t\tlblSortOn.setBounds(61, 936, 62, 14);\n\t\t\n\t\tcontentPane.add(lblSortOn);\n\t\tsort.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tString result = (String) sortingOn.getSelectedItem();\n\t\t\t\tif (result.equals(\"Name\"))\n\t\t\t\t{\n\t\t\t\tGameCompare ac = new GameCompare();\n\t\t\t\tCollections.sort(games, ac);\n\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Price\"))\n\t\t\t\t{\n\t\t\t\t\tPriceCompare pc = new PriceCompare();\n\t\t\t\t\tCollections.sort(games, pc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Negative Reviews\"))\n\t\t\t\t{\n\t\t\t\t\tNegativCompare nc = new NegativCompare();\n\t\t\t\t\tCollections.sort(games, nc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Positive Reviews\"))\n\t\t\t\t{\n\t\t\t\t\tCollections.sort(games);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Average Playtime\"))\n\t\t\t\t{\n\t\t\t\t\tAverageCompare ac = new AverageCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Median Playtime\"))\n\t\t\t\t{\n\t\t\t\t\tMedianCompare mc = new MedianCompare();\n\t\t\t\t\tCollections.sort(games, mc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Minimum Owners\"))\n\t\t\t\t{\n\t\t\t\t\tMinCompare ac = new MinCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Maximum Owners\"))\n\t\t\t\t{\n\t\t\t\t\tMaxCompare ac = new MaxCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Date\"))\n\t\t\t\t{\n\t\t\t\t\tDateCompare ac = new DateCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsort.setBounds(290, 932, 89, 23);\n\t\t\n\t\tcontentPane.add(sort);\n\t\tlblTopOf.setFont(new Font(\"Tahoma\", Font.PLAIN, 27));\n\t\tlblTopOf.setBounds(61, 49, 565, 45);\n\t\t\n\t\tcontentPane.add(lblTopOf);\n\t\tcreatePieGraphTab();\n\t\tdrawTable();\n\t\tcreateALineChartTab();\n\t\t\n\t}",
"@Override\n protected void display() {\n System.out.println(\"Welcome to team builder tool!\");\n System.out.println(\"Current team: \" + team.getName());\n }",
"public GameInfo(Game game) {\n gameState = game.getGameState();\n activeCategory = game.getActiveCategory();\n round = game.getRound();\n humanRoundsWon = game.getHumanWonRounds();\n numDraws = game.getNumDraws();\n\n if (game.getActivePlayer() != null) {\n activePlayerName = game.getActivePlayer().getName();\n activePlayerHuman = game.getActivePlayer().getIsHuman();\n } else {\n activePlayerName = null;\n activePlayerHuman = null;\n }\n\n if (game.getRoundWinner() != null) {\n roundWinnerName = game.getRoundWinner().getName();\n } else {\n roundWinnerName = null;\n }\n\n if (game.getGameWinner() != null) {\n gameWinnerName = game.getGameWinner().getName();\n } else {\n gameWinnerName = null;\n }\n\n if (game.getGameWinner() != null) {\n winnerHuman = game.getGameWinner().getIsHuman();\n } else {\n winnerHuman = null;\n }\n\n\n\n topCards = getTopCards(game);\n playerNames = getPlayerNames(game);\n topCardTitles = getTopCardTitles(game);\n deck = getDeck(game);\n Player humanPlayer = getHumanPlayer(game);\n numOfCardsLeft = getNumOfCards(game);\n\n\n // Determine number of cards in human's deck\n //, the size of the communal pile and the top \n // most card\n if (humanPlayer != null && humanPlayer.getHand() != null) {\n numHumanCards = humanPlayer.getHand().size();\n } else {\n numHumanCards = null;\n }\n \n if (deck.size() > 0) {\n numOfCommunalCards = deck.size();\n } else {\n numOfCommunalCards = 0;\n }\n\n if (humanPlayer != null && humanPlayer.getTopMostCard() != null) {\n humanTopCardTitle = humanPlayer.getTopMostCard().getName();\n cardCategories = humanPlayer.getTopMostCard().getCardProperties();\n } else {\n humanTopCardTitle = null;\n cardCategories = null;\n }\n }",
"private void displayGUI()\n {\n SpringLayout springLayout = new SpringLayout();\n setLayout(springLayout);\n\n displayTextAreas(springLayout);\n displayButtons(springLayout);\n displayLabels(springLayout);\n displayTables(springLayout);\n //displaySelectedQuestion();\n }",
"private void displayBuildingInfo() {\r\n\t\tui.buildingInfoPanel.buildingName.setText(currentBuilding.type.label);\r\n\t\tui.buildingInfoPanel.completed.setText(\"\" + currentBuilding.buildProgress);\r\n\t\tui.buildingInfoPanel.completedTotal.setText(\"\" + currentBuilding.type.hitpoints);\r\n\t\tui.buildingInfoPanel.hitpoints.setText(\"\" + currentBuilding.hitpoints);\r\n\t\tui.buildingInfoPanel.hitpointsTotal.setText(\"\" + currentBuilding.buildProgress);\r\n\t\tui.buildingInfoPanel.assignedWorkers.setText(\"\" + currentBuilding.assignedWorker);\r\n\t\tui.buildingInfoPanel.workerTotal.setText(\"\" + currentBuilding.getWorkers());\r\n\t\tui.buildingInfoPanel.assignedEnergy.setText(\"\" + currentBuilding.assignedEnergy);\r\n\t\tui.buildingInfoPanel.energyTotal.setText(\"\" + currentBuilding.getEnergy());\r\n\t\tui.buildingInfoPanel.efficiency.setText(String.format(\"%.3f%%\", currentBuilding.getEfficiency() * 100));\r\n\t\tui.buildingInfoPanel.tech.setText(currentBuilding.techId);\r\n\t\tui.buildingInfoPanel.cost.setText(\"\" + currentBuilding.type.cost);\r\n\t\tui.buildingInfoPanel.locationX.setText(\"\" + currentBuilding.location.x);\r\n\t\tui.buildingInfoPanel.locationY.setText(\"\" + currentBuilding.location.y);\r\n\t\tui.buildingInfoPanel.apply.setEnabled(true);\r\n\t\tui.buildingInfoPanel.buildingEnabled.setSelected(currentBuilding.enabled);\r\n\t\tui.buildingInfoPanel.buildingRepairing.setSelected(currentBuilding.repairing);\r\n\t\t\r\n\t\tui.buildingInfoPanel.completionPercent.setText(String.format(\" %.3f%%\", currentBuilding.buildProgress * 100.0 / currentBuilding.type.hitpoints));\r\n\t\tui.buildingInfoPanel.hitpointPercent.setText(String.format(\" %.3f%%\", currentBuilding.hitpoints * 100.0 / currentBuilding.buildProgress));\r\n\t\tui.buildingInfoPanel.workerPercent.setText(String.format(\" %.3f%%\", currentBuilding.assignedWorker * 100.0 / currentBuilding.getWorkers()));\r\n\t\tui.buildingInfoPanel.energyPercent.setText(String.format(\" %.3f%%\", currentBuilding.assignedEnergy * 100.0 / currentBuilding.getEnergy()));\r\n\t\t\r\n\t\tui.buildingInfoPanel.upgradeList.removeAllItems();\r\n\t\tui.buildingInfoPanel.upgradeList.addItem(\"None\");\r\n\t\tfor (int j = 0; j < currentBuilding.type.upgrades.size(); j++) {\r\n\t\t\tui.buildingInfoPanel.upgradeList.addItem(currentBuilding.type.upgrades.get(j).description);\r\n\t\t}\r\n\t\tui.buildingInfoPanel.upgradeList.setSelectedIndex(currentBuilding.upgradeLevel);\r\n\t\t\r\n\t\tui.buildingInfoPanel.resourceTableModel.rows.clear();\r\n\t\tfor (String r : currentBuilding.type.resources.keySet()) {\r\n\t\t\tif (\"worker\".equals(r) || \"energy\".equals(r)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tResource res = new Resource();\r\n\t\t\tres.type = r;\r\n\t\t\tres.amount = currentBuilding.getResource(r);\r\n\t\t\tui.buildingInfoPanel.resourceTableModel.rows.add(res);\r\n\t\t}\r\n\t\tui.buildingInfoPanel.resourceTableModel.fireTableDataChanged();\r\n\t}",
"public static void displayScoreCard(){\r\n\t\t\r\n\t\t try {\r\n\t\t\t \r\n\t\t\t //getting the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//retriving the data from the database\r\n\t\t\t ResultSet results = statement.executeQuery(\"select * from \" + tableName);\r\n\t\t\t \r\n\t\t\t //Retrieves the Players_Name, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE and OUT_FRONT of this ResultSet object's columns. \r\n\t\t\t ResultSetMetaData rsmd = results.getMetaData();\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t System.out.println(\"\\t\\t\\t\\t Fort Cherry Golf Course\");\r\n\t\t\t // print the names of the above the table\r\n\t\t\t int numberCols = rsmd.getColumnCount();\r\n\t\t\t for (int i=1; i<=numberCols; i++) \r\n\t\t\t {\r\n\t\t\t // extract each column name from the meta data and print them\r\n\t\t\t System.out.print(rsmd.getColumnLabel(i)+\"\\t\"); \r\n\t\t\t }\r\n\r\n\t\t\t //simply printing the line\r\n\t\t\t System.out.println(\"\\n--------------------------------------------------------------------------------------------------\");\r\n\t\t\t \r\n\t\t\t // Reteriving all data one by one from the data base\r\n\t\t\t while(results.next())\r\n\t\t\t {\r\n\t\t\t String players_Name = results.getString(1);\r\n\t\t\t int ONE = results.getInt(2);\r\n\t\t\t int TWO = results.getInt(3);\r\n\t\t\t int THREE = results.getInt(4);\r\n\t\t\t int FOUR = results.getInt(5);\r\n\t\t\t int FIVE = results.getInt(6);\r\n\t\t\t int SIX = results.getInt(7);\r\n\t\t\t int SEVEN = results.getInt(8);\r\n\t\t\t int EIGHT = results.getInt(9);\r\n\t\t\t int NINE = results.getInt(10);\r\n\t\t\t int OUT_FRONT = results.getInt(11);\r\n\t\t\t \r\n\t\t\t //printing the retrive data to the console\r\n\t\t\t System.out.println(players_Name + \"\\t\" + ONE + \"\\t\" + TWO + \"\\t\" + THREE + \"\\t\" + FOUR + \"\\t\" + FIVE + \"\\t\" + SIX + \"\\t\" + SEVEN + \"\\t\" + EIGHT + \"\\t\" + NINE + \"\\t\" + OUT_FRONT);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t //closing the resultset and the statement\r\n\t\t\t results.close();\r\n\t\t\t statement.close();\r\n\t\t\t \r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void show() {\n\t\tshown = true;\n\t\t\n\t\tfor(CustomScoreboardEntry entry : entries)\n\t\t\tentry.show();\n\t}",
"private void showGameScore() {\n System.out.println(messageProvider.provideMessage(\"score\"));\n System.out.println(settings.getPlayers().get(0).getScore()\n + \" vs \" + settings.getPlayers().get(1).getScore());\n }",
"public void displayCommonGames(Game[] games) {\n StringBuilder displayString = new StringBuilder(\"Common games are:\");\n\n for(int i = 0; i + 1 < games.length; i += 2) {\n String intermediate1 = games[i].name + \" - \" + games[i].appID;\n String intermediate2 = games[i + 1].name + \" - \" + games[i + 1].appID ;\n displayString.append(String.format(\"\\n%-66s %s\", intermediate1, intermediate2));\n }\n\n if(games.length % 2 == 1) {\n displayString.append(\"\\n\").append(games[games.length - 1].name).append(\" - \").append(games[games.length - 1].appID);\n }\n\n frame.setContentPane(new JScrollPane(new JTextArea(displayString.toString())));\n frame.pack();\n }",
"public void displayCards() {\n\t\tSystem.out.println(\"\\n---------- Deck Worker ----------\");\n\t\tfor(Card worker : this.deckWorker) {\n\t\t\tSystem.out.print(worker.toString());\n\t\t}\n\t\tSystem.out.println(\"\\n\\n---------- Deck Building and Machine ----------\");\n\t\tfor(IBuilding building : this.deckBuilding) {\n\t\t\tSystem.out.print(building.toString());\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void displayResults(ExperimentGameResultViewModel viewModel) {\n mNameIconView.setDescription(viewModel.gameName);\n mTypeIconView.setDescription(viewModel.gameType);\n mActualTimeIconView.setDescription(String.valueOf(viewModel.gameActualTime));\n mEstimatedTimeIconView.setDescription(String.valueOf(viewModel.gameEstimatedTime));\n mWasInterruptedIconView.setDescription(viewModel.wasInterrupted ? getStringByResourceId(R.string.yes) : getStringByResourceId(R.string.no));\n if (viewModel.customJsonInfo != null && !viewModel.customJsonInfo.isEmpty()) {\n mAdditionalInfoIconView.setVisibility(View.VISIBLE);\n mAdditionalInfoIconView.setDescription(viewModel.customJsonInfo);\n } else {\n mAdditionalInfoIconView.setVisibility(View.GONE);\n }\n }",
"@Override\n\tpublic void show() {\n\t\tsetUpGame();\n\t}",
"private static void displayOwner() {\n // Clear the screen\n clearScreen();\n\n // Display UI\n System.out.println(\"Welcome, Owner.\\n\\n\"\n + \"Choose an option:\\n\"\n + \"- (O)ccupancy - View occupancy of rooms\\n\"\n + \"- (D)ata [(c)ounts|(d)ays|(r)evenue] - View data on \"\n + \"counts, days, or revenue of each room\\n\"\n + \"- (S)tays - Browse list of reservations\\n\"\n + \"- (R)ooms - View list of rooms\\n\"\n + \"- (B)ack - Goes back to main menu\\n\");\n }",
"private void display()\n {\n //Displaying the posts\n newsFeed.show();\n \n }",
"public WarGUI()\n {\n setLayout(new GridLayout(2,1));\n \n //start a game \n warGame = new WarCW();\n \n //Top panel for game details\n topPanel = new JPanel();\n topPanel.setBackground(Color.green); //it's green.\n \n //bottom panel for gameplay\n gamePanel = new JPanel();\n \n //Top panel stuff \n sup = new JLabel(\"**** Mike's WAR game ****\");\n sup.setFont(new Font(\"ARIAL\",Font.BOLD,46));\n topPanel.add(sup);\n \n //Bottom panel stuff\n roundNum = 1;\n temp = (\" || Round number \" + roundNum + \" || \");\n rounds = new JLabel(temp);\n \n back = new ImageIcon(\"back.jpg\");\n frontP1 = new ImageIcon(); //set it when it happens.\n frontP1 = new ImageIcon(); \n joker = new ImageIcon(\"joker.jpg\");\n \n p1 = new JLabel(\"P1 ->\");\n p2 = new JLabel(\"<- P2\");\n \n picP1 = new JLabel(back); \n picP2 = new JLabel(back); \n p1Played = new JLabel(joker);\n p2Played = new JLabel(joker);\n \n //The button that makes the game go and keep going\n button = new JButton(\"NEXT\");\n button.addActionListener(new ButtonListener());\n gamePanel.add(button); \n \n gamePanel.add(p1); \n gamePanel.add(picP1);\n gamePanel.add(p1Played);\n gamePanel.add(p2Played);\n gamePanel.add(picP2);\n gamePanel.add(p2);\n gamePanel.add(rounds);\n \n //trying to display the score in poor fashion\n p1Num = (WarCW.p1.cardsRemaining() + WarCW.p1e.cardsRemaining());\n p2Num = (WarCW.p2.cardsRemaining() + WarCW.p2e.cardsRemaining());\n \n temp1 = (\"P1: \"+p1Num + \" || \");\n temp2 = (\"P2: \"+p2Num); \n \n p1 = new JLabel(temp1); //26\n p2 = new JLabel(temp2); //26 \n \n topPanel.add(p1);\n topPanel.add(p2); \n\n add(topPanel);\n add(gamePanel);\n }",
"private void showAchievementsForm(Game game) {\n try {\n\n if (!game.isPopulated()) {\n List<Game> helperList = new ArrayList<>();\n helperList.add(game);\n AchievementsLoader task = new AchievementsLoader(txtKey.getText(), txtSteamId.getText(), txtLanguage.getText(), helperList);\n task.run();\n }\n\n if (game.getHasStats()) {\n\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/fxml/achievements.fxml\"));\n Scene scene = new Scene(fxmlLoader.load());\n scene.getStylesheets().add(\"dark.css\");\n\n AchievementsController achievementsController = fxmlLoader.<AchievementsController>getController();\n\n achievementsController.setAchievements(game);\n Stage stage = new Stage();\n stage.setTitle(game.getName());\n stage.setScene(scene);\n stage.show();\n } else {\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(SteamahApp.APP_TITLE);\n alert.setContentText(\"This game does not support achievements!\");\n alert.showAndWait();\n }\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n }",
"private void buildViewPanel(){\n //Create the view panel\n viewPanel = new JPanel();\n \n //Create border around text area\n viewPanel.setBorder(new TitledBorder(new EtchedBorder(), \"Saved Game Data\" ));\n \n //Create the text area with the scroll pane\n textArea = new JTextArea(16, 36);\n textArea.setEditable(false);\n scrollPane = new JScrollPane(textArea);\n \n //Show the scroll bar\n scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\n //Add the data to the text area\n textArea.append(\"Lane:\" + \"\\t\" + \"CS at 5:\" + \"\\t\" + \"CS at 10:\" \n + \"\\t\" + \"CS at 13:\" + \"\\t\"+ \"Grade:\" + \"\\n\");\n \n String formatedString = games.toString()\n .replace(\",\", \"\") //remove the commas\n .replace(\"[\", \"\") //remove the right bracket\n .replace(\"]\", \"\") //remove the left bracket\n .trim(); //remove trailing spaces from partially initialized arrays\n \n //Add game data\n textArea.append(\" \" + formatedString);\n \n //Add to the panel\n viewPanel.add(scrollPane);\n }",
"public void showGameArea(String gameArea)\r\n\t{\r\n\t\t// hide the regular grid view\r\n\t\ttheGridView.setVisible(false);\r\n\t\t\r\n\t\t// disable the chat box so the internal game can accept keyboard commands\r\n\t\tchatTextBox.setEnabled(false);\r\n\t\t\r\n\t\t// disable the toolbars\r\n\t\ttoolbar_left.setEnabled(false);\r\n\t\ttoolbar_right.setEnabled(false);\r\n\t\t\r\n\t\t// send the \"Game Add User\" message to add the user to the game room and remove him from the original room\r\n\t\tsendMessageToServer(new MessageGameAddUserToRoom(gameArea, theGridView.getMyCharacter()));\r\n\t\t\r\n\t\t// check to see which game needs to be started\r\n\t\tif(gameArea.toLowerCase().equals(\"fireworks\"))\r\n\t\t{\t\r\n\t\t\t// show the Fireworks game\r\n\t\t\tgameFireworks.start();\r\n\t\t\tgameFireworks.setVisible(true);\r\n\t\t}\r\n\t\telse if(gameArea.toLowerCase().equals(\"pirates\"))\r\n\t\t{\r\n\t\t\t// show the Pirates game\r\n\t\t\tgamePirates.start();\r\n\t\t\tgamePirates.setVisible(true);\r\n\t\t}\r\n\t}",
"private void display()\r\n\t{\r\n\t\tif(cardSet.getCards().size() == 0)\r\n\t\t{\r\n\t\t\tString text = \"\";\r\n\t\t\ttextBox.setText(text);\r\n\t\t\tcardCounterTxt.setText(\"0 / 0\");\r\n\t\t\tMainRunner.getCardManager().setCurrentCard(null);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tCard card = cardSet.getCards().get(currentCardIdx);\r\n\t\t//set the current card in card manager.\r\n\t\tMainRunner.getCardManager().setCurrentCard(card);\r\n\t\tString text = \"\";\r\n\t\tif(front)\r\n\t\t{\r\n\t\t\ttext = card.getFront();\r\n\t\t\ttextBoxContainer.setStyle(\"-fx-border-color: blue\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tList<String> expl = card.getBack();\r\n\t\t\tfor(int i = 0; i < expl.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif(i + 1 == expl.size())\r\n\t\t\t\t\ttext += expl.get(i);\r\n\t\t\t\telse\r\n\t\t\t\t\ttext += expl.get(i) + \"\\n\";\r\n\t\t\t}\r\n\t\t\ttextBoxContainer.setStyle(\"-fx-border-color: green\");\r\n\t\t}\r\n\t\ttextBox.setText(text);\r\n\t\t\r\n\t\tcardCounterTxt.setText(currentCardIdx + 1 + \" / \" + cardSet.getCards().size());\r\n\t}",
"public interface GameView {\n\t\n\t\n\t/**\n\t * Prints the current board with the state of each cells.\n\t */\n\tvoid display();\n\t\n\t/**\n\t * Prints information about the last move did in the current match.\n\t * @param playerIndex the index of the player\n\t * @param column the column of the last move.\n\t * @param row the row of the last move.\n\t */\n\tvoid lastMoveInfo(int playerIndex, int column, int row);\n\t\n\t/**\n\t * Prints the initial information before starting a new match.\n\t */\n\tvoid init();\n\t\n\t\n\t\n}",
"public void displayGame()\n { \n System.out.println(\"\\n-------------------------------------------\\n\");\n for(int i=3;i>=0;i--)\n {\n if(foundationPile[i].isEmpty())\n System.out.println(\"[ ]\");\n else System.out.println(foundationPile[i].peek());\n }\n System.out.println();\n for(int i=6;i>=0;i--)\n {\n for(int j=0;j<tableauHidden[i].size();j++)\n System.out.print(\"X\");\n System.out.println(tableauVisible[i]);\n }\n System.out.println();\n if(waste.isEmpty())\n System.out.println(\"[ ]\");\n else System.out.println(waste.peek());\n if(deck.isEmpty())\n System.out.println(\"[O]\");\n else System.out.println(\"[X]\");\n }",
"private void initialize() {\n frame = new JFrame();\n frame.setBounds(0, 0, 700, 700);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(true);\n\n // creating main content pane\n contentPane = new JPanel();\n contentPane.setLayout(null);\n contentPane.setBounds(0, 0, 700, 700);\n contentPane.setBackground(Color.DARK_GRAY);\n \n // repositioning window to center of screen\n frame.setLocationRelativeTo(null);\n\n // creating pane for searching and purchasing games\n searchPane = new JPanel();\n searchPane.setLayout(null);\n searchPane.setBounds(0, 0, 700, 700);\n searchPane.setBackground(Color.DARK_GRAY);\n searchPane.setVisible(false);\n \n // initializing pane for chaning account information\n accountPane = new AccountPanel(this, contentPane, dbMgr, username, rank);\n accountPane.setVisible(false);\n\n lblTheArmory = new JLabel(\"The Armory\");\n lblTheArmory.setForeground(new Color(0, 102, 255));\n lblTheArmory.setBounds(6, 6, 460, 100);\n lblTheArmory.setFont(new Font(\"Optima\", Font.BOLD, 82));\n contentPane.add(lblTheArmory);\n\n // adding action listener for button to change to search panel\n btnSearch = new JButton(\"Search Games\");\n btnSearch.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n searchPane.setVisible(true);\n contentPane.setVisible(false);\n \n lblBalance.setText(\"Wallet: $\" + String.format(\"%.2f\", dbMgr.userBalance(username))); // refreshing balance\n refreshGameSearchList(); // refreshing game search list\n }\n });\n btnSearch.setBounds(566, 116, 122, 29);\n btnSearch.setForeground(new Color(0, 102, 255));\n contentPane.add(btnSearch);\n\n // creating label for user and rank\n lblUserTitle = new JLabel(username + \" - \" + rank);\n lblUserTitle.setForeground(Color.LIGHT_GRAY);\n lblUserTitle.setFont(new Font(\"Lao MN\", Font.PLAIN, 16));\n lblUserTitle.setBounds(16, 115, 200, 16);\n contentPane.add(lblUserTitle);\n\n lblYourGames = new JLabel(\"Your Games\");\n lblYourGames.setForeground(Color.LIGHT_GRAY);\n lblYourGames.setFont(new Font(\"Lao MN\", Font.PLAIN, 46));\n lblYourGames.setBounds(28, 167, 291, 45);\n contentPane.add(lblYourGames);\n\n lblReviews = new JLabel(\"Reviews:\");\n lblReviews.setForeground(Color.LIGHT_GRAY);\n lblReviews.setFont(new Font(\"Lao MN\", Font.PLAIN, 30));\n lblReviews.setBounds(351, 465, 291, 45);\n contentPane.add(lblReviews);\n\n JScrollPane scrollPane = new JScrollPane();\n scrollPane.setBounds(16, 213, 303, 445);\n contentPane.add(scrollPane);\n\n currentGameScrollPane = new JScrollPane();\n currentGameScrollPane.setBounds(341, 213, 342, 240);\n contentPane.add(currentGameScrollPane);\n\n currentGamePane = new JTextPane();\n currentGameScrollPane.setViewportView(currentGamePane);\n currentGamePane.setFont(new Font(\"Lao MN\", Font.PLAIN, 16));\n currentGamePane.setEditable(false);\n currentGamePane.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n\n gamesListModel = new DefaultListModel<String>();\n gamesList = new JList();\n scrollPane.setViewportView(gamesList);\n this.refreshGameList();\n gamesList.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n gamesList.addListSelectionListener(new ListSelectionListener () {\n @Override\n public void valueChanged(ListSelectionEvent e) {\n int index = gamesList.getSelectedIndex();\n if(index > -1) {\n String gameName = gamesListModel.getElementAt(index).toString();\n List<String> gameInfo = dbMgr.getGameInfoByName(gameName);\n List<String> pubInfo = dbMgr.getPublisherByGame(gameInfo.get(0));\n String gameText = gameInfo.get(1) + \"\\n\\nGame ID: \" + gameInfo.get(0)\n + \"\\nRelease date: \" + gameInfo.get(2) + \"\\nReview release date: \"\n + gameInfo.get(3) + \"\\nPrice: $\" + gameInfo.get(4) + \"\\nPublisher: \"\n + pubInfo.get(1) + \"\\n\\f\\fLocation: \" + pubInfo.get(2) + \"\\nDeveloper(s): \";\n \n List<List<String>> developers = dbMgr.getDevelopersByGame(gameInfo.get(0));\n for(int i = 0; i < developers.size(); i++) {\n gameText += \"\\n\\f\\f\" + developers.get(i).get(1);\n }\n \n currentGamePane.setText(gameText);\n currentGamePane.setCaretPosition(0);\n refreshReviewList();\n }\n }\n });\n \n btnAccount = new JButton(\"Account\");\n btnAccount.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n contentPane.setVisible(false);\n accountPane.setVisible(true);\n }\n });\n btnAccount.setForeground(new Color(0, 102, 255));\n btnAccount.setBounds(566, 145, 122, 29);\n contentPane.add(btnAccount);\n\n lblSearchTheArmory = new JLabel(\"The Armory\");\n lblSearchTheArmory.setForeground(new Color(0, 102, 255));\n lblSearchTheArmory.setBounds(6, 6, 460, 100);\n lblSearchTheArmory.setFont(new Font(\"Optima\", Font.BOLD, 82));\n searchPane.add(lblSearchTheArmory);\n \n btnBack = new JButton(\"Back\");\n btnBack.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n searchPane.setVisible(false);\n contentPane.setVisible(true);\n \n refreshGameList();\n }\n });\n btnBack.setBounds(16, 116, 122, 29);\n btnBack.setForeground(new Color(0, 102, 255));\n searchPane.add(btnBack);\n\n lblSearchReviews = new JLabel(\"Reviews:\");\n lblSearchReviews.setForeground(Color.LIGHT_GRAY);\n lblSearchReviews.setFont(new Font(\"Lao MN\", Font.PLAIN, 30));\n lblSearchReviews.setBounds(351, 465, 291, 45);\n searchPane.add(lblSearchReviews);\n\n lblBalance = new JLabel(\"Wallet: $\" + String.format(\"%.2f\", dbMgr.userBalance(username)));\n lblBalance.setForeground(new Color(0, 102, 255));\n lblBalance.setBounds(500, 6, 200, 80);\n lblBalance.setFont(new Font(\"Optima\", Font.PLAIN, 24));\n searchPane.add(lblBalance);\n\n JScrollPane scrollPane4 = new JScrollPane();\n scrollPane4.setBounds(16, 213, 303, 445);\n searchPane.add(scrollPane4);\n\n searchGameScrollPane = new JScrollPane();\n searchGameScrollPane.setBounds(341, 213, 342, 240);\n searchPane.add(searchGameScrollPane);\n\n gamesSearchListModel = new DefaultListModel<String>();\n gamesSearchList = new JList();\n scrollPane4.setViewportView(gamesSearchList);\n this.refreshGameSearchList();\n\n gamesSearchList.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n gamesSearchList.addListSelectionListener(new ListSelectionListener () {\n @Override\n public void valueChanged(ListSelectionEvent e) {\n try{\n int index = gamesSearchList.getSelectedIndex();\n\n String gameName = gamesSearchListModel.getElementAt(index).toString();\n List<String> gameInfo = dbMgr.getGameInfoByName(gameName);\n List<String> pubInfo = dbMgr.getPublisherByGame(gameInfo.get(0));\n String gameText = gameInfo.get(1) + \"\\n\\nGame ID: \" + gameInfo.get(0)\n + \"\\nRelease date: \" + gameInfo.get(2) + \"\\nReview release date: \"\n + gameInfo.get(3) + \"\\nPrice: $\" + gameInfo.get(4) + \"\\nPublisher: \"\n + pubInfo.get(1) + \"\\n\\f\\fLocation: \" + pubInfo.get(2) + \"\\nDeveloper(s): \";\n \n List<List<String>> developers = dbMgr.getDevelopersByGame(gameInfo.get(0));\n for(int i = 0; i < developers.size(); i++) {\n gameText += \"\\n\\f\\f\" + developers.get(i).get(1);\n }\n \n currentSearchPane.setText(gameText);\n currentSearchPane.setCaretPosition(0);\n refreshSearchReviewList();\n }\n catch(Exception ex) {}\n }\n });\n\n JScrollPane scrollPane3 = new JScrollPane();\n scrollPane3.setBounds(341, 503, 342, 155);\n contentPane.add(scrollPane3);\n\n JScrollPane scrollPane6 = new JScrollPane();\n scrollPane6.setBounds(341, 503, 342, 155);\n searchPane.add(scrollPane6);\n \n currentSearchPane = new JTextPane();\n searchGameScrollPane.setViewportView(currentSearchPane);\n currentSearchPane.setFont(new Font(\"Lao MN\", Font.PLAIN, 16));\n currentSearchPane.setEditable(false);\n currentSearchPane.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n \n reviewSearchModel = new DefaultListModel<String>();\n reviewSearch = new JList();\n scrollPane6.setViewportView(reviewSearch);\n reviewSearch.setFont(new Font(\"Lao MN\", Font.PLAIN, 12));\n reviewSearch.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n\n\n btnBuy = new JButton(\"Buy\");\n btnBuy.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n float balance = dbMgr.userBalance(username);\n float price = dbMgr.gamePrice(getGame(gamesSearchList, gamesSearchListModel));\n if(balance > price) {\n int selection = JOptionPane.showConfirmDialog(frame,\n \"Are you sure you want to buy this game?\\n Resulting balance is $\" + String.format(\"%.2f\", (balance - price)));\n if(selection == 0) {\n dbMgr.updateBalance(username, balance-price);\n dbMgr.addGameToUser(username, dbMgr.getGameID(getGame(gamesSearchList, gamesSearchListModel)));\n lblBalance.setText(\"Wallet: $\" + String.format(\"%.2f\", dbMgr.userBalance(username)));\n refreshGameSearchList();\n }\n }\n\n else {\n JOptionPane.showMessageDialog(frame,\n \"Your funds are not sufficient, please add more funds to your wallet\",\n \"Insufficient Funds\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n }\n catch(Exception ex) {\n\n }\n }\n });\n btnBuy.setBounds(566, 116, 122, 29);\n btnBuy.setForeground(new Color(0, 102, 255));\n searchPane.add(btnBuy);\n\n reviewListModel = new DefaultListModel<String>();\n reviewList = new JList();\n scrollPane3.setViewportView(reviewList);\n reviewList.setFont(new Font(\"Lao MN\", Font.PLAIN, 12));\n reviewList.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n \n btnReviewGame = new JButton(\"Review game\");\n btnReviewGame.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if(gamesList.isSelectionEmpty()) {\n JOptionPane.showMessageDialog(contentPane,\n \"You have not selected a game to review.\",\n \"No game selected\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n \n JDialog reviewDlg = new JDialog();\n \n JPanel reviewPanel = new JPanel(new GridBagLayout());\n reviewPanel.setBounds(0, 0, 300, 300);\n reviewPanel.setBackground(Color.DARK_GRAY);\n GridBagConstraints cs = new GridBagConstraints();\n\n JLabel lblReviewTitle = new JLabel(\"Enter review title:\");\n lblReviewTitle.setFont(new Font(\"Optima\", Font.PLAIN, 20));\n lblReviewTitle.setForeground(new Color(0, 102, 255));\n cs.gridx = 0;\n cs.gridy = 0;\n cs.insets = new Insets(5, 10, 5, 10);\n cs.gridwidth = 1;\n cs.anchor = GridBagConstraints.CENTER;\n reviewPanel.add(lblReviewTitle, cs);\n \n JTextField tfReviewTitle = new JTextField();\n cs = new GridBagConstraints();\n cs.fill = GridBagConstraints.HORIZONTAL;\n cs.gridx = 0;\n cs.gridy = 1;\n cs.insets = new Insets(5, 10, 5, 10);\n cs.gridwidth = 1;\n cs.anchor = GridBagConstraints.CENTER;\n reviewPanel.add(tfReviewTitle, cs);\n \n JLabel lblRating = new JLabel(\"Enter rating:\");\n lblRating.setFont(new Font(\"Optima\", Font.PLAIN, 20));\n lblRating.setForeground(new Color(0, 102, 255));\n cs = new GridBagConstraints();\n cs.gridx = 0;\n cs.gridy = 2;\n cs.insets = new Insets(5, 10, 5, 10);\n cs.gridwidth = 1;\n cs.anchor = GridBagConstraints.CENTER;\n reviewPanel.add(lblRating, cs);\n \n SpinnerNumberModel ratingModel = new SpinnerNumberModel(0.0, 0.0, 10.0, 0.1);\n JSpinner rating = new JSpinner(ratingModel);\n cs = new GridBagConstraints();\n cs.fill = GridBagConstraints.HORIZONTAL;\n cs.gridx = 0;\n cs.gridy = 3;\n cs.insets = new Insets(5, 10, 5, 10);\n cs.gridwidth = 1;\n cs.anchor = GridBagConstraints.CENTER;\n reviewPanel.add(rating, cs);\n \n JButton btnAdd = new JButton(\"Add review\");\n btnAdd.setForeground(new Color(0, 102, 255));\n btnAdd.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n String gameID = dbMgr.getGameID(getGame(gamesList, gamesListModel));\n Date datePosted = new Date(Calendar.getInstance().getTime().getTime()); // getting current time\n \n dbMgr.insertReview(tfReviewTitle.getText(), (double)rating.getValue(), gameID, username, datePosted);\n\n reviewDlg.dispose();\n \n JOptionPane.showMessageDialog(contentPane,\n \"Review added successfully.\",\n \"Review added\",\n JOptionPane.INFORMATION_MESSAGE);\n \n refreshReviewList();\n }\n });\n \n cs = new GridBagConstraints();\n cs.gridx = 0;\n cs.gridy = 5;\n cs.insets = new Insets(5, 10, 5, 10);\n cs.gridwidth = 1;\n cs.anchor = GridBagConstraints.CENTER;\n reviewPanel.add(btnAdd, cs);\n \n reviewDlg.setBounds(0, 0, 300, 300);\n reviewDlg.setLocationRelativeTo(contentPane);\n \n reviewDlg.getContentPane().add(reviewPanel);\n reviewDlg.setVisible(true);\n }\n });\n btnReviewGame.setForeground(new Color(0, 102, 255));\n btnReviewGame.setBounds(566, 455, 122, 29);\n contentPane.add(btnReviewGame);\n \n setReviewButton();\n\n frame.getContentPane().add(contentPane);\n frame.getContentPane().add(searchPane);\n frame.getContentPane().add(accountPane);\n }",
"public static void displayStats(ArrayList<String> standings){\n\t\tString[] parts;\n\t\tdouble avg, gamesB; //variables for fucntion calls\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Teams: Wins: Loses: Pct: Games Behind:\" );\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tfor(String standing : standings){\n\t\t\tparts = standing.split(\"\\t\");\n\t\t\tavg = getAvg(standing);\n\t\t\tSystem.out.printf(\"%-15s%-8s%-8s%6.2f \\n \", parts[0], parts[1], parts[2], avg);\n\t\t}//end for \n//\t\tSystem.out.println(standings);\n\t}",
"private void buildDisplay() {\n\t\tColorMap map = new ColorMap();\n\n\t\tfor (int i = 1; i < MAX_COLORS; i++) {\n\t\t\tmap.mapColor(i, new Color(0, (int) (i + 127), 0));\n\t\t}\n\n\t\t// When noting, it is white\n\t\tmap.mapColor(0, Color.WHITE);\n\n\t\tValue2DDisplay displayGrass = new Value2DDisplay(rabbitSpace.getGrassSpace(), map);\n\n\t\tObject2DDisplay displayRabbits = new Object2DDisplay(rabbitSpace.getRabbitSpace());\n\t\tdisplayRabbits.setObjectList(rabbitList);\n\n\t\tdisplaySurf.addDisplayable(displayGrass, \"Grass\");\n\t\tdisplaySurf.addDisplayable(displayRabbits, \"Rabbits\");\n\n\t\trabbitsAndGrassInSpace.addSequence(\"Number of Rabbits in Space\", new RabbitsInSpace());\n\t\trabbitsAndGrassInSpace.addSequence(\"Amount of Grass\", new GrassInSpace());\n\t}",
"public void showPlayerStats(Player player) {\n pIcon = new JLabel(player.getName() + \"'s turn\");\n pIcon.setBackground(Color.white);\n pIcon.setBorder(BorderFactory.createEtchedBorder(0));\n pIcon.setBounds(icon.getIconWidth() + 10, 240, 150, 20);\n bPane.add(pIcon, new Integer(2));\n\n //JButton pRank;\n pRank = new JLabel(\"Rank: \" + player.getRank());\n pRank.setBackground(Color.white);\n pRank.setBorder(BorderFactory.createEtchedBorder(0));\n pRank.setBounds(icon.getIconWidth() + 10, 270, 150, 20);\n bPane.add(pRank, new Integer(2));\n\n //JButton pCredits;\n pCredits = new JLabel(\"Credits: \" + player.getCredits());\n pCredits.setBackground(Color.white);\n pCredits.setBorder(BorderFactory.createEtchedBorder(0));\n pCredits.setBounds(icon.getIconWidth() + 10, 300, 150, 20);\n bPane.add(pCredits, new Integer(2));\n\n //JButton pDollars;\n pDollars = new JLabel(\"Dollars: \" + player.getDollars());\n pDollars.setBackground(Color.white);\n pDollars.setBorder(BorderFactory.createEtchedBorder(0));\n pDollars.setBounds(icon.getIconWidth() + 10, 330, 150, 20);\n bPane.add(pDollars, new Integer(2));\n\n //JButton pRehearsalTokens;\n pRehearsalTokens = new JLabel(\"Rehears Toks: \" + player.getRehearsalTokens());\n pRehearsalTokens.setBackground(Color.white);\n pRehearsalTokens.setBorder(BorderFactory.createEtchedBorder(0));\n pRehearsalTokens.setBounds(icon.getIconWidth() + 10, 360, 150, 20);\n bPane.add(pRehearsalTokens, new Integer(2));\n\n //JButton pRoom;\n pRoom = new JLabel(\"Room: \" + player.getRoom());\n pRoom.setBackground(Color.white);\n pRoom.setBorder(BorderFactory.createEtchedBorder(0));\n pRoom.setBounds(icon.getIconWidth() + 10, 390, 150, 20);\n bPane.add(pRoom, new Integer(2));\n\n //JButton pRole;\n if (player.getRole() == null) {\n pRole = new JLabel(\"Role: None\");\n } else {\n pRole = new JLabel(\"Role: \" + player.getRole().getName());\n }\n pRole.setBackground(Color.white);\n pRole.setBorder(BorderFactory.createEtchedBorder(0));\n pRole.setBounds(icon.getIconWidth() + 10, 420, 150, 20);\n bPane.add(pRole, new Integer(2));\n\n pDays = new JLabel(\"Day: \"+Deadwood.getInstance().getDays());\n pDays.setBackground(Color.red);\n pDays.setOpaque(true);\n pDays.setBorder(BorderFactory.createEtchedBorder(0));\n pDays.setBounds(icon.getIconWidth() + 10, 480, 150, 20);\n bPane.add(pDays, new Integer(2));\n }",
"public void display(){\r\n System.out.println(\"The Vacancy Number is : \" + getVacancyNumber());\r\n System.out.println(\"The Designation is : \" + getDesignation());\r\n System.out.println(\"The Job Type is : \" + getJobType());\r\n }",
"public KiwiCountUI(Game game) \n {\n assert game != null : \"Make sure game object is created before UI\";\n this.game = game;\n setAsGameListener();\n initComponents();\n initIslandGrid();\n update();\n \n }",
"private void show() {\n System.out.println(team.toString());\n }",
"private void displayWinScreen() {\n if (crewState.getShip().getShieldLevel() > 0) {\n new EventPopupWindow(String.format(\"You Won:\\nYou managed to collect all %d parts.\\n\\n\"\n + \"Score: %d\",\n getShipPartsNeededCount(),\n getScore()));\n } else {\n new EventPopupWindow(String.format(\"Although your ship is toast, you technically \"\n + \"still won the game. None of the parts are useful anymore, you will die on \"\n + \"this planet, but according to the job description you did everything that \"\n + \"was required. At least you can say you followed the spec, right?\\n\\n\"\n + \"Score: %d\",\n getShipPartsNeededCount(),\n getScore()));\n }\n }",
"void showActiveGames() {\n\t\tif(gameHelper == null){return;}\n\t\tif (gameHelper.getApiClient().isConnected()) {\n\t\t\tIntent i = Games.TurnBasedMultiplayer.getInboxIntent(gameHelper\n\t\t\t\t\t.getApiClient());\n\t\t\tstartActivityForResult(i, RC_INVITATION_BOX);\n\t\t} else if (gameHelper.isConnecting()) {\n\t\t\tToast.makeText(getActivity(), R.string.wait_connecting_to_google,\n\t\t\t\t\tToast.LENGTH_LONG).show();;\n\t\t}\n\t}",
"public interface DisplayView {\n\n void displayGameScore(String score);\n\n void displayPlayerData(String playerData);\n\n void displayChance(int compareChance);\n\n void showWinToast();\n\n void showLoseToast();\n\n}",
"public static void main(String[] args)\n {\n int k;\n //create card table\n CardTable myCardTable = new CardTable(\"Card Table\", \n NUM_CARDS_PER_HAND, NUM_PLAYERS);\n myCardTable.setSize(800,600);\n myCardTable.setLocationRelativeTo(null);\n myCardTable.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //show the user everything\n myCardTable.setVisible(true);\n\n //create labels\n //create computerLabels\n for(k = 0; k < computerLabels.length; k++)\n {\n computerLabels[k] = new JLabel(GUICard.getBackCardIcon());\n }\n //create humanLabels\n for(k = 0; k < humanLabels.length; k++)\n {\n Card randCard = generateRandomCard();\n humanLabels[k] = new JLabel(GUICard.getIcon(randCard));\n }\n //create random playedCardLabels\n for(k = 0; k < playedCardLabels.length; k++)\n {\n Card randCard = generateRandomCard();\n playedCardLabels[k] = new JLabel(GUICard.getIcon(randCard));\n }\n //create playLabelText\n playLabelText[0] = new JLabel(\"Computer\", JLabel.CENTER);\n playLabelText[1] = new JLabel(\"You\", JLabel.CENTER);\n\n //add labels to panels\n //computerLabels\n for(k = 0; k < computerLabels.length; k++)\n {\n myCardTable.pnlComputerHand.add(computerLabels[k], \n BorderLayout.SOUTH);\n }\n //humanLabels\n for(k = 0; k < humanLabels.length; k++)\n {\n myCardTable.pnlHumanHand.add(humanLabels[k], \n BorderLayout.SOUTH);\n }\n //playedCardLabels\n for(k = 0; k < playedCardLabels.length; k++)\n {\n myCardTable.pnlPlayArea.add(playedCardLabels[k]);\n }\n //playLabelText\n for(k = 0; k < playedCardLabels.length; k++)\n {\n myCardTable.pnlPlayArea.add(playLabelText[k]);\n }\n\n //show the user everything\n myCardTable.setVisible(true);\n\n //info for CardGameFramework\n int numPacksPerDeck = 1;\n int numJokersPerPack = 0;\n int numUnusedCardsPerPack = 0;\n Card[] unusedCardsPerPack = null;\n\n //instantiate new CardGameFramework\n CardGameFramework newGame = new CardGameFramework(\n numPacksPerDeck, numJokersPerPack, numUnusedCardsPerPack, \n unusedCardsPerPack, NUM_PLAYERS, NUM_CARDS_PER_HAND);\n //deal cards \n if(!newGame.deal())\n {\n JOptionPane.showMessageDialog(myCardTable, \n \"There was an error with dealing\");\n }\n else //get new cards\n {\n //get the first hand dealt to use for player\n Hand newHand = newGame.getHand(0);\n //update JLabels\n for(k = 0; k < NUM_CARDS_PER_HAND; k++)\n {\n humanLabels[k].setIcon(GUICard.getIcon(newHand.inspectCard(k)));\n }\n }\n\n\n }",
"public void createAndShowButtons() {\n\t\t// repainting images to update after player was moved\n\t\t@SuppressWarnings(\"unused\")\n\t\tGraphics g = getGraphics();\n\t\tremoveAll();\n\t\trevalidate();\n\t\trepaint();\n\n\t\tsetLayout(new GridLayout(1, 6, 100, 0));\n\t\tJButton highscoreButton = new JButton(\"Highscore\");\n\t\tadd(highscoreButton);\n\n\t\t/*\n\t\t * Inner class listening to the highscore button being pressed.\n\t\t */\n\t\thighscoreButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, Scores.showHighscore());\n\t\t\t\tmapFrame.createAndShowGui();\n\t\t\t}\n\t\t});\n\n\t\tJLabel name = new JLabel(\n\t\t\t\t\"<html><div>Name: \" + player.getName() + \"<br> Difficulty: \" + map.getDifficulty() + \"</div></html>\");\n\t\tadd(name);\n\t\tJLabel skill = new JLabel(\n\t\t\t\t\"<html><div> Energy: \" + player.getEnergy() + \" <br> Skill: \" + player.getSkill() + \"</div></html>\");\n\t\tadd(skill);\n\t\tJLabel currentScore = new JLabel(\"<html><div> Score: \" + score.getScore() + \"<br> Key(s): \"\n\t\t\t\t+ player.getNumberOfKeys() + \"/\" + map.getNUMBER_OF_REQUIRED_KEYS() + \"</div></html>\");\n\t\tadd(currentScore);\n\t\tJLabel numberOfMoves = new JLabel(\"<html><div> Moves: \" + player.getNumberOfMoves() + \"<br> Prices: \"\n\t\t\t\t+ player.getWonPrices() + \"</div></html>\");\n\t\tadd(numberOfMoves);\n\t\tJButton quitButton = new JButton(\"Quit\");\n\t\tadd(quitButton);\n\n\t\t/*\n\t\t * Inner class listening to the Quit button being pressed.\n\t\t */\n\t\tquitButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Bye, come back soon!\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t});\n\t}",
"public void showResults(){\n customerCount = simulation.getCustomerCount();\n phoneCount = simulation.getPhoneCount();\n doorCount = simulation.getDoorCount();\n unhelpedCount = simulation.getUnhelped();\n totalCus.setText(\"Total number of Customers: \"+customerCount+\"\\t\\t\");\n doorCus.setText(\"Number of Door Customers: \"+doorCount+\"\\t\\t\");\n phoneCus.setText(\"Number of Phone Customers: \"+phoneCount+\"\\t\\t\");\n unhelped.setText(\"Number of Customers left unhelped at the end: \"+unhelpedCount);\n }",
"private void showMatch() {\n System.out.println(\"Player 1\");\n game.getOne().getField().showField();\n System.out.println(\"Player 2\");\n game.getTwo().getField().showField();\n }",
"public void displaySaveGameView()\n {\n System.out.println(\"\\nSave Game View selected.\");\n }",
"public void display_game_screen() {\n\n myScreen.screenMode = myScreen.DISPLAY_GAME_SCREEN;\n\n pushMatrix();\n\n calc_screen_translation();\n\n imageMode(CORNER);\n image(backgroundImage, 0, 0);\n\n // draw_grid();\n\n draw_game_assets();\n\n pacman.update(isPacmanUp, isPacmanDown, isPacmanLeft, isPacmanRight);\n ghost.update(isGhostUp, isGhostDown, isGhostLeft, isGhostRight);\n\n pacman.display();\n ghost.display();\n\n score.run(pacman.xTile, pacman.yTile, ghost.xTile, ghost.yTile);\n\n popMatrix();\n }",
"public void DisplayWithOneCard() {\n\t\tplayers = new ArrayList<Player>();\n\t\tplayer1 = new Player(\"Nick\");\n\t\tplayer2 = new Player(\"Ausitn\");\n\t\tplayers.add(player1);\n\t\tplayers.add(player2);\n\t\tgame = new GameState();\n\t\tgame.initializeServer(players);\n\t\tRulesEngine.setColour(game, String.valueOf(Type.BLUE));\n\t\t\n\t\tgame.setTurn(0);\n\t\t\n\t\t\n\t\t//create cards to be added to player's hand and target's display\n\t\tCard redCard = new Card(Type.RED, 4);\n\t\t\n\t\t//Give one of the players a riposte card to play\n\t\tCard riposte = new Card(Type.ACTION, Card.RIPOSTE);\n\t\tgame.getAllPlayers().get(0).getHand().add(riposte);\n\t\t\n\t\t//Give target player a custom display\n\t\tgame.getDisplay(1).add(redCard);\n\t}",
"private void show() {\n System.out.println(\"...................................................................................................................................................................\");\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n for(int i = 0; i < players.size(); i++) {\n if (state.getTurn() == i) {\n System.out.print(Color.PURPLE.getPrintColor());\n System.out.print((i+1) + \"- \" + players.get(i).toString());\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n }\n else {\n System.out.print(Color.CYAN.getPrintColor());\n System.out.print((i+1) + \"- \" + players.get(i).toString());\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n }\n }\n System.out.println();\n System.out.print(\"Direction: \");\n if (state.getDirection() == +1) {\n System.out.println(Color.PURPLE.getPrintColor() + \"clockwise ↻\");\n }\n else {\n System.out.println(Color.PURPLE.getPrintColor() + \"anticlockwise ↺\");\n }\n System.out.println(Color.RESET.getPrintColor() + \"Turn: \" + Color.PURPLE.getPrintColor() + players.get(state.getTurn()).getName() + Color.RESET.getPrintColor());\n System.out.println(currentCard.currToString());\n if (controls.get(state.getTurn()) instanceof PcControl) {\n System.out.print(players.get(state.getTurn()).backHandToString() + Color.RESET.getPrintColor());\n }\n else {\n System.out.print(players.get(state.getTurn()).handToString() + Color.RESET.getPrintColor());\n }\n }",
"public static void show() \r\n\t{\r\n\t\tJPanel panel = Window.getCleanContentPane();\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(SystemColor.inactiveCaption);\r\n\t\tpanel_1.setBounds(-11, 0, 795, 36);\r\n\t\tpanel.add(panel_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Over Surgery System\");\r\n\t\tpanel_1.add(lblNewLabel);\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\t\r\n\t\tJTable table = new JTable();\r\n\t\ttable.setBounds(25, 130, 726, 120);\r\n\t\tpanel.add(table);\r\n\t\t\r\n\t\tJLabel lblNewLabel1 = new JLabel(\"General Practictioner ID:\");\r\n\t\tlblNewLabel1.setBounds(25, 73, 145, 34);\r\n\t\tpanel.add(lblNewLabel1);\r\n\t\t\r\n\t\tJTextField textField = new JTextField();\r\n\t\ttextField.setBounds(218, 77, 172, 27);\r\n\t\tpanel.add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Ok\");\r\n\t\tbtnNewButton.setBounds(440, 79, 57, 23);\r\n\t\tpanel.add(btnNewButton);\r\n\t\t\r\n\t\tJLabel lblNurseAvability = new JLabel(\"Nurse ID:\");\r\n\t\tlblNurseAvability.setBounds(25, 326, 112, 14);\r\n\t\tpanel.add(lblNurseAvability);\r\n\t\t\r\n\t\tJTextField textField_1 = new JTextField();\r\n\t\ttextField_1.setColumns(10);\r\n\t\ttextField_1.setBounds(233, 326, 172, 27);\r\n\t\tpanel.add(textField_1);\r\n\t\t\r\n\t\t\r\n\t\tJButton button = new JButton(\"Ok\");\r\n\t\tbutton.setBounds(440, 328, 57, 23);\r\n\t\tpanel.add(button);\r\n\t\t\r\n\t\tJTable table_1 = new JTable();\r\n\t\ttable_1.setBounds(25, 388, 726, 120);\r\n\t\tpanel.add(table_1);\r\n\t}",
"public static void display() {\n\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println(\"* Omar Oraby\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* 900133379\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Salma Talaat *\");\n\t\tSystem.out.println(\"* 900161560\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Ahmed Elshafey *\");\n\t\tSystem.out.println(\"* 900131045 *\");\n\t\tSystem.out.println(\"* Programming in Java *\");\n\t\tSystem.out.println(\"* (2018 Fall) *\");\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println();\n }",
"public void display() {\n\t\t\n\t}",
"public void display() {\n\t\t\n\t}",
"private static void showMatchedDeckInfo() {\n }",
"private void displayAll() {\n\t\tif(inventoryObject.totalNumCards() == 0) { // checks to see if there are 0 StockIndexCards\n\t\t\tSystem.out.println(\"The Inventory is empty\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\tSystem.out.println(inventoryObject.displayAll());\n\t\tgetUserInfo();\n\t\t}\n\t}",
"private void setupCurrentGames() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(settingsBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }",
"public GameView() {\n initComponents();\n gameView(30, 30);\n }",
"public void displayAll() {\n\t\tSystem.out.println(\"Title \"+this.getTitle());\n\t\tSystem.out.println(\"Artist \"+this.getArtist());\n\t\tSystem.out.println(\"Genre \"+this.genre);\n\t}",
"public void print()\n\t{\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t\tSystem.out.println(\"[Lives: \" + lives + \"][Score: \" + score + \n\t\t\t\t\t\t\t\"][Time: \" + gameTime + \"]\");\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t}else\n\t\t\tSystem.out.println(\"Spawn a player ship to view game info\");\n\t}",
"void displayReport ()\n {\n\tStatFrame statTable;\n String winTitle = new String (\"Statistical Results Window\");\n\n\tif (use_xml) {\n\t try {\n\t\tVector data = new Vector (); data.add (modelReport);\n\t\tString xmlStr = XMLSerializer.serialize (data);\n\t\tstatTable = new StatFrame (winTitle, xmlStr);\n\t } catch (Exception e) {\n\t\ttrc.tell (\"displayReport\", e.getMessage ());\n\t\te.printStackTrace ();\n\t\treturn;\n\t }\n\t} else {\n statTable = new StatFrame (winTitle, modelReport);\n\t}; // if\n\n statTable.showWin ();\n\n }",
"public void display() {\n updateTileButtons();\n gridView.setAdapter(new CustomAdapter(tileButtons, columnWidth, columnHeight));\n }",
"public void displayPlayerWinnings()\n {\n for(int card = 0; card < playerCardsWon; card++)\n {\n System.out.println(playerWinnings[card].toString());\n }\n }",
"public void display()\r\n\t{\r\n\t\t\r\n\t}",
"public String showBoard() {\n return name + \"\\r\\n\" + myBoard.displayMyBoard() + \"\\r\\n\" + opponentsBoard.displayShotsTaken();\n }",
"void display() {\n System.out.println(id + \" \" + name);\n }",
"public void show() {\r\n\t\tshowMembers();\r\n\t\tshowFacilities();\r\n\t}",
"private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.println(\"8)Display Each Player's Hand Strength\");\n System.out.println(\"9)Declare Winner\");\n System.out.println(\"10)Exit\");\n }",
"public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}",
"private void displayListings() {\r\n\r\n //Lists all current listings\r\n System.out.println(\"Current Listings: \\n\" + cars.getListings());\r\n placeBid();\r\n }",
"public GameSummary(final com.google.gson.JsonObject infoFromServer) {\n\n data = infoFromServer;\n\n id = data.get(\"id\").getAsString();\n mode = data.get(\"mode\").getAsString();\n owner = data.get(\"owner\").getAsString();\n players = data.get(\"players\").getAsJsonArray();\n\n }",
"static void showHighScoreWindow( Frame owner, HighScore [] scores )\n\t{\n\t\tString message;\n\n\t\t// Special message if there are no high scores set\n\t\tif( scores[0] == null )\n\t\t\tmessage = \"No high scores.\";\n\t\telse\n\t\t\tmessage = \"\";\n\n\t\t// Show all non-null high scores\n\t\tfor( int i = 0; i < scores.length && scores[i] != null; i++ )\n\t\t\tmessage += scores[i].getName() + \": \" + scores[i].getScore() + \"\\n\";\n\n\t\tJOptionPane.showMessageDialog( owner, message, \"High Scores\",\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE );\n\t}",
"public GameDisplay(Game game) {\n _game = game;\n setPreferredSize(BOARD_WIDTH, BOARD_HEIGHT);\n }",
"void display() {\r\n\t\tSystem.out.println(id + \" \" + name);\r\n\t}",
"private void showCardStats() {\n TextView unlockedNum = findViewById(R.id.UnlockedNum);\n unlockedNum.setText(\n \" \" + this.masterDeck.retrieveUnlockedCardNames().size() +\n \" / \" + this.masterDeck.deckSize()\n );\n }",
"public void display() {\n String box = \"\\n+--------------------------------------------+\\n\";\n String header = \"| \" + name;\n String lvlStat = \"Lv\" + level;\n for (int i=0; i<42-name.length()-lvlStat.length(); i++) {\n header += \" \";\n }\n header += lvlStat + \" |\\n\";\n System.out.println(box + header + \"| \" + getHealthBar() + \" |\" + box);\n }",
"private void setInfoPlayers() {\n\n\t\t//PLAYER 1\n\t\tlblPlayer1name.setText(players.get(0).getName());\n\t\tlblCashP1.setText(\"\" + players.get(0).getMoney());\n\t\tlblBuildP1.setText(\"\" + players.get(0).getNumberBuildings());\n\t\tlblPropP1.setText(\"\" + players.get(0).getOwnproperties().size());\n\t\tlblPosP1.setText(\"\"+ players.get(0).getPosition());\n\n\t\t//PLAYER 2\n\t\tlblPlayer2name.setText(players.get(1).getName());\n\t\tlblCashP2.setText(\"\" + players.get(1).getMoney());\n\t\tlblBuildP2.setText(\"\" + players.get(1).getNumberBuildings());\n\t\tlblPropP2.setText(\"\" + players.get(1).getOwnproperties().size());\n\t\tlblPosP2.setText(\"\"+ players.get(1).getPosition());\n\t\t\n\t\tif(players.size() > 2){\n\t\t\t//PLAYER 3\n\t\t\tlblPlayerName3.setText(players.get(2).getName());\n\t\t\tlblCashP3.setText(\"\" + players.get(2).getMoney());\n\t\t\tlblBuildP3.setText(\"\" + players.get(2).getNumberBuildings());\n\t\t\tlblPropP3.setText(\"\" + players.get(2).getOwnproperties().size());\n\t\t\tlblPosP3.setText(\"\"+ players.get(2).getPosition());\n\n\t\t\tif(players.size() > 3){\n\t\t\t\t//PLAYER 4\n\t\t\t\tlblPlayerName4.setText(players.get(3).getName());\n\t\t\t\tlblCashP4.setText(\"\" + players.get(3).getMoney());\n\t\t\t\tlblBuildP4.setText(\"\" + players.get(3).getNumberBuildings());\n\t\t\t\tlblPropP4.setText(\"\" + players.get(3).getOwnproperties().size());\n\t\t\t\tlblPosP4.setText(\"\"+ players.get(3).getPosition());\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Override\r\n public void display() { //implements abstract display() method from Division.java\r\n System.out.println(\"Division Name: \" + getDivisionName());\r\n System.out.println(\"Account Number: \" + getAccountNumber());\r\n\r\n System.out.println(\"Country: \" + getCountry());\r\n System.out.println(\"Language Spoken: \" + getLanguageSpoken() + \"\\n\");\r\n\r\n }",
"public void displayRoundUI() {\n\n\t\tif (!(roundList.isEmpty())){\n\t\t\tfor (JLabel item: roundList){\n\t\t\t\testimationGame.getContentPane().remove(item);\n\t\t\t}\n\t\t\troundList.clear();\n\t\t}\n\n\t\tJLabel lblRound = new JLabel(\"Round: \" + round);\n\n springLayout.putConstraint(SpringLayout.WEST, lblRound, 10, SpringLayout.WEST,\n estimationGame.getContentPane());\n lblRound.setForeground(Color.WHITE);\n springLayout.putConstraint(SpringLayout.NORTH, lblRound, 50, SpringLayout.NORTH,\n estimationGame.getContentPane());\n lblRound.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\n roundList.add(lblRound);\n estimationGame.getContentPane().add(lblRound);\n estimationGame.validate();\n\t estimationGame.repaint();\n\t}",
"@Override\n\tpublic void show() {\n\t\tcontainer = new Table();\n//\t\tcontainer.background(skin.getDrawable(\"darkenWorld\"));\n\t\tcontainer.setSize(width, height);\n\t\t\n\t\tdarken = new Image(skin.getDrawable(\"darkenWorld\"));\n\t\tdarken.setSize(width, height);\n\t\t\n\t\ttimer.start();\n\t\t\n\t\ttrainingBag = new TrainingBag(width, height);\n\t\t\n\t\tBitmapFont font = new BitmapFont(Gdx.files.internal(\"fontSmall-export.fnt\"),\n\t\t Gdx.files.internal(\"fontSmall-export.png\"), false);\n\t\t\n\t\t\n\t\tLabelStyle labelStyle = new LabelStyle();\n\t\tlabelStyle.font = font;\n\t\t\n\t\ttimeLeft = new Label(timeString + \" 20\", labelStyle);\n\t\ttimeLeft.setPosition(width - timeLeft.getWidth(), height - timeLeft.getHeight());\n\t\t\n\t\thits = new Label(hitsString + \"0\" + amountString, labelStyle);\n\t\thits.setPosition(0, height - timeLeft.getHeight());\n\t\t\n\t\t\n\t\tcontainer.row();\n\t\tcontainer.add(trainingBag);\n\t\t\n\t\tgroup.addActor(darken);\n\t\tgroup.addActor(container);\n\t\tgroup.addActor(timeLeft);\n\t\tgroup.addActor(hits);\n\t}",
"private void resultsScreen(Stage stage, String[][] leaderboard) {\n\t\t\n\t\t//A HBox is prepared, with an int to determine spacing between the nodes within it later.\n\t\tHBox h = new HBox(30);\n\t\t\n\t\t//A VBox array of length 3 is prepared, as well as a Label array, with three values given\n\t\t//to it immediately. \n\t\tVBox[] v = new VBox[3];\n\t\tLabel[] title = {new Label(\"Name\"), new Label(\"Incorrect Guesses\"), new Label(\"Time\")};\n\t\t\n\t\t//A separate VBox is prepared.\n\t\tVBox v2;\n\t\t\n\t\t//For loop adding all the names from the leaderboard array into one VBox, then\n\t\t//adding all the incorrectGuesses to a second VBox, then adding all the times\n\t\t//to the third VBox. By doing it this way, names and scores are much more better\n\t\t//aligned as columns than if each player and their scores were put into HBoxes.\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tv[i] = new VBox();\n\t\t\tv[i].getChildren().add(title[i]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tLabel l = new Label(leaderboard[j][i]);\n\t\t\t\tv[i].getChildren().add(l);\n\t\t\t}\n\t\t\th.getChildren().add(v[i]);\n\t\t}\n\t\t\n\t\th.setAlignment(Pos.BASELINE_CENTER);\n\t\t\n\t\t//A label is now created and put into the second VBox, along with the HBox just created.\n\t\t//This results in the statement being placed below the entire leaderboard without issues.\n\t\tLabel endStatement = new Label(\"Press any key to start a new game or escape to exit.\");\n\t\tendStatement.setWrapText(true);\n\t\tendStatement.setPrefWidth(200);\n\t\tendStatement.setMinWidth(200);\n\t\tendStatement.setMaxWidth(200);\n\n\t\tv2 = new VBox(2,h,endStatement);\n\t\tv2.setAlignment(Pos.TOP_CENTER);\n\t\tgroup = new Group(v2);\n\t\t\n\t\tscene = new Scene(group,300,300,Color.LIGHTGREY);\n\t\tstage.setScene(scene);\n\t\tstage.setResizable(false);\n\t\tstage.setTitle(\"Hangman\");\n\t\tstage.show();\n\t\t\n\t\tscene.setOnKeyReleased(new EventHandler<KeyEvent>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void handle(KeyEvent e) {\n\t\t\t\t\n\t\t\t\tif(e.getCode()==KeyCode.ESCAPE) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tclient.close();\n\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t}\n\t\t\t\t\tstage.close();\n\t\t\t\t}else {\n\t\t\t\t\tstart(stage);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"void display(){\n System.out.println(\"Name:\"+name);\n System.out.println(\"Age:\"+age);\n System.out.println(\"Faculty:\"+faculty);\n System.out.println(\"Department:\"+department);\n System.out.println(\"IsHandicapped:\"+isHandicapped);\n }",
"private void displayTeams() {\n SwapTeamMembersController.calculateTeamConstraints();\n System.out.println(\"\\nTeams formed are:\");\n for (Team team: Team.allTeams) {\n System.out.println(Constraint.ANSI_GREEN + \"\\nThe team ID\\t\\t\\t\\t: \" + team.getTeamID() + Constraint.ANSI_RESET +\n \"\\nThe Project Assigned\\t: \" + team.getProjectAssigned().getProjectId() + \": \" + team.getProjectAssigned().getProjectTitle() +\n \"\\nThe team's fitness is\\t: \" + team.getTeamFitness());\n System.out.print(\"\\nThe Students IDs of students in this team are: \\n\");\n for (Student student: team.getStudentsInTeam()) {\n System.out.print(student.getId() + \"\\tName: \" + student.getFirstName() + \"\\t\\tGender : \" + student.getGender() + \"\\t\\tExperience : \" + student.getExperience() + \" years\\n\");\n }\n int j = 1;\n System.out.println(\"\\nConstraints met are (with weightage):\");\n for (Constraint c: team.getConstraintsMet()) {\n System.out.println(j + \". \" + c.getConstraintDescription() + \"\\t: \" + c.getWeightAge());\n j++;\n }\n }\n }",
"public void display() {\n\t}",
"public void display(){\r\n \r\n System.out.println(\"\\n\\nHigh Population City\");\r\n highPop.display();\r\n System.out.println(\"Capital City\");\r\n capital.display();\r\n System.out.print(\"State Name: \" + stateName + \"\\nState Population: \" + statePop + \"\\n------------\");\r\n }",
"public void showGameBoard(Player player){\n\t\tFeatherBoardAPI.removeScoreboardOverride(player, \"build-battle-lobby\");\n\n\t\tFeatherBoardAPI.showScoreboard(player,\"build-battle-game\");\n\t}",
"public void showHome() {\n playlistIsRunning = false;\n displaySortBox();\n this.removeAll();//removing all components in center part\n addingSongToPlaylist = false;\n removeSongFromPlaylist = false;\n //initializing grids:\n int gridx = 0;\n int gridy = 0;\n //creating album label to show at top of albums:\n JLabel albumLabel = new JLabel(\"Albums:\");\n albumLabel.setForeground(new Color(219, 219, 219));\n constraints.gridy = gridy;\n constraints.gridx = gridx;\n this.add(albumLabel, constraints);\n gridy++;//going to next line\n //showing album panels:\n for (AlbumPanel albumPanel : albumPanels.values()) {\n constraints.gridx = gridx;\n constraints.gridy = gridy;\n this.add(albumPanel, constraints);\n if (gridx < 3)\n gridx++;\n else {\n gridy++;\n gridx = 0;\n }\n }\n //creating playList label to show at top of playLists:\n gridx = 0;\n gridy++;\n constraints.gridx = gridx;\n constraints.gridy = gridy;\n JLabel playListLabel = new JLabel(\"PlayLists:\");\n playListLabel.setForeground(new Color(219, 219, 219));\n this.add(playListLabel, constraints);\n gridy++;\n for (PlayListPanel playListPanel : playListPanels.values()) {\n constraints.gridy = gridy;\n constraints.gridx = gridx;\n this.add(playListPanel, constraints);\n if (gridx < 3)\n gridx++;\n else {\n gridy++;\n gridx = 0;\n }\n }\n //updating center part of center panel:\n this.repaint();\n this.revalidate();\n }",
"public void displayComputerWinnings()\n {\n for(int card = 0; card < computerCardsWon; card++)\n {\n System.out.println(compWinnings[card].toString());\n }\n }",
"public void displayGui(WizardCardGraph wct) {\r\n\t\tDimension d = new Dimension(500,1200);\r\n\t\tCardGraphGui cardTreeGui = new CardGraphGui(wct);\r\n\t\tcardTreeGui.setSize(d);\r\n\t\tcardTreeGui.setPreferredSize(d);\r\n\t\tcardTreeGui.setMinimumSize(d);\r\n\t\tcardTreeGui.setMaximumSize(d);\r\n\t\tcardTreeGui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tcardTreeGui.setVisible(true);\r\n\r\n\t}",
"public NewGameGUI(){\n\t \n super(\"Start New Game\");\n try{\n \n ObjectInputStream groupInput;\n ObjectInputStream courseInput;\n \n \n \t groupInput = new ObjectInputStream(\n \t\t\t Files.newInputStream(Paths.get(\"group.ser\")));\n \t courseInput = new ObjectInputStream(\n \t\t\t Files.newInputStream(Paths.get(\"course.ser\")));\n \t Group group = (Group) groupInput.readObject();\n \t GolfCourse course = (GolfCourse) courseInput.readObject();\n \t if (groupInput != null && courseInput != null){\n \t\t groupInput.close();\n \t\t courseInput.close();\n \t }\n \t\t \n \t \n \n \n String[] stringArray = new String[group.getPlayers().size()];\n \n for(int i = 0; i < group.getPlayers().size(); i++){\n \t String str = String.format(\"Please enter %s 's scores seperated by a space\", group.getPlayers().get(i).getName());\n \t stringArray[i] = JOptionPane.showInputDialog(str);\n }\n \n \n FlowLayout layout = new FlowLayout(); \n Container container = getContentPane(); // get container to layout\n setLayout(layout);\n \n \n // set up nassau and register listener\n JButton nassau = new JButton(\"Score Nassau\");\n add(nassau); // add left button to frame\n nassau.addActionListener(\n new ActionListener() // anonymous inner class\n {\n // process nassau event\n @Override \n public void actionPerformed(ActionEvent event){\n \t\n \tNassau game = new Nassau(course, group);\n \t\n \tfor (int i = 0; i < stringArray.length; i++){\n \t\tint[] integerArray = new int[18];\n \t\tScanner input = new Scanner(stringArray[i]);\n \t\tfor (int x = 0; x < 18; x++){\n \t\t\tintegerArray[x] = input.nextInt();\n \t\t}\n \t\tgame.setIndividualScore(i, integerArray);\n \t}\t\n \t\n \tgame.calculateGameScore();\n \tint[][] points= game.getNassauPointsPerPlayer();\n \tString string =\"\";\n \tfor(int i = 0; i < group.getPlayers().size(); i++){\n \t\tstring = string + String.format(\"Player %s points: Front Nine: %d Back Nine: %d %n\",\n \t\t\t\tgroup.getPlayers().get(i).getName(), points[i][0], points[i][1] );\n \t}\n \tJOptionPane.showMessageDialog(null, string);\n }\n }\n );\n \n // set up stableFord button and register listener\n JButton stableFord = new JButton(\"Score Stableford Game\");\n add(stableFord); // add center button to frame\n stableFord.addActionListener(\n new ActionListener() // anonymous inner class\n {\n // process newGame button event\n @Override\n public void actionPerformed(ActionEvent event){\n \t\n \tStableFord game = new StableFord(course, group);\n \t\n \tfor (int i = 0; i < stringArray.length; i++){\n \t\tint[] integerArray = new int[18];\n \t\tScanner input = new Scanner(stringArray[i]);\n \t\tfor (int x = 0; x < 18; x++){\n \t\t\tintegerArray[x] = input.nextInt();\n \t\t}\n \t\tgame.setIndividualScore(i, integerArray);\n \t} \n \t\n \tgame.calculateGameScore();\n \tint [] points = game.getArrayScore();\n \tString string =\"\";\n \tfor(int i = 0; i < group.getPlayers().size(); i++){\n \t\tstring = string + String.format(\"Player %s points: %d %n\",\n \t\t\t\tgroup.getPlayers().get(i).getName(), points[i] );\n \t}\n \tJOptionPane.showMessageDialog(null, string);\n }\n }\n ); \n \n }\n catch(IOException e){\n \t System.err.println(\"Error accessing file\");\n \t System.exit(1);\n }\n catch(ClassNotFoundException cnf){\n \t System.err.println(\"Invalid Object type. Terminating\");\n }\n }",
"public void display(CardPack pack, ArrayList<Card> winning, int score, int slotDelay, int startDelay, int sleep) {\n if(sleep <= 0) {\n sleep = 1;\n }\n\n GUINode first = this.createChain(pack, winning, slotDelay, sleep);\n if(first == null) {\n System.out.println(\"Internal corruption error\");\n return;\n }\n this.printWelcome();\n int nanoStartDelay = startDelay * 1000 / sleep;\n first.start(nanoStartDelay);\n this.printSlots(first, sleep);\n this.printScore(score);\n }",
"public void updateGamePanel() {\n\t\tthis.removeAll();\n\t\t\n\t\tButton2 buttonTip = new Button2(\"DICA\", 75, 100, 100, 100);\n\t\tbuttonTip.addActionListener(e -> Controller.game.showTip());\n\t\tthis.add(buttonTip);\n\t\t\n\t\tButton2 menu = new Button2(\"Menu\", 200, 100, 100, 100);\n\t\tmenu.addActionListener(e -> this.frame.setVisible(\"menu\"));\n\t\tthis.add(menu);\n\t\t\n\t\tthis.drawButtons();\n\t\t\n\t\t//Adding labels\n\t\tthis.add(frame.getWordShow());\n\t\tthis.add(frame.getLifeShow());\n\t\t\n\t\tthis.frame.add(this);//Adding the gameJPanel to the frame\n\t}",
"@Override\n public void display() {\n display.display();\n }",
"@Override\n public void run() {\n PlayByPlay playByPlay = new PlayByPlay();\n gameleaderboardList.setAdapter(new GameScreenLeaderBoardList(GameScreenActivity.this, playersListtemp));\n gameleaderboardList.setDividerHeight(1);\n currentPlayerName.setText(Utility.user.getUserName());\n currentPlayerPoints.setText(getGamePoints());\n playerListSize.setText(\"(\" + playersList.size() + \")\");\n gsUserRank.setText(\"#\" + userObject.getUserRank());\n\n noOfPlaysInHeader.setText(getUserNoOfPlays() + \"\");\n noOfPlaysInAddPlays.setText(\"Balance: \" + getUserNoOfPlays() + \" plays\");\n\n }",
"public void updateDisplay(FitnessProgram fitnessProg) {\n\n\t\tdisplay.setText(\"\");\n\t\tString sTime = \"\";\n\t\tString cName = \"\";\n\t\tString tName = \"\";\n\t\tint start = 0;\n\t\tStringBuilder startTimes = new StringBuilder(sTime);\n\t\tStringBuilder classNames = new StringBuilder(cName);\n\t\tStringBuilder tutorNames = new StringBuilder(tName);\n\n\t\tfitnessClass = fitnessProg.allFClasses();\n\t\tint i;\n\t\tfor (i = 0; i < fitnessClass.length; i++)\t{\n\n\t\t\tif (fitnessClass[i] == null) {\n\t\t\t\tstart = i+9;\n\t\t\t\tcName = \"Available\";\n\t\t\t\ttName = \"\";\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tstart = fitnessClass[i].getStartTime();\n\t\t\t\tcName = fitnessClass[i].getClassName();\n\t\t\t\ttName = fitnessClass[i].getTutorName();\n\n\t\t\t}\n\t\t\tsTime = String.format(\"%7d - %d\", start, start+1);\n\t\t\tcName = String.format(\"%12s\", cName);\n\t\t\ttName = String.format(\"%12s\", tName);\n\t\t\tstartTimes.append(sTime);\n\t\t\tclassNames.append(cName);\n\t\t\ttutorNames.append(tName);\n\t\t}\n\n\t\tdisplay.append(startTimes.toString() + \"\\n\");\n\t\tdisplay.append(classNames.toString() + \"\\n\");\n\t\tdisplay.append(tutorNames.toString() + \"\\n\");\n\t}",
"public void displayInfo(){\n\t\tint planeNum=0;\n\t\t\n\t\tfor(int i=0; i<planes.size(); i++){\t// loop to know the number of planes\n\t\t\tif(planes.get(i)!=null){\n\t\t\t\tplaneNum++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tPlane[] infoBoard = new Plane[planeNum];\t// create the array that will collect all the planes\n\t\t\n\t\tint j=0;\n\t\tfor(int i=0; i<planes.size(); i++){\t\t// put the planes in the array\n\t\t\tif(planes.get(i)!=null){\n\t\t\t\tinfoBoard[j] = planes.get(i);\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\tString[][] grid = new String[17][infoBoard.length + 1];\t// new matrix\n\t\t\n\t\t//característiques a mostrar fixes\n\t\tgrid[0][0] = \"Id..................\";\n\t\tgrid[1][0] = \"License plate.......\";\n\t\tgrid[2][0] = \"Brand...............\";\n\t\tgrid[3][0] = \"Model...............\";\n\t\tgrid[4][0] = \"Capacity............\";\n\t\tgrid[5][0] = \"Type................\";\n\t\tgrid[6][0] = \"X...................\";\n\t\tgrid[7][0] = \"Y...................\";\n\t\tgrid[8][0] = \"Height..............\";\n\t\tgrid[9][0] = \"Speed...............\";\n\t\tgrid[10][0] = \"Landing gear........\";\n\t\tgrid[11][0] = \"Engine..............\";\n\t\tgrid[12][0] = \"Crew................\";\n\t\tgrid[13][0] = \"Passengers..........\";\n\t\tgrid[14][0] = \"Missiles............\";\n\t\tgrid[15][0] = \"Origin..............\";\n\t\tgrid[16][0] = \"Destination.........\";\n\t\t\n\t\t// loop to fill the plane's data\n\t\tfor(int i=0; i<infoBoard.length; i++){\n\t\t\tPlane selection = infoBoard[i]; \t// each turn will fill the data of one plane\n\t\t\t\n\t\t\tint id= i + 1;\n\t\t\t// with the getters, the information is collected\n\t\t\tgrid[0][id] = String.valueOf(id);\n\t\t\t\n\t\t\tif(selection.isEncrypted()==false){\n\t\t\t\t\n\t\t\t\tgrid[1][id] = selection.getLicensePlate();\n\t\t\t\tgrid[2][id] = selection.getBrand();\n\t\t\t\tgrid[3][id] = selection.getModel();\n\t\t\t\tgrid[4][id] = String.valueOf(selection.getCapacity());\n\t\t\t\t\n\t\t\t\tif(selection.getClass().equals(\"CommercialPlane\")){\n\t\t\t\t\tgrid[5][id] = \"Commercial\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[5][id] = \"Military\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[6][id]=String.valueOf(selection.getCoordinates().getX());\n\t\t\t\tgrid[7][id]=String.valueOf(selection.getCoordinates().getY());\n\t\t\t\tgrid[8][id]=String.valueOf(selection.getHeight());\n\t\t\t\tgrid[9][id]=String.valueOf(selection.getSpeed());\n\t\t\t\t\n\t\t\t\tif(selection.isLandingGear()==true){\n\t\t\t\t\tgrid[10][id] = \"On\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[10][id] = \"Off\";\n\t\t\t\t}\n\t\t\t\tif(selection.isEngine()==true){\n\t\t\t\t\tgrid[11][id] = \"On\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[11][id] = \"Off\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[12][id] = String.valueOf(selection.getSpeed());\n\t\t\t\t\n\t\t\t\tif(selection instanceof CommercialPlane){\n\t\t\t\t\tgrid[13][id] = String.valueOf(selection.getPassengers());\n\t\t\t\t}else{\n\t\t\t\t\tgrid[13][id] = \"No\";\n\t\t\t\t}\n\t\t\t\tif(selection instanceof CommercialPlane){\n\t\t\t\t\tgrid[14][id] = \"No\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[14][id] = String.valueOf(selection.getMissiles());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[15][id]=String.valueOf(selection.getOrigin());\n\t\t\t\tgrid[16][id]=String.valueOf(selection.getDestination());\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tgrid[1][id] = \"ENCRYPTED\";\n\t\t\t\tgrid[2][id] = \"\";\n\t\t\t\tgrid[3][id] = \"\";\n\t\t\t\tgrid[4][id] = \"\";\n\t\t\t\tgrid[5][id] = \"\";\n\t\t\t\tgrid[6][id] = \"\";\n\t\t\t\tgrid[7][id] = \"\";\n\t\t\t\tgrid[8][id] = \"\";\n\t\t\t\tgrid[9][id] = \"\";\n\t\t\t\tgrid[10][id] = \"\";\n\t\t\t\tgrid[11][id] = \"\";\n\t\t\t\tgrid[12][id] = \"\";\n\t\t\t\tgrid[13][id] = \"\";\n\t\t\t\tgrid[14][id] = \"\";\n\t\t\t\tgrid[15][id] = \"\";\n\t\t\t\tgrid[16][id] = \"\";\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// each piece of data has to be in a 10 character string\n\t\tString unit = \" \";\n\t\tint stringLength = 11;\n\t\t\n\t\tfor(int a=0; a<grid.length; a++){\n\t\t\tfor(int b=1; b<grid[a].length; b++){\n\t\t\t\tint realLength = grid[a][b].length(); // current length of the string\n\t\t\t\tint spaces = stringLength - realLength;\t// spaces to fill until the 10th character\n\t\t\t\tString pack = \"\";\n\t\t\t\t\n\t\t\t\tfor(int c=0; c<=spaces; c++){\n\t\t\t\t\tpack = pack + unit;\n\t\t\t\t}\n\t\t\t\tgrid[a][b] = grid[a][b]+ pack;\t// add spaces\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// show information\n\t\tfor(int x=0; x<grid.length; x++){\n\t\t\tfor(int y=0; y<grid[x].length; y++){\n\t\t\t\tSystem.out.print(grid[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}",
"private void initialize() {\n frame = new JFrame();\n frame.getContentPane().setBackground(Color.BLACK);\n frame.setBackground(Color.BLACK);\n frame.setResizable(false);\n frame.setBounds(100, 100, 350, 300);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setTitle(\"Final Score\");\n frame.getContentPane().setLayout(null);\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n JLabel lblFinalScoreText = new JLabel(\"Final score:\");\n lblFinalScoreText.setHorizontalAlignment(SwingConstants.LEFT);\n lblFinalScoreText.setForeground(Color.WHITE);\n lblFinalScoreText.setFont(new Font(\"Quantico\", Font.BOLD, 18));\n lblFinalScoreText.setBounds(24, 24, 130, 54);\n frame.getContentPane().add(lblFinalScoreText);\n\n JLabel lblFinalScoreCount = new JLabel(\"\");\n lblFinalScoreCount.setFont(new Font(\"Bitstream Vera Sans Mono\", Font.BOLD, 30));\n lblFinalScoreCount.setForeground(Color.WHITE);\n lblFinalScoreCount.setHorizontalAlignment(SwingConstants.LEFT);\n lblFinalScoreCount.setBounds(197, 12, 187, 80);\n frame.getContentPane().add(lblFinalScoreCount);\n lblFinalScoreCount.setText(String.valueOf(engine.getFinalScore()));\n \n JLabel lblShipName = new JLabel(\"Ship's Name:\");\n lblShipName.setFont(new Font(\"Ubuntu Light\", Font.BOLD, 13));\n lblShipName.setForeground(Color.WHITE);\n lblShipName.setBounds(24, 163, 158, 25);\n frame.getContentPane().add(lblShipName);\n \n JLabel lblNumDays = new JLabel(\"Number of days:\");\n lblNumDays.setFont(new Font(\"Ubuntu Light\", Font.BOLD, 13));\n lblNumDays.setForeground(Color.WHITE);\n lblNumDays.setBounds(24, 212, 146, 15);\n frame.getContentPane().add(lblNumDays);\n \n JLabel lblWonGame = new JLabel(\"\");\n lblWonGame.setHorizontalAlignment(SwingConstants.LEFT);\n lblWonGame.setForeground(Color.WHITE);\n lblWonGame.setBounds(24, 88, 314, 43);\n String template = \"<html>\";\n if (engine.hasFoundEnoughPieces()) {\n lblWonGame.setForeground(Color.GREEN);\n \ttemplate += \"You have collected all the ship pieces<br>\";\n \ttemplate += \"Congratulations, you won the game!\";\n }\n else {\n lblWonGame.setForeground(Color.RED);\n \ttemplate += \"You did not collect all the ship pieces<br>\";\n \ttemplate += \"better luck next time!\";\n }\n template += \"</html>\";\n lblWonGame.setText(template);\n frame.getContentPane().add(lblWonGame);\n \n JLabel shipNameDetail = new JLabel(\"\");\n shipNameDetail.setForeground(Color.WHITE);\n shipNameDetail.setBounds(197, 168, 141, 15);\n shipNameDetail.setText(engine.getSpaceshipName());\n frame.getContentPane().add(shipNameDetail);\n \n JLabel days = new JLabel(\"\");\n days.setForeground(Color.WHITE);\n days.setBounds(197, 212, 66, 15);\n days.setText(String.valueOf(engine.getCurrDay() - 1));\n frame.getContentPane().add(days);\n }",
"protected void display() {\n\r\n\t}",
"private void displayResults() {\r\n\t\tGImage results;\r\n\t\tif(mehran == null ) {\r\n\t\t\tresults = new GImage(\"WinImage.png\");\r\n\t\t\tresults.scale(.7);\r\n\t\t} else {\r\n\t\t\tresults = new GImage(\"LoseImage.png\");\r\n\t\t\tresults.scale(1.5);\r\n\t\t}\r\n\t\tresults.setLocation((getWidth() - results.getWidth()) / 2.0, (getHeight() - results.getHeight()) / 2.0);\r\n\t\tadd(results);\r\n\t}",
"public GamesPanel() {\n initComponents();\n }",
"public void ScreenComps(){\n if (listaPartidas.getSize() == 0) {\n\n nothing = new JLabel();\n nothing.setBounds(240,110,300,70);\n nothing.setText(\"No previous games registered\");\n nothing.setFont(new Font(\"Comic Sans MS\",Font.BOLD,28));\n nothing.setForeground(Color.BLACK);\n\n int posx = 5;\n for (int i = 0; i < 10; i++, posx += 75) {\n label_list[i] = new JLabel(new ImageIcon(\"Cartas/Card-Template.png\"));\n label_list[i].setBounds(posx, 330, 75, 100);\n this.screen.add(label_list[i]);\n }\n\n this.screen.add(nothing);\n\n } else{\n\n current = listaPartidas.getInicio();\n ListaDoble partida = (ListaDoble) current.getDato();\n currentTurn = partida.getInicio();\n String turno = (String) partida.getInicio().getDato();\n String info[] = turno.split(\"#\");\n System.out.println(info);\n int infoIn = 4;\n int posx = 5;\n for (int i = 0; i < 10; i++, infoIn += 1, posx += 75) {\n label_list[i] = new JLabel(new ImageIcon(info[infoIn]));\n label_list[i].setBounds(posx, 330, 75, 100);\n this.screen.add(label_list[i]);\n }\n\n game = new JLabel();\n game.setBounds(220,40,300,70);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n game.setFont(new Font(\"Comic Sans MS\",Font.BOLD,28));\n game.setForeground(Color.BLACK);\n\n decktitle = new JLabel();\n decktitle.setBounds(30,290,300,50);\n decktitle.setText(\"Hand was:\");\n decktitle.setFont(new Font(\"Comic Sans MS\",Font.BOLD,28));\n decktitle.setForeground(Color.BLACK);\n\n HP = new JLabel();\n HP.setBounds(30,100,300,50);\n HP.setText(\"HP: \"+info[2]);\n HP.setFont(new Font(\"Comic Sans MS\",Font.BOLD,28));\n HP.setForeground(Color.BLACK);\n\n mana = new JLabel();\n mana.setBounds(30,170,300,50);\n mana.setText(\"Mana: \"+info[3]);\n mana.setFont(new Font(\"Comic Sans MS\",Font.BOLD,28));\n mana.setForeground(Color.BLACK);\n\n action = new JLabel();\n action.setBounds(30,230,800,60);\n action.setText(\"Action: \"+info[1]);\n action.setFont(new Font(\"Comic Sans MS\",Font.BOLD,28));\n action.setForeground(Color.BLACK);\n\n next_turn = new JButton();\n next_turn.setText(\"Next Turn\");\n next_turn.setBounds(460,470,150,50);\n next_turn.addActionListener(this::actionPerformed);\n\n next_game = new JButton();\n next_game.setText(\"Next Game\");\n next_game.setBounds(620,470,150,50);\n next_game.addActionListener(this::actionPerformed);\n\n prev_game = new JButton();\n prev_game.setText(\"Prev Game\");\n prev_game.setBounds(10,470,150,50);\n prev_game.addActionListener(this::actionPerformed);\n\n prev_turn = new JButton();\n prev_turn.setText(\"Prev Turn\");\n prev_turn.setBounds(180,470,150,50);\n prev_turn.addActionListener(this::actionPerformed);\n\n this.screen.add(decktitle);\n this.screen.add(game);\n this.screen.add(HP);\n this.screen.add(mana);\n this.screen.add(action);\n this.screen.add(next_turn);\n this.screen.add(next_game);\n this.screen.add(prev_turn);\n this.screen.add(prev_game);\n\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n }\n prev_game.setEnabled(false);\n prev_turn.setEnabled(false);\n\n }\n go_back = new JButton();\n go_back.setText(\"Go Back\");\n go_back.setBounds(320,470,150,50);\n go_back.addActionListener(this::actionPerformed);\n\n\n this.screen.add(go_back);\n }",
"@Override\n\tprotected void UpdateUI() {\n\t\tFineModulationDisplay(FineModulation);\n\t\tAutoGreaseDisplay(AutoGrease);\n\t\tQuickcouplerDisplay(Quickcoupler);\n\t\tRideControlDisplay(RideControl);\n\t\tBeaconLampDisplay(BeaconLamp);\n\t\tMirrorHeatDisplay(MirrorHeat);\n//\t\tFNKeyDisplay(ParentActivity.LockEntertainment);\n\t}",
"private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}",
"public void showStatus(){\n\t\tjlMoves.setText(\"\"+moves);\n\t\tjlCorrectMoves.setText(\"\"+correctMoves);\n\t\tjlWrongMoves.setText(\"\"+wrongMoves);\n\t\tjlOpenMoves.setText(\"\"+openMoves);\n\t\tjlNumberGames.setText(\"\"+numberGames);\n\t}"
] | [
"0.6589836",
"0.6522584",
"0.6166559",
"0.59025",
"0.5891953",
"0.5873874",
"0.5813032",
"0.5810456",
"0.5786001",
"0.5776129",
"0.57471263",
"0.5732338",
"0.5728625",
"0.5700771",
"0.56770056",
"0.56765926",
"0.5658908",
"0.56467634",
"0.5637093",
"0.56303084",
"0.56176573",
"0.5565211",
"0.5554214",
"0.5550774",
"0.5550762",
"0.55130696",
"0.5510489",
"0.55077",
"0.5489077",
"0.5488098",
"0.54785514",
"0.5477994",
"0.54589707",
"0.5449951",
"0.5449927",
"0.5449604",
"0.5447173",
"0.5446361",
"0.5422796",
"0.5418946",
"0.5415074",
"0.5400813",
"0.5394176",
"0.5389607",
"0.53779083",
"0.5369479",
"0.53682655",
"0.53656554",
"0.5362391",
"0.5359362",
"0.5359362",
"0.5357019",
"0.5355029",
"0.5322388",
"0.5319973",
"0.53170216",
"0.5314406",
"0.5313332",
"0.5305925",
"0.52940226",
"0.52915275",
"0.5282326",
"0.5279426",
"0.5274578",
"0.5274518",
"0.5271467",
"0.52672756",
"0.5266148",
"0.52610403",
"0.52564746",
"0.5253633",
"0.5253395",
"0.5253252",
"0.5250222",
"0.52477616",
"0.5247185",
"0.5245083",
"0.52421457",
"0.52390516",
"0.52383256",
"0.52352077",
"0.5225941",
"0.52258104",
"0.52199155",
"0.5216123",
"0.52144074",
"0.5213716",
"0.5211554",
"0.5209551",
"0.5208352",
"0.5205349",
"0.52049536",
"0.5204539",
"0.52013826",
"0.52004313",
"0.5198078",
"0.51967263",
"0.5188567",
"0.51871115",
"0.5175434",
"0.51702136"
] | 0.0 | -1 |
The submit method redirects to home page. | @Override
public ActionForward submit(ActionMapping mapping, BaseForm form,
String operation, HttpServletRequest request,
HttpServletResponse response) {
AuditUtil.getInstance().writeLog(
AuditUtil.FILE_TYPE_G4G,
new StringBuffer(this.getClass().getName()).append(
G4GConstants.COLON_WITH_SPACES)
.append(DataUtil.getCurrentMethod()).append(
G4GConstants.DASHES).append(
G4GConstants.SUBMIT_STARTS).toString());
return mapping.findForward(G4GConstants.HOMEPAGE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onSubmit()\n {\n Page page = ((DccdSession)Session.get()).getRedirectPage(RegistrationPage.class);\n if (page != null)\n {\n \tlogger.debug(\"Back to Page class: \" + page.getClass().getSimpleName());\n \tsetResponsePage(page);\n }\n else\n {\n \t// Homepage seems a good fallback\n \tsetResponsePage(HomePage.class);\n }\n }",
"@Override\n public void Submit() {\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tSubmit();\n\t\t\t\tfinish(); \n\t\t\t}",
"public MainPage submitForm() {\n LOGGER.info(\"Clicked the button 'LOGIN'\");\n clickOnElement(loginButtonLocator);\n return MainPage.Instance;\n }",
"public void redirectOnSubmit(HttpServletResponse response) throws ServletException, IOException {\n\n String url = \"/chef/addEmployee\";\n response.sendRedirect(url);\n }",
"public void submit() {\n driver.findElement(SUBMIT_SELECTOR).click();\n }",
"@Step\r\n\tpublic void clickSubmit() {\r\n\t\tLOGGER.info(\"Clicking submit\");\r\n\t\tspeedoSubmit.click();\r\n\t}",
"@Override\n protected void onSubmit() {\n getCommander().resetUserHistory( getUser().getUsername(), true );\n redirectHere();\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n if (request.getParameter(\"signUpButton\") != null) {\n response.sendRedirect(\"SignUpView\");\n } else {\n loginFormValidation(request, response);\n }\n }",
"public static void pressSubmit(){\n DriverManager.driver.findElement(Constans.SUBMIT_BUTTON_LOCATOR).click();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnSubmit_click(e);\n\t\t\t}",
"private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }",
"protected void submitAction() {\n\t\ttry {\n\t\t\tString username = userField.getText();\n\t\t\tAbstractAgent loggedClient = parent.getAgent().login(username, new String(passField.getPassword()));\n\t\t\tif (loggedClient instanceof AdminMS) {\n\t\t\t\tAdminUI adminUI = new AdminUI((AdminMS) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tadminUI.run();\n\t\t\t} else if (loggedClient instanceof IUser) {\n\t\t\t\tUserUI userUI = new UserUI((IUser) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tuserUI.run();\n\t\t\t}\n\t\t\tif (loggedClient != null)\n\t\t\t\tparent.dispose();\n\t\t} catch (LoginException e) {\n\t\t\tmessageLabel.setText(e.getMessage());\n\t\t} catch (RemoteException e) {\n\t\t\tJOptionPane.showMessageDialog(parent, e);\n\t\t}\n\t}",
"@Test\n @Ignore\n public void testSubmit() {\n System.out.println(\"submit\");\n String sub = \"\";\n String obj = \"\";\n String rid = \"\";\n String pmid = \"\";\n String doi = \"\";\n String pdate = \"\";\n String inst = \"\";\n HttpServletResponse response = null;\n HomeController instance = new HomeController();\n instance.submit(sub, obj, rid, pmid, doi, pdate, inst, response);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public NewcommunityPage submitKo() {\n driver.findElement(nextLocator).click();\r\n\r\n // Return a new page object representing the destination. Should the login page ever\r\n // go somewhere else (for example, a legal disclaimer) then changing the method signature\r\n // for this method will mean that all tests that rely on this behaviour won't compile.\r\n return new NewcommunityPage(driver); \r\n\t}",
"public TeacherPage submit() {\n clickSaveButton();\n return this;\n }",
"void SubmitButton() {\r\n\t\tint checker = Accounts.checkUser(username.getText(), password.getText());\r\n\t\tif(checker == -1) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tAdminScreen adminScreen = new AdminScreen();\r\n\t\t}\r\n\t\telse if(checker >= 0) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tStudentScreen studentScreen = new StudentScreen(checker);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: username \"\r\n\t\t\t\t\t+ \"and/or password is incorrect.\");\r\n\t\t\tpassword.setText(\"\");\r\n\t\t\tusername.setText(\"\");\r\n\t\t}\r\n\t\t\r\n\t}",
"private void onClickSignIn(){\n if(checkValidation()){\n //if Validation is ok\n submitForm();\n }\n else{\n //Something went wrong...\n Toast.makeText(LauncherActivity.this, \"Form contains error!\", Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n\t\t\tpublic void onSuccess() {\n\t\t\t\tToast.makeText(MainActivity.this, \"submit success\", Toast.LENGTH_LONG).show();\n\t\t\t}",
"@Override\r\n public void onSubmit() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n \r\n // check if any field is missing\r\n boolean hasAllFields = true;\r\n if (this.projectName == null) {\r\n hasAllFields = false;\r\n error(\"Project name is required.\");\r\n }\r\n if (this.ownerName == null) {\r\n hasAllFields = false;\r\n error(\"Owner name is required.\");\r\n }\r\n if (this.password == null) {\r\n hasAllFields = false;\r\n error(\"Password is required.\");\r\n }\r\n if (this.svnUrl == null) {\r\n hasAllFields = false;\r\n error(\"The repository URL is required.\");\r\n }\r\n \r\n if (hasAllFields) {\r\n try {\r\n // check if the owner is a valid hackystat user\r\n String host = app.getSensorBaseHost();\r\n SensorBaseClient client = new SensorBaseClient(host, this.ownerName, this.password);\r\n client.authenticate();\r\n }\r\n catch (SensorBaseClientException e) {\r\n error(\"Owner is not valid Hackystat user or password does not match.\");\r\n }\r\n \r\n try {\r\n // check if the svn url is a valid google host url\r\n WebConversation wc = new WebConversation();\r\n WebResponse response = wc.getResponse(this.svnUrl);\r\n if (!response.getTitle().contains(\"Revision\")) {\r\n error(\"The repository URL is not a valid Google host repository URL.\");\r\n }\r\n }\r\n catch (Exception e) {\r\n error(\"Cannot connect to the repository URL.\");\r\n }\r\n \r\n // if there is no error, create the project and go back to the home page\r\n if (!hasError() && createProject()) {\r\n // redirect to the projects page\r\n setResponsePage(ProjectsPage.class);\r\n }\r\n else {\r\n error(\"The project cannot be created. \" +\r\n \"A project with the same name already exists, or some information are invalid.\");\r\n }\r\n }\r\n \r\n }",
"@RequestMapping(value=\"/loginForm\", method = RequestMethod.POST)\n\tpublic String homePOST(){\n\n\t\treturn \"loginForm\";\n\t}",
"@Override\n\tprotected final void onSubmit()\n\t{\n\t}",
"public static Result submitParkingWatch(){\n \tForm<ParkingLocation> filledForm = Form.form(ParkingLocation.class).bindFromRequest();\n \tParkingLocation location = filledForm.get();\n \t\n \t// handle new information\n// \tParkingLocation.logNew(location);\n \t\n \t// render the splash page again\n \treturn ok(index.render(byline, maidForm, parkingForm));\n \t\n }",
"@Override\n public void onClick(View view) {\n if ( checkValidation () )\n submitForm();\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == submit) {\n int score = answerCheck();\n try {\n Submit submitButton = new Submit(userid, user.getText(), totalScore.getText(), score);\n setVisible(false);\n } catch (SQLException ex) {\n Logger.getLogger(Play.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"@RequestMapping(value=\"/addEmployeeSubmit\", method=RequestMethod.POST)\n /* Add submitted new employee details to database, and then redirect to listEmployees */\n public String addEmployeeSubmit(Employee employee) {\n employeeservice.saveEmployee(employee);\n\n return \"redirect:/employee/listEmployees\";\n }",
"@FXML\n\tprivate void submitForm()\n\t{\n \tSystem.out.println(\"submitted\");\n \tsubmit.setDisable(true);\n \tif ( file_path.getText().isEmpty() )\n \t{\n \t\tfinal DirectoryChooser fileChooser = new DirectoryChooser(); \n \t\tStage stage = new Stage();\n \t\tstage.setTitle(\"Choose Directory\");\n \t\t\n \t\tFile folder = fileChooser.showDialog(stage);\n \t\toutput.openFile(folder.toString() + \"\\\\OverwatchGames.csv\");\n \t\tfile_path.setText(folder.toString() + \"\\\\OverwatchGames.csv\");\n \t}\n \telse\n \t{\n \t\tSystem.out.println(\"File Path: \" + file_path.getText());\n \t}\n \toutput.outputResults( mainApp.getPlayers(),\n \t\t\tmainApp.getHeros(), \n \t\t\tmainApp.getMap(), \n \t\t\tmainApp.getTimerList());\n \tsubmit.setDisable(false);\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n HttpSession session = request.getSession();\r\n String admin = session.getAttribute(\"admin\").toString();\r\n String referer = request.getHeader(\"Referer\");\r\n \r\n String question = request.getParameter(\"question\").trim();\r\n String answer = request.getParameter(\"answer\").toString();\r\n answer = answer.replaceAll(\"\\n\",\"<br />\");\r\n String action = request.getParameter(\"action\");\r\n if(action.equals(\"edit\")){\r\n int faqID = Integer.parseInt(request.getParameter(\"faqID\"));\r\n Faqs faqEdit = faqsFacade.find(faqID);\r\n \r\n faqEdit.setAnswer(answer);\r\n faqEdit.setQuestion(question);\r\n faqsFacade.edit(faqEdit);\r\n request.setAttribute(\"redirectMessage\", \"FAQs edited successful!\");\r\n }else if(action.equals(\"insert\")){\r\n Faqs faqInsert = new Faqs();\r\n faqInsert.setAnswer(answer);\r\n faqInsert.setQuestion(question);\r\n faqsFacade.create(faqInsert);\r\n request.setAttribute(\"redirectMessage\", \"FAQs insert successful!\");\r\n }\r\n request.setAttribute(\"redirectLink\", referer);\r\n request.getRequestDispatcher(\"../redirect.jsp\").forward(request, response);\r\n } catch (NumberFormatException | ServletException | IOException e) {\r\n response.sendRedirect(\"login.jsp\");\r\n return; // <--- Here.\r\n }\r\n processRequest(request, response);\r\n }",
"@Jpf.Action(forwards = { @Jpf.Forward(name = \"success\", action=\"verVacantes\"), @Jpf.Forward(name = \"start\", path = \"index.jsp\")})\n\tpublic Forward postularse() throws Exception{\n\t\tForward forward = new Forward(\"success\");\n\t\t\n\t\tif(getCurrentUser()==null){\n\t\t\tforward = new Forward(\"start\");\n\t\t\tforward.addActionOutput(\"errors\", \"Necesitas registrarte para postularte a una vacante.\");\n\t\t\treturn forward;\n\t\t}else{\n\t\t\tif ( getCurrentUser().getCurriculum()!=null && \n\t\t\t\t ( StringUtils.isNotEmpty(getCurrentUser().getCurriculum().getStatusSchool()) &&\n\t\t\t\t StringUtils.isNotEmpty(getCurrentUser().getCurriculum().getNameEmp1()) &&\t\n\t\t\t\t StringUtils.isNotEmpty(getCurrentUser().getCurriculum().getMoney())\n\t\t\t\t )\n\t\t\t){\n\t\t\t\tString nombreCompleto = getCurrentUser().getName()+\" \"+getCurrentUser().getLastname()+\" \"+getCurrentUser().getSecondlastname();\n\t\t\t\tif(getRequest().getParameter(\"idVacante\")!= null){\n\t\t\t\t\tUcmUtil.postularVacante(nombreCompleto, getCurrentUser().getEmail(), \n\t\t\t\t\t\t\tgetRequest().getParameter(\"idVacante\"), getCurrentUser().getCurriculum(), getRequest());\n\t\t\t\t\tforward.addActionOutput(\"mensajeOk\", getRequest().getParameter(\"idVacante\"));\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tforward = new Forward(\"success\");\n\t\t\t\tforward.addActionOutput(\"errors\", \"Necesitas Actualizar tu Curiculum antes de postularte.\");\n\t\t\t}\n\t\t}\n\t\treturn forward;\n\t}",
"public static void goToFormPage() throws MalformedURLException {\n\t\tCommonUtils.homeFabClick();\n\t\tHomepageAction.select_dialog_list(\"Form\");\n\t}",
"public void submitButtonPushed() throws IOException {\n\n if (vehicleRegistration.getText().isEmpty() || driverLicense.getText().isEmpty()\n || insuranceProvider.getText().isEmpty() || insuranceNumber.getText().isEmpty()) {\n\n Validator.errorBox(\"Incorrect Info\",\n \"Please Enter Valid Information\");\n\n } else {\n\n Stage stage = main.MainLogin.getPrimaryStage();\n\n Parent signInParent = FXMLLoader.load(getClass()\n .getResource(\"/backgroundcheck/BackGroundCheck.fxml\"));\n\n stage.setScene(new Scene(signInParent));\n\n stage.show();\n }\n }",
"private void submitForm() {\n this.setDisable(true);\n clearErrorMessage();\n if(validateForm()) {\n CharSequence chars = passwordField.getCharacters();\n String username = usernameField.getText();\n this.controller.validateLoginCredentials(username, chars);\n }\n this.setDisable(false);\n }",
"public void submit()\n\t{\n\t\tString trackCsv = trackCsvInput.getText();\n\t\tString trackName = trackNameInput.getText();\n\t\t\n\t\tRadioButton selectedButton = (RadioButton) toggleColors.getSelectedToggle();\n\t\tString color = selectedButton.getText().toUpperCase();\n\t\t\n\t\tif (addTrack(trackName, trackCsv, color)) \n\t\t{\n\t\t\tStage currStage = (Stage) trackCsvInput.getScene().getWindow();\n\t\t\tcurrStage.close();\n\t\t\tCTC.ctcController.displayTrack();\n\t\t\tCTC.ctcController.displayLegend();\n\t\t}\n\t\telse\n\t\t\terrorMessage.setVisible(true);\n\t}",
"public void clickOnSubmit() {\r\n\r\n\t\treportStep(\"About to click on Submit button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(submitButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Submit button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\tclickAfterWait(submitButton);\r\n\t\t\treportStep(\"Failed to click on the Submit button \", \"INFO\");\r\n\r\n\t\t}\r\n\t}",
"private void submitForm() {\n // Build list params\n List<NameValuePair> list = new ArrayList<>();\n list.add(new BasicNameValuePair(\"tag\", AppConfig.TAG_LOGIN));\n list.add(new BasicNameValuePair(\"username\", editTextLogin.getText().toString()));\n list.add(new BasicNameValuePair(\"password\", editTextPassword.getText().toString()));\n\n ConnectionTask connectionTask = new ConnectionTask(this, list);\n connectionTask.execute();\n }",
"private void submit_attendance() {\n }",
"public SubmitPage(final PageParameters parameters) {\n\n Form form = new Form(\"form\");\n orgLabel = new TextField<String>(\"orgLabel\", new Model<String>(\"\"));\n message = new TextArea<String>(\"message\", new Model<String>(\"\"));\n form.add(orgLabel);\n form.add(message);\n form.add(new Button(\"button\")\n {\n @Override\n public void onSubmit()\n {\n String orgLabelString = orgLabel.getModelObject();\n String messageString = message.getModelObject();\n \n SessionFactory factory = OrganizationManager.getSessionFactory();\n Session session = factory.openSession();\n Transaction tx = session.beginTransaction();\n Query query = session.createQuery(\"from Organization where orgLabel = ?\");\n query.setParameter(0, orgLabelString);\n List<Organization> organizations = query.list();\n Organization organization;\n if (organizations.size() == 0)\n {\n organization = new Organization();\n organization.setParentOrganization((Organization)session.get(Organization.class, 1));\n organization.setOrgLabel(orgLabelString);\n session.save(organization);\n }\n else\n {\n organization = organizations.get(0);\n }\n SubmitterProfile submitterProfile = organization.getPrimaryProfile();\n if (submitterProfile == null)\n {\n submitterProfile = new SubmitterProfile();\n submitterProfile.setProfileLabel(\"HL7\");\n submitterProfile.setProfileStatus(SubmitterProfile.PROFILE_STATUS_TEST);\n submitterProfile.setOrganization(organization);\n submitterProfile.setDataFormat(SubmitterProfile.DATA_FORMAT_HL7V2);\n submitterProfile.setTransferPriority(SubmitterProfile.TRANSFER_PRIORITY_NORMAL);\n session.save(submitterProfile);\n organization.setPrimaryProfile(submitterProfile);\n }\n tx.commit();\n StringWriter stringWriter = new StringWriter();\n PrintWriter out = new PrintWriter(stringWriter);\n try \n {\n // TODO IncomingServlet.processStream(false, out, session, submitterProfile, messageString);\n }\n catch (Exception e)\n {\n e.printStackTrace(out);\n }\n out.close();\n results = stringWriter.toString();\n }\n });\n add(new Label(\"results\"));\n add(form);\n }",
"public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}",
"private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}",
"public LoginPage submitLoginExpectingFailure() {\n // This is the only place that submits the login form and expects the\n // destination to be the login page due to login failure.\n driver.findElement(signInButton).submit();\n\n // Return a new page object representing the destination. Should the user ever\n // be navigated to the home page after submiting a login with credentials\n // expected to fail login, the script will fail when it attempts to instantiate\n // the LoginPage PageObject.\n return new LoginPage(driver);\n }",
"public static Result submit() {\n Pallet pallet = palletForm.bindFromRequest().get();\n SetOfArticle sOA = setOfArticleForm.bindFromRequest().get();\n pallet.setTimeEntrance(new Date());\n sOA.setPallet(pallet);\n Ebean.beginTransaction();\n try {\n pallet.getTag1().save();\n pallet.getTag2().save();\n pallet.save();\n sOA.save();\n Ebean.commitTransaction();\n } catch (PersistenceException e) {\n flash(\"danger\", \"Pallet couldn't be created.\");\n return badRequest(newForm.render(palletForm, setOfArticleForm));\n } finally {\n Ebean.endTransaction();\n }\n flash(\"success\", \"Pallet with IDs: \" + pallet.getTag1().getId()+ \", \" + pallet.getTag2().getId() +\n \" and \" + sOA.getAmount() + \" pieces of \" +\n Article.find.byId(sOA.getArticle().getId()).getName() + \" added to database!\");\n return redirect(controllers.routes.PalletView.list());\n }",
"private void btnSubmit_click(ActionEvent e) {\n\t\tString subjectName=txtSubjectName.getText();\n\t\tString STATUS=txtSTATUS.getText();\n\n\t\t//为空判断\n\t\tif(SysFun.isNullOrEmpty(subjectName)) {\n\t\t\tlblMsg.setText(\"提示:用户名不得为空!\");\n\t\t\treturn;\n\t\t}\n\t\tif(STATUS==null || STATUS.isEmpty()) {\n\t\t\tlblMsg.setText(\"提示:教室号不得为空!\");\n\t\t\treturn;\n\t\t}\n\t\t\n//\t\tLong or=0L;\n//\t\tif(rdoNo.isSelected()) {\n//\t\t\tor=0L;\n//\t\t}else if(rdoYes.isSelected()) {\n//\t\t\tor=1L;\n//\t\t}\n\n\t\tSubject item=subjectService.loadByName(subjectName);\n\t\t\n\t\tif(item!=null) {\n\t\t\tlblMsg.setText(\"提示:该管理员账号已存在!\");\n\t\t\treturn;\n\t\t}\n\t\tSubject bean=new Subject();\n\t\tbean.setSubjectName(subjectName);\n\t\tbean.setSTATUS(STATUS);\n\t\t\n\t\tLong result=0L;\n\t\tString errMsg=null;\n\t\ttry {\n\t\tresult=subjectService.insert(bean);\n\t\t}catch(Exception ex) {\n\t\t\terrMsg=ex.getMessage();\n\t\t}\n\t\t\n\t\tif(result>0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"添加成功!\");\n\t\t\tif(subjectListFrm!=null) {\n\t\t\t\tsubjectListFrm.btnReset_click(null);\n\t\t\t\tsubjectListFrm.setVisible(true);\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"添加失败!\");\n\t\t}\n\n\t\t\n\t\tif(subjectListFrm!=null) {\n\t\t\tsubjectListFrm.btnReset_click(null); \n\t\t\tsubjectListFrm.setVisible(true);\n\t\t}\n\t\tthis.dispose();\n\t}",
"private void handleSubmit(){\n // Check if the fields are the properly inserted (no label displayed and no empty fields)\n if (!invalidBirthdayLabel.isVisible() && !invalidConfirmPasswordLabel.isVisible() &&\n !invalidEmailLabel.isVisible() && !invalidNameLabel.isVisible() && !invalidPasswordLabel.isVisible() &&\n !invalidSurnameLabel.isVisible() && !surnameTF.getText().equals(\"\") && !usernameTF.getText().equals(\"\") &&\n !passwordTF.getText().equals(\"\") && !nameTF.getText().equals(\"\") && !emailTF.getText().equals(\"\") &&\n !confirmPasswordTF.getText().equals(\"\") && !country.getValue().toString().equals(\"\")\n ) {\n InvalidFormEntryLabel resultLabel;\n // Get the Date\n LocalDate localDate = birthdayDP.getValue();\n Instant instant = Instant.from(localDate.atStartOfDay(ZoneId.systemDefault()));\n Date date = Date.from(instant);\n\n User user = new User(\n false,\n surnameTF.getText(),\n nameTF.getText(),\n usernameTF.getText(),\n passwordTF.getText(),\n emailTF.getText(),\n date,\n country.getValue().toString());\n\n // Create a connection to MongoDB and insert the user\n UserManager userManager = UserManagerFactory.buildManager();\n\n resultLabel = new InvalidFormEntryLabel(\"\", 800, 600, false);\n try {\n if(userManager.register(user)) {\n resultLabel.setText(\"Sign up successfully done\");\n resultLabel.setVisible(true);\n resultLabel.setStyle(\"-fx-background-color: green;\");\n\n // ADD IT ALSO IN NEO4J\n UserNetworkManager userNetworkManager = UserNetworkManagerFactory.buildManager();\n userNetworkManager.addUser(user);\n }\n } catch (Exception e) {\n resultLabel.setText(\"Username already exists\");\n resultLabel.setVisible(true);\n }\n\n\n sceneNodes.getChildren().add(resultLabel);\n }\n\n }",
"public WorkFlowResult processActionGradeSubmitAndEditAnotherVersion() {\n\tif (!AssignmentAuthoringBean.checkCsrf(csrfToken))\n return WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE;\n\n WorkFlowResult saveResult = processActionGradeSubmit();\n if (WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE.equals(saveResult)) {\n return WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE;\n }\n WorkFlowResult togo = WorkFlowResult.INSTRUCTOR_FEEDBACK_SAVE_AND_EDIT_PREFIX;\n togo.setNextSubVersion(getNextVersionIdToEdit());\n return togo;\n }",
"public void submitAction(ActionEvent actionEvent) {\r\n try {\r\n connecting();\r\n userName = usernameSignIn.getText();\r\n password = passwordSignIn.getText();\r\n userMain.setUsername(userName);\r\n userLoginChecking=new UserLoginChecking(userName,password);\r\n new WriteThreadClient(clientNetworkUtil,userLoginChecking);\r\n // clientNetworkUtil.write(userLoginChecking);\r\n new ReadThreadClient(clientNetworkUtil,userMain);\r\n\r\n }catch (Exception e)\r\n {\r\n System.out.println(\"Error loading Home page\");\r\n }\r\n }",
"protected abstract void onFormSubmit(DataAccessRule rule);",
"public String submitText();",
"public String OnSubmit() {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tUser user1 = context.getApplication().evaluateExpressionGet(context, \"#{user}\", User.class);\r\n\t\t\r\n\t\t// test purposes, log results to console\r\n\t\tSystem.out.println(\"First Name is: \" + user1.getFirstName());\r\n\t\tSystem.out.println(\"Last Name: \" + user1.getLastName());\r\n\t\t\r\n\t\t// prints message to console to tell us which business service selected in beans.xml\r\n\t\tservice.test();\r\n\t\t\r\n\t\t// start timer when log is clicked\r\n\t\t\r\n\t\ttimer.setTimer(5000);\r\n\t\t\r\n\t\t// put user back in context\r\n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"user\", user1);\r\n\t\t\r\n\t\t// show next page\r\n\t\treturn \"Response.xhtml\";\r\n\t}",
"public void setSubmit(String submit) {\n this.submit = submit;\n }",
"public void submit(ActionEvent actionEvent) {\n if(checkFields()) {\n try {\n newStudent = new Student(firstName.getText(), lastName.getText(),birthday.getValue(),selectImage.getImage());\n activities();\n System.out.println(\"new student: \" + newStudent);\n studentList.add(newStudent);\n viewStudent(actionEvent);\n } catch (IllegalArgumentException | IOException e){\n errorDisplay.setText(e.getMessage());\n }\n }\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }",
"@PostMapping(\"/launch\")\n\tpublic String launchGame() {\n\t\treturn \"redirect:/game\";\n\t}",
"public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}",
"@RequestMapping(\"callproj\")\r\n\t\r\n\tpublic String Home()\r\n\t{\n\t\treturn \"Home\";//register.jsp==form action=register\r\n\t}",
"public String submit()\r\n\t{\n\t\tUserDetailsInterface userImpl = new UserDetailsImpl();\r\n\t\t\r\n\t\tint result = 0;\r\n\t\ttry{\r\n\t\t//Pass all value through registerbean class to userImpl Interface and call saveUser() method\r\n\t\t\tresult = userImpl.saveAccountadminUser(emailid.toLowerCase().trim(), password, firstname, lastname, shortname,hashkey,organizationname);\r\n\t\t\r\n\t\t\t//boolean valid = LoginDAO.validate(user, pwd);\r\n\t\t\tif (result == 1) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(\r\n\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN,\r\n\t\t\t\t\t\t\t\t\"Admin Role created successfully\",\r\n\t\t\t\t\t\t\t\t\"\"));\r\n\t\t\t\treturn \"login\";\r\n\t\t\t}\r\n\t\t\tif (result == 2) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(\r\n\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN,\r\n\t\t\t\t\t\t\t\t\"User Inactive\",\r\n\t\t\t\t\t\t\t\t\"User already created, please activate the user credentials before login the sytem\"));\r\n\t\t\t\treturn \"accountadminregister\";\r\n\t\t\t}\r\n\t\t\tif (result == 4) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(\r\n\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN,\r\n\t\t\t\t\t\t\t\t\"Internal Error\",\r\n\t\t\t\t\t\t\t\t\"Please check the server logs\"));\r\n\t\t\t\treturn \"accountadminregister\";\r\n\t\t\t}\r\n\t\t\tif (result == 6) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(\r\n\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN,\r\n\t\t\t\t\t\t\t\t\"User Exit\",\r\n\t\t\t\t\t\t\t\t\"User already created, please login with your credentials\"));\r\n\t\t\t\treturn \"accountadminregister\";\r\n\t\t\t}\r\n\t\t\tif (result == 7) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN,\r\n\t\t\t\t\t\t\"Please do not use public domain\", \"Please use own company domain\"));\r\n\t\t\t\treturn \"accountadminregister\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\r\n\t\t\t\t\tnull,\r\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN,\r\n\t\t\t\t\t\t\t\"Internal Error\",\r\n\t\t\t\t\t\t\t\"Please check the server logs\"));\r\n\t\t\treturn \"accountadminregister\";\r\n\t\t}\r\n\t\r\n\t\treturn \"sendemailbutton\";\r\n\t}",
"@Override\n\tpublic void submitForm(Context ctx) {\n\t\tUser loggedUser = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (loggedUser == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!loggedUser.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\tForm form = ctx.bodyAsClass(Form.class);\n\t\tlog.debug(form);\n\t\tform = fs.submitForm(form);\n\t\tloggedUser.getForms().add(form);\n\t\tlog.debug(\"LoggedUser's Form: \" + loggedUser.getForms());\n\t\t// If loggedUser is a DepartmentHead, form goes straight to BenCo\n\t\tif(loggedUser.getType().equals(UserType.DEPARTMENT_HEAD)) {\n\t\t\tlog.debug(\"LoggedUser is a Department Head\");\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tfs.updateForm(form);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t\tus.submitForm(loggedUser);\n\t\t\tctx.json(form);\n\t\t\treturn;\n\t\t}\n\t\t// If FormSubmitter's supervisor is a DepartmentHead, supervisor approval is automatically true\n\t\telse if(loggedUser.getDepartmentHead().equals(loggedUser.getSupervisor())) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tfs.updateForm(form);\n\t\t}\n\t\tUser supervisor = us.getUserByName(loggedUser.getSupervisor());\n\t\tsupervisor.getAwaitingApproval().add(form);\n\t\tus.updateUser(supervisor);\n\t\tlog.debug(loggedUser);\n\t\tus.submitForm(loggedUser);\n\t\tctx.json(form);\n\t}",
"public static void click_SubmitButton() {\n\t\tboolean bstatus;\n\n\t\tbstatus = clickElement(btn_Submit);\n\t\tReporter.log(bstatus, \"Submit Button is clicked\", \"Submit Button not clicked\");\n\n\t\t\n\t}",
"private void back_home(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tresponse.sendRedirect(\"restaurant\");\n\t\treturn;\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // Get user and selected answers from parameters\n UserAnswers userAnswers = (UserAnswers) request.getAttribute(\"userAnswers\");\n User user = userAnswers.getUser();\n // Save to db via the examService\n examService.saveUser(user);\n examService.saveUserSelectedAnswers(userAnswers);\n\n // Get Results\n examService.getResult(user);\n // Forward to index.jsp\n RequestDispatcher rd = request.getRequestDispatcher(\"index.jsp\");\n rd.forward(request, response);\n }",
"protected void onSubmit() {\n\n Building b = new Building(c.BuildingTypeId, c.StyleId, c.CityId,\n c.Architectural_element_Id, c.Agesid, c.Latitude, c.Longtitude,\n c.buildingname, c.Address);\n BuildingCollection bc = new BuildingCollection();\n bc.AddBuilding(b);\n this.setResponsePage(new BuildingListWithPropertiesPage());\n\n }",
"public void clickSubmitOnly() {\r\n\t\tutilities.clickOnElement(btnSubmit);\r\n\t}",
"@When(\"^Click's on Submit Button$\")\n\tpublic void click_s_on_Submit_Button() throws Throwable {\n\t\treviewPageObjects.clickonsubmit();\n\t}",
"public PageBase click_on_login_submit_form_button () {\r\n HomePageClass homePage = new HomePageClass(driver);\r\n\r\n LGN_Login_submitBTN.click();\r\n\r\n WebDriverWait wait = getWait();\r\n wait.until(ExpectedConditions.visibilityOf(homePage.logout));\r\n\r\n return homePage;\r\n\r\n }",
"public void submit(View v) {\n switch (climb.getCheckedRadioButtonId()) {\n case R.id.climbNoAttempt:\n MainActivity.db.climb = 1;\n break;\n case R.id.climbSuccess:\n MainActivity.db.climb = 2;\n break;\n case R.id.climbFail:\n MainActivity.db.climb = 3;\n break;\n default:\n MainActivity.db.climb = 0;\n break;\n }\n MainActivity.db.comment = comments.getText().toString();\n MainActivity.db.catchTime = catchTimeValue;\n MainActivity.db.climbTime = climbTimeValue;\n Intent submit = new Intent(this, submit.class);\n startActivity(submit);\n }",
"public void performSubmit(Action action) {\n performSubmit(action, true);\n }",
"private void home(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/darkboard.jsp\");\n\t}",
"@Override\n\tpublic ActionForward doDefault(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\n\t}",
"public void sol_nuevasolicitud(){\n try{\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().redirect(\"sol_nuevasolicitud.xhtml\");\n }\n catch(Exception e){\n System.out.println(\"Error: \"+e);\n }\n }",
"@Override\r\n protected void executeAction() throws Exception {\r\n // get the submission of the project\r\n Submission[] submissions = getContestServiceFacade().getSoftwareProjectSubmissions(getCurrentUser(), projectId);\r\n // check whether the project contains the submission the user want to download\r\n for (Submission sub : submissions) {\r\n if (sub.getUpload() != null && sub.getId() == submissionId) {\r\n submission = sub;\r\n break;\r\n }\r\n }\r\n\r\n if (submission == null) {\r\n // the user can't download the upload which is not belongs to the project\r\n throw new Exception(\"Cannot find submission \" + submissionId + \" in project \" + projectId);\r\n }\r\n\r\n contest = getContestServiceFacade().getSoftwareContestByProjectId(getCurrentUser(), projectId);\r\n\r\n if (submission.getUpload().getUrl() == null) {\r\n if (DirectUtils.isStudio(contest)) {\r\n Long userId = null;\r\n String handle = null;\r\n for (Resource r : contest.getResources()) {\r\n if (r.getId() == submission.getUpload().getOwner()) {\r\n userId = r.getUserId();\r\n handle = r.getProperty(RESOURCE_PROPERTY_HANDLE);\r\n }\r\n }\r\n\r\n uploadedFile = studioFileUpload.getUploadedFile(DirectUtils.createStudioLocalFilePath(contest.getId(), userId, handle,\r\n submission.getUpload().getParameter()));\r\n } else {\r\n uploadedFile = fileUpload.getUploadedFile(submission.getUpload().getParameter());\r\n }\r\n } else {\r\n externalUrl = submission.getUpload().getUrl();\r\n }\r\n\r\n }",
"public void doPost (HttpServletRequest _req, HttpServletResponse _res)\n throws ServletException, IOException {\n session = _req.getSession();\n session.removeAttribute(\"loginError\");\n session.removeAttribute(\"submitError\");\n\n String action = _req.getParameter(\"action\");\n\n /* Authenticate user if request comes from login page */\n if (action.equals(\"login\")) {\n String uid = _req.getParameter(\"UID\");\n String pwd = _req.getParameter(\"PWD\");\n if (authenticate(uid, pwd)) {\n session.setAttribute(\"validUser\", \"y\");\n session.setAttribute(\"loginError\", \"n\");\n session.setAttribute(\"uid\", uid);\n gotoPage(\"/WEB-INF/jsp/ch5/census.jsp\", _req, _res);\n }\n /* If the user login fails, then return them to the login page to retry */\n else {\n loginError(_req, _res);\n }\n }\n\n /* Record the survey data if the request comes from the survey form */\n else if (action.equals(\"submit\")) {\n /* Make sure the user has logged in before recording the data */\n String validUser = (String) session.getAttribute(\"validUser\");\n if (validUser.equals(\"y\")) {\n if (recordSurvey(_req)) {\n /* Reset validUser flag and forward to ThankYou page */\n session.removeAttribute(\"validUser\");\n gotoPage(\"/WEB-INF/jsp/ch5/thankyou.jsp\", _req, _res);\n }\n else {\n session.setAttribute(\"submitError\", \"y\");\n gotoPage(\"/ch5/login.jsp\", _req, _res);\n }\n }\n /* If the user did not login, then send them to the login page */\n else {\n loginError(_req, _res);\n }\n }\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n request.getSession().invalidate();\n response.sendRedirect(request.getContextPath() + \"/index.html\");\n }",
"@Override\n protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command,\n BindException errors) throws Exception {\n ModelAndView mv = new ModelAndView(this.getSuccessView());\n try{\n \n String s=request.getParameter(\"id\");\n int id=Integer.parseInt(s);\n\n ElderDao elderdao = (ElderDao)getApplicationContext().getBean(\"ElderDao\");\n int i=elderdao.deleteElders(id);\n if(i == 1){\n mv.addObject(\"reminder_s\", \"You have delete the elder info successfully!\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(this.getSuccessView());\n }else {\n mv.addObject(\"reminder\", \"Operation failed! Please try again.\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(\"reminder\");\n } \n }catch(Exception e){\n mv.addObject(\"reminder\", \"Operation failed! Please try again.\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(\"reminder\");\n }\n \n return mv;\n }",
"public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }",
"void submitScore(View view){\r\n calculateScore();\r\n calculateRating();\r\n displayMessage();\r\n sendMail();\r\n }",
"private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }",
"@Override\n\t\t\tpublic void onFailure(int arg0, String arg1) {\n\t\t\t\tToast.makeText(MainActivity.this, \"submit failure\", Toast.LENGTH_LONG).show();\n\t\t\t}",
"@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }",
"public void onSubmitRating(View view) {\n Toast.makeText(this, \"Rating Submitted.\", Toast.LENGTH_SHORT).show();\n finish();\n }",
"private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }",
"public MyPage goToMyPage(){\n new WebDriverWait(driver, 60).until(ExpectedConditions.visibilityOf(submitButton));\n submitButton.click();\n return new MyPage(driver);\n }",
"@Override\n\tpublic void postRun(FormCheckerForm form) {\n\t}",
"public Browser submitForm(String name, Args values);",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Home();\n\t\t\t\t\n\t\t\t}",
"public ActionForward execute(ActionMapping mapping,\n ActionForm form,\n HttpServletRequest request,\n HttpServletResponse response)\n throws Exception {\n\n // default target to success\n String strTarget = \"success\";\n \n\n String strUrl = request.getParameter(\"url\");\n\n // set the target to failure if we could not retrieve the organ list\n if (StringUtils.hasValue(strUrl)) {\n // put all the servers in the request\n request.setAttribute(\"url\", strUrl);\n } else {\n strTarget = \"error\";\n }\n\n // forward to the appropriate View\n return mapping.findForward(strTarget);\n }",
"public HomePage clickOnSignInButton() {\n driver.findElement(signInButton).submit();\n\n // Return a new page object representing the destination. Should the login page\n // ever\n // go somewhere else (for example, a legal disclaimer) then changing the method\n // signature\n // for this method will mean that all tests that rely on this behaviour won't\n // compile.\n return new HomePage(driver);\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.finish();\r\n }",
"public void performSubmit() {\n\t\tgetWrappedElement().submit();\n\t}",
"@Override\n protected void onForward(View backwardView) {\n super.onBackward(backwardView);\n Log.d(\"info\", \"submit\");\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 }",
"void redirectToLogin();",
"public void goToHome() throws IOException {\n\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"index.xhtml\");\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n String username = request.getParameter(\"email\");\n\n // Send the response back to the user\n try {\n response.setContentType(\"text/html\");\n PrintWriter writer = response.getWriter();\n response.sendRedirect(\"/login/index.html?username=\"+ username);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}",
"public void onClick(ClickEvent event) {\r\n System.out.println(\"Submit Button geklickt\");\r\n handleEvent();\r\n }",
"@Override\n\tprotected String processSubmit(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\treturn null;\n\t}",
"public void refreshAfterSubmit() throws BackendException;",
"public String processHomePage() {\n return \"success\";\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == submit) {\n createDog();\n } else if (e.getSource() == goBack) {\n doggyDayCareGui.returnFromMakeDog();\n }\n }",
"@FXML\n\t private void loadsubmit(ActionEvent event) {\n\t \t if (!isReadyForSubmission) {\n\t Alert alert = new Alert(Alert.AlertType.ERROR);\n\t alert.setTitle(\"Failed\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Please select a book to submit\");\n\t alert.showAndWait();\n\t return;\n\t }\n\n\t Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t alert.setTitle(\"Confirm Submission Operation\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Are you sure want to return the book ?\");\n\n\t Optional<ButtonType> response = alert.showAndWait();\n\t if (response.get() == ButtonType.OK) {\n\t String id = Bookid.getText();\n\t String ac1 = \"DELETE FROM ISSUE_LMS WHERE BOOKID = '\" + id + \"'\";\n\t String ac2 = \"UPDATE BOOK_LMS SET ISAVAIL = TRUE WHERE ID = '\" + id + \"'\";\n\n\t if (dbhandler.execAction(ac1) && dbhandler.execAction(ac2)) {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Success\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Book Has Been Submitted\");\n\t alert1.showAndWait();\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.ERROR);\n\t alert1.setTitle(\"Failed\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Submission Has Been Failed\");\n\t alert1.showAndWait();\n\t }\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Cancelled\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Submission Operation cancelled\");\n\t alert1.showAndWait();\n\t }\n\t }",
"@RequestMapping(value = \"/absen/ubah/submit\", method = RequestMethod.POST)\n public String updateSubmit (@NotNull Authentication auth, @ModelAttribute AbsenModel absenUbah, Model model) {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n AbsenModel absen = absenDAO.detailAbsen(absenUbah.getId_absen());\n absen.setId_kategori_kehadiran(absenUbah.getId_kategori_kehadiran());\n absen.setKeterangan(absenUbah.getKeterangan());\n absenDAO.updateAbsen(absen);\n return \"redirect:/absen/kelola/?success=Simpan\";\n }"
] | [
"0.69943637",
"0.67923945",
"0.6693455",
"0.6673793",
"0.65036505",
"0.6427411",
"0.6355806",
"0.63431036",
"0.6198843",
"0.61824244",
"0.61356586",
"0.6103567",
"0.6074884",
"0.60591656",
"0.6055521",
"0.6039975",
"0.6028115",
"0.59963524",
"0.59946746",
"0.5984177",
"0.59674156",
"0.5957459",
"0.5947167",
"0.5937889",
"0.5935912",
"0.5905334",
"0.58652234",
"0.5858423",
"0.58561355",
"0.5837296",
"0.5814152",
"0.5810013",
"0.5805167",
"0.5784343",
"0.5762406",
"0.57520777",
"0.5751863",
"0.5721601",
"0.5721551",
"0.5720601",
"0.5718846",
"0.57165253",
"0.5699788",
"0.5697958",
"0.5697949",
"0.5691309",
"0.5680249",
"0.56576145",
"0.5652084",
"0.5619082",
"0.5592743",
"0.5592664",
"0.5591134",
"0.5586654",
"0.5585383",
"0.55607194",
"0.5559263",
"0.55326784",
"0.5532419",
"0.55212617",
"0.5520614",
"0.55060947",
"0.54949826",
"0.5492453",
"0.54895765",
"0.54830295",
"0.5482955",
"0.54789275",
"0.5477789",
"0.5471857",
"0.54712164",
"0.54653764",
"0.546485",
"0.54583865",
"0.5454393",
"0.54543066",
"0.545382",
"0.5450624",
"0.54484874",
"0.5447624",
"0.54452896",
"0.5442023",
"0.5439522",
"0.5436378",
"0.5432566",
"0.5429485",
"0.5429117",
"0.54187",
"0.540585",
"0.5398509",
"0.53966695",
"0.5375927",
"0.53706795",
"0.535512",
"0.53503716",
"0.5347509",
"0.53471863",
"0.5342066",
"0.533733",
"0.5334084"
] | 0.6454301 | 5 |
initializate all components of the frame | private void init(){
this.firstNameTF.setText(user.getFirstName());
this.nameTF.setText(user.getName());
this.phoneTF.setText(user.getPhone());
this.mailLabel.setText(user.getMail());
this.roleLabel.setText(user.getFirstName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }",
"private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\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 initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"public void init() {\n initComponents();\n initData();\n }",
"public FrameDesign() {\n initComponents();\n }",
"private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }",
"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() {\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}",
"private void initFrame() {\n setLayout(new BorderLayout());\n }",
"private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}",
"private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\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}",
"private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }",
"public void init()\n {\n buildUI(getContentPane());\n }",
"public FrameControl() {\n initComponents();\n }",
"public void initComponents();",
"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 void init() {\n setLayout(new BorderLayout());\n }",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}",
"public void 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() {\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}",
"private void initilize()\n\t{\n\t\tdimXNet = project.getNoC().getNumRotX();\n\t\tdimYNet = project.getNoC().getNumRotY();\n\t\t\n\t\taddProperties();\n\t\taddComponents();\n\t\tsetVisible(true);\n\t}",
"public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }",
"private void initComponents() {\n\n setBackground(java.awt.Color.lightGray);\n setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\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, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 294, Short.MAX_VALUE)\n );\n }",
"private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setPreferredSize(new java.awt.Dimension(686, 530));\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, 699, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 541, Short.MAX_VALUE)\n );\n\n pack();\n }",
"private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }",
"private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\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() {\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}",
"private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }",
"private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }",
"private void initComponents() {\n\t\tthis.setTitle(\"Boggle\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(600, 575));\n\t\t\n\t\tinitMenuBar();\n\t\tinitDiceGridPanel();\n\t\tinitInputPanel();\n\t\tinitInfoPanel();\n\t\taddPanels();\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"public Mainframe() {\n initComponents();\n }",
"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 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 initComponents(){\n\t\n\t\tthis.setLayout(null);\n\t\t\n\t\tscreensize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\n\t\tlogo = new JLabel(getLogoIcon(), JLabel.CENTER); // 500x50\n\t\t\n\t\toptionList = new JComboBox();\n\t\t\n\t\tcreate = new JButton(\"Create\");\n\t\tclose = new JButton(\"Close\");\n\t\t\n\t\tcreate.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcreateActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\t\n\t\tclose.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcloseActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }",
"private void initcomponent() {\n\r\n\t}",
"private void initComponents() {\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 }",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public mainframe() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n \n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(300, 200);\n this.setPreferredSize(new java.awt.Dimension(450, 116));\n this.add(getListPanel(), java.awt.BorderLayout.CENTER);\n this.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n }",
"public void initComponents() {\n\t\taddButton = new JButton(addFlightText);\n\t\tdelayButton = new JButton(delayFlightText);\n\t\tquitButton = new JButton(quitText);\n\t\t// TODO: Add button instanciations for other operations\n\n\t\t// Initialize display area\n\t\tdisplayArea = new JTextArea(LINE_COUNT, LINE_SIZE);\n\t\tdisplayArea.setEditable(false);\n\t\tscrollPane = new JScrollPane(displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t}",
"private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}",
"public void init() {\n\t\t//initializing graphics area\n \tcanvas = new FacePamphletCanvas();\n \tadd(canvas);\n \t\n\t\taddInteractors();\n\t\taddActionListeners();\n }",
"private void initMyComponents() {\n this.jPanel1.setLayout(new BoxLayout(this.jPanel1, BoxLayout.Y_AXIS));\n this.jPanel1.add(controller.getPressureController().getEMeasureBasicView());\n this.jPanel1.add(controller.getTemperatureController().getEMeasureBasicView());\n this.controller.getPressureController().getListeners().add(this);\n this.controller.getTemperatureController().getListeners().add(this);\n this.jComboBox1.setModel(new DefaultComboBoxModel(FluidKind.values()));\n this.changeResponce();\n }",
"private void initComponents() {\n\n scenePanel = new javax.swing.JPanel();\n\n setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.PAGE_AXIS));\n\n scenePanel.setLayout(new javax.swing.BoxLayout(scenePanel, javax.swing.BoxLayout.LINE_AXIS));\n add(scenePanel);\n }",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}",
"public void init()\n\t\t{\n\t\t\t//Makes Lists\n\t\t\tmakeLists();\n\n\t\t\t//layout for GUI\n\t\t\tGridLayout layout = new GridLayout(2,4, 5 ,5);\n\t\t\tsetLayout(layout);\n\n\t\t\t//add panels to window\n\t\t\tadd(Panel_1);\n\t\t\tadd(Panel_2);\n\t\t\tadd(Panel_3);\n\t\t\tadd(Panel_4);\n\n\t\t\t//create buttons\n\t\t\tCalculateButton = new JButton(\"Calculate\");\n\t\t ExitButton = new JButton(\"Exit\");\n\n\t\t\t//connect event handlers to buttons\n\t\t CalculateButton.addActionListener(new ButtonListener());\n\t\t ExitButton.addActionListener(new ButtonListener());\n\n\t\t\t//add buttons to window\n\t\t add(CalculateButton);\n\t\t add(ExitButton);\n\n\t\t //make window visible\n\t\t\tsetVisible(true);\n\t\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}",
"private void initComponents() {\r\n\r\n lbBurro = new javax.swing.JLabel();\r\n canvas1 = new java.awt.Canvas();\r\n canvas2 = new java.awt.Canvas();\r\n jInternalFrame2 = new javax.swing.JInternalFrame();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n Mostra = new javax.swing.JTextPane();\r\n jInternalFrame1 = new javax.swing.JInternalFrame();\r\n jButton5 = new javax.swing.JButton();\r\n jButton7 = new javax.swing.JButton();\r\n jButton8 = new javax.swing.JButton();\r\n jButton6 = new javax.swing.JButton();\r\n cbMidi = new javax.swing.JComboBox();\r\n jLabel4 = new javax.swing.JLabel();\r\n jButton3 = new javax.swing.JButton();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n JtmInicial = new javax.swing.JTextField();\r\n jtmFinal = new javax.swing.JTextField();\r\n jButton9 = new javax.swing.JButton();\r\n jpAngulo = new javax.swing.JProgressBar();\r\n jpDistancia = new javax.swing.JProgressBar();\r\n jpVelocidade = new javax.swing.JProgressBar();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n jLabel13 = new javax.swing.JLabel();\r\n jInternalFrame3 = new javax.swing.JInternalFrame();\r\n jLabel3 = new javax.swing.JLabel();\r\n edTempo = new javax.swing.JTextField();\r\n jLabel5 = new javax.swing.JLabel();\r\n edPos = new javax.swing.JTextField();\r\n jLabel2 = new javax.swing.JLabel();\r\n edId = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n edDis = new javax.swing.JTextField();\r\n edVel = new javax.swing.JTextField();\r\n jLabel6 = new javax.swing.JLabel();\r\n edMTempo = new javax.swing.JTextField();\r\n edMTempo2 = new javax.swing.JTextField();\r\n jLabel9 = new javax.swing.JLabel();\r\n edPtGoogle = new javax.swing.JTextField();\r\n jInternalFrame4 = new javax.swing.JInternalFrame();\r\n jButton1 = new javax.swing.JButton();\r\n jButton2 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n jSlider1 = new javax.swing.JSlider();\r\n CbMapa = new javax.swing.JCheckBox();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n jSeparator3 = new javax.swing.JSeparator();\r\n jPanel1 = new javax.swing.JPanel();\r\n GPSGoogle = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem1 = new javax.swing.JMenuItem();\r\n jMenuItem2 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenu3 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"HAPAX - GPSMIDI Conectado ao Servidor ***\");\r\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\r\n setFocusTraversalPolicyProvider(true);\r\n setFocusable(false);\r\n setForeground(java.awt.Color.white);\r\n\r\n lbBurro.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n lbBurro.setForeground(new java.awt.Color(255, 0, 51));\r\n lbBurro.setText(\"HAPAX GPS MIDI Client - Gerador de Eventos MIDI - GPS\");\r\n\r\n canvas1.setBackground(new java.awt.Color(255, 255, 51));\r\n canvas1.setForeground(java.awt.Color.black);\r\n canvas1.setVisible(false);\r\n\r\n jInternalFrame2.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame2.setTitle(\"Server\");\r\n jInternalFrame2.setMinimumSize(new java.awt.Dimension(86, 35));\r\n jInternalFrame2.setOpaque(true);\r\n jInternalFrame2.setRequestFocusEnabled(false);\r\n jInternalFrame2.setVisible(true);\r\n\r\n Mostra.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n Mostra.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\r\n Mostra.setFocusCycleRoot(false);\r\n Mostra.setRequestFocusEnabled(false);\r\n jScrollPane1.setViewportView(Mostra);\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame2Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame2.getContentPane());\r\n jInternalFrame2.getContentPane().setLayout(jInternalFrame2Layout);\r\n jInternalFrame2Layout.setHorizontalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 344, Short.MAX_VALUE)\r\n );\r\n jInternalFrame2Layout.setVerticalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\r\n );\r\n\r\n jInternalFrame1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\r\n jInternalFrame1.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame1.setIconifiable(true);\r\n jInternalFrame1.setResizable(true);\r\n jInternalFrame1.setTitle(\"MIDI\");\r\n jInternalFrame1.setLayer(1);\r\n jInternalFrame1.setVisible(true);\r\n jInternalFrame1.addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\r\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameOpened(evt);\r\n }\r\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameIconified(evt);\r\n }\r\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n });\r\n\r\n jButton5.setText(\"SC_A_80\");\r\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton5MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton7.setText(\"SC_D_82\");\r\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton7MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton8.setText(\"BC_V_83\");\r\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton8MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton6.setText(\"SC_V_81\");\r\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton6MouseClicked(evt);\r\n }\r\n });\r\n\r\n cbMidi.setAutoscrolls(true);\r\n cbMidi.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n cbMidiItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\r\n jLabel4.setText(\" Dispositivo MIDI\");\r\n\r\n jButton3.setBackground(javax.swing.UIManager.getDefaults().getColor(\"InternalFrame.borderLight\"));\r\n jButton3.setText(\"TesteMIDI\");\r\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton3MouseClicked(evt);\r\n }\r\n });\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel1.setText(\"Inicial\");\r\n\r\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel10.setText(\"Final\");\r\n\r\n JtmInicial.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n JtmInicial.setText(\"80\");\r\n JtmInicial.setAutoscrolls(false);\r\n\r\n jtmFinal.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n jtmFinal.setText(\"83\");\r\n jtmFinal.setAutoscrolls(false);\r\n\r\n jButton9.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jButton9.setText(\"Set\");\r\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton9MouseClicked(evt);\r\n }\r\n });\r\n\r\n jpAngulo.setBackground(new java.awt.Color(255, 255, 255));\r\n jpAngulo.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpAngulo.setForeground(new java.awt.Color(153, 255, 0));\r\n jpAngulo.setMaximum(360);\r\n jpAngulo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpAngulo.setString(\"0 graus\");\r\n jpAngulo.setStringPainted(true);\r\n\r\n jpDistancia.setBackground(new java.awt.Color(255, 255, 255));\r\n jpDistancia.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpDistancia.setForeground(new java.awt.Color(0, 102, 255));\r\n jpDistancia.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpDistancia.setString(\"0 m\");\r\n jpDistancia.setStringPainted(true);\r\n\r\n jpVelocidade.setBackground(new java.awt.Color(255, 255, 255));\r\n jpVelocidade.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpVelocidade.setForeground(new java.awt.Color(255, 0, 51));\r\n jpVelocidade.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpVelocidade.setString(\"0 Km/h\");\r\n jpVelocidade.setStringPainted(true);\r\n\r\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel11.setText(\"A\");\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel12.setText(\"D\");\r\n\r\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel13.setText(\"V\");\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame1Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame1.getContentPane());\r\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\r\n jInternalFrame1Layout.setHorizontalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(17, 17, 17)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel1)\r\n .add(jLabel10))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jtmFinal)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jButton9))\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE))\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 208, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(27, 27, 27)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(91, 91, 91)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(jButton6)\r\n .add(jButton8)))\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton7)\r\n .add(jButton5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 77, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(91, 91, 91)))))\r\n .add(18, 18, 18))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jLabel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jInternalFrame1Layout.linkSize(new java.awt.Component[] {jButton5, jButton6, jButton7, jButton8}, org.jdesktop.layout.GroupLayout.HORIZONTAL);\r\n\r\n jInternalFrame1Layout.setVerticalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jLabel4)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel1)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel10)\r\n .add(jtmFinal, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(35, 35, 35)\r\n .add(jButton9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(35, 35, 35)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton5)\r\n .add(jButton6))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton7)\r\n .add(jButton8))\r\n .add(16, 16, 16)\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(18, 18, 18)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel11))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel12))\r\n .add(14, 14, 14)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel13))\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jInternalFrame3.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame3.setIconifiable(true);\r\n jInternalFrame3.setResizable(true);\r\n jInternalFrame3.setTitle(\"Utilitys\");\r\n jInternalFrame3.setVisible(true);\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel3.setText(\"Tempo\");\r\n\r\n edTempo.setText(\"1000\");\r\n edTempo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n edTempoActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel5.setText(\"Pos\");\r\n\r\n edPos.setText(\"0\");\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel2.setText(\"ServerId\");\r\n\r\n edId.setText(\"l2.dat\");\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel7.setText(\"Vel. Max.\");\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel8.setText(\"Dis. Max.\");\r\n\r\n edDis.setText(\"5\");\r\n\r\n edVel.setText(\"3\");\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel6.setText(\"Tempo Msg\");\r\n\r\n edMTempo.setText(\"5000\");\r\n\r\n edMTempo2.setText(\"260\");\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel9.setText(\"Pts\");\r\n\r\n edPtGoogle.setText(\"60\");\r\n\r\n jInternalFrame4.setBackground(new java.awt.Color(255, 255, 153));\r\n jInternalFrame4.setBorder(javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, new java.awt.Color(255, 204, 51)));\r\n jInternalFrame4.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame4.setIconifiable(true);\r\n jInternalFrame4.setResizable(true);\r\n jInternalFrame4.setTitle(\"Comandos\");\r\n jInternalFrame4.setVisible(true);\r\n\r\n jButton1.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/tn2.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton1.setBorder(new javax.swing.border.MatteBorder(null));\r\n jButton1.setDefaultCapable(false);\r\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\r\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton1MouseClicked(evt);\r\n }\r\n });\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton2.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/pause.JPG\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton2MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton4.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/stop.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton4MouseClicked(evt);\r\n }\r\n });\r\n\r\n jSlider1.setBackground(javax.swing.UIManager.getDefaults().getColor(\"ToolBar.dockingForeground\"));\r\n jSlider1.setMaximum(20);\r\n jSlider1.setMinimum(5);\r\n jSlider1.setValue(14);\r\n\r\n CbMapa.setBackground(new java.awt.Color(255, 51, 51));\r\n CbMapa.setFont(new java.awt.Font(\"Tahoma\", 0, 18));\r\n CbMapa.setForeground(new java.awt.Color(0, 51, 255));\r\n CbMapa.setText(\"Mapa\");\r\n CbMapa.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\r\n CbMapa.setMargin(new java.awt.Insets(0, 0, 0, 0));\r\n CbMapa.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n CbMapaMouseClicked(evt);\r\n }\r\n });\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame4Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame4.getContentPane());\r\n jInternalFrame4.getContentPane().setLayout(jInternalFrame4Layout);\r\n jInternalFrame4Layout.setHorizontalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jSlider1, 0, 0, Short.MAX_VALUE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 64, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 86, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n );\r\n jInternalFrame4Layout.setVerticalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSlider1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame3Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame3.getContentPane());\r\n jInternalFrame3.getContentPane().setLayout(jInternalFrame3Layout);\r\n jInternalFrame3Layout.setHorizontalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jInternalFrame4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(26, 26, 26)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 88, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel5)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel2)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edId)))\r\n .add(58, 58, 58)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel7)\r\n .add(jLabel8)\r\n .add(jLabel6))\r\n .add(20, 20, 20)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 48, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, edDis)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame3Layout.createSequentialGroup()\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(45, Short.MAX_VALUE))\r\n );\r\n jInternalFrame3Layout.setVerticalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame4)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel6)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel7)\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel9)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel8)\r\n .add(edDis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel2)\r\n .add(edId, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel3)\r\n .add(jLabel5)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n\r\n GPSGoogle.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n GPSGoogle.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://maps.google.com/staticmap?center=-21.7566133,-41.331430&zoom=15&size=600x500&key=ABQIAAAANfHaNxB2EEc7ZYvIOCXAohTCRf8s8QHhhExYFAkAHu8ZlJqlqRR7p2SmTf-HSf3XPv6G1SGPptN5QA\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n GPSGoogle.setVerticalAlignment(javax.swing.SwingConstants.TOP);\r\n GPSGoogle.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);\r\n\r\n jMenuBar1.setOpaque(false);\r\n\r\n jMenu1.setText(\"Servidor\");\r\n\r\n jMenuItem1.setText(\"Start\");\r\n jMenu1.add(jMenuItem1);\r\n\r\n jMenuItem2.setText(\"Resume\");\r\n jMenu1.add(jMenuItem2);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"Exibir Janelas\");\r\n jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu2MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"Performace\");\r\n jMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu3MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu3);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .addContainerGap(42, Short.MAX_VALUE)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 806, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(145, 145, 145)\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(10, 10, 10))\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(12, 12, 12)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(4292, 4292, 4292)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(515, 515, 515)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 598, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(3637, 3637, 3637))\r\n .add(layout.createSequentialGroup()\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(741, 741, 741)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 922, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(1368, 1368, 1368)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))))\r\n .add(layout.createSequentialGroup()\r\n .add(98, 98, 98)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 583, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(9621, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(4, 4, 4)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .add(23, 23, 23)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 393, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(layout.createSequentialGroup()\r\n .add(355, 355, 355)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 528, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(25, 25, 25)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(20, 20, 20))\r\n .add(layout.createSequentialGroup()\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)))\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 447, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(14, 14, 14)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(8144, Short.MAX_VALUE))\r\n );\r\n\r\n pack();\r\n }",
"public holdersframe() {\n initComponents();\n }",
"public FrameInsert() {\n initComponents();\n }",
"private void init(){\n panel_principal = new JPanel();\r\n panel_principal.setLayout(new BorderLayout());\r\n //EN EL NORTE IRA LA CAJA DE TEXTO\r\n caja = new JTextField();\r\n panel_principal.add(\"North\",caja);\r\n //EN EL CENTRO IRA EL PANEL DE BOTONES\r\n panel_botones = new JPanel();\r\n //El GRIDLAYOUT RECIBE COMO PARAMETROS:\r\n //FILAS,COLUMNAS ESPACIADO ENTRE FILAS,\r\n //ESPACIADO ENTRE COLUMNAS\r\n panel_botones.setLayout(new GridLayout(5,4,8,8));\r\n agregarBotones();\r\n panel_principal.add(\"Center\",panel_botones);\r\n //AGREGAMOS TODO EL CONTENIDO QUE ACABAMOS DE HACER EN\r\n //PANEL_PRINCIPAL A EL PANEL DEL FORMULARIO\r\n getContentPane().add(panel_principal);\r\n\r\n }",
"private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n scroolPane1 = new pkl49.component.ScroolPane();\n panelScroll = new pkl49.component.PanelTransparan();\n panelTabel = new pkl49.component.PanelTransparan();\n panelTransparan2 = new pkl49.component.PanelTransparan();\n label1 = new pkl49.component.Label();\n panelTransparan3 = new pkl49.component.PanelTransparan();\n label2 = new pkl49.component.Label();\n panelTransparan4 = new pkl49.component.PanelTransparan();\n label3 = new pkl49.component.Label();\n label4 = new pkl49.component.Label();\n label5 = new pkl49.component.Label();\n panelTransparan5 = new pkl49.component.PanelTransparan();\n label6 = new pkl49.component.Label();\n label8 = new pkl49.component.Label();\n label10 = new pkl49.component.Label();\n label11 = new pkl49.component.Label();\n label12 = new pkl49.component.Label();\n label39 = new pkl49.component.Label();\n panelTransparan7 = new pkl49.component.PanelTransparan();\n label9 = new pkl49.component.Label();\n label13 = new pkl49.component.Label();\n label14 = new pkl49.component.Label();\n label15 = new pkl49.component.Label();\n label16 = new pkl49.component.Label();\n label17 = new pkl49.component.Label();\n label18 = new pkl49.component.Label();\n panelTransparan13 = new pkl49.component.PanelTransparan();\n label19 = new pkl49.component.Label();\n label21 = new pkl49.component.Label();\n label22 = new pkl49.component.Label();\n label24 = new pkl49.component.Label();\n panelTransparan14 = new pkl49.component.PanelTransparan();\n label26 = new pkl49.component.Label();\n label27 = new pkl49.component.Label();\n label89 = new pkl49.component.Label();\n label90 = new pkl49.component.Label();\n panelTransparan15 = new pkl49.component.PanelTransparan();\n label28 = new pkl49.component.Label();\n label29 = new pkl49.component.Label();\n label30 = new pkl49.component.Label();\n label31 = new pkl49.component.Label();\n label32 = new pkl49.component.Label();\n label33 = new pkl49.component.Label();\n label34 = new pkl49.component.Label();\n label37 = new pkl49.component.Label();\n panelTransparan16 = new pkl49.component.PanelTransparan();\n label35 = new pkl49.component.Label();\n label36 = new pkl49.component.Label();\n label38 = new pkl49.component.Label();\n label40 = new pkl49.component.Label();\n panelTransparan17 = new pkl49.component.PanelTransparan();\n label41 = new pkl49.component.Label();\n label42 = new pkl49.component.Label();\n label43 = new pkl49.component.Label();\n label44 = new pkl49.component.Label();\n label91 = new pkl49.component.Label();\n panelTransparan18 = new pkl49.component.PanelTransparan();\n label49 = new pkl49.component.Label();\n label50 = new pkl49.component.Label();\n label51 = new pkl49.component.Label();\n label52 = new pkl49.component.Label();\n panelTransparan19 = new pkl49.component.PanelTransparan();\n label45 = new pkl49.component.Label();\n label46 = new pkl49.component.Label();\n panelTransparan20 = new pkl49.component.PanelTransparan();\n label47 = new pkl49.component.Label();\n panelTransparan27 = new pkl49.component.PanelTransparan();\n label63 = new pkl49.component.Label();\n panelTransparan23 = new pkl49.component.PanelTransparan();\n label55 = new pkl49.component.Label();\n panelTransparan24 = new pkl49.component.PanelTransparan();\n label56 = new pkl49.component.Label();\n panelTransparan21 = new pkl49.component.PanelTransparan();\n label48 = new pkl49.component.Label();\n panelTransparan22 = new pkl49.component.PanelTransparan();\n label54 = new pkl49.component.Label();\n panelTransparan25 = new pkl49.component.PanelTransparan();\n label57 = new pkl49.component.Label();\n panelTransparan26 = new pkl49.component.PanelTransparan();\n label58 = new pkl49.component.Label();\n panelTransparan28 = new pkl49.component.PanelTransparan();\n label59 = new pkl49.component.Label();\n panelTransparan29 = new pkl49.component.PanelTransparan();\n label60 = new pkl49.component.Label();\n label61 = new pkl49.component.Label();\n panelTransparan30 = new pkl49.component.PanelTransparan();\n label62 = new pkl49.component.Label();\n label64 = new pkl49.component.Label();\n label65 = new pkl49.component.Label();\n label66 = new pkl49.component.Label();\n label67 = new pkl49.component.Label();\n label70 = new pkl49.component.Label();\n panelTransparan31 = new pkl49.component.PanelTransparan();\n label68 = new pkl49.component.Label();\n label69 = new pkl49.component.Label();\n label92 = new pkl49.component.Label();\n label93 = new pkl49.component.Label();\n label104 = new pkl49.component.Label();\n panelTransparan32 = new pkl49.component.PanelTransparan();\n label71 = new pkl49.component.Label();\n label76 = new pkl49.component.Label();\n label105 = new pkl49.component.Label();\n label106 = new pkl49.component.Label();\n label107 = new pkl49.component.Label();\n panelTransparan33 = new pkl49.component.PanelTransparan();\n label77 = new pkl49.component.Label();\n label78 = new pkl49.component.Label();\n label79 = new pkl49.component.Label();\n panelTransparan34 = new pkl49.component.PanelTransparan();\n label72 = new pkl49.component.Label();\n panelTransparan35 = new pkl49.component.PanelTransparan();\n label73 = new pkl49.component.Label();\n panelTransparan36 = new pkl49.component.PanelTransparan();\n label74 = new pkl49.component.Label();\n panelTransparan37 = new pkl49.component.PanelTransparan();\n label75 = new pkl49.component.Label();\n panelTransparan38 = new pkl49.component.PanelTransparan();\n label80 = new pkl49.component.Label();\n panelTransparan39 = new pkl49.component.PanelTransparan();\n label81 = new pkl49.component.Label();\n panelTransparan40 = new pkl49.component.PanelTransparan();\n label82 = new pkl49.component.Label();\n panelTransparan41 = new pkl49.component.PanelTransparan();\n label83 = new pkl49.component.Label();\n panelTransparan42 = new pkl49.component.PanelTransparan();\n label84 = new pkl49.component.Label();\n panelTransparan43 = new pkl49.component.PanelTransparan();\n label85 = new pkl49.component.Label();\n panelTransparan44 = new pkl49.component.PanelTransparan();\n label86 = new pkl49.component.Label();\n panelTransparan45 = new pkl49.component.PanelTransparan();\n label87 = new pkl49.component.Label();\n panelTransparan46 = new pkl49.component.PanelTransparan();\n label88 = new pkl49.component.Label();\n panelTransparan52 = new pkl49.component.PanelTransparan();\n label94 = new pkl49.component.Label();\n panelTransparan53 = new pkl49.component.PanelTransparan();\n txtB9AK2_1 = new pkl49.component.TextField();\n panelTransparan54 = new pkl49.component.PanelTransparan();\n txtB9AK4_26 = new pkl49.component.TextField();\n panelTransparan55 = new pkl49.component.PanelTransparan();\n txtB9AK3_26 = new pkl49.component.TextField();\n txtB9AK3_26Als = new pkl49.component.TextField();\n panelTransparan56 = new pkl49.component.PanelTransparan();\n txtB9AK5_1 = new pkl49.component.TextField();\n txtB9AK5_1Als = new pkl49.component.TextField();\n panelTransparan57 = new pkl49.component.PanelTransparan();\n txtB9AK6_1 = new pkl49.component.TextField();\n panelTransparan58 = new pkl49.component.PanelTransparan();\n txtB9AK7_1 = new pkl49.component.TextField();\n panelTransparan59 = new pkl49.component.PanelTransparan();\n txtB9AK8_1 = new pkl49.component.TextField();\n panelTransparan60 = new pkl49.component.PanelTransparan();\n txtB9AK9_1 = new pkl49.component.TextField();\n panelTransparan61 = new pkl49.component.PanelTransparan();\n txtB9AK10_1 = new pkl49.component.TextField();\n panelTransparan62 = new pkl49.component.PanelTransparan();\n txtB9AK11_1 = new pkl49.component.TextField();\n panelTransparan63 = new pkl49.component.PanelTransparan();\n txtB9AK12_26 = new pkl49.component.TextField();\n panelTransparan64 = new pkl49.component.PanelTransparan();\n txtB9AK13_1 = new pkl49.component.TextField();\n txtB9AK13_1Als = new pkl49.component.TextField();\n panelTransparan70 = new pkl49.component.PanelTransparan();\n label95 = new pkl49.component.Label();\n panelTransparan71 = new pkl49.component.PanelTransparan();\n txtB9AK2_2 = new pkl49.component.TextField();\n panelTransparan72 = new pkl49.component.PanelTransparan();\n panelTransparan73 = new pkl49.component.PanelTransparan();\n panelTransparan74 = new pkl49.component.PanelTransparan();\n txtB9AK5_2 = new pkl49.component.TextField();\n txtB9AK5_2Als = new pkl49.component.TextField();\n panelTransparan75 = new pkl49.component.PanelTransparan();\n txtB9AK6_2 = new pkl49.component.TextField();\n panelTransparan76 = new pkl49.component.PanelTransparan();\n txtB9AK7_2 = new pkl49.component.TextField();\n panelTransparan77 = new pkl49.component.PanelTransparan();\n txtB9AK8_2 = new pkl49.component.TextField();\n panelTransparan78 = new pkl49.component.PanelTransparan();\n txtB9AK9_2 = new pkl49.component.TextField();\n panelTransparan79 = new pkl49.component.PanelTransparan();\n txtB9AK10_2 = new pkl49.component.TextField();\n panelTransparan80 = new pkl49.component.PanelTransparan();\n txtB9AK11_2 = new pkl49.component.TextField();\n panelTransparan81 = new pkl49.component.PanelTransparan();\n panelTransparan82 = new pkl49.component.PanelTransparan();\n txtB9AK13_2 = new pkl49.component.TextField();\n txtB9AK13_2Als = new pkl49.component.TextField();\n panelTransparan88 = new pkl49.component.PanelTransparan();\n label96 = new pkl49.component.Label();\n panelTransparan89 = new pkl49.component.PanelTransparan();\n txtB9AK2_3 = new pkl49.component.TextField();\n panelTransparan90 = new pkl49.component.PanelTransparan();\n panelTransparan91 = new pkl49.component.PanelTransparan();\n panelTransparan92 = new pkl49.component.PanelTransparan();\n txtB9AK5_3 = new pkl49.component.TextField();\n txtB9AK5_3Als = new pkl49.component.TextField();\n panelTransparan93 = new pkl49.component.PanelTransparan();\n txtB9AK6_3 = new pkl49.component.TextField();\n panelTransparan94 = new pkl49.component.PanelTransparan();\n txtB9AK7_3 = new pkl49.component.TextField();\n panelTransparan95 = new pkl49.component.PanelTransparan();\n txtB9AK9_3 = new pkl49.component.TextField();\n panelTransparan96 = new pkl49.component.PanelTransparan();\n txtB9AK8_3 = new pkl49.component.TextField();\n panelTransparan97 = new pkl49.component.PanelTransparan();\n txtB9AK10_3 = new pkl49.component.TextField();\n panelTransparan98 = new pkl49.component.PanelTransparan();\n txtB9AK11_3 = new pkl49.component.TextField();\n panelTransparan99 = new pkl49.component.PanelTransparan();\n panelTransparan100 = new pkl49.component.PanelTransparan();\n txtB9AK13_3 = new pkl49.component.TextField();\n txtB9AK13_3Als = new pkl49.component.TextField();\n panelTransparan106 = new pkl49.component.PanelTransparan();\n label97 = new pkl49.component.Label();\n panelTransparan107 = new pkl49.component.PanelTransparan();\n txtB9AK2_4 = new pkl49.component.TextField();\n panelTransparan108 = new pkl49.component.PanelTransparan();\n panelTransparan109 = new pkl49.component.PanelTransparan();\n panelTransparan110 = new pkl49.component.PanelTransparan();\n txtB9AK5_4 = new pkl49.component.TextField();\n txtB9AK5_4Als = new pkl49.component.TextField();\n panelTransparan111 = new pkl49.component.PanelTransparan();\n txtB9AK6_4 = new pkl49.component.TextField();\n panelTransparan112 = new pkl49.component.PanelTransparan();\n txtB9AK7_4 = new pkl49.component.TextField();\n panelTransparan113 = new pkl49.component.PanelTransparan();\n txtB9AK8_4 = new pkl49.component.TextField();\n panelTransparan114 = new pkl49.component.PanelTransparan();\n txtB9AK9_4 = new pkl49.component.TextField();\n panelTransparan115 = new pkl49.component.PanelTransparan();\n txtB9AK10_4 = new pkl49.component.TextField();\n panelTransparan116 = new pkl49.component.PanelTransparan();\n txtB9AK11_4 = new pkl49.component.TextField();\n panelTransparan117 = new pkl49.component.PanelTransparan();\n panelTransparan118 = new pkl49.component.PanelTransparan();\n txtB9AK13_4 = new pkl49.component.TextField();\n txtB9AK13_4Als = new pkl49.component.TextField();\n panelTransparan124 = new pkl49.component.PanelTransparan();\n label98 = new pkl49.component.Label();\n panelTransparan125 = new pkl49.component.PanelTransparan();\n txtB9AK2_5 = new pkl49.component.TextField();\n panelTransparan126 = new pkl49.component.PanelTransparan();\n panelTransparan127 = new pkl49.component.PanelTransparan();\n panelTransparan128 = new pkl49.component.PanelTransparan();\n txtB9AK5_5 = new pkl49.component.TextField();\n txtB9AK5_5Als = new pkl49.component.TextField();\n panelTransparan129 = new pkl49.component.PanelTransparan();\n txtB9AK6_5 = new pkl49.component.TextField();\n panelTransparan130 = new pkl49.component.PanelTransparan();\n txtB9AK7_5 = new pkl49.component.TextField();\n panelTransparan131 = new pkl49.component.PanelTransparan();\n txtB9AK8_5 = new pkl49.component.TextField();\n panelTransparan132 = new pkl49.component.PanelTransparan();\n txtB9AK9_5 = new pkl49.component.TextField();\n panelTransparan133 = new pkl49.component.PanelTransparan();\n txtB9AK10_5 = new pkl49.component.TextField();\n panelTransparan134 = new pkl49.component.PanelTransparan();\n txtB9AK11_5 = new pkl49.component.TextField();\n panelTransparan135 = new pkl49.component.PanelTransparan();\n panelTransparan136 = new pkl49.component.PanelTransparan();\n txtB9AK13_5 = new pkl49.component.TextField();\n txtB9AK13_5Als = new pkl49.component.TextField();\n panelTransparan142 = new pkl49.component.PanelTransparan();\n label99 = new pkl49.component.Label();\n panelTransparan143 = new pkl49.component.PanelTransparan();\n txtB9AK2_6 = new pkl49.component.TextField();\n panelTransparan144 = new pkl49.component.PanelTransparan();\n panelTransparan145 = new pkl49.component.PanelTransparan();\n panelTransparan146 = new pkl49.component.PanelTransparan();\n txtB9AK5_6 = new pkl49.component.TextField();\n txtB9AK5_6Als = new pkl49.component.TextField();\n panelTransparan147 = new pkl49.component.PanelTransparan();\n txtB9AK6_6 = new pkl49.component.TextField();\n panelTransparan148 = new pkl49.component.PanelTransparan();\n txtB9AK7_6 = new pkl49.component.TextField();\n panelTransparan149 = new pkl49.component.PanelTransparan();\n txtB9AK8_6 = new pkl49.component.TextField();\n panelTransparan150 = new pkl49.component.PanelTransparan();\n txtB9AK9_6 = new pkl49.component.TextField();\n panelTransparan151 = new pkl49.component.PanelTransparan();\n txtB9AK10_6 = new pkl49.component.TextField();\n panelTransparan152 = new pkl49.component.PanelTransparan();\n txtB9AK11_6 = new pkl49.component.TextField();\n panelTransparan153 = new pkl49.component.PanelTransparan();\n panelTransparan154 = new pkl49.component.PanelTransparan();\n txtB9AK13_6 = new pkl49.component.TextField();\n txtB9AK13_6Als = new pkl49.component.TextField();\n panelTransparan160 = new pkl49.component.PanelTransparan();\n label100 = new pkl49.component.Label();\n panelTransparan161 = new pkl49.component.PanelTransparan();\n txtB9AK2_7 = new pkl49.component.TextField();\n panelTransparan162 = new pkl49.component.PanelTransparan();\n panelTransparan163 = new pkl49.component.PanelTransparan();\n panelTransparan164 = new pkl49.component.PanelTransparan();\n txtB9AK5_7 = new pkl49.component.TextField();\n txtB9AK5_7Als = new pkl49.component.TextField();\n panelTransparan165 = new pkl49.component.PanelTransparan();\n txtB9AK6_7 = new pkl49.component.TextField();\n panelTransparan166 = new pkl49.component.PanelTransparan();\n txtB9AK7_7 = new pkl49.component.TextField();\n panelTransparan167 = new pkl49.component.PanelTransparan();\n txtB9AK8_7 = new pkl49.component.TextField();\n panelTransparan168 = new pkl49.component.PanelTransparan();\n txtB9AK9_7 = new pkl49.component.TextField();\n panelTransparan169 = new pkl49.component.PanelTransparan();\n txtB9AK10_7 = new pkl49.component.TextField();\n panelTransparan170 = new pkl49.component.PanelTransparan();\n txtB9AK11_7 = new pkl49.component.TextField();\n panelTransparan171 = new pkl49.component.PanelTransparan();\n panelTransparan172 = new pkl49.component.PanelTransparan();\n txtB9AK13_7 = new pkl49.component.TextField();\n txtB9AK13_7Als = new pkl49.component.TextField();\n panelTransparan178 = new pkl49.component.PanelTransparan();\n label101 = new pkl49.component.Label();\n panelTransparan179 = new pkl49.component.PanelTransparan();\n txtB9AK2_8 = new pkl49.component.TextField();\n panelTransparan180 = new pkl49.component.PanelTransparan();\n panelTransparan181 = new pkl49.component.PanelTransparan();\n panelTransparan182 = new pkl49.component.PanelTransparan();\n txtB9AK5_8 = new pkl49.component.TextField();\n txtB9AK5_8Als = new pkl49.component.TextField();\n panelTransparan183 = new pkl49.component.PanelTransparan();\n txtB9AK6_8 = new pkl49.component.TextField();\n panelTransparan184 = new pkl49.component.PanelTransparan();\n txtB9AK7_8 = new pkl49.component.TextField();\n panelTransparan185 = new pkl49.component.PanelTransparan();\n txtB9AK8_8 = new pkl49.component.TextField();\n panelTransparan186 = new pkl49.component.PanelTransparan();\n txtB9AK9_8 = new pkl49.component.TextField();\n panelTransparan187 = new pkl49.component.PanelTransparan();\n txtB9AK10_8 = new pkl49.component.TextField();\n panelTransparan188 = new pkl49.component.PanelTransparan();\n txtB9AK11_8 = new pkl49.component.TextField();\n panelTransparan189 = new pkl49.component.PanelTransparan();\n panelTransparan190 = new pkl49.component.PanelTransparan();\n txtB9AK13_8 = new pkl49.component.TextField();\n txtB9AK13_8Als = new pkl49.component.TextField();\n panelTransparan196 = new pkl49.component.PanelTransparan();\n label102 = new pkl49.component.Label();\n panelTransparan197 = new pkl49.component.PanelTransparan();\n txtB9AK2_9 = new pkl49.component.TextField();\n panelTransparan198 = new pkl49.component.PanelTransparan();\n panelTransparan199 = new pkl49.component.PanelTransparan();\n panelTransparan200 = new pkl49.component.PanelTransparan();\n txtB9AK5_9 = new pkl49.component.TextField();\n txtB9AK5_9Als = new pkl49.component.TextField();\n panelTransparan201 = new pkl49.component.PanelTransparan();\n txtB9AK6_9 = new pkl49.component.TextField();\n panelTransparan202 = new pkl49.component.PanelTransparan();\n txtB9AK7_9 = new pkl49.component.TextField();\n panelTransparan203 = new pkl49.component.PanelTransparan();\n txtB9AK8_9 = new pkl49.component.TextField();\n panelTransparan204 = new pkl49.component.PanelTransparan();\n txtB9AK9_9 = new pkl49.component.TextField();\n panelTransparan205 = new pkl49.component.PanelTransparan();\n txtB9AK10_9 = new pkl49.component.TextField();\n panelTransparan206 = new pkl49.component.PanelTransparan();\n txtB9AK11_9 = new pkl49.component.TextField();\n panelTransparan207 = new pkl49.component.PanelTransparan();\n panelTransparan208 = new pkl49.component.PanelTransparan();\n txtB9AK13_9 = new pkl49.component.TextField();\n txtB9AK13_9Als = new pkl49.component.TextField();\n panelTransparan214 = new pkl49.component.PanelTransparan();\n label103 = new pkl49.component.Label();\n panelTransparan215 = new pkl49.component.PanelTransparan();\n txtB9AK2_10 = new pkl49.component.TextField();\n panelTransparan216 = new pkl49.component.PanelTransparan();\n panelTransparan217 = new pkl49.component.PanelTransparan();\n panelTransparan218 = new pkl49.component.PanelTransparan();\n txtB9AK5_10 = new pkl49.component.TextField();\n txtB9AK5_10Als = new pkl49.component.TextField();\n panelTransparan219 = new pkl49.component.PanelTransparan();\n txtB9AK6_10 = new pkl49.component.TextField();\n panelTransparan220 = new pkl49.component.PanelTransparan();\n txtB9AK7_10 = new pkl49.component.TextField();\n panelTransparan221 = new pkl49.component.PanelTransparan();\n txtB9AK8_10 = new pkl49.component.TextField();\n panelTransparan222 = new pkl49.component.PanelTransparan();\n txtB9AK9_10 = new pkl49.component.TextField();\n panelTransparan223 = new pkl49.component.PanelTransparan();\n txtB9AK10_10 = new pkl49.component.TextField();\n panelTransparan224 = new pkl49.component.PanelTransparan();\n txtB9AK11_10 = new pkl49.component.TextField();\n panelTransparan225 = new pkl49.component.PanelTransparan();\n panelTransparan226 = new pkl49.component.PanelTransparan();\n txtB9AK13_10 = new pkl49.component.TextField();\n txtB9AK13_10Als = new pkl49.component.TextField();\n panelTransparan227 = new pkl49.component.PanelTransparan();\n label108 = new pkl49.component.Label();\n panelTransparan228 = new pkl49.component.PanelTransparan();\n txtB9AK2_11 = new pkl49.component.TextField();\n panelTransparan229 = new pkl49.component.PanelTransparan();\n panelTransparan230 = new pkl49.component.PanelTransparan();\n panelTransparan231 = new pkl49.component.PanelTransparan();\n txtB9AK5_11 = new pkl49.component.TextField();\n txtB9AK5_11Als = new pkl49.component.TextField();\n panelTransparan232 = new pkl49.component.PanelTransparan();\n txtB9AK6_11 = new pkl49.component.TextField();\n panelTransparan233 = new pkl49.component.PanelTransparan();\n txtB9AK7_11 = new pkl49.component.TextField();\n panelTransparan234 = new pkl49.component.PanelTransparan();\n txtB9AK8_11 = new pkl49.component.TextField();\n panelTransparan235 = new pkl49.component.PanelTransparan();\n txtB9AK9_11 = new pkl49.component.TextField();\n panelTransparan236 = new pkl49.component.PanelTransparan();\n txtB9AK10_11 = new pkl49.component.TextField();\n panelTransparan237 = new pkl49.component.PanelTransparan();\n txtB9AK11_11 = new pkl49.component.TextField();\n panelTransparan238 = new pkl49.component.PanelTransparan();\n panelTransparan239 = new pkl49.component.PanelTransparan();\n txtB9AK13_11 = new pkl49.component.TextField();\n txtB9AK13_11Als = new pkl49.component.TextField();\n panelTransparan240 = new pkl49.component.PanelTransparan();\n label109 = new pkl49.component.Label();\n panelTransparan241 = new pkl49.component.PanelTransparan();\n txtB9AK2_12 = new pkl49.component.TextField();\n panelTransparan242 = new pkl49.component.PanelTransparan();\n panelTransparan243 = new pkl49.component.PanelTransparan();\n txtB9AK5_12 = new pkl49.component.TextField();\n txtB9AK5_12Als = new pkl49.component.TextField();\n panelTransparan244 = new pkl49.component.PanelTransparan();\n txtB9AK6_12 = new pkl49.component.TextField();\n panelTransparan245 = new pkl49.component.PanelTransparan();\n txtB9AK7_12 = new pkl49.component.TextField();\n panelTransparan246 = new pkl49.component.PanelTransparan();\n panelTransparan247 = new pkl49.component.PanelTransparan();\n txtB9AK8_12 = new pkl49.component.TextField();\n panelTransparan248 = new pkl49.component.PanelTransparan();\n txtB9AK9_12 = new pkl49.component.TextField();\n panelTransparan249 = new pkl49.component.PanelTransparan();\n txtB9AK10_12 = new pkl49.component.TextField();\n panelTransparan250 = new pkl49.component.PanelTransparan();\n txtB9AK11_12 = new pkl49.component.TextField();\n panelTransparan251 = new pkl49.component.PanelTransparan();\n panelTransparan252 = new pkl49.component.PanelTransparan();\n txtB9AK13_12 = new pkl49.component.TextField();\n txtB9AK13_12Als = new pkl49.component.TextField();\n panelTransparan253 = new pkl49.component.PanelTransparan();\n label110 = new pkl49.component.Label();\n panelTransparan254 = new pkl49.component.PanelTransparan();\n txtB9AK2_13 = new pkl49.component.TextField();\n panelTransparan255 = new pkl49.component.PanelTransparan();\n panelTransparan256 = new pkl49.component.PanelTransparan();\n txtB9AK5_13 = new pkl49.component.TextField();\n txtB9AK5_13Als = new pkl49.component.TextField();\n panelTransparan257 = new pkl49.component.PanelTransparan();\n txtB9AK6_13 = new pkl49.component.TextField();\n panelTransparan258 = new pkl49.component.PanelTransparan();\n txtB9AK7_13 = new pkl49.component.TextField();\n panelTransparan259 = new pkl49.component.PanelTransparan();\n panelTransparan260 = new pkl49.component.PanelTransparan();\n txtB9AK8_13 = new pkl49.component.TextField();\n panelTransparan261 = new pkl49.component.PanelTransparan();\n txtB9AK9_13 = new pkl49.component.TextField();\n panelTransparan262 = new pkl49.component.PanelTransparan();\n txtB9AK10_13 = new pkl49.component.TextField();\n panelTransparan263 = new pkl49.component.PanelTransparan();\n txtB9AK11_13 = new pkl49.component.TextField();\n panelTransparan264 = new pkl49.component.PanelTransparan();\n panelTransparan265 = new pkl49.component.PanelTransparan();\n txtB9AK13_13 = new pkl49.component.TextField();\n txtB9AK13_13Als = new pkl49.component.TextField();\n panelTransparan266 = new pkl49.component.PanelTransparan();\n label111 = new pkl49.component.Label();\n panelTransparan267 = new pkl49.component.PanelTransparan();\n txtB9AK2_14 = new pkl49.component.TextField();\n panelTransparan268 = new pkl49.component.PanelTransparan();\n panelTransparan269 = new pkl49.component.PanelTransparan();\n txtB9AK5_14 = new pkl49.component.TextField();\n txtB9AK5_14Als = new pkl49.component.TextField();\n panelTransparan270 = new pkl49.component.PanelTransparan();\n txtB9AK6_14 = new pkl49.component.TextField();\n panelTransparan271 = new pkl49.component.PanelTransparan();\n txtB9AK7_14 = new pkl49.component.TextField();\n panelTransparan272 = new pkl49.component.PanelTransparan();\n panelTransparan273 = new pkl49.component.PanelTransparan();\n txtB9AK8_14 = new pkl49.component.TextField();\n panelTransparan274 = new pkl49.component.PanelTransparan();\n txtB9AK9_14 = new pkl49.component.TextField();\n panelTransparan275 = new pkl49.component.PanelTransparan();\n txtB9AK10_14 = new pkl49.component.TextField();\n panelTransparan276 = new pkl49.component.PanelTransparan();\n txtB9AK11_14 = new pkl49.component.TextField();\n panelTransparan277 = new pkl49.component.PanelTransparan();\n panelTransparan278 = new pkl49.component.PanelTransparan();\n txtB9AK13_14 = new pkl49.component.TextField();\n txtB9AK13_14Als = new pkl49.component.TextField();\n panelTransparan279 = new pkl49.component.PanelTransparan();\n label112 = new pkl49.component.Label();\n panelTransparan280 = new pkl49.component.PanelTransparan();\n txtB9AK2_15 = new pkl49.component.TextField();\n panelTransparan281 = new pkl49.component.PanelTransparan();\n panelTransparan282 = new pkl49.component.PanelTransparan();\n panelTransparan283 = new pkl49.component.PanelTransparan();\n txtB9AK5_15 = new pkl49.component.TextField();\n txtB9AK5_15Als = new pkl49.component.TextField();\n panelTransparan284 = new pkl49.component.PanelTransparan();\n txtB9AK6_15 = new pkl49.component.TextField();\n panelTransparan285 = new pkl49.component.PanelTransparan();\n txtB9AK7_15 = new pkl49.component.TextField();\n panelTransparan286 = new pkl49.component.PanelTransparan();\n txtB9AK8_15 = new pkl49.component.TextField();\n panelTransparan287 = new pkl49.component.PanelTransparan();\n txtB9AK9_15 = new pkl49.component.TextField();\n panelTransparan288 = new pkl49.component.PanelTransparan();\n txtB9AK10_15 = new pkl49.component.TextField();\n panelTransparan289 = new pkl49.component.PanelTransparan();\n txtB9AK11_15 = new pkl49.component.TextField();\n panelTransparan290 = new pkl49.component.PanelTransparan();\n panelTransparan291 = new pkl49.component.PanelTransparan();\n txtB9AK13_15 = new pkl49.component.TextField();\n txtB9AK13_15Als = new pkl49.component.TextField();\n panelTransparan292 = new pkl49.component.PanelTransparan();\n label113 = new pkl49.component.Label();\n panelTransparan293 = new pkl49.component.PanelTransparan();\n txtB9AK2_16 = new pkl49.component.TextField();\n panelTransparan294 = new pkl49.component.PanelTransparan();\n panelTransparan295 = new pkl49.component.PanelTransparan();\n panelTransparan296 = new pkl49.component.PanelTransparan();\n txtB9AK5_16 = new pkl49.component.TextField();\n txtB9AK5_16Als = new pkl49.component.TextField();\n panelTransparan297 = new pkl49.component.PanelTransparan();\n txtB9AK6_16 = new pkl49.component.TextField();\n panelTransparan298 = new pkl49.component.PanelTransparan();\n txtB9AK7_16 = new pkl49.component.TextField();\n panelTransparan299 = new pkl49.component.PanelTransparan();\n txtB9AK8_16 = new pkl49.component.TextField();\n panelTransparan300 = new pkl49.component.PanelTransparan();\n txtB9AK9_16 = new pkl49.component.TextField();\n panelTransparan301 = new pkl49.component.PanelTransparan();\n txtB9AK10_16 = new pkl49.component.TextField();\n panelTransparan302 = new pkl49.component.PanelTransparan();\n txtB9AK11_16 = new pkl49.component.TextField();\n panelTransparan303 = new pkl49.component.PanelTransparan();\n panelTransparan304 = new pkl49.component.PanelTransparan();\n txtB9AK13_16 = new pkl49.component.TextField();\n txtB9AK13_16Als = new pkl49.component.TextField();\n panelTransparan305 = new pkl49.component.PanelTransparan();\n label114 = new pkl49.component.Label();\n panelTransparan306 = new pkl49.component.PanelTransparan();\n txtB9AK2_17 = new pkl49.component.TextField();\n panelTransparan307 = new pkl49.component.PanelTransparan();\n panelTransparan308 = new pkl49.component.PanelTransparan();\n panelTransparan309 = new pkl49.component.PanelTransparan();\n txtB9AK5_17 = new pkl49.component.TextField();\n txtB9AK5_17Als = new pkl49.component.TextField();\n panelTransparan310 = new pkl49.component.PanelTransparan();\n txtB9AK6_17 = new pkl49.component.TextField();\n panelTransparan311 = new pkl49.component.PanelTransparan();\n txtB9AK7_17 = new pkl49.component.TextField();\n panelTransparan312 = new pkl49.component.PanelTransparan();\n txtB9AK8_17 = new pkl49.component.TextField();\n panelTransparan313 = new pkl49.component.PanelTransparan();\n txtB9AK9_17 = new pkl49.component.TextField();\n panelTransparan314 = new pkl49.component.PanelTransparan();\n txtB9AK10_17 = new pkl49.component.TextField();\n panelTransparan315 = new pkl49.component.PanelTransparan();\n txtB9AK11_17 = new pkl49.component.TextField();\n panelTransparan316 = new pkl49.component.PanelTransparan();\n panelTransparan317 = new pkl49.component.PanelTransparan();\n txtB9AK13_17 = new pkl49.component.TextField();\n txtB9AK13_17Als = new pkl49.component.TextField();\n panelTransparan318 = new pkl49.component.PanelTransparan();\n label115 = new pkl49.component.Label();\n panelTransparan319 = new pkl49.component.PanelTransparan();\n txtB9AK2_18 = new pkl49.component.TextField();\n panelTransparan320 = new pkl49.component.PanelTransparan();\n panelTransparan321 = new pkl49.component.PanelTransparan();\n panelTransparan322 = new pkl49.component.PanelTransparan();\n txtB9AK5_18 = new pkl49.component.TextField();\n txtB9AK5_18Als = new pkl49.component.TextField();\n panelTransparan323 = new pkl49.component.PanelTransparan();\n txtB9AK6_18 = new pkl49.component.TextField();\n panelTransparan324 = new pkl49.component.PanelTransparan();\n txtB9AK7_18 = new pkl49.component.TextField();\n panelTransparan325 = new pkl49.component.PanelTransparan();\n txtB9AK8_18 = new pkl49.component.TextField();\n panelTransparan326 = new pkl49.component.PanelTransparan();\n txtB9AK9_18 = new pkl49.component.TextField();\n panelTransparan327 = new pkl49.component.PanelTransparan();\n txtB9AK10_18 = new pkl49.component.TextField();\n panelTransparan328 = new pkl49.component.PanelTransparan();\n txtB9AK11_18 = new pkl49.component.TextField();\n panelTransparan329 = new pkl49.component.PanelTransparan();\n panelTransparan330 = new pkl49.component.PanelTransparan();\n txtB9AK13_18 = new pkl49.component.TextField();\n txtB9AK13_18Als = new pkl49.component.TextField();\n panelTransparan331 = new pkl49.component.PanelTransparan();\n label116 = new pkl49.component.Label();\n panelTransparan332 = new pkl49.component.PanelTransparan();\n txtB9AK2_19 = new pkl49.component.TextField();\n panelTransparan333 = new pkl49.component.PanelTransparan();\n panelTransparan334 = new pkl49.component.PanelTransparan();\n panelTransparan335 = new pkl49.component.PanelTransparan();\n txtB9AK5_19 = new pkl49.component.TextField();\n txtB9AK5_19Als = new pkl49.component.TextField();\n panelTransparan336 = new pkl49.component.PanelTransparan();\n txtB9AK6_19 = new pkl49.component.TextField();\n panelTransparan337 = new pkl49.component.PanelTransparan();\n txtB9AK7_19 = new pkl49.component.TextField();\n panelTransparan338 = new pkl49.component.PanelTransparan();\n txtB9AK8_19 = new pkl49.component.TextField();\n panelTransparan339 = new pkl49.component.PanelTransparan();\n txtB9AK9_19 = new pkl49.component.TextField();\n panelTransparan340 = new pkl49.component.PanelTransparan();\n txtB9AK10_19 = new pkl49.component.TextField();\n panelTransparan341 = new pkl49.component.PanelTransparan();\n txtB9AK11_19 = new pkl49.component.TextField();\n panelTransparan342 = new pkl49.component.PanelTransparan();\n panelTransparan343 = new pkl49.component.PanelTransparan();\n txtB9AK13_19 = new pkl49.component.TextField();\n txtB9AK13_19Als = new pkl49.component.TextField();\n panelTransparan344 = new pkl49.component.PanelTransparan();\n label117 = new pkl49.component.Label();\n panelTransparan345 = new pkl49.component.PanelTransparan();\n txtB9AK2_20 = new pkl49.component.TextField();\n panelTransparan346 = new pkl49.component.PanelTransparan();\n panelTransparan347 = new pkl49.component.PanelTransparan();\n panelTransparan348 = new pkl49.component.PanelTransparan();\n txtB9AK5_20 = new pkl49.component.TextField();\n txtB9AK5_20Als = new pkl49.component.TextField();\n panelTransparan349 = new pkl49.component.PanelTransparan();\n txtB9AK6_20 = new pkl49.component.TextField();\n panelTransparan350 = new pkl49.component.PanelTransparan();\n txtB9AK7_20 = new pkl49.component.TextField();\n panelTransparan351 = new pkl49.component.PanelTransparan();\n txtB9AK8_20 = new pkl49.component.TextField();\n panelTransparan352 = new pkl49.component.PanelTransparan();\n txtB9AK9_20 = new pkl49.component.TextField();\n panelTransparan353 = new pkl49.component.PanelTransparan();\n txtB9AK10_20 = new pkl49.component.TextField();\n panelTransparan354 = new pkl49.component.PanelTransparan();\n txtB9AK11_20 = new pkl49.component.TextField();\n panelTransparan355 = new pkl49.component.PanelTransparan();\n panelTransparan356 = new pkl49.component.PanelTransparan();\n txtB9AK13_20 = new pkl49.component.TextField();\n txtB9AK13_20Als = new pkl49.component.TextField();\n panelTransparan357 = new pkl49.component.PanelTransparan();\n label118 = new pkl49.component.Label();\n panelTransparan358 = new pkl49.component.PanelTransparan();\n txtB9AK2_21 = new pkl49.component.TextField();\n panelTransparan359 = new pkl49.component.PanelTransparan();\n panelTransparan360 = new pkl49.component.PanelTransparan();\n panelTransparan361 = new pkl49.component.PanelTransparan();\n txtB9AK5_21 = new pkl49.component.TextField();\n txtB9AK5_21Als = new pkl49.component.TextField();\n panelTransparan362 = new pkl49.component.PanelTransparan();\n txtB9AK6_21 = new pkl49.component.TextField();\n panelTransparan363 = new pkl49.component.PanelTransparan();\n txtB9AK7_21 = new pkl49.component.TextField();\n panelTransparan364 = new pkl49.component.PanelTransparan();\n txtB9AK8_21 = new pkl49.component.TextField();\n panelTransparan365 = new pkl49.component.PanelTransparan();\n txtB9AK9_21 = new pkl49.component.TextField();\n panelTransparan366 = new pkl49.component.PanelTransparan();\n txtB9AK10_21 = new pkl49.component.TextField();\n panelTransparan367 = new pkl49.component.PanelTransparan();\n txtB9AK11_21 = new pkl49.component.TextField();\n panelTransparan368 = new pkl49.component.PanelTransparan();\n panelTransparan369 = new pkl49.component.PanelTransparan();\n txtB9AK13_21 = new pkl49.component.TextField();\n txtB9AK13_21Als = new pkl49.component.TextField();\n panelTransparan370 = new pkl49.component.PanelTransparan();\n label119 = new pkl49.component.Label();\n panelTransparan371 = new pkl49.component.PanelTransparan();\n txtB9AK2_22 = new pkl49.component.TextField();\n panelTransparan372 = new pkl49.component.PanelTransparan();\n panelTransparan373 = new pkl49.component.PanelTransparan();\n panelTransparan374 = new pkl49.component.PanelTransparan();\n txtB9AK5_22 = new pkl49.component.TextField();\n txtB9AK5_22Als = new pkl49.component.TextField();\n panelTransparan375 = new pkl49.component.PanelTransparan();\n txtB9AK6_22 = new pkl49.component.TextField();\n panelTransparan376 = new pkl49.component.PanelTransparan();\n txtB9AK7_22 = new pkl49.component.TextField();\n panelTransparan377 = new pkl49.component.PanelTransparan();\n txtB9AK8_22 = new pkl49.component.TextField();\n panelTransparan378 = new pkl49.component.PanelTransparan();\n txtB9AK9_22 = new pkl49.component.TextField();\n panelTransparan379 = new pkl49.component.PanelTransparan();\n txtB9AK10_22 = new pkl49.component.TextField();\n panelTransparan380 = new pkl49.component.PanelTransparan();\n txtB9AK11_22 = new pkl49.component.TextField();\n panelTransparan381 = new pkl49.component.PanelTransparan();\n panelTransparan382 = new pkl49.component.PanelTransparan();\n txtB9AK13_22 = new pkl49.component.TextField();\n txtB9AK13_22Als = new pkl49.component.TextField();\n panelTransparan383 = new pkl49.component.PanelTransparan();\n label120 = new pkl49.component.Label();\n panelTransparan384 = new pkl49.component.PanelTransparan();\n txtB9AK2_23 = new pkl49.component.TextField();\n panelTransparan385 = new pkl49.component.PanelTransparan();\n panelTransparan386 = new pkl49.component.PanelTransparan();\n panelTransparan387 = new pkl49.component.PanelTransparan();\n txtB9AK5_23 = new pkl49.component.TextField();\n txtB9AK5_23Als = new pkl49.component.TextField();\n panelTransparan388 = new pkl49.component.PanelTransparan();\n txtB9AK6_23 = new pkl49.component.TextField();\n panelTransparan389 = new pkl49.component.PanelTransparan();\n txtB9AK7_23 = new pkl49.component.TextField();\n panelTransparan390 = new pkl49.component.PanelTransparan();\n txtB9AK8_23 = new pkl49.component.TextField();\n panelTransparan391 = new pkl49.component.PanelTransparan();\n txtB9AK9_23 = new pkl49.component.TextField();\n panelTransparan392 = new pkl49.component.PanelTransparan();\n txtB9AK10_23 = new pkl49.component.TextField();\n panelTransparan393 = new pkl49.component.PanelTransparan();\n txtB9AK11_23 = new pkl49.component.TextField();\n panelTransparan394 = new pkl49.component.PanelTransparan();\n panelTransparan395 = new pkl49.component.PanelTransparan();\n txtB9AK13_23 = new pkl49.component.TextField();\n txtB9AK13_23Als = new pkl49.component.TextField();\n panelTransparan396 = new pkl49.component.PanelTransparan();\n label121 = new pkl49.component.Label();\n panelTransparan397 = new pkl49.component.PanelTransparan();\n txtB9AK2_24 = new pkl49.component.TextField();\n panelTransparan398 = new pkl49.component.PanelTransparan();\n panelTransparan399 = new pkl49.component.PanelTransparan();\n panelTransparan400 = new pkl49.component.PanelTransparan();\n txtB9AK5_24 = new pkl49.component.TextField();\n txtB9AK5_24Als = new pkl49.component.TextField();\n panelTransparan401 = new pkl49.component.PanelTransparan();\n txtB9AK6_24 = new pkl49.component.TextField();\n panelTransparan402 = new pkl49.component.PanelTransparan();\n txtB9AK7_24 = new pkl49.component.TextField();\n panelTransparan403 = new pkl49.component.PanelTransparan();\n txtB9AK8_24 = new pkl49.component.TextField();\n panelTransparan404 = new pkl49.component.PanelTransparan();\n txtB9AK9_24 = new pkl49.component.TextField();\n panelTransparan405 = new pkl49.component.PanelTransparan();\n txtB9AK10_24 = new pkl49.component.TextField();\n panelTransparan406 = new pkl49.component.PanelTransparan();\n txtB9AK11_24 = new pkl49.component.TextField();\n panelTransparan407 = new pkl49.component.PanelTransparan();\n panelTransparan408 = new pkl49.component.PanelTransparan();\n txtB9AK13_24 = new pkl49.component.TextField();\n txtB9AK13_24Als = new pkl49.component.TextField();\n panelTransparan409 = new pkl49.component.PanelTransparan();\n label122 = new pkl49.component.Label();\n panelTransparan410 = new pkl49.component.PanelTransparan();\n txtB9AK2_25 = new pkl49.component.TextField();\n panelTransparan411 = new pkl49.component.PanelTransparan();\n panelTransparan412 = new pkl49.component.PanelTransparan();\n panelTransparan413 = new pkl49.component.PanelTransparan();\n txtB9AK5_25 = new pkl49.component.TextField();\n txtB9AK5_25Als = new pkl49.component.TextField();\n panelTransparan414 = new pkl49.component.PanelTransparan();\n txtB9AK6_25 = new pkl49.component.TextField();\n panelTransparan415 = new pkl49.component.PanelTransparan();\n txtB9AK7_25 = new pkl49.component.TextField();\n panelTransparan416 = new pkl49.component.PanelTransparan();\n txtB9AK8_25 = new pkl49.component.TextField();\n panelTransparan417 = new pkl49.component.PanelTransparan();\n txtB9AK9_25 = new pkl49.component.TextField();\n panelTransparan418 = new pkl49.component.PanelTransparan();\n txtB9AK10_25 = new pkl49.component.TextField();\n panelTransparan419 = new pkl49.component.PanelTransparan();\n txtB9AK11_25 = new pkl49.component.TextField();\n panelTransparan420 = new pkl49.component.PanelTransparan();\n panelTransparan421 = new pkl49.component.PanelTransparan();\n txtB9AK13_25 = new pkl49.component.TextField();\n txtB9AK13_25Als = new pkl49.component.TextField();\n panelTransparan422 = new pkl49.component.PanelTransparan();\n panelTransparan423 = new pkl49.component.PanelTransparan();\n panelTransparan424 = new pkl49.component.PanelTransparan();\n panelTransparan425 = new pkl49.component.PanelTransparan();\n panelTransparan426 = new pkl49.component.PanelTransparan();\n panelTransparan427 = new pkl49.component.PanelTransparan();\n panelTransparan428 = new pkl49.component.PanelTransparan();\n panelTransparan429 = new pkl49.component.PanelTransparan();\n panelTransparan430 = new pkl49.component.PanelTransparan();\n panelTransparan431 = new pkl49.component.PanelTransparan();\n panelTransparan432 = new pkl49.component.PanelTransparan();\n panelTransparan433 = new pkl49.component.PanelTransparan();\n panelTransparan434 = new pkl49.component.PanelTransparan();\n\n setOpaque(false);\n setLayout(new java.awt.BorderLayout());\n\n panelTabel.setLayout(new java.awt.GridBagLayout());\n\n panelTransparan2.setAlpha(70);\n panelTransparan2.setLayout(new java.awt.GridBagLayout());\n\n label1.setText(\"VIII. PENGETAHUAN TENTANG PROGRAM KESEHATAN GRATIS, PROGRAM PENDIDIKAN GRATIS, DAN PENGETAHUAN TENTANG KESEHATAN\"); // NOI18N\n label1.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan2.add(label1, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridwidth = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan2, gridBagConstraints);\n\n panelTransparan3.setAlpha(70);\n panelTransparan3.setLayout(new java.awt.GridBagLayout());\n\n label2.setText(\"VIII.A KESEHATAN DAN PENDIDIKAN GRATIS DALAM SATU TAHUN TERAKHIR\"); // NOI18N\n label2.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan3.add(label2, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan3, gridBagConstraints);\n\n panelTransparan4.setAlpha(50);\n panelTransparan4.setLayout(new java.awt.GridBagLayout());\n\n label3.setText(\"No.\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label3, gridBagConstraints);\n\n label4.setText(\"ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label4, gridBagConstraints);\n\n label5.setText(\"Urut\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label5, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridheight = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan4, gridBagConstraints);\n\n panelTransparan5.setAlpha(50);\n panelTransparan5.setLayout(new java.awt.GridBagLayout());\n\n label6.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label6, gridBagConstraints);\n\n label8.setText(\"mempunyai jaminan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label8, gridBagConstraints);\n\n label10.setText(\"pembiayaan/asuransi\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label10, gridBagConstraints);\n\n label11.setText(\"kesehatan untuk di\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label11, gridBagConstraints);\n\n label12.setText(\"[Isikan kode]\"); // NOI18N\n label12.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label12, gridBagConstraints);\n\n label39.setText(\"bawah ini?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label39, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan5, gridBagConstraints);\n\n panelTransparan7.setAlpha(50);\n panelTransparan7.setLayout(new java.awt.GridBagLayout());\n\n label9.setText(\"0. Tidak punya\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label9, gridBagConstraints);\n\n label13.setText(\"1. Askes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label13, gridBagConstraints);\n\n label14.setText(\"2. Asabri\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label14, gridBagConstraints);\n\n label15.setText(\"4. Jamsostek\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label15, gridBagConstraints);\n\n label16.setText(\"8. Jamkes Swasta\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label16, gridBagConstraints);\n\n label17.setText(\"16. Jamkesmas\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label17, gridBagConstraints);\n\n label18.setText(\"32. Jamkes Mandiri\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label18, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan7, gridBagConstraints);\n\n panelTransparan13.setAlpha(50);\n panelTransparan13.setLayout(new java.awt.GridBagLayout());\n\n label19.setText(\"Apakah ada ART yang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label19, gridBagConstraints);\n\n label21.setText(\"mengetahui tentang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label21, gridBagConstraints);\n\n label22.setText(\"program pemerintah\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label22, gridBagConstraints);\n\n label24.setText(\"Jamsoskes semesta?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label24, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan13, gridBagConstraints);\n\n panelTransparan14.setAlpha(50);\n panelTransparan14.setLayout(new java.awt.GridBagLayout());\n\n label26.setText(\"1=ya [Sumber informasi]\"); // NOI18N\n label26.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label26, gridBagConstraints);\n\n label27.setText(\"2=tidak\"); // NOI18N\n label27.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label27, gridBagConstraints);\n\n label89.setText(\"[Jika kode=2,\"); // NOI18N\n label89.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label89, gridBagConstraints);\n\n label90.setText(\"lanjut ke K.12]\"); // NOI18N\n label90.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label90, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan14, gridBagConstraints);\n\n panelTransparan15.setAlpha(50);\n panelTransparan15.setLayout(new java.awt.GridBagLayout());\n\n label28.setText(\"Apakah ada ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label28, gridBagConstraints);\n\n label29.setText(\"tentang siapa\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label29, gridBagConstraints);\n\n label30.setText(\"yang mengetahui\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label30, gridBagConstraints);\n\n label31.setText(\"yang berhak\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label31, gridBagConstraints);\n\n label32.setText(\"pelayanan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label32, gridBagConstraints);\n\n label33.setText(\"Jamsoskes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label33, gridBagConstraints);\n\n label34.setText(\"semesta?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 7;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label34, gridBagConstraints);\n\n label37.setText(\"mendapatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label37, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan15, gridBagConstraints);\n\n panelTransparan16.setAlpha(50);\n panelTransparan16.setLayout(new java.awt.GridBagLayout());\n\n label35.setText(\"1=ya\"); // NOI18N\n label35.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label35, gridBagConstraints);\n\n label36.setText(\"2=tidak\"); // NOI18N\n label36.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label36, gridBagConstraints);\n\n label38.setText(\"[Isikan jika\"); // NOI18N\n label38.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label38, gridBagConstraints);\n\n label40.setText(\"K.3=1]\"); // NOI18N\n label40.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label40, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan16, gridBagConstraints);\n\n panelTransparan17.setAlpha(50);\n panelTransparan17.setLayout(new java.awt.GridBagLayout());\n\n label41.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label41, gridBagConstraints);\n\n label42.setText(\"[Isikan jika K.2=0 dan\"); // NOI18N\n label42.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label42, gridBagConstraints);\n\n label43.setText(\"jamsoskes?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label43, gridBagConstraints);\n\n label44.setText(\"K.3=1]\"); // NOI18N\n label44.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label44, gridBagConstraints);\n\n label91.setText(\"memanfaatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label91, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan17, gridBagConstraints);\n\n panelTransparan18.setAlpha(50);\n panelTransparan18.setLayout(new java.awt.GridBagLayout());\n\n label49.setText(\"1=ya\"); // NOI18N\n label49.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label49, gridBagConstraints);\n\n label50.setText(\"2=tidak [alasan]\"); // NOI18N\n label50.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label50, gridBagConstraints);\n\n label51.setText(\"[jika kode=2 Lanjut\"); // NOI18N\n label51.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label51, gridBagConstraints);\n\n label52.setText(\"ke K12]\"); // NOI18N\n label52.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label52, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan18, gridBagConstraints);\n\n panelTransparan19.setAlpha(50);\n panelTransparan19.setLayout(new java.awt.GridBagLayout());\n\n label45.setText(\"Jenis pelayanan yang pernah didapatkan dengan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan19.add(label45, gridBagConstraints);\n\n label46.setText(\"memanfaatkan jamsoskes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan19.add(label46, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan19, gridBagConstraints);\n\n panelTransparan20.setAlpha(50);\n panelTransparan20.setLayout(new java.awt.GridBagLayout());\n\n label47.setText(\"1=ya 2=tidak\"); // NOI18N\n label47.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan20.add(label47, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridwidth = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan20, gridBagConstraints);\n\n panelTransparan27.setAlpha(50);\n panelTransparan27.setLayout(new java.awt.GridBagLayout());\n\n label63.setText(\"Rawat Jalan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan27.add(label63, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan27, gridBagConstraints);\n\n panelTransparan23.setAlpha(50);\n panelTransparan23.setLayout(new java.awt.GridBagLayout());\n\n label55.setText(\"Rawat Inap\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan23.add(label55, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan23, gridBagConstraints);\n\n panelTransparan24.setAlpha(50);\n panelTransparan24.setLayout(new java.awt.GridBagLayout());\n\n label56.setText(\"Gawat Darurat\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan24.add(label56, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan24, gridBagConstraints);\n\n panelTransparan21.setAlpha(50);\n panelTransparan21.setLayout(new java.awt.GridBagLayout());\n\n label48.setText(\"Tahap 1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan21.add(label48, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan21, gridBagConstraints);\n\n panelTransparan22.setAlpha(50);\n panelTransparan22.setLayout(new java.awt.GridBagLayout());\n\n label54.setText(\"Lanjutan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan22.add(label54, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan22, gridBagConstraints);\n\n panelTransparan25.setAlpha(50);\n panelTransparan25.setLayout(new java.awt.GridBagLayout());\n\n label57.setText(\"Tahap 1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan25.add(label57, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan25, gridBagConstraints);\n\n panelTransparan26.setAlpha(50);\n panelTransparan26.setLayout(new java.awt.GridBagLayout());\n\n label58.setText(\"Lanjutan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan26.add(label58, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan26, gridBagConstraints);\n\n panelTransparan28.setAlpha(50);\n panelTransparan28.setLayout(new java.awt.GridBagLayout());\n\n label59.setText(\"Puskesmas\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan28.add(label59, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan28, gridBagConstraints);\n\n panelTransparan29.setAlpha(50);\n panelTransparan29.setLayout(new java.awt.GridBagLayout());\n\n label60.setText(\"Rumah\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan29.add(label60, gridBagConstraints);\n\n label61.setText(\"Sakit\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan29.add(label61, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan29, gridBagConstraints);\n\n panelTransparan30.setAlpha(50);\n panelTransparan30.setLayout(new java.awt.GridBagLayout());\n\n label62.setText(\"Apakah ada ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label62, gridBagConstraints);\n\n label64.setText(\"tentang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label64, gridBagConstraints);\n\n label65.setText(\"yang mengetahui\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label65, gridBagConstraints);\n\n label66.setText(\"program\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label66, gridBagConstraints);\n\n label67.setText(\"gratis?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label67, gridBagConstraints);\n\n label70.setText(\"pendidikan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label70, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan30, gridBagConstraints);\n\n panelTransparan31.setAlpha(50);\n panelTransparan31.setLayout(new java.awt.GridBagLayout());\n\n label68.setText(\"1=ya\"); // NOI18N\n label68.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label68, gridBagConstraints);\n\n label69.setText(\"[Jika kode=2\"); // NOI18N\n label69.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label69, gridBagConstraints);\n\n label92.setText(\"Blok IX.B]\"); // NOI18N\n label92.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label92, gridBagConstraints);\n\n label93.setText(\"2=tidak\"); // NOI18N\n label93.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label93, gridBagConstraints);\n\n label104.setText(\"lanjut ke\"); // NOI18N\n label104.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label104, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan31, gridBagConstraints);\n\n panelTransparan32.setAlpha(50);\n panelTransparan32.setLayout(new java.awt.GridBagLayout());\n\n label71.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label71, gridBagConstraints);\n\n label76.setText(\"pendidikan gratis?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label76, gridBagConstraints);\n\n label105.setText(\"memanfaatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label105, gridBagConstraints);\n\n label106.setText(\"7-18 tahun]\"); // NOI18N\n label106.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label106, gridBagConstraints);\n\n label107.setText(\"[Ditanyakan untuk ART\"); // NOI18N\n label107.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label107, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan32, gridBagConstraints);\n\n panelTransparan33.setAlpha(50);\n panelTransparan33.setLayout(new java.awt.GridBagLayout());\n\n label77.setText(\"1=ya\"); // NOI18N\n label77.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label77, gridBagConstraints);\n\n label78.setText(\"alasan jika K.12=1]\"); // NOI18N\n label78.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label78, gridBagConstraints);\n\n label79.setText(\"2=tidak [tanyakan\"); // NOI18N\n label79.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label79, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan33, gridBagConstraints);\n\n panelTransparan34.setAlpha(30);\n panelTransparan34.setLayout(new java.awt.GridBagLayout());\n\n label72.setText(\"(1)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan34.add(label72, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan34, gridBagConstraints);\n\n panelTransparan35.setAlpha(30);\n panelTransparan35.setLayout(new java.awt.GridBagLayout());\n\n label73.setText(\"(2)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan35.add(label73, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan35, gridBagConstraints);\n\n panelTransparan36.setAlpha(30);\n panelTransparan36.setLayout(new java.awt.GridBagLayout());\n\n label74.setText(\"(3)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan36.add(label74, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan36, gridBagConstraints);\n\n panelTransparan37.setAlpha(30);\n panelTransparan37.setLayout(new java.awt.GridBagLayout());\n\n label75.setText(\"(4)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan37.add(label75, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan37, gridBagConstraints);\n\n panelTransparan38.setAlpha(30);\n panelTransparan38.setLayout(new java.awt.GridBagLayout());\n\n label80.setText(\"(5)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan38.add(label80, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan38, gridBagConstraints);\n\n panelTransparan39.setAlpha(30);\n panelTransparan39.setLayout(new java.awt.GridBagLayout());\n\n label81.setText(\"(6)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan39.add(label81, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan39, gridBagConstraints);\n\n panelTransparan40.setAlpha(30);\n panelTransparan40.setLayout(new java.awt.GridBagLayout());\n\n label82.setText(\"(7)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan40.add(label82, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan40, gridBagConstraints);\n\n panelTransparan41.setAlpha(30);\n panelTransparan41.setLayout(new java.awt.GridBagLayout());\n\n label83.setText(\"(8)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan41.add(label83, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan41, gridBagConstraints);\n\n panelTransparan42.setAlpha(30);\n panelTransparan42.setLayout(new java.awt.GridBagLayout());\n\n label84.setText(\"(9)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan42.add(label84, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan42, gridBagConstraints);\n\n panelTransparan43.setAlpha(30);\n panelTransparan43.setLayout(new java.awt.GridBagLayout());\n\n label85.setText(\"(10)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan43.add(label85, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan43, gridBagConstraints);\n\n panelTransparan44.setAlpha(30);\n panelTransparan44.setLayout(new java.awt.GridBagLayout());\n\n label86.setText(\"(11)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan44.add(label86, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan44, gridBagConstraints);\n\n panelTransparan45.setAlpha(30);\n panelTransparan45.setLayout(new java.awt.GridBagLayout());\n\n label87.setText(\"(12)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan45.add(label87, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan45, gridBagConstraints);\n\n panelTransparan46.setAlpha(30);\n panelTransparan46.setLayout(new java.awt.GridBagLayout());\n\n label88.setText(\"(13)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan46.add(label88, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan46, gridBagConstraints);\n\n panelTransparan52.setLayout(new java.awt.GridBagLayout());\n\n label94.setText(\"1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan52.add(label94, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan52, gridBagConstraints);\n\n txtB9AK2_1.setColumns(3);\n txtB9AK2_1.setLength(2);\n txtB9AK2_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan53.add(txtB9AK2_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan53, gridBagConstraints);\n\n panelTransparan54.setAlpha(70);\n panelTransparan54.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK4_26.setColumns(2);\n txtB9AK4_26.setMaxDigit('2');\n txtB9AK4_26.setMinDigit('1');\n txtB9AK4_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan54.add(txtB9AK4_26, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan54, gridBagConstraints);\n\n panelTransparan55.setAlpha(70);\n panelTransparan55.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK3_26.setColumns(2);\n txtB9AK3_26.setMaxDigit('2');\n txtB9AK3_26.setMinDigit('1');\n txtB9AK3_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 2);\n panelTransparan55.add(txtB9AK3_26, gridBagConstraints);\n\n txtB9AK3_26Als.setColumns(3);\n txtB9AK3_26Als.setCharType(1);\n txtB9AK3_26Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtB9AK3_26AlsfocusTxt(evt);\n }\n });\n panelTransparan55.add(txtB9AK3_26Als, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan55, gridBagConstraints);\n\n txtB9AK5_1.setColumns(2);\n txtB9AK5_1.setMaxDigit('2');\n txtB9AK5_1.setMinDigit('1');\n txtB9AK5_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan56.add(txtB9AK5_1);\n\n txtB9AK5_1Als.setColumns(3);\n txtB9AK5_1Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan56.add(txtB9AK5_1Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan56, gridBagConstraints);\n\n txtB9AK6_1.setColumns(2);\n txtB9AK6_1.setMaxDigit('2');\n txtB9AK6_1.setMinDigit('1');\n txtB9AK6_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan57.add(txtB9AK6_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan57, gridBagConstraints);\n\n txtB9AK7_1.setColumns(2);\n txtB9AK7_1.setMaxDigit('2');\n txtB9AK7_1.setMinDigit('1');\n txtB9AK7_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan58.add(txtB9AK7_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan58, gridBagConstraints);\n\n txtB9AK8_1.setColumns(2);\n txtB9AK8_1.setMaxDigit('2');\n txtB9AK8_1.setMinDigit('1');\n txtB9AK8_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan59.add(txtB9AK8_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan59, gridBagConstraints);\n\n txtB9AK9_1.setColumns(2);\n txtB9AK9_1.setMaxDigit('2');\n txtB9AK9_1.setMinDigit('1');\n txtB9AK9_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan60.add(txtB9AK9_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan60, gridBagConstraints);\n\n txtB9AK10_1.setColumns(2);\n txtB9AK10_1.setMaxDigit('2');\n txtB9AK10_1.setMinDigit('1');\n txtB9AK10_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan61.add(txtB9AK10_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan61, gridBagConstraints);\n\n txtB9AK11_1.setColumns(2);\n txtB9AK11_1.setMaxDigit('2');\n txtB9AK11_1.setMinDigit('1');\n txtB9AK11_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan62.add(txtB9AK11_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan62, gridBagConstraints);\n\n panelTransparan63.setAlpha(70);\n panelTransparan63.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK12_26.setColumns(2);\n txtB9AK12_26.setMaxDigit('2');\n txtB9AK12_26.setMinDigit('1');\n txtB9AK12_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan63.add(txtB9AK12_26, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan63, gridBagConstraints);\n\n txtB9AK13_1.setColumns(2);\n txtB9AK13_1.setMaxDigit('2');\n txtB9AK13_1.setMinDigit('1');\n txtB9AK13_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan64.add(txtB9AK13_1);\n\n txtB9AK13_1Als.setColumns(3);\n txtB9AK13_1Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan64.add(txtB9AK13_1Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan64, gridBagConstraints);\n\n panelTransparan70.setLayout(new java.awt.GridBagLayout());\n\n label95.setText(\"4\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan70.add(label95, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan70, gridBagConstraints);\n\n txtB9AK2_2.setColumns(3);\n txtB9AK2_2.setLength(2);\n txtB9AK2_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan71.add(txtB9AK2_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan71, gridBagConstraints);\n\n panelTransparan72.setAlpha(70);\n panelTransparan72.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan72, gridBagConstraints);\n\n panelTransparan73.setAlpha(70);\n panelTransparan73.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan73, gridBagConstraints);\n\n txtB9AK5_2.setColumns(2);\n txtB9AK5_2.setMaxDigit('2');\n txtB9AK5_2.setMinDigit('1');\n txtB9AK5_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan74.add(txtB9AK5_2);\n\n txtB9AK5_2Als.setColumns(3);\n txtB9AK5_2Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan74.add(txtB9AK5_2Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan74, gridBagConstraints);\n\n txtB9AK6_2.setColumns(2);\n txtB9AK6_2.setMaxDigit('2');\n txtB9AK6_2.setMinDigit('1');\n txtB9AK6_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan75.add(txtB9AK6_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan75, gridBagConstraints);\n\n txtB9AK7_2.setColumns(2);\n txtB9AK7_2.setMaxDigit('2');\n txtB9AK7_2.setMinDigit('1');\n txtB9AK7_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan76.add(txtB9AK7_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan76, gridBagConstraints);\n\n txtB9AK8_2.setColumns(2);\n txtB9AK8_2.setMaxDigit('2');\n txtB9AK8_2.setMinDigit('1');\n txtB9AK8_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan77.add(txtB9AK8_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan77, gridBagConstraints);\n\n txtB9AK9_2.setColumns(2);\n txtB9AK9_2.setMaxDigit('2');\n txtB9AK9_2.setMinDigit('1');\n txtB9AK9_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan78.add(txtB9AK9_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan78, gridBagConstraints);\n\n txtB9AK10_2.setColumns(2);\n txtB9AK10_2.setMaxDigit('2');\n txtB9AK10_2.setMinDigit('1');\n txtB9AK10_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan79.add(txtB9AK10_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan79, gridBagConstraints);\n\n txtB9AK11_2.setColumns(2);\n txtB9AK11_2.setMaxDigit('2');\n txtB9AK11_2.setMinDigit('1');\n txtB9AK11_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan80.add(txtB9AK11_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan80, gridBagConstraints);\n\n panelTransparan81.setAlpha(70);\n panelTransparan81.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan81, gridBagConstraints);\n\n txtB9AK13_2.setColumns(2);\n txtB9AK13_2.setMaxDigit('2');\n txtB9AK13_2.setMinDigit('1');\n txtB9AK13_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan82.add(txtB9AK13_2);\n\n txtB9AK13_2Als.setColumns(3);\n txtB9AK13_2Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan82.add(txtB9AK13_2Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan82, gridBagConstraints);\n\n panelTransparan88.setLayout(new java.awt.GridBagLayout());\n\n label96.setText(\"5\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan88.add(label96, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan88, gridBagConstraints);\n\n txtB9AK2_3.setColumns(3);\n txtB9AK2_3.setLength(2);\n txtB9AK2_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan89.add(txtB9AK2_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan89, gridBagConstraints);\n\n panelTransparan90.setAlpha(70);\n panelTransparan90.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan90, gridBagConstraints);\n\n panelTransparan91.setAlpha(70);\n panelTransparan91.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan91, gridBagConstraints);\n\n txtB9AK5_3.setColumns(2);\n txtB9AK5_3.setMaxDigit('2');\n txtB9AK5_3.setMinDigit('1');\n txtB9AK5_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan92.add(txtB9AK5_3);\n\n txtB9AK5_3Als.setColumns(3);\n txtB9AK5_3Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan92.add(txtB9AK5_3Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan92, gridBagConstraints);\n\n txtB9AK6_3.setColumns(2);\n txtB9AK6_3.setMaxDigit('2');\n txtB9AK6_3.setMinDigit('1');\n txtB9AK6_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan93.add(txtB9AK6_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan93, gridBagConstraints);\n\n txtB9AK7_3.setColumns(2);\n txtB9AK7_3.setMaxDigit('2');\n txtB9AK7_3.setMinDigit('1');\n txtB9AK7_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan94.add(txtB9AK7_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan94, gridBagConstraints);\n\n txtB9AK9_3.setColumns(2);\n txtB9AK9_3.setMaxDigit('2');\n txtB9AK9_3.setMinDigit('1');\n txtB9AK9_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan95.add(txtB9AK9_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan95, gridBagConstraints);\n\n txtB9AK8_3.setColumns(2);\n txtB9AK8_3.setMaxDigit('2');\n txtB9AK8_3.setMinDigit('1');\n txtB9AK8_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan96.add(txtB9AK8_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan96, gridBagConstraints);\n\n txtB9AK10_3.setColumns(2);\n txtB9AK10_3.setMaxDigit('2');\n txtB9AK10_3.setMinDigit('1');\n txtB9AK10_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan97.add(txtB9AK10_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan97, gridBagConstraints);\n\n txtB9AK11_3.setColumns(2);\n txtB9AK11_3.setMaxDigit('2');\n txtB9AK11_3.setMinDigit('1');\n txtB9AK11_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan98.add(txtB9AK11_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan98, gridBagConstraints);\n\n panelTransparan99.setAlpha(70);\n panelTransparan99.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan99, gridBagConstraints);\n\n txtB9AK13_3.setColumns(2);\n txtB9AK13_3.setMaxDigit('2');\n txtB9AK13_3.setMinDigit('1');\n txtB9AK13_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan100.add(txtB9AK13_3);\n\n txtB9AK13_3Als.setColumns(3);\n txtB9AK13_3Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan100.add(txtB9AK13_3Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan100, gridBagConstraints);\n\n panelTransparan106.setLayout(new java.awt.GridBagLayout());\n\n label97.setText(\"3\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan106.add(label97, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan106, gridBagConstraints);\n\n txtB9AK2_4.setColumns(3);\n txtB9AK2_4.setLength(2);\n txtB9AK2_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan107.add(txtB9AK2_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan107, gridBagConstraints);\n\n panelTransparan108.setAlpha(70);\n panelTransparan108.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan108, gridBagConstraints);\n\n panelTransparan109.setAlpha(70);\n panelTransparan109.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan109, gridBagConstraints);\n\n txtB9AK5_4.setColumns(2);\n txtB9AK5_4.setMaxDigit('2');\n txtB9AK5_4.setMinDigit('1');\n txtB9AK5_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan110.add(txtB9AK5_4);\n\n txtB9AK5_4Als.setColumns(3);\n txtB9AK5_4Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan110.add(txtB9AK5_4Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan110, gridBagConstraints);\n\n txtB9AK6_4.setColumns(2);\n txtB9AK6_4.setMaxDigit('2');\n txtB9AK6_4.setMinDigit('1');\n txtB9AK6_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan111.add(txtB9AK6_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan111, gridBagConstraints);\n\n txtB9AK7_4.setColumns(2);\n txtB9AK7_4.setMaxDigit('2');\n txtB9AK7_4.setMinDigit('1');\n txtB9AK7_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan112.add(txtB9AK7_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan112, gridBagConstraints);\n\n txtB9AK8_4.setColumns(2);\n txtB9AK8_4.setMaxDigit('2');\n txtB9AK8_4.setMinDigit('1');\n txtB9AK8_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan113.add(txtB9AK8_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan113, gridBagConstraints);\n\n txtB9AK9_4.setColumns(2);\n txtB9AK9_4.setMaxDigit('2');\n txtB9AK9_4.setMinDigit('1');\n txtB9AK9_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan114.add(txtB9AK9_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan114, gridBagConstraints);\n\n txtB9AK10_4.setColumns(2);\n txtB9AK10_4.setMaxDigit('2');\n txtB9AK10_4.setMinDigit('1');\n txtB9AK10_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan115.add(txtB9AK10_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan115, gridBagConstraints);\n\n txtB9AK11_4.setColumns(2);\n txtB9AK11_4.setMaxDigit('2');\n txtB9AK11_4.setMinDigit('1');\n txtB9AK11_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan116.add(txtB9AK11_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan116, gridBagConstraints);\n\n panelTransparan117.setAlpha(70);\n panelTransparan117.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan117, gridBagConstraints);\n\n txtB9AK13_4.setColumns(2);\n txtB9AK13_4.setMaxDigit('2');\n txtB9AK13_4.setMinDigit('1');\n txtB9AK13_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan118.add(txtB9AK13_4);\n\n txtB9AK13_4Als.setColumns(3);\n txtB9AK13_4Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan118.add(txtB9AK13_4Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan118, gridBagConstraints);\n\n panelTransparan124.setLayout(new java.awt.GridBagLayout());\n\n label98.setText(\"6\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan124.add(label98, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan124, gridBagConstraints);\n\n txtB9AK2_5.setColumns(3);\n txtB9AK2_5.setLength(2);\n txtB9AK2_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan125.add(txtB9AK2_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan125, gridBagConstraints);\n\n panelTransparan126.setAlpha(70);\n panelTransparan126.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan126, gridBagConstraints);\n\n panelTransparan127.setAlpha(70);\n panelTransparan127.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan127, gridBagConstraints);\n\n txtB9AK5_5.setColumns(2);\n txtB9AK5_5.setMaxDigit('2');\n txtB9AK5_5.setMinDigit('1');\n txtB9AK5_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan128.add(txtB9AK5_5);\n\n txtB9AK5_5Als.setColumns(3);\n txtB9AK5_5Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan128.add(txtB9AK5_5Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan128, gridBagConstraints);\n\n txtB9AK6_5.setColumns(2);\n txtB9AK6_5.setMaxDigit('2');\n txtB9AK6_5.setMinDigit('1');\n txtB9AK6_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan129.add(txtB9AK6_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan129, gridBagConstraints);\n\n txtB9AK7_5.setColumns(2);\n txtB9AK7_5.setMaxDigit('2');\n txtB9AK7_5.setMinDigit('1');\n txtB9AK7_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan130.add(txtB9AK7_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan130, gridBagConstraints);\n\n txtB9AK8_5.setColumns(2);\n txtB9AK8_5.setMaxDigit('2');\n txtB9AK8_5.setMinDigit('1');\n txtB9AK8_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan131.add(txtB9AK8_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan131, gridBagConstraints);\n\n txtB9AK9_5.setColumns(2);\n txtB9AK9_5.setMaxDigit('2');\n txtB9AK9_5.setMinDigit('1');\n txtB9AK9_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan132.add(txtB9AK9_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan132, gridBagConstraints);\n\n txtB9AK10_5.setColumns(2);\n txtB9AK10_5.setMaxDigit('2');\n txtB9AK10_5.setMinDigit('1');\n txtB9AK10_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan133.add(txtB9AK10_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan133, gridBagConstraints);\n\n txtB9AK11_5.setColumns(2);\n txtB9AK11_5.setMaxDigit('2');\n txtB9AK11_5.setMinDigit('1');\n txtB9AK11_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan134.add(txtB9AK11_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan134, gridBagConstraints);\n\n panelTransparan135.setAlpha(70);\n panelTransparan135.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan135, gridBagConstraints);\n\n txtB9AK13_5.setColumns(2);\n txtB9AK13_5.setMaxDigit('2');\n txtB9AK13_5.setMinDigit('1');\n txtB9AK13_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan136.add(txtB9AK13_5);\n\n txtB9AK13_5Als.setColumns(3);\n txtB9AK13_5Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan136.add(txtB9AK13_5Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan136, gridBagConstraints);\n\n panelTransparan142.setLayout(new java.awt.GridBagLayout());\n\n label99.setText(\"2\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan142.add(label99, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan142, gridBagConstraints);\n\n txtB9AK2_6.setColumns(3);\n txtB9AK2_6.setLength(2);\n txtB9AK2_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan143.add(txtB9AK2_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan143, gridBagConstraints);\n\n panelTransparan144.setAlpha(70);\n panelTransparan144.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan144, gridBagConstraints);\n\n panelTransparan145.setAlpha(70);\n panelTransparan145.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan145, gridBagConstraints);\n\n txtB9AK5_6.setColumns(2);\n txtB9AK5_6.setMaxDigit('2');\n txtB9AK5_6.setMinDigit('1');\n txtB9AK5_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan146.add(txtB9AK5_6);\n\n txtB9AK5_6Als.setColumns(3);\n txtB9AK5_6Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan146.add(txtB9AK5_6Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan146, gridBagConstraints);\n\n txtB9AK6_6.setColumns(2);\n txtB9AK6_6.setMaxDigit('2');\n txtB9AK6_6.setMinDigit('1');\n txtB9AK6_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan147.add(txtB9AK6_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan147, gridBagConstraints);\n\n txtB9AK7_6.setColumns(2);\n txtB9AK7_6.setMaxDigit('2');\n txtB9AK7_6.setMinDigit('1');\n txtB9AK7_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan148.add(txtB9AK7_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan148, gridBagConstraints);\n\n txtB9AK8_6.setColumns(2);\n txtB9AK8_6.setMaxDigit('2');\n txtB9AK8_6.setMinDigit('1');\n txtB9AK8_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan149.add(txtB9AK8_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan149, gridBagConstraints);\n\n txtB9AK9_6.setColumns(2);\n txtB9AK9_6.setMaxDigit('2');\n txtB9AK9_6.setMinDigit('1');\n txtB9AK9_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan150.add(txtB9AK9_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan150, gridBagConstraints);\n\n txtB9AK10_6.setColumns(2);\n txtB9AK10_6.setMaxDigit('2');\n txtB9AK10_6.setMinDigit('1');\n txtB9AK10_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan151.add(txtB9AK10_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan151, gridBagConstraints);\n\n txtB9AK11_6.setColumns(2);\n txtB9AK11_6.setMaxDigit('2');\n txtB9AK11_6.setMinDigit('1');\n txtB9AK11_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan152.add(txtB9AK11_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan152, gridBagConstraints);\n\n panelTransparan153.setAlpha(70);\n panelTransparan153.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan153, gridBagConstraints);\n\n txtB9AK13_6.setColumns(2);\n txtB9AK13_6.setMaxDigit('2');\n txtB9AK13_6.setMinDigit('1');\n txtB9AK13_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan154.add(txtB9AK13_6);\n\n txtB9AK13_6Als.setColumns(3);\n txtB9AK13_6Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan154.add(txtB9AK13_6Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan154, gridBagConstraints);\n\n panelTransparan160.setLayout(new java.awt.GridBagLayout());\n\n label100.setText(\"7\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan160.add(label100, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan160, gridBagConstraints);\n\n txtB9AK2_7.setColumns(3);\n txtB9AK2_7.setLength(2);\n txtB9AK2_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan161.add(txtB9AK2_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan161, gridBagConstraints);\n\n panelTransparan162.setAlpha(70);\n panelTransparan162.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan162, gridBagConstraints);\n\n panelTransparan163.setAlpha(70);\n panelTransparan163.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan163, gridBagConstraints);\n\n txtB9AK5_7.setColumns(2);\n txtB9AK5_7.setMaxDigit('2');\n txtB9AK5_7.setMinDigit('1');\n txtB9AK5_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan164.add(txtB9AK5_7);\n\n txtB9AK5_7Als.setColumns(3);\n txtB9AK5_7Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan164.add(txtB9AK5_7Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan164, gridBagConstraints);\n\n txtB9AK6_7.setColumns(2);\n txtB9AK6_7.setMaxDigit('2');\n txtB9AK6_7.setMinDigit('1');\n txtB9AK6_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan165.add(txtB9AK6_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan165, gridBagConstraints);\n\n txtB9AK7_7.setColumns(2);\n txtB9AK7_7.setMaxDigit('2');\n txtB9AK7_7.setMinDigit('1');\n txtB9AK7_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan166.add(txtB9AK7_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan166, gridBagConstraints);\n\n txtB9AK8_7.setColumns(2);\n txtB9AK8_7.setMaxDigit('2');\n txtB9AK8_7.setMinDigit('1');\n txtB9AK8_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan167.add(txtB9AK8_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan167, gridBagConstraints);\n\n txtB9AK9_7.setColumns(2);\n txtB9AK9_7.setMaxDigit('2');\n txtB9AK9_7.setMinDigit('1');\n txtB9AK9_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan168.add(txtB9AK9_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan168, gridBagConstraints);\n\n txtB9AK10_7.setColumns(2);\n txtB9AK10_7.setMaxDigit('2');\n txtB9AK10_7.setMinDigit('1');\n txtB9AK10_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan169.add(txtB9AK10_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan169, gridBagConstraints);\n\n txtB9AK11_7.setColumns(2);\n txtB9AK11_7.setMaxDigit('2');\n txtB9AK11_7.setMinDigit('1');\n txtB9AK11_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan170.add(txtB9AK11_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan170, gridBagConstraints);\n\n panelTransparan171.setAlpha(70);\n panelTransparan171.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan171, gridBagConstraints);\n\n txtB9AK13_7.setColumns(2);\n txtB9AK13_7.setMaxDigit('2');\n txtB9AK13_7.setMinDigit('1');\n txtB9AK13_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan172.add(txtB9AK13_7);\n\n txtB9AK13_7Als.setColumns(3);\n txtB9AK13_7Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan172.add(txtB9AK13_7Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan172, gridBagConstraints);\n\n panelTransparan178.setLayout(new java.awt.GridBagLayout());\n\n label101.setText(\"8\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan178.add(label101, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan178, gridBagConstraints);\n\n txtB9AK2_8.setColumns(3);\n txtB9AK2_8.setLength(2);\n txtB9AK2_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan179.add(txtB9AK2_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan179, gridBagConstraints);\n\n panelTransparan180.setAlpha(70);\n panelTransparan180.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan180, gridBagConstraints);\n\n panelTransparan181.setAlpha(70);\n panelTransparan181.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan181, gridBagConstraints);\n\n txtB9AK5_8.setColumns(2);\n txtB9AK5_8.setMaxDigit('2');\n txtB9AK5_8.setMinDigit('1');\n txtB9AK5_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan182.add(txtB9AK5_8);\n\n txtB9AK5_8Als.setColumns(3);\n txtB9AK5_8Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan182.add(txtB9AK5_8Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan182, gridBagConstraints);\n\n txtB9AK6_8.setColumns(2);\n txtB9AK6_8.setMaxDigit('2');\n txtB9AK6_8.setMinDigit('1');\n txtB9AK6_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan183.add(txtB9AK6_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan183, gridBagConstraints);\n\n txtB9AK7_8.setColumns(2);\n txtB9AK7_8.setMaxDigit('2');\n txtB9AK7_8.setMinDigit('1');\n txtB9AK7_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan184.add(txtB9AK7_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan184, gridBagConstraints);\n\n txtB9AK8_8.setColumns(2);\n txtB9AK8_8.setMaxDigit('2');\n txtB9AK8_8.setMinDigit('1');\n txtB9AK8_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan185.add(txtB9AK8_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan185, gridBagConstraints);\n\n txtB9AK9_8.setColumns(2);\n txtB9AK9_8.setMaxDigit('2');\n txtB9AK9_8.setMinDigit('1');\n txtB9AK9_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan186.add(txtB9AK9_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan186, gridBagConstraints);\n\n txtB9AK10_8.setColumns(2);\n txtB9AK10_8.setMaxDigit('2');\n txtB9AK10_8.setMinDigit('1');\n txtB9AK10_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan187.add(txtB9AK10_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan187, gridBagConstraints);\n\n txtB9AK11_8.setColumns(2);\n txtB9AK11_8.setMaxDigit('2');\n txtB9AK11_8.setMinDigit('1');\n txtB9AK11_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan188.add(txtB9AK11_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan188, gridBagConstraints);\n\n panelTransparan189.setAlpha(70);\n panelTransparan189.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan189, gridBagConstraints);\n\n txtB9AK13_8.setColumns(2);\n txtB9AK13_8.setMaxDigit('2');\n txtB9AK13_8.setMinDigit('1');\n txtB9AK13_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan190.add(txtB9AK13_8);\n\n txtB9AK13_8Als.setColumns(3);\n txtB9AK13_8Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan190.add(txtB9AK13_8Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan190, gridBagConstraints);\n\n panelTransparan196.setLayout(new java.awt.GridBagLayout());\n\n label102.setText(\"9\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan196.add(label102, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan196, gridBagConstraints);\n\n txtB9AK2_9.setColumns(3);\n txtB9AK2_9.setLength(2);\n txtB9AK2_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan197.add(txtB9AK2_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan197, gridBagConstraints);\n\n panelTransparan198.setAlpha(70);\n panelTransparan198.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan198, gridBagConstraints);\n\n panelTransparan199.setAlpha(70);\n panelTransparan199.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan199, gridBagConstraints);\n\n txtB9AK5_9.setColumns(2);\n txtB9AK5_9.setMaxDigit('2');\n txtB9AK5_9.setMinDigit('1');\n txtB9AK5_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan200.add(txtB9AK5_9);\n\n txtB9AK5_9Als.setColumns(3);\n txtB9AK5_9Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan200.add(txtB9AK5_9Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan200, gridBagConstraints);\n\n txtB9AK6_9.setColumns(2);\n txtB9AK6_9.setMaxDigit('2');\n txtB9AK6_9.setMinDigit('1');\n txtB9AK6_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan201.add(txtB9AK6_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan201, gridBagConstraints);\n\n txtB9AK7_9.setColumns(2);\n txtB9AK7_9.setMaxDigit('2');\n txtB9AK7_9.setMinDigit('1');\n txtB9AK7_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan202.add(txtB9AK7_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan202, gridBagConstraints);\n\n txtB9AK8_9.setColumns(2);\n txtB9AK8_9.setMaxDigit('2');\n txtB9AK8_9.setMinDigit('1');\n txtB9AK8_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan203.add(txtB9AK8_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan203, gridBagConstraints);\n\n txtB9AK9_9.setColumns(2);\n txtB9AK9_9.setMaxDigit('2');\n txtB9AK9_9.setMinDigit('1');\n txtB9AK9_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan204.add(txtB9AK9_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan204, gridBagConstraints);\n\n txtB9AK10_9.setColumns(2);\n txtB9AK10_9.setMaxDigit('2');\n txtB9AK10_9.setMinDigit('1');\n txtB9AK10_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan205.add(txtB9AK10_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan205, gridBagConstraints);\n\n txtB9AK11_9.setColumns(2);\n txtB9AK11_9.setMaxDigit('2');\n txtB9AK11_9.setMinDigit('1');\n txtB9AK11_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan206.add(txtB9AK11_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan206, gridBagConstraints);\n\n panelTransparan207.setAlpha(70);\n panelTransparan207.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan207, gridBagConstraints);\n\n txtB9AK13_9.setColumns(2);\n txtB9AK13_9.setMaxDigit('2');\n txtB9AK13_9.setMinDigit('1');\n txtB9AK13_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan208.add(txtB9AK13_9);\n\n txtB9AK13_9Als.setColumns(3);\n txtB9AK13_9Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan208.add(txtB9AK13_9Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan208, gridBagConstraints);\n\n panelTransparan214.setLayout(new java.awt.GridBagLayout());\n\n label103.setText(\"10\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan214.add(label103, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan214, gridBagConstraints);\n\n txtB9AK2_10.setColumns(3);\n txtB9AK2_10.setLength(2);\n txtB9AK2_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan215.add(txtB9AK2_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan215, gridBagConstraints);\n\n panelTransparan216.setAlpha(70);\n panelTransparan216.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan216, gridBagConstraints);\n\n panelTransparan217.setAlpha(70);\n panelTransparan217.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan217, gridBagConstraints);\n\n txtB9AK5_10.setColumns(2);\n txtB9AK5_10.setMaxDigit('2');\n txtB9AK5_10.setMinDigit('1');\n txtB9AK5_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan218.add(txtB9AK5_10);\n\n txtB9AK5_10Als.setColumns(3);\n txtB9AK5_10Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan218.add(txtB9AK5_10Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan218, gridBagConstraints);\n\n txtB9AK6_10.setColumns(2);\n txtB9AK6_10.setMaxDigit('2');\n txtB9AK6_10.setMinDigit('1');\n txtB9AK6_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan219.add(txtB9AK6_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan219, gridBagConstraints);\n\n txtB9AK7_10.setColumns(2);\n txtB9AK7_10.setMaxDigit('2');\n txtB9AK7_10.setMinDigit('1');\n txtB9AK7_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan220.add(txtB9AK7_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan220, gridBagConstraints);\n\n txtB9AK8_10.setColumns(2);\n txtB9AK8_10.setMaxDigit('2');\n txtB9AK8_10.setMinDigit('1');\n txtB9AK8_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan221.add(txtB9AK8_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan221, gridBagConstraints);\n\n txtB9AK9_10.setColumns(2);\n txtB9AK9_10.setMaxDigit('2');\n txtB9AK9_10.setMinDigit('1');\n txtB9AK9_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan222.add(txtB9AK9_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan222, gridBagConstraints);\n\n txtB9AK10_10.setColumns(2);\n txtB9AK10_10.setMaxDigit('2');\n txtB9AK10_10.setMinDigit('1');\n txtB9AK10_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan223.add(txtB9AK10_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan223, gridBagConstraints);\n\n txtB9AK11_10.setColumns(2);\n txtB9AK11_10.setMaxDigit('2');\n txtB9AK11_10.setMinDigit('1');\n txtB9AK11_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan224.add(txtB9AK11_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan224, gridBagConstraints);\n\n panelTransparan225.setAlpha(70);\n panelTransparan225.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan225, gridBagConstraints);\n\n txtB9AK13_10.setColumns(2);\n txtB9AK13_10.setMaxDigit('2');\n txtB9AK13_10.setMinDigit('1');\n txtB9AK13_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan226.add(txtB9AK13_10);\n\n txtB9AK13_10Als.setColumns(3);\n txtB9AK13_10Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan226.add(txtB9AK13_10Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan226, gridBagConstraints);\n\n panelTransparan227.setLayout(new java.awt.GridBagLayout());\n\n label108.setText(\"11\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan227.add(label108, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan227, gridBagConstraints);\n\n txtB9AK2_11.setColumns(3);\n txtB9AK2_11.setLength(2);\n txtB9AK2_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan228.add(txtB9AK2_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan228, gridBagConstraints);\n\n panelTransparan229.setAlpha(70);\n panelTransparan229.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan229, gridBagConstraints);\n\n panelTransparan230.setAlpha(70);\n panelTransparan230.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan230, gridBagConstraints);\n\n txtB9AK5_11.setColumns(2);\n txtB9AK5_11.setMaxDigit('2');\n txtB9AK5_11.setMinDigit('1');\n txtB9AK5_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan231.add(txtB9AK5_11);\n\n txtB9AK5_11Als.setColumns(3);\n txtB9AK5_11Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan231.add(txtB9AK5_11Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan231, gridBagConstraints);\n\n txtB9AK6_11.setColumns(2);\n txtB9AK6_11.setMaxDigit('2');\n txtB9AK6_11.setMinDigit('1');\n txtB9AK6_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan232.add(txtB9AK6_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan232, gridBagConstraints);\n\n txtB9AK7_11.setColumns(2);\n txtB9AK7_11.setMaxDigit('2');\n txtB9AK7_11.setMinDigit('1');\n txtB9AK7_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan233.add(txtB9AK7_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan233, gridBagConstraints);\n\n txtB9AK8_11.setColumns(2);\n txtB9AK8_11.setMaxDigit('2');\n txtB9AK8_11.setMinDigit('1');\n txtB9AK8_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan234.add(txtB9AK8_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan234, gridBagConstraints);\n\n txtB9AK9_11.setColumns(2);\n txtB9AK9_11.setMaxDigit('2');\n txtB9AK9_11.setMinDigit('1');\n txtB9AK9_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan235.add(txtB9AK9_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan235, gridBagConstraints);\n\n txtB9AK10_11.setColumns(2);\n txtB9AK10_11.setMaxDigit('2');\n txtB9AK10_11.setMinDigit('1');\n txtB9AK10_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan236.add(txtB9AK10_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan236, gridBagConstraints);\n\n txtB9AK11_11.setColumns(2);\n txtB9AK11_11.setMaxDigit('2');\n txtB9AK11_11.setMinDigit('1');\n txtB9AK11_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan237.add(txtB9AK11_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan237, gridBagConstraints);\n\n panelTransparan238.setAlpha(70);\n panelTransparan238.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan238, gridBagConstraints);\n\n txtB9AK13_11.setColumns(2);\n txtB9AK13_11.setMaxDigit('2');\n txtB9AK13_11.setMinDigit('1');\n txtB9AK13_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan239.add(txtB9AK13_11);\n\n txtB9AK13_11Als.setColumns(3);\n txtB9AK13_11Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan239.add(txtB9AK13_11Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan239, gridBagConstraints);\n\n panelTransparan240.setLayout(new java.awt.GridBagLayout());\n\n label109.setText(\"12\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan240.add(label109, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan240, gridBagConstraints);\n\n txtB9AK2_12.setColumns(3);\n txtB9AK2_12.setLength(2);\n txtB9AK2_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan241.add(txtB9AK2_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan241, gridBagConstraints);\n\n panelTransparan242.setAlpha(70);\n panelTransparan242.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan242, gridBagConstraints);\n\n txtB9AK5_12.setColumns(2);\n txtB9AK5_12.setMaxDigit('2');\n txtB9AK5_12.setMinDigit('1');\n txtB9AK5_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan243.add(txtB9AK5_12);\n\n txtB9AK5_12Als.setColumns(3);\n txtB9AK5_12Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan243.add(txtB9AK5_12Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan243, gridBagConstraints);\n\n txtB9AK6_12.setColumns(2);\n txtB9AK6_12.setMaxDigit('2');\n txtB9AK6_12.setMinDigit('1');\n txtB9AK6_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan244.add(txtB9AK6_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan244, gridBagConstraints);\n\n txtB9AK7_12.setColumns(2);\n txtB9AK7_12.setMaxDigit('2');\n txtB9AK7_12.setMinDigit('1');\n txtB9AK7_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan245.add(txtB9AK7_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan245, gridBagConstraints);\n\n panelTransparan246.setAlpha(70);\n panelTransparan246.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan246, gridBagConstraints);\n\n txtB9AK8_12.setColumns(2);\n txtB9AK8_12.setMaxDigit('2');\n txtB9AK8_12.setMinDigit('1');\n txtB9AK8_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan247.add(txtB9AK8_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan247, gridBagConstraints);\n\n txtB9AK9_12.setColumns(2);\n txtB9AK9_12.setMaxDigit('2');\n txtB9AK9_12.setMinDigit('1');\n txtB9AK9_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan248.add(txtB9AK9_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan248, gridBagConstraints);\n\n txtB9AK10_12.setColumns(2);\n txtB9AK10_12.setMaxDigit('2');\n txtB9AK10_12.setMinDigit('1');\n txtB9AK10_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan249.add(txtB9AK10_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan249, gridBagConstraints);\n\n txtB9AK11_12.setColumns(2);\n txtB9AK11_12.setMaxDigit('2');\n txtB9AK11_12.setMinDigit('1');\n txtB9AK11_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan250.add(txtB9AK11_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan250, gridBagConstraints);\n\n panelTransparan251.setAlpha(70);\n panelTransparan251.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan251, gridBagConstraints);\n\n txtB9AK13_12.setColumns(2);\n txtB9AK13_12.setMaxDigit('2');\n txtB9AK13_12.setMinDigit('1');\n txtB9AK13_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan252.add(txtB9AK13_12);\n\n txtB9AK13_12Als.setColumns(3);\n txtB9AK13_12Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan252.add(txtB9AK13_12Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan252, gridBagConstraints);\n\n panelTransparan253.setLayout(new java.awt.GridBagLayout());\n\n label110.setText(\"13\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan253.add(label110, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan253, gridBagConstraints);\n\n txtB9AK2_13.setColumns(3);\n txtB9AK2_13.setLength(2);\n txtB9AK2_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan254.add(txtB9AK2_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan254, gridBagConstraints);\n\n panelTransparan255.setAlpha(70);\n panelTransparan255.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan255, gridBagConstraints);\n\n txtB9AK5_13.setColumns(2);\n txtB9AK5_13.setMaxDigit('2');\n txtB9AK5_13.setMinDigit('1');\n txtB9AK5_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan256.add(txtB9AK5_13);\n\n txtB9AK5_13Als.setColumns(3);\n txtB9AK5_13Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan256.add(txtB9AK5_13Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan256, gridBagConstraints);\n\n txtB9AK6_13.setColumns(2);\n txtB9AK6_13.setMaxDigit('2');\n txtB9AK6_13.setMinDigit('1');\n txtB9AK6_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan257.add(txtB9AK6_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan257, gridBagConstraints);\n\n txtB9AK7_13.setColumns(2);\n txtB9AK7_13.setMaxDigit('2');\n txtB9AK7_13.setMinDigit('1');\n txtB9AK7_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan258.add(txtB9AK7_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan258, gridBagConstraints);\n\n panelTransparan259.setAlpha(70);\n panelTransparan259.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan259, gridBagConstraints);\n\n txtB9AK8_13.setColumns(2);\n txtB9AK8_13.setMaxDigit('2');\n txtB9AK8_13.setMinDigit('1');\n txtB9AK8_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan260.add(txtB9AK8_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan260, gridBagConstraints);\n\n txtB9AK9_13.setColumns(2);\n txtB9AK9_13.setMaxDigit('2');\n txtB9AK9_13.setMinDigit('1');\n txtB9AK9_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan261.add(txtB9AK9_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan261, gridBagConstraints);\n\n txtB9AK10_13.setColumns(2);\n txtB9AK10_13.setMaxDigit('2');\n txtB9AK10_13.setMinDigit('1');\n txtB9AK10_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan262.add(txtB9AK10_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan262, gridBagConstraints);\n\n txtB9AK11_13.setColumns(2);\n txtB9AK11_13.setMaxDigit('2');\n txtB9AK11_13.setMinDigit('1');\n txtB9AK11_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan263.add(txtB9AK11_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan263, gridBagConstraints);\n\n panelTransparan264.setAlpha(70);\n panelTransparan264.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan264, gridBagConstraints);\n\n txtB9AK13_13.setColumns(2);\n txtB9AK13_13.setMaxDigit('2');\n txtB9AK13_13.setMinDigit('1');\n txtB9AK13_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan265.add(txtB9AK13_13);\n\n txtB9AK13_13Als.setColumns(3);\n txtB9AK13_13Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan265.add(txtB9AK13_13Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan265, gridBagConstraints);\n\n panelTransparan266.setLayout(new java.awt.GridBagLayout());\n\n label111.setText(\"14\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan266.add(label111, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan266, gridBagConstraints);\n\n txtB9AK2_14.setColumns(3);\n txtB9AK2_14.setLength(2);\n txtB9AK2_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan267.add(txtB9AK2_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan267, gridBagConstraints);\n\n panelTransparan268.setAlpha(70);\n panelTransparan268.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan268, gridBagConstraints);\n\n txtB9AK5_14.setColumns(2);\n txtB9AK5_14.setMaxDigit('2');\n txtB9AK5_14.setMinDigit('1');\n txtB9AK5_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan269.add(txtB9AK5_14);\n\n txtB9AK5_14Als.setColumns(3);\n txtB9AK5_14Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan269.add(txtB9AK5_14Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan269, gridBagConstraints);\n\n txtB9AK6_14.setColumns(2);\n txtB9AK6_14.setMaxDigit('2');\n txtB9AK6_14.setMinDigit('1');\n txtB9AK6_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan270.add(txtB9AK6_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan270, gridBagConstraints);\n\n txtB9AK7_14.setColumns(2);\n txtB9AK7_14.setMaxDigit('2');\n txtB9AK7_14.setMinDigit('1');\n txtB9AK7_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan271.add(txtB9AK7_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan271, gridBagConstraints);\n\n panelTransparan272.setAlpha(70);\n panelTransparan272.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan272, gridBagConstraints);\n\n txtB9AK8_14.setColumns(2);\n txtB9AK8_14.setMaxDigit('2');\n txtB9AK8_14.setMinDigit('1');\n txtB9AK8_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan273.add(txtB9AK8_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan273, gridBagConstraints);\n\n txtB9AK9_14.setColumns(2);\n txtB9AK9_14.setMaxDigit('2');\n txtB9AK9_14.setMinDigit('1');\n txtB9AK9_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan274.add(txtB9AK9_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan274, gridBagConstraints);\n\n txtB9AK10_14.setColumns(2);\n txtB9AK10_14.setMaxDigit('2');\n txtB9AK10_14.setMinDigit('1');\n txtB9AK10_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan275.add(txtB9AK10_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan275, gridBagConstraints);\n\n txtB9AK11_14.setColumns(2);\n txtB9AK11_14.setMaxDigit('2');\n txtB9AK11_14.setMinDigit('1');\n txtB9AK11_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan276.add(txtB9AK11_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan276, gridBagConstraints);\n\n panelTransparan277.setAlpha(70);\n panelTransparan277.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan277, gridBagConstraints);\n\n txtB9AK13_14.setColumns(2);\n txtB9AK13_14.setMaxDigit('2');\n txtB9AK13_14.setMinDigit('1');\n txtB9AK13_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan278.add(txtB9AK13_14);\n\n txtB9AK13_14Als.setColumns(3);\n txtB9AK13_14Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan278.add(txtB9AK13_14Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan278, gridBagConstraints);\n\n panelTransparan279.setLayout(new java.awt.GridBagLayout());\n\n label112.setText(\"15\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan279.add(label112, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan279, gridBagConstraints);\n\n txtB9AK2_15.setColumns(3);\n txtB9AK2_15.setLength(2);\n txtB9AK2_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan280.add(txtB9AK2_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan280, gridBagConstraints);\n\n panelTransparan281.setAlpha(70);\n panelTransparan281.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan281, gridBagConstraints);\n\n panelTransparan282.setAlpha(70);\n panelTransparan282.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan282, gridBagConstraints);\n\n txtB9AK5_15.setColumns(2);\n txtB9AK5_15.setMaxDigit('2');\n txtB9AK5_15.setMinDigit('1');\n txtB9AK5_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan283.add(txtB9AK5_15);\n\n txtB9AK5_15Als.setColumns(3);\n txtB9AK5_15Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan283.add(txtB9AK5_15Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan283, gridBagConstraints);\n\n txtB9AK6_15.setColumns(2);\n txtB9AK6_15.setMaxDigit('2');\n txtB9AK6_15.setMinDigit('1');\n txtB9AK6_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan284.add(txtB9AK6_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan284, gridBagConstraints);\n\n txtB9AK7_15.setColumns(2);\n txtB9AK7_15.setMaxDigit('2');\n txtB9AK7_15.setMinDigit('1');\n txtB9AK7_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan285.add(txtB9AK7_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan285, gridBagConstraints);\n\n txtB9AK8_15.setColumns(2);\n txtB9AK8_15.setMaxDigit('2');\n txtB9AK8_15.setMinDigit('1');\n txtB9AK8_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan286.add(txtB9AK8_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan286, gridBagConstraints);\n\n txtB9AK9_15.setColumns(2);\n txtB9AK9_15.setMaxDigit('2');\n txtB9AK9_15.setMinDigit('1');\n txtB9AK9_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan287.add(txtB9AK9_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan287, gridBagConstraints);\n\n txtB9AK10_15.setColumns(2);\n txtB9AK10_15.setMaxDigit('2');\n txtB9AK10_15.setMinDigit('1');\n txtB9AK10_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan288.add(txtB9AK10_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan288, gridBagConstraints);\n\n txtB9AK11_15.setColumns(2);\n txtB9AK11_15.setMaxDigit('2');\n txtB9AK11_15.setMinDigit('1');\n txtB9AK11_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan289.add(txtB9AK11_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan289, gridBagConstraints);\n\n panelTransparan290.setAlpha(70);\n panelTransparan290.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan290, gridBagConstraints);\n\n txtB9AK13_15.setColumns(2);\n txtB9AK13_15.setMaxDigit('2');\n txtB9AK13_15.setMinDigit('1');\n txtB9AK13_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan291.add(txtB9AK13_15);\n\n txtB9AK13_15Als.setColumns(3);\n txtB9AK13_15Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan291.add(txtB9AK13_15Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan291, gridBagConstraints);\n\n panelTransparan292.setLayout(new java.awt.GridBagLayout());\n\n label113.setText(\"16\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan292.add(label113, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan292, gridBagConstraints);\n\n txtB9AK2_16.setColumns(3);\n txtB9AK2_16.setLength(2);\n txtB9AK2_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan293.add(txtB9AK2_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan293, gridBagConstraints);\n\n panelTransparan294.setAlpha(70);\n panelTransparan294.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan294, gridBagConstraints);\n\n panelTransparan295.setAlpha(70);\n panelTransparan295.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan295, gridBagConstraints);\n\n txtB9AK5_16.setColumns(2);\n txtB9AK5_16.setMaxDigit('2');\n txtB9AK5_16.setMinDigit('1');\n txtB9AK5_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan296.add(txtB9AK5_16);\n\n txtB9AK5_16Als.setColumns(3);\n txtB9AK5_16Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan296.add(txtB9AK5_16Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan296, gridBagConstraints);\n\n txtB9AK6_16.setColumns(2);\n txtB9AK6_16.setMaxDigit('2');\n txtB9AK6_16.setMinDigit('1');\n txtB9AK6_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan297.add(txtB9AK6_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan297, gridBagConstraints);\n\n txtB9AK7_16.setColumns(2);\n txtB9AK7_16.setMaxDigit('2');\n txtB9AK7_16.setMinDigit('1');\n txtB9AK7_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan298.add(txtB9AK7_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan298, gridBagConstraints);\n\n txtB9AK8_16.setColumns(2);\n txtB9AK8_16.setMaxDigit('2');\n txtB9AK8_16.setMinDigit('1');\n txtB9AK8_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan299.add(txtB9AK8_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan299, gridBagConstraints);\n\n txtB9AK9_16.setColumns(2);\n txtB9AK9_16.setMaxDigit('2');\n txtB9AK9_16.setMinDigit('1');\n txtB9AK9_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan300.add(txtB9AK9_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan300, gridBagConstraints);\n\n txtB9AK10_16.setColumns(2);\n txtB9AK10_16.setMaxDigit('2');\n txtB9AK10_16.setMinDigit('1');\n txtB9AK10_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan301.add(txtB9AK10_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan301, gridBagConstraints);\n\n txtB9AK11_16.setColumns(2);\n txtB9AK11_16.setMaxDigit('2');\n txtB9AK11_16.setMinDigit('1');\n txtB9AK11_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan302.add(txtB9AK11_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan302, gridBagConstraints);\n\n panelTransparan303.setAlpha(70);\n panelTransparan303.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan303, gridBagConstraints);\n\n txtB9AK13_16.setColumns(2);\n txtB9AK13_16.setMaxDigit('2');\n txtB9AK13_16.setMinDigit('1');\n txtB9AK13_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan304.add(txtB9AK13_16);\n\n txtB9AK13_16Als.setColumns(3);\n txtB9AK13_16Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan304.add(txtB9AK13_16Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan304, gridBagConstraints);\n\n panelTransparan305.setLayout(new java.awt.GridBagLayout());\n\n label114.setText(\"17\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan305.add(label114, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan305, gridBagConstraints);\n\n txtB9AK2_17.setColumns(3);\n txtB9AK2_17.setLength(2);\n txtB9AK2_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan306.add(txtB9AK2_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan306, gridBagConstraints);\n\n panelTransparan307.setAlpha(70);\n panelTransparan307.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan307, gridBagConstraints);\n\n panelTransparan308.setAlpha(70);\n panelTransparan308.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan308, gridBagConstraints);\n\n txtB9AK5_17.setColumns(2);\n txtB9AK5_17.setMaxDigit('2');\n txtB9AK5_17.setMinDigit('1');\n txtB9AK5_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan309.add(txtB9AK5_17);\n\n txtB9AK5_17Als.setColumns(3);\n txtB9AK5_17Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan309.add(txtB9AK5_17Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan309, gridBagConstraints);\n\n txtB9AK6_17.setColumns(2);\n txtB9AK6_17.setMaxDigit('2');\n txtB9AK6_17.setMinDigit('1');\n txtB9AK6_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan310.add(txtB9AK6_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan310, gridBagConstraints);\n\n txtB9AK7_17.setColumns(2);\n txtB9AK7_17.setMaxDigit('2');\n txtB9AK7_17.setMinDigit('1');\n txtB9AK7_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan311.add(txtB9AK7_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan311, gridBagConstraints);\n\n txtB9AK8_17.setColumns(2);\n txtB9AK8_17.setMaxDigit('2');\n txtB9AK8_17.setMinDigit('1');\n txtB9AK8_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan312.add(txtB9AK8_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan312, gridBagConstraints);\n\n txtB9AK9_17.setColumns(2);\n txtB9AK9_17.setMaxDigit('2');\n txtB9AK9_17.setMinDigit('1');\n txtB9AK9_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan313.add(txtB9AK9_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan313, gridBagConstraints);\n\n txtB9AK10_17.setColumns(2);\n txtB9AK10_17.setMaxDigit('2');\n txtB9AK10_17.setMinDigit('1');\n txtB9AK10_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan314.add(txtB9AK10_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan314, gridBagConstraints);\n\n txtB9AK11_17.setColumns(2);\n txtB9AK11_17.setMaxDigit('2');\n txtB9AK11_17.setMinDigit('1');\n txtB9AK11_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan315.add(txtB9AK11_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan315, gridBagConstraints);\n\n panelTransparan316.setAlpha(70);\n panelTransparan316.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan316, gridBagConstraints);\n\n txtB9AK13_17.setColumns(2);\n txtB9AK13_17.setMaxDigit('2');\n txtB9AK13_17.setMinDigit('1');\n txtB9AK13_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan317.add(txtB9AK13_17);\n\n txtB9AK13_17Als.setColumns(3);\n txtB9AK13_17Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan317.add(txtB9AK13_17Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan317, gridBagConstraints);\n\n panelTransparan318.setLayout(new java.awt.GridBagLayout());\n\n label115.setText(\"18\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan318.add(label115, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan318, gridBagConstraints);\n\n txtB9AK2_18.setColumns(3);\n txtB9AK2_18.setLength(2);\n txtB9AK2_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan319.add(txtB9AK2_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan319, gridBagConstraints);\n\n panelTransparan320.setAlpha(70);\n panelTransparan320.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan320, gridBagConstraints);\n\n panelTransparan321.setAlpha(70);\n panelTransparan321.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan321, gridBagConstraints);\n\n txtB9AK5_18.setColumns(2);\n txtB9AK5_18.setMaxDigit('2');\n txtB9AK5_18.setMinDigit('1');\n txtB9AK5_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan322.add(txtB9AK5_18);\n\n txtB9AK5_18Als.setColumns(3);\n txtB9AK5_18Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan322.add(txtB9AK5_18Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan322, gridBagConstraints);\n\n txtB9AK6_18.setColumns(2);\n txtB9AK6_18.setMaxDigit('2');\n txtB9AK6_18.setMinDigit('1');\n txtB9AK6_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan323.add(txtB9AK6_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan323, gridBagConstraints);\n\n txtB9AK7_18.setColumns(2);\n txtB9AK7_18.setMaxDigit('2');\n txtB9AK7_18.setMinDigit('1');\n txtB9AK7_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan324.add(txtB9AK7_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan324, gridBagConstraints);\n\n txtB9AK8_18.setColumns(2);\n txtB9AK8_18.setMaxDigit('2');\n txtB9AK8_18.setMinDigit('1');\n txtB9AK8_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan325.add(txtB9AK8_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan325, gridBagConstraints);\n\n txtB9AK9_18.setColumns(2);\n txtB9AK9_18.setMaxDigit('2');\n txtB9AK9_18.setMinDigit('1');\n txtB9AK9_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan326.add(txtB9AK9_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan326, gridBagConstraints);\n\n txtB9AK10_18.setColumns(2);\n txtB9AK10_18.setMaxDigit('2');\n txtB9AK10_18.setMinDigit('1');\n txtB9AK10_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan327.add(txtB9AK10_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan327, gridBagConstraints);\n\n txtB9AK11_18.setColumns(2);\n txtB9AK11_18.setMaxDigit('2');\n txtB9AK11_18.setMinDigit('1');\n txtB9AK11_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan328.add(txtB9AK11_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan328, gridBagConstraints);\n\n panelTransparan329.setAlpha(70);\n panelTransparan329.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan329, gridBagConstraints);\n\n txtB9AK13_18.setColumns(2);\n txtB9AK13_18.setMaxDigit('2');\n txtB9AK13_18.setMinDigit('1');\n txtB9AK13_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan330.add(txtB9AK13_18);\n\n txtB9AK13_18Als.setColumns(3);\n txtB9AK13_18Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan330.add(txtB9AK13_18Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan330, gridBagConstraints);\n\n panelTransparan331.setLayout(new java.awt.GridBagLayout());\n\n label116.setText(\"19\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan331.add(label116, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan331, gridBagConstraints);\n\n txtB9AK2_19.setColumns(3);\n txtB9AK2_19.setLength(2);\n txtB9AK2_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan332.add(txtB9AK2_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan332, gridBagConstraints);\n\n panelTransparan333.setAlpha(70);\n panelTransparan333.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan333, gridBagConstraints);\n\n panelTransparan334.setAlpha(70);\n panelTransparan334.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan334, gridBagConstraints);\n\n txtB9AK5_19.setColumns(2);\n txtB9AK5_19.setMaxDigit('2');\n txtB9AK5_19.setMinDigit('1');\n txtB9AK5_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan335.add(txtB9AK5_19);\n\n txtB9AK5_19Als.setColumns(3);\n txtB9AK5_19Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan335.add(txtB9AK5_19Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan335, gridBagConstraints);\n\n txtB9AK6_19.setColumns(2);\n txtB9AK6_19.setMaxDigit('2');\n txtB9AK6_19.setMinDigit('1');\n txtB9AK6_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan336.add(txtB9AK6_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan336, gridBagConstraints);\n\n txtB9AK7_19.setColumns(2);\n txtB9AK7_19.setMaxDigit('2');\n txtB9AK7_19.setMinDigit('1');\n txtB9AK7_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan337.add(txtB9AK7_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan337, gridBagConstraints);\n\n txtB9AK8_19.setColumns(2);\n txtB9AK8_19.setMaxDigit('2');\n txtB9AK8_19.setMinDigit('1');\n txtB9AK8_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan338.add(txtB9AK8_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan338, gridBagConstraints);\n\n txtB9AK9_19.setColumns(2);\n txtB9AK9_19.setMaxDigit('2');\n txtB9AK9_19.setMinDigit('1');\n txtB9AK9_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan339.add(txtB9AK9_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan339, gridBagConstraints);\n\n txtB9AK10_19.setColumns(2);\n txtB9AK10_19.setMaxDigit('2');\n txtB9AK10_19.setMinDigit('1');\n txtB9AK10_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan340.add(txtB9AK10_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan340, gridBagConstraints);\n\n txtB9AK11_19.setColumns(2);\n txtB9AK11_19.setMaxDigit('2');\n txtB9AK11_19.setMinDigit('1');\n txtB9AK11_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan341.add(txtB9AK11_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan341, gridBagConstraints);\n\n panelTransparan342.setAlpha(70);\n panelTransparan342.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan342, gridBagConstraints);\n\n txtB9AK13_19.setColumns(2);\n txtB9AK13_19.setMaxDigit('2');\n txtB9AK13_19.setMinDigit('1');\n txtB9AK13_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan343.add(txtB9AK13_19);\n\n txtB9AK13_19Als.setColumns(3);\n txtB9AK13_19Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan343.add(txtB9AK13_19Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan343, gridBagConstraints);\n\n panelTransparan344.setLayout(new java.awt.GridBagLayout());\n\n label117.setText(\"20\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan344.add(label117, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan344, gridBagConstraints);\n\n txtB9AK2_20.setColumns(3);\n txtB9AK2_20.setLength(2);\n txtB9AK2_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan345.add(txtB9AK2_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan345, gridBagConstraints);\n\n panelTransparan346.setAlpha(70);\n panelTransparan346.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan346, gridBagConstraints);\n\n panelTransparan347.setAlpha(70);\n panelTransparan347.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan347, gridBagConstraints);\n\n txtB9AK5_20.setColumns(2);\n txtB9AK5_20.setMaxDigit('2');\n txtB9AK5_20.setMinDigit('1');\n txtB9AK5_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan348.add(txtB9AK5_20);\n\n txtB9AK5_20Als.setColumns(3);\n txtB9AK5_20Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan348.add(txtB9AK5_20Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan348, gridBagConstraints);\n\n txtB9AK6_20.setColumns(2);\n txtB9AK6_20.setMaxDigit('2');\n txtB9AK6_20.setMinDigit('1');\n txtB9AK6_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan349.add(txtB9AK6_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan349, gridBagConstraints);\n\n txtB9AK7_20.setColumns(2);\n txtB9AK7_20.setMaxDigit('2');\n txtB9AK7_20.setMinDigit('1');\n txtB9AK7_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan350.add(txtB9AK7_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan350, gridBagConstraints);\n\n txtB9AK8_20.setColumns(2);\n txtB9AK8_20.setMaxDigit('2');\n txtB9AK8_20.setMinDigit('1');\n txtB9AK8_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan351.add(txtB9AK8_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan351, gridBagConstraints);\n\n txtB9AK9_20.setColumns(2);\n txtB9AK9_20.setMaxDigit('2');\n txtB9AK9_20.setMinDigit('1');\n txtB9AK9_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan352.add(txtB9AK9_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan352, gridBagConstraints);\n\n txtB9AK10_20.setColumns(2);\n txtB9AK10_20.setMaxDigit('2');\n txtB9AK10_20.setMinDigit('1');\n txtB9AK10_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan353.add(txtB9AK10_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan353, gridBagConstraints);\n\n txtB9AK11_20.setColumns(2);\n txtB9AK11_20.setMaxDigit('2');\n txtB9AK11_20.setMinDigit('1');\n txtB9AK11_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan354.add(txtB9AK11_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan354, gridBagConstraints);\n\n panelTransparan355.setAlpha(70);\n panelTransparan355.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan355, gridBagConstraints);\n\n txtB9AK13_20.setColumns(2);\n txtB9AK13_20.setMaxDigit('2');\n txtB9AK13_20.setMinDigit('1');\n txtB9AK13_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan356.add(txtB9AK13_20);\n\n txtB9AK13_20Als.setColumns(3);\n txtB9AK13_20Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan356.add(txtB9AK13_20Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan356, gridBagConstraints);\n\n panelTransparan357.setLayout(new java.awt.GridBagLayout());\n\n label118.setText(\"21\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan357.add(label118, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan357, gridBagConstraints);\n\n txtB9AK2_21.setColumns(3);\n txtB9AK2_21.setLength(2);\n txtB9AK2_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan358.add(txtB9AK2_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan358, gridBagConstraints);\n\n panelTransparan359.setAlpha(70);\n panelTransparan359.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan359, gridBagConstraints);\n\n panelTransparan360.setAlpha(70);\n panelTransparan360.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan360, gridBagConstraints);\n\n txtB9AK5_21.setColumns(2);\n txtB9AK5_21.setMaxDigit('2');\n txtB9AK5_21.setMinDigit('1');\n txtB9AK5_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan361.add(txtB9AK5_21);\n\n txtB9AK5_21Als.setColumns(3);\n txtB9AK5_21Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan361.add(txtB9AK5_21Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan361, gridBagConstraints);\n\n txtB9AK6_21.setColumns(2);\n txtB9AK6_21.setMaxDigit('2');\n txtB9AK6_21.setMinDigit('1');\n txtB9AK6_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan362.add(txtB9AK6_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan362, gridBagConstraints);\n\n txtB9AK7_21.setColumns(2);\n txtB9AK7_21.setMaxDigit('2');\n txtB9AK7_21.setMinDigit('1');\n txtB9AK7_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan363.add(txtB9AK7_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan363, gridBagConstraints);\n\n txtB9AK8_21.setColumns(2);\n txtB9AK8_21.setMaxDigit('2');\n txtB9AK8_21.setMinDigit('1');\n txtB9AK8_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan364.add(txtB9AK8_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan364, gridBagConstraints);\n\n txtB9AK9_21.setColumns(2);\n txtB9AK9_21.setMaxDigit('2');\n txtB9AK9_21.setMinDigit('1');\n txtB9AK9_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan365.add(txtB9AK9_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan365, gridBagConstraints);\n\n txtB9AK10_21.setColumns(2);\n txtB9AK10_21.setMaxDigit('2');\n txtB9AK10_21.setMinDigit('1');\n txtB9AK10_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan366.add(txtB9AK10_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan366, gridBagConstraints);\n\n txtB9AK11_21.setColumns(2);\n txtB9AK11_21.setMaxDigit('2');\n txtB9AK11_21.setMinDigit('1');\n txtB9AK11_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan367.add(txtB9AK11_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan367, gridBagConstraints);\n\n panelTransparan368.setAlpha(70);\n panelTransparan368.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan368, gridBagConstraints);\n\n txtB9AK13_21.setColumns(2);\n txtB9AK13_21.setMaxDigit('2');\n txtB9AK13_21.setMinDigit('1');\n txtB9AK13_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan369.add(txtB9AK13_21);\n\n txtB9AK13_21Als.setColumns(3);\n txtB9AK13_21Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan369.add(txtB9AK13_21Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan369, gridBagConstraints);\n\n panelTransparan370.setLayout(new java.awt.GridBagLayout());\n\n label119.setText(\"22\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan370.add(label119, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan370, gridBagConstraints);\n\n txtB9AK2_22.setColumns(3);\n txtB9AK2_22.setLength(2);\n txtB9AK2_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan371.add(txtB9AK2_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan371, gridBagConstraints);\n\n panelTransparan372.setAlpha(70);\n panelTransparan372.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan372, gridBagConstraints);\n\n panelTransparan373.setAlpha(70);\n panelTransparan373.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan373, gridBagConstraints);\n\n txtB9AK5_22.setColumns(2);\n txtB9AK5_22.setMaxDigit('2');\n txtB9AK5_22.setMinDigit('1');\n txtB9AK5_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan374.add(txtB9AK5_22);\n\n txtB9AK5_22Als.setColumns(3);\n txtB9AK5_22Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan374.add(txtB9AK5_22Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan374, gridBagConstraints);\n\n txtB9AK6_22.setColumns(2);\n txtB9AK6_22.setMaxDigit('2');\n txtB9AK6_22.setMinDigit('1');\n txtB9AK6_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan375.add(txtB9AK6_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan375, gridBagConstraints);\n\n txtB9AK7_22.setColumns(2);\n txtB9AK7_22.setMaxDigit('2');\n txtB9AK7_22.setMinDigit('1');\n txtB9AK7_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan376.add(txtB9AK7_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan376, gridBagConstraints);\n\n txtB9AK8_22.setColumns(2);\n txtB9AK8_22.setMaxDigit('2');\n txtB9AK8_22.setMinDigit('1');\n txtB9AK8_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan377.add(txtB9AK8_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan377, gridBagConstraints);\n\n txtB9AK9_22.setColumns(2);\n txtB9AK9_22.setMaxDigit('2');\n txtB9AK9_22.setMinDigit('1');\n txtB9AK9_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan378.add(txtB9AK9_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan378, gridBagConstraints);\n\n txtB9AK10_22.setColumns(2);\n txtB9AK10_22.setMaxDigit('2');\n txtB9AK10_22.setMinDigit('1');\n txtB9AK10_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan379.add(txtB9AK10_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan379, gridBagConstraints);\n\n txtB9AK11_22.setColumns(2);\n txtB9AK11_22.setMaxDigit('2');\n txtB9AK11_22.setMinDigit('1');\n txtB9AK11_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan380.add(txtB9AK11_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan380, gridBagConstraints);\n\n panelTransparan381.setAlpha(70);\n panelTransparan381.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan381, gridBagConstraints);\n\n txtB9AK13_22.setColumns(2);\n txtB9AK13_22.setMaxDigit('2');\n txtB9AK13_22.setMinDigit('1');\n txtB9AK13_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan382.add(txtB9AK13_22);\n\n txtB9AK13_22Als.setColumns(3);\n txtB9AK13_22Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan382.add(txtB9AK13_22Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan382, gridBagConstraints);\n\n panelTransparan383.setLayout(new java.awt.GridBagLayout());\n\n label120.setText(\"23\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan383.add(label120, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan383, gridBagConstraints);\n\n txtB9AK2_23.setColumns(3);\n txtB9AK2_23.setLength(2);\n txtB9AK2_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan384.add(txtB9AK2_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan384, gridBagConstraints);\n\n panelTransparan385.setAlpha(70);\n panelTransparan385.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan385, gridBagConstraints);\n\n panelTransparan386.setAlpha(70);\n panelTransparan386.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan386, gridBagConstraints);\n\n txtB9AK5_23.setColumns(2);\n txtB9AK5_23.setMaxDigit('2');\n txtB9AK5_23.setMinDigit('1');\n txtB9AK5_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan387.add(txtB9AK5_23);\n\n txtB9AK5_23Als.setColumns(3);\n txtB9AK5_23Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan387.add(txtB9AK5_23Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan387, gridBagConstraints);\n\n txtB9AK6_23.setColumns(2);\n txtB9AK6_23.setMaxDigit('2');\n txtB9AK6_23.setMinDigit('1');\n txtB9AK6_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan388.add(txtB9AK6_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan388, gridBagConstraints);\n\n txtB9AK7_23.setColumns(2);\n txtB9AK7_23.setMaxDigit('2');\n txtB9AK7_23.setMinDigit('1');\n txtB9AK7_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan389.add(txtB9AK7_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan389, gridBagConstraints);\n\n txtB9AK8_23.setColumns(2);\n txtB9AK8_23.setMaxDigit('2');\n txtB9AK8_23.setMinDigit('1');\n txtB9AK8_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan390.add(txtB9AK8_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan390, gridBagConstraints);\n\n txtB9AK9_23.setColumns(2);\n txtB9AK9_23.setMaxDigit('2');\n txtB9AK9_23.setMinDigit('1');\n txtB9AK9_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan391.add(txtB9AK9_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan391, gridBagConstraints);\n\n txtB9AK10_23.setColumns(2);\n txtB9AK10_23.setMaxDigit('2');\n txtB9AK10_23.setMinDigit('1');\n txtB9AK10_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan392.add(txtB9AK10_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan392, gridBagConstraints);\n\n txtB9AK11_23.setColumns(2);\n txtB9AK11_23.setMaxDigit('2');\n txtB9AK11_23.setMinDigit('1');\n txtB9AK11_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan393.add(txtB9AK11_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan393, gridBagConstraints);\n\n panelTransparan394.setAlpha(70);\n panelTransparan394.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan394, gridBagConstraints);\n\n txtB9AK13_23.setColumns(2);\n txtB9AK13_23.setMaxDigit('2');\n txtB9AK13_23.setMinDigit('1');\n txtB9AK13_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan395.add(txtB9AK13_23);\n\n txtB9AK13_23Als.setColumns(3);\n txtB9AK13_23Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan395.add(txtB9AK13_23Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan395, gridBagConstraints);\n\n panelTransparan396.setLayout(new java.awt.GridBagLayout());\n\n label121.setText(\"24\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan396.add(label121, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan396, gridBagConstraints);\n\n txtB9AK2_24.setColumns(3);\n txtB9AK2_24.setLength(2);\n txtB9AK2_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan397.add(txtB9AK2_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan397, gridBagConstraints);\n\n panelTransparan398.setAlpha(70);\n panelTransparan398.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan398, gridBagConstraints);\n\n panelTransparan399.setAlpha(70);\n panelTransparan399.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan399, gridBagConstraints);\n\n txtB9AK5_24.setColumns(2);\n txtB9AK5_24.setMaxDigit('2');\n txtB9AK5_24.setMinDigit('1');\n txtB9AK5_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan400.add(txtB9AK5_24);\n\n txtB9AK5_24Als.setColumns(3);\n txtB9AK5_24Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan400.add(txtB9AK5_24Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan400, gridBagConstraints);\n\n txtB9AK6_24.setColumns(2);\n txtB9AK6_24.setMaxDigit('2');\n txtB9AK6_24.setMinDigit('1');\n txtB9AK6_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan401.add(txtB9AK6_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan401, gridBagConstraints);\n\n txtB9AK7_24.setColumns(2);\n txtB9AK7_24.setMaxDigit('2');\n txtB9AK7_24.setMinDigit('1');\n txtB9AK7_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan402.add(txtB9AK7_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan402, gridBagConstraints);\n\n txtB9AK8_24.setColumns(2);\n txtB9AK8_24.setMaxDigit('2');\n txtB9AK8_24.setMinDigit('1');\n txtB9AK8_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan403.add(txtB9AK8_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan403, gridBagConstraints);\n\n txtB9AK9_24.setColumns(2);\n txtB9AK9_24.setMaxDigit('2');\n txtB9AK9_24.setMinDigit('1');\n txtB9AK9_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan404.add(txtB9AK9_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan404, gridBagConstraints);\n\n txtB9AK10_24.setColumns(2);\n txtB9AK10_24.setMaxDigit('2');\n txtB9AK10_24.setMinDigit('1');\n txtB9AK10_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan405.add(txtB9AK10_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan405, gridBagConstraints);\n\n txtB9AK11_24.setColumns(2);\n txtB9AK11_24.setMaxDigit('2');\n txtB9AK11_24.setMinDigit('1');\n txtB9AK11_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan406.add(txtB9AK11_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan406, gridBagConstraints);\n\n panelTransparan407.setAlpha(70);\n panelTransparan407.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan407, gridBagConstraints);\n\n txtB9AK13_24.setColumns(2);\n txtB9AK13_24.setMaxDigit('2');\n txtB9AK13_24.setMinDigit('1');\n txtB9AK13_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan408.add(txtB9AK13_24);\n\n txtB9AK13_24Als.setColumns(3);\n txtB9AK13_24Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan408.add(txtB9AK13_24Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan408, gridBagConstraints);\n\n panelTransparan409.setLayout(new java.awt.GridBagLayout());\n\n label122.setText(\"25\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan409.add(label122, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan409, gridBagConstraints);\n\n txtB9AK2_25.setColumns(3);\n txtB9AK2_25.setLength(2);\n txtB9AK2_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan410.add(txtB9AK2_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan410, gridBagConstraints);\n\n panelTransparan411.setAlpha(70);\n panelTransparan411.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan411, gridBagConstraints);\n\n panelTransparan412.setAlpha(70);\n panelTransparan412.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan412, gridBagConstraints);\n\n txtB9AK5_25.setColumns(2);\n txtB9AK5_25.setMaxDigit('2');\n txtB9AK5_25.setMinDigit('1');\n txtB9AK5_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan413.add(txtB9AK5_25);\n\n txtB9AK5_25Als.setColumns(3);\n txtB9AK5_25Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan413.add(txtB9AK5_25Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan413, gridBagConstraints);\n\n txtB9AK6_25.setColumns(2);\n txtB9AK6_25.setMaxDigit('2');\n txtB9AK6_25.setMinDigit('1');\n txtB9AK6_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan414.add(txtB9AK6_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan414, gridBagConstraints);\n\n txtB9AK7_25.setColumns(2);\n txtB9AK7_25.setMaxDigit('2');\n txtB9AK7_25.setMinDigit('1');\n txtB9AK7_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan415.add(txtB9AK7_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan415, gridBagConstraints);\n\n txtB9AK8_25.setColumns(2);\n txtB9AK8_25.setMaxDigit('2');\n txtB9AK8_25.setMinDigit('1');\n txtB9AK8_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan416.add(txtB9AK8_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan416, gridBagConstraints);\n\n txtB9AK9_25.setColumns(2);\n txtB9AK9_25.setMaxDigit('2');\n txtB9AK9_25.setMinDigit('1');\n txtB9AK9_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan417.add(txtB9AK9_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan417, gridBagConstraints);\n\n txtB9AK10_25.setColumns(2);\n txtB9AK10_25.setMaxDigit('2');\n txtB9AK10_25.setMinDigit('1');\n txtB9AK10_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan418.add(txtB9AK10_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan418, gridBagConstraints);\n\n txtB9AK11_25.setColumns(2);\n txtB9AK11_25.setMaxDigit('2');\n txtB9AK11_25.setMinDigit('1');\n txtB9AK11_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan419.add(txtB9AK11_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan419, gridBagConstraints);\n\n panelTransparan420.setAlpha(70);\n panelTransparan420.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan420, gridBagConstraints);\n\n txtB9AK13_25.setColumns(2);\n txtB9AK13_25.setMaxDigit('2');\n txtB9AK13_25.setMinDigit('1');\n txtB9AK13_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan421.add(txtB9AK13_25);\n\n txtB9AK13_25Als.setColumns(3);\n txtB9AK13_25Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan421.add(txtB9AK13_25Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan421, gridBagConstraints);\n\n panelTransparan422.setAlpha(70);\n panelTransparan422.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan422, gridBagConstraints);\n\n panelTransparan423.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan423, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan424, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan425, gridBagConstraints);\n\n panelTransparan426.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan426, gridBagConstraints);\n\n panelTransparan427.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan427, gridBagConstraints);\n\n panelTransparan428.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan428, gridBagConstraints);\n\n panelTransparan429.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan429, gridBagConstraints);\n\n panelTransparan430.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan430, gridBagConstraints);\n\n panelTransparan431.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan431, gridBagConstraints);\n\n panelTransparan432.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan432, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan433, gridBagConstraints);\n\n panelTransparan434.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan434, gridBagConstraints);\n\n javax.swing.GroupLayout panelScrollLayout = new javax.swing.GroupLayout(panelScroll);\n panelScroll.setLayout(panelScrollLayout);\n panelScrollLayout.setHorizontalGroup(\n panelScrollLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelScrollLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(275, Short.MAX_VALUE))\n );\n panelScrollLayout.setVerticalGroup(\n panelScrollLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelScrollLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(31, Short.MAX_VALUE))\n );\n\n scroolPane1.setViewportView(panelScroll);\n\n add(scroolPane1, java.awt.BorderLayout.CENTER);\n }",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setBounds(new Rectangle(0, 0, 780, 530));\n\t\tthis.add(getJPanel_table(), BorderLayout.CENTER);\n\t\tthis.add(getJPanel_button(), BorderLayout.EAST);\n\t}",
"private void initComponents() {\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(2);\n add(rootLayout);\n Empsn_Label= new nextapp.echo2.app.Label();\n Empsn_Label.setText(\"N_TIME_BEAR.EMPSN\");\n rootLayout.add(Empsn_Label);\n \n Empsn_DscField = new dsc.echo2app.component.DscField();\n Empsn_DscField.setId(\"Empsn_DscField\");\n Empsn_DscField.setWidth(new Extent(4, Extent.CM));\n rootLayout.add(Empsn_DscField);\n \n\t}",
"public void setUpComponents() {\n for (int i = 1; i <= 31; i++) {\n cmbDay.addItem(String.format(\"%02d\", i));\n }\n\n for (int i = 0; i <= 11; i++) {\n cmbMonth.addItem(monthNames[i]);\n }\n\n updateTimeComboBox();\n\n updateDurationComboBox();\n\n cmbDay.setSelectedIndex(initialDay.getDay() - 1);\n cmbMonth.setSelectedIndex(initialDay.getMonth());\n\n if (formType.equals(\"Edit\")) {\n txtName.setText(eventToEdit.getName());\n cmbTime.setSelectedIndex(eventToEdit.getStartTime() - usedTimes.size());\n cmbDuration.setSelectedIndex(eventToEdit.getDuration() - 1);\n }\n\n cmbTime.addItemListener(new MyItemListener());\n cmbDay.addItemListener(new MyItemListener());\n cmbMonth.addItemListener(new MyItemListener());\n radAutoTime.addActionListener(new TimeHandler());\n radSelectTime.addActionListener(new TimeHandler());\n\n buttonGroup.add(radSelectTime);\n buttonGroup.add(radAutoTime);\n\n frame.setLayout(new GridBagLayout());\n gbc.insets = new Insets(5, 5, 5, 5);\n addComponents();\n\n btnSubmit.addActionListener(new EventHandler());\n frame.getRootPane().setDefaultButton(btnSubmit);\n\n buildFrame();\n }",
"public void initGUI(){\n\t\t\n\t\t//the layout is a new BorderLayout\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t//the label will be north\t\n\t\tadd(createHeroList(), BorderLayout.NORTH);\n\t\t\n\t\t//the questions will be displayed center\t\t\n\t\tadd(createQuestions(), BorderLayout.CENTER);\n\t\t//the button panel should be south\n\t\tadd(createAnswerButtonPanel(), BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t \n\t}",
"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 FrameOpcoesAgenda() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\n\t\tJLabel lblDesignCopyrights = new JLabel(\"design copyrights \\u00A9 chinmaya\");\n\t\tlblDesignCopyrights.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\n\t\tlblDesignCopyrights.setForeground(new Color(255, 255, 224));\n\t\tlblDesignCopyrights.setBounds(1711, 1018, 183, 23);\n\t\tframe.getContentPane().add(lblDesignCopyrights);\n\t\t\n\t\tJPanel background = new JPanel();\n\t\tbackground.setLayout(null);\n\t\tbackground.setBackground(Color.DARK_GRAY);\n\t\tbackground.setBounds(14, 200, 1880, 809);\n\t\tframe.getContentPane().add(background);\n\t\t\n\t\t\n\t\tJLabel lblTypesOfMachine = new JLabel(\"MACHINE NAME\");\n\t\tlblTypesOfMachine.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblTypesOfMachine.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTypesOfMachine.setForeground(Color.WHITE);\n\t\tlblTypesOfMachine.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblTypesOfMachine.setBounds(69, 378, 178, 30);\n\t\tbackground.add(lblTypesOfMachine);\n\t\t\n\t\t\n\t\tJLabel lblAppointment = new JLabel(\"LIST TO DO\");\n\t\tlblAppointment.setForeground(Color.WHITE);\n\t\tlblAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblAppointment.setBounds(69, 117, 319, 48);\n\t\tbackground.add(lblAppointment);\n\t\t\n\t\tJLabel lblQuantity = new JLabel(\"QUANTITY\");\n\t\tlblQuantity.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblQuantity.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuantity.setForeground(Color.WHITE);\n\t\tlblQuantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblQuantity.setBounds(69, 428, 178, 30);\n\t\tbackground.add(lblQuantity);\n\t\t\n\t\tPanel panel = new Panel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setBounds(0, 30, 1880, 67);\n\t\tbackground.add(panel);\n\t\t\n\t\tJButton cusbtn = new JButton(\"CUSTOMER\");\n\t\tcusbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t customer cr = new customer();\n\t\t cr.csStart();\n\t\t frame.dispose();\n\t\t\t}\n\t\t});\n\t\tcusbtn.setForeground(Color.WHITE);\n\t\tcusbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcusbtn.setBackground(Color.BLACK);\n\t\tcusbtn.setBounds(1257, 11, 613, 44);\n\t\tpanel.add(cusbtn);\n\t\t\n\t\tJButton bilbtn = new JButton(\"INVOICE\");\n\t\tbilbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tadminInvoice inv= new adminInvoice();\n\t\t\t\tinv. adminInvoiceStart();\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\t\t});\n\t\tbilbtn.setForeground(Color.WHITE);\n\t\tbilbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbilbtn.setBackground(Color.BLACK);\n\t\tbilbtn.setBounds(633, 11, 613, 44);\n\t\tpanel.add(bilbtn);\n\t\t\n\t\tJButton prdbtn = new JButton(\"PRODUCTS\");\n\t\tprdbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tadminproducts prd = new adminproducts();\n\t\t\t\tprd.adminPrd();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprdbtn.setForeground(Color.WHITE);\n\t\tprdbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tprdbtn.setBackground(Color.BLACK);\n\t\tprdbtn.setBounds(10, 11, 613, 44);\n\t\tpanel.add(prdbtn);\n\t\t\n\t\tJLabel lblCustomerName = new JLabel(\"CUSTOMER NAME\");\n\t\tlblCustomerName.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblCustomerName.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblCustomerName.setForeground(Color.WHITE);\n\t\tlblCustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblCustomerName.setBounds(69, 278, 178, 30);\n\t\tbackground.add(lblCustomerName);\n\t\t\n\t\tJLabel lblMachineType = new JLabel(\"MACHINE TYPE\");\n\t\tlblMachineType.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblMachineType.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblMachineType.setForeground(Color.WHITE);\n\t\tlblMachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblMachineType.setBounds(69, 328, 178, 30);\n\t\tbackground.add(lblMachineType);\n\t\t\n\t\t\n\t\tJButton btnStore = new JButton(\"STORE\");\n\t\tbtnStore.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tString dateEntry=date.getText();\n\t\t\t\tString cusname= customerName.getText();\t\n\t\t\t\tString machType=machineType.getText();\n\t\t\t\tString machName=machineName.getText();\n\t\t\t\tString quan=quantity.getText();\n\t\t\t\tString dl= deadline.getText();\n\t\t\t\tConnection con;\n\t\t\t\tPreparedStatement insert;\n\t\t\t\t\n\t\t\t\tif(dateEntry.isEmpty()||cusname.isEmpty()||machName.isEmpty()||machType.isEmpty()||quan.isEmpty()||dl.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"no field must be left empty\",\"registration error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\t\n\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Appointment added!!\");\n\t\t\t\t}\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t\t\t\tinsert = con.prepareStatement(\"insert into appointment (date,cusname,machType,machName,quan,deadline) values (?,?,?,?,?,?)\");\n\t\t insert.setString(1, dateEntry);\n\t\t insert.setString(2, cusname);\n\t\t insert.setString(3, machType);\n\t\t insert.setString(4, machName);\n\t\t insert.setString(5, quan);\n\t\t insert.setString(6, dl);\n\t\t insert.executeUpdate();\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnStore.setForeground(Color.WHITE);\n\t\tbtnStore.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnStore.setBackground(Color.BLACK);\n\t\tbtnStore.setBounds(580, 578, 116, 44);\n\t\tbackground.add(btnStore);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setBounds(1000, 230, 613, 267);\n\t\tbackground.add(scrollPane);\n\t\t\n\t\tinvoice = new JTable();\n\t\tscrollPane.setViewportView(invoice);\n\t\t\n\t\tJLabel lblInvoice = new JLabel(\"VIEW TO-DO LIST\");\n\t\tlblInvoice.setForeground(Color.WHITE);\n\t\tlblInvoice.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblInvoice.setBounds(1010, 117, 387, 48);\n\t\tbackground.add(lblInvoice);\n\t\t\n\t\tquantity = new JTextField();\n\t\tquantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tquantity.setColumns(10);\n\t\tquantity.setBounds(279, 428, 289, 30);\n\t\tbackground.add(quantity);\n\t\t\n\t\tmachineName = new JTextField();\n\t\tmachineName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineName.setColumns(10);\n\t\tmachineName.setBounds(279, 328, 289, 30);\n\t\tbackground.add(machineName);\n\t\t\n\t\tmachineType = new JTextField();\n\t\tmachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineType.setColumns(10);\n\t\tmachineType.setBounds(279, 378, 289, 30);\n\t\tbackground.add(machineType);\n\t\t\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(279, 278, 289, 30);\n\t\tbackground.add(customerName);\n\t\t\n\t\tJLabel deadlineLbl = new JLabel(\"DEADLINE\");\n\t\tdeadlineLbl.setVerticalAlignment(SwingConstants.TOP);\n\t\tdeadlineLbl.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tdeadlineLbl.setForeground(Color.WHITE);\n\t\tdeadlineLbl.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tdeadlineLbl.setBounds(69, 481, 178, 30);\n\t\tbackground.add(deadlineLbl);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"DATE\");\n\t\tlblDate.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblDate.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblDate.setForeground(Color.WHITE);\n\t\tlblDate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblDate.setBounds(69, 228, 178, 30);\n\t\tbackground.add(lblDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(279, 228, 289, 30);\n\t\tbackground.add(date);\n\t\t\n\t\tJButton btnView = new JButton(\"VIEW\");\n\t\tbtnView.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tConnection con = null;\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t String query=\"select * from appointment \";\n\t\t\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnView.setForeground(Color.WHITE);\n\t\tbtnView.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnView.setBackground(Color.BLACK);\n\t\tbtnView.setBounds(1584, 578, 116, 44);\n\t\tbackground.add(btnView);\n\t\t\n\t\tdeadline = new JTextField();\n\t\tdeadline.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdeadline.setColumns(10);\n\t\tdeadline.setBounds(279, 481, 289, 30);\n\t\tbackground.add(deadline);\n\t\t\n\t\tJPanel header = new JPanel();\n\t\theader.setLayout(null);\n\t\theader.setBackground(Color.DARK_GRAY);\n\t\theader.setBounds(14, 23, 1880, 163);\n\t\tframe.getContentPane().add(header);\n\t\t\n\t\tJPanel mwtitle = new JPanel();\n\t\tmwtitle.setLayout(null);\n\t\tmwtitle.setForeground(Color.WHITE);\n\t\tmwtitle.setBackground(Color.BLACK);\n\t\tmwtitle.setBounds(209, 7, 649, 151);\n\t\theader.add(mwtitle);\n\t\t\n\t\tJLabel label = new JLabel(\"MACHINE WORKS\");\n\t\tlabel.setForeground(Color.WHITE);\n\t\tlabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 69));\n\t\tlabel.setBounds(20, 11, 605, 72);\n\t\tmwtitle.add(label);\n\t\t\n\t\tJLabel lblWhereAllThe = new JLabel(\"Where all the WORK is done by MACHINE\");\n\t\tlblWhereAllThe.setForeground(Color.ORANGE);\n\t\tlblWhereAllThe.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblWhereAllThe.setBounds(38, 94, 581, 48);\n\t\tmwtitle.add(lblWhereAllThe);\n\t\t\n\t\tJLabel logolbl = new JLabel(\"\");\n\t\tlogolbl.setIcon(new ImageIcon(\"C:\\\\Users\\\\CHINMAYA SH\\\\Pictures\\\\download.png\"));\n\t\tlogolbl.setBounds(58, 7, 151, 151);\n\t\theader.add(logolbl);\n\t\t\n\t\tJButton lgbtn = new JButton(\"LOGOUT\");\n\t\tlgbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged out Successfull !!\");\n\t\t\t\tindex ind = new index();\n\t\t\t\tind.indexStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tlgbtn.setForeground(Color.WHITE);\n\t\tlgbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tlgbtn.setBackground(Color.BLACK);\n\t\tlgbtn.setBounds(1674, 60, 116, 44);\n\t\theader.add(lgbtn);\n\t\t\n\t\tJButton button_1 = new JButton(\"SIGN UP\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tsignup sg = new signup();\n\t\t\t\tsg.signupStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbutton_1.setForeground(Color.WHITE);\n\t\tbutton_1.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbutton_1.setBackground(Color.BLACK);\n\t\tbutton_1.setBounds(1488, 60, 116, 44);\n\t\theader.add(button_1);\n\t\t\n\t\tJButton btnAppointment = new JButton(\"TO-DO\");\n\t\tbtnAppointment.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tappointments ap = new appointments();\n\t\t\t\tap.appointmentList();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnAppointment.setForeground(Color.WHITE);\n\t\tbtnAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnAppointment.setBackground(Color.BLACK);\n\t\tbtnAppointment.setBounds(1309, 60, 125, 44);\n\t\theader.add(btnAppointment);\n\t\tframe.setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1920\t, 1080);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\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 }",
"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}",
"public void initUI() {\n\t\tadd(board);\r\n\t\t//Set if frame is resizable by user\r\n\t\tsetResizable(false);\r\n\t\t//call pack method to fit the \r\n\t\t//preferred size and layout of subcomponents\r\n\t\t//***important head might not work correctly with collision of bottom and right borders\r\n\t\tpack();\r\n\t\t//set title for frame\r\n\t\tsetTitle(\"Snake\");\r\n\t\t//set location on screen(null centers it)\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t//set default for close button of frame\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"public void initialize() {\r\n setLayout(new BorderLayout());\r\n add(BorderLayout.CENTER, tabbedPane);\r\n for (Iterator it = widgets.iterator(); it.hasNext();) {\r\n SlotWidget widget = (SlotWidget) it.next();\r\n widget.initialize();\r\n }\r\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 410, 288);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),},\n\t\t\tnew RowSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,}));\n\t\t\n\t\tlblLogin = new JLabel(\"Login\");\n\t\tframe.getContentPane().add(lblLogin, \"12, 6\");\n\t\t\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\n\t\tframe.getContentPane().add(lblUsername, \"10, 10\");\n\t\t\n\t\tusernameField = new JTextField();\n\t\tframe.getContentPane().add(usernameField, \"12, 10, fill, default\");\n\t\tusernameField.setColumns(10);\n\t\t\n\t\tlblPassword = new JLabel(\"Password:\");\n\t\tframe.getContentPane().add(lblPassword, \"10, 14\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tframe.getContentPane().add(passwordField, \"12, 14\");\n\t\t\n\t\tbtnLogin = new JButton(\"Login\");\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.login(usernameField.getText(), passwordField.getText());\n\t\t\t\t\tparent.setVisible(true);\n\t\t\t\t\tframe.dispose();\t\t\t\t\t\n\t\t\t\t\tparentProjWindow.displayProjects();\n\t\t\t\t\t\n\t\t\t\t} catch (RemoteAccessException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Server unreacheable!\", \"Network Error!\", 0, null);\n\t\t\t\t}\t\n\t\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong credentials!\", \"Access denied!\", 0, null);\n\t\t\t\t} catch (RemoteException 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\tframe.getContentPane().add(btnLogin, \"12, 18\");\n\t}",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300,200);\n\t\tthis.add(getJPanel(), java.awt.BorderLayout.CENTER);\n\t\tthis.add(getJPanel1(), java.awt.BorderLayout.SOUTH);\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}",
"public void init() {\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"public PilaFrame() {\n initComponents();\n }",
"public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }",
"public FrameForm() {\n initComponents();\n }",
"private void init(){\r\n\t\tsetLayout(new FlowLayout());\r\n\t\tsetPreferredSize(new Dimension(40,40));\r\n\t\tsetVisible(true);\r\n\t}",
"private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }",
"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 initComponents(String title) {\n\n this.setTitle(title);\n this.setPreferredSize(new Dimension(X,Y));\n this.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));\n\n this.add(drawPanel);\n this.add(speedometerView);\n this.add(addRemoveCarsView);\n add(buttonsView);\n\n // Make the frame pack all it's components by respecting the sizes if possible.\n this.pack();\n\n // Get the computer screen resolution\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n // Center the frame\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n // Make the frame visible\n this.setVisible(true);\n // Make sure the frame exits when \"x\" is pressed\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }",
"protected HFrame(){\n\t\tinit();\n\t}",
"private void initComponents() {//GEN-BEGIN:initComponents\n\n\n setClosable(true);\n\n setIconifiable(true);\n\n setPreferredSize(new java.awt.Dimension(730, 520));\n\n pack();\n\n }",
"private void init() {\n\t\tsetModal(true);\n\t\t\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(new GridBagLayout());\n\t\tc = new GridBagConstraints();\n\t\tc.insets = new Insets(10, 10, 10, 10);\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t}",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"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\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"public SMFrame() {\n initComponents();\n updateComponents();\n }",
"private void init() {\n\t\tthis.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setResizable(false);\n\t\tlbl1.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl2.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl3.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl4.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl5.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl6.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl7.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tbtncanel.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tbtnsave.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\t\n\t\tpnlInfo.setBounds(10,5,320,220);\n//\t\tpnlInfo.setBackground(Color.cyan);\n//\t\tpnlMain.setBackground(Color.green);\n//\t\tbtnsave.setBackground(Color.pink);\n//\t\tbtncanel.setBackground(Color.yellow);\n\t\tbtnsave.setBounds(120, 230, 70, 25);\n\t\tbtncanel.setBounds(210, 230, 70, 25);\n\t\t\n\t\tbtncanel.addActionListener(new AddRederTypeFrame_btncanel_ActionListener(this));\n\t\tbtnsave.addActionListener(new AddRederTypeFrame_btnsave_ActionListener(this));\n\t\t\n//\t\tpnlInfo.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, Color.cyan));\n\t\t\n\t\tpnlInfo.add(lbl1);\n\t\tpnlInfo.add(txtname);\n\t\tpnlInfo.add(lbl2);\n\t\tpnlInfo.add(txtcount);\n\t\tpnlInfo.add(lbl3);\n\t\tpnlInfo.add(txtdate);\n\t\tpnlInfo.add(lbl4);\n\t\tpnlInfo.add(txtmtp);\n\t\tpnlInfo.add(lbl5);\n\t\tpnlInfo.add(txtstcharge);\n\t\tpnlInfo.add(lbl6);\n\t\tpnlInfo.add(txtoutcharge);\n\t\tpnlInfo.add(lbl7);\n\t\tpnlInfo.add(txtqty);\n\t\t\n\t\tpnlMain.add(pnlInfo);\n\t\tpnlMain.add(btnsave);\n\t\tpnlMain.add(btncanel);\n\t\tthis.add(pnlMain);\n\t\tthis.setTitle(\"新增用户\");\n\t\tGlobal.setCenterByWindow(this);\n\t\tthis.setVisible(true);\n\t}",
"public JFramePelis() {\n initComponents();\n }",
"private void init() {\r\n\t\tthis.backPanel = new JPanel(new BorderLayout()) {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(background, 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.backPanel.setOpaque(false);\r\n\t\tthis.backPanel.add(Box.createHorizontalStrut(35), BorderLayout.LINE_END);\r\n\t\tthis.backPanel.add(Box.createHorizontalStrut(35), BorderLayout.LINE_START);\r\n\r\n\t\tallComponents = new JLabel(loading);\r\n\t\tallComponents.setLayout(new GridLayout(4, 1, 0, 30));\r\n\t\tthis.backPanel.add(allComponents, BorderLayout.CENTER);\r\n\r\n\t\tthis.setSize(FRAME_X, FRAME_Y);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setTitle(\"LogIn\");\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsmallfont = new Font(\"Calibri\", Font.BOLD, 19);\r\n\t\tthis.setIconImage(ImageLoader.getImage(\"resources/img/loginScreen/Icon.png\"));\r\n\r\n\t\tdescription = new JLabel[2];\r\n\t\tpanels = new JPanel[4];\r\n\t\tfor (int i = 0; i < panels.length; i++) {\r\n\t\t\tpanels[i] = new JPanel(new FlowLayout());\r\n\t\t}\r\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(new GridLayout(0, 2, 20, 15));\n\t\t\n\t\tJLabel Nombre = new JLabel(\"Nombre\");\n\t\tframe.getContentPane().add(Nombre);\n\t\t\n\t\ttextNombre = new JTextField();\n\t\tframe.getContentPane().add(textNombre);\n\t\ttextNombre.setColumns(10);\n\t\t\n\t\tJLabel Apellidos = new JLabel(\"Apellidos\");\n\t\tframe.getContentPane().add(Apellidos);\n\t\t\n\t\ttextApellidos = new JTextField();\n\t\tframe.getContentPane().add(textApellidos);\n\t\ttextApellidos.setColumns(10);\n\t\t\n\t\tLocalidad = new JLabel(\"Localidad\");\n\t\tframe.getContentPane().add(Localidad);\n\t\t\n\t\ttextLocalidad = new JTextField();\n\t\tframe.getContentPane().add(textLocalidad);\n\t\ttextLocalidad.setColumns(10);\n\t\t\n\t\tCiudad = new JLabel(\"Ciudad\");\n\t\tframe.getContentPane().add(Ciudad);\n\t\t\n\t\tcomboBox = new JComboBox();\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"Jaén\", \"Cordoba\", \"Sevilla \", \"Granada\", \"Huelva\", \"Madrid\"}));\n\t\tframe.getContentPane().add(comboBox);\n\t\t\n\t\tbtnNewButton = new JButton(\"New button\");\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tbtnNewButton_1 = new JButton(\"New button\");\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(50, 50, 1050, 650);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tmtopJPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t\tframe.getContentPane().add(mtopJPanel, BorderLayout.NORTH);\n\t\ttopPanel();\n\t\t\n\t\tmleftJPanel = new JPanel();\n\t\tframe.getContentPane().add(mleftJPanel, BorderLayout.WEST);\n\t\twestPanel();\n\t\t\n\t\tmcenterJPanel = new JPanel();\n\t\tframe.getContentPane().add(mcenterJPanel, BorderLayout.CENTER);\n\t\tcenterPanel();\n\t\t\n\t\tmbottomJPanel = new JPanel();\n\t\tframe.getContentPane().add(mbottomJPanel, BorderLayout.SOUTH);\n\t\tbottomPanel();\n\t\t\n\t}"
] | [
"0.7978882",
"0.7978882",
"0.7933828",
"0.7916877",
"0.7830931",
"0.7747498",
"0.7698508",
"0.7631468",
"0.75414604",
"0.7537212",
"0.7531914",
"0.752563",
"0.752433",
"0.74933684",
"0.74764925",
"0.74711996",
"0.7468997",
"0.74665344",
"0.74393755",
"0.74162024",
"0.7395259",
"0.73625576",
"0.7359216",
"0.7359216",
"0.73405725",
"0.7317289",
"0.73162067",
"0.7313587",
"0.73116076",
"0.7301373",
"0.7295388",
"0.72946024",
"0.72879577",
"0.7285751",
"0.7257111",
"0.7256756",
"0.7254862",
"0.7251644",
"0.72422796",
"0.72410125",
"0.7237655",
"0.7231343",
"0.7228003",
"0.7226749",
"0.7210643",
"0.72054034",
"0.7198557",
"0.71962637",
"0.71938384",
"0.71929467",
"0.7183487",
"0.7182382",
"0.71800196",
"0.71760494",
"0.7149695",
"0.71478736",
"0.71394795",
"0.7136232",
"0.7131434",
"0.71273524",
"0.7124119",
"0.71207404",
"0.7116057",
"0.7112945",
"0.7108971",
"0.71086043",
"0.71041316",
"0.71020025",
"0.70964646",
"0.70937115",
"0.7082035",
"0.7081583",
"0.70803434",
"0.7079387",
"0.70705837",
"0.70693535",
"0.70674646",
"0.70573974",
"0.70564735",
"0.7055671",
"0.70556504",
"0.7054768",
"0.70542234",
"0.70506185",
"0.70488167",
"0.70477337",
"0.7047479",
"0.70449716",
"0.7043636",
"0.70411664",
"0.70386815",
"0.7037937",
"0.70349234",
"0.70337915",
"0.7027778",
"0.7026124",
"0.7025941",
"0.7021848",
"0.70167947",
"0.70157105",
"0.70132726"
] | 0.0 | -1 |
AcUspsInternationalCgrWorkLegFlightConflictSummaryVoBase and AcUspsInternationalCgrWorkLegFlightConflictSummaryVoPk must match. | public void setWebKey(String s)
{
ScDecoder x = new ScDecoder(s);
setLegDepartureLocalTm((JwTime)x.get());
setLegArrivalLocalTm((JwTime)x.get());
setLegArrivalDayOffset((Integer)x.get());
setLegStopCount((Integer)x.get());
setLegEquipment((String)x.get());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DisponibilidadResultadosPK)) {\n return false;\n }\n DisponibilidadResultadosPK other = (DisponibilidadResultadosPK) object;\n if ((this.anio == null && other.anio != null) || (this.anio != null && !this.anio.equals(other.anio))) {\n return false;\n }\n if ((this.codigoResultado == null && other.codigoResultado != null) || (this.codigoResultado != null && !this.codigoResultado.equals(other.codigoResultado))) {\n return false;\n }\n if ((this.codigoCompetencia == null && other.codigoCompetencia != null) || (this.codigoCompetencia != null && !this.codigoCompetencia.equals(other.codigoCompetencia))) {\n return false;\n }\n if ((this.progamaCodigo == null && other.progamaCodigo != null) || (this.progamaCodigo != null && !this.progamaCodigo.equals(other.progamaCodigo))) {\n return false;\n }\n if ((this.programaVersion == null && other.programaVersion != null) || (this.programaVersion != null && !this.programaVersion.equals(other.programaVersion))) {\n return false;\n }\n if ((this.tipoDocumento == null && other.tipoDocumento != null) || (this.tipoDocumento != null && !this.tipoDocumento.equals(other.tipoDocumento))) {\n return false;\n }\n if ((this.numeroDocumento == null && other.numeroDocumento != null) || (this.numeroDocumento != null && !this.numeroDocumento.equals(other.numeroDocumento))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof InformeBatallahasRecursoPK)) {\n return false;\n }\n InformeBatallahasRecursoPK other = (InformeBatallahasRecursoPK) object;\n if (this.informeBatallaidBatalla != other.informeBatallaidBatalla) {\n return false;\n }\n if ((this.recursoname == null && other.recursoname != null) || (this.recursoname != null && !this.recursoname.equals(other.recursoname))) {\n return false;\n }\n if ((this.recursoInstalacionname == null && other.recursoInstalacionname != null) || (this.recursoInstalacionname != null && !this.recursoInstalacionname.equals(other.recursoInstalacionname))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object that) {\r\n if (this == that) {\r\n return true;\r\n }\r\n if (that == null) {\r\n return false;\r\n }\r\n if (getClass() != that.getClass()) {\r\n return false;\r\n }\r\n TabRpf other = (TabRpf) that;\r\n return (this.getRpfId() == null ? other.getRpfId() == null : this.getRpfId().equals(other.getRpfId()))\r\n && (this.getCzId() == null ? other.getCzId() == null : this.getCzId().equals(other.getCzId()))\r\n && (this.getFpNumber() == null ? other.getFpNumber() == null : this.getFpNumber().equals(other.getFpNumber()))\r\n && (this.getSpNumber() == null ? other.getSpNumber() == null : this.getSpNumber().equals(other.getSpNumber()))\r\n && (this.getFpl() == null ? other.getFpl() == null : this.getFpl().equals(other.getFpl()))\r\n && (this.getFpCb() == null ? other.getFpCb() == null : this.getFpCb().equals(other.getFpCb()))\r\n && (this.getSpCb() == null ? other.getSpCb() == null : this.getSpCb().equals(other.getSpCb()))\r\n && (this.getSjCb() == null ? other.getSjCb() == null : this.getSjCb().equals(other.getSjCb()))\r\n && (this.getTickettypesId() == null ? other.getTickettypesId() == null : this.getTickettypesId().equals(other.getTickettypesId()))\r\n && (this.getInDate() == null ? other.getInDate() == null : this.getInDate().equals(other.getInDate()))\r\n && (this.getAutoDate() == null ? other.getAutoDate() == null : this.getAutoDate().equals(other.getAutoDate()))\r\n && (this.getRpfBak1() == null ? other.getRpfBak1() == null : this.getRpfBak1().equals(other.getRpfBak1()))\r\n && (this.getRpfBak2() == null ? other.getRpfBak2() == null : this.getRpfBak2().equals(other.getRpfBak2()))\r\n && (this.getRpfBak3() == null ? other.getRpfBak3() == null : this.getRpfBak3().equals(other.getRpfBak3()));\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComunicationPK)) {\n return false;\n }\n ComunicationPK other = (ComunicationPK) object;\n if (this.idComunication != other.idComunication) {\n return false;\n }\n if (this.idRationale != other.idRationale) {\n return false;\n }\n if (this.idScientistReceptor != other.idScientistReceptor) {\n return false;\n }\n return true;\n }",
"private boolean checkConflicts(DymonPatchRequest r,Collection<DymonPatchRequest> active)\n{\n if (active_requests.isEmpty()) return false;\n if (r.getPatchOverlap() == PatchOverlap.ANY) return false;\n\n for (DymonPatchRequest ar : active) {\n if (ar.getDuration() == 0 || ar.getPatchOverlap() == PatchOverlap.ANY) continue;\n if (r.excludeOverlap(ar.getRequestName())) return true;\n if (r.getPatchOverlap() == PatchOverlap.NONE) return true;\n if (ar.excludeOverlap(r.getRequestName())) return true;\n if (ar.getPatchOverlap() == PatchOverlap.NONE) return true;\n if (ar.getPatchOverlap() == PatchOverlap.CLASS ||\n\t r.getPatchOverlap() == PatchOverlap.CLASS) {\n\t for (String s1 : r.getClasses()) {\n\t for (String s2 : ar.getClasses()) {\n\t if (s1.equals(s2)) return true;\n\t }\n\t }\n }\n }\n\n return false;\n}",
"@Override\n public boolean equals(Object obj) {\n if (this == obj) return true;\n boolean superEquals = super.equals(obj);\n if (!superEquals) return false;\n if (!(obj instanceof QueryStatusMessage)) return false;\n QueryStatusMessage other =(QueryStatusMessage)obj;\n if (hasCause() != other.hasCause()) return false;\n if (hasCause()) {\n if (getCause().length() != other.getCause().length()) return false; else {\n CharSequence s1 = getCause();\n CharSequence s2 = other.getCause();\n if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {\n if (!s1.equals(s2)) return false;\n } else {\n if (!CharSequenceUtils.equals(s1, s2)) return false;\n }\n }\n }\n if (hasStatus() != other.hasStatus()) return false;\n if (hasStatus() && getStatus() != other.getStatus()) return false;\n return true;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n TFCUseLockDetail other = (TFCUseLockDetail) that;\n return (this.getRowId() == null ? other.getRowId() == null : this.getRowId().equals(other.getRowId()))\n && (this.getCoinTypeId() == null ? other.getCoinTypeId() == null : this.getCoinTypeId().equals(other.getCoinTypeId()))\n && (this.getRecTime() == null ? other.getRecTime() == null : this.getRecTime().equals(other.getRecTime()))\n && (this.getActiontype() == null ? other.getActiontype() == null : this.getActiontype().equals(other.getActiontype()))\n && (this.getLockId() == null ? other.getLockId() == null : this.getLockId().equals(other.getLockId()))\n && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))\n && (this.getServerIp() == null ? other.getServerIp() == null : this.getServerIp().equals(other.getServerIp()))\n && (this.getGameId() == null ? other.getGameId() == null : this.getGameId().equals(other.getGameId()))\n && (this.getServerName() == null ? other.getServerName() == null : this.getServerName().equals(other.getServerName()))\n && (this.getLockNum() == null ? other.getLockNum() == null : this.getLockNum().equals(other.getLockNum()))\n && (this.getChangeNum() == null ? other.getChangeNum() == null : this.getChangeNum().equals(other.getChangeNum()))\n && (this.getRemainNum() == null ? other.getRemainNum() == null : this.getRemainNum().equals(other.getRemainNum()))\n && (this.getOtherLockNum() == null ? other.getOtherLockNum() == null : this.getOtherLockNum().equals(other.getOtherLockNum()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CalificacionesServicioPK)) {\n return false;\n }\n CalificacionesServicioPK other = (CalificacionesServicioPK) object;\n if (this.idUsusario != other.idUsusario) {\n return false;\n }\n if (this.idServicio != other.idServicio) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n YyzjCScoreTotalData other = (YyzjCScoreTotalData) that;\n return (this.getScoreTotalDataId() == null ? other.getScoreTotalDataId() == null : this.getScoreTotalDataId().equals(other.getScoreTotalDataId()))\n && (this.getTotalScoreResultId() == null ? other.getTotalScoreResultId() == null : this.getTotalScoreResultId().equals(other.getTotalScoreResultId()))\n && (this.getBaseId() == null ? other.getBaseId() == null : this.getBaseId().equals(other.getBaseId()))\n && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))\n && (this.getTotalScore() == null ? other.getTotalScore() == null : this.getTotalScore().equals(other.getTotalScore()))\n && (this.getSysId() == null ? other.getSysId() == null : this.getSysId().equals(other.getSysId()))\n && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))\n && (this.getAudioCode() == null ? other.getAudioCode() == null : this.getAudioCode().equals(other.getAudioCode()))\n && (this.getRecordDuration() == null ? other.getRecordDuration() == null : this.getRecordDuration().equals(other.getRecordDuration()))\n && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))\n && (this.getRemoteUri() == null ? other.getRemoteUri() == null : this.getRemoteUri().equals(other.getRemoteUri()))\n && (this.getLocalUri() == null ? other.getLocalUri() == null : this.getLocalUri().equals(other.getLocalUri()))\n && (this.getRecordFile() == null ? other.getRecordFile() == null : this.getRecordFile().equals(other.getRecordFile()));\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n if (!(obj instanceof Violation)) {\n return false;\n } else if (obj == this) {\n return true;\n }\n Violation rhs = (Violation) obj;\n // @formatter:off\n return new EqualsBuilder()\n .append(modelName, rhs.modelName)\n .append(category, rhs.category)\n .append(errorMessage, rhs.errorMessage)\n .append(severity, rhs.severity)\n .append(validationRule, rhs.validationRule)\n .append(violationDetails, rhs.violationDetails)\n .append(violationId, rhs.violationId)\n .append(violationType, rhs.violationType)\n .isEquals();\n // @formatter:on\n\t}",
"public boolean compareEqual(org.vcell.util.Matchable obj) {\r\n\tif (obj instanceof ReferenceDataMappingSpec){\r\n\t\tReferenceDataMappingSpec rdms = (ReferenceDataMappingSpec)obj;\r\n\r\n\t\tif (!org.vcell.util.Compare.isEqual(referenceDataColumnName,rdms.referenceDataColumnName)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif ((fieldModelObject == null && rdms.fieldModelObject != null) ||\r\n\t\t\t(fieldModelObject != null && rdms.fieldModelObject == null)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t// if both are null, everything is ok\r\n\t\t// if both are non-null, then check for equivalence.\r\n\t\t//\r\n\t\tif (fieldModelObject != null && rdms.fieldModelObject != null){\r\n\t\t\tif (fieldModelObject instanceof org.vcell.util.Matchable){\r\n\t\t\t\tif (rdms.fieldModelObject instanceof org.vcell.util.Matchable){\r\n\t\t\t\t\tif (!org.vcell.util.Compare.isEqualOrNull((org.vcell.util.Matchable)this.fieldModelObject,(org.vcell.util.Matchable)rdms.fieldModelObject)){\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t//\r\n\t\t\t\t// else compare symbol type, name, and nameScope name\r\n\t\t\t\t//\t\t\t\t\r\n\t\t\t\tif (!fieldModelObject.getClass().equals(rdms.fieldModelObject.getClass())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!fieldModelObject.getName().equals(rdms.fieldModelObject.getName())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!fieldModelObject.getNameScope().getName().equals(rdms.fieldModelObject.getNameScope().getName())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\treturn false;\r\n}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TicketHistoricoPK)) {\r\n return false;\r\n }\r\n TicketHistoricoPK other = (TicketHistoricoPK) object;\r\n if ((this.ticketId == null && other.ticketId != null) || (this.ticketId != null && !this.ticketId.equals(other.ticketId))) {\r\n return false;\r\n }\r\n if ((this.usuarioId == null && other.usuarioId != null) || (this.usuarioId != null && !this.usuarioId.equals(other.usuarioId))) {\r\n return false;\r\n }\r\n if ((this.fecha == null && other.fecha != null) || (this.fecha != null && !this.fecha.equals(other.fecha))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private boolean timeSlotConflict(Course course, Lab lab)\n\t{\n\t\tboolean passed = true;\n\t\tTimeSlot cSlot = course.getSlot(), lSlot = lab.getSlot();\n\t\t\n\t\t//Obviously there is no conflict if they course + lab didn't have a time slot assigned\n\t\tif(cSlot != null && lSlot != null)\n\t\t{\n\t\t\t//If a course and lab are on the same day, or course is monday and lab is friday\n\t\t\tif(cSlot.getDay() == lSlot.getDay() || (cSlot.getDay()==ScheduleDay.MO && lSlot.getDay()==ScheduleDay.FR))\n\t\t\t{\n\t\t\t\t//If it's a Tuesday\n\t\t\t\tif(cSlot.getDay() == ScheduleDay.TU)\n\t\t\t\t{\n\t\t\t\t\t//If they have the same start they are a conflict\n\t\t\t\t\t//Lectures are 1.5 hours and labs are 1 hour. \n\t\t\t\t\t//If a lecture starts 30 min after a lab, it's a conflict\n\t\t\t\t\t//If a lecture starts 30 min before (-70 becuase thats how we coded it for ints)\n\t\t\t\t\t// then it is a conflict\n\t\t\t\t\t//NOTE: I need to do more testing, but everything i tired is working so far\n\t\t\t\t\tif(cSlot.getStartTime() == lSlot.getStartTime())\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()+30))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()-70))\n\t\t\t\t\t\tpassed = false; \n\t\t\t\t\telse if (cSlot.getStartTime() == (lSlot.getStartTime() -100))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\t//THIS IS WHERE WE NEED FIXING \n\t\t\t\t}\n\t\t\t\telse if(cSlot.getDay() == ScheduleDay.MO && lSlot.getDay() == ScheduleDay.FR)\n\t\t\t\t{\n\t\t\t\t\tif(cSlot.getStartTime() == lSlot.getStartTime())\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()+100))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\t//else if(sC.getStartTime() == (sL.getStartTime()-100))\n\t\t\t\t\t\t//conflict = true; \n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t//If they are equaal, there is a time conflict\n\t\t\t\t\tpassed = !(cSlot.getStartTime() == lSlot.getStartTime());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tpassed = true; //If they don't have the same day, they are obviously not in conflict\n\t\t}\n\t\treturn passed;\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Calificacion)) {\r\n return false;\r\n }\r\n Calificacion other = (Calificacion) object;\r\n if ((this.calificacionPK == null && other.calificacionPK != null) || (this.calificacionPK != null && !this.calificacionPK.equals(other.calificacionPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMinEffectiveStartUtcDtComparator()\n {\n return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMinEffectiveStartUtcDtComparator();\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TimetablePK)) {\n return false;\n }\n TimetablePK other = (TimetablePK) object;\n if (this.idTt != other.idTt) {\n return false;\n }\n if ((this.idFaculty == null && other.idFaculty != null) || (this.idFaculty != null && !this.idFaculty.equals(other.idFaculty))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MsgExternalizePK)) {\n return false;\n }\n MsgExternalizePK other = (MsgExternalizePK) object;\n if ((this.mesgId == null && other.mesgId != null) || (this.mesgId != null && !this.mesgId.equals(other.mesgId))) {\n return false;\n }\n if (this.version != other.version) {\n return false;\n }\n if ((this.payloadType == null && other.payloadType != null) || (this.payloadType != null && !this.payloadType.equals(other.payloadType))) {\n return false;\n }\n if ((this.partId == null && other.partId != null) || (this.partId != null && !this.partId.equals(other.partId))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ProcedimientosPK)) {\n return false;\n }\n ProcedimientosPK other = (ProcedimientosPK) object;\n if (this.tipoprocedimientopkidTipoprocedimiento != other.tipoprocedimientopkidTipoprocedimiento) {\n return false;\n }\n if (this.pasospkidPaso != other.pasospkidPaso) {\n return false;\n }\n if (this.diagnosticopartepkidDianosticoparte != other.diagnosticopartepkidDianosticoparte) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CpserxconPK)) {\n return false;\n }\n CpserxconPK other = (CpserxconPK) object;\n if (this.cscnclinic != other.cscnclinic) {\n return false;\n }\n if (this.cscnnumero != other.cscnnumero) {\n return false;\n }\n if ((this.csccservic == null && other.csccservic != null) || (this.csccservic != null && !this.csccservic.equals(other.csccservic))) {\n return false;\n }\n if (this.cscnposisuper != other.cscnposisuper) {\n return false;\n }\n if ((this.csccutiliza == null && other.csccutiliza != null) || (this.csccutiliza != null && !this.csccutiliza.equals(other.csccutiliza))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FacilityAssocPK)) {\r\n return false;\r\n }\r\n FacilityAssocPK other = (FacilityAssocPK) object;\r\n if ((this.facilityId == null && other.facilityId != null) || (this.facilityId != null && !this.facilityId.equals(other.facilityId))) {\r\n return false;\r\n }\r\n if ((this.facilityIdTo == null && other.facilityIdTo != null) || (this.facilityIdTo != null && !this.facilityIdTo.equals(other.facilityIdTo))) {\r\n return false;\r\n }\r\n if ((this.facilityAssocTypeId == null && other.facilityAssocTypeId != null) || (this.facilityAssocTypeId != null && !this.facilityAssocTypeId.equals(other.facilityAssocTypeId))) {\r\n return false;\r\n }\r\n if ((this.fromDate == null && other.fromDate != null) || (this.fromDate != null && !this.fromDate.equals(other.fromDate))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TipoTratamientoObraSocialPK)) {\r\n return false;\r\n }\r\n TipoTratamientoObraSocialPK other = (TipoTratamientoObraSocialPK) object;\r\n if (this.tipotratamientoid != other.tipotratamientoid) {\r\n return false;\r\n }\r\n if (this.obrasocialid != other.obrasocialid) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test\n\tpublic void testcheckConflict() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TH\", 1330, 1445);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t a2.checkConflict(a1);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t } catch (ConflictException e) {\n\t\t fail(\"A ConflictException was thrown when two Activities at the same time on completely distinct days were compared.\");\n\t\t }\n\t\t a1.setMeetingDays(\"TH\");\n\t\t a1.setActivityTime(1445, 1530);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"TH 2:45PM-3:30PM\", a1.getMeetingString());\n\t\t assertEquals(\"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}",
"@Test\n\tpublic void testSameLibSameLocDiffScheme() \n\t{\n\t\tString id = \"diffScheme\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t\tassertDeweyVol1NotLopped(id);\n\t\tassertNoLoppedDewey(id);\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof IndContratElp)) {\r\n return false;\r\n }\r\n IndContratElp other = (IndContratElp) object;\r\n if ((this.indContratElpPK == null && other.indContratElpPK != null) || (this.indContratElpPK != null && !this.indContratElpPK.equals(other.indContratElpPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalleCompras)) {\r\n return false;\r\n }\r\n DetalleCompras other = (DetalleCompras) object;\r\n if ((this.detalleComprasPK == null && other.detalleComprasPK != null) || (this.detalleComprasPK != null && !this.detalleComprasPK.equals(other.detalleComprasPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private void computeConflicts() {\n\t\tthis.conflictGraph = new HashMap<Class, List<Class>>();\n\n\t\tfor (Class c : this.core) {\n\t\t\tif (c.getSuperClasses().size() >= 2) {\n\n\t\t\t\tList<List<Class>> linExts = new ArrayList<List<Class>>();\n\t\t\t\tfor (int i = 0; i < c.getSuperClasses().size(); i++) {\n\t\t\t\t\tlinExts.add(this.linearExts.get(c.getSuperClasses().get(i)));\n\t\t\t\t\tlinExts.get(i).add(c.getSuperClasses().get(i));\n\t\t\t\t}\n\n\t\t\t\tList<HashSet<Class>> diffs = new ArrayList<HashSet<Class>>();\n\n\t\t\t\t// Compute lini - linj for all i != j\n\t\t\t\tfor (List<Class> linExt : linExts) {\n\t\t\t\t\tfor (List<Class> linExt2 : linExts) {\n\t\t\t\t\t\tif (linExt != linExt2) {\n\t\t\t\t\t\t\tHashSet<Class> diff = new HashSet<Class>();\n\t\t\t\t\t\t\tfor (Class p : linExt2) {\n\t\t\t\t\t\t\t\tif (!linExt.contains(p))\n\t\t\t\t\t\t\t\t\tdiff.add(p);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdiffs.add(diff);\n\n\t\t\t\t\t\t\tdiff = new HashSet<Class>();\n\t\t\t\t\t\t\tfor (Class p : linExt) {\n\t\t\t\t\t\t\t\tif (!linExt2.contains(p))\n\t\t\t\t\t\t\t\t\tdiff.add(p);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdiffs.add(diff);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Compute conflicts di * dj for all j != i\n\t\t\t\tfor (HashSet<Class> diff : diffs) {\n\t\t\t\t\tfor (HashSet<Class> diff2 : diffs) {\n\t\t\t\t\t\tif (diff != diff2) {\n\t\t\t\t\t\t\tfor (Class c1 : diff) {\n\t\t\t\t\t\t\t\tList<Class> conflicts = new ArrayList<Class>();\n\t\t\t\t\t\t\t\tif (this.conflictGraph.containsKey(c1))\n\t\t\t\t\t\t\t\t\tconflicts = this.conflictGraph.get(c1);\n\n\t\t\t\t\t\t\t\tfor (Class c2 : diff2) {\n\t\t\t\t\t\t\t\t\tconflicts.add(c2);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthis.conflictGraph.put(c1, conflicts);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CdrqasryPK)) {\n return false;\n }\n CdrqasryPK other = (CdrqasryPK) object;\n if ((this.facno == null && other.facno != null) || (this.facno != null && !this.facno.equals(other.facno))) {\n return false;\n }\n if ((this.quono == null && other.quono != null) || (this.quono != null && !this.quono.equals(other.quono))) {\n return false;\n }\n if (this.trseq != other.trseq) {\n return false;\n }\n if (this.seq != other.seq) {\n return false;\n }\n if ((this.cmccode == null && other.cmccode != null) || (this.cmccode != null && !this.cmccode.equals(other.cmccode))) {\n return false;\n }\n return true;\n }",
"public boolean equals(@org.jetbrains.annotations.Nullable java.lang.Object r3) {\n /*\n r2 = this;\n if (r2 == r3) goto L_0x0047\n boolean r0 = r3 instanceof com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection\n if (r0 == 0) goto L_0x0045\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r3 = (com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection) r3\n com.bitcoin.mwallet.core.models.slp.Slp r0 = r2.token\n com.bitcoin.mwallet.core.models.slp.Slp r1 = r3.token\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.util.List<kotlin.ULong> r0 = r2.quantities\n java.util.List<kotlin.ULong> r1 = r3.quantities\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n com.bitcoin.bitcoink.tx.Satoshis r0 = r2.fee\n com.bitcoin.bitcoink.tx.Satoshis r1 = r3.fee\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n com.bitcoin.bitcoink.tx.Satoshis r0 = r2.change\n com.bitcoin.bitcoink.tx.Satoshis r1 = r3.change\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r0 = r2.utxos\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r1 = r3.utxos\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r0 = r2.error\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r3 = r3.error\n boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r3)\n if (r3 == 0) goto L_0x0045\n goto L_0x0047\n L_0x0045:\n r3 = 0\n return r3\n L_0x0047:\n r3 = 1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.equals(java.lang.Object):boolean\");\n }",
"@Test\n\tpublic void testCheckConflictOverlappingTimes() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC226\", \"Discrete Math\", \"001\", 3, \"sesmith5\", 12, \"MW\", 1445, 1545);\n\t\ttry {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"MW 2:45PM-3:45PM\", a2.getMeetingString());\n\t\t }\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FacilityCarrierShipment)) {\r\n return false;\r\n }\r\n FacilityCarrierShipment other = (FacilityCarrierShipment) object;\r\n if ((this.facilityCarrierShipmentPK == null && other.facilityCarrierShipmentPK != null) || (this.facilityCarrierShipmentPK != null && !this.facilityCarrierShipmentPK.equals(other.facilityCarrierShipmentPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private boolean checkConflict(Course c1, Course c2) {\n\n\t\tString day1 = c1.getDay1();\n\t\tString day2 = c1.getDay2();\n\t\tString cday1 = c2.getDay1();\n\t\tString cday2 = c2.getDay2();\n\n\t\tfloat startTime = Float.parseFloat(c1.getStarttime());\n\t\tfloat endTime = Float.parseFloat(c1.getEndtime());\n\t\tfloat cstartTime = Float.parseFloat(c2.getStarttime());\n\t\tfloat cendTime = Float.parseFloat(c2.getEndtime());\n\t\t\n\t\tif(day1.equals(cday1) || day1.equals(cday2) || day2.equals(cday2)) {\n\t\t\tif(startTime < cstartTime && endTime < cstartTime) {\n\t\t\t\treturn false;\n\t\t\t} else if(startTime > cstartTime && startTime > cendTime) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof IgracUcinakPK)) {\n return false;\n }\n IgracUcinakPK other = (IgracUcinakPK) object;\n if (this.utakmicaId != other.utakmicaId) {\n return false;\n }\n if (this.igracId != other.igracId) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Compra)) {\n return false;\n }\n Compra other = (Compra) object;\n if ((this.compraPK == null && other.compraPK != null) || (this.compraPK != null && !this.compraPK.equals(other.compraPK))) {\n return false;\n }\n return true;\n }",
"@Test\n\tpublic void testSameLibDiffLocs() \n\t{\n\t\tString id = \"diffHomeLoc\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertLCVol2NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalleFacturaPK)) {\r\n return false;\r\n }\r\n DetalleFacturaPK other = (DetalleFacturaPK) object;\r\n if ((this.codFactura == null && other.codFactura != null) || (this.codFactura != null && !this.codFactura.equals(other.codFactura))) {\r\n return false;\r\n }\r\n if (this.codArticulo != other.codArticulo) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n LitemallOrderRefund other = (LitemallOrderRefund) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))\n && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))\n && (this.getServiceSn() == null ? other.getServiceSn() == null : this.getServiceSn().equals(other.getServiceSn()))\n && (this.getOrderSn() == null ? other.getOrderSn() == null : this.getOrderSn().equals(other.getOrderSn()))\n && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))\n && (this.getOrderPrice() == null ? other.getOrderPrice() == null : this.getOrderPrice().equals(other.getOrderPrice()))\n && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))\n && (this.getOrderType() == null ? other.getOrderType() == null : this.getOrderType().equals(other.getOrderType()))\n && (this.getAuditStatus() == null ? other.getAuditStatus() == null : this.getAuditStatus().equals(other.getAuditStatus()))\n && (this.getConsignee() == null ? other.getConsignee() == null : this.getConsignee().equals(other.getConsignee()))\n && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))\n && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))\n && (this.getRefundReason() == null ? other.getRefundReason() == null : this.getRefundReason().equals(other.getRefundReason()))\n && (this.getProblemDescription() == null ? other.getProblemDescription() == null : this.getProblemDescription().equals(other.getProblemDescription()))\n && (this.getScreenshotUrl() == null ? other.getScreenshotUrl() == null : this.getScreenshotUrl().equals(other.getScreenshotUrl()))\n && (this.getRefundPrice() == null ? other.getRefundPrice() == null : this.getRefundPrice().equals(other.getRefundPrice()))\n && (this.getConfirmTime() == null ? other.getConfirmTime() == null : this.getConfirmTime().equals(other.getConfirmTime()))\n && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))\n && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))\n && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ResolucaoPK)) {\n return false;\n }\n ResolucaoPK other = (ResolucaoPK) object;\n if (this.avaliacaoId != other.avaliacaoId) {\n return false;\n }\n if (this.usuarioId != other.usuarioId) {\n return false;\n }\n return true;\n }",
"public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMaxEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMaxEffectiveEndUtcDtComparator();\n }",
"public boolean equals(java.lang.Object r3) {\n /*\n r2 = this;\n if (r2 == r3) goto L_0x0047\n boolean r0 = r3 instanceof com.bamtechmedia.dominguez.core.content.PromoLabel\n if (r0 == 0) goto L_0x0045\n com.bamtechmedia.dominguez.core.content.PromoLabel r3 = (com.bamtechmedia.dominguez.core.content.PromoLabel) r3\n java.lang.String r0 = r2.f8937c\n java.lang.String r1 = r3.f8937c\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n org.joda.time.DateTime r0 = r2.f8932U\n org.joda.time.DateTime r1 = r3.f8932U\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n org.joda.time.DateTime r0 = r2.f8933V\n org.joda.time.DateTime r1 = r3.f8933V\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.lang.String r0 = r2.f8934W\n java.lang.String r1 = r3.f8934W\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.lang.Integer r0 = r2.f8935X\n java.lang.Integer r1 = r3.f8935X\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.lang.Integer r0 = r2.f8936Y\n java.lang.Integer r3 = r3.f8936Y\n boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r3)\n if (r3 == 0) goto L_0x0045\n goto L_0x0047\n L_0x0045:\n r3 = 0\n return r3\n L_0x0047:\n r3 = 1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtechmedia.dominguez.core.content.PromoLabel.equals(java.lang.Object):boolean\");\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CtTaoCauHoiPK)) {\n return false;\n }\n CtTaoCauHoiPK other = (CtTaoCauHoiPK) object;\n if (this.macv != other.macv) {\n return false;\n }\n if (this.machuong != other.machuong) {\n return false;\n }\n return true;\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof ApptranregFeesAud)) {\n return false;\n }\n ApptranregFeesAud that = (ApptranregFeesAud) other;\n Object myAtrfAudUid = this.getAtrfAudUid();\n Object yourAtrfAudUid = that.getAtrfAudUid();\n if (myAtrfAudUid==null ? yourAtrfAudUid!=null : !myAtrfAudUid.equals(yourAtrfAudUid)) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ServiciosListaPK)) {\n return false;\n }\n ServiciosListaPK other = (ServiciosListaPK) object;\n if (this.codInstitucion != other.codInstitucion) {\n return false;\n }\n// if (this.codEstablecimiento != other.codEstablecimiento) {\n// return false;\n// }\n if (this.codLista != other.codLista) {\n return false;\n }\n if (this.codServicio != other.codServicio) {\n return false;\n }\n return true;\n }",
"private void m11061a(com.bigroad.ttb.android.vehicle.C2338a r7, long r8, java.util.ArrayList<com.bigroad.ttb.android.status.C2265b> r10) {\n /*\n r6 = this;\n r4 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320;\n if (r7 == 0) goto L_0x000c;\n L_0x0004:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.REQUIRED;\n r0 = r7.m11451a(r0);\n if (r0 != 0) goto L_0x000d;\n L_0x000c:\n return;\n L_0x000d:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x002d;\n L_0x0015:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0124;\n L_0x001d:\n r0 = r0.longValue();\n r2 = 20000; // 0x4e20 float:2.8026E-41 double:9.8813E-320;\n r0 = r0 + r2;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0124;\n L_0x0028:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.VAR_DATA_CORRUPTED;\n r6.m11060a(r2, r0, r10);\n L_0x002d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00e5;\n L_0x0035:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.TURBO_FIRMWARE_UPDATING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x0042;\n L_0x003d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.TURBO_FIRMWARE_UPDATING;\n r6.m11060a(r0, r8, r10);\n L_0x0042:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_INCOMPATIBLE;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x004f;\n L_0x004a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_NOT_COMPATIBLE;\n r6.m11060a(r0, r8, r10);\n L_0x004f:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x006d;\n L_0x0057:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0121;\n L_0x005f:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0121;\n L_0x0068:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_DETECTING;\n r6.m11060a(r2, r0, r10);\n L_0x006d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CURRENT;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00d2;\n L_0x0075:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.EOBR_TYPE_MATCH;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x0082;\n L_0x007d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WRONG_EOBR_TYPE;\n r6.m11060a(r0, r8, r10);\n L_0x0082:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_READINGS_VALID;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x008f;\n L_0x008a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x008f:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_CALIBRATED;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x009c;\n L_0x0097:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.UNCALIBRATED_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x009c:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ABSOLUTE_TIMESTAMP;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x00b7;\n L_0x00a4:\n r0 = r6.f7779m;\n if (r0 == 0) goto L_0x00b7;\n L_0x00a8:\n r0 = r6.f7779m;\n r0 = r0.mo1121o();\n r1 = com.bigroad.shared.eobr.EobrType.TURBO;\n if (r0 != r1) goto L_0x00b7;\n L_0x00b2:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WAITING_FOR_TURBO_GPS;\n r6.m11060a(r0, r8, r10);\n L_0x00b7:\n r0 = r7.m11449a();\n if (r0 == 0) goto L_0x00c2;\n L_0x00bd:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.RECONNECTING;\n r6.m11060a(r0, r8, r10);\n L_0x00c2:\n r0 = r6.f7780n;\n if (r0 != 0) goto L_0x00cb;\n L_0x00c6:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED_NOT_PLUGGED_IN;\n r6.m11060a(r0, r8, r10);\n L_0x00cb:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x00d2:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11453b(r0);\n if (r0 == 0) goto L_0x00b7;\n L_0x00da:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NOT_CURRENT;\n r6.m11060a(r2, r0, r10);\n goto L_0x00b7;\n L_0x00e5:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.SEARCHING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x00f2;\n L_0x00ed:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.SEARCHING;\n r6.m11060a(r0, r8, r10);\n L_0x00f2:\n r0 = com.bigroad.ttb.android.status.p031a.C2242a.C22408.f7760b;\n r1 = r7.m11455c();\n r1 = r1.ordinal();\n r0 = r0[r1];\n switch(r0) {\n case 1: goto L_0x0103;\n case 2: goto L_0x010a;\n case 3: goto L_0x0113;\n case 4: goto L_0x011a;\n default: goto L_0x0101;\n };\n L_0x0101:\n goto L_0x000c;\n L_0x0103:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_VIN_SPECIFIED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x010a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_DISABLED;\n r2 = 0;\n r6.m11060a(r0, r2, r10);\n goto L_0x000c;\n L_0x0113:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_UNSUPPORTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x011a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.DISCONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x0121:\n r0 = r8;\n goto L_0x0068;\n L_0x0124:\n r0 = r8;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bigroad.ttb.android.status.a.a.a(com.bigroad.ttb.android.vehicle.a, long, java.util.ArrayList):void\");\n }",
"public abstract void onMergePatchset(TicketModel ticket);",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalleOrdenCompraProductoPK)) {\r\n return false;\r\n }\r\n DetalleOrdenCompraProductoPK other = (DetalleOrdenCompraProductoPK) object;\r\n if (this.idOrdenCompra != other.idOrdenCompra) {\r\n return false;\r\n }\r\n if (this.idProducto != other.idProducto) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test\n\tpublic void TEAM3_CONTROLLER_UT04() {\n\t\t// PRECONDITIONS\n\t\tClassDetailsStub c1 = new ClassDetailsStub(TEST_CONFIG.SatOnly),\n\t\t\t\t\t\t c2 = new ClassDetailsStub(TEST_CONFIG.MonWedFri2);\n\t\t\n\t\tArrayList<ClassDetailsStub> s1 = new ArrayList<ClassDetailsStub>();\n\t\ts1.add(c1);\n\t\t\n\t\tArrayList<ClassDetailsStub> s2 = new ArrayList<ClassDetailsStub>();\n\t\ts2.add(c2);\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\t\t\n\t\t// INPUT\n\t\tCollection<ArrayList<ClassDetailsStub>> twoSchedules = new HashSet<ArrayList<ClassDetailsStub>>();\n\t\ttwoSchedules.add(s1);\n\t\ttwoSchedules.add(s2);\n\t\t\n\t\t// EXPECTED OUTPUT\n\t\tException exceptionThrown = null;\n\t\tboolean schedulesConflict = false;\n\t\ttry {\n\t\t\tschedulesConflict = smc.conflict(twoSchedules);\n\t\t} catch (ClassCastException cce) {\n\t\t\texceptionThrown = cce;\n\t\t}\n\t\t\n\t\tassertNull(exceptionThrown);\n\t\tassertFalse(schedulesConflict);\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ScEntregaRetorno)) {\n return false;\n }\n ScEntregaRetorno other = (ScEntregaRetorno) object;\n if ((this.scEntregaRetornoPK == null && other.scEntregaRetornoPK != null) || (this.scEntregaRetornoPK != null && !this.scEntregaRetornoPK.equals(other.scEntregaRetornoPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n AllSpfl other = (AllSpfl) that;\n return (this.getSpflbm() == null ? other.getSpflbm() == null : this.getSpflbm().equals(other.getSpflbm()))\n && (this.getSsbkbm() == null ? other.getSsbkbm() == null : this.getSsbkbm().equals(other.getSsbkbm()))\n && (this.getSpfl() == null ? other.getSpfl() == null : this.getSpfl().equals(other.getSpfl()))\n && (this.getSjspflbm() == null ? other.getSjspflbm() == null : this.getSjspflbm().equals(other.getSjspflbm()))\n && (this.getXspx() == null ? other.getXspx() == null : this.getXspx().equals(other.getXspx()))\n && (this.getSfsx() == null ? other.getSfsx() == null : this.getSfsx().equals(other.getSfsx()))\n && (this.getSpfltpwj() == null ? other.getSpfltpwj() == null : this.getSpfltpwj().equals(other.getSpfltpwj()))\n && (this.getTjsj() == null ? other.getTjsj() == null : this.getTjsj().equals(other.getTjsj()))\n && (this.getTjr() == null ? other.getTjr() == null : this.getTjr().equals(other.getTjr()))\n && (this.getZhxgr() == null ? other.getZhxgr() == null : this.getZhxgr().equals(other.getZhxgr()))\n && (this.getZhxgsj() == null ? other.getZhxgsj() == null : this.getZhxgsj().equals(other.getZhxgsj()))\n && (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()))\n && (this.getFldj() == null ? other.getFldj() == null : this.getFldj().equals(other.getFldj()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MesaPK)) {\n return false;\n }\n MesaPK other = (MesaPK) object;\n if (this.numeroOrden != other.numeroOrden) {\n return false;\n }\n if ((this.fechaOrden == null && other.fechaOrden != null) || (this.fechaOrden != null && !this.fechaOrden.equals(other.fechaOrden))) {\n return false;\n }\n return true;\n }",
"public boolean conflictCheck(String newStart, String newEnd, int customerId) throws SQLException {\r\n //Very long SQL statement to check for any conflicts\r\n String statement = \"SELECT Start, End FROM appointments WHERE Customer_ID = \"+customerId+\" AND (((Start < '\"+newStart+\"') AND ((End > '\"+newStart+\"') AND (End < '\"+newEnd+\"'))) /*Left Overlap*/ OR ((Start > '\"+newStart+\"') AND (End < '\"+newEnd+\"')) /*Inner Overlap*/ OR ((Start < '\"+newStart+\"') AND (End > '\"+newEnd+\"')) /*Outer Overlap*/ OR ((Start > '\"+newStart+\"') AND (Start < '\"+newEnd+\"'))/*Right Overlap*/ OR (Start = '\"+newStart+\"') /*Same Appointment*/ OR (End = '\"+newEnd+\"')) /*Same Appointment*/ \";\r\n\r\n\r\n ResultSet rs = conn.prepareStatement(statement).executeQuery();\r\n //If there is nothing in rs, then nothing was returned from SQL statement and no conflicts exist\r\n //System.out.println(\"No conflicts\");\r\n return rs.next();\r\n //System.out.println(\"About to return true\");\r\n }",
"@Override\n public boolean equals(Object obj) {\n PlanningSalle plaS;\n if (obj ==null || obj.getClass()!=this.getClass()){\n return false;\n }\n\n else {\n plaS =(PlanningSalle)obj;\n if(\n plaS.getDateDebutR().equals(getDateDebutR()) //vu que type primitif == pas equals\n & plaS.getDateFinR().equals(getDateFinR())) { \n {\n return true;\n }\n }\n\n else {\n return false;\n }\n }\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ObservacionesPK)) {\n return false;\n }\n ObservacionesPK other = (ObservacionesPK) object;\n if (this.codCia != other.codCia) {\n return false;\n }\n if (this.id != other.id) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TbFasesEmprestimoBemPermanentePK)) {\n return false;\n }\n TbFasesEmprestimoBemPermanentePK other = (TbFasesEmprestimoBemPermanentePK) object;\n if (this.idPedidoEmprestimo != other.idPedidoEmprestimo) {\n return false;\n }\n if ((this.idStatus == null && other.idStatus != null) || (this.idStatus != null && !this.idStatus.equals(other.idStatus))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Lin2006)) {\r\n return false;\r\n }\r\n Lin2006 other = (Lin2006) object;\r\n if ((this.lin2006PK == null && other.lin2006PK != null) || (this.lin2006PK != null && !this.lin2006PK.equals(other.lin2006PK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public TdRuspHijo( TdRuspHijoPK idComposite, java.util.Date fecModifico, java.lang.String trhRfcUnico, java.lang.String usuario, java.lang.String trhNombre, java.lang.String trhPrimer, java.lang.String trhSegundo) {\n this.idComposite = idComposite;\n this.fecModifico = fecModifico;\n this.trhRfcUnico = trhRfcUnico;\n this.usuario = usuario;\n this.trhNombre = trhNombre;\n this.trhPrimer = trhPrimer;\n this.trhSegundo = trhSegundo;\n }",
"SolvableConflictModel createInstanceOfSolvableConflictModel();",
"public static void collidePoly(Manifold manif, \n \t\tPolygonShape polyA, XForm xfA,\n PolygonShape polyB, XForm xfB) {\n\n //testbed.PTest.debugCount++;\n manif.pointCount = 0; // Fixed a problem with contacts\n MaxSeparation sepA = findMaxSeparation(polyA, xfA, polyB, xfB);\n if (sepA.bestSeparation > 0.0f) {\n return;\n }\n\n MaxSeparation sepB = findMaxSeparation(polyB, xfB, polyA, xfA);\n if (sepB.bestSeparation > 0.0f) {\n return;\n }\n\n PolygonShape poly1; // reference poly\n PolygonShape poly2; // incident poly\n XForm xf1 = new XForm();\n XForm xf2 = new XForm();\n int edge1; // reference edge\n byte flip;\n float k_relativeTol = 0.98f;\n float k_absoluteTol = 0.001f;\n\n // TODO_ERIN use \"radius\" of poly for absolute tolerance.\n if (sepB.bestSeparation > k_relativeTol * sepA.bestSeparation\n + k_absoluteTol) {\n poly1 = polyB;\n poly2 = polyA;\n xf1.set(xfB);\n \t\txf2.set(xfA);\n edge1 = sepB.bestFaceIndex;\n flip = 1;\n }\n else {\n poly1 = polyA;\n poly2 = polyB;\n xf1.set(xfA);\n \t\txf2.set(xfB);\n edge1 = sepA.bestFaceIndex;\n flip = 0;\n }\n\n ClipVertex incidentEdge[] = new ClipVertex[2];\n findIncidentEdge(incidentEdge, poly1, xf1, edge1, poly2, xf2);\n\n int count1 = poly1.m_vertexCount;\n Vec2[] vert1s = poly1.m_vertices;\n\n Vec2 v11 = vert1s[edge1];\n Vec2 v12 = edge1 + 1 < count1 ? vert1s[edge1 + 1] : vert1s[0];\n\n Vec2 sideNormal = Mat22.mul(xf1.R, v12.sub(v11));\n sideNormal.normalize();\n Vec2 frontNormal = Vec2.cross(sideNormal, 1.0f);\n\n v11 = XForm.mul(xf1, v11);\n \tv12 = XForm.mul(xf1, v12);\n\n float frontOffset = Vec2.dot(frontNormal, v11);\n float sideOffset1 = -Vec2.dot(sideNormal, v11);\n float sideOffset2 = Vec2.dot(sideNormal, v12);\n\n // Clip incident edge against extruded edge1 side edges.\n ClipVertex clipPoints1[] = new ClipVertex[2];\n ClipVertex clipPoints2[] = new ClipVertex[2];\n int np;\n\n // Clip to box side 1\n np = clipSegmentToLine(clipPoints1, incidentEdge, sideNormal.negate(), sideOffset1);\n\n if (np < 2) {\n return;\n }\n\n // Clip to negative box side 1\n np = clipSegmentToLine(clipPoints2, clipPoints1, sideNormal,\n sideOffset2);\n\n if (np < 2) {\n return;\n }\n\n // Now clipPoints2 contains the clipped points.\n manif.normal = (flip != 0) ? frontNormal.negate() : frontNormal.clone();\n\n int pointCount = 0;\n for (int i = 0; i < Settings.maxManifoldPoints; ++i) {\n float separation = Vec2.dot(frontNormal, clipPoints2[i].v)\n - frontOffset;\n\n if (separation <= 0.0f) {\n ManifoldPoint cp = manif.points[pointCount];\n cp.separation = separation;\n cp.localPoint1 = XForm.mulT(xfA, clipPoints2[i].v);\n \t\t\tcp.localPoint2 = XForm.mulT(xfB, clipPoints2[i].v);\n cp.id = new ContactID(clipPoints2[i].id);\n cp.id.features.flip = flip;\n ++pointCount;\n }\n }\n\n manif.pointCount = pointCount;\n\n return;\n }",
"@Override\r\n public void validate(FacesContext fc, UIComponent uic, Object o) throws ValidatorException {\n SimpleDateFormat sdft = new SimpleDateFormat(\"HH:mm:ss\");\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n HorarioDao horarioDao = new HorarioDao();\r\n Horario_TO horario = new Horario_TO();\r\n\r\n //Obtenemos los valores de cada variable desde el contexto de la vista\r\n horario.setHorario((String) o); \r\n try {//Formateamos las fechas segun lo necesitemos\r\n fechaRecogida = sdf.parse(sdf.format((Date) uic.getAttributes().get(\"fechaRecogida\")));\r\n horaRecogida = sdft.parse(horarioDao.consultarHorario(horario).getHoraInicio());\r\n fechaActual = sdf.parse(sdf.format(fechaHoraActual));\r\n horaActual = sdft.parse(sdft.format(fechaHoraActual));\r\n } catch (ParseException e) {\r\n e.getMessage();\r\n }\r\n\r\n if (fechaRecogida.equals(fechaActual)) {\r\n if (horaRecogida.before(horaActual)) {\r\n FacesMessage fmsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Error\", \"La hora de recogida del pedido es menor a la hora actual\");\r\n throw new ValidatorException(fmsg);\r\n }\r\n }\r\n\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CostoActividadPK)) {\n return false;\n }\n CostoActividadPK other = (CostoActividadPK) object;\n if (this.numeroPeriodo != other.numeroPeriodo) {\n return false;\n }\n if ((this.idActividad == null && other.idActividad != null) || (this.idActividad != null && !this.idActividad.equals(other.idActividad))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n PObjLayout other = (PObjLayout) that;\n return (this.getGid() == null ? other.getGid() == null : this.getGid().equals(other.getGid()))\n && (this.getpObjObjectGid() == null ? other.getpObjObjectGid() == null : this.getpObjObjectGid().equals(other.getpObjObjectGid()))\n && (this.getLayoutName() == null ? other.getLayoutName() == null : this.getLayoutName().equals(other.getLayoutName()))\n && (this.getLayoutType() == null ? other.getLayoutType() == null : this.getLayoutType().equals(other.getLayoutType()))\n && (this.getDf() == null ? other.getDf() == null : this.getDf().equals(other.getDf()))\n && (this.getFields() == null ? other.getFields() == null : this.getFields().equals(other.getFields()))\n && (this.getJsondata() == null ? other.getJsondata() == null : this.getJsondata().equals(other.getJsondata()))\n && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))\n && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))\n && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))\n && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))\n && (this.getActive() == null ? other.getActive() == null : this.getActive().equals(other.getActive()))\n && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof AplicacionXSubProcesoNegocioPK)) {\n return false;\n }\n AplicacionXSubProcesoNegocioPK other = (AplicacionXSubProcesoNegocioPK) object;\n if (this.idAplicacion != other.idAplicacion) {\n return false;\n }\n if (this.idSubProceso != other.idSubProceso) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof CandidateStatusKey)) return false;\n\n CandidateStatusKey that = (CandidateStatusKey) o;\n\n if (workRequestId != null ? !workRequestId.equals(that.workRequestId) : that.workRequestId != null)\n return false;\n if (status != null ? !status.equals(that.status) : that.status != null)\n return false;\n return lastUpdateDate != null ? lastUpdateDate.equals(that.lastUpdateDate) : that.lastUpdateDate == null;\n }",
"private void checkCombinationWhenHrAreEqual(TimeBean obj, List<String> listTimeComb ) {\r\n\t\tif(( obj.getStartMin()==0 ) && (obj.getStartHr() <= obj.getEndSec() ) ) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":00:\"+obj.getEndHr());\r\n\t\t}\r\n\t\t\r\n\t\tif((obj.getEndHr() < obj.getEndMin()) ||( obj.getEndHr() == obj.getEndMin() && obj.getStartSec() == 0)) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":\"+obj.getEndHr()+\":00\");\r\n\t\t}\r\n\r\n\t\tif((obj.getEndHr() < obj.getEndMin()) || (obj.getEndHr() == obj.getEndMin() && obj.getStartSec() <= obj.getEndMin() && obj.getStartSec() <= obj.getEndSec())) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":\"+obj.getEndHr()+\":\"+obj.getEndHr());\r\n\t\t}\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof OrdenitemPK)) {\r\n return false;\r\n }\r\n OrdenitemPK other = (OrdenitemPK) object;\r\n if (this.ordencompraNumeroorden != other.ordencompraNumeroorden) {\r\n return false;\r\n }\r\n if (this.libroIsbn != other.libroIsbn) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof AfBienesDepreciables)) {\r\n return false;\r\n }\r\n AfBienesDepreciables other = (AfBienesDepreciables) object;\r\n if ((this.idBien == null && other.idBien != null) || (this.idBien != null && !this.idBien.equals(other.idBien))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof StdHrAcadBackgr)) {\n return false;\n }\n StdHrAcadBackgr other = (StdHrAcadBackgr) object;\n if ((this.stdHrAcadBackgrPK == null && other.stdHrAcadBackgrPK != null) || (this.stdHrAcadBackgrPK != null && !this.stdHrAcadBackgrPK.equals(other.stdHrAcadBackgrPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof EgressoCursoPK)) {\n return false;\n }\n EgressoCursoPK other = (EgressoCursoPK) object;\n if ((this.egressocpf == null && other.egressocpf != null) || (this.egressocpf != null && !this.egressocpf.equals(other.egressocpf))) {\n return false;\n }\n if (this.cursoid != other.cursoid) {\n return false;\n }\n return true;\n }",
"public boolean validarClienImpLinComEstFilial(Long codigoClienteImportacion,Integer codigoCompania)throws SICException{\n\t\ttry {\n\t\t\tLogeable.LOG_SICV2.info(\"Metodo validarClienImpLinComEstFilial \");\n\t\t\tLogeable.LOG_SICV2.info(\"Parametros : \");\n\t\t\tLogeable.LOG_SICV2.info(\"codigoClienteImportacion : \"+codigoClienteImportacion);\n\t\t\tLogeable.LOG_SICV2.info(\"codigoCompania : \"+codigoCompania);\n\t\t\t\n\t\t\tCriteria criteria = hibernateH.getHibernateSession().createCriteria(LineaComercialClienteImportacionDTO.class);\n\t\t\tcriteria.setProjection(Projections.count(\"id.codigoClienteImportacion\"));\n\t\t\tcriteria.createAlias(\"lineaComercialDTO\", \"lineaComercialDTO\");\n\t\t\tcriteria.createAlias(\"lineaComercialDTO.establecimiento\", \"establecimiento\");\n\t\t\tcriteria.add(Restrictions.eq(\"establecimiento.tipoEstablecimiento\",CorporativoConstantes.TIPO_ESTABLECIMIENTO_FILIAL));\n\t\t\tcriteria.add(Restrictions.eq(\"id.codigoClienteImportacion\", codigoClienteImportacion));\n\t\t\tcriteria.add(Restrictions.eq(\"id.codigoCompania\", codigoCompania));\n\t\t\tcriteria.add(Restrictions.eq(\"estado\", SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\tcriteria.add(Restrictions.eq(\"lineaComercialDTO.estado\", SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\tcriteria.add(Restrictions.eq(\"establecimiento.estado\", SICConstantes.ESTADO_ACTIVO_LITERAL));\n\t\t\t\n\t\t\tLong resulCount = (Long)criteria.uniqueResult();\n\t\t\t\n\t\t\tif(resulCount > 0){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\treturn false;\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error validarClienImpLinComEstFilial\",e);\n\t\t}\n\t}",
"public int compare(Object pObj1, Object pObj2)\r\n {\r\n VwClientFollowupBean b1 = (VwClientFollowupBean)pObj1;\r\n VwClientFollowupBean b2 = (VwClientFollowupBean)pObj2;\r\n int iReturn = 0;\r\n switch(iType)\r\n {\r\n case VwClientFollowupManager.ID_LAST_NAME:\r\n if (b1.getLastName() == null && b2.getLastName() != null) {\r\n iReturn = -1;\r\n } else if (b1.getLastName() == null && b2.getLastName() == null) {\r\n iReturn = 0;\r\n } else if (b1.getLastName() != null && b2.getLastName() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getLastName().compareTo(b2.getLastName());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_FIRST_NAME:\r\n if (b1.getFirstName() == null && b2.getFirstName() != null) {\r\n iReturn = -1;\r\n } else if (b1.getFirstName() == null && b2.getFirstName() == null) {\r\n iReturn = 0;\r\n } else if (b1.getFirstName() != null && b2.getFirstName() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getFirstName().compareTo(b2.getFirstName());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_DESCRIPTION:\r\n if (b1.getDescription() == null && b2.getDescription() != null) {\r\n iReturn = -1;\r\n } else if (b1.getDescription() == null && b2.getDescription() == null) {\r\n iReturn = 0;\r\n } else if (b1.getDescription() != null && b2.getDescription() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getDescription().compareTo(b2.getDescription());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_CLOSED_DT:\r\n if (b1.getClosedDt() == null && b2.getClosedDt() != null) {\r\n iReturn = -1;\r\n } else if (b1.getClosedDt() == null && b2.getClosedDt() == null) {\r\n iReturn = 0;\r\n } else if (b1.getClosedDt() != null && b2.getClosedDt() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getClosedDt().compareTo(b2.getClosedDt());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_OPENED_DATE:\r\n if (b1.getOpenedDate() == null && b2.getOpenedDate() != null) {\r\n iReturn = -1;\r\n } else if (b1.getOpenedDate() == null && b2.getOpenedDate() == null) {\r\n iReturn = 0;\r\n } else if (b1.getOpenedDate() != null && b2.getOpenedDate() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getOpenedDate().compareTo(b2.getOpenedDate());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_DUE_DT:\r\n if (b1.getDueDt() == null && b2.getDueDt() != null) {\r\n iReturn = -1;\r\n } else if (b1.getDueDt() == null && b2.getDueDt() == null) {\r\n iReturn = 0;\r\n } else if (b1.getDueDt() != null && b2.getDueDt() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getDueDt().compareTo(b2.getDueDt());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_FOLLOWUP_ID:\r\n if (b1.getFollowupId() == null && b2.getFollowupId() != null) {\r\n iReturn = -1;\r\n } else if (b1.getFollowupId() == null && b2.getFollowupId() == null) {\r\n iReturn = 0;\r\n } else if (b1.getFollowupId() != null && b2.getFollowupId() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getFollowupId().compareTo(b2.getFollowupId());\r\n }\r\n break;\r\n default:\r\n throw new IllegalArgumentException(\"Type passed for the field is not supported\");\r\n }\r\n\r\n return bReverse ? (-1 * iReturn) : iReturn;\r\n }",
"public void checkOverlap() {\n\n // Logic that validates overlap.\n if(redCircle.getBoundsInParent().intersects(blueCircle.getBoundsInParent())) {\n title.setText(\"Two circles intersect? Yes\");\n }\n else {\n title.setText(\"Two circles intersect? No\");\n }\n\n // Update fields in red table.\n redCircleCenterXValue.setText(String.valueOf(redCircle.getCenterX()));\n redCircleCenterYValue.setText(String.valueOf(redCircle.getCenterY()));\n redCircleRadiusValue.setText(String.valueOf(redCircle.getRadius()));\n\n // Update fields in blue table.\n blueCircleCenterXValue.setText(String.valueOf(blueCircle.getCenterX()));\n blueCircleCenterYValue.setText(String.valueOf(blueCircle.getCenterY()));\n blueCircleRadiusValue.setText(String.valueOf(blueCircle.getRadius()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DocumentoPresentadoPK)) {\n return false;\n }\n DocumentoPresentadoPK other = (DocumentoPresentadoPK) object;\n if (this.codCia != other.codCia) {\n return false;\n }\n if (this.codDocumentoPres != other.codDocumentoPres) {\n return false;\n }\n if (this.codCandidato != other.codCandidato) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ConContableMotivoAnulacion)) {\n return false;\n }\n ConContableMotivoAnulacion other = (ConContableMotivoAnulacion) object;\n if ((this.conContableMotivoAnulacionPK == null && other.conContableMotivoAnulacionPK != null) || (this.conContableMotivoAnulacionPK != null && !this.conContableMotivoAnulacionPK.equals(other.conContableMotivoAnulacionPK))) {\n return false;\n }\n return true;\n }",
"@Test\n\tpublic void TEAM3_CONTROLLER_UT03() {\n\t\t// PRECONDITIONS\n\t\tClassDetailsStub c1 = new ClassDetailsStub(TEST_CONFIG.SatOnly),\n\t\t\t\t\t\t c2 = new ClassDetailsStub(TEST_CONFIG.MonWedFri2),\n\t\t\t\t\t\t c3 = new ClassDetailsStub(TEST_CONFIG.TueThu);\n\t\t\n\t\tArrayList<ClassDetailsStub> s1 = new ArrayList<ClassDetailsStub>();\n\t\ts1.add(c1);\n\t\ts1.add(c3);\n\t\t\n\t\tArrayList<ClassDetailsStub> s2 = new ArrayList<ClassDetailsStub>();\n\t\ts2.add(c2);\n\t\ts2.add(c3);\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\t\t\n\t\t// INPUT\n\t\tCollection<ArrayList<ClassDetailsStub>> twoSchedules = new ArrayList<ArrayList<ClassDetailsStub>>();\n\t\ttwoSchedules.add(s1);\n\t\ttwoSchedules.add(s2);\n\t\t\n\t\t// EXPECTED OUTPUT\n\t\tboolean schedulesConflict = smc.conflict(twoSchedules);\n\t\tassertTrue(schedulesConflict);\n\t}",
"@Override\n public final void checkOtherFraudUpdate(final Map<String, Object> pAddParam,\n final GoodsLoss pEntity,\n final GoodsLoss pOldEntity) throws Exception {\n //nothing\n }",
"@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Libro other = (Libro) obj;\n if (this.descargable != other.descargable) {\n return false;\n }\n if (!Objects.equals(this.titulo, other.titulo)) {\n return false;\n }\n if (!Objects.equals(this.autor, other.autor)) {\n return false;\n }\n if (!Objects.equals(this.editorial, other.editorial)) {\n return false;\n }\n if (!Objects.equals(this.genero, other.genero)) {\n return false;\n }\n if (!Objects.equals(this.linkDescarga, other.linkDescarga)) {\n return false;\n }\n if (!Objects.equals(this.idLibro, other.idLibro)) {\n return false;\n }\n if (!Objects.equals(this.isbn, other.isbn)) {\n return false;\n }\n if (!Objects.equals(this.cantidadTotal, other.cantidadTotal)) {\n return false;\n }\n if (!Objects.equals(this.cantidadDisponible, other.cantidadDisponible)) {\n return false;\n }\n if (!Objects.equals(this.bibliotecario, other.bibliotecario)) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CompetitionPK)) {\n return false;\n }\n CompetitionPK other = (CompetitionPK) object;\n if ((this.code == null && other.code != null) || (this.code != null && !this.code.equals(other.code))) {\n return false;\n }\n if ((this.programCode == null && other.programCode != null) || (this.programCode != null && !this.programCode.equals(other.programCode))) {\n return false;\n }\n if ((this.programVersion == null && other.programVersion != null) || (this.programVersion != null && !this.programVersion.equals(other.programVersion))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Filial)) {\r\n return false;\r\n }\r\n Filial other = (Filial) object;\r\n if ((this.codFilial == null && other.codFilial != null) || (this.codFilial != null && !this.codFilial.equals(other.codFilial))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Utilisateurdb)) {\n return false;\n }\n Utilisateurdb other = (Utilisateurdb) object;\n if ((this.utilisateurdbPK == null && other.utilisateurdbPK != null) || (this.utilisateurdbPK != null && !this.utilisateurdbPK.equals(other.utilisateurdbPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DatosIndicadores)) {\n return false;\n }\n DatosIndicadores other = (DatosIndicadores) object;\n if ((this.datosIndicadoresPK == null && other.datosIndicadoresPK != null) || (this.datosIndicadoresPK != null && !this.datosIndicadoresPK.equals(other.datosIndicadoresPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ReservacionesPK)) {\n return false;\n }\n ReservacionesPK other = (ReservacionesPK) object;\n if (this.idreservaciones != other.idreservaciones) {\n return false;\n }\n if (this.clienteIdcliente != other.clienteIdcliente) {\n return false;\n }\n if (this.sucursalIdubicacion != other.sucursalIdubicacion) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GlAccountHistoryPK)) {\r\n return false;\r\n }\r\n GlAccountHistoryPK other = (GlAccountHistoryPK) object;\r\n if ((this.glAccountId == null && other.glAccountId != null) || (this.glAccountId != null && !this.glAccountId.equals(other.glAccountId))) {\r\n return false;\r\n }\r\n if ((this.organizationPartyId == null && other.organizationPartyId != null) || (this.organizationPartyId != null && !this.organizationPartyId.equals(other.organizationPartyId))) {\r\n return false;\r\n }\r\n if ((this.customTimePeriodId == null && other.customTimePeriodId != null) || (this.customTimePeriodId != null && !this.customTimePeriodId.equals(other.customTimePeriodId))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"protected boolean handleDirtyConflict() {\r\n\t\treturn MessageDialog.openQuestion(getSite().getShell(),\r\n\t\t\t\tgetString(\"_UI_FileConflict_label\"),\r\n\t\t\t\tgetString(\"_WARN_FileConflict\"));\r\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MateriasHasEspacioHasHorariosPK)) {\n return false;\n }\n MateriasHasEspacioHasHorariosPK other = (MateriasHasEspacioHasHorariosPK) object;\n if (this.materiasIdmaterias != other.materiasIdmaterias) {\n return false;\n }\n if (this.espacioHasHorariosEspacioIdespacio != other.espacioHasHorariosEspacioIdespacio) {\n return false;\n }\n if (this.espacioHasHorariosHorariosIdhorarios != other.espacioHasHorariosHorariosIdhorarios) {\n return false;\n }\n return true;\n }",
"public int compareTo(FlightKey other) {\n\t\t// FILL IN CODE\n\t\tif(this.origin.compareTo(other.origin) < 0) return -1;\n\t\tif(this.origin.compareTo(other.origin) > 0) return 1;\n\n\t\tif(this.dest.compareTo(other.dest) < 0) return -1;\n\t\tif(this.dest.compareTo(other.dest) > 0) return 1;\n\n\t\tif(this.date.compareTo(other.date) < 0) return -1;\n\t\tif(this.date.compareTo(other.date) > 0) return 1;\n\n\t\tif(this.time.compareTo(other.time) < 0) return -1;\n\t\tif(this.time.compareTo(other.time) > 0) return 1;\n\n\t\treturn 0; // don't forget to change it\n\t}",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n VEqinquiry other = (VEqinquiry) that;\n return (this.getCorpcode() == null ? other.getCorpcode() == null : this.getCorpcode().equals(other.getCorpcode()))\n && (this.getCorpname() == null ? other.getCorpname() == null : this.getCorpname().equals(other.getCorpname()))\n && (this.getCorpshortname() == null ? other.getCorpshortname() == null : this.getCorpshortname().equals(other.getCorpshortname()))\n && (this.getCorptype() == null ? other.getCorptype() == null : this.getCorptype().equals(other.getCorptype()))\n && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getCorpid() == null ? other.getCorpid() == null : this.getCorpid().equals(other.getCorpid()))\n && (this.getInquirycontent() == null ? other.getInquirycontent() == null : this.getInquirycontent().equals(other.getInquirycontent()))\n && (this.getInquirydate() == null ? other.getInquirydate() == null : this.getInquirydate().equals(other.getInquirydate()))\n && (this.getAttribute1() == null ? other.getAttribute1() == null : this.getAttribute1().equals(other.getAttribute1()))\n && (this.getAttribute2() == null ? other.getAttribute2() == null : this.getAttribute2().equals(other.getAttribute2()))\n && (this.getAttribute3() == null ? other.getAttribute3() == null : this.getAttribute3().equals(other.getAttribute3()))\n && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby()))\n && (this.getCreationdate() == null ? other.getCreationdate() == null : this.getCreationdate().equals(other.getCreationdate()))\n && (this.getLastupdateby() == null ? other.getLastupdateby() == null : this.getLastupdateby().equals(other.getLastupdateby()))\n && (this.getLastupdatedate() == null ? other.getLastupdatedate() == null : this.getLastupdatedate().equals(other.getLastupdatedate()));\n }",
"@Override\n public boolean handleIt(final AttributeConflict conflict) {\n //idMapping.getMapTgtTypeIDs(toID, toAttrName)\n final CyAttributes attrs = conflict.getCyAttributes();\n final String fromID = conflict.getFromID();\n final String fromAttr = conflict.getFromAttr();\n final String toID = conflict.getToID();\n final String toAttr = conflict.getToAttr();\n\n //final Object fromValue = attrs.getAttribute(fromID, fromAttr);\n final Object toValue = attrs.getAttribute(toID, toAttr);\n\n if (!(toValue instanceof String)) { //TODO: deal with other types\n return false;\n }\n\n Map<String,String> mapGOAttr = new HashMap<String,String>();\n mapGOAttr.put(fromID, fromAttr);\n mapGOAttr.put(toID, toAttr);\n Map<String,Set<String>> overlappedMapTypeIDs = IDMappingDataUtils.getOverlappingIDMapping(idMapping, mapGOAttr);\n\n if (overlappedMapTypeIDs==null||overlappedMapTypeIDs.isEmpty()) {\n return false;\n }\n\n //if the src type in, pick it, otherwise pick the first type\n //TODO : realize a type priority\n String srcType = idMapping.getSrcIDType(toID, toAttr);\n Set<String> values = overlappedMapTypeIDs.get(srcType);\n if (values==null) {\n values = overlappedMapTypeIDs.values().iterator().next();\n }\n String value = values.iterator().next();\n attrs.setAttribute(toID, toAttr, value);\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CekIndArticuloPK)) {\r\n return false;\r\n }\r\n CekIndArticuloPK other = (CekIndArticuloPK) object;\r\n if ((this.idPais == null && other.idPais != null) || (this.idPais != null && !this.idPais.equals(other.idPais))) {\r\n return false;\r\n }\r\n if ((this.idPeriodo == null && other.idPeriodo != null) || (this.idPeriodo != null && !this.idPeriodo.equals(other.idPeriodo))) {\r\n return false;\r\n }\r\n if ((this.idArticulo == null && other.idArticulo != null) || (this.idArticulo != null && !this.idArticulo.equals(other.idArticulo))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean isConflicting (RuleSet ruleset) {\n \n if (this.id == ruleset.id)\n return false; \n \n if (!this.getPrecursorWithID().sensorMatch(ruleset.getPrecursorWithID()))\n return false;\n \n \n for (int i = 0; i < this.getSuccessor().size(); i++) {\n \n if ((this.getSuccessor().getToken(i).isNotWildcard()) && (ruleset.getSuccessor().getToken(i).isNotWildcard())) {\n \n //if (this.getPrecursorOccurrencies() <= ruleset.getPrecursorOccurrencies())\n return true; \n }\n }\n \n \n return false;\n }",
"public boolean equals(Object obj) {\n if (this == obj) return true;\n if (obj == null) {\n return false;\n }\n DsSipEventHeaderBase header = null;\n try {\n header = (DsSipEventHeaderBase) obj;\n } catch (ClassCastException cce) {\n return false;\n }\n if ((m_strPackage != null) && (m_strPackage.length() > 0)) {\n if (!m_strPackage.equals(header.m_strPackage)) {\n return false;\n }\n } else if ((header.m_strPackage != null) && (header.m_strPackage.length() > 0)) {\n return false;\n }\n if ((m_subPackages != null) && (m_subPackages.size() > 0)) {\n if ((header.m_subPackages == null) || (header.m_subPackages.size() != m_subPackages.size())) {\n return false;\n }\n Iterator iter1 = m_subPackages.listIterator(0);\n Iterator iter2 = header.m_subPackages.listIterator(0);\n DsByteString str1 = null;\n DsByteString str2 = null;\n while (iter1.hasNext()) {\n str1 = (DsByteString) iter1.next();\n str2 = (DsByteString) iter2.next();\n if (!str1.equals(str2)) return false;\n }\n } else if ((header.m_subPackages != null) && (header.m_subPackages.size() > 0)) {\n return false;\n }\n\n if (m_paramTable != null && header.m_paramTable != null) {\n if (!m_paramTable.equals(header.m_paramTable)) {\n return false;\n }\n } else if (m_paramTable == null && header.m_paramTable != null) {\n if (!header.m_paramTable.isEmpty()) {\n return false;\n }\n } else if (header.m_paramTable == null && m_paramTable != null) {\n if (!m_paramTable.isEmpty()) {\n return false;\n }\n }\n // else both null - ok\n\n return true;\n }",
"public boolean equals(Object obj) {\r\n if (obj == null) {\r\n return false;\r\n }\r\n if (getClass() != obj.getClass()) {\r\n return false;\r\n }\r\n PrestitiAbstractSearch other = (PrestitiAbstractSearch) obj;\r\n if (soggetti == null) {\r\n if (other.getSoggetti() != null) {\r\n return false;\r\n }\r\n } else if (!soggetti.equals(other.getSoggetti())) {\r\n return false;\r\n }\r\n if (soggetti_username == null) {\r\n if (other.getSoggetti_username() != null) {\r\n return false;\r\n }\r\n } else if (!soggetti_username.equals(other.getSoggetti_username())) {\r\n return false;\r\n }\r\n if (dataPrestitoFrom == null) {\r\n if (other.getDataPrestitoFrom() != null) {\r\n return false;\r\n }\r\n } else if (!dataPrestitoFrom.equals(other.getDataPrestitoFrom())) {\r\n return false;\r\n }\r\n if (dataPrestitoTo == null) {\r\n if (other.getDataPrestitoTo() != null) {\r\n return false;\r\n }\r\n } else if (!dataPrestitoTo.equals(other.getDataPrestitoTo())) {\r\n return false;\r\n }\r\n if (scadenzaPrestitoFrom == null) {\r\n if (other.getScadenzaPrestitoFrom() != null) {\r\n return false;\r\n }\r\n } else if (!scadenzaPrestitoFrom.equals(other.getScadenzaPrestitoFrom())) {\r\n return false;\r\n }\r\n if (scadenzaPrestitoTo == null) {\r\n if (other.getScadenzaPrestitoTo() != null) {\r\n return false;\r\n }\r\n } else if (!scadenzaPrestitoTo.equals(other.getScadenzaPrestitoTo())) {\r\n return false;\r\n }\r\n if (oggetti == null) {\r\n if (other.getOggetti() != null) {\r\n return false;\r\n }\r\n } else if (!oggetti.equals(other.getOggetti())) {\r\n return false;\r\n }\r\n if (oggetti_id == null) {\r\n if (other.getOggetti_id() != null) {\r\n return false;\r\n }\r\n } else if (!oggetti_id.equals(other.getOggetti_id())) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CentroHasModeloPK)) {\n return false;\n }\n CentroHasModeloPK other = (CentroHasModeloPK) object;\n if (this.idcentro != other.idcentro) {\n return false;\n }\n if ((this.idmodelo == null && other.idmodelo != null) || (this.idmodelo != null && !this.idmodelo.equals(other.idmodelo))) {\n return false;\n }\n return true;\n }",
"public CFWRect intersectsLine( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//1.rejust rect\r\n\t\t//correct: (m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\r\n\t\tif(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange all\r\n\t\t\tCFWPoint poiTmp = m_poiLT;\r\n\t\t\tm_poiLT = m_poiRB;\r\n\t\t\tm_poiRB = poiTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\t{\r\n\t\t\t//exchange X\r\n\t\t\tfloat fXTmp = m_poiLT.m_fX;\r\n\t\t\tm_poiLT.m_fX = m_poiRB.m_fX;\r\n\t\t\tm_poiRB.m_fX = fXTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange Y\r\n\t\t\tfloat fYTmp = m_poiLT.m_fY;\r\n\t\t\tm_poiLT.m_fY = m_poiRB.m_fY;\r\n\t\t\tm_poiRB.m_fY = fYTmp;\r\n\t\t}\r\n\t\t//2.intersect test\r\n\t\tCFWPoint poiOutOfRect = new CFWPoint();\r\n\t\tboolean bPoiInsideRect = false;\r\n\t\tCFWRect rectRet = new CFWRect();\r\n\t\tif(!checkPoiInside( poiBegI, poiEndI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse if(!checkPoiInside( poiEndI, poiBegI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\tif(isInsideArea( 9, poiBegI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\t}\r\n\t\t\t\trectRet.m_poiLT = poiBegI;\r\n\t\t\t\tpoiOutOfRect = poiEndI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiBegI))\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\trectRet.m_poiLT = poiEndI;\r\n\t\t\t\tpoiOutOfRect = poiBegI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//3.intersect\r\n\t\t//if the line is vertical to X/Y, return the line segment\r\n\t\tif(poiEndI.m_fX == poiBegI.m_fX)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = poiEndI.m_fX;\r\n\t\t\t\t//less than the m_poiLT'Y, use the m_poiLT'Y\r\n\t\t\t\trectRet.m_poiLT.m_fY = Math.max( Math.min(poiBegI.m_fY, poiEndI.m_fY), m_poiLT.m_fY);\r\n\t\t\t\t//larger than m_poiRB's Y, use the m_poiRB's Y\r\n\t\t\t\trectRet.m_poiRB.m_fY = Math.min( Math.max(poiBegI.m_fY, poiEndI.m_fY), m_poiRB.m_fY);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fY < m_poiLT.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\telse if(poiOutOfRect.m_fY > m_poiRB.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiRB.m_fY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fX = poiEndI.m_fX;\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(poiEndI.m_fY == poiBegI.m_fY)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = Math.max( Math.min( poiBegI.m_fX, poiEndI.m_fX), m_poiLT.m_fX);\r\n\t\t\t\trectRet.m_poiLT.m_fY = poiEndI.m_fY;\r\n\t\t\t\trectRet.m_poiRB.m_fX = Math.min( Math.max( poiBegI.m_fX, poiEndI.m_fX), m_poiRB.m_fX);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fX < m_poiLT.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\telse if(poiOutOfRect.m_fX > m_poiRB.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiRB.m_fX;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fY = poiEndI.m_fY;\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\t//build line function\r\n\t\t\tdouble dK = (poiEndI.m_fY - poiBegI.m_fY)/(poiEndI.m_fX - poiBegI.m_fX);\r\n\t\t\tdouble dB = poiBegI.m_fY - dK*poiBegI.m_fX;\r\n\t\t\t//find intersect points\r\n\t\t\tCFWPoint poiIntersA = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tCFWPoint poiIntersB = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tfloat fXTmpA = (float)((m_poiLT.m_fY - dB)/dK);\r\n\t\t\tfloat fXTmpB = (float)((m_poiRB.m_fY - dB)/dK);\r\n\t\t\tfloat fYTmpA = (float)(dK*m_poiLT.m_fX + dB);\r\n\t\t\tfloat fYTmpB = (float)(dK*m_poiRB.m_fX + dB);\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpA, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpB, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpA, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpB, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(bPoiInsideRect)\t{\r\n\t\t\t\tCFWVector vecBE = new CFWVector(poiOutOfRect.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBA = new CFWVector(poiIntersA.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBB = new CFWVector(poiIntersB.sub(rectRet.m_poiLT));\r\n\t\t\t\tif(vecBE.isSameDir_VerticalIn(vecBA))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersA;\r\n\t\t\t\t}\r\n\t\t\t\telse if(vecBE.isSameDir_VerticalIn(vecBB))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\trectRet.m_poiLT = poiIntersA;\r\n\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//last check : intersected line segment whether inside rectangle\r\n\t\tif(!isInsideArea( 9, rectRet.m_poiLT) || !isInsideArea( 9, rectRet.m_poiRB))\t{\r\n\t\t\tSystem.out.println(\"generated line segment isn't inside rectangle!\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn(rectRet);\r\n\t}",
"public void conflict(Object arg0) {\n\n\t}",
"@Test\n\tpublic void equalsNullIdBoth() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tkey1.setId(LONG_ZERO);\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey2.setId(LONG_ZERO);\n\t\tboolean equals = key1.equals(key2);\n\t\tAssert.assertTrue(equals);\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DiccionarioAplicacionEntity)) {\n return false;\n }\n DiccionarioAplicacionEntity other = (DiccionarioAplicacionEntity) object;\n if ((this.diccionarioAplicacionPK == null && other.diccionarioAplicacionPK != null) || (this.diccionarioAplicacionPK != null && !this.diccionarioAplicacionPK.equals(other.diccionarioAplicacionPK))) {\n return false;\n }\n return true;\n }",
"public int hashCode() {\n/* 458 */ hash = super.hashCode();\n/* 459 */ return HashUtilities.hashCode(hash, this.errorIndicatorPaint);\n/* */ }",
"public void setConflicts(int conflicts) {\r\n this.conflicts = conflicts;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof InvProductoPresentacionUnidadesPK)) {\n return false;\n }\n InvProductoPresentacionUnidadesPK other = (InvProductoPresentacionUnidadesPK) object;\n if ((this.presuEmpresa == null && other.presuEmpresa != null) || (this.presuEmpresa != null && !this.presuEmpresa.equals(other.presuEmpresa))) {\n return false;\n }\n if ((this.presuCodigo == null && other.presuCodigo != null) || (this.presuCodigo != null && !this.presuCodigo.equals(other.presuCodigo))) {\n return false;\n }\n return true;\n }",
"public DatiBancari[] findWhereFkComuneEquals(long fkComune) throws DatiBancariDaoException;",
"@Override\n\tpublic int compareTo(RestSemanticDescriptionVersion o)\n\t{\n\t\t//This will handle native types, and the grouping of external types.\n\t\tint coreTypeLeft = Frills.getDescriptionType(this.descriptionTypeConcept.nid.intValue(), null);\n\t\tint coreTypeRight = Frills.getDescriptionType(o.descriptionTypeConcept.nid.intValue(), null);\n\t\t\n\t\t//handle cases where 1 of the 2 is a core type\n\t\tif (coreTypeLeft == MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t|| coreTypeRight == MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t{\n\t\t\tif (coreTypeLeft == MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight != MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse if (coreTypeLeft != MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight == MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if (coreTypeLeft == MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t|| coreTypeRight == MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t{\n\t\t\tif (coreTypeLeft == MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight != MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse if (coreTypeLeft != MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight == MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if (coreTypeLeft == MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t|| coreTypeRight == MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t{\n\t\t\tif (coreTypeLeft == MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight != MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse if (coreTypeLeft != MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight == MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//the core types are identical. If there is an external type - check that.\n\t\tif (this.descriptionExtendedTypeConcept == null || o.descriptionExtendedTypeConcept == null)\n\t\t{\n\t\t\t//external (not extended) type which is different\n\t\t\tif (this.descriptionTypeConcept.nid.intValue() != o.descriptionTypeConcept.nid.intValue())\n\t\t\t{\n\t\t\t\treturn AlphanumComparator.compare(Util.readBestDescription(this.descriptionTypeConcept.nid.intValue()), \n\t\t\t\t\t\tUtil.readBestDescription(o.descriptionTypeConcept.nid.intValue()), true);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//extended type, where the types are different\n\t\t\tif (this.descriptionExtendedTypeConcept.nid.intValue() != o.descriptionExtendedTypeConcept.nid.intValue())\n\t\t\t{\n\t\t\t\treturn AlphanumComparator.compare(Util.readBestDescription(this.descriptionExtendedTypeConcept.nid.intValue()), \n\t\t\t\t\t\tUtil.readBestDescription(o.descriptionExtendedTypeConcept.nid.intValue()), true);\n\t\t\t}\n\t\t}\n\t\t//Still tied on type, move to level 2\n\t\treturn sortLanguage(o);\n\t}",
"private void addRelationshipConstraintConflicts(\n RelationshipConstraint constraint,\n org.hisp.dhis.dxf2.deprecated.tracker.trackedentity.RelationshipItem relationshipItem,\n String relationshipUid,\n ImportConflicts importConflicts) {\n RelationshipEntity entity = constraint.getRelationshipEntity();\n String itemUid = getUidOfRelationshipItem(relationshipItem);\n\n if (TRACKED_ENTITY_INSTANCE.equals(entity)) {\n TrackedEntity tei = trackedEntityInstanceCache.get(itemUid);\n\n if (tei == null) {\n importConflicts.addConflict(relationshipUid, \"TrackedEntity '\" + itemUid + \"' not found.\");\n } else if (!tei.getTrackedEntityType().equals(constraint.getTrackedEntityType())) {\n importConflicts.addConflict(\n relationshipUid, \"TrackedEntity '\" + itemUid + \"' has invalid TrackedEntityType.\");\n }\n } else if (PROGRAM_INSTANCE.equals(entity)) {\n Enrollment pi = programInstanceCache.get(itemUid);\n\n if (pi == null) {\n importConflicts.addConflict(relationshipUid, \"Enrollment '\" + itemUid + \"' not found.\");\n } else if (!pi.getProgram().equals(constraint.getProgram())) {\n importConflicts.addConflict(\n relationshipUid, \"Enrollment '\" + itemUid + \"' has invalid Program.\");\n }\n } else if (PROGRAM_STAGE_INSTANCE.equals(entity)) {\n Event psi = programStageInstanceCache.get(itemUid);\n\n if (psi == null) {\n importConflicts.addConflict(relationshipUid, \"Event '\" + itemUid + \"' not found.\");\n } else {\n if (constraint.getProgram() != null\n && !psi.getProgramStage().getProgram().equals(constraint.getProgram())) {\n importConflicts.addConflict(\n relationshipUid, \"Event '\" + itemUid + \"' has invalid Program.\");\n } else if (constraint.getProgramStage() != null\n && !psi.getProgramStage().equals(constraint.getProgramStage())) {\n importConflicts.addConflict(\n relationshipUid, \"Event '\" + itemUid + \"' has invalid ProgramStage.\");\n }\n }\n }\n }"
] | [
"0.4757195",
"0.46983224",
"0.46460706",
"0.44925",
"0.44713286",
"0.44212732",
"0.44035935",
"0.43923855",
"0.4371256",
"0.4340662",
"0.4275238",
"0.42732173",
"0.4245894",
"0.4243774",
"0.42437345",
"0.4236677",
"0.42246288",
"0.42064455",
"0.41977444",
"0.4195157",
"0.4180818",
"0.41798598",
"0.41795325",
"0.41715708",
"0.4162399",
"0.41615433",
"0.41607875",
"0.41174808",
"0.4112913",
"0.41095647",
"0.41025898",
"0.40972674",
"0.4091642",
"0.408164",
"0.40803915",
"0.40779284",
"0.4074196",
"0.40720057",
"0.40680522",
"0.4067813",
"0.4064083",
"0.4062605",
"0.4050876",
"0.40508303",
"0.404264",
"0.40393895",
"0.40240067",
"0.40222114",
"0.40157458",
"0.40141675",
"0.40069637",
"0.40048066",
"0.39999205",
"0.39952993",
"0.3994964",
"0.3988994",
"0.39863646",
"0.39853594",
"0.3981175",
"0.39806846",
"0.3974036",
"0.39705667",
"0.3967614",
"0.39609867",
"0.39508545",
"0.3950097",
"0.39481077",
"0.39401987",
"0.3936164",
"0.39341637",
"0.39337817",
"0.39319876",
"0.39294943",
"0.39261046",
"0.3916669",
"0.39150035",
"0.39121827",
"0.39071804",
"0.38921753",
"0.38887703",
"0.38876072",
"0.38864657",
"0.38844195",
"0.38811103",
"0.3879561",
"0.38766003",
"0.3876388",
"0.38760096",
"0.38712412",
"0.3869262",
"0.3865127",
"0.38617313",
"0.38616514",
"0.38561505",
"0.38481858",
"0.38456482",
"0.38433278",
"0.38432038",
"0.38423717",
"0.38415217",
"0.38379818"
] | 0.0 | -1 |
AcUspsInternationalCgrWorkLegFlightConflictSummaryVoBase and AcUspsInternationalCgrWorkLegFlightConflictSummaryVoPk must match. | public int hashCode()
{
int i = 0;
if ( hasLeg() )
i ^= getLegDepartureLocalTm().hashCode();
if ( hasLeg() )
i ^= getLegArrivalLocalTm().hashCode();
if ( hasLeg() )
i ^= getLegArrivalDayOffset().hashCode();
if ( hasLeg() )
i ^= getLegStopCount().hashCode();
if ( hasLeg() )
i ^= getLegEquipment().hashCode();
return i;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DisponibilidadResultadosPK)) {\n return false;\n }\n DisponibilidadResultadosPK other = (DisponibilidadResultadosPK) object;\n if ((this.anio == null && other.anio != null) || (this.anio != null && !this.anio.equals(other.anio))) {\n return false;\n }\n if ((this.codigoResultado == null && other.codigoResultado != null) || (this.codigoResultado != null && !this.codigoResultado.equals(other.codigoResultado))) {\n return false;\n }\n if ((this.codigoCompetencia == null && other.codigoCompetencia != null) || (this.codigoCompetencia != null && !this.codigoCompetencia.equals(other.codigoCompetencia))) {\n return false;\n }\n if ((this.progamaCodigo == null && other.progamaCodigo != null) || (this.progamaCodigo != null && !this.progamaCodigo.equals(other.progamaCodigo))) {\n return false;\n }\n if ((this.programaVersion == null && other.programaVersion != null) || (this.programaVersion != null && !this.programaVersion.equals(other.programaVersion))) {\n return false;\n }\n if ((this.tipoDocumento == null && other.tipoDocumento != null) || (this.tipoDocumento != null && !this.tipoDocumento.equals(other.tipoDocumento))) {\n return false;\n }\n if ((this.numeroDocumento == null && other.numeroDocumento != null) || (this.numeroDocumento != null && !this.numeroDocumento.equals(other.numeroDocumento))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof InformeBatallahasRecursoPK)) {\n return false;\n }\n InformeBatallahasRecursoPK other = (InformeBatallahasRecursoPK) object;\n if (this.informeBatallaidBatalla != other.informeBatallaidBatalla) {\n return false;\n }\n if ((this.recursoname == null && other.recursoname != null) || (this.recursoname != null && !this.recursoname.equals(other.recursoname))) {\n return false;\n }\n if ((this.recursoInstalacionname == null && other.recursoInstalacionname != null) || (this.recursoInstalacionname != null && !this.recursoInstalacionname.equals(other.recursoInstalacionname))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object that) {\r\n if (this == that) {\r\n return true;\r\n }\r\n if (that == null) {\r\n return false;\r\n }\r\n if (getClass() != that.getClass()) {\r\n return false;\r\n }\r\n TabRpf other = (TabRpf) that;\r\n return (this.getRpfId() == null ? other.getRpfId() == null : this.getRpfId().equals(other.getRpfId()))\r\n && (this.getCzId() == null ? other.getCzId() == null : this.getCzId().equals(other.getCzId()))\r\n && (this.getFpNumber() == null ? other.getFpNumber() == null : this.getFpNumber().equals(other.getFpNumber()))\r\n && (this.getSpNumber() == null ? other.getSpNumber() == null : this.getSpNumber().equals(other.getSpNumber()))\r\n && (this.getFpl() == null ? other.getFpl() == null : this.getFpl().equals(other.getFpl()))\r\n && (this.getFpCb() == null ? other.getFpCb() == null : this.getFpCb().equals(other.getFpCb()))\r\n && (this.getSpCb() == null ? other.getSpCb() == null : this.getSpCb().equals(other.getSpCb()))\r\n && (this.getSjCb() == null ? other.getSjCb() == null : this.getSjCb().equals(other.getSjCb()))\r\n && (this.getTickettypesId() == null ? other.getTickettypesId() == null : this.getTickettypesId().equals(other.getTickettypesId()))\r\n && (this.getInDate() == null ? other.getInDate() == null : this.getInDate().equals(other.getInDate()))\r\n && (this.getAutoDate() == null ? other.getAutoDate() == null : this.getAutoDate().equals(other.getAutoDate()))\r\n && (this.getRpfBak1() == null ? other.getRpfBak1() == null : this.getRpfBak1().equals(other.getRpfBak1()))\r\n && (this.getRpfBak2() == null ? other.getRpfBak2() == null : this.getRpfBak2().equals(other.getRpfBak2()))\r\n && (this.getRpfBak3() == null ? other.getRpfBak3() == null : this.getRpfBak3().equals(other.getRpfBak3()));\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComunicationPK)) {\n return false;\n }\n ComunicationPK other = (ComunicationPK) object;\n if (this.idComunication != other.idComunication) {\n return false;\n }\n if (this.idRationale != other.idRationale) {\n return false;\n }\n if (this.idScientistReceptor != other.idScientistReceptor) {\n return false;\n }\n return true;\n }",
"private boolean checkConflicts(DymonPatchRequest r,Collection<DymonPatchRequest> active)\n{\n if (active_requests.isEmpty()) return false;\n if (r.getPatchOverlap() == PatchOverlap.ANY) return false;\n\n for (DymonPatchRequest ar : active) {\n if (ar.getDuration() == 0 || ar.getPatchOverlap() == PatchOverlap.ANY) continue;\n if (r.excludeOverlap(ar.getRequestName())) return true;\n if (r.getPatchOverlap() == PatchOverlap.NONE) return true;\n if (ar.excludeOverlap(r.getRequestName())) return true;\n if (ar.getPatchOverlap() == PatchOverlap.NONE) return true;\n if (ar.getPatchOverlap() == PatchOverlap.CLASS ||\n\t r.getPatchOverlap() == PatchOverlap.CLASS) {\n\t for (String s1 : r.getClasses()) {\n\t for (String s2 : ar.getClasses()) {\n\t if (s1.equals(s2)) return true;\n\t }\n\t }\n }\n }\n\n return false;\n}",
"@Override\n public boolean equals(Object obj) {\n if (this == obj) return true;\n boolean superEquals = super.equals(obj);\n if (!superEquals) return false;\n if (!(obj instanceof QueryStatusMessage)) return false;\n QueryStatusMessage other =(QueryStatusMessage)obj;\n if (hasCause() != other.hasCause()) return false;\n if (hasCause()) {\n if (getCause().length() != other.getCause().length()) return false; else {\n CharSequence s1 = getCause();\n CharSequence s2 = other.getCause();\n if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {\n if (!s1.equals(s2)) return false;\n } else {\n if (!CharSequenceUtils.equals(s1, s2)) return false;\n }\n }\n }\n if (hasStatus() != other.hasStatus()) return false;\n if (hasStatus() && getStatus() != other.getStatus()) return false;\n return true;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n TFCUseLockDetail other = (TFCUseLockDetail) that;\n return (this.getRowId() == null ? other.getRowId() == null : this.getRowId().equals(other.getRowId()))\n && (this.getCoinTypeId() == null ? other.getCoinTypeId() == null : this.getCoinTypeId().equals(other.getCoinTypeId()))\n && (this.getRecTime() == null ? other.getRecTime() == null : this.getRecTime().equals(other.getRecTime()))\n && (this.getActiontype() == null ? other.getActiontype() == null : this.getActiontype().equals(other.getActiontype()))\n && (this.getLockId() == null ? other.getLockId() == null : this.getLockId().equals(other.getLockId()))\n && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))\n && (this.getServerIp() == null ? other.getServerIp() == null : this.getServerIp().equals(other.getServerIp()))\n && (this.getGameId() == null ? other.getGameId() == null : this.getGameId().equals(other.getGameId()))\n && (this.getServerName() == null ? other.getServerName() == null : this.getServerName().equals(other.getServerName()))\n && (this.getLockNum() == null ? other.getLockNum() == null : this.getLockNum().equals(other.getLockNum()))\n && (this.getChangeNum() == null ? other.getChangeNum() == null : this.getChangeNum().equals(other.getChangeNum()))\n && (this.getRemainNum() == null ? other.getRemainNum() == null : this.getRemainNum().equals(other.getRemainNum()))\n && (this.getOtherLockNum() == null ? other.getOtherLockNum() == null : this.getOtherLockNum().equals(other.getOtherLockNum()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CalificacionesServicioPK)) {\n return false;\n }\n CalificacionesServicioPK other = (CalificacionesServicioPK) object;\n if (this.idUsusario != other.idUsusario) {\n return false;\n }\n if (this.idServicio != other.idServicio) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n YyzjCScoreTotalData other = (YyzjCScoreTotalData) that;\n return (this.getScoreTotalDataId() == null ? other.getScoreTotalDataId() == null : this.getScoreTotalDataId().equals(other.getScoreTotalDataId()))\n && (this.getTotalScoreResultId() == null ? other.getTotalScoreResultId() == null : this.getTotalScoreResultId().equals(other.getTotalScoreResultId()))\n && (this.getBaseId() == null ? other.getBaseId() == null : this.getBaseId().equals(other.getBaseId()))\n && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))\n && (this.getTotalScore() == null ? other.getTotalScore() == null : this.getTotalScore().equals(other.getTotalScore()))\n && (this.getSysId() == null ? other.getSysId() == null : this.getSysId().equals(other.getSysId()))\n && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))\n && (this.getAudioCode() == null ? other.getAudioCode() == null : this.getAudioCode().equals(other.getAudioCode()))\n && (this.getRecordDuration() == null ? other.getRecordDuration() == null : this.getRecordDuration().equals(other.getRecordDuration()))\n && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))\n && (this.getRemoteUri() == null ? other.getRemoteUri() == null : this.getRemoteUri().equals(other.getRemoteUri()))\n && (this.getLocalUri() == null ? other.getLocalUri() == null : this.getLocalUri().equals(other.getLocalUri()))\n && (this.getRecordFile() == null ? other.getRecordFile() == null : this.getRecordFile().equals(other.getRecordFile()));\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n if (!(obj instanceof Violation)) {\n return false;\n } else if (obj == this) {\n return true;\n }\n Violation rhs = (Violation) obj;\n // @formatter:off\n return new EqualsBuilder()\n .append(modelName, rhs.modelName)\n .append(category, rhs.category)\n .append(errorMessage, rhs.errorMessage)\n .append(severity, rhs.severity)\n .append(validationRule, rhs.validationRule)\n .append(violationDetails, rhs.violationDetails)\n .append(violationId, rhs.violationId)\n .append(violationType, rhs.violationType)\n .isEquals();\n // @formatter:on\n\t}",
"public boolean compareEqual(org.vcell.util.Matchable obj) {\r\n\tif (obj instanceof ReferenceDataMappingSpec){\r\n\t\tReferenceDataMappingSpec rdms = (ReferenceDataMappingSpec)obj;\r\n\r\n\t\tif (!org.vcell.util.Compare.isEqual(referenceDataColumnName,rdms.referenceDataColumnName)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif ((fieldModelObject == null && rdms.fieldModelObject != null) ||\r\n\t\t\t(fieldModelObject != null && rdms.fieldModelObject == null)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t// if both are null, everything is ok\r\n\t\t// if both are non-null, then check for equivalence.\r\n\t\t//\r\n\t\tif (fieldModelObject != null && rdms.fieldModelObject != null){\r\n\t\t\tif (fieldModelObject instanceof org.vcell.util.Matchable){\r\n\t\t\t\tif (rdms.fieldModelObject instanceof org.vcell.util.Matchable){\r\n\t\t\t\t\tif (!org.vcell.util.Compare.isEqualOrNull((org.vcell.util.Matchable)this.fieldModelObject,(org.vcell.util.Matchable)rdms.fieldModelObject)){\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t//\r\n\t\t\t\t// else compare symbol type, name, and nameScope name\r\n\t\t\t\t//\t\t\t\t\r\n\t\t\t\tif (!fieldModelObject.getClass().equals(rdms.fieldModelObject.getClass())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!fieldModelObject.getName().equals(rdms.fieldModelObject.getName())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!fieldModelObject.getNameScope().getName().equals(rdms.fieldModelObject.getNameScope().getName())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\treturn false;\r\n}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TicketHistoricoPK)) {\r\n return false;\r\n }\r\n TicketHistoricoPK other = (TicketHistoricoPK) object;\r\n if ((this.ticketId == null && other.ticketId != null) || (this.ticketId != null && !this.ticketId.equals(other.ticketId))) {\r\n return false;\r\n }\r\n if ((this.usuarioId == null && other.usuarioId != null) || (this.usuarioId != null && !this.usuarioId.equals(other.usuarioId))) {\r\n return false;\r\n }\r\n if ((this.fecha == null && other.fecha != null) || (this.fecha != null && !this.fecha.equals(other.fecha))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private boolean timeSlotConflict(Course course, Lab lab)\n\t{\n\t\tboolean passed = true;\n\t\tTimeSlot cSlot = course.getSlot(), lSlot = lab.getSlot();\n\t\t\n\t\t//Obviously there is no conflict if they course + lab didn't have a time slot assigned\n\t\tif(cSlot != null && lSlot != null)\n\t\t{\n\t\t\t//If a course and lab are on the same day, or course is monday and lab is friday\n\t\t\tif(cSlot.getDay() == lSlot.getDay() || (cSlot.getDay()==ScheduleDay.MO && lSlot.getDay()==ScheduleDay.FR))\n\t\t\t{\n\t\t\t\t//If it's a Tuesday\n\t\t\t\tif(cSlot.getDay() == ScheduleDay.TU)\n\t\t\t\t{\n\t\t\t\t\t//If they have the same start they are a conflict\n\t\t\t\t\t//Lectures are 1.5 hours and labs are 1 hour. \n\t\t\t\t\t//If a lecture starts 30 min after a lab, it's a conflict\n\t\t\t\t\t//If a lecture starts 30 min before (-70 becuase thats how we coded it for ints)\n\t\t\t\t\t// then it is a conflict\n\t\t\t\t\t//NOTE: I need to do more testing, but everything i tired is working so far\n\t\t\t\t\tif(cSlot.getStartTime() == lSlot.getStartTime())\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()+30))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()-70))\n\t\t\t\t\t\tpassed = false; \n\t\t\t\t\telse if (cSlot.getStartTime() == (lSlot.getStartTime() -100))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\t//THIS IS WHERE WE NEED FIXING \n\t\t\t\t}\n\t\t\t\telse if(cSlot.getDay() == ScheduleDay.MO && lSlot.getDay() == ScheduleDay.FR)\n\t\t\t\t{\n\t\t\t\t\tif(cSlot.getStartTime() == lSlot.getStartTime())\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()+100))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\t//else if(sC.getStartTime() == (sL.getStartTime()-100))\n\t\t\t\t\t\t//conflict = true; \n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t//If they are equaal, there is a time conflict\n\t\t\t\t\tpassed = !(cSlot.getStartTime() == lSlot.getStartTime());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tpassed = true; //If they don't have the same day, they are obviously not in conflict\n\t\t}\n\t\treturn passed;\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Calificacion)) {\r\n return false;\r\n }\r\n Calificacion other = (Calificacion) object;\r\n if ((this.calificacionPK == null && other.calificacionPK != null) || (this.calificacionPK != null && !this.calificacionPK.equals(other.calificacionPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMinEffectiveStartUtcDtComparator()\n {\n return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMinEffectiveStartUtcDtComparator();\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TimetablePK)) {\n return false;\n }\n TimetablePK other = (TimetablePK) object;\n if (this.idTt != other.idTt) {\n return false;\n }\n if ((this.idFaculty == null && other.idFaculty != null) || (this.idFaculty != null && !this.idFaculty.equals(other.idFaculty))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MsgExternalizePK)) {\n return false;\n }\n MsgExternalizePK other = (MsgExternalizePK) object;\n if ((this.mesgId == null && other.mesgId != null) || (this.mesgId != null && !this.mesgId.equals(other.mesgId))) {\n return false;\n }\n if (this.version != other.version) {\n return false;\n }\n if ((this.payloadType == null && other.payloadType != null) || (this.payloadType != null && !this.payloadType.equals(other.payloadType))) {\n return false;\n }\n if ((this.partId == null && other.partId != null) || (this.partId != null && !this.partId.equals(other.partId))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ProcedimientosPK)) {\n return false;\n }\n ProcedimientosPK other = (ProcedimientosPK) object;\n if (this.tipoprocedimientopkidTipoprocedimiento != other.tipoprocedimientopkidTipoprocedimiento) {\n return false;\n }\n if (this.pasospkidPaso != other.pasospkidPaso) {\n return false;\n }\n if (this.diagnosticopartepkidDianosticoparte != other.diagnosticopartepkidDianosticoparte) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CpserxconPK)) {\n return false;\n }\n CpserxconPK other = (CpserxconPK) object;\n if (this.cscnclinic != other.cscnclinic) {\n return false;\n }\n if (this.cscnnumero != other.cscnnumero) {\n return false;\n }\n if ((this.csccservic == null && other.csccservic != null) || (this.csccservic != null && !this.csccservic.equals(other.csccservic))) {\n return false;\n }\n if (this.cscnposisuper != other.cscnposisuper) {\n return false;\n }\n if ((this.csccutiliza == null && other.csccutiliza != null) || (this.csccutiliza != null && !this.csccutiliza.equals(other.csccutiliza))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FacilityAssocPK)) {\r\n return false;\r\n }\r\n FacilityAssocPK other = (FacilityAssocPK) object;\r\n if ((this.facilityId == null && other.facilityId != null) || (this.facilityId != null && !this.facilityId.equals(other.facilityId))) {\r\n return false;\r\n }\r\n if ((this.facilityIdTo == null && other.facilityIdTo != null) || (this.facilityIdTo != null && !this.facilityIdTo.equals(other.facilityIdTo))) {\r\n return false;\r\n }\r\n if ((this.facilityAssocTypeId == null && other.facilityAssocTypeId != null) || (this.facilityAssocTypeId != null && !this.facilityAssocTypeId.equals(other.facilityAssocTypeId))) {\r\n return false;\r\n }\r\n if ((this.fromDate == null && other.fromDate != null) || (this.fromDate != null && !this.fromDate.equals(other.fromDate))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TipoTratamientoObraSocialPK)) {\r\n return false;\r\n }\r\n TipoTratamientoObraSocialPK other = (TipoTratamientoObraSocialPK) object;\r\n if (this.tipotratamientoid != other.tipotratamientoid) {\r\n return false;\r\n }\r\n if (this.obrasocialid != other.obrasocialid) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test\n\tpublic void testcheckConflict() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TH\", 1330, 1445);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t a2.checkConflict(a1);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t } catch (ConflictException e) {\n\t\t fail(\"A ConflictException was thrown when two Activities at the same time on completely distinct days were compared.\");\n\t\t }\n\t\t a1.setMeetingDays(\"TH\");\n\t\t a1.setActivityTime(1445, 1530);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"TH 2:45PM-3:30PM\", a1.getMeetingString());\n\t\t assertEquals(\"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}",
"@Test\n\tpublic void testSameLibSameLocDiffScheme() \n\t{\n\t\tString id = \"diffScheme\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t\tassertDeweyVol1NotLopped(id);\n\t\tassertNoLoppedDewey(id);\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof IndContratElp)) {\r\n return false;\r\n }\r\n IndContratElp other = (IndContratElp) object;\r\n if ((this.indContratElpPK == null && other.indContratElpPK != null) || (this.indContratElpPK != null && !this.indContratElpPK.equals(other.indContratElpPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private void computeConflicts() {\n\t\tthis.conflictGraph = new HashMap<Class, List<Class>>();\n\n\t\tfor (Class c : this.core) {\n\t\t\tif (c.getSuperClasses().size() >= 2) {\n\n\t\t\t\tList<List<Class>> linExts = new ArrayList<List<Class>>();\n\t\t\t\tfor (int i = 0; i < c.getSuperClasses().size(); i++) {\n\t\t\t\t\tlinExts.add(this.linearExts.get(c.getSuperClasses().get(i)));\n\t\t\t\t\tlinExts.get(i).add(c.getSuperClasses().get(i));\n\t\t\t\t}\n\n\t\t\t\tList<HashSet<Class>> diffs = new ArrayList<HashSet<Class>>();\n\n\t\t\t\t// Compute lini - linj for all i != j\n\t\t\t\tfor (List<Class> linExt : linExts) {\n\t\t\t\t\tfor (List<Class> linExt2 : linExts) {\n\t\t\t\t\t\tif (linExt != linExt2) {\n\t\t\t\t\t\t\tHashSet<Class> diff = new HashSet<Class>();\n\t\t\t\t\t\t\tfor (Class p : linExt2) {\n\t\t\t\t\t\t\t\tif (!linExt.contains(p))\n\t\t\t\t\t\t\t\t\tdiff.add(p);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdiffs.add(diff);\n\n\t\t\t\t\t\t\tdiff = new HashSet<Class>();\n\t\t\t\t\t\t\tfor (Class p : linExt) {\n\t\t\t\t\t\t\t\tif (!linExt2.contains(p))\n\t\t\t\t\t\t\t\t\tdiff.add(p);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdiffs.add(diff);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Compute conflicts di * dj for all j != i\n\t\t\t\tfor (HashSet<Class> diff : diffs) {\n\t\t\t\t\tfor (HashSet<Class> diff2 : diffs) {\n\t\t\t\t\t\tif (diff != diff2) {\n\t\t\t\t\t\t\tfor (Class c1 : diff) {\n\t\t\t\t\t\t\t\tList<Class> conflicts = new ArrayList<Class>();\n\t\t\t\t\t\t\t\tif (this.conflictGraph.containsKey(c1))\n\t\t\t\t\t\t\t\t\tconflicts = this.conflictGraph.get(c1);\n\n\t\t\t\t\t\t\t\tfor (Class c2 : diff2) {\n\t\t\t\t\t\t\t\t\tconflicts.add(c2);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthis.conflictGraph.put(c1, conflicts);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalleCompras)) {\r\n return false;\r\n }\r\n DetalleCompras other = (DetalleCompras) object;\r\n if ((this.detalleComprasPK == null && other.detalleComprasPK != null) || (this.detalleComprasPK != null && !this.detalleComprasPK.equals(other.detalleComprasPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CdrqasryPK)) {\n return false;\n }\n CdrqasryPK other = (CdrqasryPK) object;\n if ((this.facno == null && other.facno != null) || (this.facno != null && !this.facno.equals(other.facno))) {\n return false;\n }\n if ((this.quono == null && other.quono != null) || (this.quono != null && !this.quono.equals(other.quono))) {\n return false;\n }\n if (this.trseq != other.trseq) {\n return false;\n }\n if (this.seq != other.seq) {\n return false;\n }\n if ((this.cmccode == null && other.cmccode != null) || (this.cmccode != null && !this.cmccode.equals(other.cmccode))) {\n return false;\n }\n return true;\n }",
"public boolean equals(@org.jetbrains.annotations.Nullable java.lang.Object r3) {\n /*\n r2 = this;\n if (r2 == r3) goto L_0x0047\n boolean r0 = r3 instanceof com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection\n if (r0 == 0) goto L_0x0045\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r3 = (com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection) r3\n com.bitcoin.mwallet.core.models.slp.Slp r0 = r2.token\n com.bitcoin.mwallet.core.models.slp.Slp r1 = r3.token\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.util.List<kotlin.ULong> r0 = r2.quantities\n java.util.List<kotlin.ULong> r1 = r3.quantities\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n com.bitcoin.bitcoink.tx.Satoshis r0 = r2.fee\n com.bitcoin.bitcoink.tx.Satoshis r1 = r3.fee\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n com.bitcoin.bitcoink.tx.Satoshis r0 = r2.change\n com.bitcoin.bitcoink.tx.Satoshis r1 = r3.change\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r0 = r2.utxos\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r1 = r3.utxos\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r0 = r2.error\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r3 = r3.error\n boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r3)\n if (r3 == 0) goto L_0x0045\n goto L_0x0047\n L_0x0045:\n r3 = 0\n return r3\n L_0x0047:\n r3 = 1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.equals(java.lang.Object):boolean\");\n }",
"@Test\n\tpublic void testCheckConflictOverlappingTimes() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC226\", \"Discrete Math\", \"001\", 3, \"sesmith5\", 12, \"MW\", 1445, 1545);\n\t\ttry {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"MW 2:45PM-3:45PM\", a2.getMeetingString());\n\t\t }\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FacilityCarrierShipment)) {\r\n return false;\r\n }\r\n FacilityCarrierShipment other = (FacilityCarrierShipment) object;\r\n if ((this.facilityCarrierShipmentPK == null && other.facilityCarrierShipmentPK != null) || (this.facilityCarrierShipmentPK != null && !this.facilityCarrierShipmentPK.equals(other.facilityCarrierShipmentPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private boolean checkConflict(Course c1, Course c2) {\n\n\t\tString day1 = c1.getDay1();\n\t\tString day2 = c1.getDay2();\n\t\tString cday1 = c2.getDay1();\n\t\tString cday2 = c2.getDay2();\n\n\t\tfloat startTime = Float.parseFloat(c1.getStarttime());\n\t\tfloat endTime = Float.parseFloat(c1.getEndtime());\n\t\tfloat cstartTime = Float.parseFloat(c2.getStarttime());\n\t\tfloat cendTime = Float.parseFloat(c2.getEndtime());\n\t\t\n\t\tif(day1.equals(cday1) || day1.equals(cday2) || day2.equals(cday2)) {\n\t\t\tif(startTime < cstartTime && endTime < cstartTime) {\n\t\t\t\treturn false;\n\t\t\t} else if(startTime > cstartTime && startTime > cendTime) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof IgracUcinakPK)) {\n return false;\n }\n IgracUcinakPK other = (IgracUcinakPK) object;\n if (this.utakmicaId != other.utakmicaId) {\n return false;\n }\n if (this.igracId != other.igracId) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Compra)) {\n return false;\n }\n Compra other = (Compra) object;\n if ((this.compraPK == null && other.compraPK != null) || (this.compraPK != null && !this.compraPK.equals(other.compraPK))) {\n return false;\n }\n return true;\n }",
"@Test\n\tpublic void testSameLibDiffLocs() \n\t{\n\t\tString id = \"diffHomeLoc\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertLCVol2NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalleFacturaPK)) {\r\n return false;\r\n }\r\n DetalleFacturaPK other = (DetalleFacturaPK) object;\r\n if ((this.codFactura == null && other.codFactura != null) || (this.codFactura != null && !this.codFactura.equals(other.codFactura))) {\r\n return false;\r\n }\r\n if (this.codArticulo != other.codArticulo) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n LitemallOrderRefund other = (LitemallOrderRefund) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))\n && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))\n && (this.getServiceSn() == null ? other.getServiceSn() == null : this.getServiceSn().equals(other.getServiceSn()))\n && (this.getOrderSn() == null ? other.getOrderSn() == null : this.getOrderSn().equals(other.getOrderSn()))\n && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))\n && (this.getOrderPrice() == null ? other.getOrderPrice() == null : this.getOrderPrice().equals(other.getOrderPrice()))\n && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))\n && (this.getOrderType() == null ? other.getOrderType() == null : this.getOrderType().equals(other.getOrderType()))\n && (this.getAuditStatus() == null ? other.getAuditStatus() == null : this.getAuditStatus().equals(other.getAuditStatus()))\n && (this.getConsignee() == null ? other.getConsignee() == null : this.getConsignee().equals(other.getConsignee()))\n && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))\n && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))\n && (this.getRefundReason() == null ? other.getRefundReason() == null : this.getRefundReason().equals(other.getRefundReason()))\n && (this.getProblemDescription() == null ? other.getProblemDescription() == null : this.getProblemDescription().equals(other.getProblemDescription()))\n && (this.getScreenshotUrl() == null ? other.getScreenshotUrl() == null : this.getScreenshotUrl().equals(other.getScreenshotUrl()))\n && (this.getRefundPrice() == null ? other.getRefundPrice() == null : this.getRefundPrice().equals(other.getRefundPrice()))\n && (this.getConfirmTime() == null ? other.getConfirmTime() == null : this.getConfirmTime().equals(other.getConfirmTime()))\n && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))\n && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))\n && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ResolucaoPK)) {\n return false;\n }\n ResolucaoPK other = (ResolucaoPK) object;\n if (this.avaliacaoId != other.avaliacaoId) {\n return false;\n }\n if (this.usuarioId != other.usuarioId) {\n return false;\n }\n return true;\n }",
"public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMaxEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMaxEffectiveEndUtcDtComparator();\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CtTaoCauHoiPK)) {\n return false;\n }\n CtTaoCauHoiPK other = (CtTaoCauHoiPK) object;\n if (this.macv != other.macv) {\n return false;\n }\n if (this.machuong != other.machuong) {\n return false;\n }\n return true;\n }",
"public boolean equals(java.lang.Object r3) {\n /*\n r2 = this;\n if (r2 == r3) goto L_0x0047\n boolean r0 = r3 instanceof com.bamtechmedia.dominguez.core.content.PromoLabel\n if (r0 == 0) goto L_0x0045\n com.bamtechmedia.dominguez.core.content.PromoLabel r3 = (com.bamtechmedia.dominguez.core.content.PromoLabel) r3\n java.lang.String r0 = r2.f8937c\n java.lang.String r1 = r3.f8937c\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n org.joda.time.DateTime r0 = r2.f8932U\n org.joda.time.DateTime r1 = r3.f8932U\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n org.joda.time.DateTime r0 = r2.f8933V\n org.joda.time.DateTime r1 = r3.f8933V\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.lang.String r0 = r2.f8934W\n java.lang.String r1 = r3.f8934W\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.lang.Integer r0 = r2.f8935X\n java.lang.Integer r1 = r3.f8935X\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x0045\n java.lang.Integer r0 = r2.f8936Y\n java.lang.Integer r3 = r3.f8936Y\n boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r3)\n if (r3 == 0) goto L_0x0045\n goto L_0x0047\n L_0x0045:\n r3 = 0\n return r3\n L_0x0047:\n r3 = 1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtechmedia.dominguez.core.content.PromoLabel.equals(java.lang.Object):boolean\");\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof ApptranregFeesAud)) {\n return false;\n }\n ApptranregFeesAud that = (ApptranregFeesAud) other;\n Object myAtrfAudUid = this.getAtrfAudUid();\n Object yourAtrfAudUid = that.getAtrfAudUid();\n if (myAtrfAudUid==null ? yourAtrfAudUid!=null : !myAtrfAudUid.equals(yourAtrfAudUid)) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ServiciosListaPK)) {\n return false;\n }\n ServiciosListaPK other = (ServiciosListaPK) object;\n if (this.codInstitucion != other.codInstitucion) {\n return false;\n }\n// if (this.codEstablecimiento != other.codEstablecimiento) {\n// return false;\n// }\n if (this.codLista != other.codLista) {\n return false;\n }\n if (this.codServicio != other.codServicio) {\n return false;\n }\n return true;\n }",
"public abstract void onMergePatchset(TicketModel ticket);",
"private void m11061a(com.bigroad.ttb.android.vehicle.C2338a r7, long r8, java.util.ArrayList<com.bigroad.ttb.android.status.C2265b> r10) {\n /*\n r6 = this;\n r4 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320;\n if (r7 == 0) goto L_0x000c;\n L_0x0004:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.REQUIRED;\n r0 = r7.m11451a(r0);\n if (r0 != 0) goto L_0x000d;\n L_0x000c:\n return;\n L_0x000d:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x002d;\n L_0x0015:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0124;\n L_0x001d:\n r0 = r0.longValue();\n r2 = 20000; // 0x4e20 float:2.8026E-41 double:9.8813E-320;\n r0 = r0 + r2;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0124;\n L_0x0028:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.VAR_DATA_CORRUPTED;\n r6.m11060a(r2, r0, r10);\n L_0x002d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00e5;\n L_0x0035:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.TURBO_FIRMWARE_UPDATING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x0042;\n L_0x003d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.TURBO_FIRMWARE_UPDATING;\n r6.m11060a(r0, r8, r10);\n L_0x0042:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_INCOMPATIBLE;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x004f;\n L_0x004a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_NOT_COMPATIBLE;\n r6.m11060a(r0, r8, r10);\n L_0x004f:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x006d;\n L_0x0057:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0121;\n L_0x005f:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0121;\n L_0x0068:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_DETECTING;\n r6.m11060a(r2, r0, r10);\n L_0x006d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CURRENT;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00d2;\n L_0x0075:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.EOBR_TYPE_MATCH;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x0082;\n L_0x007d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WRONG_EOBR_TYPE;\n r6.m11060a(r0, r8, r10);\n L_0x0082:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_READINGS_VALID;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x008f;\n L_0x008a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x008f:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_CALIBRATED;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x009c;\n L_0x0097:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.UNCALIBRATED_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x009c:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ABSOLUTE_TIMESTAMP;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x00b7;\n L_0x00a4:\n r0 = r6.f7779m;\n if (r0 == 0) goto L_0x00b7;\n L_0x00a8:\n r0 = r6.f7779m;\n r0 = r0.mo1121o();\n r1 = com.bigroad.shared.eobr.EobrType.TURBO;\n if (r0 != r1) goto L_0x00b7;\n L_0x00b2:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WAITING_FOR_TURBO_GPS;\n r6.m11060a(r0, r8, r10);\n L_0x00b7:\n r0 = r7.m11449a();\n if (r0 == 0) goto L_0x00c2;\n L_0x00bd:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.RECONNECTING;\n r6.m11060a(r0, r8, r10);\n L_0x00c2:\n r0 = r6.f7780n;\n if (r0 != 0) goto L_0x00cb;\n L_0x00c6:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED_NOT_PLUGGED_IN;\n r6.m11060a(r0, r8, r10);\n L_0x00cb:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x00d2:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11453b(r0);\n if (r0 == 0) goto L_0x00b7;\n L_0x00da:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NOT_CURRENT;\n r6.m11060a(r2, r0, r10);\n goto L_0x00b7;\n L_0x00e5:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.SEARCHING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x00f2;\n L_0x00ed:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.SEARCHING;\n r6.m11060a(r0, r8, r10);\n L_0x00f2:\n r0 = com.bigroad.ttb.android.status.p031a.C2242a.C22408.f7760b;\n r1 = r7.m11455c();\n r1 = r1.ordinal();\n r0 = r0[r1];\n switch(r0) {\n case 1: goto L_0x0103;\n case 2: goto L_0x010a;\n case 3: goto L_0x0113;\n case 4: goto L_0x011a;\n default: goto L_0x0101;\n };\n L_0x0101:\n goto L_0x000c;\n L_0x0103:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_VIN_SPECIFIED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x010a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_DISABLED;\n r2 = 0;\n r6.m11060a(r0, r2, r10);\n goto L_0x000c;\n L_0x0113:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_UNSUPPORTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x011a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.DISCONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x0121:\n r0 = r8;\n goto L_0x0068;\n L_0x0124:\n r0 = r8;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bigroad.ttb.android.status.a.a.a(com.bigroad.ttb.android.vehicle.a, long, java.util.ArrayList):void\");\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalleOrdenCompraProductoPK)) {\r\n return false;\r\n }\r\n DetalleOrdenCompraProductoPK other = (DetalleOrdenCompraProductoPK) object;\r\n if (this.idOrdenCompra != other.idOrdenCompra) {\r\n return false;\r\n }\r\n if (this.idProducto != other.idProducto) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test\n\tpublic void TEAM3_CONTROLLER_UT04() {\n\t\t// PRECONDITIONS\n\t\tClassDetailsStub c1 = new ClassDetailsStub(TEST_CONFIG.SatOnly),\n\t\t\t\t\t\t c2 = new ClassDetailsStub(TEST_CONFIG.MonWedFri2);\n\t\t\n\t\tArrayList<ClassDetailsStub> s1 = new ArrayList<ClassDetailsStub>();\n\t\ts1.add(c1);\n\t\t\n\t\tArrayList<ClassDetailsStub> s2 = new ArrayList<ClassDetailsStub>();\n\t\ts2.add(c2);\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\t\t\n\t\t// INPUT\n\t\tCollection<ArrayList<ClassDetailsStub>> twoSchedules = new HashSet<ArrayList<ClassDetailsStub>>();\n\t\ttwoSchedules.add(s1);\n\t\ttwoSchedules.add(s2);\n\t\t\n\t\t// EXPECTED OUTPUT\n\t\tException exceptionThrown = null;\n\t\tboolean schedulesConflict = false;\n\t\ttry {\n\t\t\tschedulesConflict = smc.conflict(twoSchedules);\n\t\t} catch (ClassCastException cce) {\n\t\t\texceptionThrown = cce;\n\t\t}\n\t\t\n\t\tassertNull(exceptionThrown);\n\t\tassertFalse(schedulesConflict);\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ScEntregaRetorno)) {\n return false;\n }\n ScEntregaRetorno other = (ScEntregaRetorno) object;\n if ((this.scEntregaRetornoPK == null && other.scEntregaRetornoPK != null) || (this.scEntregaRetornoPK != null && !this.scEntregaRetornoPK.equals(other.scEntregaRetornoPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n AllSpfl other = (AllSpfl) that;\n return (this.getSpflbm() == null ? other.getSpflbm() == null : this.getSpflbm().equals(other.getSpflbm()))\n && (this.getSsbkbm() == null ? other.getSsbkbm() == null : this.getSsbkbm().equals(other.getSsbkbm()))\n && (this.getSpfl() == null ? other.getSpfl() == null : this.getSpfl().equals(other.getSpfl()))\n && (this.getSjspflbm() == null ? other.getSjspflbm() == null : this.getSjspflbm().equals(other.getSjspflbm()))\n && (this.getXspx() == null ? other.getXspx() == null : this.getXspx().equals(other.getXspx()))\n && (this.getSfsx() == null ? other.getSfsx() == null : this.getSfsx().equals(other.getSfsx()))\n && (this.getSpfltpwj() == null ? other.getSpfltpwj() == null : this.getSpfltpwj().equals(other.getSpfltpwj()))\n && (this.getTjsj() == null ? other.getTjsj() == null : this.getTjsj().equals(other.getTjsj()))\n && (this.getTjr() == null ? other.getTjr() == null : this.getTjr().equals(other.getTjr()))\n && (this.getZhxgr() == null ? other.getZhxgr() == null : this.getZhxgr().equals(other.getZhxgr()))\n && (this.getZhxgsj() == null ? other.getZhxgsj() == null : this.getZhxgsj().equals(other.getZhxgsj()))\n && (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()))\n && (this.getFldj() == null ? other.getFldj() == null : this.getFldj().equals(other.getFldj()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MesaPK)) {\n return false;\n }\n MesaPK other = (MesaPK) object;\n if (this.numeroOrden != other.numeroOrden) {\n return false;\n }\n if ((this.fechaOrden == null && other.fechaOrden != null) || (this.fechaOrden != null && !this.fechaOrden.equals(other.fechaOrden))) {\n return false;\n }\n return true;\n }",
"public boolean conflictCheck(String newStart, String newEnd, int customerId) throws SQLException {\r\n //Very long SQL statement to check for any conflicts\r\n String statement = \"SELECT Start, End FROM appointments WHERE Customer_ID = \"+customerId+\" AND (((Start < '\"+newStart+\"') AND ((End > '\"+newStart+\"') AND (End < '\"+newEnd+\"'))) /*Left Overlap*/ OR ((Start > '\"+newStart+\"') AND (End < '\"+newEnd+\"')) /*Inner Overlap*/ OR ((Start < '\"+newStart+\"') AND (End > '\"+newEnd+\"')) /*Outer Overlap*/ OR ((Start > '\"+newStart+\"') AND (Start < '\"+newEnd+\"'))/*Right Overlap*/ OR (Start = '\"+newStart+\"') /*Same Appointment*/ OR (End = '\"+newEnd+\"')) /*Same Appointment*/ \";\r\n\r\n\r\n ResultSet rs = conn.prepareStatement(statement).executeQuery();\r\n //If there is nothing in rs, then nothing was returned from SQL statement and no conflicts exist\r\n //System.out.println(\"No conflicts\");\r\n return rs.next();\r\n //System.out.println(\"About to return true\");\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ObservacionesPK)) {\n return false;\n }\n ObservacionesPK other = (ObservacionesPK) object;\n if (this.codCia != other.codCia) {\n return false;\n }\n if (this.id != other.id) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n PlanningSalle plaS;\n if (obj ==null || obj.getClass()!=this.getClass()){\n return false;\n }\n\n else {\n plaS =(PlanningSalle)obj;\n if(\n plaS.getDateDebutR().equals(getDateDebutR()) //vu que type primitif == pas equals\n & plaS.getDateFinR().equals(getDateFinR())) { \n {\n return true;\n }\n }\n\n else {\n return false;\n }\n }\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TbFasesEmprestimoBemPermanentePK)) {\n return false;\n }\n TbFasesEmprestimoBemPermanentePK other = (TbFasesEmprestimoBemPermanentePK) object;\n if (this.idPedidoEmprestimo != other.idPedidoEmprestimo) {\n return false;\n }\n if ((this.idStatus == null && other.idStatus != null) || (this.idStatus != null && !this.idStatus.equals(other.idStatus))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Lin2006)) {\r\n return false;\r\n }\r\n Lin2006 other = (Lin2006) object;\r\n if ((this.lin2006PK == null && other.lin2006PK != null) || (this.lin2006PK != null && !this.lin2006PK.equals(other.lin2006PK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public TdRuspHijo( TdRuspHijoPK idComposite, java.util.Date fecModifico, java.lang.String trhRfcUnico, java.lang.String usuario, java.lang.String trhNombre, java.lang.String trhPrimer, java.lang.String trhSegundo) {\n this.idComposite = idComposite;\n this.fecModifico = fecModifico;\n this.trhRfcUnico = trhRfcUnico;\n this.usuario = usuario;\n this.trhNombre = trhNombre;\n this.trhPrimer = trhPrimer;\n this.trhSegundo = trhSegundo;\n }",
"SolvableConflictModel createInstanceOfSolvableConflictModel();",
"public static void collidePoly(Manifold manif, \n \t\tPolygonShape polyA, XForm xfA,\n PolygonShape polyB, XForm xfB) {\n\n //testbed.PTest.debugCount++;\n manif.pointCount = 0; // Fixed a problem with contacts\n MaxSeparation sepA = findMaxSeparation(polyA, xfA, polyB, xfB);\n if (sepA.bestSeparation > 0.0f) {\n return;\n }\n\n MaxSeparation sepB = findMaxSeparation(polyB, xfB, polyA, xfA);\n if (sepB.bestSeparation > 0.0f) {\n return;\n }\n\n PolygonShape poly1; // reference poly\n PolygonShape poly2; // incident poly\n XForm xf1 = new XForm();\n XForm xf2 = new XForm();\n int edge1; // reference edge\n byte flip;\n float k_relativeTol = 0.98f;\n float k_absoluteTol = 0.001f;\n\n // TODO_ERIN use \"radius\" of poly for absolute tolerance.\n if (sepB.bestSeparation > k_relativeTol * sepA.bestSeparation\n + k_absoluteTol) {\n poly1 = polyB;\n poly2 = polyA;\n xf1.set(xfB);\n \t\txf2.set(xfA);\n edge1 = sepB.bestFaceIndex;\n flip = 1;\n }\n else {\n poly1 = polyA;\n poly2 = polyB;\n xf1.set(xfA);\n \t\txf2.set(xfB);\n edge1 = sepA.bestFaceIndex;\n flip = 0;\n }\n\n ClipVertex incidentEdge[] = new ClipVertex[2];\n findIncidentEdge(incidentEdge, poly1, xf1, edge1, poly2, xf2);\n\n int count1 = poly1.m_vertexCount;\n Vec2[] vert1s = poly1.m_vertices;\n\n Vec2 v11 = vert1s[edge1];\n Vec2 v12 = edge1 + 1 < count1 ? vert1s[edge1 + 1] : vert1s[0];\n\n Vec2 sideNormal = Mat22.mul(xf1.R, v12.sub(v11));\n sideNormal.normalize();\n Vec2 frontNormal = Vec2.cross(sideNormal, 1.0f);\n\n v11 = XForm.mul(xf1, v11);\n \tv12 = XForm.mul(xf1, v12);\n\n float frontOffset = Vec2.dot(frontNormal, v11);\n float sideOffset1 = -Vec2.dot(sideNormal, v11);\n float sideOffset2 = Vec2.dot(sideNormal, v12);\n\n // Clip incident edge against extruded edge1 side edges.\n ClipVertex clipPoints1[] = new ClipVertex[2];\n ClipVertex clipPoints2[] = new ClipVertex[2];\n int np;\n\n // Clip to box side 1\n np = clipSegmentToLine(clipPoints1, incidentEdge, sideNormal.negate(), sideOffset1);\n\n if (np < 2) {\n return;\n }\n\n // Clip to negative box side 1\n np = clipSegmentToLine(clipPoints2, clipPoints1, sideNormal,\n sideOffset2);\n\n if (np < 2) {\n return;\n }\n\n // Now clipPoints2 contains the clipped points.\n manif.normal = (flip != 0) ? frontNormal.negate() : frontNormal.clone();\n\n int pointCount = 0;\n for (int i = 0; i < Settings.maxManifoldPoints; ++i) {\n float separation = Vec2.dot(frontNormal, clipPoints2[i].v)\n - frontOffset;\n\n if (separation <= 0.0f) {\n ManifoldPoint cp = manif.points[pointCount];\n cp.separation = separation;\n cp.localPoint1 = XForm.mulT(xfA, clipPoints2[i].v);\n \t\t\tcp.localPoint2 = XForm.mulT(xfB, clipPoints2[i].v);\n cp.id = new ContactID(clipPoints2[i].id);\n cp.id.features.flip = flip;\n ++pointCount;\n }\n }\n\n manif.pointCount = pointCount;\n\n return;\n }",
"@Override\r\n public void validate(FacesContext fc, UIComponent uic, Object o) throws ValidatorException {\n SimpleDateFormat sdft = new SimpleDateFormat(\"HH:mm:ss\");\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n HorarioDao horarioDao = new HorarioDao();\r\n Horario_TO horario = new Horario_TO();\r\n\r\n //Obtenemos los valores de cada variable desde el contexto de la vista\r\n horario.setHorario((String) o); \r\n try {//Formateamos las fechas segun lo necesitemos\r\n fechaRecogida = sdf.parse(sdf.format((Date) uic.getAttributes().get(\"fechaRecogida\")));\r\n horaRecogida = sdft.parse(horarioDao.consultarHorario(horario).getHoraInicio());\r\n fechaActual = sdf.parse(sdf.format(fechaHoraActual));\r\n horaActual = sdft.parse(sdft.format(fechaHoraActual));\r\n } catch (ParseException e) {\r\n e.getMessage();\r\n }\r\n\r\n if (fechaRecogida.equals(fechaActual)) {\r\n if (horaRecogida.before(horaActual)) {\r\n FacesMessage fmsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Error\", \"La hora de recogida del pedido es menor a la hora actual\");\r\n throw new ValidatorException(fmsg);\r\n }\r\n }\r\n\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CostoActividadPK)) {\n return false;\n }\n CostoActividadPK other = (CostoActividadPK) object;\n if (this.numeroPeriodo != other.numeroPeriodo) {\n return false;\n }\n if ((this.idActividad == null && other.idActividad != null) || (this.idActividad != null && !this.idActividad.equals(other.idActividad))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n PObjLayout other = (PObjLayout) that;\n return (this.getGid() == null ? other.getGid() == null : this.getGid().equals(other.getGid()))\n && (this.getpObjObjectGid() == null ? other.getpObjObjectGid() == null : this.getpObjObjectGid().equals(other.getpObjObjectGid()))\n && (this.getLayoutName() == null ? other.getLayoutName() == null : this.getLayoutName().equals(other.getLayoutName()))\n && (this.getLayoutType() == null ? other.getLayoutType() == null : this.getLayoutType().equals(other.getLayoutType()))\n && (this.getDf() == null ? other.getDf() == null : this.getDf().equals(other.getDf()))\n && (this.getFields() == null ? other.getFields() == null : this.getFields().equals(other.getFields()))\n && (this.getJsondata() == null ? other.getJsondata() == null : this.getJsondata().equals(other.getJsondata()))\n && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))\n && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))\n && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))\n && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))\n && (this.getActive() == null ? other.getActive() == null : this.getActive().equals(other.getActive()))\n && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof AplicacionXSubProcesoNegocioPK)) {\n return false;\n }\n AplicacionXSubProcesoNegocioPK other = (AplicacionXSubProcesoNegocioPK) object;\n if (this.idAplicacion != other.idAplicacion) {\n return false;\n }\n if (this.idSubProceso != other.idSubProceso) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof CandidateStatusKey)) return false;\n\n CandidateStatusKey that = (CandidateStatusKey) o;\n\n if (workRequestId != null ? !workRequestId.equals(that.workRequestId) : that.workRequestId != null)\n return false;\n if (status != null ? !status.equals(that.status) : that.status != null)\n return false;\n return lastUpdateDate != null ? lastUpdateDate.equals(that.lastUpdateDate) : that.lastUpdateDate == null;\n }",
"private void checkCombinationWhenHrAreEqual(TimeBean obj, List<String> listTimeComb ) {\r\n\t\tif(( obj.getStartMin()==0 ) && (obj.getStartHr() <= obj.getEndSec() ) ) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":00:\"+obj.getEndHr());\r\n\t\t}\r\n\t\t\r\n\t\tif((obj.getEndHr() < obj.getEndMin()) ||( obj.getEndHr() == obj.getEndMin() && obj.getStartSec() == 0)) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":\"+obj.getEndHr()+\":00\");\r\n\t\t}\r\n\r\n\t\tif((obj.getEndHr() < obj.getEndMin()) || (obj.getEndHr() == obj.getEndMin() && obj.getStartSec() <= obj.getEndMin() && obj.getStartSec() <= obj.getEndSec())) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":\"+obj.getEndHr()+\":\"+obj.getEndHr());\r\n\t\t}\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof OrdenitemPK)) {\r\n return false;\r\n }\r\n OrdenitemPK other = (OrdenitemPK) object;\r\n if (this.ordencompraNumeroorden != other.ordencompraNumeroorden) {\r\n return false;\r\n }\r\n if (this.libroIsbn != other.libroIsbn) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof StdHrAcadBackgr)) {\n return false;\n }\n StdHrAcadBackgr other = (StdHrAcadBackgr) object;\n if ((this.stdHrAcadBackgrPK == null && other.stdHrAcadBackgrPK != null) || (this.stdHrAcadBackgrPK != null && !this.stdHrAcadBackgrPK.equals(other.stdHrAcadBackgrPK))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof AfBienesDepreciables)) {\r\n return false;\r\n }\r\n AfBienesDepreciables other = (AfBienesDepreciables) object;\r\n if ((this.idBien == null && other.idBien != null) || (this.idBien != null && !this.idBien.equals(other.idBien))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof EgressoCursoPK)) {\n return false;\n }\n EgressoCursoPK other = (EgressoCursoPK) object;\n if ((this.egressocpf == null && other.egressocpf != null) || (this.egressocpf != null && !this.egressocpf.equals(other.egressocpf))) {\n return false;\n }\n if (this.cursoid != other.cursoid) {\n return false;\n }\n return true;\n }",
"public boolean validarClienImpLinComEstFilial(Long codigoClienteImportacion,Integer codigoCompania)throws SICException{\n\t\ttry {\n\t\t\tLogeable.LOG_SICV2.info(\"Metodo validarClienImpLinComEstFilial \");\n\t\t\tLogeable.LOG_SICV2.info(\"Parametros : \");\n\t\t\tLogeable.LOG_SICV2.info(\"codigoClienteImportacion : \"+codigoClienteImportacion);\n\t\t\tLogeable.LOG_SICV2.info(\"codigoCompania : \"+codigoCompania);\n\t\t\t\n\t\t\tCriteria criteria = hibernateH.getHibernateSession().createCriteria(LineaComercialClienteImportacionDTO.class);\n\t\t\tcriteria.setProjection(Projections.count(\"id.codigoClienteImportacion\"));\n\t\t\tcriteria.createAlias(\"lineaComercialDTO\", \"lineaComercialDTO\");\n\t\t\tcriteria.createAlias(\"lineaComercialDTO.establecimiento\", \"establecimiento\");\n\t\t\tcriteria.add(Restrictions.eq(\"establecimiento.tipoEstablecimiento\",CorporativoConstantes.TIPO_ESTABLECIMIENTO_FILIAL));\n\t\t\tcriteria.add(Restrictions.eq(\"id.codigoClienteImportacion\", codigoClienteImportacion));\n\t\t\tcriteria.add(Restrictions.eq(\"id.codigoCompania\", codigoCompania));\n\t\t\tcriteria.add(Restrictions.eq(\"estado\", SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\tcriteria.add(Restrictions.eq(\"lineaComercialDTO.estado\", SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\tcriteria.add(Restrictions.eq(\"establecimiento.estado\", SICConstantes.ESTADO_ACTIVO_LITERAL));\n\t\t\t\n\t\t\tLong resulCount = (Long)criteria.uniqueResult();\n\t\t\t\n\t\t\tif(resulCount > 0){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\treturn false;\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error validarClienImpLinComEstFilial\",e);\n\t\t}\n\t}",
"public int compare(Object pObj1, Object pObj2)\r\n {\r\n VwClientFollowupBean b1 = (VwClientFollowupBean)pObj1;\r\n VwClientFollowupBean b2 = (VwClientFollowupBean)pObj2;\r\n int iReturn = 0;\r\n switch(iType)\r\n {\r\n case VwClientFollowupManager.ID_LAST_NAME:\r\n if (b1.getLastName() == null && b2.getLastName() != null) {\r\n iReturn = -1;\r\n } else if (b1.getLastName() == null && b2.getLastName() == null) {\r\n iReturn = 0;\r\n } else if (b1.getLastName() != null && b2.getLastName() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getLastName().compareTo(b2.getLastName());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_FIRST_NAME:\r\n if (b1.getFirstName() == null && b2.getFirstName() != null) {\r\n iReturn = -1;\r\n } else if (b1.getFirstName() == null && b2.getFirstName() == null) {\r\n iReturn = 0;\r\n } else if (b1.getFirstName() != null && b2.getFirstName() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getFirstName().compareTo(b2.getFirstName());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_DESCRIPTION:\r\n if (b1.getDescription() == null && b2.getDescription() != null) {\r\n iReturn = -1;\r\n } else if (b1.getDescription() == null && b2.getDescription() == null) {\r\n iReturn = 0;\r\n } else if (b1.getDescription() != null && b2.getDescription() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getDescription().compareTo(b2.getDescription());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_CLOSED_DT:\r\n if (b1.getClosedDt() == null && b2.getClosedDt() != null) {\r\n iReturn = -1;\r\n } else if (b1.getClosedDt() == null && b2.getClosedDt() == null) {\r\n iReturn = 0;\r\n } else if (b1.getClosedDt() != null && b2.getClosedDt() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getClosedDt().compareTo(b2.getClosedDt());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_OPENED_DATE:\r\n if (b1.getOpenedDate() == null && b2.getOpenedDate() != null) {\r\n iReturn = -1;\r\n } else if (b1.getOpenedDate() == null && b2.getOpenedDate() == null) {\r\n iReturn = 0;\r\n } else if (b1.getOpenedDate() != null && b2.getOpenedDate() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getOpenedDate().compareTo(b2.getOpenedDate());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_DUE_DT:\r\n if (b1.getDueDt() == null && b2.getDueDt() != null) {\r\n iReturn = -1;\r\n } else if (b1.getDueDt() == null && b2.getDueDt() == null) {\r\n iReturn = 0;\r\n } else if (b1.getDueDt() != null && b2.getDueDt() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getDueDt().compareTo(b2.getDueDt());\r\n }\r\n break;\r\n case VwClientFollowupManager.ID_FOLLOWUP_ID:\r\n if (b1.getFollowupId() == null && b2.getFollowupId() != null) {\r\n iReturn = -1;\r\n } else if (b1.getFollowupId() == null && b2.getFollowupId() == null) {\r\n iReturn = 0;\r\n } else if (b1.getFollowupId() != null && b2.getFollowupId() == null) {\r\n iReturn = 1;\r\n } else {\r\n iReturn = b1.getFollowupId().compareTo(b2.getFollowupId());\r\n }\r\n break;\r\n default:\r\n throw new IllegalArgumentException(\"Type passed for the field is not supported\");\r\n }\r\n\r\n return bReverse ? (-1 * iReturn) : iReturn;\r\n }",
"public void checkOverlap() {\n\n // Logic that validates overlap.\n if(redCircle.getBoundsInParent().intersects(blueCircle.getBoundsInParent())) {\n title.setText(\"Two circles intersect? Yes\");\n }\n else {\n title.setText(\"Two circles intersect? No\");\n }\n\n // Update fields in red table.\n redCircleCenterXValue.setText(String.valueOf(redCircle.getCenterX()));\n redCircleCenterYValue.setText(String.valueOf(redCircle.getCenterY()));\n redCircleRadiusValue.setText(String.valueOf(redCircle.getRadius()));\n\n // Update fields in blue table.\n blueCircleCenterXValue.setText(String.valueOf(blueCircle.getCenterX()));\n blueCircleCenterYValue.setText(String.valueOf(blueCircle.getCenterY()));\n blueCircleRadiusValue.setText(String.valueOf(blueCircle.getRadius()));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DocumentoPresentadoPK)) {\n return false;\n }\n DocumentoPresentadoPK other = (DocumentoPresentadoPK) object;\n if (this.codCia != other.codCia) {\n return false;\n }\n if (this.codDocumentoPres != other.codDocumentoPres) {\n return false;\n }\n if (this.codCandidato != other.codCandidato) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ConContableMotivoAnulacion)) {\n return false;\n }\n ConContableMotivoAnulacion other = (ConContableMotivoAnulacion) object;\n if ((this.conContableMotivoAnulacionPK == null && other.conContableMotivoAnulacionPK != null) || (this.conContableMotivoAnulacionPK != null && !this.conContableMotivoAnulacionPK.equals(other.conContableMotivoAnulacionPK))) {\n return false;\n }\n return true;\n }",
"@Test\n\tpublic void TEAM3_CONTROLLER_UT03() {\n\t\t// PRECONDITIONS\n\t\tClassDetailsStub c1 = new ClassDetailsStub(TEST_CONFIG.SatOnly),\n\t\t\t\t\t\t c2 = new ClassDetailsStub(TEST_CONFIG.MonWedFri2),\n\t\t\t\t\t\t c3 = new ClassDetailsStub(TEST_CONFIG.TueThu);\n\t\t\n\t\tArrayList<ClassDetailsStub> s1 = new ArrayList<ClassDetailsStub>();\n\t\ts1.add(c1);\n\t\ts1.add(c3);\n\t\t\n\t\tArrayList<ClassDetailsStub> s2 = new ArrayList<ClassDetailsStub>();\n\t\ts2.add(c2);\n\t\ts2.add(c3);\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\t\t\n\t\t// INPUT\n\t\tCollection<ArrayList<ClassDetailsStub>> twoSchedules = new ArrayList<ArrayList<ClassDetailsStub>>();\n\t\ttwoSchedules.add(s1);\n\t\ttwoSchedules.add(s2);\n\t\t\n\t\t// EXPECTED OUTPUT\n\t\tboolean schedulesConflict = smc.conflict(twoSchedules);\n\t\tassertTrue(schedulesConflict);\n\t}",
"@Override\n public final void checkOtherFraudUpdate(final Map<String, Object> pAddParam,\n final GoodsLoss pEntity,\n final GoodsLoss pOldEntity) throws Exception {\n //nothing\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CompetitionPK)) {\n return false;\n }\n CompetitionPK other = (CompetitionPK) object;\n if ((this.code == null && other.code != null) || (this.code != null && !this.code.equals(other.code))) {\n return false;\n }\n if ((this.programCode == null && other.programCode != null) || (this.programCode != null && !this.programCode.equals(other.programCode))) {\n return false;\n }\n if ((this.programVersion == null && other.programVersion != null) || (this.programVersion != null && !this.programVersion.equals(other.programVersion))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Libro other = (Libro) obj;\n if (this.descargable != other.descargable) {\n return false;\n }\n if (!Objects.equals(this.titulo, other.titulo)) {\n return false;\n }\n if (!Objects.equals(this.autor, other.autor)) {\n return false;\n }\n if (!Objects.equals(this.editorial, other.editorial)) {\n return false;\n }\n if (!Objects.equals(this.genero, other.genero)) {\n return false;\n }\n if (!Objects.equals(this.linkDescarga, other.linkDescarga)) {\n return false;\n }\n if (!Objects.equals(this.idLibro, other.idLibro)) {\n return false;\n }\n if (!Objects.equals(this.isbn, other.isbn)) {\n return false;\n }\n if (!Objects.equals(this.cantidadTotal, other.cantidadTotal)) {\n return false;\n }\n if (!Objects.equals(this.cantidadDisponible, other.cantidadDisponible)) {\n return false;\n }\n if (!Objects.equals(this.bibliotecario, other.bibliotecario)) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Filial)) {\r\n return false;\r\n }\r\n Filial other = (Filial) object;\r\n if ((this.codFilial == null && other.codFilial != null) || (this.codFilial != null && !this.codFilial.equals(other.codFilial))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Utilisateurdb)) {\n return false;\n }\n Utilisateurdb other = (Utilisateurdb) object;\n if ((this.utilisateurdbPK == null && other.utilisateurdbPK != null) || (this.utilisateurdbPK != null && !this.utilisateurdbPK.equals(other.utilisateurdbPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DatosIndicadores)) {\n return false;\n }\n DatosIndicadores other = (DatosIndicadores) object;\n if ((this.datosIndicadoresPK == null && other.datosIndicadoresPK != null) || (this.datosIndicadoresPK != null && !this.datosIndicadoresPK.equals(other.datosIndicadoresPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ReservacionesPK)) {\n return false;\n }\n ReservacionesPK other = (ReservacionesPK) object;\n if (this.idreservaciones != other.idreservaciones) {\n return false;\n }\n if (this.clienteIdcliente != other.clienteIdcliente) {\n return false;\n }\n if (this.sucursalIdubicacion != other.sucursalIdubicacion) {\n return false;\n }\n return true;\n }",
"protected boolean handleDirtyConflict() {\r\n\t\treturn MessageDialog.openQuestion(getSite().getShell(),\r\n\t\t\t\tgetString(\"_UI_FileConflict_label\"),\r\n\t\t\t\tgetString(\"_WARN_FileConflict\"));\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GlAccountHistoryPK)) {\r\n return false;\r\n }\r\n GlAccountHistoryPK other = (GlAccountHistoryPK) object;\r\n if ((this.glAccountId == null && other.glAccountId != null) || (this.glAccountId != null && !this.glAccountId.equals(other.glAccountId))) {\r\n return false;\r\n }\r\n if ((this.organizationPartyId == null && other.organizationPartyId != null) || (this.organizationPartyId != null && !this.organizationPartyId.equals(other.organizationPartyId))) {\r\n return false;\r\n }\r\n if ((this.customTimePeriodId == null && other.customTimePeriodId != null) || (this.customTimePeriodId != null && !this.customTimePeriodId.equals(other.customTimePeriodId))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MateriasHasEspacioHasHorariosPK)) {\n return false;\n }\n MateriasHasEspacioHasHorariosPK other = (MateriasHasEspacioHasHorariosPK) object;\n if (this.materiasIdmaterias != other.materiasIdmaterias) {\n return false;\n }\n if (this.espacioHasHorariosEspacioIdespacio != other.espacioHasHorariosEspacioIdespacio) {\n return false;\n }\n if (this.espacioHasHorariosHorariosIdhorarios != other.espacioHasHorariosHorariosIdhorarios) {\n return false;\n }\n return true;\n }",
"public int compareTo(FlightKey other) {\n\t\t// FILL IN CODE\n\t\tif(this.origin.compareTo(other.origin) < 0) return -1;\n\t\tif(this.origin.compareTo(other.origin) > 0) return 1;\n\n\t\tif(this.dest.compareTo(other.dest) < 0) return -1;\n\t\tif(this.dest.compareTo(other.dest) > 0) return 1;\n\n\t\tif(this.date.compareTo(other.date) < 0) return -1;\n\t\tif(this.date.compareTo(other.date) > 0) return 1;\n\n\t\tif(this.time.compareTo(other.time) < 0) return -1;\n\t\tif(this.time.compareTo(other.time) > 0) return 1;\n\n\t\treturn 0; // don't forget to change it\n\t}",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n VEqinquiry other = (VEqinquiry) that;\n return (this.getCorpcode() == null ? other.getCorpcode() == null : this.getCorpcode().equals(other.getCorpcode()))\n && (this.getCorpname() == null ? other.getCorpname() == null : this.getCorpname().equals(other.getCorpname()))\n && (this.getCorpshortname() == null ? other.getCorpshortname() == null : this.getCorpshortname().equals(other.getCorpshortname()))\n && (this.getCorptype() == null ? other.getCorptype() == null : this.getCorptype().equals(other.getCorptype()))\n && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getCorpid() == null ? other.getCorpid() == null : this.getCorpid().equals(other.getCorpid()))\n && (this.getInquirycontent() == null ? other.getInquirycontent() == null : this.getInquirycontent().equals(other.getInquirycontent()))\n && (this.getInquirydate() == null ? other.getInquirydate() == null : this.getInquirydate().equals(other.getInquirydate()))\n && (this.getAttribute1() == null ? other.getAttribute1() == null : this.getAttribute1().equals(other.getAttribute1()))\n && (this.getAttribute2() == null ? other.getAttribute2() == null : this.getAttribute2().equals(other.getAttribute2()))\n && (this.getAttribute3() == null ? other.getAttribute3() == null : this.getAttribute3().equals(other.getAttribute3()))\n && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby()))\n && (this.getCreationdate() == null ? other.getCreationdate() == null : this.getCreationdate().equals(other.getCreationdate()))\n && (this.getLastupdateby() == null ? other.getLastupdateby() == null : this.getLastupdateby().equals(other.getLastupdateby()))\n && (this.getLastupdatedate() == null ? other.getLastupdatedate() == null : this.getLastupdatedate().equals(other.getLastupdatedate()));\n }",
"@Override\n public boolean handleIt(final AttributeConflict conflict) {\n //idMapping.getMapTgtTypeIDs(toID, toAttrName)\n final CyAttributes attrs = conflict.getCyAttributes();\n final String fromID = conflict.getFromID();\n final String fromAttr = conflict.getFromAttr();\n final String toID = conflict.getToID();\n final String toAttr = conflict.getToAttr();\n\n //final Object fromValue = attrs.getAttribute(fromID, fromAttr);\n final Object toValue = attrs.getAttribute(toID, toAttr);\n\n if (!(toValue instanceof String)) { //TODO: deal with other types\n return false;\n }\n\n Map<String,String> mapGOAttr = new HashMap<String,String>();\n mapGOAttr.put(fromID, fromAttr);\n mapGOAttr.put(toID, toAttr);\n Map<String,Set<String>> overlappedMapTypeIDs = IDMappingDataUtils.getOverlappingIDMapping(idMapping, mapGOAttr);\n\n if (overlappedMapTypeIDs==null||overlappedMapTypeIDs.isEmpty()) {\n return false;\n }\n\n //if the src type in, pick it, otherwise pick the first type\n //TODO : realize a type priority\n String srcType = idMapping.getSrcIDType(toID, toAttr);\n Set<String> values = overlappedMapTypeIDs.get(srcType);\n if (values==null) {\n values = overlappedMapTypeIDs.values().iterator().next();\n }\n String value = values.iterator().next();\n attrs.setAttribute(toID, toAttr, value);\n return true;\n }",
"public boolean isConflicting (RuleSet ruleset) {\n \n if (this.id == ruleset.id)\n return false; \n \n if (!this.getPrecursorWithID().sensorMatch(ruleset.getPrecursorWithID()))\n return false;\n \n \n for (int i = 0; i < this.getSuccessor().size(); i++) {\n \n if ((this.getSuccessor().getToken(i).isNotWildcard()) && (ruleset.getSuccessor().getToken(i).isNotWildcard())) {\n \n //if (this.getPrecursorOccurrencies() <= ruleset.getPrecursorOccurrencies())\n return true; \n }\n }\n \n \n return false;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CekIndArticuloPK)) {\r\n return false;\r\n }\r\n CekIndArticuloPK other = (CekIndArticuloPK) object;\r\n if ((this.idPais == null && other.idPais != null) || (this.idPais != null && !this.idPais.equals(other.idPais))) {\r\n return false;\r\n }\r\n if ((this.idPeriodo == null && other.idPeriodo != null) || (this.idPeriodo != null && !this.idPeriodo.equals(other.idPeriodo))) {\r\n return false;\r\n }\r\n if ((this.idArticulo == null && other.idArticulo != null) || (this.idArticulo != null && !this.idArticulo.equals(other.idArticulo))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean equals(Object obj) {\n if (this == obj) return true;\n if (obj == null) {\n return false;\n }\n DsSipEventHeaderBase header = null;\n try {\n header = (DsSipEventHeaderBase) obj;\n } catch (ClassCastException cce) {\n return false;\n }\n if ((m_strPackage != null) && (m_strPackage.length() > 0)) {\n if (!m_strPackage.equals(header.m_strPackage)) {\n return false;\n }\n } else if ((header.m_strPackage != null) && (header.m_strPackage.length() > 0)) {\n return false;\n }\n if ((m_subPackages != null) && (m_subPackages.size() > 0)) {\n if ((header.m_subPackages == null) || (header.m_subPackages.size() != m_subPackages.size())) {\n return false;\n }\n Iterator iter1 = m_subPackages.listIterator(0);\n Iterator iter2 = header.m_subPackages.listIterator(0);\n DsByteString str1 = null;\n DsByteString str2 = null;\n while (iter1.hasNext()) {\n str1 = (DsByteString) iter1.next();\n str2 = (DsByteString) iter2.next();\n if (!str1.equals(str2)) return false;\n }\n } else if ((header.m_subPackages != null) && (header.m_subPackages.size() > 0)) {\n return false;\n }\n\n if (m_paramTable != null && header.m_paramTable != null) {\n if (!m_paramTable.equals(header.m_paramTable)) {\n return false;\n }\n } else if (m_paramTable == null && header.m_paramTable != null) {\n if (!header.m_paramTable.isEmpty()) {\n return false;\n }\n } else if (header.m_paramTable == null && m_paramTable != null) {\n if (!m_paramTable.isEmpty()) {\n return false;\n }\n }\n // else both null - ok\n\n return true;\n }",
"public boolean equals(Object obj) {\r\n if (obj == null) {\r\n return false;\r\n }\r\n if (getClass() != obj.getClass()) {\r\n return false;\r\n }\r\n PrestitiAbstractSearch other = (PrestitiAbstractSearch) obj;\r\n if (soggetti == null) {\r\n if (other.getSoggetti() != null) {\r\n return false;\r\n }\r\n } else if (!soggetti.equals(other.getSoggetti())) {\r\n return false;\r\n }\r\n if (soggetti_username == null) {\r\n if (other.getSoggetti_username() != null) {\r\n return false;\r\n }\r\n } else if (!soggetti_username.equals(other.getSoggetti_username())) {\r\n return false;\r\n }\r\n if (dataPrestitoFrom == null) {\r\n if (other.getDataPrestitoFrom() != null) {\r\n return false;\r\n }\r\n } else if (!dataPrestitoFrom.equals(other.getDataPrestitoFrom())) {\r\n return false;\r\n }\r\n if (dataPrestitoTo == null) {\r\n if (other.getDataPrestitoTo() != null) {\r\n return false;\r\n }\r\n } else if (!dataPrestitoTo.equals(other.getDataPrestitoTo())) {\r\n return false;\r\n }\r\n if (scadenzaPrestitoFrom == null) {\r\n if (other.getScadenzaPrestitoFrom() != null) {\r\n return false;\r\n }\r\n } else if (!scadenzaPrestitoFrom.equals(other.getScadenzaPrestitoFrom())) {\r\n return false;\r\n }\r\n if (scadenzaPrestitoTo == null) {\r\n if (other.getScadenzaPrestitoTo() != null) {\r\n return false;\r\n }\r\n } else if (!scadenzaPrestitoTo.equals(other.getScadenzaPrestitoTo())) {\r\n return false;\r\n }\r\n if (oggetti == null) {\r\n if (other.getOggetti() != null) {\r\n return false;\r\n }\r\n } else if (!oggetti.equals(other.getOggetti())) {\r\n return false;\r\n }\r\n if (oggetti_id == null) {\r\n if (other.getOggetti_id() != null) {\r\n return false;\r\n }\r\n } else if (!oggetti_id.equals(other.getOggetti_id())) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CentroHasModeloPK)) {\n return false;\n }\n CentroHasModeloPK other = (CentroHasModeloPK) object;\n if (this.idcentro != other.idcentro) {\n return false;\n }\n if ((this.idmodelo == null && other.idmodelo != null) || (this.idmodelo != null && !this.idmodelo.equals(other.idmodelo))) {\n return false;\n }\n return true;\n }",
"public void conflict(Object arg0) {\n\n\t}",
"public CFWRect intersectsLine( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//1.rejust rect\r\n\t\t//correct: (m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\r\n\t\tif(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange all\r\n\t\t\tCFWPoint poiTmp = m_poiLT;\r\n\t\t\tm_poiLT = m_poiRB;\r\n\t\t\tm_poiRB = poiTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\t{\r\n\t\t\t//exchange X\r\n\t\t\tfloat fXTmp = m_poiLT.m_fX;\r\n\t\t\tm_poiLT.m_fX = m_poiRB.m_fX;\r\n\t\t\tm_poiRB.m_fX = fXTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange Y\r\n\t\t\tfloat fYTmp = m_poiLT.m_fY;\r\n\t\t\tm_poiLT.m_fY = m_poiRB.m_fY;\r\n\t\t\tm_poiRB.m_fY = fYTmp;\r\n\t\t}\r\n\t\t//2.intersect test\r\n\t\tCFWPoint poiOutOfRect = new CFWPoint();\r\n\t\tboolean bPoiInsideRect = false;\r\n\t\tCFWRect rectRet = new CFWRect();\r\n\t\tif(!checkPoiInside( poiBegI, poiEndI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse if(!checkPoiInside( poiEndI, poiBegI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\tif(isInsideArea( 9, poiBegI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\t}\r\n\t\t\t\trectRet.m_poiLT = poiBegI;\r\n\t\t\t\tpoiOutOfRect = poiEndI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiBegI))\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\trectRet.m_poiLT = poiEndI;\r\n\t\t\t\tpoiOutOfRect = poiBegI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//3.intersect\r\n\t\t//if the line is vertical to X/Y, return the line segment\r\n\t\tif(poiEndI.m_fX == poiBegI.m_fX)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = poiEndI.m_fX;\r\n\t\t\t\t//less than the m_poiLT'Y, use the m_poiLT'Y\r\n\t\t\t\trectRet.m_poiLT.m_fY = Math.max( Math.min(poiBegI.m_fY, poiEndI.m_fY), m_poiLT.m_fY);\r\n\t\t\t\t//larger than m_poiRB's Y, use the m_poiRB's Y\r\n\t\t\t\trectRet.m_poiRB.m_fY = Math.min( Math.max(poiBegI.m_fY, poiEndI.m_fY), m_poiRB.m_fY);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fY < m_poiLT.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\telse if(poiOutOfRect.m_fY > m_poiRB.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiRB.m_fY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fX = poiEndI.m_fX;\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(poiEndI.m_fY == poiBegI.m_fY)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = Math.max( Math.min( poiBegI.m_fX, poiEndI.m_fX), m_poiLT.m_fX);\r\n\t\t\t\trectRet.m_poiLT.m_fY = poiEndI.m_fY;\r\n\t\t\t\trectRet.m_poiRB.m_fX = Math.min( Math.max( poiBegI.m_fX, poiEndI.m_fX), m_poiRB.m_fX);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fX < m_poiLT.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\telse if(poiOutOfRect.m_fX > m_poiRB.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiRB.m_fX;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fY = poiEndI.m_fY;\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\t//build line function\r\n\t\t\tdouble dK = (poiEndI.m_fY - poiBegI.m_fY)/(poiEndI.m_fX - poiBegI.m_fX);\r\n\t\t\tdouble dB = poiBegI.m_fY - dK*poiBegI.m_fX;\r\n\t\t\t//find intersect points\r\n\t\t\tCFWPoint poiIntersA = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tCFWPoint poiIntersB = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tfloat fXTmpA = (float)((m_poiLT.m_fY - dB)/dK);\r\n\t\t\tfloat fXTmpB = (float)((m_poiRB.m_fY - dB)/dK);\r\n\t\t\tfloat fYTmpA = (float)(dK*m_poiLT.m_fX + dB);\r\n\t\t\tfloat fYTmpB = (float)(dK*m_poiRB.m_fX + dB);\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpA, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpB, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpA, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpB, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(bPoiInsideRect)\t{\r\n\t\t\t\tCFWVector vecBE = new CFWVector(poiOutOfRect.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBA = new CFWVector(poiIntersA.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBB = new CFWVector(poiIntersB.sub(rectRet.m_poiLT));\r\n\t\t\t\tif(vecBE.isSameDir_VerticalIn(vecBA))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersA;\r\n\t\t\t\t}\r\n\t\t\t\telse if(vecBE.isSameDir_VerticalIn(vecBB))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\trectRet.m_poiLT = poiIntersA;\r\n\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//last check : intersected line segment whether inside rectangle\r\n\t\tif(!isInsideArea( 9, rectRet.m_poiLT) || !isInsideArea( 9, rectRet.m_poiRB))\t{\r\n\t\t\tSystem.out.println(\"generated line segment isn't inside rectangle!\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn(rectRet);\r\n\t}",
"@Test\n\tpublic void equalsNullIdBoth() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tkey1.setId(LONG_ZERO);\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey2.setId(LONG_ZERO);\n\t\tboolean equals = key1.equals(key2);\n\t\tAssert.assertTrue(equals);\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DiccionarioAplicacionEntity)) {\n return false;\n }\n DiccionarioAplicacionEntity other = (DiccionarioAplicacionEntity) object;\n if ((this.diccionarioAplicacionPK == null && other.diccionarioAplicacionPK != null) || (this.diccionarioAplicacionPK != null && !this.diccionarioAplicacionPK.equals(other.diccionarioAplicacionPK))) {\n return false;\n }\n return true;\n }",
"public int hashCode() {\n/* 458 */ hash = super.hashCode();\n/* 459 */ return HashUtilities.hashCode(hash, this.errorIndicatorPaint);\n/* */ }",
"public void setConflicts(int conflicts) {\r\n this.conflicts = conflicts;\r\n }",
"public DatiBancari[] findWhereFkComuneEquals(long fkComune) throws DatiBancariDaoException;",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof InvProductoPresentacionUnidadesPK)) {\n return false;\n }\n InvProductoPresentacionUnidadesPK other = (InvProductoPresentacionUnidadesPK) object;\n if ((this.presuEmpresa == null && other.presuEmpresa != null) || (this.presuEmpresa != null && !this.presuEmpresa.equals(other.presuEmpresa))) {\n return false;\n }\n if ((this.presuCodigo == null && other.presuCodigo != null) || (this.presuCodigo != null && !this.presuCodigo.equals(other.presuCodigo))) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic int compareTo(RestSemanticDescriptionVersion o)\n\t{\n\t\t//This will handle native types, and the grouping of external types.\n\t\tint coreTypeLeft = Frills.getDescriptionType(this.descriptionTypeConcept.nid.intValue(), null);\n\t\tint coreTypeRight = Frills.getDescriptionType(o.descriptionTypeConcept.nid.intValue(), null);\n\t\t\n\t\t//handle cases where 1 of the 2 is a core type\n\t\tif (coreTypeLeft == MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t|| coreTypeRight == MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t{\n\t\t\tif (coreTypeLeft == MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight != MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse if (coreTypeLeft != MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight == MetaData.FULLY_QUALIFIED_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if (coreTypeLeft == MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t|| coreTypeRight == MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t{\n\t\t\tif (coreTypeLeft == MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight != MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse if (coreTypeLeft != MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight == MetaData.REGULAR_NAME_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if (coreTypeLeft == MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t|| coreTypeRight == MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t{\n\t\t\tif (coreTypeLeft == MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight != MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse if (coreTypeLeft != MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid() \n\t\t\t\t\t&& coreTypeRight == MetaData.DEFINITION_DESCRIPTION_TYPE____SOLOR.getNid())\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//the core types are identical. If there is an external type - check that.\n\t\tif (this.descriptionExtendedTypeConcept == null || o.descriptionExtendedTypeConcept == null)\n\t\t{\n\t\t\t//external (not extended) type which is different\n\t\t\tif (this.descriptionTypeConcept.nid.intValue() != o.descriptionTypeConcept.nid.intValue())\n\t\t\t{\n\t\t\t\treturn AlphanumComparator.compare(Util.readBestDescription(this.descriptionTypeConcept.nid.intValue()), \n\t\t\t\t\t\tUtil.readBestDescription(o.descriptionTypeConcept.nid.intValue()), true);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//extended type, where the types are different\n\t\t\tif (this.descriptionExtendedTypeConcept.nid.intValue() != o.descriptionExtendedTypeConcept.nid.intValue())\n\t\t\t{\n\t\t\t\treturn AlphanumComparator.compare(Util.readBestDescription(this.descriptionExtendedTypeConcept.nid.intValue()), \n\t\t\t\t\t\tUtil.readBestDescription(o.descriptionExtendedTypeConcept.nid.intValue()), true);\n\t\t\t}\n\t\t}\n\t\t//Still tied on type, move to level 2\n\t\treturn sortLanguage(o);\n\t}",
"private void addRelationshipConstraintConflicts(\n RelationshipConstraint constraint,\n org.hisp.dhis.dxf2.deprecated.tracker.trackedentity.RelationshipItem relationshipItem,\n String relationshipUid,\n ImportConflicts importConflicts) {\n RelationshipEntity entity = constraint.getRelationshipEntity();\n String itemUid = getUidOfRelationshipItem(relationshipItem);\n\n if (TRACKED_ENTITY_INSTANCE.equals(entity)) {\n TrackedEntity tei = trackedEntityInstanceCache.get(itemUid);\n\n if (tei == null) {\n importConflicts.addConflict(relationshipUid, \"TrackedEntity '\" + itemUid + \"' not found.\");\n } else if (!tei.getTrackedEntityType().equals(constraint.getTrackedEntityType())) {\n importConflicts.addConflict(\n relationshipUid, \"TrackedEntity '\" + itemUid + \"' has invalid TrackedEntityType.\");\n }\n } else if (PROGRAM_INSTANCE.equals(entity)) {\n Enrollment pi = programInstanceCache.get(itemUid);\n\n if (pi == null) {\n importConflicts.addConflict(relationshipUid, \"Enrollment '\" + itemUid + \"' not found.\");\n } else if (!pi.getProgram().equals(constraint.getProgram())) {\n importConflicts.addConflict(\n relationshipUid, \"Enrollment '\" + itemUid + \"' has invalid Program.\");\n }\n } else if (PROGRAM_STAGE_INSTANCE.equals(entity)) {\n Event psi = programStageInstanceCache.get(itemUid);\n\n if (psi == null) {\n importConflicts.addConflict(relationshipUid, \"Event '\" + itemUid + \"' not found.\");\n } else {\n if (constraint.getProgram() != null\n && !psi.getProgramStage().getProgram().equals(constraint.getProgram())) {\n importConflicts.addConflict(\n relationshipUid, \"Event '\" + itemUid + \"' has invalid Program.\");\n } else if (constraint.getProgramStage() != null\n && !psi.getProgramStage().equals(constraint.getProgramStage())) {\n importConflicts.addConflict(\n relationshipUid, \"Event '\" + itemUid + \"' has invalid ProgramStage.\");\n }\n }\n }\n }"
] | [
"0.47567663",
"0.46971336",
"0.46441507",
"0.44929677",
"0.4470706",
"0.44201496",
"0.4402451",
"0.4392241",
"0.43704915",
"0.43401423",
"0.42740455",
"0.42727992",
"0.42448848",
"0.4243646",
"0.4243437",
"0.42366883",
"0.42237714",
"0.42065144",
"0.4197219",
"0.4195603",
"0.4180859",
"0.41806987",
"0.41784972",
"0.417151",
"0.41630295",
"0.4161714",
"0.4160041",
"0.41156173",
"0.4114121",
"0.41103148",
"0.41015348",
"0.40974754",
"0.4091077",
"0.40807736",
"0.40797013",
"0.40764773",
"0.4073776",
"0.407178",
"0.40670946",
"0.4066045",
"0.4063228",
"0.40614796",
"0.40520272",
"0.40487367",
"0.40418988",
"0.4038338",
"0.40239012",
"0.40204313",
"0.40152746",
"0.40132725",
"0.40044123",
"0.40041295",
"0.39992955",
"0.39950657",
"0.3994539",
"0.39909637",
"0.3986308",
"0.39822736",
"0.39802465",
"0.3980098",
"0.39742652",
"0.3969923",
"0.39666134",
"0.3961083",
"0.39505768",
"0.3950082",
"0.3947607",
"0.39385587",
"0.393498",
"0.39347216",
"0.39332584",
"0.39312086",
"0.39284438",
"0.39248812",
"0.39150944",
"0.3915044",
"0.39098385",
"0.39071274",
"0.3892423",
"0.3889018",
"0.3886398",
"0.38863507",
"0.3884327",
"0.38813853",
"0.38779318",
"0.38770387",
"0.3876969",
"0.38764098",
"0.38691643",
"0.38671416",
"0.38649374",
"0.3863637",
"0.38620624",
"0.38566566",
"0.38490656",
"0.3847538",
"0.38444257",
"0.38431314",
"0.38427815",
"0.3840157",
"0.38396466"
] | 0.0 | -1 |
Format the primary key fields in a comma separated list. The format is intended to be suitable for display to users. | public String formatPrimaryKey()
{
StringBuilder sb = new StringBuilder();
AcFormatter f = new AcFormatter();
sb.append(f.formatAny(getLegDepartureLocalTm()));
sb.append(", ");
sb.append(f.formatAny(getLegArrivalLocalTm()));
sb.append(", ");
sb.append(f.formatAny(getLegArrivalDayOffset()));
sb.append(", ");
sb.append(f.formatAny(getLegStopCount()));
sb.append(", ");
sb.append(f.formatAny(getLegEquipment()));
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getBatchId()));\n sb.append(\", \");\n sb.append(f.formatAny(getNestId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getHashKey()));\n return sb.toString();\n }",
"public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getCode()));\n return sb.toString();\n }",
"public String fieldIdToString() {\r\n\t\treturn new String(String.format(\"%02d\", getID()));\r\n\t}",
"private String displayPkValues(Map<String,Object> pkValues) {\n StringBuilder display = new StringBuilder();\n for(String key : pkValues.keySet()) {\n display.append(key + \"=\" + pkValues.get(key) + \" \");\n }\n return display.toString();\n }",
"protected String createPrimaryKeyConstraint(TableModel table) {\r\n\t\tColumnModel[] pks = table.getPrimaryKeyColumns();\r\n\t\tString s = \"\";\r\n\t\tif (pks.length > 1) {\r\n\t\t\ts = \",\\n PRIMARY KEY(\";\r\n\t\t\tString a = \"\";\r\n\t\t\tfor (ColumnModel c : pks) {\r\n\t\t\t\tif (a.length() > 0) {\r\n\t\t\t\t\ta += \", \";\r\n\t\t\t\t}\r\n\t\t\t\ta += this.quote(c.getName());\r\n\t\t\t}\r\n\t\t\ts += a + \")\";\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"private static String formStringFromList(List<Long> ids)\n {\n if (ids == null || ids.size() == 0)\n return null;\n\n StringBuilder idsBuffer = new StringBuilder();\n for (Long id : ids)\n {\n idsBuffer.append(id).append(\",\");\n }\n\n return idsBuffer.toString().substring(0, idsBuffer.length() - 1);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn id+\",\"+name+\",\"+age;\n\t}",
"java.util.List<String>\n getPrimaryKeyNamesList();",
"@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRUtility.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n }",
"static void generatePrimary(Table table, Key key, PrintWriter outData, String mcomma)\r\n {\r\n String comma = \" ( \";\r\n String keyname = key.name.toUpperCase();\r\n if (keyname.indexOf(table.name.toUpperCase()) == -1)\r\n keyname = table.name.toUpperCase()+\"_\"+keyname;\r\n outData.println(mcomma+\"CONSTRAINT \"+keyname+\" PRIMARY KEY\");\r\n for (int i=0; i < key.fields.size(); i++, comma = \" , \")\r\n {\r\n String name = (String) key.fields.elementAt(i);\r\n outData.println(comma+name);\r\n }\r\n outData.println(\" )\");\r\n for (int i=0; i < key.options.size(); i++)\r\n {\r\n String option = (String) key.options.elementAt(i);\r\n outData.println(\" \"+option);\r\n }\r\n }",
"private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}",
"@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRDateUtils.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n\n }",
"public com.google.protobuf.ProtocolStringList\n getPrimaryKeyNamesList() {\n return primaryKeyNames_.getUnmodifiableView();\n }",
"public String getIdAsString(String key) {\n Object obj = ids.get(key);\n if (obj == null) {\n return \"\";\n }\n return String.valueOf(obj);\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"public String getIndexesInDBFormat() {\n String servicesDBFormat = \"\";\n for(int i = 0; i < indexes.size(); i++) {\n //Add comma if not first:\n if(i != 0) {\n servicesDBFormat += \",\";\n }\n servicesDBFormat += indexes.get(i);\n }\n return servicesDBFormat;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Key, ID: \"+this.id;\n\t}",
"public static void printIDTable () {\n System.out.println(); \n System.out.println(\"Identifier Cross Reference Table\");\n System.out.println(\"--------------------------------\"); \n for(String key : idCRT.keySet()) {\n // if id string length is > 30,\n // replace excess characters with a '+' character\n if(key.length() > 30) {\n String temp = key.substring(0, 30);\n temp += \"+\";\n System.out.printf(\"%-30s\",temp); \n } else {\n System.out.printf(\"%-30s\",key);\n }\n // prints the line numbers, creating a new line\n // if number of line numbers exceeds 7\n int count = 0;\n for(Integer lno : idCRT.get(key)) {\n if(count == 7) {\n System.out.printf(\"\\n%30s\", \" \");\n count = 0;\n }\n System.out.printf(\"%6d\",lno);\n count++;\n }\n System.out.println();\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.getFirstName() + \",\" + this.getLastName() + \",\" + this.getId() + \",\" + this.getEmail() + \",\" + this.getPassword() + \",\" + this.getMaxCourses();\n\t}",
"@Override\n\tpublic void printCode(StringBuilder builder, int indentation) {\n\t\tfor(String id: idList){\n\t\t\tbuilder.append(id.substring(\"ID[\".length(), id.length()-1));\n\t\t\tbuilder.append(\",\");\n\t\t}\n\t\tbuilder.deleteCharAt(builder.length() -1);//delete last comma\n\t\t\n\t}",
"public String toString() {\n return \"ID:\" + ID + \" \" + \"LastName:\" + LName + \" \" + \"FirstName:\" + FName + \" \";\n }",
"public static void printPrimaryKeyDetails(ResultSet pk) throws SQLException {\n/*\n ResultSetMetaData rs_meta = pk.getMetaData();\n\n for (int x = 1; x <= rs_meta.getColumnCount(); x++) {\n writeMessage(\"pk column attr: \" + rs_meta.getColumnName(x));\n }\n*/\n writeMessage(\"getPrimaryKeys(): TABLE_CAT=\" + pk.getString(\"TABLE_CAT\"));\n writeMessage(\"getPrimaryKeys(): TABLE_SCHEM=\" + pk.getString(\"TABLE_SCHEM\"));\n writeMessage(\"getPrimaryKeys(): TABLE_NAME=\" + pk.getString(\"TABLE_NAME\"));\n writeMessage(\"getPrimaryKeys(): COLUMN_NAME=\" + pk.getString(\"COLUMN_NAME\"));\n writeMessage(\"getPrimaryKeys(): KEY_SEQ=\" + pk.getString(\"KEY_SEQ\"));\n writeMessage(\"getPrimaryKeys(): PK_NAME=\" + pk.getString(\"PK_NAME\"));\n }",
"String getPrimaryKeyNames(int index);",
"public String toString() {\n return String.format(\"%4d: %s\", id, name);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"{\" + Strings.join(\",\", keyValuePair) + \"}\";\n\t}",
"public String toString() {\n return Arrays.toString(id);\n }",
"public com.google.protobuf.ProtocolStringList\n getPrimaryKeyNamesList() {\n return primaryKeyNames_;\n }",
"@Override\n public String toString() {\n return \"MultiKey\" + Arrays.toString(keys);\n }",
"public String prettyPrint() {\n StringBuilder builder = new StringBuilder();\n for (StaticPropertyOracle oracle : orderedPropertyOracles) {\n String[] values = oracle.getOrderedPropValues();\n BindingProperty[] props = oracle.getOrderedProps();\n assert values.length == props.length;\n for (int i = 0; i < props.length; i++) {\n builder.append(props[i].getName() + \"=\" + values[i]);\n if (i < props.length - 1) {\n builder.append(\",\");\n }\n }\n }\n return builder.toString();\n }",
"private String addIDsNew(List<Person> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn id + \",\" + fName + \",\" + lName + \",\" + birthday + \",\" + phone\r\n\t\t\t\t+ \",\" + status + contactToString();\r\n\t}",
"public final String getKeys() {\n StringBuilder sb = new StringBuilder();\n boolean append = false;\n for (Key key : this.parameters.keySet()) {\n if (append)\n sb.append(\",\");\n sb.append(key);\n append = true;\n }\n return sb.toString();\n }",
"public String toString() { \r\n return \"\\n\\tId: \" + id + name;\r\n }",
"public String getCSVString() {\n return getId() + \",\" + noOfRounds + \",\" + caliber + \",\" + manufacturer + \",\" + price;\n }",
"private String getUsersToString()\n {\n ArrayList<String> list = new ArrayList<>();\n Iterator iterator = userList.entrySet().iterator();\n while (iterator.hasNext())\n {\n Map.Entry mapEntry = (Map.Entry) iterator.next();\n list.add(\"\" + mapEntry.getKey());\n }\n \n String returnString = \"\";\n if(list.size() > 0)\n {\n returnString = list.get(0);\n for(int i = 1; i < list.size(); i++)\n {\n returnString = returnString + \",\" + list.get(i);\n }\n }\n return returnString;\n }",
"@AutoEscape\n\tpublic String getFieldId();",
"private List<String> getPrimaryKeys(Table table) {\n\t\tlog.debug(\"getPrimaryKeys\");\n\t\tList<String> primaryKeyList = new ArrayList<String>();\n\n\t\tfor (Index index : table.getIndexes()) {\n\t\t\tfor (Index.Column column : index.getColumns()) {\n\t\t\t\tif (index.isPrimaryKey()) {\n\t\t\t\t\tprimaryKeyList.add(column.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn primaryKeyList;\n\t}",
"public String toString() { \n StringBuffer sb = new StringBuffer(); \n sb.append(\"[\"); \n sb.append(\"]:\"); \n sb.append(prlKey);\n sb.append(\"|\");\n sb.append(prlPinKey);\n // attribute 'prlFirstName' not usable (type = String Long Text)\n sb.append(\"|\");\n sb.append(rcdOrderBy);\n sb.append(\"|\");\n sb.append(relationtype);\n sb.append(\"|\");\n sb.append(relationship);\n sb.append(\"|\");\n sb.append(activeStatus);\n return sb.toString(); \n }",
"@Override\n\tpublic String toString() {\n\t\treturn id + \" \" + name + \" \" + surname;\n\t}",
"protected String convertModelOptionsToCommaDelimStr(List<ModelOption> modelOptions) {\n StringBuilder sb = new StringBuilder();\n int cnt = 0;\n for (ModelOption modelOption : modelOptions) {\n if (cnt > 0) {\n sb.append(\",\");\n }\n sb.append(modelOption.getModelId() + \"\");\n cnt++;\n }\n return sb.toString();\n }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"public String getKey() {\n\t\treturn id + \"\";\n\t}",
"public String toString() {\n/* 46 */ return ModelUtil.toCommaSeparatedList((Object[])getValue());\n/* */ }",
"@Override\n public String toString() {\n return String.format(\"[id = %d, PIN: %s, LastName = %s, gender=%s, FirstName: %s]\", id, pin,LastName, gender, FirstName);\n }",
"private String getTextID(String key) {\n return fieldID.get(key).getText();\n }",
"private static String toSQLFields(List<String> fields) {\n StringBuilder s = new StringBuilder();\n s.append(\"(\");\n for (String field : fields) {\n s.append(field);\n s.append(\",\");\n }\n s.replace(s.length() - 1, s.length(), \"\");\n s.append(\")\");\n return s.toString();\n }",
"@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }",
"public String toString(){\n\t\treturn \"\"+getId();\n\t}",
"protected String createPKString(DbEntity entity) {\n List pk = entity.getPrimaryKey();\n\n if (pk == null || pk.size() == 0) {\n throw new CayenneRuntimeException(\n \"Entity '\" + entity.getName() + \"' has no PK defined.\");\n }\n\n StringBuffer buffer = new StringBuffer();\n buffer.append(\"CREATE PRIMARY KEY \").append(entity.getName()).append(\" (\");\n\n Iterator it = pk.iterator();\n\n // at this point we know that there is at least on PK column\n DbAttribute firstColumn = (DbAttribute) it.next();\n buffer.append(firstColumn.getName());\n\n while (it.hasNext()) {\n DbAttribute column = (DbAttribute) it.next();\n buffer.append(\", \").append(column.getName());\n }\n\n buffer.append(\")\");\n return buffer.toString();\n }",
"@Override\r\n public String toString() \r\n {\r\n return (String.format(\"#%d\\t %-20s\\t %-10s\\n\", this.studentId, this.studentName, this.studentMajor));\r\n }",
"protected String formatField() {\n \tif(!updated) return \"No record set.\";\n \t\n \tif(firstFieldP.getText() != null && lastFieldP.getText() != null) {\n\t \tfirstNameString = firstFieldP.getText();\n\t \tlastNameString = lastFieldP.getText();\n \t} else\t{\n \tfirstNameString = firstFieldC.getText();\n \tlastNameString = lastFieldC.getText();\n \ttribeString = tribeField.getText();\t\n \t}\n\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"<html><p align=center>\");\n \tsb.append(firstNameString);\n \tsb.append(\" \");\n \tsb.append(lastNameString);\n \tsb.append(\"<br>\");\n \tsb.append(tribeString);\n \tsb.append(\"</p></html>\");\n \t\n \treturn sb.toString(); \t\n }",
"public void formatFields() {\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.valueOf(this.getId());\n\t}",
"@Override\n public String toString() {\n return id.toString();\n }",
"public String toString()\r\n {\r\n return \"[\"+contactID+\",\"+firstName+\",\"+lastName+\",\"+phone+\",\"+address+\"]\";\r\n }",
"public List<String> keysAsString() {\n\t\treturn iter.getItems().stream().map(e -> new String(e)).collect(toList());\n\t}",
"@Override\n\t\tpublic String getPKFieldName() {\n\t\t\treturn null;\n\t\t}",
"public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}",
"Map<String, ?> attributesWithQuotes(boolean includePrimaryKey) {\n Adapter adapter = getAdapter();\n Map<String, String> quoted = new HashMap<String, String>();\n for (Map.Entry<String, Object> entry : attributes().entrySet()) {\n String name = entry.getKey();\n Column column = getColumnForAttribute(name);\n if (!column.isPrimary() || (column.isPrimary() && includePrimaryKey)) {\n quoted.put(Strings.underscore(name), adapter.quote(entry.getValue(), column));\n }\n }\n return quoted;\n }",
"public String toString(){\r\n\t\tString a, b, c, d;\r\n\r\n\t\ta = \"Book ID: \" + (new Integer(id)).toString() + \"\\n\";\r\n\t\tb = \"Book Title: \" + title + \"\\n\";\r\n\t\tc = \"Book Author: \" + author + \"\\n\";\r\n\t\td = \"Book Date: \" + dateToString(dateOfPublication) + \"\\n\";\r\n\t\t\r\n\t\treturn a + b + c + d;\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn Long.toString(id);\r\n\t}",
"private String joinIdList(List<Long> projects) {\n String bldr;\n if ( projects != null ) {\n bldr = projects.stream()\n .map(String::valueOf)\n .collect(Collectors.joining(\",\"));\n }\n else {\n throw new IllegalArgumentException( \"Null id list not allowed.\" );\n }\n\n return bldr;\n }",
"public List<ColumnMetaData> getPrimaryKeys();",
"public String[] getKeyNames() \n {\n DBField f[] = this.getKeyFields();\n String kn[] = new String[f.length];\n for (int i = 0; i < f.length; i++) {\n kn[i] = f[i].getName();\n }\n return kn;\n }",
"public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn Name;// + \"||\" + ID;// + \"-\" + ID;\n\t}",
"private final static String getKey( Integer id ) {\n\t\treturn \"\" + id ;\n\t}",
"@Override\n public String toString() {\n return toStringHelper(this)\n .addValue(id)\n .addValue(firstName)\n .addValue(lastName)\n .addValue(email)\n .addValue(activities)\n .addValue(password).toString();\n }",
"public String getStringRecord() {\n NumberFormat nf = new DecimalFormat(\"0000.00\");\n String delimiter = \",\";\n\n return String.format(\"%05d\", orderLineId) + delimiter + String.format(\"%05d\", orderId) + delimiter\n + String.format(\"%05d\", userId) + delimiter + String.format(\"%05d\", productId) + delimiter\n + String.format(\"%05d\", orderLineQuantity) + delimiter + nf.format(salesPrice)\n + System.getProperty(\"line.separator\");\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}",
"@Nonnull\n protected KeyExpression buildPrimaryKey() {\n return Key.Expressions.concat(\n Key.Expressions.recordType(),\n Key.Expressions.list(constituents.stream()\n .map(c -> Key.Expressions.field(c.getName()).nest(c.getRecordType().getPrimaryKey()))\n .collect(Collectors.toList())));\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"ID:\" + this.empid + \",NAME:\" + this.name;\r\n\t}",
"@Override\n public String toString() {\n return id.toString();\n }",
"public String getPrimaryKeyNames(int index) {\n return primaryKeyNames_.get(index);\n }",
"public String getPrimaryKeyNames(int index) {\n return primaryKeyNames_.get(index);\n }",
"@JsonValue\n\tpublic final String fieldId() {\n\t \treturn this.name().replace(\"_\", \".\");\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn Id +\" \"+ AdiSoyadi +\" \"+ eposta;\n\t}",
"@Override\n public String toString()\n {\n return super.toString()+id;\n }",
"public ArrayList<String> selectAllIdsStudentCourse() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n ArrayList<String> pkList = new ArrayList<>();\n\n try {\n Class.forName(Tools.MYSQL_JDBC_DRIVER);\n\n connection = DriverManager.getConnection(Tools.DB_URL, Tools.USERNAME, Tools.PASSWORD);\n\n statement = connection.createStatement();\n\n String query = \"SELECT CONCAT(STUDENT_ID, ',', COURSE_ID) AS PK FROM STUDENTS_COURSES;\";\n\n resultSet = statement.executeQuery(query);\n\n while (resultSet.next()) {\n String pk = resultSet.getString(\"PK\");\n pkList.add(pk);\n }\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n } finally {\n if (resultSet != null) {\n try {\n resultSet.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n if (statement != null) {\n try {\n statement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (connection != null) {\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return pkList;\n }",
"public String toSortString() {\r\n\t\t\r\n\t\t// to seperate between each attribute.\r\n\t\tString separator = (char) 0 + \"\"; \r\n\t\t\r\n\t\tString line = this.getLastName() + separator\r\n\t\t\t+this.getFirstName() + separator\t\t\t\r\n\t\t\t+this.getPhoneNumber();\r\n\t\t\r\n\t\treturn line;\r\n\t}",
"public String toString() {\r\n\t\treturn \"(\" + key + \",\" + value + \")\";\r\n\t}",
"@Override\n public String toString() {\n return id;\n }",
"public String toString()\r\n\t\t{\r\n\t\t\treturn firstName + \"#\" + familyName + \"#\" + ID + \"#\";\r\n\t\t}",
"String getId() {\r\n\t\treturn option.getId() + \".\" + field.getName();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"public String toString() {\n\n return String.format(\"ID:%d\\n%s %s \\n\" + \"Ph: %s\\n\" + \"Address: %s\",\n getId(),\n getFirstName(),getLastName(),\n getPhone(),\n getAddress()\n );\n }",
"static String assigneeListAsString(String[] p_userIds)\n {\n StringBuilder users = new StringBuilder();\n if (p_userIds != null && p_userIds.length > 0)\n {\n users.append(p_userIds[0]);\n for (int i = 1; i < p_userIds.length; i++)\n {\n users.append(\",\");\n users.append(p_userIds[i]);\n }\n }\n return users.toString();\n }",
"public String [] _truncatable_ids()\r\n {\r\n return _ids_list;\r\n }",
"private String addIDsFilmGenre(List<FilmGenre> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}",
"public String idToString() {\r\n StringBuffer buffer = new StringBuffer();\r\n buffer.append(\"IQ id(\");\r\n buffer.append(importQueueId);\r\n buffer.append(\").\");\r\n return buffer.toString();\r\n }",
"public String toString() {\n\t\tString dis =\"\";\n\t\tfor(int i=0;i<fields.size();i++) {\n\t\t\tif(i==fields.size()-1) {\n\t\t\t\tdis+=fields.toString();\n\t\t\t\t}\n\t\t\telse {\n\t\t\tdis+=fields.toString()+\" \";\n\t\t\t}\n\t\t}\t\n\t\treturn dis;\n\t}",
"private String getValues()\n\t{\n\t\tString values = \"(\";\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tvalues += \"'\" + fieldList.get(spot).getText() + \"'\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tvalues += \");\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalues += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn values;\n\t}",
"public String toString() {\n\t\treturn \" Student: \" + getName() + \"\\t ID: \" + getIDnumber();\t\n\t}",
"private static String convertToCsvField(\r\n int[] intFields)\r\n {\r\n String strUnion = \"\"; // Returned value\r\n \r\n int i; // Counter\r\n \r\n // We build the union of the fields\r\n \r\n for (i = 0; i < intFields.length; i++)\r\n {\r\n // We insert the comma as separator\r\n \r\n if (i > 0)\r\n {\r\n strUnion += ',';\r\n }\r\n \r\n // We add the i-field\r\n \r\n strUnion = strUnion.concat(String.valueOf(intFields[i]));\r\n }\r\n \r\n // We return the result\r\n \r\n return (strUnion);\r\n }"
] | [
"0.7855341",
"0.75910795",
"0.75910795",
"0.75910795",
"0.75910795",
"0.75910795",
"0.73439455",
"0.7311273",
"0.61367583",
"0.5993363",
"0.59309506",
"0.5703868",
"0.566737",
"0.5607769",
"0.55545896",
"0.5534492",
"0.5528293",
"0.5503922",
"0.54949325",
"0.5431539",
"0.54153556",
"0.5408322",
"0.5388586",
"0.5380211",
"0.5373429",
"0.5358756",
"0.5356707",
"0.53554684",
"0.5351225",
"0.53449273",
"0.5331954",
"0.5320564",
"0.53186",
"0.5304947",
"0.52936614",
"0.52869475",
"0.527937",
"0.522753",
"0.5226307",
"0.5213978",
"0.51994044",
"0.5197652",
"0.51844215",
"0.51816785",
"0.5172527",
"0.5167862",
"0.5166991",
"0.5164607",
"0.51561457",
"0.5150946",
"0.5149357",
"0.5132406",
"0.5130338",
"0.5122678",
"0.51130766",
"0.51078266",
"0.5104977",
"0.50935686",
"0.50912046",
"0.50906587",
"0.5089052",
"0.5082655",
"0.50820446",
"0.5076061",
"0.50738996",
"0.5070937",
"0.50683033",
"0.50677097",
"0.50594443",
"0.5055004",
"0.5050305",
"0.505",
"0.5049658",
"0.5030868",
"0.5029136",
"0.50260323",
"0.5016133",
"0.5016086",
"0.50155663",
"0.50119454",
"0.5011021",
"0.499489",
"0.49936166",
"0.49871796",
"0.49867192",
"0.498525",
"0.49720404",
"0.49711454",
"0.49632403",
"0.49575245",
"0.4957238",
"0.49537218",
"0.49536848",
"0.49518588",
"0.49480417",
"0.49471536",
"0.4936089",
"0.4933915",
"0.4933799",
"0.49325165"
] | 0.7498436 | 6 |
static comparators (obsolete use tools instead) // deprecated; instead use: AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.MinEffectiveStartUtcDtComparator | public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMinEffectiveStartUtcDtComparator()
{
return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMinEffectiveStartUtcDtComparator();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveStartDtComparatorNullsLower()\n {\n return EffectiveStartDtComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getScannedEffectiveUtcTsComparatorNullsLower()\n {\n return ScannedEffectiveUtcTsComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getActualEffectiveUtcTsComparatorNullsLower()\n {\n return ActualEffectiveUtcTsComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveStartUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveStartUtcDtComparator();\n }",
"public JwComparator<AcActionAutoCorrectedLog> getScannedEffectiveLocalTsComparatorNullsLower()\n {\n return ScannedEffectiveLocalTsComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getActualEffectiveLocalTsComparatorNullsLower()\n {\n return ActualEffectiveLocalTsComparatorNullsLower;\n }",
"public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveEndDtComparatorNullsLower()\n {\n return EffectiveEndDtComparatorNullsLower;\n }",
"public JwComparator<AcFossWebServiceMessage> getCreatedUtcTsComparatorNullsLower()\n {\n return CreatedUtcTsComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getCorrectedUtcTsComparatorNullsLower()\n {\n return CorrectedUtcTsComparatorNullsLower;\n }",
"public static JwComparator<AcWebServiceRequestData> getCreatedUtcTsComparator()\n {\n return AcWebServiceRequestDataTools.instance.getCreatedUtcTsComparator();\n }",
"public Comparator<PoiPoint> getPointStartTimeComparator() {\r\n \r\n class PointStartTimeComparator implements Comparator<PoiPoint> {\r\n public int compare(PoiPoint point1, PoiPoint point2) {\r\n return (point1.getStartTimeInt() - point2.getStartTimeInt());\r\n }\r\n }\r\n \r\n return new PointStartTimeComparator();\r\n }",
"public static JwComparator<AcDomesticCandidateRouteLeg> getFirstLegDepartureDayOffsetComparator()\n {\n return AcDomesticCandidateRouteLegTools.instance.getFirstLegDepartureDayOffsetComparator();\n }",
"public static JwComparator<AcDomesticCandidateRouteLeg> getArrivalLocalTmComparator()\n {\n return AcDomesticCandidateRouteLegTools.instance.getArrivalLocalTmComparator();\n }",
"public static JwComparator<AcGlobalDevice> getCreatedUtcTsComparator()\n {\n return AcGlobalDeviceTools.instance.getCreatedUtcTsComparator();\n }",
"public JwComparator<AcUpuTagSummaryVo> getDispatchYearComparatorNullsLower()\n {\n return DispatchYearComparatorNullsLower;\n }",
"public JwComparator<AcMobileDeviceTransmitSummaryVo> getMobileSessionCreatedUtcTsComparatorNullsLower()\n {\n return MobileSessionCreatedUtcTsComparatorNullsLower;\n }",
"public static JwComparator<AcDomesticCandidateRouteLeg> getDepartureLocalTmComparator()\n {\n return AcDomesticCandidateRouteLegTools.instance.getDepartureLocalTmComparator();\n }",
"public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMaxEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMaxEffectiveEndUtcDtComparator();\n }",
"public JwComparator<AcActionAutoCorrectedLog> getCreatedByComparatorNullsLower()\n {\n return CreatedByComparatorNullsLower;\n }",
"public JwComparator<AcGlobalDomesticActualMarketCache> getOriginAirportCodeComparatorNullsLower()\n {\n return OriginAirportCodeComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalClaim> getRouteDepartureLocalTsComparator()\n {\n return AcUspsInternationalClaimTools.instance.getRouteDepartureLocalTsComparator();\n }",
"public JwComparator<AcActionAutoCorrectedLog> getScannedTypeComparatorNullsLower()\n {\n return ScannedTypeComparatorNullsLower;\n }",
"public void testComparatorChainOnMinvaluedCompatator() {\n ComparatorChain chain = new ComparatorChain();\r\n chain.addComparator(\r\n new Comparator() {\r\n public int compare(Object a, Object b) {\r\n int result = ((Comparable)a).compareTo(b);\r\n if(result < 0) {\r\n return Integer.MIN_VALUE;\r\n } else if(result > 0) {\r\n return Integer.MAX_VALUE;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n }, true);\r\n\r\n assertTrue(chain.compare(new Integer(4), new Integer(5)) > 0); \r\n assertTrue(chain.compare(new Integer(5), new Integer(4)) < 0); \r\n assertTrue(chain.compare(new Integer(4), new Integer(4)) == 0); \r\n }",
"public JwComparator<AcActionAutoCorrectedLog> getActualAirportCodeComparatorNullsLower()\n {\n return ActualAirportCodeComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalClaim> getExpirationUtcTsComparator()\n {\n return AcUspsInternationalClaimTools.instance.getExpirationUtcTsComparator();\n }",
"public JwComparator<AcActionAutoCorrectedLog> getScannedAirportCodeComparatorNullsLower()\n {\n return ScannedAirportCodeComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getScannedCarrierCodeComparatorNullsLower()\n {\n return ScannedCarrierCodeComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getActualCarrierCodeComparatorNullsLower()\n {\n return ActualCarrierCodeComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getArrivalLocalTmComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getArrivalLocalTmComparator();\n }",
"public JwComparator<AcActionAutoCorrectedLog> getActualTypeComparatorNullsLower()\n {\n return ActualTypeComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getSourceGroupComparatorNullsLower()\n {\n return SourceGroupComparatorNullsLower;\n }",
"public JwComparator<AcAirportProgressSummaryVo> getDepartItemCountComparatorNullsLower()\n {\n return DepartItemCountComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getSourceTypeComparatorNullsLower()\n {\n return SourceTypeComparatorNullsLower;\n }",
"private DeadlineDate minimumOf(DeadlineDate firstDeadlineDate, DeadlineDate secondDeadlineDate) {\n if (firstDeadlineDate.compareTo(secondDeadlineDate) < 0) {\n return firstDeadlineDate;\n } else {\n return secondDeadlineDate;\n }\n }",
"public JwComparator<AcUpuTagSummaryVo> getOriginLocationCodeComparatorNullsLower()\n {\n return OriginLocationCodeComparatorNullsLower;\n }",
"public JwComparator<AcUpuTagSummaryVo> getOriginOfficeOfExchangeQualifierComparatorNullsLower()\n {\n return OriginOfficeOfExchangeQualifierComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getCreatedUtcTsComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getCreatedUtcTsComparator();\n }",
"public static JwComparator<AcUspsInternationalClaim> getConsignmentCompletionTsComparator()\n {\n return AcUspsInternationalClaimTools.instance.getConsignmentCompletionTsComparator();\n }",
"public JwComparator<AcActionAutoCorrectedLog> getCorrectedDataComparatorNullsLower()\n {\n return CorrectedDataComparatorNullsLower;\n }",
"public JwComparator<AcAirportProgressSummaryVo> getAirportCodeComparatorNullsLower()\n {\n return AirportCodeComparatorNullsLower;\n }",
"public static Comparator<VisualizarEncontroDTO> comparator() {\r\n\t\t\r\n\t\treturn (d1,d2) -> d1.dataInicio.compareTo(d2.dataInicio);\r\n\t}",
"public static JwComparator<AcDomesticCandidateRouteLeg> getOriginAirportCodeComparator()\n {\n return AcDomesticCandidateRouteLegTools.instance.getOriginAirportCodeComparator();\n }",
"void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);",
"public JwComparator<AcFossWebServiceMessage> getStackTraceComparatorNullsLower()\n {\n return StackTraceComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getDepartureLocalTmComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getDepartureLocalTmComparator();\n }",
"@Override\n\t\t\tpublic int compare(LiveAlarm object1, LiveAlarm object2) {\n\t\t\t\tlong start1 = object1.startT;\n\t\t\t\tlong start2 = object2.startT;\n\t\t\t\t\n\t\t\t\tif (start1 < start2) return -1;\n\t\t\t\tif (start1 == start2) return 0;\n\t\t\t\tif (start1 > start2) return 1;\n\t\t\t\t\n\t\t\t\treturn 0;//to suppress the compiler error;\n\t\t\t}",
"public JwComparator<AcAirportProgressSummaryVo> getArriveItemCountComparatorNullsLower()\n {\n return ArriveItemCountComparatorNullsLower;\n }",
"public JwComparator<AcGlobalDomesticActualMarketCache> getIdComparatorNullsLower()\n {\n return IdComparatorNullsLower;\n }",
"public JwComparator<AcFossWebServiceMessage> getLoginComparatorNullsLower()\n {\n return LoginComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getActualSubjectId1ComparatorNullsLower()\n {\n return ActualSubjectId1ComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalClaim> getScheduledPaymentDtComparator()\n {\n return AcUspsInternationalClaimTools.instance.getScheduledPaymentDtComparator();\n }",
"public JwComparator<AcActionAutoCorrectedLog> getScannedSubjectId1ComparatorNullsLower()\n {\n return ScannedSubjectId1ComparatorNullsLower;\n }",
"public JwComparator<AcAirportProgressSummaryVo> getLoadItemCountComparatorNullsLower()\n {\n return LoadItemCountComparatorNullsLower;\n }",
"public JwComparator<AcUpuTagSummaryVo> getOriginCountryCodeComparatorNullsLower()\n {\n return OriginCountryCodeComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getScannedSubjectId2ComparatorNullsLower()\n {\n return ScannedSubjectId2ComparatorNullsLower;\n }",
"public JwComparator<AcAirportProgressSummaryVo> getGiveItemCountComparatorNullsLower()\n {\n return GiveItemCountComparatorNullsLower;\n }",
"public JwComparator<AcUpuTagSummaryVo> getInsuredOrRegisteredIndicatorComparatorNullsLower()\n {\n return InsuredOrRegisteredIndicatorComparatorNullsLower;\n }",
"public JwComparator<AcGlobalDomesticActualMarketCache> getDestinationAirportCodeComparatorNullsLower()\n {\n return DestinationAirportCodeComparatorNullsLower;\n }",
"public Date getEarliestStartDate();",
"public JwComparator<AcAirportProgressSummaryVo> getTakeItemCountComparatorNullsLower()\n {\n return TakeItemCountComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getActualSubjectId2ComparatorNullsLower()\n {\n return ActualSubjectId2ComparatorNullsLower;\n }",
"public JwComparator<AcAirportProgressSummaryVo> getDepartItemKilogramsComparatorNullsLower()\n {\n return DepartItemKilogramsComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getIdComparatorNullsLower()\n {\n return IdComparatorNullsLower;\n }",
"public JwComparator<AcUpuTagSummaryVo> getDispatchSerialNumberComparatorNullsLower()\n {\n return DispatchSerialNumberComparatorNullsLower;\n }",
"public JwComparator<AcMobileDeviceTransmitSummaryVo> getMobileSessionCreatedByComparatorNullsLower()\n {\n return MobileSessionCreatedByComparatorNullsLower;\n }",
"protected Comparator<?> getInitialSortOrderComparator() {\n MetaData md = PmTableImpl.this.getOwnMetaDataWithoutPmInitCall();\n return (md.initialBeanSortComparatorClass != null)\n ? (Comparator<?>)ClassUtil.newInstance(md.initialBeanSortComparatorClass)\n : null;\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveEndUtcDtComparator();\n }",
"public JwComparator<AcAirportProgressSummaryVo> getDeliverItemCountComparatorNullsLower()\n {\n return DeliverItemCountComparatorNullsLower;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getActualPostCodeComparatorNullsLower()\n {\n return ActualPostCodeComparatorNullsLower;\n }",
"public JwComparator<AcUpuTagSummaryVo> getDestinationOfficeOfExchangeQualifierComparatorNullsLower()\n {\n return DestinationOfficeOfExchangeQualifierComparatorNullsLower;\n }",
"public Date getMinimumDate() {\n/* */ Date result;\n/* 641 */ Range range = getRange();\n/* 642 */ if (range instanceof DateRange) {\n/* 643 */ DateRange r = (DateRange)range;\n/* 644 */ result = r.getLowerDate();\n/* */ } else {\n/* */ \n/* 647 */ result = new Date((long)range.getLowerBound());\n/* */ } \n/* 649 */ return result;\n/* */ }",
"@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}",
"public JwComparator<AcAirportProgressSummaryVo> getLoadItemKilogramsComparatorNullsLower()\n {\n return LoadItemKilogramsComparatorNullsLower;\n }",
"public JwComparator<AcAirportProgressSummaryVo> getReceiveItemCountComparatorNullsLower()\n {\n return ReceiveItemCountComparatorNullsLower;\n }",
"public JwComparator<AcMobileDeviceTransmitSummaryVo> getMobileDeviceNameComparatorNullsLower()\n {\n return MobileDeviceNameComparatorNullsLower;\n }",
"public final native DateTime getUpdatedMin() /*-{\n return this.getUpdatedMin();\n }-*/;",
"public static Comparator<UnitProgressSearchVO> getComparator(final InServiceProgressDateComparator... multipleOptions) {\n\t\treturn new Comparator<UnitProgressSearchVO>() {\n\t\t\tpublic int compare(UnitProgressSearchVO o1, UnitProgressSearchVO o2) {\n\t\t\t\tfor(InServiceProgressDateComparator option : multipleOptions) {\n\t\t\t\t\tint result = option.compare(o1, o2);\n\t\t\t\t\tif(result != 0) {\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t};\n\t}",
"public JwComparator<AcActionAutoCorrectedLog> getScannedPostCodeComparatorNullsLower()\n {\n return ScannedPostCodeComparatorNullsLower;\n }",
"public JwComparator<AcFossWebServiceMessage> getProcessingStatusComparatorNullsLower()\n {\n return ProcessingStatusComparatorNullsLower;\n }",
"public static java.lang.Object min(java.util.Collection arg0, java.util.Comparator arg1)\n { return null; }",
"protected Comparator<VirtualMachine> makeDecreasingVirtualMachineComparator() {\n return new Comparator<VirtualMachine>() {\n Comparator<Machine> cap_comp = makeDecreasingMachineComparator();\n public int compare(VirtualMachine m0, VirtualMachine m1) {\n int diff = cap_comp.compare(m0, m1);\n if (diff == 0) {\n diff = m0.getJobID() - m1.getJobID();\n if (diff == 0) {\n diff = m0.getIndex() - m1.getIndex();\n }\n }\n return diff;\n }\n };\n }",
"public JwComparator<AcActionAutoCorrectedLog> getInputChannelIdComparatorNullsLower()\n {\n return InputChannelIdComparatorNullsLower;\n }",
"public interface StartTreeNodeComparator\n{\n public boolean compare (StartTreeNode node);\n}",
"public JwComparator<AcMobileDeviceTransmitSummaryVo> getMobileSessionVersionComparatorNullsLower()\n {\n return MobileSessionVersionComparatorNullsLower;\n }",
"@Override\n\tpublic int compare(ExecutionNode o1, ExecutionNode o2) {\n\t\t// compare start times\n\t\tTimePoint s1 = o1.getInterval().getStartTime();\n\t\tTimePoint s2 = o2.getInterval().getStartTime();\n\t\t// compare lower bounds\n\t\treturn s1.getLowerBound() < s2.getLowerBound() ? -1 : s1.getLowerBound() > s2.getLowerBound() ? 1 : 0;\n\t}",
"public JwComparator<AcFossWebServiceMessage> getMessageComparatorNullsLower()\n {\n return MessageComparatorNullsLower;\n }",
"public JwComparator<AcFossWebServiceMessage> getIdComparatorNullsLower()\n {\n return IdComparatorNullsLower;\n }",
"public void compareStartEndDate() {\n String[] startDateArray = startDate.split(dateOperator);\n String[] endDateArray = endDate.split(dateOperator);\n \n // Compares year first, then month, and then day.\n if (Integer.parseInt(startDateArray[2]) > Integer.parseInt(endDateArray[2])) {\n endDate = endDateArray[0] +\"/\"+ endDateArray[1] +\"/\"+ startDateArray[2];\n } else if (Integer.parseInt(startDateArray[2]) == Integer.parseInt(endDateArray[2])) {\n if (Integer.parseInt(startDateArray[1]) > Integer.parseInt(endDateArray[1])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n } else if (Integer.parseInt(startDateArray[1]) == Integer.parseInt(endDateArray[1]) && \n Integer.parseInt(startDateArray[0]) > Integer.parseInt(endDateArray[0])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n }\n }\n }",
"public static JwComparator<AcUspsInternationalClaim> getConsignmentOriginComparator()\n {\n return AcUspsInternationalClaimTools.instance.getConsignmentOriginComparator();\n }",
"public JwComparator<AcUpuTagSummaryVo> getMailClassCodeComparatorNullsLower()\n {\n return MailClassCodeComparatorNullsLower;\n }",
"private ArrayList<Task> sortByDate(ArrayList<Task> toSort) {\n ArrayList<Task> sorted = new ArrayList<>();\n\n toSort = removeNoTimeTask(toSort);\n\n int size = toSort.size();\n for (int i = 0; i < size; i++) {\n Date earliest = new Date(Long.MAX_VALUE);\n int earliestIndex = -1;\n for (int j = 0; j < toSort.size(); j++) {\n if (toSort.get(j).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toSort.get(j);\n if (temp.getTime().before(earliest)) {\n earliest = temp.getTime();\n earliestIndex = j;\n }\n } else if (toSort.get(j).getClass().equals(Event.class)) {\n Event temp = (Event) toSort.get(j);\n if (temp.getTime().before(earliest)) {\n earliest = temp.getTime();\n earliestIndex = j;\n }\n } else if (toSort.get(j).getClass().equals(Period.class)) {\n Period temp = (Period) toSort.get(j);\n if (temp.getStart().before(earliest)) {\n earliest = temp.getStart();\n earliestIndex = j;\n }\n }\n }\n\n sorted.add(toSort.get(earliestIndex));\n toSort.remove(earliestIndex);\n }\n return sorted;\n }",
"public JwComparator<AcAirportProgressSummaryVo> getReceiveItemKilogramsComparatorNullsLower()\n {\n return ReceiveItemKilogramsComparatorNullsLower;\n }",
"protected abstract Comparator<UsageInfo> makeUsageInfoComparator();",
"public int compareWithDate(AbstractEntity objectCompare){\n\t\tif(this.fechaUltimaModificacion!=null){\n\t\t\tif(objectCompare.fechaUltimaModificacion!=null)\n\t\t\t\treturn this.fechaUltimaModificacion.compareTo(objectCompare.fechaUltimaModificacion);\n\t\t\telse\n\t\t\t\treturn this.fechaUltimaModificacion.compareTo(objectCompare.fechaCreacion);\n\t\t}\n\t\telse if(objectCompare.fechaUltimaModificacion!=null)\n\t\t\treturn this.fechaCreacion.compareTo(objectCompare.fechaUltimaModificacion);\n\t\telse\n\t\t\treturn this.fechaCreacion.compareTo(objectCompare.fechaCreacion);\n\t\t\n\t}",
"public JwComparator<AcActionAutoCorrectedLog> getActualSubjectId3ComparatorNullsLower()\n {\n return ActualSubjectId3ComparatorNullsLower;\n }",
"public abstract BoundCodeDt<?> getComparatorElement();",
"public JwComparator<AcUpuTagSummaryVo> getDestinationLocationCodeComparatorNullsLower()\n {\n return DestinationLocationCodeComparatorNullsLower;\n }",
"@Override\n\t\t\t\tpublic int compare(PartnerDemand lhs, PartnerDemand rhs) {\n\t\t\t\t\treturn rhs.getCreatedAt().compareTo(lhs.getCreatedAt());\n\t\t\t\t}",
"public static JwComparator<AcWebServiceRequestData> getDataComparator()\n {\n return AcWebServiceRequestDataTools.instance.getDataComparator();\n }",
"public final native DateTime getMinimumStartTime() /*-{\n return this.getMinimumStartTime();\n }-*/;"
] | [
"0.74244606",
"0.7145721",
"0.7039872",
"0.70378286",
"0.6626445",
"0.6597624",
"0.6526529",
"0.6526228",
"0.6482612",
"0.6428585",
"0.6338348",
"0.63211787",
"0.62417483",
"0.60095924",
"0.59961796",
"0.5990324",
"0.59853286",
"0.59519273",
"0.5942852",
"0.58681315",
"0.57955676",
"0.57933646",
"0.57786435",
"0.575317",
"0.5734683",
"0.57312346",
"0.57291186",
"0.5720114",
"0.5708783",
"0.570852",
"0.5694067",
"0.5659716",
"0.56555396",
"0.56110185",
"0.559556",
"0.5574662",
"0.55726486",
"0.55530256",
"0.55330896",
"0.55296135",
"0.5501589",
"0.54897493",
"0.5478499",
"0.547436",
"0.5472686",
"0.54639125",
"0.54577875",
"0.54129976",
"0.5411181",
"0.5408531",
"0.54057866",
"0.53993183",
"0.5388931",
"0.5383158",
"0.53725",
"0.5355815",
"0.53513914",
"0.53505075",
"0.5338487",
"0.53362143",
"0.5332686",
"0.53307575",
"0.5329659",
"0.53271985",
"0.53193957",
"0.528097",
"0.5277202",
"0.52637655",
"0.5258153",
"0.52429354",
"0.52351034",
"0.52263284",
"0.52212536",
"0.5212295",
"0.5211902",
"0.5171553",
"0.5167419",
"0.5147084",
"0.5144095",
"0.5143593",
"0.51413333",
"0.5125917",
"0.51256895",
"0.51202005",
"0.51195437",
"0.5107925",
"0.5107332",
"0.51036143",
"0.5102803",
"0.5093642",
"0.5092925",
"0.50817126",
"0.5057264",
"0.50503755",
"0.5048041",
"0.5046955",
"0.5041759",
"0.50382453",
"0.5023737",
"0.50228626"
] | 0.8328737 | 0 |
deprecated; instead use: AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.MaxEffectiveEndUtcDtComparator | public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMaxEffectiveEndUtcDtComparator()
{
return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMaxEffectiveEndUtcDtComparator();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveEndUtcDtComparator();\n }",
"public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveEndDtComparatorNullsLower()\n {\n return EffectiveEndDtComparatorNullsLower;\n }",
"public Date getMaximumDate() {\n/* */ Date result;\n/* 689 */ Range range = getRange();\n/* 690 */ if (range instanceof DateRange) {\n/* 691 */ DateRange r = (DateRange)range;\n/* 692 */ result = r.getUpperDate();\n/* */ } else {\n/* */ \n/* 695 */ result = new Date((long)range.getUpperBound());\n/* */ } \n/* 697 */ return result;\n/* */ }",
"public final native void setUpdatedMax(DateTime updatedMax) /*-{\n this.setUpdatedMax(updatedMax);\n }-*/;",
"public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newEffectiveEndDtColumn()\n {\n return newEffectiveEndDtColumn(\"Effective End Dt\");\n }",
"public static JwComparator<AcCustodySummaryVo> getItemLastAirportCodeComparator()\n {\n return AcCustodySummaryVoTools.instance.getItemLastAirportCodeComparator();\n }",
"public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMinEffectiveStartUtcDtComparator()\n {\n return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMinEffectiveStartUtcDtComparator();\n }",
"public java.lang.String getFvalueRangeDateMax() {\n return fvalueRangeDateMax;\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveStartUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveStartUtcDtComparator();\n }",
"public LocalDate getMaxDate() {\r\n return maxDate;\r\n }",
"public void setFvalueRangeDateMax(java.lang.String fvalueRangeDateMax) {\n this.fvalueRangeDateMax = fvalueRangeDateMax;\n }",
"private AttributeDetails maxDequeIterator(AttributeDetails valObject) {\n if (valueRemoved != null) {\n for (Iterator<AttributeDetails> iterator = maxDeque.descendingIterator(); iterator.hasNext();) {\n AttributeDetails possibleMaxValue = iterator.next();\n if (possibleMaxValue.getValue() < valObject.getValue()\n || possibleMaxValue.getValue() <= valueRemoved.getValue()) {\n if (possibleMaxValue.getValue() < valObject.getValue()) {\n iterator.remove();\n } else if (valueRemoved.equals(possibleMaxValue)) {\n // If expired value is in maxDeque, it must be removed\n iterator.remove();\n }\n } else {\n break;\n }\n }\n } else {\n for (Iterator<AttributeDetails> iterator = maxDeque.descendingIterator(); iterator.hasNext();) {\n if (iterator.next().getValue() < valObject.getValue()) {\n iterator.remove();\n } else {\n break;\n }\n }\n }\n valObject.setMaxThreshold();\n maxDeque.addLast(valObject);\n return maxDeque.peek();\n }",
"public T max() {return max(comparator);}",
"protected Comparator<VirtualMachine> makeDecreasingVirtualMachineComparator() {\n return new Comparator<VirtualMachine>() {\n Comparator<Machine> cap_comp = makeDecreasingMachineComparator();\n public int compare(VirtualMachine m0, VirtualMachine m1) {\n int diff = cap_comp.compare(m0, m1);\n if (diff == 0) {\n diff = m0.getJobID() - m1.getJobID();\n if (diff == 0) {\n diff = m0.getIndex() - m1.getIndex();\n }\n }\n return diff;\n }\n };\n }",
"public void calculateMaxDateForReport() {\r\n\t\ttry {\r\n\t\t\tthis.maxDateReport = ControladorFechas.sumarMeses(\r\n\t\t\t\t\tthis.startDateReport, Constantes.NUMBER_MONTHS_REPORT);\r\n\t\t\tif (this.endDateReport != null\r\n\t\t\t\t\t&& (this.endDateReport.before(this.startDateReport) || this.endDateReport\r\n\t\t\t\t\t\t\t.after(this.maxDateReport))) {\r\n\t\t\t\tthis.endDateReport = null;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}",
"public M csmiUpdateTimeEnd(Object end){this.put(\"csmiUpdateTimeEnd\", end);return this;}",
"public JwComparator<AcActionAutoCorrectedLog> getActualEffectiveUtcTsComparatorNullsLower()\n {\n return ActualEffectiveUtcTsComparatorNullsLower;\n }",
"public int getMaxRangeEnd() {\n return maximumViewableRange.getTo();\n }",
"public M csseUpdateTimeEnd(Object end){this.put(\"csseUpdateTimeEnd\", end);return this;}",
"public TransferObject selectMax(String tableName, String maxField){\r\n\t long start, end;\r\n\t start = (new java.util.Date()).getTime(); \r\n\t Cursor c = null;\r\n\t\ttry {\r\n\t c = getDb().query(\r\n\t \ttableName, \r\n\t \tnew String[]{\"max( \" + maxField + \" )\"}, \r\n\t \tnull, \r\n\t \tnull, \r\n\t \tnull, \r\n\t \tnull,\r\n\t null); \r\n\t c.moveToFirst(); \r\n\t if(!c.isAfterLast()){ \r\n\t \tString value = c.getString( 0 );\r\n\t \tArrayList<FieldTO> fieldsResult = new ArrayList<FieldTO>();\r\n\t \tfieldsResult.add(new FieldTO(\"max\", value));\r\n\t \tTransferObject bean = new TransferObject(tableName, fieldsResult, TransferObject.READ_TYPE);\r\n\t return bean; \r\n\t } \r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}finally{\r\n\t\t\t if(c!=null){c.close();}\r\n\t end = (new java.util.Date()).getTime();\r\n\t Log.i(\"GPALOG\", \"Time to query: \" + (end - start) + \" ms\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public void validateEndDate(Date value)\n {\n \n if (value != null)\n {\n OADBTransaction transaction = getOADBTransaction();\n\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, you cannot compare \n // oracle.jbo.domain.Date objects directly. Instead, convert the value to \n // a long as shown.\n \n long sysdate = transaction.getCurrentDBDate().dateValue().getTime();\n long endDate = value.dateValue().getTime();\n\n if (endDate < sysdate)\n { \n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"EndDate\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_END_DATE_PAST\"); // Message name\n } \n }\n\n }",
"@ApiModelProperty(value = \"End of the range\")\n public String getDateEnd() {\n return dateEnd;\n }",
"public static java.lang.Object max(java.util.Collection arg0, java.util.Comparator arg1)\n { return null; }",
"@Test\n public void testGetMaxEndDate() {\n ApplicationInfo.info(\n DatabaseHelperTest.class, ApplicationInfo.TEST, ApplicationInfo.UNIT_TEST, \"testBeginsWithEmpty\");\n // Date expResult = null;\n Date result = DatabaseHelper.getMaxEndDate();\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+1\"));\n cal.setTime(result);\n assertEquals(3000, cal.get(Calendar.YEAR));\n assertEquals(Calendar.DECEMBER, cal.get(Calendar.MONTH));\n assertEquals(31, cal.get(Calendar.DATE));\n }",
"public double getMaxValue(double defaultMax, Date start, Date end)\n\t{\n\t\tdouble max = Double.NEGATIVE_INFINITY;\n\t\tfor(TimedVariable tv : vars)\n\t\t{\n\t\t\tDate t = tv.getTime();\n\t\t\tif (start != null && start.compareTo(t) > 0)\n\t\t\t\tcontinue;\n\t\t\tif (end != null && end.compareTo(t) < 0)\n\t\t\t\tcontinue;\n\t\t\tint fl = tv.getFlags();\n\t\t\tif ((fl & IFlags.IS_MISSING) == 0)\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tdouble d = tv.getDoubleValue();\n\t\t\t\t\tif (d > max)\n\t\t\t\t\t\tmax = d;\n\t\t\t\t}\n\t\t\t\tcatch(NoConversionException ex) {}\n\t\t\t}\n\t\t}\n\t\treturn max == Double.NEGATIVE_INFINITY ? defaultMax : max;\n\t}",
"public int getMaxDeadline() {\n\t\treturn this.maxDeadline;\n\t}",
"private StreamEvent findIfActualMax(AttributeDetails latestEvent) {\n int indexCurrentMax = valueStack.indexOf(currentMax);\n int postBound = valueStack.indexOf(latestEvent) - indexCurrentMax;\n // If latest event is at a distance greater than maxPostBound from max, max is not eligible to be sent as output\n if (postBound > maxPostBound) {\n currentMax.notEligibleForRealMax();\n return null;\n }\n // If maxPreBound is 0, no need to check preBoundChange. Send output with postBound value\n if (maxPreBound == 0) {\n StreamEvent outputEvent = eventStack.get(indexCurrentMax);\n complexEventPopulater.populateComplexEvent(outputEvent, new Object[] { \"max\", 0, postBound });\n currentMax.sentOutputAsRealMax();\n return outputEvent;\n }\n int preBound = 1;\n double dThreshold = currentMax.getValue() - currentMax.getValue() * preBoundChange / 100;\n while (preBound <= maxPreBound && indexCurrentMax - preBound >= 0) {\n if (valueStack.get(indexCurrentMax - preBound).getValue() <= dThreshold) {\n StreamEvent outputEvent = eventStack.get(indexCurrentMax);\n complexEventPopulater.populateComplexEvent(outputEvent, new Object[] { \"max\", preBound, postBound });\n currentMax.sentOutputAsRealMax();\n return outputEvent;\n }\n ++preBound;\n }\n // Completed iterating through maxPreBound older events. No events which satisfy preBoundChange condition found.\n // Therefore max is not eligible to be sent as output.\n currentMax.notEligibleForRealMax();\n return null;\n }",
"com.google.protobuf.Int64ValueOrBuilder getDeliveryDateAfterOrBuilder();",
"public static JwComparator<AcUspsInternationalClaim> getExpirationUtcTsComparator()\n {\n return AcUspsInternationalClaimTools.instance.getExpirationUtcTsComparator();\n }",
"public Date getDtEnd() {\r\n return dtEnd;\r\n }",
"public final native DateTime getMaximumStartTime() /*-{\n return this.getMaximumStartTime();\n }-*/;",
"public String getTradeAmtRangeMax( ) {\n\t\treturn this.tradeAmtRangeMax;\n\t}",
"private int findEndIndex(){\n\t\tint end=models.size()-1;\n\t\tfor(int i=0;i<modelNames.size();i++){\n\t\t\tif(Integer.parseInt(modelNames.get(i).substring(0,8))>this.date_end)\n\t\t\t{end=i-1;break;}\n\t\t}\n\t\treturn end;\n\t}",
"private String getCriterionMaxValueValue()\n {\n return getConvertedValue(myCriterionMaxValue.get());\n }",
"com.google.protobuf.Int64Value getDeliveryDateAfter();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndDate();",
"protected boolean isInYearEndUpperBound(Date runDate, String yearEndPeriodUpperBound, String lastDayOfFiscalYear) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMdd\");\n String today = sdf.format(runDate);\n\n String month = StringUtils.mid(lastDayOfFiscalYear, 0, 2);\n String date = StringUtils.mid(lastDayOfFiscalYear, 2, 2);\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.MONTH, Integer.parseInt(month) - 1);\n calendar.set(Calendar.DATE, Integer.parseInt(date));\n calendar.add(Calendar.DATE, 1);\n String firstDayOfNewFiscalYear = sdf.format(calendar.getTime());\n\n return today.compareTo(yearEndPeriodUpperBound) <= 0 && today.compareTo(firstDayOfNewFiscalYear) >= 0;\n }",
"public M csmiBirthdayEnd(Object end){this.put(\"csmiBirthdayEnd\", end);return this;}",
"public void setDtEnd(Date dtEnd) {\r\n this.dtEnd = dtEnd;\r\n }",
"protected final Comparable getMax()\r\n {\r\n return myMax;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastStatusChangeDate();",
"public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualEffectiveUtcTsColumn()\n {\n return newActualEffectiveUtcTsColumn(\"Actual Effective Utc Ts\");\n }",
"public M csolAddTimeEnd(Object end){this.put(\"csolAddTimeEnd\", end);return this;}",
"public Observable<LocalDate> getMaxDateAsync() {\n return getMaxDateWithServiceResponseAsync().map(new Func1<ServiceResponse<LocalDate>, LocalDate>() {\n @Override\n public LocalDate call(ServiceResponse<LocalDate> response) {\n return response.body();\n }\n });\n }",
"public Date getMaxWindowObstimeForId(String radarId, Date lowerTimeBound,\n Date topOfHourMark) {\n\n Date maxRegionDate = getDateByNamedQueryAndNamedParam(\n Dparadar.SELECT_MAX_OBSTIME_FROM_DPARADARID,\n new String[] { \"radarId\", \"lowerTimeBound\", \"topOfHourMark\" },\n new Object[] { radarId, lowerTimeBound, topOfHourMark });\n return maxRegionDate;\n }",
"public void setEndDateTime(java.util.Date endDateTime) {\n this.endDateTime = endDateTime;\n }",
"public long getEndTimestamp();",
"@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}",
"public void setTradeAmtRangeMax(String tradeAmtRangeMax) {\n\t\tthis.tradeAmtRangeMax = tradeAmtRangeMax;\n\t}",
"public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }",
"Date getEndDate();",
"Date getEndDate();",
"LocalDate getCollectionEndDate();",
"public StringDt getMaxElement() { \n\t\tif (myMax == null) {\n\t\t\tmyMax = new StringDt();\n\t\t}\n\t\treturn myMax;\n\t}",
"OffsetDateTime usageEnd();",
"public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveStartDtComparatorNullsLower()\n {\n return EffectiveStartDtComparatorNullsLower;\n }",
"public static DateTime getMax() {\n DateTime maxDateTime = null;\n\n //It is guaranteed that there is no exception thrown\n try {\n maxDateTime = new DateTime(MAX_TIME);\n } catch (IllegalValueException e) {\n }\n return maxDateTime;\n }",
"public Date getEndDate();",
"public Date getEndDate();",
"public double getYRangeMax() {\n return yRangeMax;\n }",
"public M csmiStatusMax(Object max){this.put(\"csmiStatusMax\", max);return this;}",
"public LocalDateTime getEndDate();",
"@ApiModelProperty(value = \"Model lifeline end (milliseconds UTC), MAX_LONG for live data\")\n public Long getLifeEnd() {\n return lifeEnd;\n }",
"public StrColumn getDateEndProcessing() {\n return delegate.getColumn(\"date_end_processing\", DelegatingStrColumn::new);\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getDepartureLocalTmComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getDepartureLocalTmComparator();\n }",
"public static JwComparator<AcDomesticCandidateRouteLeg> getDepartureLocalTmComparator()\n {\n return AcDomesticCandidateRouteLegTools.instance.getDepartureLocalTmComparator();\n }",
"public void setYRangeMax(double yRangeMax) {\n this.yRangeMax = yRangeMax;\n }",
"public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }",
"protected Comparator<PhysicalMachine> makeDecreasingPhysicalMachineComparator() {\n return new Comparator<PhysicalMachine>() {\n Comparator<Machine> cap_comp = makeDecreasingMachineComparator();\n public int compare(PhysicalMachine m0, PhysicalMachine m1) {\n int diff = cap_comp.compare(m0, m1);\n if (diff == 0) {\n diff = m0.getID() - m1.getID();\n }\n return diff;\n }\n };\n }",
"public Long getDispatchtimemax() {\r\n return dispatchtimemax;\r\n }",
"long getEndDate();",
"long getEndDate();",
"public Date getEndDate() {\r\n return endDate;\r\n }",
"public Date getEndDate() {\r\n return endDate;\r\n }",
"DbQuery setEndAtFilter(long value) {\n return setEndAtFilter((double) value);\n }",
"Double maxOfDisplacements(ArrayList<Double> dispA){\r\n\t\tObject minvalobj = Collections.min(dispA);\r\n\t\tObject maxvalobj = Collections.max(dispA);\r\n\t\tIJ.log(\"Max displacement\" + maxvalobj);\r\n\t\tIJ.log(\"Min displacement\" + minvalobj);\r\n\t\tdouble minval = (Double) minvalobj;\r\n\t\tdouble maxval = (Double) maxvalobj;\t\t\r\n\t\tdouble maxdisp = maxval;\r\n\t\tif (Math.abs(maxval) < Math.abs(minval)) \r\n\t\t\tmaxdisp = minval;\r\n\t\telse\r\n\t\t\tmaxdisp = maxval;\t\t\r\n\t\treturn maxdisp;\r\n\t}",
"public void setYRangeMax(String yRangeMax) {\n setYRangeMax(Double.parseDouble(yRangeMax));\n }",
"public M csmiMemberIdMax(Object max){this.put(\"csmiMemberIdMax\", max);return this;}",
"MinmaxEntity getEnd();",
"public LocalDateTime getEndDate() {\n return endDate;\n }",
"public static JwComparator<AcDomesticCandidateRouteLeg> getFirstLegDepartureDayOffsetComparator()\n {\n return AcDomesticCandidateRouteLegTools.instance.getFirstLegDepartureDayOffsetComparator();\n }",
"private final void m43720b() {\n m43714a().edit().remove(ManagerWebServices.PARAM_LAST_ACTIVITY_DATE).apply();\n }",
"public long getMaxActiveTime()\n {\n if (_maxActiveTime > Long.MAX_VALUE / 2)\n return -1;\n else\n return _maxActiveTime;\n }",
"private long getAbsMax() {\n return Math.max(Math.abs(Visualizer.getLowerBound().get()),\n Visualizer.getUpperBound().get());\n }",
"public java.util.Calendar getEndExecDate()\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 return null;\n }\n return target.getCalendarValue();\n }\n }",
"public void setMaxActiveTime(Period maxActiveTime)\n {\n long period = maxActiveTime.getPeriod();\n \n if (period < 0)\n _maxActiveTime = Long.MAX_VALUE / 2;\n else if (period == 0)\n _maxActiveTime = 1000L;\n else\n _maxActiveTime = period;\n }",
"public void setEndDate(java.sql.Date newEndDate) {\n\tendDate = newEndDate;\n}",
"public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }",
"public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }",
"@ApiModelProperty(value = \"The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.\")\n public String getEndTime() {\n return endTime;\n }",
"public final native void setMaximumStartTime(DateTime maximumStartTime) /*-{\n this.setMaximumStartTime(maximumStartTime);\n }-*/;",
"public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }",
"public M csseAddTimeEnd(Object end){this.put(\"csseAddTimeEnd\", end);return this;}",
"public static Date getMaxDate() {\n Calendar cal = Calendar.getInstance();\n cal.set(2036, 12, 28, 23, 59, 59);\n return cal.getTime();\n }",
"public double getMaxRange() {\n return maxRange;\n }",
"public Date getEndDate() {\n return endDate;\n }",
"public Date getEndDate() {\n return endDate;\n }",
"public Date getEndDate() {\n return endDate;\n }"
] | [
"0.66476405",
"0.6151087",
"0.5503506",
"0.54757667",
"0.5473872",
"0.5421959",
"0.5212425",
"0.51714927",
"0.5076166",
"0.4970715",
"0.49688968",
"0.48853266",
"0.48461482",
"0.48260477",
"0.48159817",
"0.47833148",
"0.47654536",
"0.47568336",
"0.47116855",
"0.4708414",
"0.47001904",
"0.4694133",
"0.46882486",
"0.46666896",
"0.46555018",
"0.4646311",
"0.46441364",
"0.46259695",
"0.46195152",
"0.4618351",
"0.46071526",
"0.46003067",
"0.45886305",
"0.45859483",
"0.4582714",
"0.45810714",
"0.45786226",
"0.45755935",
"0.4549833",
"0.45407438",
"0.45339584",
"0.45307124",
"0.4520216",
"0.45136812",
"0.45059338",
"0.4500107",
"0.44933596",
"0.449104",
"0.44556043",
"0.44498205",
"0.4449413",
"0.44483647",
"0.44457516",
"0.44457516",
"0.44440347",
"0.44377553",
"0.44297698",
"0.44289243",
"0.44217476",
"0.4421661",
"0.4421661",
"0.44200778",
"0.44118282",
"0.44107017",
"0.44106376",
"0.44058844",
"0.44037122",
"0.44000342",
"0.43982303",
"0.43946624",
"0.43940562",
"0.4383627",
"0.43792138",
"0.43792138",
"0.4376162",
"0.4376162",
"0.43712515",
"0.43646964",
"0.43622565",
"0.43513575",
"0.43502423",
"0.4347918",
"0.4344424",
"0.434253",
"0.43375477",
"0.43235806",
"0.43213508",
"0.43123564",
"0.43107393",
"0.43082952",
"0.43082952",
"0.43069285",
"0.43042532",
"0.4303549",
"0.4302947",
"0.42879856",
"0.42834395",
"0.42822418",
"0.42822418",
"0.42822418"
] | 0.8036597 | 0 |
TODO Autogenerated method stub builder p = new housebuilder(2,4); //Here We unable to handle single work that means unable to give only one parameter | public static void main(String[] args) {
builder p = new housebuilder().setBuilddoors(5).setBuildwalls(1).gethouse();//Where as Here we have the flexibility to pass only required fields as parameters
System.out.println(p);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n House house=new House.HouseBuilder().build();\n\n House house1=new House.HouseBuilder()\n .addGarage(true)\n .addGarden(new Garden())\n .addRooms(5)\n .addWindows(10)\n .build();\n\n\n\n\n House houseWithoutGarden=new House.HouseBuilder().addGarage(true).addRooms(5).addWindows(10).build();\n\n }",
"private House(HouseBuilder builder) {\n\t\tthis.surface = builder.surface;\n\t\tthis.rooms = builder.rooms;\n\t\tthis.bathrooms = builder.bathrooms;\n\t\tthis.floors = builder.floors;\n\t\tthis.garage = builder.garage;\n\t\tthis.yard = builder.yard;\n\t}",
"public static void main(String[] args) {\n SpecifyHouseBuilder specifyHouseBuilder = new SpecifyHouseBuilder();\n\n //Directer\n BuildDirectory buildDirectory = new BuildDirectory(specifyHouseBuilder);\n BuildDirectorMachel buildDirectorMachel = new BuildDirectorMachel(specifyHouseBuilder);\n\n\n House house = buildDirectory.constructHouse();\n House house1 = buildDirectorMachel.constructHouse();\n }",
"Builder addProducer(Person.Builder value);",
"@Override\n\tpublic void contribute(Builder builder) {\n\n\t\tbuilder.withDetail(\"yayay\", \"Donkey\");\n\t\tbuilder.withDetail(\"NumberOfOphaal\", service.getLastOphaalData().size());\n\t\tbuilder.withDetail(\"DateOfLastGet\", service.dateOfLastGet);\n\n\t\tint counter=0;\n\t\tfor(ModelAfvalkalender mod: service.getLastOphaalData()) {\n\t\t\tbuilder.withDetail(\"ophaaldata\"+ counter++, mod.getAfvalstroomId() +\"-\"+ mod.getOphaaldatum());\n\t\t}\n\n\t\tMap<String, String> details = new HashMap<>();\n\t\tdetails.put(\"5\", \"Glas papier BEST tas\");\n\t\tdetails.put(\"11\", \"PMD (big bin)\");\n\t\tdetails.put(\"55\", \"GFT (green bin)\");\n\n\t\tbuilder.withDetail(\"Ophaal\", details);\n\n\t}",
"public PersonAddressBuilderDFB(PersonDFB person){\n //only one person we are building up but need a reference to it in every sub builder\n this.person = person;\n }",
"Builder addExampleOfWork(CreativeWork.Builder value);",
"Builder addAbout(Thing.Builder value);",
"public Builder() {\n\t\t}",
"public Order(Builder builder) {\r\n this.id = builder.id;\r\n this.orderDate = builder.orderDate;\r\n //this.orderLine = builder.orderLine;\r\n }",
"private Construct(Builder builder) {\n super(builder);\n }",
"private SimpleData(Builder builder) {\n super(builder);\n }",
"private PBPoker(Builder builder) {\n super(builder);\n }",
"public static Builder builder(){ return new Builder(); }",
"private Builder() {}",
"private Builder() {\n\t\t}",
"T2 build();",
"public abstract Builder produces(String... paramVarArgs);",
"@Override\n public void create_building(ArrayList bulding){\n House house = new House(Adress.RUE_DE_LA_PAIX);\n System.out.println(\"Vous venez de créer une maison\");\n bulding.add(house);\n }",
"private Argument(Builder builder) {\n super(builder);\n }",
"public Builder(){\n }",
"private PBZJHGameResult(Builder builder) {\n super(builder);\n }",
"private PBZJHPoker(Builder builder) {\n super(builder);\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"private Option(Builder builder) {\n this.shortSwitches = builder.shortSwitches;\n this.longSwitches = builder.longSwitches;\n this.mandatory = builder.mandatory;\n this.argument = builder.argument;\n this.argumentPresence = builder.argumentPresence;\n this.description = builder.description;\n this.messageArgMissing = builder.messageArgMissing;\n }",
"public static void main(String[] args) {\n\r\n\t\t Hasta A = new Hasta.Builder(12345688,\"Ali\",\"Acar\")\r\n\t .yas(25)\r\n\t .Cinsiyet(\"Erkek\")\r\n\t .Adres(\"Akasya Acıbadem Ofis Kuleleri\\n A Blok 24. Kat No:127\\n Acıbadem İstanbul Turkey\")\r\n\t .HastaId(1)\r\n\t .MedeniHal(\"Evli\")\r\n\t .build();\r\n\r\n\t Hasta B = new Hasta.Builder(123456789,\"Kevser\", \"Köse\")\r\n\t .yas(22)\r\n\t .MedeniHal(\"Bekar\")\r\n\t .build();\r\n\r\n\t Hasta C = new Hasta.Builder(145236987,\"Merve\", \"Topal\")\r\n\t .yas(29)\r\n\t .build();\r\n\r\n\t System.out.println(A);\r\n\t System.out.println(B);\r\n\t System.out.println(C);\r\n\t\t\r\n\t\t\r\n\t}",
"public abstract Builder params(String... paramVarArgs);",
"Builder addPublisher(Person.Builder value);",
"public static void main(String[] args) {\n\n Building building1 = new Building(\"Building_A\");\n building1.addRoom(new Room(\"Kitchen\", 256, 2));\n try {\n building1.getRoom(\"Kitchen\")\n .addLightBulb(new LightBulbs(25))\n .addFurniture(new Armchair(\"Armchair_1\", 25, 45))\n .addLightBulb(new LightBulbs(58));\n } catch (RoomNotFoundException e) {\n System.out.println(e.getMessage());\n }\n building1.addRoom(new Room(\"Bedroom\", 258, 4));\n try {\n building1.getRoom(\"Bedroom\")\n .addLightBulb(new LightBulbs(684))\n .addLightBulb(new LightBulbs(158))\n .addFurniture(new Table(\"Table\", 45))\n .addFurniture(new Armchair(\"Armchair_2\", 12, 15));\n } catch (RoomNotFoundException e) {\n System.out.println(e.getMessage());\n }\n\n building1.addRoom(new Room(\"Bathroom\", 25, 1));\n if (building1.verifyBuilding() == false) {\n return;\n }\n System.out.println(building1.describe());\n }",
"public ConstructHouse(String modelname, int lot_number, int area, int bedrooms, int garage, long price) {\n\t\t\n\t\tthis.modelname = modelname;\n\t\tthis.lot_number = lot_number;\n\t\tthis.area = area;\n\t\tthis.bedrooms = bedrooms;\n\t\tthis.garage = garage;\n\t\tthis.price = price;\n\t\t\t}",
"Builder addMainEntity(Thing.Builder value);",
"@FunctionalInterface\n public interface Builder {\n BuildingModel build(int x, int y, int angle, int floor);\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"public static void main(String[] args) {\n PessoaBuilder builder = new PessoaBuilder();\n builder.comNome(\"Roberto\").comAltura(2.).comCorDosOlhos(\"Azul\").comEtnia(\"Afrodescendente\").comPeso(75.);\n Pessoa pessoa = builder.build();\n System.out.println(pessoa);\n\n //Agora usaremos a classe Director, onde podemos ter perfis pré-definidos\n builder.reset();\n Director director = new Director(builder);\n\n //Primeiro uma pessoa obesa\n director.buildFatPerson();\n Pessoa fatPerson = builder.build();\n System.out.println(fatPerson);\n\n //Agora criaremos o Bruce Wayne (ou será o Batman)1\n director.buildBruceWayne();\n Pessoa batman = builder.build();\n System.out.println(batman);\n }",
"public Builder() { }",
"public Vendor(VendorBuilder builder){\r\n this.owner = builder.owner;\r\n this.address = builder.address;\r\n this.firstBrand = builder.firstBrand;\r\n this.secondBrand = builder.secondBrand;\r\n }",
"private Builder()\n {\n }",
"Builder makePermanent();",
"public static Object builder() {\n\t\treturn null;\n\t}",
"Builder addCharacter(Person.Builder value);",
"public House(double f, int s, int be, int ba){\r\n \r\n super(f, s);\r\n bedrooms = be;\r\n bathrooms = ba;\r\n }",
"public Leilao builder() {\n\t\treturn this.leilao;\r\n\t}",
"public EmployeeWageBuilder() {\n\t\tcompanyEmpWageArrayList = new ArrayList<>();\n\t\tcompanyEmpWageMap = new HashMap<>();\n\n\tprivate int numOfCompany = 0;\n\tprivate CompanyEmpWage[] companyEmpWageArray;\n\tprivate ArrayList<CompanyEmpWage> companyEmpWageArrayList;\n\n\n\t// created array of type CompanyEmpWage\n\tpublic EmployeeWageBuilder() {\n\t\tcompanyEmpWageArray = new CompanyEmpWage[5];\n\n\t\tcompanyEmpWageArrayList = new ArrayList<>();\n\n\n\t}",
"Builder addCreator(Person.Builder value);",
"Object build();",
"@Test\n public void testBuilder_1()\n throws Exception {\n\n Project.Builder result = Project.builder();\n\n assertNotNull(result);\n }",
"private BoxPro(Builder builder) {\n super(builder);\n }",
"private Primitive(Builder builder) {\n super(builder);\n }",
"private PrizePro(Builder builder) {\n super(builder);\n }",
"public interface Builder<T> {\n\n T build();\n\n}",
"private DataObject(Builder builder) {\n super(builder);\n }",
"Builder addProducer(Organization.Builder value);",
"public interface Builder {\r\n public void buildBYD();\r\n public CarProduct getCar();\r\n}",
"private neighbor_t(Builder builder) {\n super(builder);\n }",
"private C_Refine(Builder builder) {\n super(builder);\n }",
"private neighbors_t(Builder builder) {\n super(builder);\n }",
"static Builder builder() {\n return new Builder();\n }",
"private S_Refine(Builder builder) {\n super(builder);\n }",
"Builder addCopyrightHolder(Person.Builder value);",
"private Parameter(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"private OneMessage(Builder builder) {\n super(builder);\n }",
"protected abstract Builder<T> valid();",
"Builder addMentions(Thing.Builder value);",
"public void b(ahd paramahd) {}",
"private Builder() {\n }",
"private Builder() {\n }",
"private PBZJHGameState(Builder builder) {\n super(builder);\n }",
"public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }",
"abstract Object build();",
"T build();",
"T build();",
"public static void main(String[] args) {\n\r\n House myHouse = new House(new Room(\"myBedroom\", 4, 2, false), 43);\r\n myHouse.wallsDetails();\r\n\r\n }",
"public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}",
"private Mobile(Builder builder) {\n countryCode = builder.countryCode;\n number = builder.number;\n }",
"@Test\n public void testBuilderFrom_1()\n throws Exception {\n Project p = new Project();\n\n Project.Builder result = Project.builderFrom(p);\n\n assertNotNull(result);\n }",
"abstract T build();",
"public abstract Builder consumes(String... paramVarArgs);",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"private RewardListPro(Builder builder) {\n super(builder);\n }",
"public interface AgentBuilder extends Builder<AgentBuilder, Agent> {\n\n /**\n * Sets the admin_state_up\n *\n * @param state the state of admin_state_up\n * @return the agent builder\n */\n AgentBuilder adminStateUp(boolean state);\n\n}",
"public interface Builder<T> {\n\n /**\n * The final function that creates the object built.\n * @return the built object\n */\n T build();\n}",
"private HIReqMessage(Builder builder) {\n super(builder);\n }",
"private Invoke(Builder builder) {\n super(builder);\n }",
"private Nested(Builder builder) {\n super(builder);\n }",
"private Area(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder(String shortSwitch) {\n this.shortSwitches = new HashSet<String>();\n this.shortSwitches.add(shortSwitch);\n longSwitches = new HashSet<String>();\n }",
"private C_AutoRefine(Builder builder) {\n super(builder);\n }",
"private flight(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private PBZJHUserPoker(Builder builder) {\n super(builder);\n }",
"private Resolve(Builder builder) {\n super(builder);\n }",
"public GantBuilder ( ) { }",
"private BeeMessage(Builder builder) {\n super(builder);\n }",
"private Donatie(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private void BuildingCombo() {\n \n }",
"private SetProperty(Builder builder) {\n super(builder);\n }"
] | [
"0.7088561",
"0.6489884",
"0.60188246",
"0.60004854",
"0.5959861",
"0.58884037",
"0.58480585",
"0.58424103",
"0.58334225",
"0.58100307",
"0.58055574",
"0.57829344",
"0.5775821",
"0.576906",
"0.57652617",
"0.57551503",
"0.5746293",
"0.5744602",
"0.5742865",
"0.5740706",
"0.5718302",
"0.57091093",
"0.57085586",
"0.5703392",
"0.5703392",
"0.5703392",
"0.56787205",
"0.56735927",
"0.56512153",
"0.5634177",
"0.56314015",
"0.5601554",
"0.55938274",
"0.55936533",
"0.55867124",
"0.558229",
"0.558229",
"0.5574795",
"0.5567437",
"0.5567225",
"0.55648094",
"0.5553952",
"0.55534977",
"0.5545934",
"0.55410635",
"0.5528049",
"0.55252075",
"0.5518123",
"0.55152255",
"0.5512805",
"0.5509561",
"0.5508421",
"0.5503116",
"0.54909176",
"0.54808044",
"0.54771036",
"0.5473844",
"0.54726017",
"0.54696804",
"0.54665786",
"0.54649276",
"0.54625404",
"0.545392",
"0.5452287",
"0.54444855",
"0.54431593",
"0.5442938",
"0.54408264",
"0.542291",
"0.5419543",
"0.5419543",
"0.5412105",
"0.54108",
"0.5410108",
"0.540923",
"0.540923",
"0.5390702",
"0.5389332",
"0.5386358",
"0.53664285",
"0.5362769",
"0.5362152",
"0.5346782",
"0.5341771",
"0.5328533",
"0.5328421",
"0.53284",
"0.53237355",
"0.5319681",
"0.53169966",
"0.53126067",
"0.5304301",
"0.5301526",
"0.5293147",
"0.5287064",
"0.52864534",
"0.52835774",
"0.5283492",
"0.5279642",
"0.5271674"
] | 0.72837496 | 0 |
REQUIRES: The ship's current sector and the direction of the shot. MODIFIES: This. EFFECTS: Creates an instance of a maser and puts it into a sector next to the ship depending on the direction of the shoot; sets the maser's label and initial direction and speed; initializes the maser's tail. | public Maser(Sector sector, int direction){
super(sector, direction);
label = Configs.MSR;
sectors = new ArrayList<Sector>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void move(){\n\t\tSector tail = null;\n\t\tif(hit){\n\t\t\ttail = getNext();\n\t\t\tif(tail == null){\t\n\t\t\t\tselfDestruct();\n\t\t\t} else {\t\t\n\t\t\t\tsector.setInhabitant(null);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tsectors.add(sector);\n\t\tSector nextSector = quadrant.getNext(sector, velocity[0]);\t\n\t\tif(nextSector == null){\n\t\t\thit = true;\n\t\t} else {\n\t\t\tSpaceObject object = nextSector.getInhabitant();\n\t\t\tif(object != null) {\n\t\t\t\tobject.bump(this);\n\t\t\t} else {\n\t\t\t\tsetSector(nextSector); \n\t\t\t}\n\t\t} \n\t}",
"public void shoot() {\n _shooterMotor1.set(_targetRPM);\n }",
"public void shootIntoCargoShip(){\n shoot.set(SHIP_SHOOT);\n }",
"public Shooter() {\n fire1 = new Solenoid(1);\n fire2 = new Solenoid(4);\n returnValve = new Solenoid(3);\n latchSolenoid = new Solenoid(2);\n FFM = true;\n m_enabled = true;\n shooting = false;\n reloading = false;\n initShooter();\n }",
"public Shooter(Turret in_Turret, Indexer in_Indexer) {\n m_Turret = in_Turret;\n m_Indexer = in_Indexer;\n\n sparkMax1 = new CANSparkMax(RobotMap.ShooterSparkMax1, MotorType.kBrushless);//31\n sparkMax2 = new CANSparkMax(RobotMap.ShooterSparkMax2, MotorType.kBrushless);\n\n sparkMax1.restoreFactoryDefaults();\n sparkMax2.restoreFactoryDefaults();\n\n sparkMax2.follow(sparkMax1, true);\n\n pidController = sparkMax1.getPIDController();\n encoder = sparkMax1.getEncoder();\n\n // PID coefficients\n kP = 0.001; \n kI = 0;\n kD = 0.00002; \n kIz = 0; \n kFF = 0.00002; \n kMaxOutput = 1; \n kMinOutput = -1;\n maxRPM = 6550;\n minRPM = 4150;\n\n // set PID coefficients\n pidController.setP(kP);\n pidController.setI(kI);\n pidController.setD(kD);\n pidController.setIZone(kIz);\n pidController.setFF(kFF);\n pidController.setOutputRange(kMinOutput, kMaxOutput);\n\n SmartDashboard.putBoolean(\"shooter at rpm\", false);\n SmartDashboard.putNumber(\"shooter Desired velocity\", 0);\n SmartDashboard.putNumber(\"shooter Actual velocity\", encoder.getVelocity());\n SmartDashboard.putNumber(\"shooter distance\", 0);\n SmartDashboard.putNumber(\"shooter compensated rpms\", 0);\n SmartDashboard.putNumber(\"shooter expected rpms\", 0);\n\n }",
"public Flame_Tank(int defx, int defy) {\n\t\tsuper(defx,defy);\n\t\twidth = 58;\n\t\theight = 31;\n\t\thitBox = new Rectangle(defx, defy, width, height); // fix this\n\t\txMaxSpeed = 0.3f;\n\t\tfriction = 0.01f;\n\t\tjumpStrength = 0.5f;\n\t\telasticity = 0.2f;\n\t\thp = 1000;\n\t\t\n\t\ttry {\n\t\t\tblank = new Image (\"res/blank.png\");\n\t\t\tft1 = new Image (\"res/Flare_Tank1.png\");\n\t\t\tft2 = new Image (\"res/Flare_Tank2.png\");\n\t\t\tftb1 = new Image (\"res/Flare_Tank_b1.png\");\n\t\t\tftb2 = new Image (\"res/Flare_Tank_b2.png\");\n\t\t\tftb3 = new Image (\"res/Flare_Tank_b3.png\");\n\t\t\tftb4 = new Image (\"res/Flare_Tank_b4.png\");\n\t\t} catch (SlickException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tftank[0] = ft1;\n\t\tftank[1] = ft2;\n\t\tftank[2] = ft2;\n\t\tftank[3] = ftb1;\n\t\tftank[4] = ftb2;\n\t\tftank[5] = ftb3;\n\t\tftank[6] = ftb4;\n\t\tftank[7] = blank;\n\t\tFlame_tank = new Animation(ftank,200,true);\n\t\t\n\t\tweapons.add(new Weapon(Weapon.getWeapons().get(7)));\n\t\tfor(Weapon w : weapons) {\n\t\t\tw.setEnemy(true);\n\t\t}\n\t\tcurrentWeapon = weapons.get(1);\n\t}",
"public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }",
"public void manualShoot(double speed) {\n shooter1.set(speed);\n }",
"StraightMover(int startX, int startY, Sprite sprite) {\n super(startX, startY, sprite);\n }",
"public void spitIntakeCargo(){\n shoot.set(SPIT_INTAKE);\n }",
"public void setSector(WorldSector sector) {\n this.sector = sector;\n\n if (sector != null) {\n this.direction = Utils.randElement(MoveDirection.values());\n\n int xMax = getWorld().getXSectorSize() - 1;\n int yMax = getWorld().getYSectorSize() - 1;\n int xPos = Utils.randInt(0, xMax);\n int yPos = Utils.randInt(0, yMax);\n double xPercent = (double) xPos / (double) xMax;\n double yPercent = (double) yPos / (double) yMax;\n if (yPercent < .25)\n this.direction = MoveDirection.DOWN;\n if (xPercent < .25)\n this.direction = MoveDirection.RIGHT;\n if (xPercent > .75)\n this.direction = MoveDirection.LEFT;\n if (yPercent > .75)\n this.direction = MoveDirection.UP;\n\n trail.add(sector.getPixel(xPos, yPos));\n }\n }",
"public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\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 Shooter() {\n setDefaultCommand(new RunCommand(this::stop, this));\n _shooterMotor2.follow(_shooterMotor1);\n _shooterMotor1.setInverted(true);\n _shooterMotor2.setInverted(false);\n\n _shooterMotor1.configFactoryDefault();\n _shooterMotor1.config_kF(0, _kF);\n _shooterMotor1.config_kP(0, _kP);\n _shooterMotor1.setNeutralMode(NeutralMode.Coast);\n }",
"private void shoot() {\n\t\tif (playerList.size() > 0) {\n\t\t\tif (!someoneLose) {\n\t\t\t\tPlayer target = null;\n\t\t\t\tint remainingShips = SHIP_COUNT + 1;\n\t\t\t\tfor (Player player : playerList) {\n\t\t\t\t\tif (player.getRemainingShips() < remainingShips) {\n\t\t\t\t\t\ttarget = player;\n\t\t\t\t\t\tremainingShips = player.getRemainingShips();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSector targetSector = target.findFreeSector();\n\t\t\t\tlastTarget = targetSector.getMiddle();\n\t\t\t\tShootingThread st = new ShootingThread(chordImpl, targetSector.getMiddle());\n\t\t\t\tst.start();\n\t\t\t}\n\t\t}\n\t}",
"public Shot(int damage, int dx, int dy, Point position, String imageFile) {\n setTouchBehaviour(new HurtShip(damage));\n setDx(dx);\n setDy(dy);\n loadImageFrom(imageFile);\n setPosition(position);\n }",
"public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }",
"public Sword(SpriteFinishReceiver en, String attackFinishEvent){\r\n\t\tif(!(en instanceof Entity)){\r\n\t\t\tSystem.out.println(\"ERROR FATAL, se ha asigado un arma a una clase no-Entity\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tparent = en;\r\n\t\tent = (Entity)parent;\r\n\t\t\r\n\t\t\r\n\t\t//asegurar que solo podrá asignarse un arma a entidades con daño y vida\r\n\t\tassertTrue(ent instanceof EntityWithStats);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tAnimator attackAnimSword = new Animator(60, 68, 0, 0, 3, new Spritesheet(AssetManager.getSingleton().getImage(\"ataqueFrente\")), 6,true);\r\n\t\tattackAnimSword.setXOffset(-15);\r\n\t\t\r\n\t\tAnimator attackAnimSwordBack = new Animator(60, 68, 0, 0, 3, new Spritesheet(AssetManager.getSingleton().getImage(\"ataqueEspalda\")), 6,true);\r\n\t\tattackAnimSwordBack.setXOffset(-12);\r\n\t\tattackAnimSwordBack.setYOffset(-20);\r\n\t\t\r\n\t\t\r\n\t\tAnimator attackAnimSwordIzq = new Animator(50, 48, 0, 0, 3, new Spritesheet(AssetManager.getSingleton().getImage(\"ataquePerfilIzq\")), 6,true);\r\n\t\tattackAnimSwordIzq.setXOffset(-24);\r\n\t\t\r\n\t\t\r\n\t\tAnimator attackAnimSwordDer = new Animator(50, 48, 0, 0, 3, new Spritesheet(AssetManager.getSingleton().getImage(\"ataquePerfilDer\")), 6,true);\r\n\t\tattackAnimSwordDer.setXOffset(6);\r\n\t\t\r\n\t\t\r\n\t\tSpriteContainerWithReceiver attackStateContainer = new SpriteContainerWithReceiver(parent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"0\", attackAnimSwordBack, attackFinishEvent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"1\", attackAnimSwordBack, attackFinishEvent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"2\", attackAnimSwordDer, attackFinishEvent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"3\", attackAnimSword, attackFinishEvent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"4\", attackAnimSword, attackFinishEvent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"5\", attackAnimSword, attackFinishEvent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"6\", attackAnimSwordIzq, attackFinishEvent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"7\", attackAnimSwordBack, attackFinishEvent);\r\n\t\tattackStateContainer.addAnimatorWithReceiver(\"8\", attackAnimSword, attackFinishEvent);\r\n\t\tmove = new LockMove(attackStateContainer, true);\r\n\t\t\r\n\t\tcollideRects = new HashMap<String, Rectangle>();\r\n\t\t\r\n\t\tRectangle down = new Rectangle(-15,26,60,42);\r\n\t\tRectangle up = new Rectangle(-13,-20,62,42);\r\n\t\tRectangle izq = new Rectangle(-22,10,32,32);\r\n\t\tRectangle der = new Rectangle(20,10,32,32);\r\n\t\tcollideRects.put(\"0\", up);\r\n\t\tcollideRects.put(\"1\", up);\r\n\t\tcollideRects.put(\"2\", der);\r\n\t\tcollideRects.put(\"3\", down);\r\n\t\tcollideRects.put(\"4\", down);\r\n\t\tcollideRects.put(\"5\", down);\r\n\t\tcollideRects.put(\"6\", izq);\r\n\t\tcollideRects.put(\"7\", up);\r\n\t\tcollideRects.put(\"8\", down);\r\n\t}",
"public MilfordAuton(DriveSubsystem drive, Shooter shooter, ShooterAngle angle, Elevator elevator, double direction) {\n /*\n 1. Set angle to 45\n 2. Tune angle for 1 second\n 3. Rev shooter at 6000 RPM for 1 second\n 4. Shoot at 6000 for 4 seconds\n 5. Wait for 0.5 seconds\n 6. Drive forward for 3 seconds\n */\n super(new SetAngle(angle, 45), new HoldAngle(angle).withTimeout(1), new ShootAt(shooter).withTimeout(1),\n (new ShootAt(shooter).alongWith((new Elevate(elevator)))).withTimeout(4),\n (new NOP().withTimeout(0.5)).andThen(new DriveToWall(drive, direction).withTimeout(3)));\n }",
"public Missile(Shooter shooter, Point2D.Double start, double speed, double direction)\n {\n this.shooter = shooter;\n this.direction = direction;\n \n location = start;\n \n velocity = new Point2D.Double(-speed*Math.sin(direction), speed*Math.cos(direction));\n }",
"public MagineerStrike() {\n super(ID, NAME, IMG, COST, DESCRIPTION, TYPE, COLOR, RARITY, TARGET);\n artistNames.add(\"Jake Berry\");\n flavorText = \"There is a reason that spears are one of the oldest weapons known to man. \" +\n \"You may not be a swordfighter, but at the very least you /will/ learn to use a spear.\";\n\n MagineerMod.logger.info(\"ID: \"+ID);\n MagineerMod.logger.info(\"cardStrings: \"+cardStrings);\n MagineerMod.logger.info(CardCrawlGame.languagePack);\n MagineerMod.logger.info(\"CardCrawlGame.languagePack: \"+CardCrawlGame.languagePack);\n\n\n // Aside from baseDamage/MagicNumber/Block there's also a few more.\n // Just type this.base and let intelliJ auto complete for you, or, go read up AbstractCard\n\n baseDamage = DAMAGE;\n\n this.tags.add(BaseModCardTags.BASIC_STRIKE); //Tag your strike, defend and form (Shadow form, demon form, echo form, etc.) cards so that they function correctly.\n this.tags.add(CardTags.STRIKE);\n\n cardArtLayers512.add(new RenderImageLayer(TextureLoader.getTexture(cardArt512+portraitFilename)));\n cardArtLayers1024.add(new RenderImageLayer(TextureLoader.getTexture(cardArt1024+portraitFilename)));\n\n actionList.add(new DamageDescAction(this));\n\n updateDescription();\n }",
"@Override\n public void initialize() {\n shooter.setShooterVelocity(speed);\n }",
"public AutoAim(TurretSubsystem turret, ShooterSubsystem shooter, LED led) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n super(\n // aim towards thing\n new RunCommand(\n () -> {\n turret.turretAuto();\n //System.out.println(\"aiming with turret\");\n },\n turret\n ),\n\n new ShooterSetSpeedPIDF(shooter, true),\n\n new RunCommand(() -> {\n led.turnOnLED();\n }) {\n @Override\n public void end(boolean interrupted) {\n led.turnOffLED();\n }\n }\n \n // start shooter motor\n );\n this.turret = turret;\n this.shooter = shooter;\n this.led = led;\n }",
"void createLaser(float x, float y, int team, float angle, float damage) {\n exists = true;\n this.team = team;\n this.damage = damage;\n degrees = angle;\n positionX = x - midX;\n positionY = y - midY;\n centerPosX = positionX + midX;\n centerPosY = positionY + midY;\n }",
"public Ship(XGame game, Controller ctrl) {\r\n \tRADIUS = 8;\r\n \tlives = 5;\r\n \tspower = 100;\r\n \tshootdelay = 500; // amount of time in milliseconds between bullets\r\n \tbulletlife = 25; \r\n s = new Vector2D();\r\n v = new Vector2D();\r\n d = new Vector2D(2,2); \r\n this.game = game;\r\n this.ctrl = ctrl;\r\n reset(); // move the ship to its start position\r\n }",
"public void fireShot() {\n\t\tVector3 position = player.getPositionVector();\n\t\tVector3 rotation = player.getRotationVector();\n\t\tVector3 scale = player.getScaleVector();\n\t\tAsteroidsLaser laser = new AsteroidsLaser(GameObject.ROOT, this, rotation.z);\n\t\tlaser.translate(position);\n\t\tlaserShots.add(laser);\n\t}",
"private void laser(EntityManager manager) {\r\n if (manager.getAmmo(3) == 0 && !testMode) {\r\n changeGuns(0, manager);\r\n manager.outOfAmmo();\r\n return;\r\n }\r\n Shot laser = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardX * 300, forwardY * 300, 150, 3f, 1, 0, 0, false, 350, false);\r\n\r\n manager.addEntity(laser);\r\n if (!testMode) manager.updateAmmo(3, -1, false);\r\n ;\r\n manager.shotFired(3);\r\n }",
"public M_Bullet shoot() {\n Point leftCorner = this.getLocation();\n // get the center of the character\n int x = leftCorner.x;\n int y = leftCorner.y;\n Point dim = this.getDimensions();\n int h = dim.y;\n int w = dim.x;\n h = h / 2;\n w = w / 2;\n Point center = new Point(x + w, y + h);\n // get the velocity for the bullet\n Point vel = new Point(this.getDirection() * 3, 0);\n // set the enemy's shot cooldown to its shot interval.\n setShotCooldown(getShotInterval());\n // return the new bullet\n return new M_Bullet(center, this.getStrength(), vel, true);\n }",
"public Shooter() {\n servo.set(ShooterConstants.Servo_Down);\n \n \n }",
"public static Avatar makeSmasher() {\n HUD.setOccupationSprite(ImageAssets.smasherS);\n return new Avatar(new Smasher(), new Location(Settings.SPAWN_X, Settings.SPAWN_Y, Settings.SPAWN_Z));\n }",
"@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 Spit(float x, float y, int width, int height, Rectangle bounds, Handler handler, float velX, float velY,int value, float damage, float speed, int range/*, BufferedImage... args*/)\n {\n super(x,y,width,height,bounds,handler,velX,velY,value,damage,speed,range,Weapons.mouth/*,args*/);\n }",
"public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }",
"public GameObject spawnCarrier(LogicEngine in_logicEngine, float in_x , CARRIER_TYPE in_type)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/thrusterboss.png\",in_x,LogicEngine.SCREEN_HEIGHT+64,30);\r\n\t\t\r\n\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=4;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=32;\r\n\t\tship.i_animationFrameSizeHeight=132;\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\t//pause at the first waypoint\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 50);\r\n\t\t\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\t\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 300);\r\n\t\t\r\n\t\t//go straight down then split\r\n\t\tship.v.addWaypoint(new Point2d(in_x, LogicEngine.SCREEN_HEIGHT/1.5));\r\n\t\tship.v.addWaypoint(new Point2d(in_x,-100));\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\t\r\n\t\t//turret\r\n\t\t//turret\r\n\t\tDrawable turret = new Drawable();\r\n\t\tturret.i_animationFrame = 6;\r\n\t\tturret.i_animationFrameSizeWidth=16;\r\n\t\tturret.i_animationFrameSizeHeight=16;\r\n\t\tturret.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\";\r\n\t\tturret.f_forceRotation = 90;\r\n\t\tship.shotHandler = new TurretShot(turret,\"data/\"+GameRenderer.dpiFolder+\"/redbullets.png\",6,5.0f);\r\n\t\tship.visibleBuffs.add(turret);\r\n\t\t\r\n\t\tship.v.setMaxForce(1);\r\n\t\tship.v.setMaxVel(1);\r\n\t\t\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\tHitpointShipCollision s;\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\t s = new HitpointShipCollision(ship, 160, 32);\r\n\t\telse\r\n\t\t\t s = new HitpointShipCollision(ship, 125, 32);\r\n\t\t\t\r\n\t\ts.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = s; \r\n\t\r\n\t\t//TODO:launch ships handler for shooting\r\n\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_BOTH_SIDES)\r\n\t\t{\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t}\r\n\t\telse\r\n\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_RIGHT_ONLY)\r\n\t\t\t{\r\n\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_LEFT_ONLY)\r\n\t\t\t\t{\r\n\t\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t\t\t}\r\n\t\t\t\t\t\t \r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}",
"public Shield(GameEntity player) {\n\n\t\t//Initialization with shield image\n\t\tsuper(spriteFilePath);\n\n\t\t//Getting the player from the StageTest class\n\t\tthis.player = player;\n\t\tthis.life = maxLife;\n\n\t\t//Putting shield on the screen with reference the player position\n\t\tthis.x = player.x;\n\t\tthis.y = player.y;\n\t}",
"public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }",
"public ShooterAim(Shooter shooter, int deg) {\n this.shooter = shooter;\n this.deg = deg;\n addRequirements(shooter);\n }",
"private void tankWillShoot(Graphics2D g2d, GameState state) {\n if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() > 0 && state.getGunType() % 2 == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfCannonBullet(tankObject.getNumOfCannonBullet() - 1);\n if (tankObject.getCannonLevel() == 1) {\n state.getMissiles().add(new Missile(state, 15));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (tankObject.getCannonLevel() == 2) {\n state.getMissiles().add(new Missile(state, 30));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n } else if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() == 0 && state.getGunType() % 2 == 1) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n state.setMouseClicked(false);\n }\n for (Missile missile : state.getMissiles()) {\n missile.paint(g2d, state);\n }\n if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() > 0 && state.getGunType() % 2 == 0) {\n if (numOfRenderBullet1 == 0 && tankObject.getMachineGunLevel() == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 20));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet2 == 0 && tankObject.getMachineGunLevel() == 2) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 30));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet1 <= 7) {\n numOfRenderBullet1++;\n }\n if (numOfRenderBullet1 == 7) {\n numOfRenderBullet1 = 0;\n }\n if (numOfRenderBullet2 <= 3) {\n numOfRenderBullet2++;\n }\n if (numOfRenderBullet2 == 3) {\n numOfRenderBullet2 = 0;\n }\n }\n else if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() == 0 && state.getGunType() % 2 == 0) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n }\n for (Bullet bullet : state.getBullets()) {\n bullet.paint(g2d, state);\n }\n }",
"public void spawnSateliteShip(LogicEngine in_logicEngine,float in_x)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\",in_x,LogicEngine.SCREEN_HEIGHT,1);\r\n\t\tship.i_animationFrameSizeWidth = 64;\r\n\t\tship.i_animationFrameSizeHeight = 32;\r\n\t\tship.i_animationFrame = 2;\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tship.v.setMaxForce(1.0f);\r\n\t\tship.v.setMaxVel(4.0f);\r\n\t\t\r\n\t\t\r\n\t\t//fly down\r\n\t\t//ship.stepHandlers.add( new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"10\", null);\r\n\t\t\r\n\t\t//add waypoints\r\n\t\tfor(int i=0 ; i< 20 ; i++)\r\n\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t//put in some edge ones too\r\n\t\t\tif(r.nextInt(6)%3==0)\r\n\t\t\t\tship.v.addWaypoint(new Point2d((int) LogicEngine.SCREEN_WIDTH * (i%2), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t\telse\r\n\t\t\t\t//put in some random doublebacks etc\r\n\t\t\t\tship.v.addWaypoint(new Point2d(r.nextInt((int) LogicEngine.SCREEN_WIDTH), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t}\r\n\t\tship.v.addWaypoint(new Point2d(LogicEngine.SCREEN_WIDTH/2, -100));\r\n\t\t\r\n\t\tif(Difficulty.isEasy())\r\n\t\t\tship.shotHandler = new BeamShot(50);\r\n\t\telse\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tship.shotHandler = new BeamShot(40);\r\n\t\telse\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tship.shotHandler = new BeamShot(30);\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\t//destroy ships that get too close\r\n\t\tHitpointShipCollision hps = new HitpointShipCollision(ship, 10, 32);\r\n\t\thps.setSimpleExplosion();\r\n\t\t\r\n\t\tship.collisionHandler = hps; \r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\t\r\n\t\r\n\t}",
"public Boss(String line, String ship, String explosion, Point pos){\r\n\t\tsuper(line,pos,ship,explosion);\r\n\t\tposition=pos;\r\n\t\tbossHb = new Health(600, 10);\r\n\t\tinPosition=false;\r\n\t}",
"void setMover(Mover mover);",
"public skeletalArcher(Stats toCopy, int casterInt){\n super(\"Skeletal Archer\", toCopy);\n scaleDifficulty(.5f);\n Dex = Math.round(casterInt * .75f);\n charProperty = new Undead();\n buildSkills();\n }",
"public HeroMissile(int x,int y, int a, int b)\n {\n _startingX = x;\n _startingY = y;\n _endPointX = a;\n _endPointY = b;\n _currentX = _startingX;\n _currentY = _startingY;\n movingDistance = 1;\n distance = calcDistance(_startingX, _startingY,_endPointX,_endPointY);\n remainingDistance = 0;\n }",
"public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }",
"void tick() {\n\t\tif (playing) {\n\t\t\tdeadcannon = null;\n\t\t\t// sets general output message\n\t\t\tstatus.setText(\"Engaging alien wave \" + Integer.toString(level)+ \" \");\n\n\t\t\t// controls the first shot fired by the aliens\n\t\t\tif (shot1 == null) {\n\t\t\t\tint count1 = 0;\n\t\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\t\tif (alien3[i]!=null) {if (!alien3[i].Destroyed) count1++ ;}\n\t\t\t\t}\n\t\t\t\tif (count1 > 1) shot1 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\tshootbottom().pos_x + 18, shootbottom().pos_y); \n\t\t\t\telse {\n\t\t\t\t\tint count2 = 0;\n\t\t\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\t\t\tif (alien2[i]!=null) {if(!alien2[i].Destroyed)count2++;}\n\t\t\t\t\t}\n\t\t\t\t\tif (count2 > 1) shot1 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\t\tshootmiddle().pos_x + 18, shootmiddle().pos_y);\n\t\t\t\t\telse {\n\t\t\t\t\t\tint count3 = 0;\n\t\t\t\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\t\t\t\tif (alien1[i]!=null) {if(!alien1[i].Destroyed)count3++;}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (count3 != 0) shot1 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\t\t\tshoottop().pos_x + 18, shoottop().pos_y);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// controls the second shot fired by the aliens\n\t\t\tif (shot2 == null) {\n\t\t\t\tint count4 = 0;\n\t\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\t\tif (alien3[i]!=null) {if (!alien3[i].Destroyed) count4++ ;}\n\t\t\t\t}\n\t\t\t\tif (count4 != 0) {shot2 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\tshootbottom().pos_x + 18, shootbottom().pos_y); \n\t\t\t\tStdAudio.play(\"zap.wav\"); }\n\t\t\t\telse {\n\t\t\t\t\tint count5 = 0;\n\t\t\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\t\t\tif (alien2[i]!=null) {if(!alien2[i].Destroyed)count5++;}\n\t\t\t\t\t}\n\t\t\t\t\tif (count5 != 0) { shot2 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\t\tshootmiddle().pos_x + 18, shootmiddle().pos_y);\n\t\t\t\t\tStdAudio.play(\"zap.wav\"); }\n\t\t\t\t\telse {\n\t\t\t\t\t\tint count6 = 0;\n\t\t\t\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\t\t\t\tif (alien1[i]!=null) {if(!alien1[i].Destroyed)count6++;}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (count6 != 0) {shot2 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\t\t\tshoottop().pos_x + 18, shoottop().pos_y);\n\t\t\t\t\t\tStdAudio.play(\"zap.wav\");}\n\t\t\t\t\t\telse {level = level + 1; \n\t\t\t\t\t\tnewlevel();\n\t\t\t\t\t\tthescore=thescore + 100;\n\t\t\t\t\t\tStdAudio.play(\"up.wav\");}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// move bullet and delete if it reaches the roof\n\t\t\tif (bullet!= null) {\n\t\t\t\tbullet.move();\n\t\t\t\tif (bullet.pos_y == 0) bullet = null;\n\t\t\t}\n\n\t\t\t// controls movement of first shot\n\t\t\tif (shot1 != null) {\n\t\t\t\tshot1.move();\n\t\t\t\tif (shot1.pos_y > 435) shot1 = null;\n\t\t\t}\n\t\t\t// controls movement of second shot\n\t\t\tif (shot2 != null) {\n\t\t\t\tshot2.move();\n\t\t\t\tif (shot2.pos_y > 435) shot2 = null;\n\t\t\t}\n\n\t\t\t// For Top Row\n\n\t\t\t// change alien direction if a wall is reached\n\t\t\tif (alien1[0] != null && alien1[9] != null){\n\t\t\t\tif (alien1[0].pos_x == 0 || alien1[9].pos_x == 730) {\n\t\t\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\t\t\tif (alien1[i]!=null){alien1[i].v_x = -alien1[i].v_x;\n\t\t\t\t\t\talien1[i].pos_y=alien1[i].pos_y+15;\n\t\t\t\t\t\tif (alien1[i].pos_y >= 385 && !alien1[i].Destroyed){\n\t\t\t\t\t\t\tplaying = false;\n\t\t\t\t\t\t\tstatus.setText(\"You have been overrun and Earth \"+\n\t\t\t\t\t\t\t\t\t\"has been destroyed. You are a terrible \"+\n\t\t\t\t\t\t\t\t\t\"defender of humanity. \");\t \n\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// move the aliens as group\n\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\tif (alien1[i] != null) \n\t\t\t\t\talien1[i].move();\n\t\t\t}\n\n\t\t\t// destroy both bullet and aliens if bullet hits\n\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\tif (alien1[i] != null && bullet != null) {\n\t\t\t\t\tif (alien1[i].intersects(bullet) && !alien1[i].Destroyed) { \n\t\t\t\t\t\talien1[i].Destroyed=true;\n\t\t\t\t\t\tthescore += 20;\n\t\t\t\t\t\tStdAudio.play(\"bomb-02.wav\");\n\t\t\t\t\t\tbullet = null;\n\t\t\t\t\t\tif (i == 0 || i == 10 ) {\n\t\t\t\t\t\t\talien1[i].img_file = \"black.jpg\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// For Second Row\n\n\t\t\t// change alien direction if a wall is reached\n\t\t\tif (alien2[0] != null && alien2[9] != null){\n\t\t\t\tif (alien2[0].pos_x == 0 || alien2[9].pos_x == 730) {\n\t\t\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\t\t\tif (alien2[i]!=null){alien2[i].v_x = -alien2[i].v_x;\n\t\t\t\t\t\talien2[i].pos_y=alien2[i].pos_y+15;\n\t\t\t\t\t\tif (alien2[i].pos_y >= 385 && !alien2[i].Destroyed){\n\t\t\t\t\t\t\tplaying = false; \n\t\t\t\t\t\t\tstatus.setText(\"You have been ovverun and Earth \"+\n\t\t\t\t\t\t\t\t\t\"has been destroyed. You are a terrible \"+\n\t\t\t\t\t\t\t\t\t\"defender of humanity. \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// move the aliens as group\n\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\tif (alien2[i] != null) \n\t\t\t\t\talien2[i].move();\n\t\t\t}\n\n\t\t\t// destroy both bullet and aliens if bullet hits\n\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\tif (alien2[i] != null && bullet != null) {\n\t\t\t\t\tif (alien2[i].intersects(bullet) && !alien2[i].Destroyed) { \n\t\t\t\t\t\talien2[i].Destroyed=true;\n\t\t\t\t\t\tthescore +=15;\n\t\t\t\t\t\tStdAudio.play(\"bomb-02.wav\");\n\t\t\t\t\t\tbullet = null;\n\t\t\t\t\t\tif (i == 0 || i == 10 ) {\n\t\t\t\t\t\t\talien2[i].img_file = \"black.jpg\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//For third row\n\n\t\t\t//change alien direction if a wall is reached\n\t\t\tif (alien3[0] != null && alien3[9] != null){\n\t\t\t\tif (alien3[0].pos_x == 0 || alien3[9].pos_x == 730) {\n\t\t\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\t\t\tif (alien3[i]!=null){alien3[i].v_x = -alien3[i].v_x;\n\t\t\t\t\t\talien3[i].pos_y=alien3[i].pos_y+15;\n\t\t\t\t\t\tif (alien3[i].pos_y >= 385 && !alien3[i].Destroyed){\n\t\t\t\t\t\t\tplaying = false;\n\t\t\t\t\t\t\tstatus.setText(\"You have been ovverrun and Earth \"+\n\t\t\t\t\t\t\t\t\t\"has been destroyed. You are a terrible \"+\n\t\t\t\t\t\t\t\t\t\"defender of humanity. \");\n\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// move the aliens as group\n\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\tif (alien3[i] != null) \n\t\t\t\t\talien3[i].move();\n\t\t\t}\n\n\t\t\t// destroy both bullet and aliens if bullet hits\n\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\tif (alien3[i] != null && bullet != null) {\n\t\t\t\t\tif (alien3[i].intersects(bullet) && !alien3[i].Destroyed) { \n\t\t\t\t\t\talien3[i].Destroyed=true;\n\t\t\t\t\t\tthescore += 10;\n\t\t\t\t\t\tStdAudio.play(\"bomb-02.wav\");\n\t\t\t\t\t\tbullet = null;\n\t\t\t\t\t\tif (i == 0 || i == 10) {\n\t\t\t\t\t\t\talien3[i].img_file = \"black.jpg\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// destroy cannon if shot\n\t\t\tif (shot1 != null) {\n\t\t\t\tif (shot1.intersects(cannon)){ dead = true; \n\t\t\t\tthelives = thelives - 1;\n\t\t\t\tStdAudio.play(\"bigboom.wav\");\n\t\t\t\tcannon.img_file = \"dead.jpg\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (shot2 != null) {\n\t\t\t\tif (shot2.intersects(cannon)){ dead = true; \n\t\t\t\tthelives = thelives - 1;\n\t\t\t\tStdAudio.play(\"bigboom.wav\");}\n\t\t\t\tcannon.img_file = \"dead.jpg\";\n\t\t\t}\n\n\t\t\t// ends the game when all lives are lost\n\t\t\tif (thelives <= 0) {\n\t\t\t\tplaying = false; \n\t\t\t\tStdAudio.play(\"bomb-02.wav\");\n\t\t\t\tstatus.setText(\"You have been killed and Earth has been \" +\n\t\t\t\t\t\t\"destroyed. You are a terrible defender \" +\n\t\t\t\t\t\t\"of humanity. \");\n\t\t\t}\n\n\t\t\t//makes sure lives cannot become negative\n\t\t\tif (thelives <= 0) {\n\t\t\t\tthelives = 0;\n\t\t\t\tdeadcannon = new DeadCannon(COURT_WIDTH, COURT_HEIGHT);\n\t\t\t\tdeadcannon.pos_x = cannon.pos_x;\n\t\t\t\tStdAudio.play(\"loss.wav\");\n\t\t\t}\n\n\t\t\t//set the text labels at the bottom of the screen\n\t\t\tmyscore.setText(\"Score = \"+ Integer.toString(thescore)+ \" \");\n\t\t\tmylives.setText(\"Lives = \"+ Integer.toString(thelives));\n\t\t\trepaint();\n\t\t\n\t\t\t//move cannon\n\t\t\tcannon.move();\n\t\t} \n\t}",
"public Warrior(Point3D position, int speed) {\r\n super(\"img/Ants/warrior.png\", position, speed);\r\n currentBehaviour = WarriorBehaviour.PATROL;\r\n }",
"public CourtMovement() {\r\n\t\tsuper();\r\n\t\tstart = 0;\r\n\t\tend = 0;\r\n\t}",
"@Override\n\t\t\tpublic void shoot() {\n\t\t\t}",
"public Sword(Warrior owner) {\n\t\tsuper(owner.getX(), owner.getY(), owner.getX() + length, owner.getY());\n\t\tthis.owner= owner;\n\t\tangle= 0;\n\t}",
"public void spawnWanderingSeeker(LogicEngine in_logicEngine)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/triangle.png\",(float)LogicEngine.SCREEN_WIDTH*Math.random(),LogicEngine.SCREEN_HEIGHT-10,0);\r\n\t\t\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=1;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=16;\r\n\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\r\n\t\t//wander \t\r\n\t\tCustomBehaviourStep cb = new CustomBehaviourStep(new Wander(-2.5,2.5,20,0.1));\r\n\t\tship.stepHandlers.add( cb);\r\n\t\t\r\n\t\t//chase player if on medium or hard\r\n\t\tif(Difficulty.difficulty == DIFFICULTY.MEDIUM || \r\n\t\t\t\tDifficulty.difficulty == DIFFICULTY.HARD)\r\n\t\t{\t\r\n\t\t\tSeekNearestPlayerStep sps = new SeekNearestPlayerStep(100);\r\n\t\t\tship.stepHandlers.add(sps);\r\n\t\t}\r\n\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\tship.collisionHandler = new DestroyIfEnemyCollision(ship, 10, true);\r\n\t\tship.v.setMaxForce(2);\r\n\t\tship.v.setMaxVel(2);\r\n\t\t\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t}",
"public Spider(double x, double y)\n\t{\n\t\tsuper(x, y, \"Res/indaSpider.png\", 2);\n\t\thspd = 0.4;\n\t\tvspd = 0.4;\n\t\tspeed = 0.4;\n\t\timageSpeed = 0.05;\n\t\tdamage = 1;\n\t\talarm = new Alarm(50);\n\t\tshootTimer = new Alarm(200);\n\t\trandom = new Random();\n\t\tclose = false;\n\t}",
"public void avatarShoot()\r\n\t{\r\n\t\tBullet avatarPew = avatar.shoot();\r\n\t\tif (avatarPew!= null)\r\n\t\t{\r\n\t\t\tbullets.add(avatarPew);\r\n\t\t}\r\n\t}",
"protected void shootAtBeginAutonomous() {\r\n double secondWheel = 1;\r\n double firstWheel = SpinWheels.FIRST_WHEEL_RATIO * 1;\r\n Robot.shooter.setShootingMotors(firstWheel, secondWheel);\r\n if (machineState == 4) {\r\n Robot.shooter.setShootingMotors(0, 0);\r\n machineState++;\r\n } else if (machineState == 0 || machineState == 1 || machineState == 2) {\r\n if (waitForPistonRetract()) {\r\n Robot.storageBox.extendFiringPiston();\r\n } else if (waitForPistonExtend()) {\r\n Robot.storageBox.retractFiringPiston();\r\n machineState++;\r\n }\r\n }\r\n }",
"public Answer shoot(){\n if (this.isOccuped()){\n this.ship.hit();\n if (this.ship.hasBeenSunk()){\n\tthis.hasBeenShot = true;\n return Answer.SUNK;\n }\n else{\n\tthis.hasBeenShot = true;\n return Answer.HIT;\n }\n }\n else{\n this.hasBeenShot = true;\n return Answer.MISSED;\n }\n }",
"@Override\r\n\tpublic void move()\r\n\t{\r\n\t\t//Updates the X and Y position by using dx and dy\r\n float x = location.getX() + dx;\r\n float y = location.getY() + dy;\r\n \r\n //Updates the particle emitter's position to the missiles current position\r\n emitter.setPosition(this.getPositionX(), this.getPositionY(),false);\r\n \r\n //Updates the location of the missile\n setLocation(x, y);\n\t}",
"public Ant(){ // The position and direction of the ant is completely randomizated in it's creation\n this.position[0] = (int)Math.floor(Math.random() * 20); \n this.position[1] = (int)Math.floor(Math.random() * 20);\n this.image = (int)Math.floor(Math.random() * 4);\n }",
"public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}",
"private ParticleMesh createMissileTrail() {\r\n ParticleMesh pMesh = ParticleFactory.buildParticles(\"tail\", 200,\r\n ParticleType.Quad);\r\n pMesh.setEmissionDirection(new Vector3f(1, 1, 1));\r\n pMesh.setInitialVelocity(0);\r\n pMesh.setStartSize(1f);\r\n pMesh.setEndSize(3.45f);\r\n pMesh.setMinimumLifeTime(500);\r\n pMesh.setMaximumLifeTime(500);\r\n pMesh.setStartColor(ColorRGBA.lightGray.clone());\r\n pMesh.setEndColor(ColorRGBA.black.clone());\r\n pMesh.setParticleSpinSpeed(180 * FastMath.DEG_TO_RAD);\r\n pMesh.getParticleController().setControlFlow(true);\r\n// pMesh.setReleaseRate(500);\r\n pMesh.forceRespawn();\r\n \r\n pMesh.setModelBound(new BoundingBox());\r\n pMesh.updateModelBound();\r\n pMesh.setCullHint(Spatial.CullHint.Never);\r\n\r\n // removes the missile from the scene after the particle trail has died\r\n pMesh.getParticleController().addListener(new OnDeadListener());\r\n pMesh.setRenderState(ts);\r\n pMesh.setRenderState(bs);\r\n pMesh.setRenderState(zs);\r\n \r\n missileTrails.add(pMesh);\r\n \r\n return pMesh;\r\n }",
"public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}",
"private void shoot() {\n }",
"private void shoot() {\n }",
"public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }",
"public AttackShip(Ship ship, Ship enemy, int initialSpeed ) {\n\t\t\tsuper(ship);\n\t\t\tthis.enemy = enemy;\n\t\t\tthis.speedToUse = initialSpeed;\n\t\t}",
"public static void vehicleShoot(Player curr, int owner) {\n boolean airShot = false;\n if (gameMode == EARTH_INVADERS) //so vehicles don't shoot each other\n airShot = true;\n if (numFrames >= curr.getLastShotTime() + curr.getReloadTime()) {\n int hd = curr.getHeadDirection();\n Bullet temp = null;\n int bulletSpeed = SPEED * 6;\n //find monster in sights\n int[] target = isMonsterInSight(curr);\n int mIndex = target[1];\n int detX = -1;\n int detY = -1;\n if (mIndex > 0) {\n detX = players[mIndex].findX(cellSize);\n detY = players[mIndex].findY(cellSize);\n if (players[mIndex].isFlying())\n airShot = true;\n }\n if (curr.getName().endsWith(\"missile\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 4;\n else\n bulletSpeed = SPEED * 3;\n temp = new Bullet(\"missile\" + hd, curr.getX(), curr.getY(), 50, rocketImages, SPEED, \"SHELL\", bulletSpeed, true, owner, detX, detY);\n } else if (curr.getName().endsWith(\"jeep\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 65, (int) (Math.random() * 10) + 30);\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 7;\n else\n bulletSpeed = SPEED * 6;\n temp = new Bullet(\"jeep\" + hd, curr.getX(), curr.getY(), 5, machBulletImages, SPEED, \"BULLET\", bulletSpeed, airShot, owner, -1, -1);\n } else if (curr.getName().endsWith(\"troops\") || curr.getName().endsWith(\"police\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 70, (int) (Math.random() * 10) + 20);\n temp = new Bullet(\"troops\" + hd, curr.getX(), curr.getY(), 3, bulletImages, SPEED, \"BULLET\", SPEED * 6, airShot, owner, -1, -1);\n } else if (curr.getName().endsWith(\"flame\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 15, (int) (Math.random() * 10) + 40);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 5;\n else\n bulletSpeed = SPEED * 4;\n temp = new Bullet(\"flame\" + hd, curr.getX(), curr.getY(), 15, monsterFireImages, SPEED, \"FIRE\", bulletSpeed, airShot, owner, -1, -1);\n } else {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 45, (int) (Math.random() * 10) + 85);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 6;\n else\n bulletSpeed = SPEED * 5;\n temp = new Bullet(\"\" + hd, curr.getX(), curr.getY(), 15, shellImages, SPEED, \"SHELL\", bulletSpeed, airShot, owner, -1, -1);\n }\n temp.setDirection(hd);\n if (temp != null) {\n bullets.add(temp);\n curr.setLastShotTime(numFrames);\n }\n if (bullets.size() > BULLET_LIMIT) //remove earliest fired bullet if we have more than the bullet limit\n {\n explosions.add(new Explosion(\"SMALL\", bullets.get(0).getX() - (cellSize / 2), bullets.get(0).getY() - (cellSize / 2), explosionImages, animation_delay));\n bullets.remove(0);\n }\n }\n }",
"public MotherShipUnit(String spriteImage, int x, int y, long id) {\r\n\r\n\t\tsuper(spriteImage, x, y);\r\n\t\tthis.id = id;\r\n\t\t//Set mothership speed\r\n\t\tdx = -80;\r\n\t}",
"@Override\r\n\tpublic void act() {\r\n\t\tdouble tankx, tanky;\r\n\t\ttankx = tank.getX();\r\n\t\ttanky = tank.getY();\r\n\t\t\r\n\t\t// If we're not in the center, rotate toward the center and move.\r\n\t\tif (tankx < 300 || tankx > 500 || tanky < 250 || tanky > 350) {\r\n\t\t\treceiver.receiveCommand(new RotateTowardsCommand(player, 400, 300));\r\n\t\t\treceiver.receiveCommand(new MoveCommand(player, false));\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// We are in the center. Just move the gun around and shoot.\r\n\t\t\treceiver.receiveCommand(new RotateGunCommand2(player, 0.05));\r\n\t\t\treceiver.receiveCommand(new FireCommand(player));\r\n\t\t}\r\n\t}",
"public Character(String name, int armor, int attack, int stamina, int speed, int luck, \r\n\t File imagePath) {\r\n\t\t\tthis.name.set(name);\r\n\t\t\tthis.armor.set(armor);\r\n\t\t\tthis.attack.set(attack);\t\r\n\t\t\tthis.stamina.set(stamina);\r\n\t\t\tthis.speed.set(speed);\r\n\t\t\tthis.luck.set(luck);\r\n\t\t\tportrait = imagePath;\r\n\t\t\tthis.level.set((armor + attack + stamina + speed + luck) / 100);\r\n\t}",
"public void MarioInit() {\n\t\tcurrentLevel = levelOne;\n\t\tMario = new Entity(100, 400, 27, 50, Id.player, playerGImage);\n\t\tPhysics = new PhysicsEngine (Mario);\n\t\tPhysics.windowWidth = WINDOW_WIDTH;\n\t\tPhysics.setWinningSpace(currentLevel.winningSpace);\n\t\tfor (Entity a: currentLevel.hitboxes) {\n\t\t\tPhysics.addImmovable(a);\n\t\t}\n\t\tMario.xVel = 0;\n\t\tMario.yVel = 0;\n\t\tMario.xVelMax = 6;\n\t\tMario.yVelMax = 10;\n\t\tMario.xDirection = Mario.yDirection = Mario.lastDirection = \"\";\n\t}",
"public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }",
"@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}",
"public void initMob() {\n this.lLegGeom.setName(\"Mob/\" + this.id + \"/lLeg\");\n this.rLegGeom.setName(\"Mob/\" + this.id + \"/rLeg\");\n this.bodyGeom.setName(\"Mob/\" + this.id + \"/Body\");\n this.lArmGeom.setName(\"Mob/\" + this.id + \"/lArm\");\n this.rArmGeom.setName(\"Mob/\" + this.id + \"/rArm\");\n this.headGeom.setName(\"Mob/\" + this.id + \"/Head\");\n this.weaponGeom.setName(\"Mob/\" + this.id + \"/Weapon\"); \n \n this.armMat.setColor(\"Color\",ColorRGBA.Black);\n this.legMat.setColor(\"Color\",ColorRGBA.Black);\n this.bodyMat.setColor(\"Color\",ColorRGBA.Black);\n \n //Refactor boss ActorControl into MobControl with MonkeyBrains\n CapsuleCollisionShape capsuleShape = new CapsuleCollisionShape(2.5f,4.5f,1);\n this.mobControl = new CharacterControl(capsuleShape, 3f);//Step size is set in last argument\n this.mobControl.setJumpSpeed(20);\n this.mobControl.setFallSpeed(45);\n this.mobControl.setGravity(50);\n \n }",
"public ShotEnemy(int x, int y, ID id, int health, int speed) {\n super(x, y, id);\n loader = new BufferedImageLoader();\n bulletImage = loader.loadImage(\"../Assets/Bullet.png\");\n left = Game.getInstance(15).getEnemySprites().get(70);\n right = Game.getInstance(16).getEnemySprites().get(71);\n this.hp += health;\n this.speed = speed;\n }",
"public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}",
"public Item(ItemType type, double x, double y, TileMap tm) {\n super(tm);\n this.type = type;\n\n this.x = x;\n this.y = y;\n\n moveSpeed = 0;\n maxSpeed = 0;\n fallSpeed = 1;\n maxFallSpeed = 1;\n\n width = 20;\n height = 15;\n cWidth = 15;\n cHeight = 10;\n\n loadSprites(type.getSprites());\n\n animation = new Animation();\n animation.setFrames(sprites);\n animation.setDelay(300);\n\n right = true;\n facingRight = true;\n gathered = false;\n\n }",
"public void move(){\n switch(image){\n case 0: // Case 0: Ant moves up/north. If the ant hits the top of the screen the ant will appear at the bottom of it\n this.position[0] -= 1;\n if(this.position[0] < 0){\n this.position[0] = 19;\n }\n break;\n case 1: // Case 1: Ant moves right/east. If the ant hits the right border of the screen the ant will appear at the left border of it\n this.position[1] += 1;\n if(this.position[1] == 20){\n this.position[1] = 0;\n }\n break;\n case 2: // Case 2: Ant moves down/south. If the ant hits the top of the screen the ant will appear at the bottom of it\n this.position[0] += 1;\n if(this.position[0] == 20){\n this.position[0] = 0;\n }\n break;\n case 3: // Case 3: Ant moves left/west. If the ant hits the left border of the screen the ant will appear at the right border of it\n this.position[1] -= 1;\n if(this.position[1] < 0){\n this.position[1] = 19;\n }\n break;\n default: // Default: This shouldn't happen on a normal run. It prints an error.\n System.err.println(\"Something went wrong while the ant was trying to move\");\n }\n }",
"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 }",
"public Spaeti(int pos_x, int pos_y, Enums.Direction direction) {\n super(pos_x, pos_y);\n this.direction = direction;\n this.rechargeDuration = 15;\n try {\n this.image_on = new Image(\"/res/img/objects/spaeti_on.png\");\n this.image_off = new Image(\"/res/img/objects/spaeti_off.png\");\n this.image_on.rotate(GameUtils.getImageRotationFromDirection(direction));\n this.image_off.rotate(GameUtils.getImageRotationFromDirection(direction));\n this.image = image_on;\n } catch (SlickException e) {\n e.printStackTrace();\n }\n }",
"public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }",
"public Bullet(int bulletsDamage, @NotNull String bulletsType, Coordinate centerPointCoordinate, double angle, TankTroubleMap tankTroubleMap, boolean isUserTank, int tankIndex) {\n this.isUserTank = isUserTank;\n this.tankIndex = tankIndex;\n this.centerPointCoordinate = centerPointCoordinate;\n updateArrayListCoordinates();\n bulletsBlasted = false;\n damage = bulletsDamage;\n this.tankTroubleMap = tankTroubleMap;\n if (bulletsType.equals(\"NORMAL\")) {\n try {\n bulletsImage = ImageIO.read(new File(\"kit/bullet/normal.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if (bulletsType.equals(\"LASER\")) { // ba else nazadam yevakht khastim emtiazi ezafe konim ye golule\n try {\n bulletsImage = ImageIO.read(new File(\"kit/bullet/laser.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n this.angle = angle;\n\n fireTime = LocalDateTime.now();\n Thread thread = new Thread(() -> {\n try {\n Thread.sleep(4000);\n bulletsBlasted = true;\n for (Bullet bullet : tankTroubleMap.getBullets()) {\n if (bullet.bulletsBlasted) tankTroubleMap.getBullets().remove(bullet);\n break;\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n });\n thread.start();\n\n }",
"public void init(){\n hp = DEFAULT_MAX_HEALTH;\n bulletsFired = new ArrayList<>();\n initial_y = -1;\n\n //Sets the byte to identify the state of movement\n //For animation purposes in the renderer\n //0 = stationary\n //1 = jumping\n //2 = moving left\n //3 = jumping left\n //4 = right\n //5 = Jumping right\n //6 = crouching\n //8 = crouching left\n //10 = crouching right\n stateOfMovement = 0;\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}",
"private void shoot(float angle) {\n\t\tfloat arc = FIRING_ARC;\n\t\tif (weapon instanceof BanditTripleShot)\n\t\t\tarc *= 2;\n\t\t\t\n\t\tif (angle < FIRING_ARC && angle > - FIRING_ARC) {\n\t\t\t//System.out.println(\"BANDIT: shooting\");\n\t\t\tweapon.shoot();\n\t\t}\n\t}",
"@Override\n public void commandAddMonster(int id, String name, float x, float y, int gameLevel, int hp, int mp, int power,\n Direction direction, String imgRef)\n {\n }",
"public EnchantArrow(Projectile entity, int level) {\r\n this(entity, level, 1f);\r\n }",
"public void fire() {\n \tAlienMissile.Slope slps[] = {AlienMissile.Slope.ShallowLeft, \n AlienMissile.Slope.Down,\n AlienMissile.Slope.ShallowRight};\n for (AlienMissile.Slope i : slps) {\n AlienMissile m = new AlienMissile(this, i);\n m.setBounce(true, health/5);\n list.add(m);\n }\n }",
"public void shoot(Graphics g) {\r\n\t\tlevelManager.shoot(g);\r\n\t}",
"public Bullet fireCannon0(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+225));\r\n\t}",
"private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}",
"void shoot();",
"public ShootSmart(Delivery delivery, Shooter shooter) {\n addRequirements(delivery, shooter);\n this.delivery = delivery;\n this.shooter = shooter;\n }",
"public SpinUpFlywheelManual(Shooter shooter, double speed) {\n this.shooter = shooter;\n this.speed = speed;\n\n addRequirements(shooter);\n }",
"public void shoot() {\n\r\n switch (shootstate) {\r\n case down:\r\n tempbutton = Components.shootsinglespeed;\r\n templimit = islimitshooterup();\r\n\r\n if (Components.shootsinglespeed && islimitshooterup() && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(singlespeed);\r\n Components.shootermotorleft2.setX(singlespeed);\r\n Components.shootermotorright.setX(-singlespeed);\r\n Components.shootermotorright2.setX(-singlespeed);\r\n\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n\r\n }\r\n shootpothigh = shootsinglepot;\r\n shootstate = movingup;\r\n } else if (Components.trusshp == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trusshpspeed);\r\n Components.shootermotorleft2.setX(trusshpspeed);\r\n Components.shootermotorright.setX(-trusshpspeed);\r\n Components.shootermotorright2.setX(-trusshpspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusshppothigh;\r\n shootstate = movingup;\r\n }else if (Components.truss == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trussspeed);\r\n Components.shootermotorleft2.setX(trussspeed);\r\n Components.shootermotorright.setX(-trussspeed);\r\n Components.shootermotorright2.setX(-trussspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusspothigh;\r\n shootstate = movingup;\r\n } else if (Components.pass == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(passspeed);\r\n Components.shootermotorleft2.setX(passspeed);\r\n Components.shootermotorright.setX(-passspeed);\r\n Components.shootermotorright2.setX(-passspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = passpot;\r\n shootstate = movingup;\r\n } else if (Components.longdistanceshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(longdistancespeed);\r\n Components.shootermotorleft2.setX(longdistancespeed);\r\n Components.shootermotorright.setX(-longdistancespeed);\r\n Components.shootermotorright2.setX(-longdistancespeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = longdistancepot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.shoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(shooterspeed);\r\n Components.shootermotorleft2.setX(shooterspeed);\r\n Components.shootermotorright.setX(-shooterspeed);\r\n Components.shootermotorright2.setX(-shooterspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = shootpot;\r\n shootstate = movingup;\r\n }else if (Components.slowmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(slowmovingspeed);\r\n Components.shootermotorleft2.setX(slowmovingspeed);\r\n Components.shootermotorright.setX(-slowmovingspeed);\r\n Components.shootermotorright2.setX(-slowmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n slowmovingpot = shootpot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.fastmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(fastmovingspeed);\r\n Components.shootermotorleft2.setX(fastmovingspeed);\r\n Components.shootermotorright.setX(-fastmovingspeed);\r\n Components.shootermotorright2.setX(-fastmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n fastmovingpot = shootpot;\r\n\r\n }\r\n case movingup:\r\n if (islimitshooterup() == false || Components.potvalue >= shootpothigh) {\r\n shootstate = stopped;\r\n oldTime = DS.getMatchTime();\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n break;\r\n\r\n case stopped:\r\n try {\r\n if (/*Components.shooterdown && */time - oldTime > .2 && islimitshooterdown() == true && Components.DownPickupLimit.get()) {\r\n\r\n Components.shootermotorleft.setX(shootdownspeed);\r\n Components.shootermotorleft2.setX(shootdownspeed);\r\n\r\n Components.shootermotorright.setX(-shootdownspeed);\r\n Components.shootermotorright2.setX(-shootdownspeed);\r\n\r\n shootstate = movingdown;\r\n }\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n break;\r\n\r\n case movingdown:\r\n if ((islimitshooterdown() == false) || (Components.potvalue < shootpotdown)) {\r\n\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootstate = down;\r\n }\r\n }\r\n }",
"public Shot(int damage, Point position, String imageFile) {\n this(damage, 0, 0, position, imageFile);\n }",
"@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }",
"public Moving(Vector2D position, float width, float height, float targetSpd, float thrust, BoundsType type,\n\t\t\tRender mainRender, ID id)\n\t{\n\t\tsuper(position, width, height, mainRender, id);\n\t\tvelocity = new Vector2D();\n\t\tacceleration = new Vector2D();\n\t\tsetTargetSpd(targetSpd);\n\t\tsetThrust(thrust);\n\t\tthis.bm = new BoundsManager(type);\n\t\t\n\t\tif (bm.getBounds().length == 1) {\n\t\t\tbm.update(position, width, height);\n\t\t\tsetMass(bm.getBounds());\n\t\t}\n\t}",
"private void moveLaser() {\r\n\t\tif(laser != null) {\r\n\t\t\tlaser.move(-FIREBALL_SPEED, 0);\r\n\t\t\t//checkWeaponCollisions(laser);\r\n\t\t\tlaserCollisions();\r\n\t\t\tmoveOffScreen(laser);\r\n\t\t}\r\n\t}",
"public Hero(Position position) {\n this.position = position;\n hp = PV_BASE;\n atk = 1;\n status = Status.STANDING;\n buffs = new ArrayList<>();\n orientation = Orientation.DOWN;\n }",
"public void move(int tick) {\n moveMade = true;\n Location newTail;\n if (grow) {\n\n switch (body.getLast().direction) {\n case RIGHT:\n newTail = new Location(body.getLast().locX - GraphicsBounds.spriteSize,\n body.getLast().locY, body.getLast().direction);\n break;\n case LEFT:\n newTail = new Location(body.getLast().locX + GraphicsBounds.spriteSize,\n body.getLast().locY, body.getLast().direction);\n break;\n case UP:\n newTail = new Location(body.getLast().locX, body.getLast().locY\n + GraphicsBounds.spriteSize, body.getLast().direction);\n break;\n case DOWN:\n newTail = new Location(body.getLast().locX, body.getLast().locY\n - GraphicsBounds.spriteSize, body.getLast().direction);\n break;\n default:\n newTail = new Location(0,0);\n break;\n\n }\n\n\n body.addLast(newTail);\n }\n\n for (int i = body.size() - 1; i > 0; i--) {\n body.get(i).direction = body.get(i - 1).direction;\n }\n\n switch (direction) {\n case RIGHT:\n body.getFirst().direction = Direction.RIGHT;\n break;\n case LEFT:\n body.getFirst().direction = Direction.LEFT;\n break;\n case UP:\n body.getFirst().direction = Direction.UP;\n break;\n case DOWN:\n body.getFirst().direction = Direction.DOWN;\n break;\n default:\n break;\n }\n\n\n\n for (int i = body.size() - 1; i >= 0; i--) {\n Direction dir = body.get(i).direction;\n Location segment = body.get(i);\n switch (dir) {\n case RIGHT:\n segment.locX += snakeSpeed;\n break;\n case LEFT:\n segment.locX -= snakeSpeed;\n break;\n case UP:\n segment.locY -= snakeSpeed;\n break;\n case DOWN:\n segment.locY += snakeSpeed;\n break;\n default:\n break;\n }\n }\n\n\n\n grow = false;\n }",
"public MonkeyTower(MonkeyTowerType type, Floor startingFloor, CopyOnWriteArrayList<Balloon> balloons) {\r\n\t\tthis.x = startingFloor.getxPos();\r\n\t\tthis.y = startingFloor.getyPos();\r\n\t\tthis.width = type.textures[0].getImageWidth();\r\n\t\tthis.height = type.textures[0].getImageHeight();\r\n\t\t// this.target = target;\r\n\t\tthis.timeSinceLastShot = 0f;\r\n\t\tthis.darts = new ArrayList<Dart>();\r\n\t\tthis.damage = type.damage;\r\n\t\tthis.textures = type.textures;\r\n\t\tthis.balloons = balloons;\r\n\t\tthis.targeted = false;\r\n\t\tthis.range = type.range;\r\n\t\tthis.firingSpeed = type.firingSpeed;\r\n\t\tthis.angle = 0f;\r\n\t\tthis.type = type;\r\n\t\tthis.dart = DartType.NormalDart;\r\n\t\tSystem.out.println(\"Image: \" + type.textures[0].getImageWidth() + \" \" + type.textures[0].getImageHeight());\r\n\t}",
"public abstract void addArrowObject(ShortPoint2D attackedPos, ShortPoint2D shooterPos, byte shooterPlayerId, float hitStrength);"
] | [
"0.5699286",
"0.5658725",
"0.5459751",
"0.5457073",
"0.5400131",
"0.5356508",
"0.5338378",
"0.5307535",
"0.5278913",
"0.5244421",
"0.5243188",
"0.5210555",
"0.5187514",
"0.51870745",
"0.5181502",
"0.51527536",
"0.51455486",
"0.51411",
"0.5132679",
"0.5132452",
"0.5080393",
"0.5048552",
"0.5030691",
"0.50227255",
"0.50207996",
"0.50165457",
"0.5015856",
"0.5007552",
"0.49742636",
"0.49738097",
"0.49699435",
"0.49414873",
"0.4941016",
"0.4940109",
"0.49252522",
"0.4922088",
"0.4920207",
"0.49176857",
"0.49087423",
"0.49076566",
"0.4898457",
"0.4887462",
"0.4883406",
"0.48824486",
"0.48788196",
"0.48706707",
"0.48656997",
"0.48638085",
"0.48557195",
"0.4854876",
"0.4854048",
"0.4833568",
"0.48251945",
"0.48250842",
"0.48205492",
"0.48203245",
"0.4816082",
"0.48062477",
"0.4799072",
"0.47921067",
"0.47921067",
"0.4786342",
"0.47830287",
"0.4782319",
"0.47820532",
"0.47708368",
"0.476534",
"0.47605774",
"0.47590306",
"0.47497457",
"0.4747705",
"0.47430274",
"0.47400823",
"0.4736549",
"0.47323686",
"0.47314858",
"0.47216523",
"0.47186813",
"0.4705238",
"0.47036567",
"0.4703467",
"0.4694995",
"0.4690554",
"0.4683469",
"0.46783987",
"0.46773055",
"0.46708047",
"0.46691537",
"0.46677783",
"0.4667161",
"0.466611",
"0.46645615",
"0.46623778",
"0.46623388",
"0.46580413",
"0.46541327",
"0.46506816",
"0.46491042",
"0.46489972",
"0.46480682"
] | 0.548685 | 2 |
MODIFIES: This: The maser's current sector and tail, and flag of hitting. EFFECTS: Checks what is in the next sector; puts the maser into the next sector if it's empty; bumps the object in the next sector if the next sector contains any; removes one piece of the maser's tail if the maser has bumped or reached the quadrant border; destroys the maser if its tail is completely removed. | @Override
public void move(){
Sector tail = null;
if(hit){
tail = getNext();
if(tail == null){
selfDestruct();
} else {
sector.setInhabitant(null);
}
return;
}
sectors.add(sector);
Sector nextSector = quadrant.getNext(sector, velocity[0]);
if(nextSector == null){
hit = true;
} else {
SpaceObject object = nextSector.getInhabitant();
if(object != null) {
object.bump(this);
} else {
setSector(nextSector);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }",
"public void effect() {\n if (course == 2) {\n //RIGHT\n x += fac;\n } else if (course == 5) {\n //LEFT\n x -= fac;\n } else {\n y = (int)(origY + fac * f * Math.tan(angle)) + offsetY;\n x = (int)(origX + fac * f) + offsetX;\n }\n boolean b = computeCell();\n\n if (b) {\n //Detect ennemy\n if (current != null) {\n Player p = current.getOccupied();\n if (p != null && p != thrower) {\n p.makeHimWait((Params.howLongBlockingMagician * 1000) / 2);\n this.destroy();\n }\n }\n }\n //Detect ennemy's cell\n if (current != null) {\n Team te = current.getOwner();\n if (te != thrower.getTeam() && current.getType() == 1) {\n current.setHp(current.getHp() - Params.archerDammage);\n if (current.getHp() <= 0) {\n current.setOwner(thrower.getTeam());\n current.setHp(thrower.getInitHP());\n }\n }\n if (current.isHeight()) {\n this.destroy();\n }\n } else {\n int bound = 10;\n //System.out.println(game.getWidth());\n if (this.x < -bound || this.x > game.getWidth() + bound || this.y < -bound ||\n this.y > game.getHeight() + bound) {\n this.destroy();\n }\n }\n\n f++;\n }",
"public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }",
"private final void segmentsFrameEffects() {\n\t\tif (alive) {\n\t\t\tint i;\n\t\t\t// Energy obtained through photosynthesis\n\t\t\tdouble photosynthesis = 0;\n\t\t\t_nChildren = 1;\n\t\t\t_indigo =0;\n\t\t\t_lowmaintenance =0;\n\t\t\tint fertility =0;\n\t\t\tint yellowCounter =0;\n\t\t\tint reproduceearly =0;\n\t\t\tdouble goldenage =0;\n\t\t\t_isfrozen =false;\n\t\t\tboolean trigger =false;\n\t\t\tfor (i=_segments-1; i>=0; i--) {\n\t\t\t\t// Manteniment\n\t\t\t\tswitch (getTypeColor(_segColor[i])) {\n\t\t\t\t// \tMovement\n\t\t\t\tcase CYAN:\n\t\t\t\t\tif (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tdx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\tdy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEAL:\n\t\t\t\t\tif (_geneticCode.getPassive()) {\n\t\t\t\t\t\tif (_hasdodged == false) {\n\t\t\t\t\t\t\t_dodge =true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\t} else \n\t\t\t\t\t if (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Photosynthesis\n\t\t\t\tcase SPRING:\n\t\t\t\t\t if (_geneticCode.getClockwise()) {\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+0.1*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t\t photosynthesis += Utils.SPRING_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t} else {\n\t\t\t\t\t dtheta=Utils.between(dtheta-0.1*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t photosynthesis += Utils.SPRING_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIME:\n\t\t\t\t\tif (trigger == false) {\n\t\t\t\t\t\ttrigger =true;\n\t\t\t\t\t if (_world.fastCheckHit(this) != null) {\n\t\t\t\t\t \t_crowded =true;\n\t\t\t\t\t } else {\n\t\t\t\t\t \t_crowded =false;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tif (_crowded == true) {\n\t\t\t\t\t photosynthesis += Utils.CROWDEDLIME_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphotosynthesis += Utils.LIME_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase JADE:\n\t\t\t\t\t_isjade =true;\n\t\t\t\t\tphotosynthesis += Utils.JADE_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase GREEN:\n\t\t\t\t\tphotosynthesis += Utils.GREEN_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase FOREST:\n\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase BARK:\n\t\t\t\t\tphotosynthesis += Utils.BARK_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRASS:\n\t\t\t\t\tphotosynthesis += Utils.GRASS_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase C4:\n\t\t\t\t\t_lowmaintenance += _m[i];\n\t\t\t\t\tphotosynthesis += Utils.C4_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// is a consumer\n\t\t\t\tcase RED:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FIRE:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase ORANGE:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase MAROON:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase PINK:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tif (_isakiller < 2) {\n\t\t\t\t\t\t_lowmaintenance += 0.8 * _m[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase CREAM:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with yellow segments have more children\n\t\t\t\tcase YELLOW:\n\t\t\t\t\tyellowCounter++;\n\t\t\t\t\tfertility += _m[i];\n\t\t\t\t break;\n\t\t\t\t// Experienced parents have more children\n\t\t\t\tcase SILVER:\n\t\t\t\t\tif (_isaconsumer == false) {\n\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t\tcase GRAY:\n\t\t\t\t\t\tcase LILAC:\n\t\t\t\t\t\tcase SPIKE:\n\t\t\t\t\t\tcase PLAGUE:\n\t\t\t\t\t\tcase CORAL:\n\t\t\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t}}}\n\t\t\t\t\t if (_nTotalChildren >= 1 && _nTotalChildren < 5) {\n\t\t\t\t\t\t_nChildren = 2; \n\t\t\t\t\t} else if (_nTotalChildren >= 5 && _nTotalChildren < 14) {\n\t\t\t\t\t\t_nChildren = 3; \n\t\t\t\t\t} else if (_nTotalChildren >= 14 && _nTotalChildren < 30) {\n\t\t\t\t\t\t_nChildren = 4; \n\t\t\t\t\t} else if (_nTotalChildren >= 30 && _nTotalChildren < 55) {\n\t\t\t\t\t\t_nChildren = 5;\n\t\t\t\t\t} else if (_nTotalChildren >= 55 && _nTotalChildren < 91) {\n\t\t\t\t\t _nChildren = 6;\n\t\t\t\t\t} else if (_nTotalChildren >= 91 && _nTotalChildren < 140) {\n\t\t\t\t\t\t_nChildren = 7; \n\t\t\t\t\t} else if (_nTotalChildren >= 140) {\n\t\t\t\t\t\t_nChildren = 8;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Auburn always has one real child if infected\n\t\t\t\tcase AUBURN:\n\t\t\t\t\t_isauburn =true;\n\t\t\t\t\t_lowmaintenance += _m[i] - (Utils.AUBURN_ENERGY_CONSUMPTION * _m[i]);\n\t\t\t\t\tif (_infectedGeneticCode != null && _nChildren == 1) {\n\t\t\t\t\t\t_nChildren = 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with blond segments reproduce earlier\n\t\t\t\tcase BLOND:\n\t\t\t\t\treproduceearly += 3 + _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with indigo segments reduce the energy the new born virus receives\n\t\t\t\tcase INDIGO:\n\t\t\t\t\t_indigo += _m[i];\n\t\t\t\t\t_lowmaintenance += 0.8 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Plague forces an organism to reproduce the virus\n\t\t\t\tcase PLAGUE:\n\t\t\t\t\t_isplague =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Coral transforms particles and viruses\n\t\t\t\tcase CORAL:\n\t\t\t\t\t_iscoral =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Mint immunity against infections\t\n\t\t\t\tcase MINT:\n\t\t\t\t\t_isantiviral =true;\n\t\t\t\t\tif (_infectedGeneticCode != null && Utils.random.nextInt(Utils.IMMUNE_SYSTEM)<=_m[i] && useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_infectedGeneticCode = null;\n\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Healing\n\t\t\t\tcase MAGENTA:\n\t\t\t\t _isregenerative =true;\n\t\t\t\t for (int j = 0; j < _segments; j++) {\n\t\t\t\t if ((_segColor[j] == Utils.ColorLIGHTBROWN) || (_segColor[j] == Utils.ColorGREENBROWN) || (_segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t|| (_segColor[j] == Utils.ColorBROKEN) || (_segColor[j] == Utils.ColorLIGHT_BLUE) || (_segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t|| (_segColor[j] == Utils.ColorDARKJADE) || (_segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t\tif (Utils.random.nextInt(Utils.HEALING)<=_m[i] && useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t _segColor[j] = _geneticCode.getGene(j%_geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t}}}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKFIRE:\n\t\t\t\t\tif (Utils.random.nextInt(100)<_geneticCode.getSymmetry() && useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_segColor[i] = _geneticCode.getGene(i%_geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKJADE:\n\t\t\t\t\t_isjade =true;\n\t\t\t\t\tif (Utils.random.nextInt(Utils.DARKJADE_DELAY * _geneticCode.getSymmetry() * _geneticCode.getSymmetry())<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorJADE; \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Normalize spike\n\t\t\t\tcase SPIKEPOINT:\n\t\t\t\t\t_segColor[i] = Utils.ColorSPIKE;\n\t\t\t\t\tbreak;\n\t\t\t\t// is a killer\n\t\t\t\tcase SPIKE:\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t}\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LILAC:\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRAY:\n\t\t\t\t\tif (_isakiller < 2) {\n\t\t\t\t\t _isakiller = 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// is poisonous\n\t\t\t\tcase VIOLET:\n\t\t\t\t\t_ispoisonous =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// is a freezer\n\t\t\t\tcase SKY:\n\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// is enhanced\n\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t_isenhanced =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Energy transfer\n\t\t\t\tcase ROSE:\n\t\t\t\t\t_lowmaintenance += 0.99 * _m[i];\n\t\t\t\t\tif (_transfersenergy == false) {\n\t\t\t\t\t\t_transfersenergy =true;\n\t\t\t\t\t _lengthfriend = _geneticCode.getGene(i%_geneticCode.getNGenes()).getLength();\n\t\t\t\t\t _thetafriend = _geneticCode.getGene(i%_geneticCode.getNGenes()).getTheta();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Low maintenance\n\t\t\t\tcase DARK:\n\t\t\t\t\t_lowmaintenance += 0.99 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with gold segments live longer\n\t\t\t\tcase GOLD:\n\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\tgoldenage += (_m[i]/Utils.GOLD_DIVISOR);\n\t\t\t\t\t_geneticCode._max_age = Utils.MAX_AGE + ((_geneticCode.getNGenes() * _geneticCode.getSymmetry())/Utils.AGE_DIVISOR) + (int)goldenage;\n\t\t\t\t\tbreak;\n\t\t\t\t// is weakened\n\t\t\t\tcase LIGHTBROWN:\n\t\t\t\tcase GREENBROWN:\n\t\t\t\tcase POISONEDJADE:\n\t\t\t\t\tif (_remember) {\n\t\t\t\t\t\t_isjade =false;\n\t\t\t\t\t\t_isenhanced =false;\n\t\t\t\t\t\t_isantiviral =false;\n\t\t\t\t\t\t_isregenerative =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t\t\t\t_isenhanced =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MINT:\n\t\t\t\t\t\t\t\t_isantiviral =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MAGENTA:\n\t\t\t\t\t\t\t\t_isregenerative =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t _geneticCode._max_age = Utils.MAX_AGE + ((_geneticCode.getNGenes() * _geneticCode.getSymmetry())/Utils.AGE_DIVISOR) + (int)goldenage;\n\t\t\t\t\t _remember =false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIGHT_BLUE:\n\t\t\t\t\tif (_isafreezer) {\n\t\t\t\t\t\t_isafreezer =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase SKY:\n\t\t\t\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// is frozen\n\t\t\t\tcase ICE:\n\t\t\t\t\t_isfrozen =true;\n\t\t\t\t\tif (_isjade) {\n\t\t\t\t\t\t_isjade =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEADBARK:\n\t\t\t\t\t_isfrozen =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Restore abilities\n\t\t\t\tcase DARKLILAC:\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (Utils.random.nextInt(100)<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorLILAC;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\tif (Utils.random.nextInt(100)<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorSKY;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKOLIVE:\n\t\t\t\t\tif (Utils.random.nextInt(100)<8 && useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorOLIVE;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Reset dodging\n\t\t\tif (_hasdodged == true) {\n\t\t\t\t_dodge =false;\n\t\t\t\t_hasdodged =false;\n\t\t\t}\n\t\t\t//Get sun's energy\n\t\t\tif (photosynthesis > 0) {\n\t\t\t\t_isaplant =true;\n\t\t\t _energy += _world.photosynthesis(photosynthesis);\t\t\t\n\t\t\t}\n\t\t\t// Calculate number of children\n\t\t\tif (fertility > 0) {\n\t\t\t\tif (_geneticCode.getSymmetry() != 3) {\n\t\t\t\t _nChildren += (yellowCounter / _geneticCode.getSymmetry()) + (fertility / 23);\n\t\t\t } else {\n\t\t\t \t_nChildren += (yellowCounter / _geneticCode.getSymmetry()) + (fertility / 34);\n\t\t\t }\n\t\t\t}\n\t\t\t// Calculate reproduction energy for blond segments\n\t\t\tif ((reproduceearly > 0) && (_infectedGeneticCode == null)) {\n\t\t\t\tif (_energy > _geneticCode.getReproduceEnergy() - reproduceearly + Utils.YELLOW_ENERGY_CONSUMPTION*(_nChildren-1)) {\n\t\t\t\t\tif ((!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\tif ((_energy >= 10) && (_growthRatio<16) && (useEnergy(Utils.BLOND_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t_nChildren = 1;\n\t\t\t\t\t _geneticCode._reproduceEnergy = Math.max((40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry()) - reproduceearly, 10);\n\t\t\t\t\t reproduce();\n\t\t\t\t\t _geneticCode._reproduceEnergy = 40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry();\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((_energy >= 30) && (_growthRatio==1) && (_timeToReproduce==0) && (useEnergy(Utils.BLOND_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t _geneticCode._reproduceEnergy = Math.max((40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry()) - reproduceearly, 30);\n\t\t\t\t\t\t reproduce();\n\t\t\t\t\t\t _geneticCode._reproduceEnergy = 40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry();\t\t\t\t\t\t\t\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}",
"public void onUpdate()\n {\n super.onUpdate();\n this.jumpMovementFactor = 0.0F;\n this.renderYawOffset = this.rotationPitch = this.rotationYaw = 0.0F;\n\n if (this.target != null && this.target instanceof EntityLiving)\n {\n EntityLiving var1 = (EntityLiving) this.target;\n\n if (var1.getHealth() <= 0 || !this.canEntityBeSeen(var1))\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n } else\n {\n if (this.target != null && this.target.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n\n if (this.target == null)\n {\n this.target = this.worldObj.getClosestPlayerToEntity(this, -1.0D);\n\n if (this.target == null)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n\n return;\n }\n }\n }\n\n if (this.posX == (double) this.getOrgX() && this.posY == (double) this.getOrgY() && this.posZ == (double) this.getOrgZ())\n {\n if (!this.isReformed())\n {\n this.setReformed(true);\n }\n\n this.stop();\n this.moveTimer = 0;\n }\n\n if (this.slider == null)\n {\n Vec3 var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n MovingObjectPosition var18 = this.worldObj.rayTraceBlocks(var16, var2);\n var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n if (var18 != null)\n {\n var2 = Vec3.createVectorHelper(var18.hitVec.xCoord, var18.hitVec.yCoord, var18.hitVec.zCoord);\n }\n\n if (!this.worldObj.isRemote)\n {\n Object var4 = null;\n List var15 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(4.0D, 4.0D, 4.0D));\n double var6 = 0.0D;\n\n for (int var8 = 0; var8 < var15.size(); ++var8)\n {\n Entity var9 = (Entity) var15.get(var8);\n\n if (var9.canBeCollidedWith() && var9 != this)\n {\n float var10 = 0.3F;\n\n if (var9 instanceof EntitySlider)\n {\n this.slider = (EntitySlider) var9;\n var18 = null;\n }\n\n AxisAlignedBB var11 = var9.boundingBox.expand((double) var10, (double) var10, (double) var10);\n MovingObjectPosition var12 = var11.calculateIntercept(var16, var2);\n\n if (var12 != null)\n {\n double var13 = var16.distanceTo(var12.hitVec);\n\n if (var13 < var6 || var6 == 0.0D)\n {\n var6 = var13;\n }\n }\n }\n }\n }\n\n if (this.slider == null || this.slider.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n }\n } else if (this.slider.target != this.target)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n } else\n {\n this.fallDistance = 0.0F;\n double var17;\n double var5;\n double var3;\n\n if (this.gotMovement)\n {\n if (this.isCollided)\n {\n var17 = this.posX - 0.5D;\n var3 = this.boundingBox.minY + 0.75D;\n var5 = this.posZ - 0.5D;\n\n if (this.crushed)\n {\n this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, \"random.explode\", 3.0F, (0.625F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n }\n\n this.stop();\n } else\n {\n if (this.speedy < 2.0F)\n {\n this.speedy += 0.035F;\n }\n\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n\n if (this.direction == 0)\n {\n this.motionY = (double) this.speedy;\n\n if (this.boundingBox.minY > (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY + 0.35D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 1)\n {\n this.motionY = (double) (-this.speedy);\n\n if (this.boundingBox.minY < (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY - 0.25D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 2)\n {\n this.motionX = (double) this.speedy;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 3)\n {\n this.motionX = (double) (-this.speedy);\n\n if (this.posX < (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 4)\n {\n this.motionZ = (double) this.speedy;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 5)\n {\n this.motionZ = (double) (-this.speedy);\n\n if (this.posZ < (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n }\n }\n } else\n {\n this.motionY = 0.0D;\n\n if (this.moveTimer > 0)\n {\n --this.moveTimer;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n } else\n {\n var17 = Math.abs(this.posX - (this.reform ? (double) this.getOrgX() : this.target.posX));\n var3 = Math.abs(this.boundingBox.minY - (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY));\n var5 = Math.abs(this.posZ - (this.reform ? (double) this.getOrgZ() : this.target.posZ));\n\n if (var17 > var5)\n {\n this.direction = 2;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX))\n {\n this.direction = 3;\n }\n } else\n {\n this.direction = 4;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ))\n {\n this.direction = 5;\n }\n }\n\n if (var3 > var17 && var3 > var5 || var3 > 0.25D && this.rand.nextInt(5) == 0)\n {\n this.direction = 0;\n\n if (this.posY > (this.reform ? (double) this.getOrgY() : this.target.posY))\n {\n this.direction = 1;\n }\n }\n\n this.gotMovement = true;\n }\n }\n\n if (this.harvey > 0.01F)\n {\n this.harvey *= 0.8F;\n }\n }\n }",
"private void handleMazeCollisions() {\n final ArrayList<Rectangle> segs = maze.getCollisionCandidates(getCenter());\n\n for (int i = 0; i < segs.size(); i++) {\n if (!checkCollision(segs.get(i).getPolygon())) {\n // The tank does not intersect the seg.\n segs.remove(i);\n i--;\n }\n }\n\n if (segs.size() == 0) {\n // The tank does not intersect any of the segs.\n return;\n }\n\n Runnable reverseOp = null;\n // Backtrack.\n final Tank tank = this;\n // Need to declare this up here instead of in each case because java's switch cases share scope. So java would think\n // we are redeclaring a variable.\n final Point2D decomposedVelocity;\n switch (lastMovementOp) {\n case FORWARD:\n decomposedVelocity = Physics.decomposeVector(-1, theta);\n reverseOp = () -> tank.moveBy(decomposedVelocity);\n break;\n case REVERSE:\n decomposedVelocity = Physics.decomposeVector(1, theta);\n reverseOp = () -> tank.moveBy(decomposedVelocity);\n break;\n case RIGHT:\n reverseOp = () -> tank.rotate(-TURNING_ANGLE / 12);\n break;\n case LEFT:\n reverseOp = () -> tank.rotate(TURNING_ANGLE / 12);\n break;\n }\n do {\n assert reverseOp != null;\n reverseOp.run();\n\n for (int i = 0; i < segs.size(); i++) {\n if (!checkCollision(segs.get(i).getPolygon())) {\n segs.remove(i);\n i--;\n }\n }\n } while (segs.size() > 0);\n }",
"private void decorateMountains(int xStart, int xLength, int floor, ArrayList finalListElements, ArrayList states,boolean enemyAddedBefore)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false && enemyAddedBefore==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t if ((xLength - e) - (xStart + s) > 0){\r\n\t for(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }",
"@Override\n public void actionPerformed(ActionEvent e) {\n caterpillar.move();\n \n if (caterpillar.getShapeX() < 39) {\n caterpillar.setDirection(0);\n caterpillar.decrease_section(sections);\n }\n else if (caterpillar.getShapeX() > getWidth() - 41) {\n caterpillar.setDirection(180);\n caterpillar.decrease_section(sections);\n }\n else if (caterpillar.getShapeY() < 39) {\n caterpillar.setDirection(90);\n caterpillar.decrease_section(sections);\n }\n else if (caterpillar.getShapeY() > getHeight() - 61) {\n caterpillar.setDirection(270);\n caterpillar.decrease_section(sections);\n }\n \n for (Section section : sections) {\n section.move();\n }\n for (int i = 0; i < sections.size(); i++) {\n if (i == 0) {\n sections.get(i).setFollowX(caterpillar.getShapeX());\n sections.get(i).setFollowY(caterpillar.getShapeY());\n }\n else {\n sections.get(i).setFollowX(sections.get(i - 1).getShapeX());\n sections.get(i).setFollowY(sections.get(i - 1).getShapeY());\n }\n }\n \n enemy.setSpeed(rand.nextInt(19));\n enemy.move();\n for (int i = 0; i < block_num; i++) {\n while(enemy.collision_detection(poizon.get(i)) || enemy.collision_detection(apple)) {\n enemy.setSpeed(rand.nextInt(19));\n enemy.move();\n }\n }\n enemy_2.setSpeed(rand.nextInt(19));\n enemy_2.move();\n for (int i = 0; i < block_num; i++) {\n while(enemy_2.collision_detection(poizon.get(i)) || enemy_2.collision_detection(apple)) {\n enemy_2.setSpeed(rand.nextInt(19));\n enemy_2.move();\n }\n }\n \n if (apple.collision_detection(caterpillar)) {\n Section newSection = new Section(sections.get(sections.size() - 1).getShapeX(),\n sections.get(sections.size() - 1).getShapeY(), 20, 0,\n sections.get(sections.size() - 1).getShapeX(),\n sections.get(sections.size() - 1).getShapeY());\n this.add(newSection, BorderLayout.CENTER);\n this.setVisible(true);\n sections.add(newSection);\n }\n\n for (MoveShape poizonApple : poizon) {\n if (poizonApple.collision_detection(caterpillar))\n caterpillar.decrease_section(sections);\n }\n \n if (enemy.collision_detection(caterpillar)) {\n caterpillar.dying();\n }\n for (Section section : sections) {\n if (enemy.collision_detection(section)) {\n caterpillar.dying();\n }\n }\n\n if (enemy_2.collision_detection(caterpillar)) {\n caterpillar.dying();\n }\n for (Section section : sections) {\n if (enemy_2.collision_detection(section)) {\n caterpillar.dying();\n }\n }\n time_add += speed;\n if (time_add % 10000 == 0) {\n caterpillar.decrease_section(sections);\n }\n repaint();\n if (sections.size() == 0) {\n caterpillar.dying();\n }\n }",
"@Override\r\n\tpublic void hurt(int points) {\r\n\t\tif (!hasExoskeleton()) {\r\n\t\thitPoints -= points;\r\n\t\t}\r\n\t}",
"private void finishErasing() {\n synchronized (lastEraseTrace) {\n if (lastEraseTrace.size() > 0) {\n ArrayList<Shape> t = new ArrayList<Shape>();\n t.add(new EraseTrace(lastEraseTrace, sheet.toSheet(eraserRadius)));\n sheet.doAction(new AddShapes(t));\n lastEraseTrace.clear();\n }\n }\n }",
"public void makesHereBack(){this.piece.affect();}",
"@Override\n\tpublic void Update(float dt) {\n\t\tif (mouse.buttonDown()) {\n\t\t\ttarget.reposition(mouse.getPosition());\n\t\t\ttship.setPosition(mouse.getPosition().replicate().add(offset));\n\t\t}\n\t\teffectHandler.update(dt);\n\t\tif (!effectHandler.effectsRunning() && Keyboard.isKeyDown(GLFW.GLFW_KEY_A)) {\n\t\t\teffectHandler.addScript(origin, action, false);\n\t\t}\n\t\tif (!effectHandler.effectsRunning() && Keyboard.isKeyDown(GLFW.GLFW_KEY_D)) {\n\t\t\teffectHandler.addScript(origin, action, true);\n\t\t}\n\t\tif (buttonToggle && !Keyboard.isKeyDown(GLFW.GLFW_KEY_SPACE)) {\n\t\t\tbuttonToggle = false;\n\t\t}\n\t\tif (!buttonToggle && Keyboard.isKeyDown(GLFW.GLFW_KEY_SPACE)) {\n\t\t\tbuttonToggle = true;\n\t\t\tif (WeaponCheck.checkArc(origin, tship, weapon)) {\n\t\t\t\tSystem.out.println(\"in arc\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"out of arc\");\n\t\t\t}\n\t\t}\n\t}",
"public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }",
"public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}",
"private void decorate(int xStart, int xLength, int floor, ArrayList finalListElements, ArrayList states)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t \tif ((xLength - e) - (xStart + s) > 0){\r\n\t \t\tfor(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }",
"public void act() \r\n {\r\n // Add your action code here.\r\n espacio esp=(espacio)getWorld();\r\n Actor act=getOneIntersectingObject(nave.class);//Cuando la nave tome el poder \r\n if(act!=null)\r\n {\r\n for(int i=1;i<=10;i++)//incrementa el poder mediante el metodo solo 1s disparos\r\n esp.poder.incrementar();\r\n getWorld().removeObject(this);\r\n Greenfoot.playSound(\"Poder.wav\");\r\n }\r\n \r\n }",
"@Override\n\tpublic void bumped(SpaceObject object) {\n\t\thit = true;\t\n\t}",
"public void areaEffect(Player player){\n if(object.getProperties().containsKey(\"endLevel\")) {\n System.out.println(\"Fin du level\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n PlayScreen.setEndLevel();\n }\n\n if(object.getProperties().containsKey(\"startBossFight\")) {\n\n System.out.println(\"Start Boss Fight\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 9, cell);\n\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 9, cell);\n\n PlayScreen.cameraChangeBoss(true);\n setCategoryFilterFixture(GameTest.GROUND_BIT, PlayScreen.getFixtureStartBoss());\n\n }\n\n if(object.getProperties().containsKey(\"blueKnight\")) {\n System.out.println(\"Changement en bleu\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"blue\");\n }\n\n if(object.getProperties().containsKey(\"greyKnight\")) {\n System.out.println(\"Changement en gris\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"grey\");\n }\n\n if(object.getProperties().containsKey(\"redKnight\")) {\n System.out.println(\"Changement en rouge\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"red\");\n }\n\n }",
"public void makesNotHere(){this.piece.unAffect();}",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"void cut(int cardPosition);",
"@Override\r\n\tpublic void move(MoverType mover, double currOffX, double currOffY, double currOffZ) {\r\n\t\t// FIXME: most likely incorrect\r\n\t\tif (this.noClip) {\r\n\t\t\tthis.offsetEntity(currOffX, currOffY, currOffZ);\r\n\t\t} else {\r\n\t\t\tdouble originalOffX = currOffX;\r\n\t\t\tdouble originalOffY = currOffY;\r\n\t\t\tdouble originalOffZ = currOffZ;\r\n\r\n\t\t\tif (this.isInWeb) {\r\n\t\t\t\tthis.isInWeb = false;\r\n\t\t\t\tcurrOffX *= 0.25D;\r\n\t\t\t\tcurrOffY *= 0.05000000074505806D;\r\n\t\t\t\tcurrOffZ *= 0.25D;\r\n\t\t\t\tthis.motionX = 0.0D;\r\n\t\t\t\tthis.motionY = 0.0D;\r\n\t\t\t\tthis.motionZ = 0.0D;\r\n\t\t\t}\r\n\r\n\t\t\tdouble correctedOffX = currOffX;\r\n\t\t\tdouble correctedOffY = currOffY;\r\n\t\t\tdouble correctedOffZ = currOffZ;\r\n\t\t\tCollisionParts[] parts = this.getParts();\r\n\t\t\tif (parts == null) {\r\n\t\t\t\tparts = new CollisionParts[0];\r\n\t\t\t}\r\n\r\n\t\t\tAxisAlignedBB ourBoundingBox = this.getEntityBoundingBox();\r\n\t\t\tList<AxisAlignedBB> bbsInWay = this.world\r\n\t\t\t\t\t.getCollisionBoxes(this, ourBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffY = bb.calculateYOffset(ourBoundingBox, currOffY);\r\n\t\t\t}\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffX = bb.calculateXOffset(ourBoundingBox, currOffX);\r\n\t\t\t}\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffZ = bb.calculateZOffset(ourBoundingBox, currOffZ);\r\n\t\t\t}\r\n\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\tList<AxisAlignedBB> bbsInWayPart = this.world\r\n\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffX = bb.calculateXOffset(partBoundingBox, currOffX);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffZ = bb.calculateZOffset(partBoundingBox, currOffZ);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/** If we will are or will land on something */\r\n\t\t\tboolean landed = this.onGround || (correctedOffY != currOffY && correctedOffY < 0.0D);\r\n\r\n\t\t\tif (this.stepHeight > 0.0F && landed && (this.height < 0.125F)\r\n\t\t\t\t\t&& (correctedOffX != currOffX || correctedOffZ != currOffZ)) {\r\n\t\t\t\tdouble nostepOffX = currOffX;\r\n\t\t\t\tdouble nostepOffY = currOffY;\r\n\t\t\t\tdouble nostepOffZ = currOffZ;\r\n\r\n\t\t\t\tcurrOffX = correctedOffX;\r\n\t\t\t\tcurrOffY = this.stepHeight;\r\n\t\t\t\tcurrOffZ = correctedOffZ;\r\n\r\n\t\t\t\tList<AxisAlignedBB> bbsInStepup = this.world\r\n\t\t\t\t\t\t.getCollisionBoxes(this, ourBoundingBox.addCoord(correctedOffX, currOffY, correctedOffZ));\r\n\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffY = bb.calculateYOffset(ourBoundingBox, currOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffX = bb.calculateXOffset(ourBoundingBox, currOffX);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffZ = bb.calculateZOffset(ourBoundingBox, currOffZ);\r\n\t\t\t\t}\r\n\t\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\t\tList<AxisAlignedBB> bbsInStepupPart = this.world\r\n\t\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffX = bb.calculateXOffset(partBoundingBox, currOffX);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffZ = bb.calculateZOffset(partBoundingBox, currOffZ);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdouble groundOffY = -this.stepHeight;\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tgroundOffY = bb.calculateYOffset(ourBoundingBox.offset(currOffX, currOffY, currOffZ), groundOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\t\tList<AxisAlignedBB> bbsInStepDown = this.world\r\n\t\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepDown) {\r\n\t\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcurrOffY += groundOffY;\r\n\r\n\t\t\t\tif (nostepOffX * nostepOffX + nostepOffY * nostepOffY >= currOffX * currOffX + currOffZ * currOffZ) {\r\n\t\t\t\t\tcurrOffX = nostepOffX;\r\n\t\t\t\t\tcurrOffY = nostepOffY;\r\n\t\t\t\t\tcurrOffZ = nostepOffZ;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Until this point, unlike the original implementation, nothing\r\n\t\t\t// happened to the\r\n\t\t\t// entity itself, push the state\r\n\t\t\tdouble originalX = this.posX;\r\n\t\t\tdouble originalY = this.posY;\r\n\t\t\tdouble originalZ = this.posZ;\r\n\t\t\t// Handle things like fire, movesounds, etc\r\n\t\t\tsuper.move(mover, originalOffX, originalOffY, originalOffZ);\r\n\t\t\t// Pop the state\r\n\t\t\tthis.posX = originalX;\r\n\t\t\tthis.posY = originalY;\r\n\t\t\tthis.posZ = originalZ;\r\n\t\t\tsetEntityBoundingBox(ourBoundingBox);\r\n\t\t\t// Apply our offset\r\n\t\t\tthis.offsetEntity(currOffX, currOffY, currOffZ);\r\n\t\t}\r\n\t}",
"@Override\n public void update()\n {\n if(!Rect.intersects(spriteBounds, gameRegion) || wasTouched)\n {\n destroy();\n }\n else\n {\n spriteBounds.offset(0, speed);\n }\n }",
"public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMedicZ();\n \n EnergiaGuerriZ vidaGZ = mapa.getEnergiaGuerriZ();\n \n EnergiaConstrucZ vidaCZ = mapa.getEnergiaConstrucZ();\n \n GasZerg gasZ = mapa.getGasZerg();\n \n CristalZerg cristalZ = mapa.getCristalZerg();\n \n BunkerZerg bunkerZ = mapa.getBunkerZerg();\n \n Mina1 mina1 = mapa.getMina1();\n Mina2 mina2 = mapa.getMina2();\n Mina3 mina3 = mapa.getMina3();\n \n \n //movimiento del personaje\n if(Greenfoot.isKeyDown(\"b\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }\n }\n else if(Greenfoot.isKeyDown(\"z\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }}\n //encuentro con objeto\n \n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(),getY()-1);\n }\n \n \n //probabilida de daño al enemigo\n \n if(isTouching(MedicTerran.class) && Greenfoot.getRandomNumber(100)==3)\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n if(isTouching(ConstructorTerran.class) && (Greenfoot.getRandomNumber(100)==3 ||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n if(isTouching(GuerreroTerran.class) && (Greenfoot.getRandomNumber(100)==3||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1||Greenfoot.getRandomNumber(100)==4||Greenfoot.getRandomNumber(100)==5))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n \n \n //encuentro con Bunker\n \n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"s\"))\n \n {\n setLocation(getX(),getY()-1);\n }\n \n //AccionesUnicas\n \n if(isTouching(YacimientoDeGas.class) && gasZ.gasZ < 100)\n {\n \n gasZ.addGasZ();\n \n }\n \n \n if(isTouching(Mina1.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina1.removemina1();\n \n }\n \n if(isTouching(Mina2.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina2.removemina2();\n \n }\n \n if(isTouching(Mina3.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina3.removemina3();\n \n }\n \n \n if(isTouching(DepositoZ.class) && gasZ.gasZ > 4 && bunkerZ.bunkerZ() < 400){\n \n gasZ.removeGasZ();\n bunkerZ.addbunkerZ();\n }\n \n if(isTouching(DepositoZ.class) && cristalZ.cristalZ() > 0 && bunkerZ.bunkerZ() < 400 ){\n \n cristalZ.removeCristalZ();\n bunkerZ.addbunkerZ();\n }\n \n //determinar si la vida llega a 0\n \n if( vidaCZ.vidaCZ <= 0 )\n {\n \n getWorld().removeObjects(getWorld().getObjects(EnergiaConstrucZ.class)); \n \n getWorld().removeObjects(getWorld().getObjects(ConstructorZerg.class));\n \n EnergiaZerg energiaZ = mapa.getEnergiaZerg(); \n \n energiaZ.removenergiaCZ();\n }\n \n if( mina1.mina1() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina1.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal1.class));\n \n }\n \n if( mina2.mina2() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina2.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal2.class));\n \n }\n \n if( mina3.mina3() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina3.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal3.class));\n \n }\n \n \n}",
"private void hit(GObject element) {\r\n\t\tremove(bullet);\r\n\t\tbullet = null;\r\n\t\thitGraphic(element);\r\n\t\tif(element == dragon1) {\r\n\t\t\tlifeArray[DRAGON_ONE]--;\r\n\t\t\tif(lifeArray[DRAGON_ONE] < 1) {\r\n\t\t\t\tremove(dragon1);\r\n\t\t\t\tdragon1 = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(element == dragon2) {\r\n\t\t\tlifeArray[DRAGON_TWO]--;\r\n\t\t\tif(lifeArray[DRAGON_TWO] < 1) {\r\n\t\t\t\tremove(dragon2);\r\n\t\t\t\tdragon2 = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(element == mehran) {\r\n\t\t\tlifeArray[MEHRAN]--;\r\n\t\t\tif(lifeArray[MEHRAN] < 1) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = null;\r\n\t\t\t}\r\n\t\t}\r\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}",
"@Override\n\tpublic void action() {\n\t\tsuppressed = false;\n\t\tSettings.readState = true;\n\t\tSettings.atStartOfMaze = false;\n\t\tpilot.travel(-5);\n\t\tpilot.rotate(100);\n\t\twhile( pilot.isMoving() && !suppressed );\n\t\tpilot.stop();\n\t}",
"@Override\n\tpublic void move() {\n\t\tCoordinate currPos = new Coordinate(control.getPosition());\n\t\t\n\t\t// if we have enough packages head to the exit\n\t\tif (control.numParcels() <= control.numParcelsFound()) {\n\t\t\t// if we don't have a path to the exit\n\t\t\tif (control.currentPath == null || !control.isHeadingToFinish) {\t\n\t\t\t\t// find path to exit\n\t\t\t\tArrayList<Coordinate> tempPath = null;\n\t\t\t\t// See if there's a path without needing to go through hazards\n\t\t\t\ttempPath = control.findPath(currPos, control.finish.get(0), control.hazardsMap.keySet());\n\t\t\t\tSet<Coordinate> tempHazards = new HashSet<>(control.hazardsMap.keySet());\n\t\t\t\t// If no path without going through hazards, just go through them\n\t\t\t\tif (tempPath == null || tempPath.size() == 0) {\n\t\t\t\t\tfor (Coordinate coord : control.hazardsMap.keySet()) {\n\t\t\t\t\t\ttempHazards.remove(coord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If it's a valid map, there should be a path now\n\t\t\t\tcontrol.setPath(control.findPath(currPos, control.finish.get(0), tempHazards));\n\t\n\t\t\t\tcontrol.isHeadingToFinish = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\theadTowardsPackages(currPos);\n\t\t\n\t\texploreUnseenMap(currPos);\n\t\t\n\t\tMapTile currTile = control.getView().get(currPos);\n\t\tboolean isHealth = false;\n\t\tif (currTile.getType() == MapTile.Type.TRAP) {\n\t\t\tTrapTile trap = (TrapTile) currTile;\n\t\t\tif (trap.getTrap().equals(\"health\")) {\n\t\t\t\tisHealth = true;\n\t\t\t}\n\t\t}\n\t\tif (isHealth && (control.getHealth() < HEALTH_TRAP_THRESHOLD)) {\n\t\t\t// do nothing\n\t\t\treturn;\n\t\t} else {\n\t\t\tisHealth = false;\n\t\t\tcontrol.moveTowards(control.dest);\n\t\t}\n\t\t\n\t}",
"private void subtractEnemyMissile() {\n this.enemyMissile -= 1;\n }",
"public void tick()\n{\n y+=speed;\n\n for(int i=0; i<game.ea.size(); i++)\n {\n EntityA tempEnt= game.ea.get(i);\n if(Physics.Coliision(this,tempEnt))\n {\n c.removeEntity(tempEnt); //zeby po trafieniu znikal pocisk\n c.removeEntity(this);\n game.setEnemy_killed(game.getEnemy_killed()+1);\n\n }\n }\n\n/*\n* If Enemy is out of bounds player get - points\n* and loses some stamina.\n*\n* Enemies are removed from list after disapears\n */\n\n if(y>(App.getHEIGHT()-20)*2)\n {\n App.addHealth(-10);\n App.addPOINTS(-3);\n c.removeEntity(this);\n }\n\n anim.runAnimation();\n\n /*\n * If App is not in game state it doesn't\n * need to have any enemies\n */\n\n if(App.State != App.STATE.GAME)\n {\n delEnemies();\n\n }\n}",
"public void onUpdate()\n {\n this.prevPosX = this.posX;\n this.prevPosY = this.posY;\n this.prevPosZ = this.posZ;\n this.motionY -= 0.03999999910593033D;\n this.moveEntity(this.motionX, this.motionY, this.motionZ);\n this.motionX *= 0.9800000190734863D;\n this.motionY *= 0.9800000190734863D;\n this.motionZ *= 0.9800000190734863D;\n\n if (this.onGround)\n {\n this.motionX *= 0.699999988079071D;\n this.motionZ *= 0.699999988079071D;\n this.motionY *= -0.5D;\n }\n\n if (this.fuse-- <= 0)\n {\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n this.explode();\n }\n } else\n {\n this.worldObj.spawnParticle(\"smoke\", this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n }\n }",
"public void draw() {\r\n\r\n if (this.z == 2) {\r\n //--- Shooting//---\r\n for (Enemy e: this.td.getEnemies()) {\r\n if (e.getX() < this.x + this.size / 2\r\n && e.getX() + e.getSize() > this.x - this.size / 2) {\r\n if (e.getY() < this.y + this.size / 2\r\n && e.getY() + e.getSize() > this.y - this.size / 2) {\r\n if (!this.firing) {\r\n this.firing = true;\r\n this.target = e;\r\n }\r\n } else {\r\n this.firing = false;\r\n }\r\n }\r\n this.firing();\r\n }\r\n }\r\n this.update();\r\n\r\n }",
"public void act() \r\n {\r\n Actor hitMC = getOneIntersectingObject(MC.class);\r\n if (hitMC != null) {\r\n ((Hall) getWorld()).player.health++;\r\n getWorld().removeObject(this);\r\n }\r\n }",
"public void destroyArea(Entity[][] map, int x, int y){\r\n map[y][x] = null;\r\n //check if the area to destroy is within the map\r\n if ((x > 0) && (y > 0)){\r\n checkIfOtherType(map, y-1, x-1);\r\n map[y-1][x-1] = null;\r\n map[y-1][x-1] = new ExplodedArea(3, x-1, y-1);\r\n }\r\n if ((x + 1 < map.length) && (y + 1< map.length)){\r\n checkIfOtherType(map, y+1, x+1);\r\n map[y+1][x+1] = null;\r\n map[y+1][x+1] = new ExplodedArea(3, x+1, y+1);\r\n }\r\n if ((y > 0)){\r\n checkIfOtherType(map, y-1, x);\r\n map[y-1][x] = null;\r\n map[y-1][x] = new ExplodedArea(3, x, y-1);\r\n }\r\n if ((x +1 < map.length) && (y > 0)){\r\n checkIfOtherType(map, y-1, x+1);\r\n map[y-1][x+1] = null;\r\n map[y-1][x+1] = new ExplodedArea(3, x+1, y-1);\r\n }\r\n if ( x < map.length -1){\r\n checkIfOtherType(map, y, x+1);\r\n map[y][x+1] = null;\r\n map[y][x+1] = new ExplodedArea(3, x+1, y);\r\n }\r\n if(x > 0){\r\n checkIfOtherType(map, y, x-1);\r\n map[y][x-1] = null;\r\n map[y][x-1] = new ExplodedArea(3, x-1, y);\r\n }\r\n if (y < map.length-1){\r\n checkIfOtherType(map, y+1, x);\r\n map[y+1][x] = null;\r\n map[y+1][x] = new ExplodedArea(3, x, y+1);\r\n }\r\n if((x > 0) && (y < map.length -1)){\r\n checkIfOtherType(map, y+1, x-1);\r\n map[y+1][x-1] = null;\r\n map[y+1][x-1] = new ExplodedArea(3, x-1, y+1);\r\n }\r\n }",
"private void decorateMountainsFloat(int xStart, int xLength, int floor, boolean enemyAddedBefore, ArrayList finalListElements, ArrayList states)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false && enemyAddedBefore==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t if ((xLength - e) - (xStart + s) > 0){\r\n\t for(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }",
"@Override\n\tpublic void onUpdate()\n\t{\n\t\tthis.lastTickPosX = this.posX;\n\t\tthis.lastTickPosY = this.posY;\n\t\tthis.lastTickPosZ = this.posZ;\n\t\tsuper.onUpdate();\n\n\t\tif (this.throwableShake > 0)\n\t\t{\n\t\t\t--this.throwableShake;\n\t\t}\n\n\t\tif (this.inGround)\n\t\t{\n\t\t\tif (this.worldObj.getBlockState(this.getPosition()).getBlock() == this.inTile)\n\t\t\t{\n\t\t\t\t++this.ticksInGround;\n\n\t\t\t\tif (this.ticksInGround == 1200)\n\t\t\t\t{\n\t\t\t\t\tthis.setDead();\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.inGround = false;\n\t\t\tthis.motionX *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionY *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionZ *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.ticksInGround = 0;\n\t\t\tthis.ticksInAir = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t++this.ticksInAir;\n\t\t}\n\n\t\tVec3 vec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tVec3 vec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\t\tMovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks(vec3, vec31);\n\t\tvec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tvec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tvec31 = new Vec3(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord);\n\t\t}\n\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tEntity entity = null;\n\t\t\tList list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this,\n\t\t\t\t\tthis.getEntityBoundingBox().addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));\n\t\t\tdouble d0 = 0.0D;\n\t\t\tEntityLivingBase entitylivingbase = this.getThrower();\n\n\t\t\tfor (Object obj : list)\n\t\t\t{\n\t\t\t\tEntity entity1 = (Entity) obj;\n\n\t\t\t\tif (entity1.canBeCollidedWith() && ((entity1 != entitylivingbase) || (this.ticksInAir >= 5)))\n\t\t\t\t{\n\t\t\t\t\tfloat f = 0.3F;\n\t\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(f, f, f);\n\t\t\t\t\tMovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31);\n\n\t\t\t\t\tif (movingobjectposition1 != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble d1 = vec3.distanceTo(movingobjectposition1.hitVec);\n\n\t\t\t\t\t\tif ((d1 < d0) || (d0 == 0.0D))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tentity = entity1;\n\t\t\t\t\t\t\td0 = d1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (entity != null)\n\t\t\t{\n\t\t\t\tmovingobjectposition = new MovingObjectPosition(entity);\n\t\t\t}\n\t\t}\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tif ((movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)\n\t\t\t\t\t&& (this.worldObj.getBlockState(movingobjectposition.getBlockPos()).getBlock() == Blocks.portal))\n\t\t\t{\n\t\t\t\tthis.inPortal = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.onImpact(movingobjectposition);\n\t\t\t}\n\t\t}\n\n\t\tthis.posX += this.motionX;\n\t\tthis.posY += this.motionY;\n\t\tthis.posZ += this.motionZ;\n\t\tfloat f1 = MathHelper.sqrt_double((this.motionX * this.motionX) + (this.motionZ * this.motionZ));\n\t\tthis.rotationYaw = (float) ((Math.atan2(this.motionX, this.motionZ) * 180.0D) / Math.PI);\n\n\t\tfor (this.rotationPitch = (float) ((Math.atan2(this.motionY, f1) * 180.0D) / Math.PI); (this.rotationPitch\n\t\t\t\t- this.prevRotationPitch) < -180.0F; this.prevRotationPitch -= 360.0F)\n\t\t{\n\t\t}\n\n\t\twhile ((this.rotationPitch - this.prevRotationPitch) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationPitch += 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) < -180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw -= 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw += 360.0F;\n\t\t}\n\n\t\tthis.rotationPitch = this.prevRotationPitch + ((this.rotationPitch - this.prevRotationPitch) * 0.2F);\n\t\tthis.rotationYaw = this.prevRotationYaw + ((this.rotationYaw - this.prevRotationYaw) * 0.2F);\n\t\tfloat f2 = 0.99F;\n\t\tfloat f3 = this.getGravityVelocity();\n\n\t\tif (this.isInWater())\n\t\t{\n\t\t\tfor (int i = 0; i < 4; ++i)\n\t\t\t{\n\t\t\t\tfloat f4 = 0.25F;\n\t\t\t\tthis.worldObj.spawnParticle(EnumParticleTypes.WATER_BUBBLE, this.posX - (this.motionX * f4), this.posY - (this.motionY * f4),\n\t\t\t\t\t\tthis.posZ - (this.motionZ * f4), this.motionX, this.motionY, this.motionZ);\n\t\t\t}\n\n\t\t\tf2 = 0.8F;\n\t\t}\n\n\t\tthis.motionX *= f2;\n\t\tthis.motionY *= f2;\n\t\tthis.motionZ *= f2;\n\t\tthis.motionY -= f3;\n\t\tthis.setPosition(this.posX, this.posY, this.posZ);\n\t}",
"@Override\n void move(ListIterator<PlatformerGameObject> iterator) {\n //if moved outside the left boundary clean garbage\n if (getHitBox().getLeft() + coin.get(0).getWidth() <= 0) {\n iterator.remove();\n }\n updateHitBox(\"Left\", getHitBox().getLeft() - xVelocity);\n updateHitBox(\"Right\", getHitBox().getRight() - xVelocity);\n }",
"public void Hit()\n {\n this.numLives--;\n //Oscillate visible and not if the number of lives is greater than zero\n if(this.numLives > 0)\n {\n this.damaged = true;\n this.Blink(1);\n\n }\n }",
"public void animate() {\n\t\t\n\t\t// already exploded\n\t\tif (disabled > explodeTime) {\n\t\t\treturn;\n\t\t} // if\n\n\t\t// exploding now\n\t\tif (disabled > 0) {\n\t\t\tsphere.explode();\n\t\t\tdisabled++;\n\t\t\treturn;\n\t\t} // if\n\t\t\n\t\t// move sphere and this\n\t\tlocation.add(movement);\n\t\tsphere.move(movement);\n\t\t\n\t\t// bounce back if too far out\n\t\tif(location.distance(new Tuple(0, 0, 0)) > FIELD_SIZE) {\n\t\t\tmovement.scale(-1, -1, -1);\n\t\t} // if\n\t}",
"public void collisionEvent(Chaser chaser) {\r\n if (getPossessionStatus() &&\r\n (chaser.getTeam().getColor() != this.getTeam().getColor()))\r\n {\r\n if(!chaser.isStunned() && //They do not tackle you if they are stunned!\r\n random.nextInt(MAX_CHANCE) <= CHASER_CHANCE) // and a 20% chance.\r\n {\r\n dropQuaffle(); // Simulating the chaser of the opposing team tackling you.\r\n }\r\n }\r\n super.collisionEvent(chaser);\r\n }",
"public void removeEffectFromSpecialBrick(){\r\n\t\t\t// return everything to the original\r\n\t\t\tColor origColor = (specialBrickId.equals(\"Rect0\"))? discsColors[0]:(specialBrickId.equals(\"Rect1\"))? discsColors[1]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect2\"))? discsColors[2]:(specialBrickId.equals(\"Rect3\"))? discsColors[3]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect4\"))? discsColors[4]:(specialBrickId.equals(\"Rect5\"))? discsColors[5]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect6\"))? discsColors[6]:(specialBrickId.equals(\"Rect7\"))? discsColors[7]:null; \r\n\t\t\tint origWidth = (specialBrickId.equals(\"Rect0\"))? 30:(specialBrickId.equals(\"Rect1\"))? 60:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect2\"))? 90:(specialBrickId.equals(\"Rect3\"))? 120:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect4\"))? 150:(specialBrickId.equals(\"Rect5\"))? 180:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect6\"))? 210:(specialBrickId.equals(\"Rect7\"))? 240:null;\r\n\t\t\tRectangle rect = new Rectangle(origWidth,20, origColor);\r\n\t\t\trect.setId(specialBrickId);\r\n\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\trect.setStrokeWidth(3);\r\n\t\t\t\t\t\t\r\n\t\t\tswitch(specialBrickTower){\r\n\t\t\t\tcase \"firstTower\":\r\n\t\t\t\t\tfor(int i=0; i<firstTower.getChildren().size(); i++){ // cycle through the tower to check which one is the special brick\r\n\t\t\t\t\t\tif (firstTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tfirstTower.getChildren().set(i, rect); // then reset it\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"secondTower\":\r\n\t\t\t\t\tfor(int i=0; i<secondTower.getChildren().size(); i++){\r\n\t\t\t\t\t\tif (secondTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tsecondTower.getChildren().set(i, rect);\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"thirdTower\":\r\n\t\t\t\t\tfor(int i=0; i<thirdTower.getChildren().size(); i++){\r\n\t\t\t\t\t\tif (thirdTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tthirdTower.getChildren().set(i, rect);\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\trect.widthProperty().bind(scene.widthProperty().divide(3).subtract(250-origWidth));\r\n\t\t\trect.heightProperty().bind(scene.heightProperty().divide(19));\r\n\t\t\r\n\t\tif(countDownRunning){towersRegion.getChildren().remove(2);countDownRunning=false;} // remove the count down watch from the screen\t\t\r\n\t\tspecialBrickId=null; // reset the special brick id\r\n\t}",
"public void erase(int sector, int moteID) {\n\t\tmote.erase(sector, moteID);\n\t}",
"private void handleIntersection()\n\t{\n\t\tstop();\n\t\tgoForward(50);\n\t\t\n\t\tswitch(SEQUENCE[0])\n\t\t{\n\t\tcase FORWARD:\n\t\t\t//Keep going, don't turn.\n\t\t\tbreak;\n\t\tcase RIGHT:\n\t\t\tturnRight();\n\t\t\tbreak;\n\t\tcase LEFT:\n\t\t\tturnLeft();\n\t\t\tbreak;\n\t\t}\n\t\tnextMovement();\n\t}",
"public void draw(){\n hit();\n hit();\n }",
"public void act() \r\n {\r\n Controller world = (Controller) getWorld();\r\n player = world.getPlayer();\r\n if (this.isTouching(Player.class))\r\n {\r\n player.minusHealth(5);\r\n world.removeObject(this);\r\n }\r\n }",
"@Override\n public void onEntry(CellComponent mover) {\n mover.dealDamage(-energyValue);\n m.getCell(getPosition()).removeComponent(this);\n }",
"public void act()\n {\n setPosition(posX + liftDirection[0] * liftSpeed, posY\n + liftDirection[1] * liftSpeed);\n setLocation(posToLoc(posX, posY));\n\n if (posY < 50)\n removeSelf();\n }",
"@Override\n protected void doCheckEffect ()\n {\n // check all the stationary spells in the location of the projectile for a Colloportus\n List<O2StationarySpell> inside = new ArrayList<>();\n for (O2StationarySpell spell : Ollivanders2API.getStationarySpells(p).getStationarySpellsAtLocation(location))\n {\n if (spell instanceof COLLOPORTUS)\n {\n inside.add(spell);\n }\n }\n\n // remove the colloportus spells found\n if (inside.size() > 0)\n {\n for (O2StationarySpell spell : inside)\n {\n spell.kill();\n spell.flair(10);\n }\n\n kill();\n }\n\n // if the spell has hit a solid block, the projectile is stopped and wont go further so kill the spell\n if (hasHitTarget())\n kill();\n }",
"void addEffect(Effect effect, boolean temp) {\n/* 1782 */ if (this.isTransition && this.surfaced) {\n/* */ \n/* 1784 */ getCaveTile().addEffect(effect, temp);\n/* */ \n/* */ return;\n/* */ } \n/* 1788 */ if (!temp) {\n/* */ \n/* 1790 */ if (this.effects == null)\n/* 1791 */ this.effects = new HashSet<>(); \n/* 1792 */ this.effects.add(effect);\n/* */ } \n/* */ \n/* 1795 */ if (this.watchers != null)\n/* */ {\n/* 1797 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();) {\n/* 1798 */ ((VirtualZone)it.next()).addEffect(effect, temp);\n/* */ }\n/* */ }\n/* 1801 */ effect.setSurfaced(this.surfaced);\n/* */ \n/* */ try {\n/* 1804 */ effect.save();\n/* */ }\n/* 1806 */ catch (IOException iox) {\n/* */ \n/* 1808 */ logger.log(Level.INFO, iox.getMessage(), iox);\n/* */ } \n/* */ }",
"public void onImpact() {\n die();\r\n this.getArrow().remove();\r\n }",
"public void decision(Entity[][] map, int y, int x){ \r\n if (!getTired()){\r\n // check if surrounding area is another animal\r\n if ((x > 0) && (y > 0) && (map[y-1][x-1] instanceof Animal )){\r\n destroyArea(map, x, y);\r\n }else if ((x < map.length-1) && (y < map.length -1) && (map[y+1][x+1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if ((y > 0) && map[y-1][x] instanceof Animal){\r\n destroyArea(map, x, y);\r\n }else if ((x < map.length -1) && (y > 0) && (map[y-1][x+1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if(( x < map.length -1) && (map[y][x+1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if(( x > 0) && (map[y][x-1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if( (y < map.length-1) && (map[y+1][x] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if((x > 0) && (y < map.length -1) && (map[y+1][x-1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if (numOfTurns == 3){\r\n numOfTurns = 0;\r\n moveRandom(map, y, x);\r\n }\r\n }\r\n numOfTurns ++;\r\n }",
"public void act() \n {\n if(isAlive)\n {\n move(2);\n if(isAtEdge())\n {\n turnTowards(300, 300);\n GreenfootImage img = getImage();\n img.mirrorVertically();\n setImage(img);\n }\n if (getY() <= 150 || getY() >= 395)\n {\n turn(50);\n }\n if(isTouching(Trash.class))\n {\n turnTowards(getX(), 390);\n move(1);\n setLocation(getX(), 390);\n die();\n }\n }\n }",
"public void updatePosition()\r\n\t{\r\n\t\tsuper.updatePosition();\r\n\t\t\r\n\t\t// Update the bomb's position\r\n\t\tPoint nextPosition = getPath().getLocation(t++);\r\n\t\tsetX(nextPosition.x + startX);\r\n\t\tint nextY = nextPosition.y + startY;\r\n\t\tsetY(nextY);\r\n\t\t\r\n\t\t// Blow the bomb up after it reaches mid screen\r\n\t\tif (t > 120 || (nextY < (Global.WINDOW_HEIGHT >> 1) && t > 30))\r\n\t\t{\r\n\t\t\tbombSound.stop();\r\n\t\t\tsuper.remove();\r\n\t\t\tGamePanel.makeExplosion(getX(), getY());\r\n\t\t\t\r\n\t\t\t// Injure all the enemies on the screen\r\n\t\t\t\r\n\t\t\tArrayList<Sprite> sprites = GamePanel.getSprites();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < sprites.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif (sprites.get(i) instanceof Enemy)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy enemy = (Enemy) sprites.get(i);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint currentYTop = GamePanel.getLevel().getCurrentY() +\r\n\t\t\t\t\t\tBLOCKS_PER_Y - 1;\r\n\t\t\t\t\tboolean visibleX = enemy.getX() + enemy.getWidth() >= 0 &&\r\n\t\t\t\t\t\tenemy.getX() <= Global.WINDOW_WIDTH;\r\n\t\t\t\t\tboolean yOnScreen = enemy.getY() <= Global.WINDOW_HEIGHT +\r\n\t\t\t\t\t\t100;\r\n\t\t\t\t\tboolean visibleY = enemy.getYBlock() >= currentYTop &&\r\n\t\t\t\t\t\tyOnScreen;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (visibleX && visibleY && enemy.isAlive())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tenemy.offsetHealth(-300);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (enemy.getHealth() <= 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tenemy.remove();\r\n\t\t\t\t\t\t\tGamePanel.offsetNumLevelPoints(100);\r\n\t\t\t\t\t\t\tGamePanel.makeExplosion(enemy.getX(), enemy.getY());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void collisionEffect(AbstractCollidable other, Vector mtv) {\r\n\t\t\r\n\t\tClass<? extends AbstractCollidable> otherClass = other.getClass();\r\n\r\n\t\tif (\t\totherClass.equals(TerrainSection.class)\r\n\t\t\t\t|| otherClass.equals(Obstacle.class)\r\n\t\t\t\t|| (otherClass.equals(Player.class) && owner != other)\r\n\t\t\t\t|| (otherClass.equals(Enemy.class) && owner != other)) {\r\n\t\t\thasCollided = true;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }",
"@Override\n protected void doCheckEffect ()\n {\n List<LivingEntity> entities = getLivingEntities(1.5);\n if (entities.size() > 0)\n {\n for (LivingEntity entity : entities)\n {\n if (entity.getUniqueId() == player.getUniqueId())\n continue;\n\n entity.damage(usesModifier * 2, player);\n\n kill();\n return;\n }\n }\n\n // if the spell has hit a solid block, the projectile is stopped and wont go further so kill the spell\n if (hasHitTarget())\n kill();\n }",
"void doCut(boolean surface, boolean building) {\r\n\t\tdoCopy(surface, building);\r\n\t\tif (surface && building) {\r\n\t\t\tdoDeleteBoth();\r\n\t\t} else\r\n\t\tif (surface) {\r\n\t\t\tdoDeleteSurface();\r\n\t\t} else\r\n\t\tif (building) {\r\n\t\t\tdoDeleteBuilding();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void onCollision(WorldObj obj) {\n\t\tif(obj.removalFlag)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tif(obj.item != null) {\n\t\t\t\n\t\t\t\n\t\t\tif(obj.stateTime > 0.2f) {\n\t\t\t\tAddItemToBag(obj.item,obj.stack);\n\t\t\t\tobj.removalFlag = true;\n\t\t\t\t\n\t\t\t\tGdx.app.debug(\"\", \"\"+obj.stack);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tsuper.onCollision(obj);\n\t}",
"public void onHarvestPart(qx player, int part)\r\n/* 77: */ {\r\n/* 78: 64 */ boolean change = false;\r\n/* 79: 65 */ if (part == 29)\r\n/* 80: */ {\r\n/* 81: 66 */ CoreLib.dropItem(this.k, this.l, this.m, this.n, new ur(RedPowerMachine.blockFrame, 1));\r\n/* 82: 69 */ if (this.CoverSides > 0)\r\n/* 83: */ {\r\n/* 84: 70 */ replaceWithCovers();\r\n/* 85: 71 */ updateBlockChange();\r\n/* 86: */ }\r\n/* 87: */ else\r\n/* 88: */ {\r\n/* 89: 72 */ deleteBlock();\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ else\r\n/* 93: */ {\r\n/* 94: 74 */ super.onHarvestPart(player, part);\r\n/* 95: 75 */ return;\r\n/* 96: */ }\r\n/* 97: */ }",
"private void drive(int e) {\r\n if (endx[e] + 120 >= width - radius[e] && directionend[e] == 0) {\r\n endx[e] += 20;\r\n endy[e] -= 20;\r\n directionend[e]++;\r\n radius[e] -= 60;\r\n directionchanged[e] = true;\r\n } else if (endy[e] + 120 >= height - radius[e] && directionend[e] == 1) {\r\n\r\n endx[e] += 20;\r\n endy[e] += 20;\r\n directionend[e]++;\r\n radius[e] -= 60;\r\n directionchanged[e] = true;\r\n } else if (endx[e] - 120 <= radius[e] && directionend[e] == 2) {\r\n endx[e] -= 20;\r\n endy[e] += 20;\r\n radius[e] -= 60;\r\n directionend[e]++;\r\n directionchanged[e] = true;\r\n } else if (endy[e] - 80 <= radius[e] && directionend[e] == 3) {\r\n endx[e] -= 20;\r\n endy[e] -= 20;\r\n radius[e] -= 60;\r\n directionend[e] = 0;\r\n directionchanged[e] = true;\r\n } else {\r\n directionchanged[e] = false;\r\n }\r\n }",
"public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n tempBullet.update();\n tempBullet.drawBullet();\n // print (tempBullet.posX, tempBullet.posY,'\\n');\n if(tempBullet.detectBound()){\n bossBullets.remove(i);\n continue;\n }\n\n if(tempBullet.hitObject(Main.player) && !Main.player.invincible){\n Main.player.decreaseHealth(1);\n Main.player.posX = width / 2;\n Main.player.posY = height * 9 / 10;\n Main.player.invincible = true;\n Main.player.invincibleTime = millis();\n }\n\n }\n }",
"public void act() \n {\n moveAround(); \n addBomb(); \n touchGhost(); \n }",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// Bullet //\r\n\t\t////////////\r\n\t\tArrayList msDOWN = GameCraft.getBulletDOWN();\r\n\t\tfor (int i = 0; i < msDOWN.size(); i++) {\r\n\t\t\tBulletDOWN m = (BulletDOWN) msDOWN.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveDOWN();\r\n\t\t\telse msDOWN.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msUP = GameCraft.getBulletUP();\r\n\t\tfor (int i = 0; i < msUP.size(); i++) {\r\n\t\t\tBulletUP m = (BulletUP) msUP.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveUP();\r\n\t\t\telse msUP.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msLEFT = GameCraft.getBulletLEFT();\r\n\t\tfor (int i = 0; i < msLEFT.size(); i++) {\r\n\t\t\tBulletLEFT m = (BulletLEFT) msLEFT.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveLEFT();\r\n\t\t\telse msLEFT.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msRIGHT = GameCraft.getBulletRIGHT();\r\n\t\tfor (int i = 0; i < msRIGHT.size(); i++) {\r\n\t\t\tBulletRIGHT m = (BulletRIGHT) msRIGHT.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveRIGHT();\r\n\t\t\telse msRIGHT.remove(i);\r\n\t\t}\r\n\t\t\r\n\t\tArrayList msEnemys = GameCraft.getEnemys();\r\n\t\tif(moveamount >= 150){\r\n\t\t\tfor (int i = 0; i < msEnemys.size(); i++) {\r\n\t\t\t\tEnemys m = (Enemys) msEnemys.get(i);\r\n\t\t\t\tif (m.isVisible()){\r\n\t\t\t\t\tm.moveMe();\r\n\t\t\t\t}else{ \r\n\t\t\t\t\tmsEnemys.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmoveamount = 0;\r\n\t\t}\r\n\t\tmoveamount++;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(int a = 0; a < msDOWN.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletDOWN bdown = (BulletDOWN) msDOWN.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bdown.getX();\r\n\t\t\t\tint ybul = bdown.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int a = 0; a < msRIGHT.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletRIGHT bright = (BulletRIGHT) msRIGHT.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bright.getX();\r\n\t\t\t\tint ybul = bright.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int a = 0; a < msLEFT.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletLEFT bleft = (BulletLEFT) msLEFT.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bleft.getX();\r\n\t\t\t\tint ybul = bleft.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int a = 0; a < msUP.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletUP bup = (BulletUP) msUP.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bup.getX();\r\n\t\t\t\tint ybul = bup.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tEnemy 500 500\r\n\t\tBullet 510 510\r\n\t\t510 < 500 && 480 < 500 || 500 > 510 && 500 > 480\r\n\t\t500 > 320 && 500 > 380\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t////////////\r\n\t\t// Bullet //\r\n\t\t////////////\r\n\t\tGameCraft.move();\r\n\t\trepaint(); \r\n\t}",
"public void updateArmorModifier(int p_184691_1_) {\n if (!this.world.isRemote) {\n this.getAttribute(Attributes.ARMOR).removeModifier(COVERED_ARMOR_BONUS_MODIFIER);\n if (p_184691_1_ == 0) {\n this.getAttribute(Attributes.ARMOR).applyPersistentModifier(COVERED_ARMOR_BONUS_MODIFIER);\n this.playSound(SoundEvents.ENTITY_SHULKER_CLOSE, 1.0F, 1.0F);\n } else {\n this.playSound(SoundEvents.ENTITY_SHULKER_OPEN, 1.0F, 1.0F);\n }\n }\n\n this.dataManager.set(PEEK_TICK, (byte)p_184691_1_);\n }",
"public void takePoison(int poison) { this.poison += poison; }",
"private void animateArmor(Client c, int[] usedArmor, int npcId, int hitPoints, int maxHit, int attack, int defence) {\r\n\t\tc.getPA().walkTo(0, 3);\r\n\t\tfor(int i = 0; i < 3; i++) {\r\n\t\t\tc.getItems().deleteItem(usedArmor[i], 1);\r\n\t\t}\r\n\t\tc.spawned = true;\r\n\t\tServer.npcHandler.spawnNpc(c, npcId, xCoord, yCoord, 0, 0, hitPoints, maxHit, attack, defence, true, true);\r\n\t}",
"public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }",
"@Override\n public void collide(ScreenObject other) {\n switch (other.getType()) {\n case ASTEROID:\n hp -= other.dealDamage();\n break;\n case ENEMY:\n hp -= other.dealDamage();\n break;\n case ENEMYBULLET:\n hp -= other.dealDamage();\n break;\n case MACGUFFIN:\n macguffinsCollected++;\n break;\n case PORT:\n if (macguffinsCollected >= level.getMacguffinCount()\n && boundingCircle.contains(other.getPosition())) {\n Gdx.app.log(\"Ship\", \"level over\");\n //ends level\n }\n break;\n }\n }",
"@Override\n public void act(float delta)\n {\n SCALE = PlayScreen.scale;\n\n if(actCount < 4)actCount++;\n\n dt=delta;\n if(!initialized)\n {\n mirror.setRotation(initRotation);\n\n dt = delta;\n positionChanged();\n\n if (hittime > (1.0 / 5.0))\n {\n if (hit >= 0) hit--;\n hittime = 0;\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n //setOrigin(mirror.getOriginX(), mirror.getOriginY());\n }\n\n if(initialized && hit>0)\n {\n positionChanged();\n\n if(hittime>=(1.0/5.0))\n {\n if(hit>0)hit--;\n hittime = 0;\n if (hit == 0)\n {\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n }\n\n }\n\n //Handles fading in/out of obstacle when triggered by a Toggle object\n if(fadeIn || fadeOut)\n {\n if(fadeIn)\n {\n if(mirror.getColor().a <0.95f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a + 1 * delta * 8 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, 1f);\n fadeIn = false;\n fadeOut = false;\n }\n }\n else\n {\n if(mirror.getColor().a >= 0.39f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a - 1 * delta * 15 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, Toggle.fadealpha);\n fadeIn = false;\n fadeOut = false;\n }\n }\n }\n\n\n\n\n if(!initialized)\n {\n initialized = true;\n }\n\n if(actCount<4){defineBody(); calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n if(poly.getRotation() != mirror.getRotation()){calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n super.act(delta);\n }",
"public void act() \n {\n move(-2);\n\n if(getX() <= 0)\n {\n getWorld().removeObject(this);\n } \n\n }",
"@Override\n public void tick() {\n if (!this.world.isRemote) {\n if (this.angler == null) {\n this.remove();\n return;\n }\n this.setFlag(6, this.isGlowing());\n }\n this.baseTick();\n age++;\n\n if (this.world.isRemote) {\n int i = this.getDataManager().get(cau_ent);\n\n if (i > 0 && this.caughtEntity == null) {\n this.caughtEntity = this.world.getEntityByID(i - 1);\n MinecraftForge.EVENT_BUS.post(new HookReturningEvent(this));\n }\n } else {\n ItemStack itemstack = this.angler.getHeldItemMainhand();\n\n if (age > 80 || !this.angler.isAlive() || itemstack.getItem() != Items.ITEM_GRAB_HOOK || this.getDistanceSq(this.angler) > 4096.0D) {\n this.remove();\n this.angler.fishingBobber = null;\n return;\n }\n }\n\n if (this.caughtEntity != null && this.angler != null) {\n pullEntity();\n return;\n }\n if (this.inGround) {\n if(hasGrappling && this.angler != null){\n pullUser();\n }else{\n this.remove();\n }\n return;\n }\n\n // In the air\n ++this.ticksInAir;\n if (this.ticksInAir == 20) {\n setReturning();\n }\n if (!this.world.isRemote) {\n boolean caughtSomething = checkCollision();\n if(caughtSomething){\n return;\n }\n\n if (this.isReturning) {\n Vector3d target = this.angler.getPositionVec().add(0, this.angler.getEyeHeight(), 0);\n Vector3d v = target.subtract(this.getPositionVec());\n if (v.length() < 3D) {\n this.remove();\n return;\n }\n v = v.normalize().scale(speed).subtract(0, 0.1, 0);\n this.setMotion(v);\n }\n }\n\n this.move(MoverType.SELF, this.getMotion());\n this.setPosition(this.getPosX(), this.getPosY(), this.getPosZ());\n }",
"void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgetSprite().rotate(-5);\n\t\t\t\t\tempEffect = false;\n\t\t\t\t\tcustomMovement = false;\n\t\t\t\t\thitByEMP = false;\n\t\t\t\t}",
"public void terminate() {\n this.isDying = true;\n //this.isStaticCollidable = false;\n //this.isDynamicCollidable = false;\n\n this.setProp(ObjectProps.PROP_STATICCOLLIDABLE, false);\n this.setProp(ObjectProps.PROP_DYNAMICCOLLIDABLE, false);\n\n this.action = DYING;\n this.velX = 0;\n this.velY = 5;\n }",
"public void act() \n {\n String worldname = getWorld().getClass().getName();\n if (worldname == \"Level0\")\n setImage(new GreenfootImage(\"vibranium.png\"));\n else if (worldname == \"Level1\")\n setImage(rocket.getCurrentImage());\n setLocation(getX()-8, getY()); \n if (getX() == 0) \n {\n getWorld().removeObject(this);\n }\n \n }",
"public void abortDigging(){\n\t\tint tile = mWorld.get(diggingX, diggingY);\n\t\tint type = tile & MaterialBank.MATERIAL_MASK;\n\t\tint result = type | WorldPhysic.COLLISION_MASK;\n\t\tmWorld.set(diggingX, diggingY, result);\n\t\t\n\t\tswitch(direction){\n\t\tcase DIRECTION_LEFT:\n\t\t\tmPhysic.setPos(World.TILE_SIZE*(diggingX+1), World.TILE_SIZE * diggingY);\n\t\t\tmWorld.computeVideType(diggingX+1, diggingY);\n\t\t\tbreak;\n\t\tcase DIRECTION_RIGHT:\n\t\t\tmPhysic.get2D().setRight(World.TILE_SIZE*diggingX);\n\t\t\tmWorld.computeVideType(diggingX-1, diggingY);\n\t\t\tbreak;\n\t\tcase DIRECTION_DOWN:\n\t\t\tmPhysic.get2D().setBottom(World.TILE_SIZE*diggingY);\n\t\t\tmWorld.computeVideType(diggingX, diggingY-1);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tmPhysic.setEnabled(true);\n\t\tmIsDigging = false;\n\t\t\n\t\tmAnimation.stop();\n\t}",
"private Shooter(EndCondition ending) {\n\t\trightShooter.setInverted(true);\n\t\trightFeeder.setInverted(true);\n\t\tShooter.ending = ending;\n\t}",
"public void terminate(){\n tState.stop();\n tMovement.stop();\n collision.remove(this); \n }",
"void hit(GameObject o){\r\n\t\tif (!shield){ // if sheild is on all hits do nothing\r\n\t\t\tif (!(o instanceof UpPower)){ // if didnt hit a power up the ship loses a life\r\n\t\t\t\tif (lives > 1) {\r\n\t\t\t\t\tlives--;\r\n\t\t\t\t\treset();\r\n\t\t\t\t}\r\n\t\t\t\telse { // once there is no life left the ship dies\r\n\t\t\t\t\tdead = true;\r\n\t\t\t\t\tlives--;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n World myWorld = getWorld();\n List<Crab> crabs = myWorld.getObjects(Crab.class);\n for(Crab c : crabs){\n // int y = Greenfoot.getRandomNumber(560);\n // int x = Greenfoot.getRandomNumber(560);\n //c.setLocation(x,y);\n // myWorld.removeObjects(crabs);\n }\n \n /*\n Crab c = new Crab();\n int y = Greenfoot.getRandomNumber(560);\n int x = Greenfoot.getRandomNumber(560);\n myWorld.addObject(c, x, y);\n */\n \n }\n}",
"public void upkeep() {\r\n // Take poison damage\r\n if(poison > 0) {\r\n this.takeDamage(poison);\r\n this.poison--;\r\n }\r\n\r\n // Check if the entity is finished\r\n if(this.health <= 0)\r\n isFinished = true;\r\n }",
"private void circleCollison() {\n\t\t\n\t}",
"public void extractFrom(LivingEntity casterIn, IMagicEffect spellIn)\r\n\t\t{\r\n\t\t\tswitch(this)\r\n\t\t\t{\r\n\t\t\t\tcase SOMATIC:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase VERBAL:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase FOCUS:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MATERIAL:\r\n\t \t\t\tfor(ItemStack item : spellIn.getMaterialComponents())\r\n\t \t\t\t{\r\n\t \t\t\t\tif(casterIn instanceof PlayerEntity)\r\n\t \t\t\t\t{\r\n//\t \t\t\t\t\tPlayerEntity player = (PlayerEntity)casterIn;\r\n//\t \t\t\t\t\tif(!player.isCreative())\r\n//\t \t\t\t\t\t\tplayer.inventory.clearMatchingItems(item.getItem(), item.getMetadata(), item.getCount(), item.hasTag() ? item.getTag() : null);\r\n\t \t\t\t\t}\r\n\t \t\t\t\telse\r\n\t \t\t\t\t{\r\n\t\t \t\t\t\tint count = item.getCount();\r\n\t\t \t\t\t\tfor(Hand hand : Hand.values())\r\n\t\t \t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(count <= 0) break;\r\n\t\t \t\t\t\t\tItemStack heldItem = casterIn.getHeldItem(hand);\r\n\t\t \t\t\t\t\tif(heldItem.isEmpty()) continue;\r\n\t\t\t\t\t\t\t\tif(isMatchingItem(heldItem, item))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tint dif = Math.min(count, heldItem.getCount());\r\n\t\t\t\t\t\t\t\t\tcount -= dif;\r\n\t\t\t\t\t\t\t\t\tif(dif >= heldItem.getCount()) casterIn.setHeldItem(hand, ItemStack.EMPTY);\r\n\t\t\t\t\t\t\t\t\telse heldItem.setCount(heldItem.getCount() - dif);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\tfor(EquipmentSlotType slot : EquipmentSlotType.values())\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\tif(count <= 0) break;\r\n\t\t \t\t\t\t\tItemStack heldItem = casterIn.getItemStackFromSlot(slot);\r\n\t\t \t\t\t\t\tif(heldItem.isEmpty()) continue;\r\n\t\t\t\t\t\t\t\tif(isMatchingItem(heldItem, item))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tint dif = Math.min(count, heldItem.getCount());\r\n\t\t\t\t\t\t\t\t\tcount -= dif;\r\n\t\t\t\t\t\t\t\t\tif(dif >= heldItem.getCount()) casterIn.setItemStackToSlot(slot, ItemStack.EMPTY);\r\n\t\t\t\t\t\t\t\t\telse heldItem.setCount(heldItem.getCount() - dif);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t \t\t\t\t}\r\n\t \t\t\t\t}\r\n\t \t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"private void addEnemySheild() {\n this.enemyShield += 1;\n }",
"void playerHandler() {\n player.turnToPoint(mouseX, mouseY);\n if (firing && sTimer < 1) {\n\n Sprite smb = new Sprite(smbulletbase);\n smb.moveToSprite(player);\n if(usingCoil){\n clickEffect = new KTSound(this, coilshotURL);\n ktAudio.add(clickEffect);\n clickEffect.play();\n clickEffect = new KTSound(this, gunshotURL);\n ktAudio.add(clickEffect);\n }\n smBullets.add(smb);\n clickEffect.play();\n if(weapon == \"minigun\"){\n smb.turnToPoint(mouseX+(int)random(-90,90), mouseY+(int)random(-90,90));\n }\n else{\n smb.turnToPoint(mouseX, mouseY);\n }\n\n sTimer = firingSpeed;\n }\n sTimer -= 1;\n \n prevX = player.getX();\n prevY = player.getY();\n\n if (up) {\n player.moveY( - 5);\n // pAngle -= 1;\n }\n if (down) {\n player.moveY(5);\n // pAngle += 1;\n }\n if (left) {\n player.moveX( - 5);\n // pAngle -= 1;\n }\n if (right) {\n player.moveX(5);\n }\n if (player.getY() < player.getH() / 2) {\n player.setY(player.getH() / 2);\n }\n if (player.getY() > 2048 - player.getH() / 2) {\n player.setY(2048 - player.getH() / 2);\n }\n if (player.getX() < player.getH() / 2) {\n player.setX(player.getH() / 2);\n }\n if (player.getX() > 2048 - player.getH() / 2) {\n player.setX(2048 - player.getH() / 2);\n }\n \n \n\n // player.turnToDir(pAngle);\n player.display();\n // player.displayHitbox();\n}",
"public void smootheRaw(Creature c, int x, int y){\r\n if(!((CreatureAnimator)c.animator).currentName.equals(\"move\")) c.changeAnimation(\"move\");\r\n ((CreatureAnimator)c.animator).updateOrientation(c.x, x);\r\n c.smootheXY(x, y);\r\n }",
"public void act() \n {\n if(foundAvatar())\n {\n int delta = getFun();\n timeRem.addTime(delta);\n getWorld().removeObject(this);\n // setLocation(Greenfoot.getRandomNumber(800), Greenfoot.getRandomNumber(600));\n }\n\n }",
"@Override\n\tpublic void act(long now) {\n\n\t\tcheckIsFrogAtTheEdge();\n\t\t\tif (getIntersectingObjects(Car.class).size() >= 1 ||\n\t\t\t\tgetIntersectingObjects(Truck.class).size() >= 1 ||\n\t\t\t\tgetIntersectingObjects(LongTruck.class).size() >= 1)\n\t\t\t\t{\n\t\t\t\t\tintersectCar = true;\n\t\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(Log.class).size() >= 1 && !death) {\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 6), 0);\n\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(LongLog.class).size() >= 1 && !death) {\n\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 8), 0);\n\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(Turtle.class).size() >= 1) {\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 7), 0);\n\t\t\t}\n\t\t\telse if (getIntersectingObjects(WetTurtle.class).size() >= 1){\n\t\t\t\tif (getIntersectingObjects(WetTurtle.class).get(0).isSunk()) {\n\t\t\t\t\tintersectWater = true;\n\t\t\t\t} else {\n\t\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 7), 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t else if (getIntersectingObjects(End.class).size() >= 1) {\n\n\t\t\t\t\tIntersectEnd();\n\t\t\t\t}\n\n\t\t\telse if (getY() < waterPositionY) {\n\t\t\t\tintersectWater = true;\n\t\t\t}\n\t\t\tgetlives();\n\n\t\t\tCheckIntersect(intersectCar, intersectWater, now);\n\t\t}",
"private void cutoutBlocks(MetropolisGenerator generator, Cartesian v, Cartesian s, Material floor) {\n int xdir, ydir, zdir;\n xdir = s.X < 0 ? -1 : 1;\n ydir = s.Y < 0 ? -1 : 1;\n zdir = s.Z < 0 ? -1 : 1;\n \n for (int x = 0; Math.abs(x) < Math.abs(s.X); x += xdir) {\n for (int z = 0; Math.abs(z) < Math.abs(s.Z); z += zdir) {\n for (int y = 0; Math.abs(y) < Math.abs(s.Y); y += ydir) {\n generator.getWorld().getBlockAt(v.X + x, v.Y + y, v.Z + z).setType(Material.AIR);\n }\n Block below = generator.getWorld().getBlockAt(v.X + x, v.Y - 1, v.Z + z);\n if (!below.isEmpty()) {\n generator.getWorld().getBlockAt(v.X + x, v.Y - 1, v.Z + z).setType(floor);\n }\n }\n }\n }",
"public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Paramos tudo o que estamos fazendo.\n\t\tstop();\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\n\t\t// Giramos a arma na direção do disparo\n\t\tdouble turnGunAmt = Utils.normalRelativeAngleDegrees(e.getBearing() + getHeading() - getGunHeading());\n\t\tturnGunRight(turnGunAmt);\n\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\t\tback(400); // Recuamos\n\t}",
"@Override\r\n\tpublic void handleObject() {\r\n\t\tfinished = false;\r\n\t\t//hand.setStallThreshold(5, 100);\r\n\r\n\t\tif (wheelDriver != null) {\r\n\t\t\twheelDriver.turn(Math.toRadians(30));\r\n\t\t}\r\n\r\n\t\thand.stop();\r\n\t\topenHand();\r\n\r\n\t\tif (wheelDriver != null) {\r\n\t\t\tarm.rotate(SWEEP_ROTATION);\r\n\t\t\twheelDriver.setSpeed(WheelDriver.SPEED_SLOW);\r\n\t\t\twheelDriver.turn(-Math.toRadians(45));\r\n\t\t\twheelDriver.setSpeed(WheelDriver.SPEED_NORMAL);\r\n\t\t\tarm.rotate(ARM_ROTATION - SWEEP_ROTATION);\r\n\t\t\twheelDriver.backward(2);\r\n\t\t} else {\r\n\t\t\tarm.rotate(ARM_ROTATION);\r\n\t\t}\r\n\r\n\t\thand.rotate(-100, true);\r\n\t\ttry {\r\n\t\t\tThread.sleep(WAIT_TIME);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t}\r\n\r\n\t\tif (wheelDriver != null) {\r\n\t\t\twheelDriver.backward(8);\r\n\t\t}\r\n\r\n\t\tarm.rotate(-ARM_ROTATION);\r\n\t\tarm.stop();\r\n\t\tarm.flt();\r\n\r\n\t\tfinished = true;\r\n\t}",
"@Override\n\tpublic void act(float delta) {\n\t\tsuper.act(delta);\n\t\t\n\t\tif(PWM.instance().pointIsInObstacle(this.getX(), this.getY())){\n\t\t\tif(!PWM.instance().pointIsInObstacle(this.getX(), lastPos.y)){\n\t\t\t\tthis.setPosition(this.getX(), lastPos.y);\n\t\t\t}else if(!PWM.instance().pointIsInObstacle(lastPos.x, this.getY())){\n\t\t\t\tthis.setPosition(lastPos.x, this.getY());\n\t\t\t}else{\n\t\t\t\tthis.setPosition(lastPos.x, lastPos.y);\n\t\t\t}\n\t\t\t\n\t\t\tthis.lastPos.x = this.getX();\n\t\t\tthis.lastPos.y = this.getY();\n\t\t\t\n\t\t}\t\t\t\t\n\t\t\n\t\tmainCameraFollowHero();\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void onUpdate() {\n\t\tif(!world.isRemote && !firstTick) {\n\t\t\tLCNetwork.net.sendToAllAround(new MessageSyncTNT(this), \n\t\t\t\t\tnew TargetPoint(this.dimension, this.posX, this.posY, this.posZ, 1024));\n\t\t\tfirstTick = true;\n\t\t}\n\t\t\n\t\tthis.prevPosX = this.posX;\n\t\tthis.prevPosY = this.posY;\n\t\tthis.prevPosZ = this.posZ;\n\t\tthis.motionY -= 0.03999999910593033D;\n\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\tthis.motionX *= 0.9800000190734863D;\n\t\tthis.motionY *= 0.9800000190734863D;\n\t\tthis.motionZ *= 0.9800000190734863D;\n\n\t\tif (this.onGround)\n\t\t{\n\t\t\tthis.motionX *= 0.699999988079071D;\n\t\t\tthis.motionZ *= 0.699999988079071D;\n\t\t\tthis.motionY *= -0.5D;\n\t\t}\n\n\t\tif (this.fuse-- <= 0)\n\t\t{\n\t\t\tthis.setDead();\n\n\t\t\tif (!this.world.isRemote)\n\t\t\t{\n\t\t\t\tthis.explode();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.world.spawnParticle(EnumParticleTypes.SMOKE_LARGE, this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n\t\t}\n\t}",
"public void applyBrake(int decrement)\r\n {\r\n speed -= decrement;\r\n }",
"private void tankWillShoot(Graphics2D g2d, GameState state) {\n if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() > 0 && state.getGunType() % 2 == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfCannonBullet(tankObject.getNumOfCannonBullet() - 1);\n if (tankObject.getCannonLevel() == 1) {\n state.getMissiles().add(new Missile(state, 15));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (tankObject.getCannonLevel() == 2) {\n state.getMissiles().add(new Missile(state, 30));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n } else if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() == 0 && state.getGunType() % 2 == 1) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n state.setMouseClicked(false);\n }\n for (Missile missile : state.getMissiles()) {\n missile.paint(g2d, state);\n }\n if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() > 0 && state.getGunType() % 2 == 0) {\n if (numOfRenderBullet1 == 0 && tankObject.getMachineGunLevel() == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 20));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet2 == 0 && tankObject.getMachineGunLevel() == 2) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 30));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet1 <= 7) {\n numOfRenderBullet1++;\n }\n if (numOfRenderBullet1 == 7) {\n numOfRenderBullet1 = 0;\n }\n if (numOfRenderBullet2 <= 3) {\n numOfRenderBullet2++;\n }\n if (numOfRenderBullet2 == 3) {\n numOfRenderBullet2 = 0;\n }\n }\n else if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() == 0 && state.getGunType() % 2 == 0) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n }\n for (Bullet bullet : state.getBullets()) {\n bullet.paint(g2d, state);\n }\n }",
"private void actionPhase() {\n field.generateRandomFood( 100 );\n List<Blob> k = new ArrayList<>( this );\n Iterator<Blob> kIter;\n Blob currentBlob;\n\n while (!k.isEmpty()) {\n for (kIter = k.iterator(); kIter.hasNext(); ) {\n currentBlob = kIter.next();\n if ( currentBlob.getEnergy() > 0 && !currentBlob.isAtHome() ) {\n currentBlob.move();\n } else {\n kIter.remove();\n }\n }\n }\n }",
"@Override\n protected void end() {\n Robot.shooter.setShooterSpeed(0);\n Robot.elevator.elevatorUp(0);\n Robot.hopper.hopperOut(0);\n Robot.intake.enableIntake(0);\n\n\n }",
"public void drawOn(DrawSurface surface) {\r\n //define the x,y of the upper left point and the widthe and heigt of the rectangle(block).\r\n// double x = this.getCollisionRectangle().getUpperLeft().getX();\r\n// double y = this.getCollisionRectangle().getUpperLeft().getY();\r\n// double height = this.getCollisionRectangle().getHeight();\r\n// double width = this.getCollisionRectangle().getWidth();\r\n// String hitCounteString;\r\n// hitCounteString = Integer.toString(this.hitCounter); // changing the number of hit from int to string.\r\n// if (this.hitCounter == 2) {\r\n// surface.setColor(this.color);\r\n// } else if (this.hitCounter < 2) {\r\n// surface.setColor(this.color.darker());\r\n// } else {\r\n// surface.setColor(this.color.darker());\r\n// }\r\n//// surface.setColor(this.color); // change the color of the surface , rectangle lines(boundries).\r\n// surface.fillRectangle((int) x, (int) y, (int) width, (int) height);\r\n// surface.setColor(Color.black);\r\n// surface.drawRectangle((int) x, (int) y, (int) width, (int) height);\r\n// surface.setColor(Color.black);\r\n// //if the ball hit the block amount of time that made the hit counter to be under zero or equall\r\n// // marked with nothing.\r\n// if (this.hitCounter <= 0) {\r\n// surface.drawText((int) (this.recangle.getUpperLeft().getX()),\r\n// (int) (this.recangle.getUpperLeft().getY()), \"\", 1);\r\n// } else { // else marked the new hit counter.\r\n// surface.setColor(Color.black);\r\n// surface.drawText((int) (this.recangle.getUpperLeft().getX() - 5 + this.recangle.getWidth() / 2),\r\n// (int) (this.recangle.getUpperLeft().getY() + 5 + this.recangle.getHeight() / 2),\r\n// \"\", 15);\r\n// }\r\n//\r\n// if (this.hasText) {\r\n// settext(surface, this.text);\r\n// }\r\n\r\n\r\n Point upperLeft = this.recangle.getUpperLeft();\r\n double width = this.recangle.getWidth();\r\n double height = this.recangle.getHeight();\r\n if (mapImages == null && mapColors == null) {\r\n\r\n //set the color of the block\r\n surface.setColor(this.color);\r\n surface.fillRectangle((int) upperLeft.getX(), (int) upperLeft.getY(), (int) width, (int) height);\r\n return;\r\n }\r\n if (mapImages.containsKey(this.hitCounter - 1)) {\r\n Image image = this.mapImages.get(this.hitCounter - 1);\r\n surface.drawImage((int) this.recangle.getUpperLeft().getX(),\r\n (int) this.recangle.getUpperLeft().getY(), image);\r\n } else if (mapColors.containsKey(this.hitCounter - 1)) {\r\n surface.setColor(mapColors.get(this.hitCounter - 1));\r\n surface.fillRectangle((int) upperLeft.getX(), (int) upperLeft.getY(), (int) width, (int) height);\r\n }\r\n\r\n if ((this.stroke != null)) {\r\n surface.setColor(this.stroke);\r\n surface.drawRectangle((int) upperLeft.getX(), (int) upperLeft.getY(), (int) width, (int) height);\r\n }\r\n //check if count of the hits is under zero:\r\n if (this.hitCounter <= 0) {\r\n return;\r\n }\r\n surface.setColor(Color.white);\r\n\r\n\r\n }",
"public void EjectStackOnMilled( ItemStack stack )\r\n {\r\n \tint iFacing = 2 + worldObj.rand.nextInt( 4 ); // random direction to the sides\r\n \t\r\n \tVec3 ejectPos = Vec3.createVectorHelper( worldObj.rand.nextDouble() * 1.25F - 0.125F, \r\n \t\tworldObj.rand.nextFloat() * ( 1F / 16F ) + ( 7F / 16F ), \r\n \t\t-0.2F );\r\n \t\r\n \tejectPos.RotateAsBlockPosAroundJToFacing( iFacing );\r\n \t\r\n EntityItem entity = new EntityItem( worldObj, xCoord + ejectPos.xCoord, \r\n \t\tyCoord + ejectPos.yCoord, zCoord + ejectPos.zCoord, stack );\r\n\r\n \tVec3 ejectVel = Vec3.createVectorHelper( worldObj.rand.nextGaussian() * 0.025D, \r\n \t\tworldObj.rand.nextGaussian() * 0.025D + 0.1F, \r\n \t\t-0.06D + worldObj.rand.nextGaussian() * 0.04D );\r\n \t\r\n \tejectVel.RotateAsVectorAroundJToFacing( iFacing );\r\n \t\r\n entity.motionX = ejectVel.xCoord;\r\n entity.motionY = ejectVel.yCoord;\r\n entity.motionZ = ejectVel.zCoord;\r\n \r\n entity.delayBeforeCanPickup = 10;\r\n \r\n worldObj.spawnEntityInWorld( entity );\r\n }",
"public void act() \r\n {\r\n super.mueve();\r\n super.tocaBala();\r\n super.creaItem();\r\n \r\n if(getMoveE()==0)\r\n {\r\n \r\n if(shut%3==0)\r\n {\r\n dispara();\r\n shut=shut%3;\r\n shut+=1;\r\n \r\n }\r\n else \r\n shut+=1;\r\n }\r\n super.vidaCero();\r\n }"
] | [
"0.54383594",
"0.53080934",
"0.5201556",
"0.51778686",
"0.5113366",
"0.5099876",
"0.4971835",
"0.49436656",
"0.48744166",
"0.48732674",
"0.48727474",
"0.48708856",
"0.48549643",
"0.48161796",
"0.48120078",
"0.48060837",
"0.47987777",
"0.4790708",
"0.47886792",
"0.47559187",
"0.4750219",
"0.47369504",
"0.47336468",
"0.4732621",
"0.4729577",
"0.47165218",
"0.46865657",
"0.46857613",
"0.46855414",
"0.46834862",
"0.46761936",
"0.4670113",
"0.46657032",
"0.46632823",
"0.466226",
"0.46553344",
"0.46548495",
"0.46542856",
"0.46531293",
"0.46395472",
"0.46347386",
"0.46269527",
"0.46161294",
"0.46108902",
"0.46008682",
"0.45985022",
"0.45858818",
"0.45795393",
"0.45740792",
"0.45617762",
"0.45575866",
"0.45543268",
"0.4546705",
"0.45341864",
"0.4527549",
"0.45274654",
"0.45266244",
"0.451767",
"0.45165852",
"0.45136398",
"0.45116425",
"0.45083934",
"0.45023504",
"0.4499458",
"0.44973508",
"0.4496085",
"0.4493353",
"0.44929042",
"0.4489641",
"0.44887897",
"0.44844168",
"0.44811627",
"0.4476667",
"0.44733435",
"0.44699293",
"0.44696864",
"0.44662106",
"0.44627666",
"0.44556043",
"0.44518015",
"0.4440489",
"0.44371793",
"0.4436454",
"0.443539",
"0.44335452",
"0.44334197",
"0.44269443",
"0.44255003",
"0.44169897",
"0.44143742",
"0.44131684",
"0.44094762",
"0.44084448",
"0.44084108",
"0.44031543",
"0.44027957",
"0.4402639",
"0.44015613",
"0.43985587",
"0.43967992"
] | 0.67985094 | 0 |
MODIFIES: This: The maser's tail. EFFECTS: Returns the first sector with the maser's tail and removes it from the tail if the tail still exists or null otherwise. | private Sector getNext(){
if(sectors.size() == 0){
return null;
}
Sector sector = sectors.get(0);
sectors.remove(0);
return sector;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected T removeFromTail()\n\t{\n\t\tif(tail == null)\n\t\t\treturn null;\n\t\t\n\t\tT ret = tail.getVal();\n\t\ttail = tail.getPrev();\n\t\t\n\t\tif(tail == null)\n\t\t\thead = tail;\n\t\telse\n\t\t\ttail.setNext(null);\n\t\t\n\t\treturn ret;\n\t}",
"@Override\n\tpublic void move(){\n\t\tSector tail = null;\n\t\tif(hit){\n\t\t\ttail = getNext();\n\t\t\tif(tail == null){\t\n\t\t\t\tselfDestruct();\n\t\t\t} else {\t\t\n\t\t\t\tsector.setInhabitant(null);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tsectors.add(sector);\n\t\tSector nextSector = quadrant.getNext(sector, velocity[0]);\t\n\t\tif(nextSector == null){\n\t\t\thit = true;\n\t\t} else {\n\t\t\tSpaceObject object = nextSector.getInhabitant();\n\t\t\tif(object != null) {\n\t\t\t\tobject.bump(this);\n\t\t\t} else {\n\t\t\t\tsetSector(nextSector); \n\t\t\t}\n\t\t} \n\t}",
"T removeFromTail() {\n return this.prev.remove();\n }",
"public T deleteFromTail() {\n if (isEmpty()) \n return null;\n T el = tail.info;\n if (head == tail) // if only one node in the list;\n head = tail = null;\n else { // if more than one node in the list,\n SLLNode<T> tmp; // find the predecessor of tail;\n for (tmp = head; tmp.next != tail; tmp = tmp.next);\n tail = tmp; // the predecessor of tail becomes tail;\n tail.next = null;\n }\n return el;\n }",
"T removeFromTail() {\n if (this.size() == 0) {\n throw new RuntimeException(\"Cannot remove from an empty list\");\n }\n return header.removeFromTail();\n }",
"public Shape getTailShape()\n {\n // If already set, just return\n if (_tailShape!=null) return _tailShape;\n\n // Create/configure/set TailShape\n Path2D path = new Path2D();\n path.moveTo(0, 0);\n path.lineTo(16, 6);\n path.lineTo(0, 12);\n path.lineTo(5, 6);\n path.close();\n return _tailShape = path;\n }",
"public Car getTail(){\n\t\treturn cars.get(cars.size()-1);\n\t}",
"private ParticleMesh createMissileTrail() {\r\n ParticleMesh pMesh = ParticleFactory.buildParticles(\"tail\", 200,\r\n ParticleType.Quad);\r\n pMesh.setEmissionDirection(new Vector3f(1, 1, 1));\r\n pMesh.setInitialVelocity(0);\r\n pMesh.setStartSize(1f);\r\n pMesh.setEndSize(3.45f);\r\n pMesh.setMinimumLifeTime(500);\r\n pMesh.setMaximumLifeTime(500);\r\n pMesh.setStartColor(ColorRGBA.lightGray.clone());\r\n pMesh.setEndColor(ColorRGBA.black.clone());\r\n pMesh.setParticleSpinSpeed(180 * FastMath.DEG_TO_RAD);\r\n pMesh.getParticleController().setControlFlow(true);\r\n// pMesh.setReleaseRate(500);\r\n pMesh.forceRespawn();\r\n \r\n pMesh.setModelBound(new BoundingBox());\r\n pMesh.updateModelBound();\r\n pMesh.setCullHint(Spatial.CullHint.Never);\r\n\r\n // removes the missile from the scene after the particle trail has died\r\n pMesh.getParticleController().addListener(new OnDeadListener());\r\n pMesh.setRenderState(ts);\r\n pMesh.setRenderState(bs);\r\n pMesh.setRenderState(zs);\r\n \r\n missileTrails.add(pMesh);\r\n \r\n return pMesh;\r\n }",
"public void tailDown () {\r\n\t\ttail_mode = true;\r\n\t\tsuper.tailDown();\r\n\t}",
"public int deleteFromTail() {\n int el = tail.info;\r\n if (head == tail) // if only one node in the list;\r\n head = tail = null;\r\n else { // if more than one node in the list,\r\n IntSLLNode tmp; // find the predecessor of tail;\r\n for (tmp = head; tmp.next != tail; tmp = tmp.next);\r\n tail = tmp; // the predecessor of tail becomes tail;\r\n tail.next = null;\r\n }\r\n return el;\r\n }",
"public E removeLast() {\n if(isEmpty()){\n return null;\n }else{\n return remove(trailer.getPrev());\n }\n }",
"public Segment killSnake(Segment end) {\n\t\tif(tail==null) return null; // if the tail is null, exit the recursion\n\t\telse { // otherwise\n\t\t\ttail = tail.getSeg(); // set the tail to be the segment that the tail currently has \n\t\t\t// a handle on.\n\t\t\tparts--; // subtract the number of parts\n\t\t\treturn this.killSnake(tail); // call this method again using the new tail\n\t\t}\n\t}",
"public void setTail(boolean tail) {\n this.tail = tail;\n }",
"private void deleteFromTail() {\n if (size == 0)\n return;\n else {\n tail = tail.pre;\n tail.next = null;\n size--;\n }\n }",
"public E getTail() {\n if (isCurrent() && tail != null) { return tail.getData(); }\n else { throw new IllegalStateException(\"There is no tail element.\"); }\n }",
"public float getTaille() {\r\n return taille;\r\n }",
"public IntVector tail () {\n return tail;\n }",
"@Override\n public String removeTail() {\n String str = null;\n Node holder = this.head;\n if (!isEmpty()) {\n str = tail.getValue();\n if (size() == 1) {\n makeEmpty();\n } else {\n do {\n holder = holder.getNext();\n } while (holder.getNext() != tail);\n holder.setNext(null);\n tail = holder;\n }\n }\n return str;\n }",
"public ParticleMesh getMissileTrail() {\r\n for (int x = 0, tSize = missileTrails.size(); x < tSize; x++) {\r\n ParticleMesh e = missileTrails.get(x);\r\n if (!e.isActive()) {\r\n e.getParticleController().setRepeatType(Controller.RT_WRAP);\r\n e.forceRespawn();\r\n return e;\r\n }\r\n }\r\n return createMissileTrail();\r\n }",
"public void dismountTapeFile() {\r\n\t\tif (this.tapeIo == null) { return; } // no tape mounted\r\n\t\t\r\n\t\tif (this.needsSaving()) {\r\n\t\t\tthis.tapeIo.writeTapeFile(this.headLimit, this.tailLimit);\r\n\t\t}\r\n\t\tthis.tapeIo = null;\r\n\t\t\r\n\t\tthis.headLimit.append(this.tailLimit);\r\n\t\tthis.tailLimit.append(null); // (just to be sure)\r\n\t\t\r\n\t\tthis.isModified = false;\r\n\t\tthis.isReadonly = true;\r\n\t\tthis.currentBlock = this.headLimit;\r\n\t\tthis.hasFailedAccessAttempt = false;\r\n\t\t\r\n\t\tthis.resetSense();\r\n\t}",
"void cut(int cardPosition);",
"public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }",
"public boolean isTail() {\n return tail;\n }",
"public Column getTail() {\n return tail != null ? tail : this;\n }",
"private int removeTail() {\n DNode node = tail.prev;\n removeNode(node);\n map.remove(node.key, node);\n return node.key;\n }",
"public E removeFirst() { // removes and returns the first element\n // TODO\n if (isEmpty( )) return null;\n Node<E> head = tail.getNext();\n if (head == tail) tail = null;\n else tail.setNext(head.getNext( ));\n size--;\n return head.getElement( );\n }",
"@Override\n public void update() {\n head.setRadius(getSize() / 2);\n body.setFill(getColor());\n\n if (isTail()) {\n\n // TAIL\n\n if (getP().getDirection() == Direction.EAST) {\n tail(getX() * getSize(), getY() * getSize() + getSize() - MARGIN / 2, getSize() - (MARGIN / 2), getSize() - MARGIN, 0.0F);\n return;\n }\n\n if (getP().getDirection() == Direction.WEST) {\n tail(getX() * getSize() + getSize(), getY() * getSize() + getSize() - MARGIN / 2, getSize() - MARGIN / 2, getSize() - MARGIN, 90.0F);\n return;\n }\n\n if (getP().getDirection() == Direction.NORTH) {\n tail(getX() * getSize() + MARGIN / 2, getY() * getSize() + getSize(), getSize() - MARGIN, getSize() - MARGIN, 0.0F);\n return;\n }\n\n if (getP().getDirection() == Direction.SOUTH) {\n tail(getX() * getSize() + MARGIN / 2, getY() * getSize(), getSize() - MARGIN, getSize() - MARGIN, 270.0F);\n }\n\n return;\n }\n\n if (isHead()) {\n\n // HEAD\n\n switch (getDirection()) {\n case EAST:\n head.setCenterX(getX() * getSize() + (getSize() / 2));\n head.setCenterY(getY() * getSize() + (getSize() / 2));\n\n body.setX(getX() * getSize() + getSize() / 2 + 2);\n body.setY(getY() * getSize() + MARGIN / 2);\n body.setWidth(getSize() / 2);\n body.setHeight(getSize() - MARGIN);\n\n add(\n head,\n body,\n eye(getX() * getSize() + getSize() / 2, getY() * getSize() + (getSize() / 2) - 5),\n eye(getX() * getSize() + getSize() / 2, getY() * getSize() + (getSize() / 2) + 5)\n );\n break;\n case WEST:\n head.setCenterX(getX() * getSize() + getSize() / 2);\n head.setCenterY(getY() * getSize() + getSize() / 2);\n\n body.setX(getX() * getSize());\n body.setY(getY() * getSize() + MARGIN / 2);\n body.setWidth(getSize() / 2);\n body.setHeight(getSize() - MARGIN);\n\n add(\n head,\n body,\n eye(getX() * getSize() + getSize() / 2, getY() * getSize() + getSize() / 2 - 5),\n eye(getX() * getSize() + getSize() / 2, getY() * getSize() + getSize() / 2 + 5)\n );\n break;\n case NORTH:\n head.setCenterX(getX() * getSize() + getSize() / 2);\n head.setCenterY(getY() * getSize() + getSize() / 2);\n\n body.setX(getX() * getSize() + MARGIN / 2);\n body.setY(getY() * getSize() - 2);\n body.setWidth(getSize() - MARGIN);\n body.setHeight(getSize() / 2);\n\n add(\n head,\n body,\n eye(getX() * getSize() + getSize() / 2 - 5, getY() * getSize() + getSize() / 2),\n eye(getX() * getSize() + getSize() / 2 + 5, getY() * getSize() + getSize() / 2)\n );\n break;\n case SOUTH:\n head.setCenterX(getX() * getSize() + getSize() / 2);\n head.setCenterY(getY() * getSize() + getSize() / 2);\n\n body.setX(getX() * getSize() + MARGIN / 2);\n body.setY(getY() * getSize() + getSize() / 2 + 2);\n body.setWidth(getSize() - MARGIN);\n body.setHeight(getSize() / 2);\n\n add(\n head,\n body,\n eye(getX() * getSize() + getSize() / 2 - 5, getY() * getSize() + getSize() / 2),\n eye(getX() * getSize() + getSize() / 2 + 5, getY() * getSize() + getSize() / 2)\n );\n break;\n }\n return;\n }\n\n // BODY\n\n if (getDirection() == getP().getDirection()) {\n if (getDirection() == Direction.WEST || getDirection() == Direction.EAST) {\n body.setX(getX() * getSize());\n body.setY(getY() * getSize() + MARGIN / 2);\n body.setWidth(getSize());\n body.setHeight(getSize() - MARGIN);\n } else {\n body.setX(getX() * getSize() + MARGIN / 2);\n body.setY(getY() * getSize());\n body.setWidth(getSize() - MARGIN);\n body.setHeight(getSize());\n }\n add(body);\n return;\n }\n\n // <-->\n\n if (getDirection() == Direction.WEST && getP().getDirection() == Direction.SOUTH) {\n arc(getX() * getSize(), getY() * getSize(), 270.0F);\n return;\n }\n if (getDirection() == Direction.NORTH && getP().getDirection() == Direction.EAST) {\n arc(getX() * getSize(), getY() * getSize(), 270.0F);\n return;\n }\n\n // <-->\n\n if (getDirection() == Direction.WEST && getP().getDirection() == Direction.NORTH) {\n arc(getX() * getSize(), getY() * getSize() + getSize(), 0.0F);\n return;\n }\n if (getDirection() == Direction.SOUTH && getP().getDirection() == Direction.EAST) {\n arc(getX() * getSize(), getY() * getSize() + getSize(), 0.0F);\n return;\n }\n\n // <-->\n\n if (getDirection() == Direction.EAST && getP().getDirection() == Direction.SOUTH) {\n arc(getX() * getSize() + getSize(), getY() * getSize(), 180.0F);\n return;\n }\n if (getDirection() == Direction.NORTH && getP().getDirection() == Direction.WEST) {\n arc(getX() * getSize() + getSize(), getY() * getSize(), 180.0F);\n return;\n }\n\n // <-->\n\n if (getDirection() == Direction.EAST && getP().getDirection() == Direction.NORTH) {\n arc(getX() * getSize() + getSize(), getY() * getSize() + getSize(), 90.0F);\n return;\n }\n if (getDirection() == Direction.SOUTH && getP().getDirection() == Direction.WEST) {\n arc(getX() * getSize() + getSize(), getY() * getSize() + getSize(), 90.0F);\n }\n }",
"public void deleteTail() {\n\t\tif (isEmpty()) {\n\t\t\tSystem.out.println(\"List is empty... Cannot remove from tail.\");\n\t\t\treturn;\n\t\t}\n\t\t//if only one element into list \n\t\tif (head == tail) {\n\t\t\thead = tail = null;\n\t\t\treturn;\n\t\t}\n\t\tNode currentNode = head;\n\t\t//getting second last node\n\t\twhile (currentNode.getNext() != tail) {\n\t\t\tcurrentNode = currentNode.getNext();\n\t\t}\n\t\tcurrentNode.setNext(null);\n\t\ttail = currentNode;\n\t}",
"public Type show_tail() {\n \t \n \t //just return element in tail\n\t return(len != 1 ? tail.show_element(): null);\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"private void convertHeadToTailComponent() {\n\t\tHeadComponent curHead = (HeadComponent) snake.getLast();\n\t\tsnake.removeLast();\n\t\tsnake.addLast(new TailComponent(curHead.getX(), curHead.getY()));\n\t}",
"public Square getTail() {\n return this.tail;\n }",
"public NodeD getTail() {\n return tail;\n }",
"private void removeTailElement(){\n JavaBaseTask removed = items.remove(tail.getKey());\n System.out.println(\"element with index : \" + removed.getKey() + \"has been deleted doe to cache eviction\");\n tail = tail.previous;\n var headAu = head;\n while (headAu.next != null){\n headAu = headAu.next;\n }\n headAu = headAu.previous;\n headAu.next = null;\n }",
"public void removeEnd() {\n\t\t\tif (length != 0)\n\t\t\t\t{ \n\t\t\t ElementDPtr save = tail.getPrev();\n\t\t\t tail.setPrev(save.getPrev());\n\t\t\t save.getPrev().setNext(tail);\n\t\t\t length -= 1;\n\t\t\t System.out.println(tail.getPrev().getValue() + \" removeE \" + length);\n\t\t\t\t}\n\t\t\t\n\t\t}",
"public Card removeTopCard(){\n\t\treturn this.pile.remove(0);\n\t}",
"public boolean addTailor(Tailor tailor);",
"public Node removeTail(){\n\t\tif(head==null) return null;\n\t\t\n\t\t// check if only one node exists\n\t\tif(head.getNext()==null) {\n\t\t\tNode temp = head;\n\t\t\thead = null;\n\t\t\treturn temp;\n\t\t}\n\t\t\n\t\tNode current = head;\n\t\tNode previous = null;\n\t\t\n\t\t// traverse to last node\n\t\twhile(current.getNext()!=null){\n\t\t\tprevious = current;\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\t// remove the last node\n\t\tNode tail = previous.getNext();\n\t\tprevious.setNext(null);\n\t\t\n\t\treturn tail;\n\t}",
"public Point getTailLocation ()\r\n {\r\n if (tailLocation == null) {\r\n computeLocations();\r\n }\r\n\r\n return tailLocation;\r\n }",
"public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }",
"public T getTail() {\n\t\treturn tail.value;\n\t}",
"public interface HasTail {\r\n\tboolean isTailStriped();\r\n}",
"protected T removeEnd() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> iterator = this.getHead();\r\n\t\t\twhile (iterator.getPrev().getPrev() != tail) {\r\n\t\t\t\titerator = iterator.getPrev();\r\n\t\t\t}\r\n\t\t\tSNode<T> endNode = iterator.getPrev();\r\n\t\t\titerator.setPrev(tail);\r\n\t\t\tsize--;\r\n\t\t\treturn endNode.getValue();\r\n\t\t}\r\n\t\t// The list is empty\r\n\t\treturn null;\r\n\t}",
"public long getTaille() {\n return taille;\n }",
"public Item removeLast() {\n Item val = deck[bFront];\n deck[bFront--] = null;\n return val;\n }",
"@Override\n public T removeLast() {\n if (size == 0) {\n return null;\n }\n\n int position = minusOne(nextLast);\n T itemToReturn = array[position];\n array[position] = null;\n nextLast = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }",
"private DLinkedNode popTail() {\n\t\t\tDLinkedNode res = tail.pre;\n\t\t\tthis.removeNode(res);\n\t\t\treturn res;\n\t\t}",
"public int getTaille() {\n return taille;\n }",
"public Disc pop()\n\t{\n\t\tint poleSize = pole.size();\n\n\t\t// If the pole is empty, return nothing\n\t\tif(poleSize == 0)\n\t\t\treturn null;\n\n\t\t// Get the disc\n\t\tDisc disc = pole.get(poleSize - 1);\n\n\t\t// Remove the disc from the pole\n\t\tpole.remove(poleSize - 1);\n\t\tdisc.setPole(null);\n\n\t\t// Return the disc\n\t\treturn disc;\n\t}",
"public boolean removeEdge(V tail);",
"public void moveTail(final T e) {\n if (e == tail) {\n return;\n }\n remove(e);\n pushTail(e);\n }",
"@Override\r\n\tpublic void removeTempSeat(Seat seat) {\n\t\t\r\n\t}",
"public void remove() {\r\n\tif (kingdom != null && currentEffect != null)\r\n\t currentEffect.removeFrom(kingdom);\r\n\tcurrentEffect = null;\r\n }",
"public T removeLast(){\n\tT ret = _end.getCargo();\n\t_end = _end.getNext();\n\t_end.setPrev(null);\n\t_size--;\n\treturn ret;\n }",
"public void setTaille(long taille) {\n this.taille = taille;\n }",
"public String tail() {\n if (isEmpty() == false) {\n return head.getData();\n } else {\n return null;\n }\n }",
"public Tile removeTile() {\n if (tileBag.size() == 0) {\n return null;\n }\n return tileBag.remove(0);\n }",
"private void tear() {\n\t\tthis.torn = true;\n\t\tthis.getContainer().addToContents(getDucatContent());\n\t\tthis.getContainer().removeFromContents(this);\n\t}",
"public int taille() {\n\t\treturn getSize();\n\t}",
"public Object removeLast() {\n if(tail == null) return null;\n if(tail == head) return removeFirst();\n\n Object temp = tail.getElement();\n Node n = tail.getPrevious();\n n.setNext(null);\n tail = n;\n\n return temp;\n }",
"private DLinkedNode popTail(){\n DLinkedNode res = tail.pre;\n this.removeNode(res);\n return res;\n }",
"protected T removeFromHead()\n\t{\n\t\tif(head == null)\n\t\t\treturn null;\n\t\t\n\t\tT ret = head.getVal();\n\t\thead = head.getNext();\n\t\t\n\t\tif(head == null)\n\t\t\ttail = head;\n\t\telse\n\t\t\thead.setPrev(null);\n\t\t\n\t\treturn ret;\n\t}",
"public Node getTail() {\n\t\treturn tail;\n\t}",
"public Node getTail() {\n\t\treturn tail;\n\t}",
"public void unsetTfoot()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TFOOT$8, 0);\n }\n }",
"protected T removeBeginning() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> startNode = this.getHead().getPrev();\r\n\t\t\tthis.getHead().setPrev(startNode.getPrev());\r\n\t\t\tsize--;\r\n\t\t\treturn startNode.getValue();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private ListNode popTail() {\n\t ListNode tailItem = tail.prev;\n\t removeFromList(tailItem);\n\n\t return tailItem;\n\t }",
"public Place tail(){\n return places.get(places.size()-1);\n }",
"public void removeHead() {\n\t\t\tif (length != 0)\n\t\t\t{ \n\t\t ElementDPtr save = head.getNext();\n\t\t head = head.getNext();\n\t\t\thead.setPrev(null);\n\t\t\thead.setNext(save.getNext());\n\t\t\tlength -= 1;\n\t\t\tSystem.out.println(tail.getPrev().getValue() + \" removeB \" + length);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"public char removeCharAtEnd() {\n\t\t\n\t\tchar c = tail.getC();\n\t\tif(tail.getPrev()!=null){\n\t\t\ttail=tail.getPrev();\n\t\t\ttail.setNext(null);\n\t\t}\n\t\telse{\n\t\t\thead=null;\n\t\t\ttail=null;\n\t\t}\n\t\treturn c;\n\t}",
"public Disc top()\n\t{\n\t\tint poleSize = pole.size();\n\n\t\t// If the pole is empty, return nothing\n\t\tif(poleSize == 0)\n\t\t\treturn null;\n\n\t\t// Otherwise return the top disc\n\t\treturn pole.get(poleSize - 1);\n\t}",
"private DLinkedNode popTail() {\n\t\tDLinkedNode res = tail.prev;\n\t\tremoveNode(res);\n\t\treturn res;\n\t}",
"public int obtenirTaille()\n\t{\n\t\treturn this.taille;\n\t}",
"public Item removeFirst() {\n Item val = deck[fFront];\n deck[fFront++] = null;\n return val;\n }",
"public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }",
"public T removeLast() {\n if (size() == 0) {\n return null;\n }\n nextLast = minusOne(nextLast);\n size -= 1;\n T toRemove = items[nextLast];\n items[nextLast] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }",
"boolean removeEffect(Effect effect) {\n/* 2699 */ boolean removed = false;\n/* 2700 */ if (this.effects != null && this.effects.contains(effect)) {\n/* */ \n/* 2702 */ this.effects.remove(effect);\n/* 2703 */ if (this.watchers != null)\n/* */ {\n/* 2705 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();)\n/* 2706 */ ((VirtualZone)it.next()).removeEffect(effect); \n/* */ }\n/* 2708 */ if (this.effects.size() == 0)\n/* 2709 */ this.effects = null; \n/* 2710 */ removed = true;\n/* */ } \n/* */ \n/* 2713 */ return removed;\n/* */ }",
"public void tailUp () {\r\n\t\ttail_mode = false;\r\n\t\tsuper.tailUp();\r\n\t}",
"public E last() {\n\r\n if(tail == null) {\r\n return null;\r\n } else {\r\n return tail.getItem();\r\n\r\n }\r\n }",
"T dequeue() {\n return contents.removeFromTail();\n }",
"public void moveToEnd() {\r\n\t\tcurr = tail;\r\n\t}",
"public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }",
"@Override\n public T removeFirst() {\n if (size == 0) {\n return null;\n }\n\n int position = plusOne(nextFirst);\n T itemToReturn = array[position];\n array[position] = null;\n nextFirst = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }",
"private Line getMiddleTrajectory() {\n Point startPoint;\n if (movingRight()) {\n startPoint = middleRight();\n } else if (movingLeft()) {\n startPoint = middleLeft();\n } else {\n return null;\n }\n\n return new Line(startPoint, this.velocity);\n }",
"public E last() {\n if(isEmpty()){\n return null;\n }else{\n return trailer.getPrev().getElement();\n }\n }",
"public Card remove() {\n return (this.cards.size() > 0) ? this.cards.remove(0) : null;\n }",
"public T deleteFromHead() {\n if (isEmpty()) \n return null;\n T el = head.info;\n if (head == tail) // if only one node on the list;\n head = tail = null;\n else head = head.next;\n return el;\n }",
"public Item deleteAtEnd() {\n \tItem returnItem = tail.item; \t\n \ttail = tail.previous;\n \thead.previous = tail;\n \tsize--;\n \treturn returnItem;\n }",
"public E removeFirst() {\n if(isEmpty()){\n return null;\n }else{\n return remove(header.getNext());\n }\n }",
"InductiveList<E> tail() throws UnsupportedOperationException;",
"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}",
"public T deleteHead(){\n if (head.next != tail || tail.prev != head) {\n T data = head.next.data;\n head = head.next;\n return data;\n }\n return null;\n }",
"public static String cutTailStr(String origin, String tail) {\n return origin.substring(0, origin.length() - tail.length());\n }",
"public T removeLast() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[rear];\n }\n this.checkReSizeDown();\n size--;\n rear--;\n this.updatePointer();\n return array[Math.floorMod(rear + 1, array.length)];\n }",
"public void truncateFinal() {\n trimHead();\n }",
"public void removeEffectFromSpecialBrick(){\r\n\t\t\t// return everything to the original\r\n\t\t\tColor origColor = (specialBrickId.equals(\"Rect0\"))? discsColors[0]:(specialBrickId.equals(\"Rect1\"))? discsColors[1]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect2\"))? discsColors[2]:(specialBrickId.equals(\"Rect3\"))? discsColors[3]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect4\"))? discsColors[4]:(specialBrickId.equals(\"Rect5\"))? discsColors[5]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect6\"))? discsColors[6]:(specialBrickId.equals(\"Rect7\"))? discsColors[7]:null; \r\n\t\t\tint origWidth = (specialBrickId.equals(\"Rect0\"))? 30:(specialBrickId.equals(\"Rect1\"))? 60:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect2\"))? 90:(specialBrickId.equals(\"Rect3\"))? 120:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect4\"))? 150:(specialBrickId.equals(\"Rect5\"))? 180:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect6\"))? 210:(specialBrickId.equals(\"Rect7\"))? 240:null;\r\n\t\t\tRectangle rect = new Rectangle(origWidth,20, origColor);\r\n\t\t\trect.setId(specialBrickId);\r\n\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\trect.setStrokeWidth(3);\r\n\t\t\t\t\t\t\r\n\t\t\tswitch(specialBrickTower){\r\n\t\t\t\tcase \"firstTower\":\r\n\t\t\t\t\tfor(int i=0; i<firstTower.getChildren().size(); i++){ // cycle through the tower to check which one is the special brick\r\n\t\t\t\t\t\tif (firstTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tfirstTower.getChildren().set(i, rect); // then reset it\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"secondTower\":\r\n\t\t\t\t\tfor(int i=0; i<secondTower.getChildren().size(); i++){\r\n\t\t\t\t\t\tif (secondTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tsecondTower.getChildren().set(i, rect);\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"thirdTower\":\r\n\t\t\t\t\tfor(int i=0; i<thirdTower.getChildren().size(); i++){\r\n\t\t\t\t\t\tif (thirdTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tthirdTower.getChildren().set(i, rect);\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\trect.widthProperty().bind(scene.widthProperty().divide(3).subtract(250-origWidth));\r\n\t\t\trect.heightProperty().bind(scene.heightProperty().divide(19));\r\n\t\t\r\n\t\tif(countDownRunning){towersRegion.getChildren().remove(2);countDownRunning=false;} // remove the count down watch from the screen\t\t\r\n\t\tspecialBrickId=null; // reset the special brick id\r\n\t}",
"private E remove(){\n E tmp = array[0];\n swap(0,--lastPosition);\n array[lastPosition] = null;\n trickleDown(0);\n array = Arrays.copyOfRange(array,0,array.length);\n return tmp;\n }",
"private void finishErasing() {\n synchronized (lastEraseTrace) {\n if (lastEraseTrace.size() > 0) {\n ArrayList<Shape> t = new ArrayList<Shape>();\n t.add(new EraseTrace(lastEraseTrace, sheet.toSheet(eraserRadius)));\n sheet.doAction(new AddShapes(t));\n lastEraseTrace.clear();\n }\n }\n }",
"public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}",
"private Alien2 shootmiddle() {\n\t\tAlien2 shooter = alien2[choose()];\n\t\tif (shooter == null) return shootmiddle();\n\t\telse if (shooter.Destroyed) return shootmiddle();\n\t\telse return shooter;\n\t}"
] | [
"0.56616443",
"0.5614978",
"0.5593364",
"0.5517679",
"0.5478659",
"0.5453493",
"0.54400206",
"0.5430206",
"0.52552795",
"0.5195552",
"0.5117662",
"0.5114063",
"0.5022217",
"0.5004819",
"0.4971019",
"0.4953299",
"0.49519694",
"0.49473894",
"0.4906611",
"0.48929223",
"0.48527274",
"0.48519272",
"0.48460817",
"0.4840381",
"0.48179403",
"0.4808425",
"0.48068434",
"0.47977853",
"0.4790444",
"0.47859567",
"0.47760484",
"0.47714907",
"0.4767706",
"0.4760964",
"0.4742494",
"0.4740876",
"0.47354388",
"0.472887",
"0.4715085",
"0.4714192",
"0.47122633",
"0.46873868",
"0.4684801",
"0.46676713",
"0.46594486",
"0.46343794",
"0.46332577",
"0.46304286",
"0.46279985",
"0.46111292",
"0.4603406",
"0.46001664",
"0.4595993",
"0.4593867",
"0.45924324",
"0.4589343",
"0.45858714",
"0.45857003",
"0.45694238",
"0.45626935",
"0.45448086",
"0.45442224",
"0.45435792",
"0.45435792",
"0.4524445",
"0.4522484",
"0.45221993",
"0.45206347",
"0.45194378",
"0.45165533",
"0.44998717",
"0.44989875",
"0.4495177",
"0.44563973",
"0.44559467",
"0.4455097",
"0.44504666",
"0.4443507",
"0.44409138",
"0.44395483",
"0.443612",
"0.44350398",
"0.44243023",
"0.44239992",
"0.4421764",
"0.44117063",
"0.4410386",
"0.44079068",
"0.43959472",
"0.43939456",
"0.43864557",
"0.43820912",
"0.43758067",
"0.43756038",
"0.4361594",
"0.43559164",
"0.4353561",
"0.43517786",
"0.434449",
"0.43399313"
] | 0.5175161 | 10 |
PURPOSE: This has been hit by other SpaceObject so it sets 'hit' to true so that it can start removing its tail and object's bumped() called so that they can deal with this particular impact MODIFIES: This: hit. EFFECTS: Starts destroying the maser starting with its tail. | @Override
public void bump(SpaceObject object) {
object.bumped(this);
hit = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void bumped(SpaceObject object) {\n\t\thit = true;\t\n\t}",
"private void hit(GObject element) {\r\n\t\tremove(bullet);\r\n\t\tbullet = null;\r\n\t\thitGraphic(element);\r\n\t\tif(element == dragon1) {\r\n\t\t\tlifeArray[DRAGON_ONE]--;\r\n\t\t\tif(lifeArray[DRAGON_ONE] < 1) {\r\n\t\t\t\tremove(dragon1);\r\n\t\t\t\tdragon1 = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(element == dragon2) {\r\n\t\t\tlifeArray[DRAGON_TWO]--;\r\n\t\t\tif(lifeArray[DRAGON_TWO] < 1) {\r\n\t\t\t\tremove(dragon2);\r\n\t\t\t\tdragon2 = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(element == mehran) {\r\n\t\t\tlifeArray[MEHRAN]--;\r\n\t\t\tif(lifeArray[MEHRAN] < 1) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void Hit()\n {\n this.numLives--;\n //Oscillate visible and not if the number of lives is greater than zero\n if(this.numLives > 0)\n {\n this.damaged = true;\n this.Blink(1);\n\n }\n }",
"public void takesHit()\n {\n // TODO: replace this line with your code\n }",
"public void weaken(float hit) {\n if (!isInvincible()) {\n hp -= hit;\n invincible = true;\n if (hp < 0) {\n hp = 0;\n }\n\n if(isWeak()){ //Play the death animation\n currentAnimation = deathAnimation;\n }\n }\n }",
"public void hit() {\n if (explodeTime == 0) {\n if (isExplosive) {\n region = explodeAnimation.getKeyFrame(explodeTime, false);\n explodeTime += Gdx.graphics.getDeltaTime();\n width = region.getRegionWidth();\n height = region.getRegionHeight();\n position.sub(width / 2, height / 2);\n direction = new Vector2(1, 0);\n explosionSound.play();\n } else {\n impactSound.play();\n active = false;\n }\n }\n }",
"public void setHit(boolean b) {\r\n\t\tthis.hit = b;\r\n\t\t\r\n\t}",
"@Override\r\n public void hitEvent(Block beingHit, Ball hitter) {\n this.currentScore.increase(5);\r\n // and destroying a block is worth and additional 10 points\r\n if (beingHit.getHitPointsNumber() == 0) {\r\n this.currentScore.increase(10);\r\n }\r\n }",
"public void attackEntity(Entity entityToHit) {\n ItemStack item = tinkerProjectile.getItemStack();\n ItemStack launcher = tinkerProjectile.getLaunchingStack();\n\n // deal damage if we have everything\n if(item.getItem() instanceof ToolCore && this.attacker != null) {\n EntityLivingBase attacker = (EntityLivingBase) this.attacker;\n //EntityLivingBase target = (EntityLivingBase) raytraceResult.entityHit;\n\n // find the actual itemstack in the players inventory\n ItemStack inventoryItem = AmmoHelper.getMatchingItemstackFromInventory(tinkerProjectile.getItemStack(), attacker, false);\n if(inventoryItem.isEmpty() || inventoryItem.getItem() != item.getItem()) {\n // backup, use saved itemstack\n inventoryItem = item;\n }\n\n // for the sake of dealing damage we always ensure that the impact itemstack has the correct broken state\n // since the ammo stack can break while the arrow travels/if it's the last arrow\n boolean brokenStateDiffers = ToolHelper.isBroken(inventoryItem) != ToolHelper.isBroken(item);\n if(brokenStateDiffers) {\n toggleBroken(inventoryItem);\n }\n\n Multimap<String, AttributeModifier> projectileAttributes = null;\n // remove stats from held items\n if(!world.isRemote) {\n unequip(attacker, EntityEquipmentSlot.OFFHAND);\n unequip(attacker, EntityEquipmentSlot.MAINHAND);\n\n // apply stats from projectile\n if(item.getItem() instanceof IProjectile) {\n projectileAttributes = ((IProjectile) item.getItem()).getProjectileAttributeModifier(inventoryItem);\n\n if(launcher.getItem() instanceof ILauncher) {\n ((ILauncher) launcher.getItem()).modifyProjectileAttributes(projectileAttributes, tinkerProjectile.getLaunchingStack(), tinkerProjectile.getItemStack(), tinkerProjectile.getPower());\n }\n\n // factor in power\n projectileAttributes.put(SharedMonsterAttributes.ATTACK_DAMAGE.getName(),\n new AttributeModifier(PROJECTILE_POWER_MODIFIER, \"Weapon damage multiplier\", tinkerProjectile.getPower() - 1f, 2));\n\n attacker.getAttributeMap().applyAttributeModifiers(projectileAttributes);\n }\n // deal the damage\n// ToolHelper.attackEntity(item, (ToolCore) item.getItem(), attacker, entityToHit, null);\n// float speed = MathHelper.sqrt(this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ);\n\n boolean attack = ToolHelper.attackEntity(item, (ToolCore) item.getItem(), attacker, entityToHit, null);\n// if(attack) {\n//// for(IProjectileTrait trait : tinkerProjectile.getProjectileTraits()) {\n//// trait.afterHit(tinkerProjectile.get, this.world, inventoryItem, attacker, entityToHit, (double) 0.0);\n//// }\n//\n// // if on fire, set the entity on fire, like vanilla arrows\n//// if (this.isBurning() && !(entityToHit instanceof EntityEnderman)) {\n//// entityToHit.setFire(5);\n//// }\n// }\n if(brokenStateDiffers) {\n toggleBroken(inventoryItem);\n }\n\n // remove stats from projectile\n // apply stats from projectile\n if(item.getItem() instanceof IProjectile) {\n assert projectileAttributes != null;\n attacker.getAttributeMap().removeAttributeModifiers(projectileAttributes);\n }\n\n // readd stats from held items\n equip(attacker, EntityEquipmentSlot.MAINHAND);\n equip(attacker, EntityEquipmentSlot.OFFHAND);\n }\n }else {\n System.out.println(\"something failed with attacking.\");\n }\n }",
"@Override\n\t\tpublic void hit(Npc attacker, Mob defender, Hit hit) {\n\t\t}",
"@Override\n \tpublic Actor hit(float x, float y) {\n \t\treturn null;\n \t}",
"void impact(GameObject object) {\n\n }",
"@Override\n public void hit(int atk) {\n hp = hp - atk;\n }",
"public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }",
"@Override\n\tpublic void onHit() {\n\t\t\n\t}",
"public boolean isHit() { return hit; }",
"@Override\r\n public void onHit(int damage){\n if(box2body != null){\r\n hp -= damage;\r\n screen.getGameManager().get(\"Sounds/orc-34-hit.wav\", Sound.class).play();\r\n if(this.hp <= 0) {\r\n screen.bodiesToDelete.add(box2body);\r\n deleteFlag = true;\r\n screen.spawnedCreatures.remove(this);\r\n screen.getGameManager().get(\"Sounds/orc-32-death.wav\", Sound.class).play();\r\n\r\n //Award Experience\r\n screen.getPlayer().awardExperience(this.experienceValue);\r\n screen.getPlayer().increaseKillCount();\r\n }\r\n }\r\n //Attack player when damaged\r\n //Prevents player from sniping monsters using Wander AI\r\n if(currentState != State.ATTACKING){\r\n Vector2 orcPosition = new Vector2(box2body.getPosition().x, box2body.getPosition().y);\r\n Vector2 playerPosition = new Vector2(screen.getPlayer().box2body.getPosition().x, screen.getPlayer().box2body.getPosition().y);\r\n\r\n currentState = State.HASBEENATTACKED;\r\n velocity = new Vector2(playerPosition.x - orcPosition.x, playerPosition.y - orcPosition.y);\r\n box2body.setLinearVelocity(velocity.scl(speed));\r\n }\r\n }",
"void hitEvent(Block beingHit, Ball hitter);",
"void hitEvent(Block beingHit, Ball hitter);",
"@Override\n public void hitFeedBack(boolean hit, Fleet enemyShips) {\n this.hit = hit;\n }",
"@Override\n\tpublic void processIngoingHit(Hit hit) {\n\t\tdamageReceived += hit.getDamage();\n\t}",
"public void onUpdate()\n {\n super.onUpdate();\n this.jumpMovementFactor = 0.0F;\n this.renderYawOffset = this.rotationPitch = this.rotationYaw = 0.0F;\n\n if (this.target != null && this.target instanceof EntityLiving)\n {\n EntityLiving var1 = (EntityLiving) this.target;\n\n if (var1.getHealth() <= 0 || !this.canEntityBeSeen(var1))\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n } else\n {\n if (this.target != null && this.target.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n\n if (this.target == null)\n {\n this.target = this.worldObj.getClosestPlayerToEntity(this, -1.0D);\n\n if (this.target == null)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n\n return;\n }\n }\n }\n\n if (this.posX == (double) this.getOrgX() && this.posY == (double) this.getOrgY() && this.posZ == (double) this.getOrgZ())\n {\n if (!this.isReformed())\n {\n this.setReformed(true);\n }\n\n this.stop();\n this.moveTimer = 0;\n }\n\n if (this.slider == null)\n {\n Vec3 var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n MovingObjectPosition var18 = this.worldObj.rayTraceBlocks(var16, var2);\n var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n if (var18 != null)\n {\n var2 = Vec3.createVectorHelper(var18.hitVec.xCoord, var18.hitVec.yCoord, var18.hitVec.zCoord);\n }\n\n if (!this.worldObj.isRemote)\n {\n Object var4 = null;\n List var15 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(4.0D, 4.0D, 4.0D));\n double var6 = 0.0D;\n\n for (int var8 = 0; var8 < var15.size(); ++var8)\n {\n Entity var9 = (Entity) var15.get(var8);\n\n if (var9.canBeCollidedWith() && var9 != this)\n {\n float var10 = 0.3F;\n\n if (var9 instanceof EntitySlider)\n {\n this.slider = (EntitySlider) var9;\n var18 = null;\n }\n\n AxisAlignedBB var11 = var9.boundingBox.expand((double) var10, (double) var10, (double) var10);\n MovingObjectPosition var12 = var11.calculateIntercept(var16, var2);\n\n if (var12 != null)\n {\n double var13 = var16.distanceTo(var12.hitVec);\n\n if (var13 < var6 || var6 == 0.0D)\n {\n var6 = var13;\n }\n }\n }\n }\n }\n\n if (this.slider == null || this.slider.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n }\n } else if (this.slider.target != this.target)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n } else\n {\n this.fallDistance = 0.0F;\n double var17;\n double var5;\n double var3;\n\n if (this.gotMovement)\n {\n if (this.isCollided)\n {\n var17 = this.posX - 0.5D;\n var3 = this.boundingBox.minY + 0.75D;\n var5 = this.posZ - 0.5D;\n\n if (this.crushed)\n {\n this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, \"random.explode\", 3.0F, (0.625F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n }\n\n this.stop();\n } else\n {\n if (this.speedy < 2.0F)\n {\n this.speedy += 0.035F;\n }\n\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n\n if (this.direction == 0)\n {\n this.motionY = (double) this.speedy;\n\n if (this.boundingBox.minY > (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY + 0.35D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 1)\n {\n this.motionY = (double) (-this.speedy);\n\n if (this.boundingBox.minY < (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY - 0.25D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 2)\n {\n this.motionX = (double) this.speedy;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 3)\n {\n this.motionX = (double) (-this.speedy);\n\n if (this.posX < (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 4)\n {\n this.motionZ = (double) this.speedy;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 5)\n {\n this.motionZ = (double) (-this.speedy);\n\n if (this.posZ < (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n }\n }\n } else\n {\n this.motionY = 0.0D;\n\n if (this.moveTimer > 0)\n {\n --this.moveTimer;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n } else\n {\n var17 = Math.abs(this.posX - (this.reform ? (double) this.getOrgX() : this.target.posX));\n var3 = Math.abs(this.boundingBox.minY - (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY));\n var5 = Math.abs(this.posZ - (this.reform ? (double) this.getOrgZ() : this.target.posZ));\n\n if (var17 > var5)\n {\n this.direction = 2;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX))\n {\n this.direction = 3;\n }\n } else\n {\n this.direction = 4;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ))\n {\n this.direction = 5;\n }\n }\n\n if (var3 > var17 && var3 > var5 || var3 > 0.25D && this.rand.nextInt(5) == 0)\n {\n this.direction = 0;\n\n if (this.posY > (this.reform ? (double) this.getOrgY() : this.target.posY))\n {\n this.direction = 1;\n }\n }\n\n this.gotMovement = true;\n }\n }\n\n if (this.harvey > 0.01F)\n {\n this.harvey *= 0.8F;\n }\n }\n }",
"public void act() \r\n {\r\n Actor hitMC = getOneIntersectingObject(MC.class);\r\n if (hitMC != null) {\r\n ((Hall) getWorld()).player.health++;\r\n getWorld().removeObject(this);\r\n }\r\n }",
"public void draw(){\n hit();\n hit();\n }",
"@Override\n\tpublic void hit(Direction dir) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\r\n\t}",
"public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }",
"void playerHit() {\n if (lives == 0) {//if no lives left\n isDead = true;\n } else {//remove a life and reset positions\n lives -=1;\n immortalityTimer = 100;\n resetPositions();\n }\n }",
"@Override\r\n\tpublic void hurt(int points) {\r\n\t\tif (!hasExoskeleton()) {\r\n\t\thitPoints -= points;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void move(){\n\t\tSector tail = null;\n\t\tif(hit){\n\t\t\ttail = getNext();\n\t\t\tif(tail == null){\t\n\t\t\t\tselfDestruct();\n\t\t\t} else {\t\t\n\t\t\t\tsector.setInhabitant(null);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tsectors.add(sector);\n\t\tSector nextSector = quadrant.getNext(sector, velocity[0]);\t\n\t\tif(nextSector == null){\n\t\t\thit = true;\n\t\t} else {\n\t\t\tSpaceObject object = nextSector.getInhabitant();\n\t\t\tif(object != null) {\n\t\t\t\tobject.bump(this);\n\t\t\t} else {\n\t\t\t\tsetSector(nextSector); \n\t\t\t}\n\t\t} \n\t}",
"void hit(GameObject o){\r\n\t\tif (!shield){ // if sheild is on all hits do nothing\r\n\t\t\tif (!(o instanceof UpPower)){ // if didnt hit a power up the ship loses a life\r\n\t\t\t\tif (lives > 1) {\r\n\t\t\t\t\tlives--;\r\n\t\t\t\t\treset();\r\n\t\t\t\t}\r\n\t\t\t\telse { // once there is no life left the ship dies\r\n\t\t\t\t\tdead = true;\r\n\t\t\t\t\tlives--;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }",
"@Override\r\n public void hitEvent(Block beingHit, Ball hitter) {\n this.currentScore.increase(5);\r\n if (beingHit.getHitPoints() == 1) {\r\n this.currentScore.increase(10);\r\n }\r\n }",
"@Override\n\tpublic void processIncommingHit(Hit hit, Entity target) {\n\t\tif (hit.getLook() == HitLook.MELEE_DAMAGE)\n\t\t\tmeleeDamage += hit.getDamage();\n\t\telse if (hit.getLook() == HitLook.RANGE_DAMAGE)\n\t\t\trangeDamage += hit.getDamage();\n\t\tif (hit.getLook() == HitLook.MAGIC_DAMAGE)\n\t\t\tmageDamage += hit.getDamage();\n\t}",
"public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}",
"default void hit() {\n\t\tcount(1);\n\t}",
"public void onHit() {\n //override this to provide extra functionality\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\r\n if (beingHit.getHits() <= 1) {\r\n beingHit.removeFromGame(this.gameLevel);\r\n this.remainingBlocks.decrease(1);\r\n }\r\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\r\n this.currentScore.increase(5);\r\n if (beingHit.getHitPoints() == 0) {\r\n this.currentScore.increase(10);\r\n }\r\n }",
"@Override\n\tpublic void takeHit(int attack) {\n\n\t}",
"void ponderhit();",
"public void increseHitCount() {\n\r\n\t}",
"@Override\n public Actor hit(float x, float y, boolean touchable) {\n return super.hit(x, y, touchable);\n }",
"@Override\n\tpublic void onCollision(WorldObj obj) {\n\t\tif(obj.removalFlag)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tif(obj.item != null) {\n\t\t\t\n\t\t\t\n\t\t\tif(obj.stateTime > 0.2f) {\n\t\t\t\tAddItemToBag(obj.item,obj.stack);\n\t\t\t\tobj.removalFlag = true;\n\t\t\t\t\n\t\t\t\tGdx.app.debug(\"\", \"\"+obj.stack);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tsuper.onCollision(obj);\n\t}",
"@Override\n public void touchedBy(Creature c) {\n\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\r\n if (beingHit.getHitPoints() == 0) {\r\n this.currentScore.increase(10);\r\n return;\r\n }\r\n\r\n this.currentScore.increase(5);\r\n }",
"public void touchGhost() \n { \n if (getOneIntersectingObject(Ghosts.class) != null)\n Level1.transitionToGameLoseWorld(); \n // transfer to game lose would when the main character thouch the ghost\n }",
"public static void playHitObst()\n {\n playHitObst(0);\n }",
"@Override\r\n\tpublic void onRemove(IGameObject target) {\n\t\ttarget.speed -= flatBonus;\r\n\t\ttarget.speed /= multiplier;\r\n\t\t\r\n\t}",
"public void act() \n {\n moveAround(); \n addBomb(); \n touchGhost(); \n }",
"protected void onImpact(MovingObjectPosition position)\n {\n if (!this.worldObj.isRemote)\n {\n List<PotionEffect> list = ItemPotionCorePotion.instance.getEffects(potion);\n\n if (list != null && !list.isEmpty())\n {\n AxisAlignedBB axisalignedbb = this.getEntityBoundingBox().expand(4.0D, 2.0D, 4.0D);\n List<EntityLivingBase> list1 = this.worldObj.<EntityLivingBase>getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);\n\n if (!list1.isEmpty())\n {\n for (EntityLivingBase entitylivingbase : list1)\n {\n double d0 = this.getDistanceSqToEntity(entitylivingbase);\n\n if (d0 < 16.0D)\n {\n double d1 = 1.0D - Math.sqrt(d0) / 4.0D;\n\n if (entitylivingbase == position.entityHit)\n {\n d1 = 1.0D;\n }\n\n for (PotionEffect potioneffect : list)\n {\n int i = potioneffect.getPotionID();\n\n if (Potion.potionTypes[i].isInstant())\n {\n Potion.potionTypes[i].affectEntity(this, this.getThrower(), entitylivingbase, potioneffect.getAmplifier(), d1);\n }\n else\n {\n int j = (int)(d1 * (double)potioneffect.getDuration() + 0.5D);\n\n if (j > 20)\n {\n entitylivingbase.addPotionEffect(new PotionEffect(i, j, potioneffect.getAmplifier()));\n }\n }\n }\n }\n }\n }\n }\n this.worldObj.playSoundAtEntity(this, \"game.potion.smash\", 1.0F, this.worldObj.rand.nextFloat() * 0.1F + 0.9F);\n this.setDead();\n }\n else {\n \tif(!smashed) {\n \t\tdoSmashEffects();\n \t\tsmashed = true;\n \t}\n }\n }",
"Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);",
"public abstract void collide(InteractiveObject obj);",
"public void setHitCount(int count) {\nthis.hitpoints = count;\n}",
"@Override\r\n public Hit getHit() {\n return null;\r\n }",
"public Hit() {\n }",
"public void drawHit(){\n image(explode[5],posX,posY,10,10);\n }",
"@Override\n\t\t\tpublic void shotHere(boolean wasHit, int shipMod, Coordinate c) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void shotHere(boolean wasHit, int shipMod, Coordinate c) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void shotHere(boolean wasHit, int shipMod, Coordinate c) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void collisionReaction(GameObject collidedWith)\r\n\t{\r\n\t\tif (\"Enemy\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(30,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\t\tif (\"StarBurst\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"GeneralEnemyBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10,20);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"AimedShot\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(1,5);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\r\n\t\tif (\"Asteroid\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20, 45);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t//DESTROYED ASTEROID CODE! NEEDS TO BE REUSED WITH SHOOTING!\r\n\t\t\tVec2 deathSpot = collidedWith.getPosition();\r\n\r\n\r\n\t\t\tint healthdropNum = 0;\r\n\t\t\twhile(healthdropNum <= 4)\r\n\t\t\t{\r\n\t\t\t\thealthdropNum++;\r\n\t\t\t\tGameObject healthDrop = new HealthDrops();\r\n\t\t\t\thealthDrop.setPosition(deathSpot.getX() + getRandomValue(-5, 5), deathSpot.getY() + getRandomValue(-5, 5));\r\n\t\t\t\tObjectManager.addGameObject(healthDrop);\r\n\r\n\t\t\t}\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\t\tif (\"HealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 1;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 1;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"EnemyHealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 2;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 2;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"HealthPickup\".equals(collidedWith.getName()))\r\n\t\t{\r\n\r\n\t\t\t//System.out.println(\"Score: \" + score);\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth = 100;\r\n\t\t\tSystem.out.println(\"HEALTH RESTORED\");\r\n\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\r\n\t\t}\r\n\t\tif (\"FollowBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10, 30);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (\"BossFollower\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tsetPositionY(165.7f);\r\n\t\t}\r\n\t}",
"@Override\n public void update(Bullet b){\n if(!(b.getData() instanceof DriverBulletData)){\n hit(b);\n return;\n }\n\n float hitDst = 7f;\n\n DriverBulletData data = (DriverBulletData) b.getData();\n\n //if the target is dead, just keep flying until the bullet explodes\n if(data.to.isDead()){\n return;\n }\n\n float baseDst = data.from.distanceTo(data.to);\n float dst1 = b.distanceTo(data.from);\n float dst2 = b.distanceTo(data.to);\n\n boolean intersect = false;\n\n //bullet has gone past the destination point: but did it intersect it?\n if(dst1 > baseDst){\n float angleTo = b.angleTo(data.to);\n float baseAngle = data.to.angleTo(data.from);\n\n //if angles are nearby, then yes, it did\n if(Mathf.angNear(angleTo, baseAngle, 2f)){\n intersect = true;\n //snap bullet position back; this is used for low-FPS situations\n b.set(data.to.x + Angles.trnsx(baseAngle, hitDst), data.to.y + Angles.trnsy(baseAngle, hitDst));\n }\n }\n\n //if on course and it's in range of the target\n if(Math.abs(dst1 + dst2 - baseDst) < 4f && dst2 <= hitDst){\n intersect = true;\n } //else, bullet has gone off course, does not get recieved.\n\n if(intersect){\n data.to.handlePayload(b, data);\n }\n }",
"@Override\n public void hitEvent(Block beingHit, Ball hitter) {\n //checking if we hit the death block\n //creating the upper left point of the death block\n Point upLeftDeathBlock = new Point(0.0, 600.0);\n if (beingHit.getCollisionRectangle().getUpperLeft().equals(upLeftDeathBlock)) {\n hitter.removeFromGame(this.gameLevel);\n this.remainingBalls.decrease(1);\n return;\n }\n //in regular cases\n return;\n\n }",
"public void act() \r\n {\r\n Controller world = (Controller) getWorld();\r\n player = world.getPlayer();\r\n if (this.isTouching(Player.class))\r\n {\r\n player.minusHealth(5);\r\n world.removeObject(this);\r\n }\r\n }",
"public boolean wasHit() {\n return(_hit);\n }",
"public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }",
"public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}",
"@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}",
"public void hitEvent(Collidable beingHit, Fire bullet) {\r\n int index = this.enemies.indexOf((Enemy) beingHit);\r\n this.removeEnemy((Enemy) beingHit);\r\n this.startLocations.remove(index);\r\n }",
"protected void onImpact(RayTraceResult result) {\n\t\tif (result.entityHit != null) {\n\t\t\tfloat i = 2.5F;\n\n\t\t\tif (result.entityHit instanceof EntityBlizzard) {\n\t\t\t\ti = 0;\n\t\t\t}\n\n result.entityHit.attackEntityFrom(WorldsRetold.HAIL, i);\n\n\t\t\tif (result.entityHit instanceof EntityLivingBase) {\n\t\t\t\tEntityLivingBase target = (EntityLivingBase) result.entityHit;\n\t\t\t\tif (!this.world.isRemote) {\n\t\t\t\t\ttarget.addPotionEffect(new PotionEffect(HailstormPotions.FREEZING, 100, 0));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!this.world.isRemote) {\n\t\t\tthis.world.setEntityState(this, (byte) 3);\n\t\t\tthis.setDead();\n\t\t}\n\t}",
"void effect(Entity e, BoardPosition bp);",
"@Override\n public void act(float delta)\n {\n SCALE = PlayScreen.scale;\n\n if(actCount < 4)actCount++;\n\n dt=delta;\n if(!initialized)\n {\n mirror.setRotation(initRotation);\n\n dt = delta;\n positionChanged();\n\n if (hittime > (1.0 / 5.0))\n {\n if (hit >= 0) hit--;\n hittime = 0;\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n //setOrigin(mirror.getOriginX(), mirror.getOriginY());\n }\n\n if(initialized && hit>0)\n {\n positionChanged();\n\n if(hittime>=(1.0/5.0))\n {\n if(hit>0)hit--;\n hittime = 0;\n if (hit == 0)\n {\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n }\n\n }\n\n //Handles fading in/out of obstacle when triggered by a Toggle object\n if(fadeIn || fadeOut)\n {\n if(fadeIn)\n {\n if(mirror.getColor().a <0.95f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a + 1 * delta * 8 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, 1f);\n fadeIn = false;\n fadeOut = false;\n }\n }\n else\n {\n if(mirror.getColor().a >= 0.39f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a - 1 * delta * 15 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, Toggle.fadealpha);\n fadeIn = false;\n fadeOut = false;\n }\n }\n }\n\n\n\n\n if(!initialized)\n {\n initialized = true;\n }\n\n if(actCount<4){defineBody(); calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n if(poly.getRotation() != mirror.getRotation()){calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n super.act(delta);\n }",
"@Override\n protected void doCheckEffect ()\n {\n List<LivingEntity> entities = getLivingEntities(1.5);\n if (entities.size() > 0)\n {\n for (LivingEntity entity : entities)\n {\n if (entity.getUniqueId() == player.getUniqueId())\n continue;\n\n entity.damage(usesModifier * 2, player);\n\n kill();\n return;\n }\n }\n\n // if the spell has hit a solid block, the projectile is stopped and wont go further so kill the spell\n if (hasHitTarget())\n kill();\n }",
"@Override\n\tpublic void onUpdate()\n\t{\n\t\tthis.lastTickPosX = this.posX;\n\t\tthis.lastTickPosY = this.posY;\n\t\tthis.lastTickPosZ = this.posZ;\n\t\tsuper.onUpdate();\n\n\t\tif (this.throwableShake > 0)\n\t\t{\n\t\t\t--this.throwableShake;\n\t\t}\n\n\t\tif (this.inGround)\n\t\t{\n\t\t\tif (this.worldObj.getBlockState(this.getPosition()).getBlock() == this.inTile)\n\t\t\t{\n\t\t\t\t++this.ticksInGround;\n\n\t\t\t\tif (this.ticksInGround == 1200)\n\t\t\t\t{\n\t\t\t\t\tthis.setDead();\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.inGround = false;\n\t\t\tthis.motionX *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionY *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionZ *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.ticksInGround = 0;\n\t\t\tthis.ticksInAir = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t++this.ticksInAir;\n\t\t}\n\n\t\tVec3 vec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tVec3 vec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\t\tMovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks(vec3, vec31);\n\t\tvec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tvec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tvec31 = new Vec3(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord);\n\t\t}\n\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tEntity entity = null;\n\t\t\tList list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this,\n\t\t\t\t\tthis.getEntityBoundingBox().addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));\n\t\t\tdouble d0 = 0.0D;\n\t\t\tEntityLivingBase entitylivingbase = this.getThrower();\n\n\t\t\tfor (Object obj : list)\n\t\t\t{\n\t\t\t\tEntity entity1 = (Entity) obj;\n\n\t\t\t\tif (entity1.canBeCollidedWith() && ((entity1 != entitylivingbase) || (this.ticksInAir >= 5)))\n\t\t\t\t{\n\t\t\t\t\tfloat f = 0.3F;\n\t\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(f, f, f);\n\t\t\t\t\tMovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31);\n\n\t\t\t\t\tif (movingobjectposition1 != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble d1 = vec3.distanceTo(movingobjectposition1.hitVec);\n\n\t\t\t\t\t\tif ((d1 < d0) || (d0 == 0.0D))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tentity = entity1;\n\t\t\t\t\t\t\td0 = d1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (entity != null)\n\t\t\t{\n\t\t\t\tmovingobjectposition = new MovingObjectPosition(entity);\n\t\t\t}\n\t\t}\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tif ((movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)\n\t\t\t\t\t&& (this.worldObj.getBlockState(movingobjectposition.getBlockPos()).getBlock() == Blocks.portal))\n\t\t\t{\n\t\t\t\tthis.inPortal = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.onImpact(movingobjectposition);\n\t\t\t}\n\t\t}\n\n\t\tthis.posX += this.motionX;\n\t\tthis.posY += this.motionY;\n\t\tthis.posZ += this.motionZ;\n\t\tfloat f1 = MathHelper.sqrt_double((this.motionX * this.motionX) + (this.motionZ * this.motionZ));\n\t\tthis.rotationYaw = (float) ((Math.atan2(this.motionX, this.motionZ) * 180.0D) / Math.PI);\n\n\t\tfor (this.rotationPitch = (float) ((Math.atan2(this.motionY, f1) * 180.0D) / Math.PI); (this.rotationPitch\n\t\t\t\t- this.prevRotationPitch) < -180.0F; this.prevRotationPitch -= 360.0F)\n\t\t{\n\t\t}\n\n\t\twhile ((this.rotationPitch - this.prevRotationPitch) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationPitch += 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) < -180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw -= 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw += 360.0F;\n\t\t}\n\n\t\tthis.rotationPitch = this.prevRotationPitch + ((this.rotationPitch - this.prevRotationPitch) * 0.2F);\n\t\tthis.rotationYaw = this.prevRotationYaw + ((this.rotationYaw - this.prevRotationYaw) * 0.2F);\n\t\tfloat f2 = 0.99F;\n\t\tfloat f3 = this.getGravityVelocity();\n\n\t\tif (this.isInWater())\n\t\t{\n\t\t\tfor (int i = 0; i < 4; ++i)\n\t\t\t{\n\t\t\t\tfloat f4 = 0.25F;\n\t\t\t\tthis.worldObj.spawnParticle(EnumParticleTypes.WATER_BUBBLE, this.posX - (this.motionX * f4), this.posY - (this.motionY * f4),\n\t\t\t\t\t\tthis.posZ - (this.motionZ * f4), this.motionX, this.motionY, this.motionZ);\n\t\t\t}\n\n\t\t\tf2 = 0.8F;\n\t\t}\n\n\t\tthis.motionX *= f2;\n\t\tthis.motionY *= f2;\n\t\tthis.motionZ *= f2;\n\t\tthis.motionY -= f3;\n\t\tthis.setPosition(this.posX, this.posY, this.posZ);\n\t}",
"@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void recieveHit() {\n\t\tif(armour <= 0) {\r\n\t\t\tSystem.out.println(\"Enemy Destroyed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdouble calculateHitDamage = shot * basicDamage;\r\n\t\t\tif(calculateHitDamage == armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy Armour Destroyed!!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage > armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy is Dead!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage < armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy not detroyed!! \\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Current Enemy life: \"+ armour);\r\n\t\t}\r\n\t}",
"public void collide(){\n hp -= 10;\n resetPos();\n //canMove = false;\n }",
"public void gotDamaged() {\n \tif(!dead) {\n\t\t\tdamaged = true;\n\t\t\tgettingHitParticleEffect.reset();\n\t\t\tcolorValue = 0;\n\t\t}\n\n }",
"public void countHits() {\nif (this.hitpoints <= 0) {\nreturn;\n}\nthis.hitpoints = this.hitpoints - 1;\n}",
"@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\tParUtils.createParticle(Particles.EXPLOSION, loc, 0, 0, 0, 1, 0);\r\n\t\tplaySound(Sound.ENTITY_DRAGON_FIREBALL_EXPLODE,loc,1,1);\r\n\t\tent.setVelocity(dir.multiply(speed));\r\n\t\tdamage(ent, 2, caster);\r\n\t}",
"public void onUpdate()\n {\n this.prevPosX = this.posX;\n this.prevPosY = this.posY;\n this.prevPosZ = this.posZ;\n this.motionY -= 0.03999999910593033D;\n this.moveEntity(this.motionX, this.motionY, this.motionZ);\n this.motionX *= 0.9800000190734863D;\n this.motionY *= 0.9800000190734863D;\n this.motionZ *= 0.9800000190734863D;\n\n if (this.onGround)\n {\n this.motionX *= 0.699999988079071D;\n this.motionZ *= 0.699999988079071D;\n this.motionY *= -0.5D;\n }\n\n if (this.fuse-- <= 0)\n {\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n this.explode();\n }\n } else\n {\n this.worldObj.spawnParticle(\"smoke\", this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n }\n }",
"public void act() \n {\n\n World wrld = getWorld();\n if(frameCounter >= frameWait)\n {\n super.act();\n frameCounter = 0;\n }\n else\n {\n frameCounter++;\n }\n if (dying)\n deathcounter++;\n GreenfootImage trans = getImage();\n trans.scale(500,500);\n setImage(trans);\n setLocation(getX(), (getY()));\n\n if (deathcounter > 10)\n {\n wrld.removeObject(this);\n ((Universe)wrld).score += 50;\n }\n else if (getX() < 10)\n wrld.removeObject(this);\n }",
"public void act() \n {\n if(timer > 0){\n timer--;\n }else{\n Greenfoot.playSound(\"explosionSound.wav\");\n getWorld().removeObject(this);\n }\n }",
"private void killBullet() {\r\n this.dead = true;\r\n }",
"int hit();",
"public void act() \n {\n advance(); // move forward in the correct direction\n\n if(canSee(Ground.class) || atWorldEdge()) {\n getWorld().removeObject(this);\n return; \n }\n\n bImpact();\n takeExplosionTimer();\n }",
"public void onUpdate() {\n/* 150 */ this.prevPosX = this.posX;\n/* 151 */ this.prevPosY = this.posY;\n/* 152 */ this.prevPosZ = this.posZ;\n/* */ \n/* 154 */ if (this.particleAge++ >= this.particleMaxAge)\n/* */ {\n/* 156 */ setDead();\n/* */ }\n/* */ \n/* 159 */ this.motionY -= 0.04D * this.particleGravity;\n/* 160 */ moveEntity(this.motionX, this.motionY, this.motionZ);\n/* 161 */ this.motionX *= 0.9800000190734863D;\n/* 162 */ this.motionY *= 0.9800000190734863D;\n/* 163 */ this.motionZ *= 0.9800000190734863D;\n/* */ \n/* 165 */ if (this.onGround) {\n/* */ \n/* 167 */ this.motionX *= 0.699999988079071D;\n/* 168 */ this.motionZ *= 0.699999988079071D;\n/* */ } \n/* */ }",
"boolean onRelease(float delta, EntityRef target);",
"public void onImpact() {\r\n die();\r\n }",
"public synchronized void adjustHitPoints(int modifier) {\r\n\t\tif (hitPoints <= 0)\r\n\t\t\treturn;\r\n\r\n\t\thitPoints += modifier;\r\n\r\n\t\tif (hitPoints > maxHitPoints)\r\n\t\t\thitPoints = maxHitPoints;\r\n\r\n\t\tif (hitPoints <= 0)\r\n\t\t\tremoveUnit(x, y);\r\n\t}",
"public void onHitOther(Actor other) {\n\t\t\r\n\t}",
"public void onImpact() {\n die();\r\n this.getArrow().remove();\r\n }",
"@Override\n public Actor hit(float x, float y, boolean touchable) {\n if((touchable && getTouchable() != Touchable.enabled)) {\n return null;\n } else {\n int pix = (touchableMask != null) ? touchableMask.getPixel((int) touchPosition.x + (int) x, (int) touchPosition.y + (int) (getHeight() - y)) : 1;\n //return (super.hit(x, y, touchable) != null) && ((pix & 0x000000ff) != 0) ? this : null;\n boolean t = (super.hit(x, y, touchable) != null) &&\n (x > touchableRectangle.x &&\n x < touchableRectangle.x + touchableRectangle.width &&\n y > touchableRectangle.y &&\n y < touchableRectangle.y + touchableRectangle.height);\n if (t) {\n Gdx.app.error(LOG_TAG, \"domino hit x: \" + x + \" y: \" + y + \" actorX: \" + getX() + \" actorY: \" + getY() + \" touchRegionX: \" + touchableRectangle.x + \" touchRegionY: \" + touchableRectangle.y);\n }\n return t ? this : null;\n }\n}",
"public boolean isHitFree()\n {\n // TODO: replace this line with your code\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\r\n if (beingHit.getHitPoints() == 0) {\r\n if (beingHit.rUEnemy() && hitter.isEnemy()) {\r\n return;\r\n }\r\n if (beingHit.rUEnemy()) {\r\n remainingBlocks.decrease(1);\r\n enemies.removeEnemy(beingHit);\r\n } else {\r\n beingHit.removeFromGameLevel(game);\r\n beingHit.removeHitListener(this);\r\n }\r\n }\r\n }",
"private void bladeAndActorOverlap() {\n for (BirdActor bird : birdList) {\n if (bird.isCircleOverlap(bladeActor.boundaryCircle)) {\n ExplosionActor explosionActor = new ExplosionActor(bird.getX(), bird.getY(), 0.03333f, explosionAtlas, Animation.PlayMode.NORMAL);\n gameStage.addActor(explosionActor);\n bird.setRandomPosition(birdActorLowestYPos);\n bird.flyAction.restart();\n lblHighScore.setText(scoreDefaultTxt + String.format(\"%04d\", ++score));\n ++destroyInOneShoot;\n }\n }\n }",
"@Override\n public void tick() {\n if (!this.world.isRemote) {\n if (this.angler == null) {\n this.remove();\n return;\n }\n this.setFlag(6, this.isGlowing());\n }\n this.baseTick();\n age++;\n\n if (this.world.isRemote) {\n int i = this.getDataManager().get(cau_ent);\n\n if (i > 0 && this.caughtEntity == null) {\n this.caughtEntity = this.world.getEntityByID(i - 1);\n MinecraftForge.EVENT_BUS.post(new HookReturningEvent(this));\n }\n } else {\n ItemStack itemstack = this.angler.getHeldItemMainhand();\n\n if (age > 80 || !this.angler.isAlive() || itemstack.getItem() != Items.ITEM_GRAB_HOOK || this.getDistanceSq(this.angler) > 4096.0D) {\n this.remove();\n this.angler.fishingBobber = null;\n return;\n }\n }\n\n if (this.caughtEntity != null && this.angler != null) {\n pullEntity();\n return;\n }\n if (this.inGround) {\n if(hasGrappling && this.angler != null){\n pullUser();\n }else{\n this.remove();\n }\n return;\n }\n\n // In the air\n ++this.ticksInAir;\n if (this.ticksInAir == 20) {\n setReturning();\n }\n if (!this.world.isRemote) {\n boolean caughtSomething = checkCollision();\n if(caughtSomething){\n return;\n }\n\n if (this.isReturning) {\n Vector3d target = this.angler.getPositionVec().add(0, this.angler.getEyeHeight(), 0);\n Vector3d v = target.subtract(this.getPositionVec());\n if (v.length() < 3D) {\n this.remove();\n return;\n }\n v = v.normalize().scale(speed).subtract(0, 0.1, 0);\n this.setMotion(v);\n }\n }\n\n this.move(MoverType.SELF, this.getMotion());\n this.setPosition(this.getPosX(), this.getPosY(), this.getPosZ());\n }",
"public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Paramos tudo o que estamos fazendo.\n\t\tstop();\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\n\t\t// Giramos a arma na direção do disparo\n\t\tdouble turnGunAmt = Utils.normalRelativeAngleDegrees(e.getBearing() + getHeading() - getGunHeading());\n\t\tturnGunRight(turnGunAmt);\n\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\t\tback(400); // Recuamos\n\t}"
] | [
"0.7383822",
"0.6422118",
"0.63795435",
"0.63174146",
"0.62911725",
"0.628205",
"0.6206399",
"0.6116463",
"0.60540164",
"0.60245705",
"0.6015239",
"0.60073453",
"0.5985468",
"0.59751385",
"0.59725577",
"0.5901689",
"0.5886692",
"0.58802223",
"0.58802223",
"0.5873469",
"0.5847649",
"0.58224577",
"0.58219457",
"0.5804447",
"0.58023167",
"0.57394373",
"0.57394373",
"0.57388526",
"0.57215446",
"0.57102454",
"0.5694123",
"0.5687603",
"0.5682437",
"0.5671807",
"0.5671119",
"0.56707865",
"0.56646866",
"0.5654096",
"0.56476045",
"0.56370443",
"0.563627",
"0.5633349",
"0.56262296",
"0.56002337",
"0.55822957",
"0.5572685",
"0.55716246",
"0.55621296",
"0.55615157",
"0.55549043",
"0.5539978",
"0.5530829",
"0.55213934",
"0.55211014",
"0.54995954",
"0.54980725",
"0.5497681",
"0.5488472",
"0.5488089",
"0.5482099",
"0.5482099",
"0.5482099",
"0.54814637",
"0.54811436",
"0.5471789",
"0.54607",
"0.5455567",
"0.54538816",
"0.5452835",
"0.5452582",
"0.54511786",
"0.5439181",
"0.5421633",
"0.5420777",
"0.54172075",
"0.54131514",
"0.54124004",
"0.5401537",
"0.5398517",
"0.5398451",
"0.53947425",
"0.5393908",
"0.53924394",
"0.53898996",
"0.5389809",
"0.53885263",
"0.5374875",
"0.5368362",
"0.53613347",
"0.53574103",
"0.5353267",
"0.53508615",
"0.5349282",
"0.5341592",
"0.53354573",
"0.5334022",
"0.5333504",
"0.5333453",
"0.5331231",
"0.531598"
] | 0.6621171 | 1 |
PURPOSE: A feedback message from the object this has collided with. MODIFIES: This: hit. EFFECTS: Starts destroying the maser starting with its tail. | @Override
public void bumped(SpaceObject object) {
hit = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void act() \n {\n if(timer > 0){\n timer--;\n }else{\n Greenfoot.playSound(\"explosionSound.wav\");\n getWorld().removeObject(this);\n }\n }",
"public void onImpact() {\n die();\r\n this.getArrow().remove();\r\n }",
"public void Hit()\n {\n this.numLives--;\n //Oscillate visible and not if the number of lives is greater than zero\n if(this.numLives > 0)\n {\n this.damaged = true;\n this.Blink(1);\n\n }\n }",
"public void collided() {\n this.collided = true;\n }",
"public void act() \r\n {\r\n Actor hitMC = getOneIntersectingObject(MC.class);\r\n if (hitMC != null) {\r\n ((Hall) getWorld()).player.health++;\r\n getWorld().removeObject(this);\r\n }\r\n }",
"@Override\r\n\tpublic void display() {\n\t\tif (silenced.contains(caster))\r\n\t\t\tdead = true;\r\n\t\tif (lastloc == null)\r\n\t\t\tlastloc = loc;\r\n\t\tdir = loc.toVector().subtract(lastloc.toVector());\r\n\t\tif (speed > 2)\r\n\t\t\tParUtils.dropItemEffectVector(loc.clone().add(0,1,0), Material.CACTUS, 1,1, 1,dir);\r\n\t\t\t\r\n\t\t\t//ParUtils.createFlyingParticle(Particles.CRIT, loc.clone().add(0,2.5,0), 0, 0, 0, 1, 5, dir.normalize());\r\n\t\t//ParUtils.createRedstoneParticle(loc.clone().add(0,2.5,0), 0.5,0.5, 0.5, 1, Color.GREEN, 1.5F);\r\n\t}",
"@Override\r\n\tpublic void collisionReaction(GameObject collidedWith)\r\n\t{\r\n\t\tif (\"Enemy\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(30,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\t\tif (\"StarBurst\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"GeneralEnemyBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10,20);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"AimedShot\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(1,5);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\r\n\t\tif (\"Asteroid\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20, 45);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t//DESTROYED ASTEROID CODE! NEEDS TO BE REUSED WITH SHOOTING!\r\n\t\t\tVec2 deathSpot = collidedWith.getPosition();\r\n\r\n\r\n\t\t\tint healthdropNum = 0;\r\n\t\t\twhile(healthdropNum <= 4)\r\n\t\t\t{\r\n\t\t\t\thealthdropNum++;\r\n\t\t\t\tGameObject healthDrop = new HealthDrops();\r\n\t\t\t\thealthDrop.setPosition(deathSpot.getX() + getRandomValue(-5, 5), deathSpot.getY() + getRandomValue(-5, 5));\r\n\t\t\t\tObjectManager.addGameObject(healthDrop);\r\n\r\n\t\t\t}\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\t\tif (\"HealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 1;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 1;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"EnemyHealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 2;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 2;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"HealthPickup\".equals(collidedWith.getName()))\r\n\t\t{\r\n\r\n\t\t\t//System.out.println(\"Score: \" + score);\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth = 100;\r\n\t\t\tSystem.out.println(\"HEALTH RESTORED\");\r\n\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\r\n\t\t}\r\n\t\tif (\"FollowBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10, 30);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (\"BossFollower\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tsetPositionY(165.7f);\r\n\t\t}\r\n\t}",
"@Override\n public void collidedWith (Participant p)\n {\n \n }",
"@Override\n\tprotected void on_object_drop(GfxObject bonus) {\n\n\t}",
"@Override\r\n\tpublic void recieveHit() {\n\t\tif(armour <= 0) {\r\n\t\t\tSystem.out.println(\"Enemy Destroyed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdouble calculateHitDamage = shot * basicDamage;\r\n\t\t\tif(calculateHitDamage == armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy Armour Destroyed!!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage > armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy is Dead!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage < armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy not detroyed!! \\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Current Enemy life: \"+ armour);\r\n\t\t}\r\n\t}",
"public void collisionEvent(Chaser chaser) {\r\n if (getPossessionStatus() &&\r\n (chaser.getTeam().getColor() != this.getTeam().getColor()))\r\n {\r\n if(!chaser.isStunned() && //They do not tackle you if they are stunned!\r\n random.nextInt(MAX_CHANCE) <= CHASER_CHANCE) // and a 20% chance.\r\n {\r\n dropQuaffle(); // Simulating the chaser of the opposing team tackling you.\r\n }\r\n }\r\n super.collisionEvent(chaser);\r\n }",
"public abstract void collided(Collision c);",
"@Override\n void onCollide(Actor other, Contact contact) {\n }",
"void effect(Entity e, BoardPosition bp);",
"public void onImpact() {\r\n die();\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n espacio esp=(espacio)getWorld();\r\n Actor act=getOneIntersectingObject(nave.class);//Cuando la nave tome el poder \r\n if(act!=null)\r\n {\r\n for(int i=1;i<=10;i++)//incrementa el poder mediante el metodo solo 1s disparos\r\n esp.poder.incrementar();\r\n getWorld().removeObject(this);\r\n Greenfoot.playSound(\"Poder.wav\");\r\n }\r\n \r\n }",
"public void terminate() {\n this.isDying = true;\n //this.isStaticCollidable = false;\n //this.isDynamicCollidable = false;\n\n this.setProp(ObjectProps.PROP_STATICCOLLIDABLE, false);\n this.setProp(ObjectProps.PROP_DYNAMICCOLLIDABLE, false);\n\n this.action = DYING;\n this.velX = 0;\n this.velY = 5;\n }",
"@Override\n \tpublic void collided(Entity x) {\n \t\t\n \t\tx.destroy();\n \t\t\n \t}",
"public void act() \n {\n //plays animation with a delay between frames\n explosionSound.play();\n i = (i+1)%(frames.length); \n setImage(frames[i]);\n if(i == 0) getWorld().removeObject(this);\n }",
"public void makesHereBack(){this.piece.affect();}",
"@Override\r\n public void hitEvent(Block beingHit, Ball hitter) {\n this.currentScore.increase(5);\r\n // and destroying a block is worth and additional 10 points\r\n if (beingHit.getHitPointsNumber() == 0) {\r\n this.currentScore.increase(10);\r\n }\r\n }",
"public void act() \n {\n mouse = Greenfoot.getMouseInfo();\n \n // Removes the achievement after its duration is over if its a popup (when it pops up during the game)\n if(popup){\n if(popupDuration == 0) getWorld().removeObject(this);\n else popupDuration--;\n }\n // Displays the decription of the achievement when the user hovers over it with the mouse\n else{\n if(Greenfoot.mouseMoved(this)) drawDescription();\n if(Greenfoot.mouseMoved(null) && !Greenfoot.mouseMoved(this)) drawMedal();\n }\n }",
"@Override\n\tpublic void despawn() {\n\t\t\n\t}",
"public void makesNotHere(){this.piece.unAffect();}",
"public void act() \r\n {\r\n Controller world = (Controller) getWorld();\r\n player = world.getPlayer();\r\n if (this.isTouching(Player.class))\r\n {\r\n player.minusHealth(5);\r\n world.removeObject(this);\r\n }\r\n }",
"public void act() \n {\n if(foundAvatar())\n {\n int delta = getFun();\n timeRem.addTime(delta);\n getWorld().removeObject(this);\n // setLocation(Greenfoot.getRandomNumber(800), Greenfoot.getRandomNumber(600));\n }\n\n }",
"public void killed(Target target){\r\n\t\tif(this.crashed(target.getShape()))\r\n\t\t\tthis.lives--;\r\n\t}",
"public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }",
"public void EjectStackOnMilled( ItemStack stack )\r\n {\r\n \tint iFacing = 2 + worldObj.rand.nextInt( 4 ); // random direction to the sides\r\n \t\r\n \tVec3 ejectPos = Vec3.createVectorHelper( worldObj.rand.nextDouble() * 1.25F - 0.125F, \r\n \t\tworldObj.rand.nextFloat() * ( 1F / 16F ) + ( 7F / 16F ), \r\n \t\t-0.2F );\r\n \t\r\n \tejectPos.RotateAsBlockPosAroundJToFacing( iFacing );\r\n \t\r\n EntityItem entity = new EntityItem( worldObj, xCoord + ejectPos.xCoord, \r\n \t\tyCoord + ejectPos.yCoord, zCoord + ejectPos.zCoord, stack );\r\n\r\n \tVec3 ejectVel = Vec3.createVectorHelper( worldObj.rand.nextGaussian() * 0.025D, \r\n \t\tworldObj.rand.nextGaussian() * 0.025D + 0.1F, \r\n \t\t-0.06D + worldObj.rand.nextGaussian() * 0.04D );\r\n \t\r\n \tejectVel.RotateAsVectorAroundJToFacing( iFacing );\r\n \t\r\n entity.motionX = ejectVel.xCoord;\r\n entity.motionY = ejectVel.yCoord;\r\n entity.motionZ = ejectVel.zCoord;\r\n \r\n entity.delayBeforeCanPickup = 10;\r\n \r\n worldObj.spawnEntityInWorld( entity );\r\n }",
"public void cure()\n\t{\n\t\tif(_duration <= 0)\n\t\t{\n\t\t\tif(_duration != -1) { return; }\n\t\t}\n\t\t\n\t\t_duration = -1;\n\n\t\tif(_enemy.getComponent(AnimationComponent.class) != null)\n\t\t\t_enemy.getComponent(AnimationComponent.class).setColor(1, 1, 1, 1);\n\t\t\n\t\tif(_removeComponentOnCure)\n\t\t\tthis.destroy();\n\t}",
"@Override\n public void showMessage() {\n MessageHandler.getInstance()\n .writeMessage(\"This Base is different! \\n Behold!\");\n Player p = ((RomInntrenger) GameApplication.getInstance()).getClosestPlayer(transform.getGlobalPosition());\n p.getCurrentWeapon().setWeaponBase(cli);\n collider.destroy();\n destroy();\n\n }",
"@Override\r\n\tpublic void onDeath() {\n\t\tplaySound(Sound.BLOCK_CONDUIT_DEACTIVATE,caster.getLocation(),5,1F);\r\n\t}",
"public void collidedWith(Entity other){\n\t}",
"public void terminate(){\n tState.stop();\n tMovement.stop();\n collision.remove(this); \n }",
"@Override\n\tpublic void onCollision(WorldObj obj) {\n\t\tif(obj.removalFlag)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tif(obj.item != null) {\n\t\t\t\n\t\t\t\n\t\t\tif(obj.stateTime > 0.2f) {\n\t\t\t\tAddItemToBag(obj.item,obj.stack);\n\t\t\t\tobj.removalFlag = true;\n\t\t\t\t\n\t\t\t\tGdx.app.debug(\"\", \"\"+obj.stack);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tsuper.onCollision(obj);\n\t}",
"public void weaken(float hit) {\n if (!isInvincible()) {\n hp -= hit;\n invincible = true;\n if (hp < 0) {\n hp = 0;\n }\n\n if(isWeak()){ //Play the death animation\n currentAnimation = deathAnimation;\n }\n }\n }",
"void impact(GameObject object) {\n\n }",
"public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }",
"private void subtractEnemyMissile() {\n this.enemyMissile -= 1;\n }",
"public void act()\n {\n if (health == 0)\n {\n this.remove();\n }\n }",
"public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}",
"public void act() \n {\n\n World wrld = getWorld();\n if(frameCounter >= frameWait)\n {\n super.act();\n frameCounter = 0;\n }\n else\n {\n frameCounter++;\n }\n if (dying)\n deathcounter++;\n GreenfootImage trans = getImage();\n trans.scale(500,500);\n setImage(trans);\n setLocation(getX(), (getY()));\n\n if (deathcounter > 10)\n {\n wrld.removeObject(this);\n ((Universe)wrld).score += 50;\n }\n else if (getX() < 10)\n wrld.removeObject(this);\n }",
"@Override\n public void doRemove()\n {\n Player target = p.getServer().getPlayer(targetID);\n if (target == null)\n return;\n\n // teleport them back to their original location\n target.teleport(originalLocation);\n\n // remove flying and immobolize effects\n for (O2EffectType effectType : additionalEffects)\n {\n Ollivanders2API.getPlayers().playerEffects.removeEffect(targetID, effectType);\n }\n }",
"public void endContact(Contact c) {\n\n Fixture fa = c.getFixtureA();\n Fixture fb = c.getFixtureB();\n\n // determines if the player is not on the ground\n if(fa == null || fb == null){return;}\n if(fa.getUserData() != null && fa.getUserData().equals(\"foot\")){\n\n numFootContact--;\n\n }\n if(fb.getUserData() != null && fb.getUserData().equals(\"foot\")){\n\n numFootContact--;\n\n }\n\n\n if(fa.getUserData() != null && fa.getUserData().equals(\"enemy\") && fb.getUserData() != null && fb.getUserData().equals(\"player\"))\n {\n injured = false;\n System.out.println(\"I'm being hurt right now.\");\n }\n\n if (fb.getUserData() != null && fb.getUserData().equals(\"enemy\") && fa.getUserData() != null && fa.getUserData().equals(\"player\"))\n {\n injured = false;\n System.out.println(\"I'm being hurt right now.\");\n }\n\n\n\n }",
"public void act() \n {\n advance(); // move forward in the correct direction\n\n if(canSee(Ground.class) || atWorldEdge()) {\n getWorld().removeObject(this);\n return; \n }\n\n bImpact();\n takeExplosionTimer();\n }",
"void deathHandler(Enemy e) {\n\n if (e != null) {\n Explosion rip = new Explosion();\n rip.kaboom.moveToPoint(e.eTank.getX(), e.eTank.getY());\n // println(\"made enemy\");\n rip.kaboom.frontAngle(90);\n rip.kaboom.turn(90);\n explosion.add(rip);\n }\n for (Explosion exp: explosion) {\n if (exp.kaboomCounter > 1) {\n exp.kaboom.display();\n }\n // if (exp.kaboomCounter < 1) {\n // explosion.remove(exp);\n // }\n // else {\n exp.kaboomCounter -= 3;\n // println(exp.kaboomCounter);\n // println(explosion.size());\n // }\n }\n\n}",
"public abstract void collide(InteractiveObject obj);",
"public void act() \r\n {\r\n if(timeInterval > 0) {\r\n timeInterval--;\r\n }else{\r\n if(currentSprite < 30) {\r\n currentSprite++;\r\n GreenfootImage img = new GreenfootImage(\"explosion_\" + currentSprite + \".png\");\r\n img.scale(img.getWidth() / 2 + 25, img.getHeight() / 2 + 25);\r\n setImage(img);\r\n timeInterval = timeIntervalDef;\r\n }else{\r\n getWorld().removeObject(this);\r\n }\r\n }\r\n }",
"@Override\n public void unInvoke() {\n final Environmental item = affected;\n if (item == null)\n return;\n final Room room = CMLib.map().roomLocation(item);\n if ((canBeUninvoked()) && (room != null))\n room.showHappens(CMMsg.MSG_OK_VISUAL, item, L(\"<S-YOUPOSS> flaming sword is consumed!\"));\n super.unInvoke();\n if ((canBeUninvoked()) && (room != null)) {\n room.recoverRoomStats();\n item.destroy();\n }\n }",
"public void killed(){\n System.out.println(\"The zombie takes one step closer toward you then falls over.\");\n }",
"@Override\n public void collide(CollisionEvent e) {\n \n if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof Health) {\n prime.incrementHealthCount();\n healthSound.play();\n e.getReportingBody().destroy();\n \n \n }\n \n else if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof Emerald) {\n prime.incrementEmeraldCount();\n emeraldSound.play();\n e.getReportingBody().destroy();\n }\n \n else if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof DeadZone) {\n e.getReportingBody().destroy();\n System.exit(0);\n } \n \n else if (e.getReportingBody() instanceof Boss && e.getOtherBody() instanceof FireBall){\n e.getOtherBody().destroy();\n System.out.println(\"boss hit\");\n }\n \n else if (e.getReportingBody() instanceof StaticBody && e.getOtherBody() instanceof FireBall){\n e.getOtherBody().destroy();\n System.out.println(\"boss hit\");\n } \n \n }",
"public void endContact(Contact contact) {\n\n }",
"@Override\n\tpublic void m_debuff(Hero h, double d, int i) {\n\t\t\n\t}",
"private void subtractPlayerMissile() {\n this.playerMissile -= 1;\n }",
"@Override\n\tpublic void p_debuff(Hero h, double d, int i) {\n\t\t\n\t}",
"public void collision() {\n\t\tcapacity = 0;\n\t\tcolor = ColorUtil.YELLOW;\n\t}",
"private void hit(GObject element) {\r\n\t\tremove(bullet);\r\n\t\tbullet = null;\r\n\t\thitGraphic(element);\r\n\t\tif(element == dragon1) {\r\n\t\t\tlifeArray[DRAGON_ONE]--;\r\n\t\t\tif(lifeArray[DRAGON_ONE] < 1) {\r\n\t\t\t\tremove(dragon1);\r\n\t\t\t\tdragon1 = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(element == dragon2) {\r\n\t\t\tlifeArray[DRAGON_TWO]--;\r\n\t\t\tif(lifeArray[DRAGON_TWO] < 1) {\r\n\t\t\t\tremove(dragon2);\r\n\t\t\t\tdragon2 = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(element == mehran) {\r\n\t\t\tlifeArray[MEHRAN]--;\r\n\t\t\tif(lifeArray[MEHRAN] < 1) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void act() // method act\n {\n moveBear(); //lakukan method movebear\n objectDisappear(); // lakukan method objeectDisappear\n }",
"private void bladeAndActorOverlap() {\n for (BirdActor bird : birdList) {\n if (bird.isCircleOverlap(bladeActor.boundaryCircle)) {\n ExplosionActor explosionActor = new ExplosionActor(bird.getX(), bird.getY(), 0.03333f, explosionAtlas, Animation.PlayMode.NORMAL);\n gameStage.addActor(explosionActor);\n bird.setRandomPosition(birdActorLowestYPos);\n bird.flyAction.restart();\n lblHighScore.setText(scoreDefaultTxt + String.format(\"%04d\", ++score));\n ++destroyInOneShoot;\n }\n }\n }",
"public void act() \n {\n move(-2);\n\n if(getX() <= 0)\n {\n getWorld().removeObject(this);\n } \n\n }",
"@Override\r\n\tpublic void onRemove(IGameObject target) {\n\t\ttarget.speed -= flatBonus;\r\n\t\ttarget.speed /= multiplier;\r\n\t\t\r\n\t}",
"@Override\r\n public void endContact(SensorEvent e) {\r\n if(e.getContactBody().equals(ninja))\r\n {\r\n removeAllImages();\r\n addImage(helpImage);\r\n }\r\n }",
"public void effect() {\n }",
"public void tick() {\n if (alpha > life ){\n alpha -= (life - 0.0001f);\n }else {\n handler.removeObject(this);\n }\n }",
"@Override\n\tpublic void add(ContactPoint arg0) {\n\t\tBlock block1 = (Block) arg0.shape1.getBody().getUserData();\n\t\tBlock block2 = (Block) arg0.shape2.getBody().getUserData();\n\t\t\n\t\tif(block1 != null){\n\t\t\tif(block1.getMaterial().getBreakableForce() <= arg0.velocity.length()){\n\t\t\t\t//Impossible de supprimer des Body ici, il faut le faire avant le m_world.step()\n\t\t\t\t//Body p = arg0.shape1.getBody();\n\t\t\t\t//int pos = physicalBodies.indexOf(p);\n\t\t\t\tblock1.setToDelete(true);\n\t\t\t\t//arg0.shape1.destructor(); // utile ?\n\t\t\t\t\n\t\t\t\t//System.out.println(\"destruction d'un block => \"+arg0.velocity.length());\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(block2 != null){\n\t\t\tif(block2.getMaterial().getBreakableForce() <= arg0.velocity.length()){\n\t\t\t\t//Impossible de supprimer des Body ici, il faut le faire avant le m_world.step()\n\t\t\t\t//Body p = arg0.shape2.getBody();\n\t\t\t\t//int pos = physicalBodies.indexOf(p);\n\t\t\t\tblock2.setToDelete(true);\t\t\t\n\t\t\t\t//arg0.shape2.destructor(); //utile ?\n\t\t\t\t\n\t\t\t\t//System.out.println(\"destruction d'un block => \"+arg0.velocity.length());\n\t\t\t}\n\t\t}\n\t}",
"void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 200 */ performer.getCommunicator().sendNormalServerMessage(\"The \" + target\n/* 201 */ .getName() + \" emits a deep worrying sound of resonance, but stays intact.\", (byte)3);\n/* */ }",
"public void enemyoff(){\n getWorld().removeObject(this);\n }",
"void collisionHappened(int position);",
"@Override\n\tpublic void doCollideEnemy(SlowEnemy enemy) {\n\t\t\n\t}",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"@Override\n public void touchedBy(Creature c) {\n\n }",
"public void effect() {\n if (course == 2) {\n //RIGHT\n x += fac;\n } else if (course == 5) {\n //LEFT\n x -= fac;\n } else {\n y = (int)(origY + fac * f * Math.tan(angle)) + offsetY;\n x = (int)(origX + fac * f) + offsetX;\n }\n boolean b = computeCell();\n\n if (b) {\n //Detect ennemy\n if (current != null) {\n Player p = current.getOccupied();\n if (p != null && p != thrower) {\n p.makeHimWait((Params.howLongBlockingMagician * 1000) / 2);\n this.destroy();\n }\n }\n }\n //Detect ennemy's cell\n if (current != null) {\n Team te = current.getOwner();\n if (te != thrower.getTeam() && current.getType() == 1) {\n current.setHp(current.getHp() - Params.archerDammage);\n if (current.getHp() <= 0) {\n current.setOwner(thrower.getTeam());\n current.setHp(thrower.getInitHP());\n }\n }\n if (current.isHeight()) {\n this.destroy();\n }\n } else {\n int bound = 10;\n //System.out.println(game.getWidth());\n if (this.x < -bound || this.x > game.getWidth() + bound || this.y < -bound ||\n this.y > game.getHeight() + bound) {\n this.destroy();\n }\n }\n\n f++;\n }",
"public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }",
"public void mover() {\n\t}",
"public void dispara()\r\n {\r\n BulletEnemy bala = new BulletEnemy();\r\n getWorld().addObject(bala,getX(),getY()+25);\r\n }",
"public void interactWhenLeaving() {\r\n\t\t\r\n\t}",
"public MyContactListener(){\n super();\n bodiesToRemove = new Array<Body>();\n EnemyToRemove = new Array<Body>();\n\n\n\n }",
"public void endContact(Contact contact) {\n }",
"@Override\r\n public void onHit(int damage){\n if(box2body != null){\r\n hp -= damage;\r\n screen.getGameManager().get(\"Sounds/orc-34-hit.wav\", Sound.class).play();\r\n if(this.hp <= 0) {\r\n screen.bodiesToDelete.add(box2body);\r\n deleteFlag = true;\r\n screen.spawnedCreatures.remove(this);\r\n screen.getGameManager().get(\"Sounds/orc-32-death.wav\", Sound.class).play();\r\n\r\n //Award Experience\r\n screen.getPlayer().awardExperience(this.experienceValue);\r\n screen.getPlayer().increaseKillCount();\r\n }\r\n }\r\n //Attack player when damaged\r\n //Prevents player from sniping monsters using Wander AI\r\n if(currentState != State.ATTACKING){\r\n Vector2 orcPosition = new Vector2(box2body.getPosition().x, box2body.getPosition().y);\r\n Vector2 playerPosition = new Vector2(screen.getPlayer().box2body.getPosition().x, screen.getPlayer().box2body.getPosition().y);\r\n\r\n currentState = State.HASBEENATTACKED;\r\n velocity = new Vector2(playerPosition.x - orcPosition.x, playerPosition.y - orcPosition.y);\r\n box2body.setLinearVelocity(velocity.scl(speed));\r\n }\r\n }",
"@Override\n\tpublic void onCollision(Entity collidedEntity)\n\t{\n\t\t\n\t}",
"@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}",
"public void act() \n {\n if(Greenfoot.mousePressed(this)){\n World world = getWorld();\n world.removeObject(this);\n }\n }",
"public boolean isHere(){ return this.piece.isAffected();}",
"public void act() \n {\n CreatureWorld playerWorld = (CreatureWorld)getWorld();\n\n if( getHealthBar().getCurrent() <= 0 )\n {\n getWorld().showText(\"Charmander has fainted...\", getWorld().getWidth()/2, getWorld().getHeight()/2 + 26);\n Greenfoot.delay(30);\n }\n }",
"public void touchGhost() \n { \n if (getOneIntersectingObject(Ghosts.class) != null)\n Level1.transitionToGameLoseWorld(); \n // transfer to game lose would when the main character thouch the ghost\n }",
"@Override\n\tprotected void AfterDeactivated(IEntity sender, boolean starting) {\n\t\t\n\t}",
"public void kill()\r\n {\n if(isTouching(TopDownPlayer.class))\r\n {\r\n health(1);\r\n\r\n getWorld().removeObject(player);\r\n //getWorld().addObject (new Test(), 20, 20);\r\n\r\n }\r\n // if(healthCount >= 1)\r\n // {\r\n // World world;\r\n // world = getWorld();\r\n // getWorld().removeObject(player);\r\n // \r\n // getWorld().addObject (new Test(), 20, 20);\r\n // }\r\n }",
"@Override\r\n\tpublic void Collision(Entity e)\r\n\t{\r\n\t\tthis.isAlive = false;\r\n\t}",
"public abstract void interactionEnds(long ms);",
"@EventHandler\r\n \tpublic void onEntityExplode(EntityExplodeEvent event) \r\n \t{\n \t\tif (event.getEntityType() == EntityType.PRIMED_TNT) \r\n \t\t{\r\n \t\t\tLocation eventLoc = event.getLocation();\r\n \t\t\tServer server = plugin.getServer();\r\n \t\t\t\r\n \t\t\t// Red towers\r\n \t\t\tif (redBuildings.DestroyBuilding(BuildingType.Tower, eventLoc))\r\n \t\t\t{\r\n \t\t\t\ttowerCounts.put(\"red\", redBuildings.BuildingsCount(BuildingType.Tower));\r\n\t\t\t\tserver.broadcastMessage(ChatColor.YELLOW + \"A \"+ ChatColor.RED + \"RED\" + ChatColor.YELLOW + \" Tower Has Been Destroyed! (\" + towerCounts.get(\"red\") + \" remaining)\");\r\n\r\n\t\t\t\t// Check if all towers are destroyed\r\n \t\t\t\t\r\n \t\t\t\tif (towerCounts.get(\"red\") == 0) \r\n \t\t\t\t\tserver.broadcastMessage(ChatColor.YELLOW + \"All \"+ ChatColor.RED + \"RED\" + ChatColor.YELLOW + \" Towers Are Destroyed! Defend the NEXUS!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t// Blue Towers\r\n \t\t\tif (blueBuildings.DestroyBuilding(BuildingType.Tower, eventLoc))\r\n \t\t\t{\r\n \t\t\t\ttowerCounts.put(\"blue\", blueBuildings.BuildingsCount(BuildingType.Tower));\r\n\t\t\t\tserver.broadcastMessage(ChatColor.YELLOW + \"A \"+ ChatColor.BLUE + \"BLUE\" + ChatColor.YELLOW + \" Tower Has Been Destroyed! (\" + towerCounts.get(\"blue\") + \" remaining)\");\r\n \r\n \t\t\t\t// Check if all towers are destroyed\r\n \t\t\t\tif (towerCounts.get(\"blue\") == 0) \r\n \t\t\t\t\tserver.broadcastMessage(ChatColor.YELLOW + \"All \"+ ChatColor.BLUE + \"BLUE\" + ChatColor.YELLOW + \" Towers Are Destroyed! Defend the NEXUS!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t// Nexus\r\n \t\t\tif (redBuildings.DestroyBuilding(BuildingType.Nexus, eventLoc))\r\n \t\t\t{\r\n \t\t\t\tserver.broadcastMessage(ChatColor.RED + \"The RED NEXUS Has Been Destroyed!\" + ChatColor.BLUE + \" BLUE WINS!\");\r\n \t\t\t}\r\n \t\t\telse if (blueBuildings.DestroyBuilding(BuildingType.Nexus, eventLoc))\r\n \t\t\t{\r\n \t\t\t\tserver.broadcastMessage(ChatColor.BLUE + \"The BLUE NEXUS Has Been Destroyed!\" + ChatColor.RED + \" RED WINS!\");\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}",
"public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }",
"public void act()\r\n {\n \r\n if (Background.enNum == 0)\r\n {\r\n length = Background.length;\r\n width = Background.width;\r\n getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n \r\n //long lastAdded2 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long seconds = curTime3 / 1000;\r\n //sleep = 3;\r\n //try {\r\n //TimeUnit.SECONDS.sleep(sleep);\r\n //} catch(InterruptedException ex) {\r\n //Thread.currentThread().interrupt();\r\n //}\r\n //Greenfoot.delay(3);\r\n //long curTime3 = System.currentTimeMillis();\r\n //long secs2 = curTime3 / 1000;\r\n //long curTime4;\r\n //long secs3;\r\n //do\r\n //{\r\n //getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n //curTime4 = System.currentTimeMillis();\r\n //secs3 = curTime3 / 1000;\r\n //} while (curTime4 / 1000 < curTime3 / 1000 + 3);\r\n //if (System.currentTimeMillis()/1000 - 3 >= secs2)\r\n //{\r\n //do\r\n //{\r\n pause(3000);\r\n Actor YouWon;\r\n YouWon = getOneObjectAtOffset(0, 0, YouWon.class);\r\n World world;\r\n world = getWorld();\r\n world.removeObject(this);\r\n Background.xp += 50;\r\n Background.myGold += 100;\r\n if (Background.xp >= 50 && Background.xp < 100){\r\n Background.myLevel = 2;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 100 && Background.xp < 200){\r\n Background.myLevel = 3;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 200 && Background.xp < 400){\r\n Background.myLevel = 4;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 400 && Background.xp < 800){\r\n Background.myLevel = 5;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 800 && Background.xp < 1600){\r\n Background.myLevel = 6;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 1600 && Background.xp < 3200){\r\n Background.myLevel = 7;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 3200 && Background.xp < 6400){\r\n Background.myLevel = 8;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 6400 && Background.xp < 12800){\r\n Background.myLevel = 9;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 12800){\r\n Background.myLevel = 10;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n }\r\n //curTime3 = System.currentTimeMillis();\r\n //secs2 = curTime3 / 1000;\r\n //index2++;\r\n //Greenfoot.setWorld(new YouWon());\r\n //lastAdded2 = curTime3;\r\n //}\r\n //} while (index2 <= 0);\r\n }\r\n }",
"public void finish() {\n if ( actor.hasActions() )\r\n actor.getActions().first().act(100000);\r\n // remove any remaining actions\r\n actor.clearActions();\r\n }",
"public void act() \n {\n if (scoreCounter > 0){\n scoreCounter--;\n }\n \n if (scoreCounter == 0){\n addScore(1);\n scoreCounter = scoreCooldown;\n }\n }",
"public void draw(){\n hit();\n hit();\n }",
"public void hit() {\n if (explodeTime == 0) {\n if (isExplosive) {\n region = explodeAnimation.getKeyFrame(explodeTime, false);\n explodeTime += Gdx.graphics.getDeltaTime();\n width = region.getRegionWidth();\n height = region.getRegionHeight();\n position.sub(width / 2, height / 2);\n direction = new Vector2(1, 0);\n explosionSound.play();\n } else {\n impactSound.play();\n active = false;\n }\n }\n }",
"void detachFromTarget();",
"@Override\n public void act(float delta)\n {\n SCALE = PlayScreen.scale;\n\n if(actCount < 4)actCount++;\n\n dt=delta;\n if(!initialized)\n {\n mirror.setRotation(initRotation);\n\n dt = delta;\n positionChanged();\n\n if (hittime > (1.0 / 5.0))\n {\n if (hit >= 0) hit--;\n hittime = 0;\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n //setOrigin(mirror.getOriginX(), mirror.getOriginY());\n }\n\n if(initialized && hit>0)\n {\n positionChanged();\n\n if(hittime>=(1.0/5.0))\n {\n if(hit>0)hit--;\n hittime = 0;\n if (hit == 0)\n {\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n }\n\n }\n\n //Handles fading in/out of obstacle when triggered by a Toggle object\n if(fadeIn || fadeOut)\n {\n if(fadeIn)\n {\n if(mirror.getColor().a <0.95f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a + 1 * delta * 8 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, 1f);\n fadeIn = false;\n fadeOut = false;\n }\n }\n else\n {\n if(mirror.getColor().a >= 0.39f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a - 1 * delta * 15 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, Toggle.fadealpha);\n fadeIn = false;\n fadeOut = false;\n }\n }\n }\n\n\n\n\n if(!initialized)\n {\n initialized = true;\n }\n\n if(actCount<4){defineBody(); calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n if(poly.getRotation() != mirror.getRotation()){calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n super.act(delta);\n }",
"@Override\n public void effect() {\n\n }",
"private void killBullet() {\r\n this.dead = true;\r\n }"
] | [
"0.58475304",
"0.571281",
"0.5687113",
"0.568252",
"0.5658683",
"0.5624136",
"0.56226856",
"0.5620994",
"0.55859715",
"0.557791",
"0.55734867",
"0.5572777",
"0.5568579",
"0.5559799",
"0.55352896",
"0.5529884",
"0.55236894",
"0.55226177",
"0.551896",
"0.55137235",
"0.5499046",
"0.54923785",
"0.548421",
"0.54664195",
"0.54516935",
"0.54489005",
"0.5422234",
"0.5415731",
"0.54002666",
"0.5399277",
"0.5395702",
"0.5354261",
"0.5342156",
"0.5334234",
"0.53291774",
"0.5323464",
"0.5307759",
"0.5301089",
"0.52969813",
"0.52946484",
"0.5289157",
"0.5288914",
"0.52769125",
"0.5263961",
"0.5250197",
"0.52486694",
"0.52472705",
"0.52439094",
"0.52358556",
"0.52295744",
"0.52230644",
"0.52209884",
"0.5220335",
"0.521927",
"0.52041423",
"0.51968026",
"0.51945907",
"0.5185447",
"0.51847917",
"0.518323",
"0.51815313",
"0.5155531",
"0.5152048",
"0.51440555",
"0.51391494",
"0.513653",
"0.5124096",
"0.51234734",
"0.51221234",
"0.51158565",
"0.51095784",
"0.5096014",
"0.5095744",
"0.50878793",
"0.50759536",
"0.5070798",
"0.50683177",
"0.5052297",
"0.5051611",
"0.50515985",
"0.50485736",
"0.50476915",
"0.5041469",
"0.5033257",
"0.50325215",
"0.503187",
"0.5030826",
"0.50223523",
"0.5020343",
"0.50196373",
"0.5017777",
"0.5017502",
"0.5015236",
"0.50100386",
"0.5008419",
"0.5005678",
"0.49957654",
"0.49956968",
"0.49949503",
"0.49889922"
] | 0.54122084 | 28 |
Views Id Initialize Method | public void initialization() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
getWindow().setStatusBarColor(ContextCompat.getColor(this, R.color.color_yellow));
}
// RelativeLayout Id
addPlaceLayout = (RelativeLayout) findViewById(R.id.addPlaceLayout);
// ImageView Id
iv_back_button = (ImageView) findViewById(R.id.iv_back_button);
// TextView Id
tv_title_toolbar = (TextView) findViewById(R.id.tv_title_toolbar);
tv_title_toolbar.setText(getIntent().getStringExtra("name"));
// Click Listener
addPlaceLayout.setOnClickListener(this);
iv_back_button.setOnClickListener(this);
// RecyclerView Setup
rvTagViewDetails = (RecyclerView) findViewById(R.id.rvTagViewDetails);
rvTagViewDetails.setHasFixedSize(true);
mLayoutManager = new LinearLayoutManager(TagViewDetailsActivity.this);
rvTagViewDetails.setLayoutManager(mLayoutManager);
savedListModels = new ArrayList<>();
setValues();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int generateViewId() {\n return View.generateViewId();\n }",
"public void initViews(){\n }",
"public int getViewId() {\n return 123456;\n }",
"int getViewId();",
"private void initViews() {\n\n }",
"private void initViews() {\n\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"public static int getViewId() {\n\t\tviewId += 0x00000001;\n\t\treturn viewId;\n\t}",
"public void initView(){}",
"public abstract void initViews();",
"private void viewInit() {\n }",
"static String getPageViewId() {\n if (PAGEVIEW_ID == null) {\n PAGEVIEW_ID = generateRandomId();\n }\n return PAGEVIEW_ID;\n }",
"protected abstract void initViews();",
"private void initView() {\n\n }",
"String getUview_id();",
"public void setIDsforViews(){\n\n chequingAccountTV = findViewById(R.id.chequingAccountTV);\n savingsAndTaxesTV = findViewById(R.id.savingsAndTaxesTV);\n rainyDayFunTV = findViewById(R.id.rainyDayFunTV);\n travelSavingsTv = findViewById(R.id.travelSavingsTv);\n personalDevelopmentSavingsTV = findViewById(R.id.personalDevelopmentSavingsTV);\n investmentsTV = findViewById(R.id.investmentsTV);\n primaryHomeAmountTV = findViewById(R.id.primaryHomeAmountTV);\n secondaryHomeAmountTV = findViewById(R.id.secondaryHomeAmountTV);\n\n chequingAccount = findViewById(R.id.chequingAccount);\n savingsAndTaxesAmount = findViewById(R.id.savingsAndTaxesAmount);\n rainyDayFund = findViewById(R.id.rainyDayFund);\n travelSavings = findViewById(R.id.travelSavings);\n personalDevelopmentSavings = findViewById(R.id.personalDevelopmentSavings);\n investments = findViewById(R.id.investments);\n primaryHomeAmount = findViewById(R.id.primaryHomeAmount);\n secondaryHomeAmount = findViewById(R.id.secondaryHomeAmount);\n //assetsTable = findViewById(R.id.selectedAssetOrLiabilityTable);\n\n }",
"void initView();",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void initView();",
"public PgViews() {\n this(\"pg_views\", null);\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"public abstract void initView();",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"private Id getViewContainerID() {\n if (semantic == null) {\n return Id.invalid();\n }\n return new Id(RefreshIDFactory.getOrCreateID(viewContainer));\n }",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"protected abstract void initializeView();",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"private Views() {\n }",
"@Override\n public void initView() {\n }",
"protected abstract int getLayoutViewId();",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"private void initViews() {\n View view = getView();\n if (view != null) {\n edtConfirmPassword = view.findViewById(R.id.edt_reg_confim_password);\n edtConfirmPassword.setTag(\"Confirm Password\");\n edtEmail = view.findViewById(R.id.edt_reg_email);\n edtEmail.setTag(\"Email\");\n edtPhone = view.findViewById(R.id.edt_reg_phone);\n edtPhone.setTag(\"Phone\");\n edtPassword = view.findViewById(R.id.edt_reg_password);\n edtPassword.setTag(\"Password\");\n tv_RegisterSignIn = view.findViewById(R.id.tv_register_sign_in);\n btn_reg_signup = view.findViewById(R.id.btn_reg_signup);\n edtUserName = view.findViewById(R.id.edt_reg_name);\n edtUserName.setTag(\"Name\");\n }\n }",
"@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}",
"@Override\n protected void initViewSetup() {\n }",
"public void setBindViewId(int id){\n mBindViewId = id;\n }",
"String getService_uview_id();",
"public Integer getViewID()\n {\n String x = center.east() + \"_\" + center.north() + \"_\" + scale + \"_\" +\n getWidth() + \"_\" + getHeight();\n java.util.zip.CRC32 id = new java.util.zip.CRC32();\n id.update(x.getBytes());\n return new Long(id.getValue()).intValue();\n }",
"private void setViews() {\n\n }",
"@Override\n\tpublic void initViews() {\n\t\tmClick=(Button) findViewById(R.id.bt_click);\n\t}",
"public void init(IViewPart arg0) {\n\n\t}",
"@Override\n public void initView() {\n\n }",
"protected abstract void initViews(View mView);",
"private void loadViews(){\n\t}",
"private void initViews(){\n map = findViewById(R.id.map);\n }",
"private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}",
"private void initViews() {\n textViewRole = findViewById(R.id.textViewAddress);\n recyclerViewUsers = findViewById(R.id.recyclerViewUsers);\n appCompatButtonAddProperty = findViewById(R.id.appCompatButtonAddProperty);\n }",
"private void initViews(){\n tvName = findViewById(R.id.textViewLoggedUserName);\n recyclerViewUsers = findViewById(R.id.recyclerViewUsers);\n }",
"public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}",
"private void initView() {\n\t\tself_info.setOnClickListener(this);\r\n\t\twhich_org.setOnClickListener(this);\r\n\t\tmember_information.setOnClickListener(this);\r\n\t}",
"private void initView() {\n\t\tlogin = (Button) pageViews.get(2).findViewById(R.id.sendbtn);\n\t\tlogin.setOnClickListener(this);\n\t}",
"private void initViews() {\n webView = (WebView)findViewById(R.id.crop_webview);\n confirm_location = (Button)findViewById(R.id.btn_confirm_location);\n toolbar = (Toolbar)findViewById(R.id.map_toolbar);\n }",
"private void initView() {\n\t\tbtnCancel = (Button) findViewById(R.id.btn_cancel);\n\n\t}",
"private void initView(){\n\t\tinitSize();\n\t\tinitText();\n\t\tinitBackground();\n\t\tthis.setOnClickListener(this);\n\t\tthis.setOnLongClickListener(this);\n\t}",
"private void initViews() {\n\t\tet_area = (EditText) findViewById(R.id.et_area);\r\n\t\tbtn_search = (Button) findViewById(R.id.btn_search);\r\n\t\tll_main = (LinearLayout) findViewById(R.id.ll_main);\r\n\t}",
"public void initViews() {\n et_overrideTeamNum = findViewById(R.id.et_overrideTeamNum);\n\n rb_red = findViewById(R.id.red);\n rb_blue = findViewById(R.id.blue);\n }",
"public void initView() {\n ((TextView) _$_findCachedViewById(R.id.tvCancelResv)).setOnClickListener(new MyResvDetailActivity$initView$1(this));\n getResvDetail();\n }",
"@Override\n\tprotected int initView() {\n\t\treturn R.layout.activity_zhusu_detail;\n\t}",
"private void initView(View view) {\n rlMain = view.findViewById(R.id.rlMain);\n llHeader = view.findViewById(R.id.llHeader);\n tvManually = view.findViewById(R.id.tvManually);\n tbPerson = view.findViewById(R.id.tbPerson);\n viewPagerPerson = view.findViewById(R.id.viewPagerPerson);\n tvPersonHeader = view.findViewById(R.id.tvPersonHeader);\n tvPersonHeader.setText(getString(R.string.choose_vehicle));\n tbPerson.setTabMode(TabLayout.MODE_SCROLLABLE);\n\n isPopulateView();\n\n aRightsMapper = db.getSectionList();\n validateRights();\n setPersonPagerData();\n tvManually.setOnClickListener(this);\n }",
"protected void initView(View rootView) {\n\n }",
"private void initViews() {\r\n etEmail = findViewById(R.id.et_mail);\r\n etVerifyCode = findViewById(R.id.et_l_verifyCode);\r\n etNewPsw = findViewById(R.id.et_new_psw);\r\n etConfirmPsw = findViewById(R.id.et_confirm_psw);\r\n }",
"public void initViews() {\n View accountExists = activity.findViewById(R.id.button_register);\n Button buttonSubmitAuth = activity.findViewById(R.id.button_login);\n\n viewUsername = activity.findViewById(R.id.login_username);\n viewPassword = activity.findViewById(R.id.login_password);\n\n accountExists.setOnClickListener(view ->\n activity.setViewPagerCurrentItem(OnboardingActivity.Companion.getFRAGMENT_REGISTRATION()));\n\n buttonSubmitAuth.setOnClickListener(view -> authenticateUser());\n }",
"public void initViews() {\n rb_greenTablet = findViewById(R.id.green_tablet);\n rb_blackTablet = findViewById(R.id.black_tablet);\n rb_fireTablet = findViewById(R.id.fire_tablet);\n }",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initViews(view);\n // L.e(TAG, \"msg: onViewCreated\" + city);\n }",
"private void initView() {\n setContentView(R.layout.activity_dvkitdemo);\n\n mStartDiscoveryButton = findViewById(R.id.btn_start_discovery);\n mStopDiscoveryButton = findViewById(R.id.btn_stop_discovery);\n\n mLogTextView = findViewById(R.id.log);\n mScrollView = findViewById(R.id.scroll);\n\n mListView = (ListView) findViewById(R.id.listview);\n List<VirtualDeviceData> virtualDeviceDatas = new LinkedList<VirtualDeviceData>();\n mVirtualDeviceAdapter = new VirtualDeviceAdapter(this, virtualDeviceDatas);\n mListView.setAdapter(mVirtualDeviceAdapter);\n\n if (!mVirtualDeviceMap.isEmpty()) {\n mVirtualDeviceMap.clear();\n }\n }",
"@LayoutRes\n protected abstract int getContentViewId(Bundle savedInstanceState);",
"private void initView() {\n\t\tmSeekButton = (Button) findViewById(R.id.seekButton);\r\n\t\tmViewPager = (ViewPager) findViewById(R.id.viewPager);\r\n\t}",
"@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}",
"private void initViews() {\n appCompatButtonLogout = (AppCompatButton) findViewById(R.id.appCompatLogoutButton);\n appCompatButtonDelete = (AppCompatButton) findViewById(R.id.appCompatDeleteButton);\n\n }",
"private void bindViewsById(View view) {\n mViewPager = (ViewPager) view.findViewById(R.id.pager);\n mViewPager.setOffscreenPageLimit(1);\n mTabLayout = (TabLayout) view.findViewById(R.id.tab_layout);\n\n // mTvNoFavAvail = (TextView) view.findViewById(R.id.tv_no_fav_available);\n // mTvNoInternet = (TextView) view.findViewById(R.id.tv_no_internet_available);\n }",
"private void init(View view) {\n tvRecordNotFound = view.findViewById(R.id.tvRecordNotFoundId);\n rvcarslist = view.findViewById(R.id.rvcarslistId);\n ivbackid = view.findViewById(R.id.ivbackid);\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false);\n rvcarslist.setLayoutManager(layoutManager);\n ridesAdapter = new RidesAdapter(getActivity(), this);\n rvcarslist.setAdapter(ridesAdapter);\n ivbackid.setOnClickListener(this);\n }",
"private View() {}",
"private void registerViews() {\n\t}",
"@Override\n\tpublic void setCustomView(int resId) {\n\t\t\n\t}",
"private void initView() {\n initRefreshListView(mListview);\n }",
"@SuppressLint(\"ResourceAsColor\")\r\n\tprivate void initView() {\n\t\tfriendOneBtn = (Button)getActivity().findViewById(R.id.friend_one_btn);\r\n\t\tfriendTwoBtn = (Button) getActivity().findViewById(R.id.friend_two_btn);\r\n\t\tcursorImage = (ImageView)getActivity().findViewById(R.id.cursor);\r\n\t\t// 进入添加好友页\r\n\t\tfriendOneBtn.setOnClickListener(listener);\r\n\t\tfriendTwoBtn.setOnClickListener(listener);\r\n\t\t\r\n\t\tunreadLabel = (TextView) getActivity().findViewById(R.id.unread_msg_number);\r\n unreadAddressLable = (TextView) getActivity().findViewById(R.id.unread_address_number);\r\n ImageView addContactView = (ImageView) getView().findViewById(R.id.iv_new_contact);\r\n\t\t// 进入添加好友页\r\n\t\taddContactView.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\tstartActivity(new Intent(getActivity(), AddContactActivity.class));\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void initView(View view) {\n\t\tgameGussingLV = (ListView) view\n\t\t\t\t.findViewById(R.id.lv_fgg_gameGus);\n\t}",
"@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}",
"private void initViews() {\n mTvBalance = findViewById(R.id.tv_receive_client_balance);\n mListView = findViewById(R.id.lv_list_receive_client);\n mFab = findViewById(R.id.fab_receive_receip);\n mTvEmpty = findViewById(R.id.tv_empty_view);\n mIvEmpty = findViewById(R.id.iv_empty_view);\n mEmptyView = findViewById(R.id.empty_view);\n }",
"public View findViewById(int viewId){\r\n return AppContext.getCurrent().getActivity().getCurrentView().findViewById(viewId);\r\n }",
"public void initialize(int id) {\n this.hideViewRetry();\n this.showViewLoading();\n this.getPeopleDetails(id);\n }",
"private void initViews() {\n setActionBarTitle(R.string.my_energy_metabolism);\n mViewPager = (CustomViewPager) findViewById(R.id.viewPager);\n }",
"private void initializeViews()\n {\n scrMainContainer = findViewById(R.id.scrMainContainer);\n btnBack = findViewById(R.id.btnBack);\n etEmail = findViewById(R.id.etEmail);\n tvEmailError = findViewById(R.id.tvEmailError);\n etUsername = findViewById(R.id.etUsername);\n tvUsernameError = findViewById(R.id.tvUsernameError);\n etPassword = findViewById(R.id.etPassword);\n tvPasswordError = findViewById(R.id.tvPasswordError);\n btnCreateAccount = findViewById(R.id.btnCreateAccount);\n relLoadingPanel = findViewById(R.id.relLoadingPanel);\n }",
"private void initListFragmentViews(View view) {\n listView = view.findViewById(R.id.fragment_LAY_list);\n\n }",
"private void initViews() {\n user_name = (LinearLayout)findViewById(R.id.user_name);\n user_photo = (LinearLayout)findViewById(R.id.user_photo);\n user_sex = (LinearLayout)findViewById(R.id.user_sex);\n user_notes = (LinearLayout)findViewById(R.id.user_notes);\n name = (TextView)findViewById(R.id.name);\n sex = (TextView)findViewById(R.id.sex);\n notes = (TextView)findViewById(R.id.notes);\n email = (TextView)findViewById(R.id.email);\n photo = (ImageView)findViewById(R.id.photo);\n }",
"public View() {\n // (this constructor is here just for the javadoc tag)\n }",
"protected void initializeViews(){\n mLatLng = (TextView) findViewById(R.id.lat_lng);\n mAccuracyView = (TextView) findViewById(R.id.accuracy);\n mRouteText = (TextView) findViewById(R.id.route);\n mRegionText = (TextView) findViewById(R.id.region);\n mSampleText = (TextView) findViewById(R.id.sample);\n mBeaconText = (TextView) findViewById(R.id.beacon);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initView();\n }",
"@Override\r\n\tpublic String getViewIdentifier() {\n\t\treturn ClassUtils.getUrl(this);\r\n\t}",
"private void addViews() {\n\t}",
"public void initTextViewDebug( View view, int id ) {\n\t\tmTextViewDebug = (TextView) view.findViewById( id );\n\t}",
"@Override\n\tpublic String getViewIdentifier() {\n\t\treturn ClassUtils.getUrl(this);\n\t}",
"@Override\n\tpublic String getViewIdentifier() {\n\t\treturn ClassUtils.getUrl(this);\n\t}"
] | [
"0.6966465",
"0.6830421",
"0.6812401",
"0.6809415",
"0.6777806",
"0.6773145",
"0.67652",
"0.67652",
"0.6675795",
"0.6618107",
"0.6604632",
"0.65881103",
"0.6573288",
"0.65597415",
"0.6548767",
"0.64556926",
"0.64394116",
"0.63876677",
"0.63069767",
"0.6306588",
"0.6288899",
"0.6274357",
"0.62501806",
"0.62501806",
"0.621385",
"0.621385",
"0.6210384",
"0.62019235",
"0.62019235",
"0.619738",
"0.6183183",
"0.61537087",
"0.61394185",
"0.612832",
"0.6101629",
"0.60807264",
"0.6077852",
"0.60749185",
"0.60749185",
"0.606836",
"0.60663414",
"0.60611916",
"0.60480505",
"0.6021662",
"0.6016021",
"0.59783447",
"0.5974352",
"0.5970348",
"0.59650034",
"0.5935739",
"0.59306884",
"0.59190017",
"0.59155524",
"0.5898663",
"0.58876175",
"0.58822984",
"0.58742857",
"0.58393854",
"0.58366513",
"0.5836249",
"0.5833733",
"0.5818507",
"0.58055866",
"0.5805578",
"0.5801782",
"0.58003455",
"0.5794633",
"0.57892656",
"0.57807493",
"0.57753015",
"0.5756163",
"0.5749672",
"0.57456875",
"0.5724504",
"0.57216185",
"0.57163525",
"0.57118523",
"0.56997204",
"0.5699113",
"0.56955546",
"0.5687009",
"0.56853783",
"0.5674207",
"0.56737435",
"0.56724274",
"0.5669777",
"0.56639946",
"0.56628263",
"0.56621146",
"0.5653565",
"0.56464547",
"0.56406844",
"0.56379604",
"0.56289",
"0.56254673",
"0.5619482",
"0.56187296",
"0.56174475",
"0.5617149",
"0.5611725",
"0.5611725"
] | 0.0 | -1 |
Static Data Set Method | private void setValues() {
for (int i = 0; i < name.length; i++) {
TagViewDetailsModel listModel = new TagViewDetailsModel();
listModel.setItemImage(image[i]);
listModel.setItemName(name[i]);
listModel.setDistance(distance[i]);
listModel.setTags(tags[i]);
listModel.setRating(rating[i]);
savedListModels.add(listModel);
}
savedListAdapter = new TagViewDetailsAdapter(TagViewDetailsActivity.this, savedListModels);
rvTagViewDetails.setAdapter(savedListAdapter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void InitData() {\n\t}",
"public void InitData() {\n }",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}",
"public static void populateData() {\n\n }",
"public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}",
"private void initData() {\n\n }",
"private void initData() {\n\t}",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"private void initData() {\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"public void setdat()\n {\n }",
"private void initData(){\n\n }",
"protected @Override\r\n abstract void initData();",
"@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}",
"public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"private ArraySetHelper() {\n\t\t// nothing\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"private void setData() {\n\n }",
"public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"private RandomData() {\n initFields();\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"void initData(){\n }",
"@Override\r\n\tpublic void initData() {\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"public void initData(){\r\n \r\n }",
"public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }",
"protected abstract D createData();",
"public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"Collection getData();",
"private DataCache() {\n this.people = new HashMap<>();\n this.events = new HashMap<>();\n this.personEvents = new HashMap<>();\n this.currentPersonEvents = new HashMap<>();\n this.eventTypes = new ArrayList<>();\n this.childrenMap = new HashMap<>();\n this.maleSpouse = new HashSet<>();\n this.femaleSpouse = new HashSet<>();\n this.paternalAncestorsMales = new HashSet<>();\n this.paternalAncestorsFemales = new HashSet<>();\n this.maternalAncestorsMales = new HashSet<>();\n this.maternalAncestorsFemales = new HashSet<>();\n }",
"private void setStaticData() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.setText(i18n.GL3045());\n\t\tlblStandards.setText(i18n.GL0575());\n\t}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"void populateData();",
"final void getData() {\n\t\t//The final method can't be overriden\n\t}",
"private void setData() {\n populateInterfaceElements();\n }",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public abstract void set(DataType x, DataType y, DataType z);",
"public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }",
"protected void loadData()\n {\n }",
"public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }",
"private StaticData() {\n\n }",
"public RandomizedSet() {\n data=new ArrayList<>();\n valueIndex=new HashMap<>();\n random=new Random();\n }",
"@Override\n\tpublic void getData() {\n\t\t\n\t}",
"public mainData() {\n }",
"public static Instances getData()\n {\n return data;\n }",
"private RowData() {\n initFields();\n }",
"private TigerData() {\n initFields();\n }",
"public AdminData() {\n initComponents();\n TampilData();\n }",
"private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"abstract void initializeNeededData();",
"private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }",
"DataTypeInstance getDataInstance();",
"private ProcessedDynamicData( ) {\r\n super();\r\n }",
"public abstract Object getData();",
"public void generateData()\n {\n }",
"@Override\n\tpublic void setData() {\n\n\t}",
"@Override\n\tpublic void setDataSet(IDataSet ds) {\n\t\t\n\t}",
"public MusicDataAccessor() {\n\t\n\t\t// load the data into the table\n\t\tload();\n\t}",
"Object getData() { /* package access */\n\t\treturn data;\n\t}",
"public ChangeData()\r\n\t\t{\r\n\t\t}",
"protected DataHolder() {\n\t\tthis.contests = new TreeMap<>();\n\t}",
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public void setUpData() {\n generalStatsCalculator.calculateOffsetTrees();\n this.MostEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostEmissionsRoutes());\n this.LeastEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastEmissionsRoutes());\n this.MostDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostDistanceRoutes());\n this.LeastDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastDistanceRoutes());\n this.MostVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedSrcAirports());\n this.LeastVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedSrcAirports());\n this.MostVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedDestAirports());\n this.LeastVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedDestAirports());\n numOfTreesToString(generalStatsCalculator.getTreesToGrow());\n generalStatsCalculator.createCarbonEmissionsComment();\n }",
"@Parameters()\n\tpublic static Collection<Object[]> data() {\n\t\treturn Arrays.asList(new Object[][] { { Oldfile_empty, Newfile }, { Oldfile, Newfile_empty },\n\t\t\t\t{ Oldfile_empty, Newfile_empty } });\n\t}",
"public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }",
"Object getData();",
"Object getData();",
"public ChartData() {\n this.labels = new ArrayList<>();\n this.labelsDataMap = new HashMap<>();\n this.legend = new ArrayList<>();\n }",
"public interface DataSet {\n\n /**\n * Set an attribute value.\n *\n * @param key Key of the attribute.\n * @param value Value to set.\n */\n void set(String key, Object value);\n\n /**\n * Check whether an attribute can be set or not. It is not mandatory that an attribute is settable.\n *\n * @param key Key of the attribute.\n * @return True/false.\n */\n boolean canSet(String key);\n\n /**\n * Get the value for the given attribute.\n *\n * @param key Key of the attribute.\n * @return Value of the attribute.\n */\n Object get(String key);\n\n /**\n * Get the keys a list.\n *\n * @return Keys.\n */\n StringList keys();\n\n /**\n * Add an attribute key.\n *\n * @param key Key to be added.\n */\n void add(String key);\n\n /**\n * Remove an attribute key.\n *\n * @param key Key to be removed.\n */\n void remove(String key);\n\n /**\n * Get the value-type of the given attribute.\n *\n * @param key Key of the attribute.\n * @return Value-type of the attribute.\n */\n default Class<?> getType(String key) {\n Object v = get(key);\n return v == null ? null : v.getClass();\n }\n}",
"private RoleData() {\n initFields();\n }",
"DataList createDataList();",
"public void testSetBasedata() {\n }",
"public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}",
"public UsersDataSet() {}",
"private void initialData() {\n\n }",
"public void setData(D s){\n\t\tdata = s;\n\t}",
"public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}",
"private void fillData()\n {\n\n }"
] | [
"0.6717392",
"0.6640471",
"0.66287565",
"0.659686",
"0.6580876",
"0.65706813",
"0.65370315",
"0.6532918",
"0.6532257",
"0.6492167",
"0.6492167",
"0.6474632",
"0.64520866",
"0.64085704",
"0.6403879",
"0.6403879",
"0.6403879",
"0.6403879",
"0.6403879",
"0.6403879",
"0.63593733",
"0.63372535",
"0.63323957",
"0.6326786",
"0.63238466",
"0.63238466",
"0.63212514",
"0.6317874",
"0.62989265",
"0.62988615",
"0.6252322",
"0.62495047",
"0.62495047",
"0.62495047",
"0.6241439",
"0.6241439",
"0.6240902",
"0.6229778",
"0.62214065",
"0.6212815",
"0.6211937",
"0.6210858",
"0.61894447",
"0.6176169",
"0.61747545",
"0.6168876",
"0.61685115",
"0.61397237",
"0.61372584",
"0.61297745",
"0.61179096",
"0.6107244",
"0.6106338",
"0.60745627",
"0.60732746",
"0.6061399",
"0.60572207",
"0.60572207",
"0.6055566",
"0.60489917",
"0.60440415",
"0.6043484",
"0.6034171",
"0.6032884",
"0.60267556",
"0.6020895",
"0.60119694",
"0.6008307",
"0.6006057",
"0.5988536",
"0.59717566",
"0.5959828",
"0.5957013",
"0.59513134",
"0.59505755",
"0.5949911",
"0.59464633",
"0.5946261",
"0.593591",
"0.5921668",
"0.59046525",
"0.5903292",
"0.58979195",
"0.5897916",
"0.58966315",
"0.5882899",
"0.5869507",
"0.5868027",
"0.5862163",
"0.5862163",
"0.58563334",
"0.58493453",
"0.58477694",
"0.583465",
"0.58323216",
"0.5816445",
"0.5815389",
"0.5794718",
"0.5791131",
"0.5790448",
"0.5788175"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(DialogInterface arg0,
int arg1) {
} | {
"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 void onStartTrackingTouch(SeekBar 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 |
check the internet connection | public void onClick(View view) {
ConnectivityManager connection = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo info = connection.getActiveNetworkInfo();
if (info !=null && info.isConnected()) {
new FetchWeatherData().execute();
} else {
Toast.makeText(MainActivity.this, "Check the internet Connection", Toast.LENGTH_SHORT).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkInternetConnection() {\n\n ConnectivityManager connectivityManager = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return (networkInfo != null && networkInfo.isConnected());\n\n }",
"private boolean checkInternetConnection() {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return networkInfo != null && networkInfo.isConnectedOrConnecting();\n }",
"private boolean checkInternetConnection() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }",
"private Boolean checkInternetConnectivity(){\n // Code to check the network connectivity status\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"boolean isNetworkAvailable();",
"public boolean checkInternetConnection()\n {\n ConnectivityManager cm =\n (ConnectivityManager)getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"public boolean isInternetReachable() {\n \t\ttry {\n \t\t\t// URL to a source\n \t\t\tURL url = new URL(\"http://www.betfair.com\");\n \t\t\t// Open a connection\n \t\t\tHttpURLConnection urlConnect = (HttpURLConnection) url\n \t\t\t\t\t.openConnection();\n \t\t\t// Retrieving data from the source - if there is no connection,\n \t\t\t// throws and exception\n \t\t\t@SuppressWarnings(\"unused\")\n \t\t\tObject objData = urlConnect.getContent();\n \t\t} catch (Exception e) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}",
"private boolean isInternetConnected() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo ni = cm.getActiveNetworkInfo();\n if (ni!=null && ni.isAvailable() && ni.isConnected()) {\n return true;\n } else {\n return false;\n }\n }",
"private boolean isInternetAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Network[] networks = connectivityManager.getAllNetworks();\n NetworkInfo networkInfo;\n for (Network mNetwork : networks) {\n networkInfo = connectivityManager.getNetworkInfo(mNetwork);\n if (networkInfo.getState().equals(NetworkInfo.State.CONNECTED)) {\n return true;\n }\n }\n } else {\n if (connectivityManager != null) {\n NetworkInfo[] info = connectivityManager.getAllNetworkInfo();\n if (info != null) {\n for (NetworkInfo networkInfo : info) {\n if (networkInfo.getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n }\n }\n }\n }\n Toast.makeText(getContext(), getString(R.string.internet_connection_needed),Toast.LENGTH_SHORT).show();\n return false;\n }",
"private boolean isConnectedToInternet(){\n ConnectivityManager connectivityManager = (ConnectivityManager) main.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"boolean isInternetConnected(){\n\n ConnectivityManager connectivityManager = (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return networkInfo!=null && networkInfo.isConnected(); // -> true if we have internet connected\n\n }",
"private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }",
"public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }",
"public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }",
"private Boolean hasInternetConnection() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n if ((networkInfo != null) && networkInfo.isConnected()) {\n return true;\n } else {\n makeToast(\"There is no internet connection\");\n return false;\n }\n }",
"public static boolean isConnect() {\n try {\n if (!isConnectingToInternet()) {\n // Internet Connection is not present\n Toast.makeText(context, \"Please Check your connection\", Toast.LENGTH_LONG).show();\n return false;\n }\n } catch (Exception e) {\n\n }\n return true;\n }",
"private void checkInternetConnection() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}",
"protected boolean checkInternetConnection() {\n if (!Utils.hasInternetConnection(getApplicationContext())) {\n final AlertDialog.Builder adBuilder = createAlertDialog(R.string.dialog_title_no_internet, R.string.dialog_message_no_internet);\n adBuilder.setPositiveButton(R.string.dialog_btn_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n adBuilder.show();\n return false;\n }\n\n return true;\n }",
"private boolean isConnectedToInternet() {\n ConnectivityManager conManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = conManager.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"public final int isInternetOn() {\n ConnectivityManager connec =\r\n (ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\r\n\r\n // Check for network connections\r\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\r\n\r\n // if connected with internet\r\n\r\n //Toast.makeText(this, \" Connected \", Toast.LENGTH_LONG).show();\r\n return 1;\r\n\r\n } else if (\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\r\n\r\n //Toast.makeText(this, \" Not Connected \", Toast.LENGTH_LONG).show();\r\n return 0;\r\n }\r\n return 0;\r\n }",
"public Boolean isOnlineNet() {\n\n try {\n Process p = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.es\");\n\n int val = p.waitFor();\n boolean reachable = (val == 0);\n return reachable;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }",
"protected synchronized boolean checkConnectivity() {\n return this.connect();\n }",
"public static boolean checkInternetConnection(Context context) {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean hasActiveInternetConnection()\n {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }",
"public boolean probarInternet() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isConnectedToInternet() {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n return cm.getActiveNetworkInfo() != null && cm.getActiveNetworkInfo().isConnected();\n }",
"public boolean isNetworkReachable();",
"public boolean internetErisimi() {\n\n ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (conMgr.getActiveNetworkInfo() != null\n\n && conMgr.getActiveNetworkInfo().isAvailable()\n\n && conMgr.getActiveNetworkInfo().isConnected()) {\n\n return true;\n\n } else {\n\n return false;\n\n }\n\n }",
"private void checkConnection(){\n NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();\n\n // if activeNetwork is not null, and a network connection is detected,\n // isConnected is true\n boolean isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n // prepare output to indicate connection status\n String message = isConnected ? \"Connection Detected!\" : \"No Connection Detected!\";\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"public void checkConnectivity(){\n ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n mIsOnline = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE)\n .isConnectedOrConnecting() || cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI)\n .isConnectedOrConnecting();\n }",
"public boolean checkInternetConnection(@NonNull Context context) {\n return ((ConnectivityManager) context.getSystemService(\n Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo() != null;\n }",
"private boolean checkNetworkState() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivityManager.getActiveNetworkInfo() == null || !connectivityManager.getActiveNetworkInfo().isConnected()) {\n showNetworkAlert();\n return false;\n }\n\n else return true;\n }",
"public static boolean isConnectedToInternet(Context con){\n ConnectivityManager connectivity = (ConnectivityManager) con.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n\n }\n return false;\n }",
"public boolean isOnline() {\n ConnectivityManager conMgr = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = conMgr.getActiveNetworkInfo();\n // In case it's not notify it through a toast\n if(netInfo == null || !netInfo.isConnected() || !netInfo.isAvailable()){\n Toast.makeText(MainActivity.this, \"No Internet connection!\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"private static boolean isConnectingToInternet() {\n ConnectivityManager connectivity = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null) {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n // return connectivity.getActiveNetworkInfo() != null\n // && connectivity.getActiveNetworkInfo()\n // .isConnectedOrConnecting();\n return true;\n }\n }\n return false;\n }",
"protected boolean NetworkAviable() {\n\t\t\tConnectivityManager cm =(ConnectivityManager)contextyeild.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\t NetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t \t try{\n\t\t \t\t \n\t\t \t \t//new OnGetPondsdata().execute();\n\t\t \t }catch(Exception e){\n\t\t \t\t e.printStackTrace();\n\t\t \t }\n\t\t \t \t\n\t\t return true;\t\t \n\t\t }\n\t\t else{ \n\t\t \t\n\t\t \t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(contextyeild, \"No internet connection\", Toast.LENGTH_SHORT).show();\t\t\t\t\t\n\t\t }\n\t\t return false;\n\t\t\t}",
"public boolean isNetworkAvailable() {\n initNetwork();\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n}",
"public void checkConnection() {\n\t\tif (isOnline()) {\n\t\t\tgetFirsTopRatedMovies();\n\t\t} else {\n\t\t\tprogress.setVisibility(View.GONE);\n\t\t\tlayout_nothing_to_show.setVisibility(View.VISIBLE);\n\t\t\tToast.makeText(this, getString(R.string.no_netowrk), Toast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"public static boolean isInternetAvailable(Context c) {\n\n ConnectivityManager connectivity = (ConnectivityManager) c\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivity != null) {\n\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n }\n\n return false;\n }",
"private Callable<Boolean> isReachable() {\n return () -> {\n try {\n if (!isOnline()) {\n return false;\n }\n\n URL url = new URL(\"https://api.vk.com\"); //url for ex.\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(2000);\n httpURLConnection.connect();\n\n return true;\n } catch (Exception e) {\n return false;\n }\n };\n }",
"private boolean isOnline() {\n ConnectivityManager conMgr = (ConnectivityManager) getApplicationContext().getSystemService(CONNECTIVITY_SERVICE);\n if (conMgr != null) {\n NetworkInfo netInfo = conMgr.getActiveNetworkInfo();\n if (netInfo == null || !netInfo.isConnected() || !netInfo.isAvailable()) {\n Toast.makeText(this, \"No Internet connection!\", Toast.LENGTH_LONG).show();\n return false;\n }\n }\n return true;\n }",
"public boolean ConnectionCheck(){\n ConnectivityManager cm =\n (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n return isConnected;\n }",
"public boolean internetIsConnected() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"public static boolean isInternetOn(Context context)\r\n {\r\n ConnectivityManager cm = (ConnectivityManager) context\r\n .getSystemService(Context.CONNECTIVITY_SERVICE);\r\n // test for connection\r\n if (cm.getActiveNetworkInfo() != null\r\n && cm.getActiveNetworkInfo().isAvailable()\r\n && cm.getActiveNetworkInfo().isConnected())\r\n {\r\n // No need to bother user when everything's ok :)\r\n Log.d(logVerifyNet, \"Internet is working\");\r\n return true;\r\n }\r\n else\r\n {\r\n Toast.makeText(context, \"No internet connection...\", Toast.LENGTH_LONG).show();\r\n Log.d(logVerifyNet, \"No internet connection...\");\r\n return false;\r\n }\r\n }",
"private boolean isDeviceConnectedToInternet() {\n ConnectivityManager cm =\n (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"private boolean isOnline(){\n ConnectivityManager cm= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if(netInfo != null && netInfo.isConnectedOrConnecting()){\n return true;\n } else{\n return false;\n }\n }",
"public final boolean isInternetOn() {\n ConnectivityManager connec =\n (ConnectivityManager)context.getSystemService(context.CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\n\n // if connected with internet\n\n Toast.makeText(context, \" Connected \", Toast.LENGTH_LONG).show();\n return true;\n\n } else if (\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\n\n Toast.makeText(context, \" Not Connected \", Toast.LENGTH_LONG).show();\n return false;\n }\n return false;\n }",
"private boolean checkConnection()\n {\n ConnectivityManager connectivityManager = (ConnectivityManager) Objects.requireNonNull(getActivity()).getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n if (null != networkInfo)\n {\n return true;\n }\n else\n {\n StyleableToast.makeText(getActivity().getApplicationContext(), \"عدم اتصال به اینترنت!\", Toast.LENGTH_LONG, R.style.toastTheme).show();\n return false;\n }\n }",
"private boolean isKonekInternet()\n\t{\n\t\tConnectivityManager connectivityManager = (ConnectivityManager) this\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (connectivityManager != null)\n\t\t{\n\t\t\tNetworkInfo[] info = connectivityManager.getAllNetworkInfo();\n\t\t\tif (info != null)\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < info.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean isInternetAvailable(Context context) {\n Log.d(TAG, \"isInternetAvailable\");\n ConnectivityManager mConMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n return mConMgr.getActiveNetworkInfo() != null\n && mConMgr.getActiveNetworkInfo().isAvailable()\n && mConMgr.getActiveNetworkInfo().isConnected();\n }",
"public boolean isInternetIsConnected(Context context) {\n try {\n ConnectivityManager cm = getConnectivityManager(context);\n assert cm != null;\n @SuppressLint(\"MissingPermission\") NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n if (activeNetwork != null) { // connected to the internet\n if (activeNetwork.getType() == ConnectivityManager.TYPE_WIFI) {\n // connected to wifi\n // Toast.makeText(context, activeNetwork.getTypeName(), Toast.LENGTH_SHORT).show();\n return true;\n\n } else if (activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE) {\n // connected to the mobile provider's data plan\n // Toast.makeText(context, activeNetwork.getTypeName(), Toast.LENGTH_SHORT).show();\n return true;\n }\n } else {\n // not connected to the internet\n return false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"private void checkConnectivity() {\n ConnectivityManager conMan = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo.State mobile = conMan.getNetworkInfo(0).getState();\n NetworkInfo.State wifi = conMan.getNetworkInfo(1).getState();\n if (!(mobile == NetworkInfo.State.CONNECTED || wifi == NetworkInfo.State.CONNECTED)) {\n Toast.makeText(context, R.string.data_error_message, Toast.LENGTH_LONG).show();\n }\n }",
"public static boolean isInternetOn(Context context) {\n _context = context;\n ConnectivityManager connec = null;\n // get Connectivity Manager object to check connection\n //ConnectivityManager connec = \n //(ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n // get Connectivity Manager object to check connection\n try {\n connec = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n // 0 is Mobile dataconnection\n // 1 for Wifi Connection\n NetworkInfo activeNetwork = connec.getActiveNetworkInfo();\n if (activeNetwork != null) {\n if (connec.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTED) {\n //Common.IsLocalConnection = 2;\n return true;\n\n } else if (connec.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTING) {\n //Common.IsLocalConnection = 1;\n return true;\n } else if (connec.getNetworkInfo(0).getState() == NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == NetworkInfo.State.DISCONNECTED) {\n //Common.IsLocalConnection = 0;\n return false;\n } // Check for network connections\n } else {\n // not connected to the internet\n }\n } catch (Exception ex) {\n CrashAnalytics.CrashReport(ex);\n }\n return false;\n }",
"public static boolean IsConnectedToInternet(Context c) {\n ConnectivityManager connectivityManager = (ConnectivityManager) c.getSystemService(c.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n if (networkInfo != null) {\n if (networkInfo.isConnected() == false) {\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n return false;\n } else {\n if (networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) {\n //Toast.makeText(this, \"데이터 요금이 발생할 수 있습니다.\", 1).show();\n }\n return true;\n }\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n } else {\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n return false;\n //Toast.makeText(this, \"테스트.\", 1).show();\n //btest = true;\n }\n }",
"public final boolean isInternetOn() {\n ConnectivityManager connec =\n (ConnectivityManager) getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if (connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED) {\n\n // if connected with internet\n\n\n return true;\n\n } else if (\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED) {\n\n\n return false;\n }\n return false;\n }",
"private boolean isNetworkAvailable(){\n ConnectivityManager connectivityManager = (ConnectivityManager)\n getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n\n }",
"public boolean hasInternetConnection(final Context context) {\n\t\tConnectivityManager conMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (conMgr.getActiveNetworkInfo() != null\n\t\t\t\t&& conMgr.getActiveNetworkInfo().isAvailable()\n\t\t\t\t&& conMgr.getActiveNetworkInfo().isConnected()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean isOnline() {\n Context context = getApplicationContext();\n ConnectivityManager cm = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n return true;\n }\n return false;\n }",
"public static boolean checkNetworkAndShowDialog(Context context) {\r\n if (!checkNetConnection(context)) {\r\n //Logger.showShortMessage(context, context.getString(R.string.check_internet));\r\n return false;\r\n }\r\n return true;\r\n }",
"private boolean isWifiConnected() throws InterruptedException {\n int counter = 10;\n while (--counter > 0) {\n try {\n String mPingSite = String.format(\"http://%s\", DEFAULT_PING_SITE);\n URL url = new URL(mPingSite);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n conn.setReadTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {\n return true;\n }\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n } catch (IOException ex) {\n // Wifi being flaky in the lab, test retries 10 times to connect to google.com\n // as IOException is throws connection isn't made and response stream is null\n // so for retrying purpose, exception hasn't been rethrown\n Log.i(mABvtHelper.TEST_TAG, ex.getMessage());\n }\n }\n return false;\n }",
"private boolean isNetworkAvailable() {\r\n ConnectivityManager connectivityManager \r\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\r\n return activeNetworkInfo != null;\r\n }",
"private boolean isOnline() {\n ConnectivityManager connect = (ConnectivityManager) this.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = connect.getActiveNetworkInfo();\n if(netInfo != null && netInfo.isConnected()){\n return true;\n }\n return false;\n }",
"@Override\n protected Boolean doInBackground(Void... params) {\n check_internet = hasActiveInternetConnection(getApplicationContext());\n return check_internet;\n }",
"private boolean ifNet() {\n \t\t\n \t\tConnectivityManager connectivity = (ConnectivityManager) this\n \t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n \t\tif (connectivity != null) {\n \t\t\tNetworkInfo[] info = connectivity.getAllNetworkInfo();\n \t\t\tif (info != null)\n \t\t\t\tfor (int i = 0; i < info.length; i++)\n \t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED) {\n \t\t\t\t\t\treturn true;\n \t\t\t\t\t}\n\n \t\t}\n \t\treturn false;\n \t}",
"public final void checkNetworkConnection() {\n if (InternetUtil.INSTANCE.isInternetOn()) {\n login();\n return;\n }\n String string = getResources().getString(C2723R.string.bdt_lbl_msg_prd_network_error);\n Intrinsics.checkExpressionValueIsNotNull(string, \"resources.getString(R.st…bl_msg_prd_network_error)\");\n Context_ExtensionKt.showToast(this, string);\n InternetUtil.INSTANCE.observe(this, new OldBDTLoginActivity$checkNetworkConnection$1(this));\n }",
"private boolean isNetworkAvailable()\n\t{\n\t\tNetworkInfo info = mConnectivityManager.getActiveNetworkInfo();\n\n\t\treturn info != null && info.isConnected();\n\t}",
"public boolean checkServer() {\n boolean result = false;\n \n int url = 195885416; //Using www.vg.no for now. There might be a problem in the ip-format, but we'll know more after testing.\n if(isNetworkAvailable()) {\n ConnectivityManager cm = (ConnectivityManager)ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n \n if(cm.requestRouteToHost(ConnectivityManager.TYPE_WIFI, url)) {\n result = true;\n } else if(cm.requestRouteToHost(ConnectivityManager.TYPE_MOBILE, url)) {\n result = true;\n }\n }\n \n return result;\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager cm = (ConnectivityManager)ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n if ( cm.getActiveNetworkInfo() != null ) {\n return true;\n }\n return false;\n }",
"protected boolean checkNetworkStatus() {\n\n ConnectivityManager manager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = manager.getActiveNetworkInfo();\n\n if ((activeNetworkInfo != null && activeNetworkInfo.isConnected())) {\n return true;\n } else {\n return false;\n }\n }",
"boolean isNetworkAvailable() {\n Context context = getApplicationContext();\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n return isConnected;\n }",
"@Override\n protected Boolean doInBackground(String... args){\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnected()) {\n try {\n URL url = new URL(\"http://www.google.com\");\n HttpURLConnection urlc = (HttpURLConnection) url.openConnection();\n urlc.setConnectTimeout(3000);\n urlc.connect();\n if (urlc.getResponseCode() == 200) {\n return true;\n }\n } catch (MalformedURLException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n return false;\n\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"@Test\r\n public void testInternetConnection(){\r\n CheckConnection checkConnection = new CheckConnection();\r\n checkConnection.checkURL();\r\n }",
"public boolean networkCheck(String region) throws IOException {\r\n // Debug mode can be run offline.\r\n if(DEBUG) {\r\n return true;\r\n }\r\n \r\n try {\r\n getServerStatusData();\r\n networkOK = true;\r\n return true;\r\n }\r\n catch(UnknownHostException e) {\r\n System.out.println(e);\r\n networkOK = false;\r\n return false;\r\n }\r\n }",
"@Override\r\n\t\tprotected Boolean doInBackground(String... args) {\r\n\t\t\tConnectivityManager cm = (ConnectivityManager) getActivity()\r\n\t\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\r\n\t\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\r\n\t\t\tif (netInfo != null && netInfo.isConnected()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tURL url = new URL(UserFunctions.chkConnURL);\r\n\t\t\t\t\t// URL url = new\r\n\t\t\t\t\t// URL(\"http://10.0.2.2/notified/all_con.php\");\r\n\t\t\t\t\tHttpURLConnection urlc = (HttpURLConnection) url\r\n\t\t\t\t\t\t\t.openConnection();\r\n\t\t\t\t\turlc.setConnectTimeout(3000);\r\n\t\t\t\t\turlc.connect();\r\n\t\t\t\t\tif (urlc.getResponseCode() == 200) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (MalformedURLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t// Message.message(getApplicationContext(), \"malformedUrl\");\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t// Message.message(getApplicationContext(), \"exception\");\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t// Message.message(getApplicationContext(), \"exception\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"private boolean networkIsAvailable() {\t\t\t\t\t\t\t\t\n\t\tConnectivityManager connectivityManager \t\t\t\t\t\t\t\t\n\t\t= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\t\t\t\t\t\t\t\t\n\t\tNetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\t\t\t\t\t\t\t\t\n\t\treturn activeNetworkInfo != null && activeNetworkInfo.isConnectedOrConnecting();\t\t\t\t\t\t\t\t\n\t}",
"public static boolean isConnectedToInternet(Context context) {\n\t\tConnectivityManager cm = (ConnectivityManager) context\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\treturn cm.getActiveNetworkInfo() != null ? cm.getActiveNetworkInfo()\n\t\t\t\t.isConnectedOrConnecting() : false;\n\t}",
"public void checkNetworkConnectionIsAvailable() {\n ConnectivityManager connectivityManager = ( ConnectivityManager ) getSystemService ( Context.CONNECTIVITY_SERVICE );\n NetworkInfo activNetwork = connectivityManager.getActiveNetworkInfo ();\n boolean isConnected = activNetwork != null && activNetwork.isConnected ();\n\n if (isConnected) {\n // onStart ();\n } else {\n MaterialAlertDialogBuilder myDialog = new MaterialAlertDialogBuilder ( ForgotPasswordClass.this )\n .setTitle ( \"Connect to a Network\" )\n .setMessage ( \"To use Application,turn on mobile data or connect to Wi-fi.\" ).setPositiveButton ( \"Ok\" , null );\n AlertDialog alertDialog = myDialog.create ();\n alertDialog.setCancelable ( true );\n myDialog.show ();\n }\n\n }",
"public boolean isNetworkAvailable() {\n try {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n } catch (Exception e) {\n FirebaseCrash.report(new Exception(\"Error while trying to check network availability \" + e));\n return false;\n }\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null) {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null) {\n for (int i = 0; i < info.length; i++) {\n Log.v(LOGTAG, String.valueOf(i));\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n Log.v(LOGTAG, \"connected!\");\n return true;\n }\n }\n }\n }\n return false;\n }",
"@TargetApi(Build.VERSION_CODES.M)\n @SuppressLint(\"MissingPermission\")\n private boolean isConnected_Q() {\n //Get ConnectivityManager.\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n //Check current network has Internet access.\n if (connectivityManager != null) {\n Network activeNetwork = connectivityManager.getActiveNetwork();\n if (activeNetwork == null) { //No default network is currently active.\n return false;\n }\n\n NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(activeNetwork);\n if (networkCapabilities != null && isConnectionValidated(networkCapabilities)) {\n return true;\n }\n }\n\n return false;\n }",
"private static boolean checkNetwork(ConnectivityManager cm) {\n NetworkInfo[] allNetworkInfo = cm.getAllNetworkInfo();\n for (NetworkInfo networkInfo : allNetworkInfo) {\n if(networkInfo.isConnected()){\n return true;\n }\n }\n\n return false;\n }",
"public boolean isOnline() {\n \t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n \t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n \t\t\n \t\tif (netInfo != null && netInfo.isConnected()) {\n \t\t\treturn true;\n \t\t} else{\n \t\t\t\n \t\t\treturn false;\n \t\t}\n \t\t\n \t}",
"public boolean isOnline() {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }",
"private static boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean isNetworkAvailable() {\n ConnectivityManager connectivity = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity == null) {\n return false;\n } else {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null) {\n for (int i = 0; i < info.length; i++) {\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n }\n }\n }\n return false;\n }",
"public boolean checkNetWork(Activity aActivity){\n switch (NetworkUtil.getConnectivityStatus(aActivity)) {\n case OFFLINE:\n MessageUtility.showToast(aActivity,\"No Internet Connection\");\n return false;\n case WIFI_CONNECTED_WITHOUT_INTERNET:\n MessageUtility.showToast(aActivity,\"No Internet Connection\");\n return false;\n case MOBILE_DATA_CONNECTED:\n case WIFI_CONNECTED_WITH_INTERNET:\n return true;\n case UNKNOWN:\n MessageUtility.showToast(aActivity,\"No Internet Connection\");\n return false;\n default:\n return false;\n }\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) ApplicationContext.get().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public static boolean hasInternetConnection(final Context context) {\n final ConnectivityManager connectivityManager = (ConnectivityManager) context.\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n final Network network = connectivityManager.getActiveNetwork();\n final NetworkCapabilities capabilities = connectivityManager\n .getNetworkCapabilities(network);\n\n return capabilities != null\n && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED);\n }",
"public static boolean hasActiveInternetConnection(Context context) {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n\n if (netInfo != null && netInfo.isConnected()) {\n return true;\n }\n return false;\n }",
"public static boolean isInternetAvailable(Context currentContext) {\n ConnectivityManager conectivityManager = (ConnectivityManager) currentContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = conectivityManager.getActiveNetworkInfo();\n if (networkInfo != null) {\n if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI) {\n if (networkInfo.isConnected()) {\n return true;\n }\n } else if (networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) {\n if (networkInfo.isConnected()) {\n return true;\n }\n }\n }\n return false;\n }",
"private static boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null;\n }",
"public boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n Log.i(\"Utilities\",\"isNetworkAvailable()\"+(activeNetworkInfo != null\n && activeNetworkInfo.isConnected()));\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"static boolean isNetworkConnected(Context activityContext) {\n ConnectivityManager cm = (ConnectivityManager) activityContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n boolean returnBool = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n\n if(!returnBool) {\n Toast.makeText(activityContext, activityContext.getString(R.string.check_internet), Toast.LENGTH_LONG).show();\n Log.i(\"NetworkUtils\", \"isNetworkConnected() - Network connection check Failed. No Internet Connection\");\n }\n return returnBool;\n }",
"private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }",
"private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }"
] | [
"0.8217488",
"0.81425387",
"0.8127807",
"0.81066984",
"0.7939606",
"0.78861034",
"0.7843414",
"0.7841663",
"0.7837297",
"0.7783308",
"0.77761835",
"0.7762601",
"0.7725183",
"0.7689549",
"0.7689549",
"0.7688406",
"0.7674407",
"0.7660648",
"0.7658626",
"0.7656732",
"0.7641857",
"0.75808686",
"0.7578557",
"0.7566035",
"0.75307256",
"0.7510934",
"0.75059223",
"0.7504169",
"0.7501961",
"0.7491",
"0.74746495",
"0.7472654",
"0.7465909",
"0.74650097",
"0.7454384",
"0.7452287",
"0.7404837",
"0.73927224",
"0.7387439",
"0.7387367",
"0.7383144",
"0.7373985",
"0.735749",
"0.7348481",
"0.73217314",
"0.73055947",
"0.72944254",
"0.7285785",
"0.7280886",
"0.7273196",
"0.7264373",
"0.72636604",
"0.72577864",
"0.72394824",
"0.7203767",
"0.7202989",
"0.71960104",
"0.71951103",
"0.71892345",
"0.7189229",
"0.7182593",
"0.7174822",
"0.71743834",
"0.71621686",
"0.71428454",
"0.7124483",
"0.71236145",
"0.7115174",
"0.7114292",
"0.7102908",
"0.710061",
"0.7096578",
"0.70951176",
"0.70734125",
"0.70504916",
"0.70461315",
"0.7038513",
"0.7024973",
"0.7022956",
"0.70203245",
"0.7015789",
"0.7015789",
"0.7015789",
"0.7015789",
"0.7014605",
"0.7012479",
"0.7007558",
"0.7007403",
"0.6996867",
"0.6993976",
"0.6990284",
"0.69896704",
"0.69884026",
"0.6979178",
"0.69772935",
"0.6960399",
"0.6958637",
"0.6950294",
"0.69285804",
"0.6912051",
"0.6912051"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void rollback()
throws TransactionException
{
Iterator<Buffer> it=branchBuffers.iterator();
while (it.hasNext())
{
it.next().rollback();
it.remove();
}
state=State.ABORTED;
} | {
"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 |
Open connection to write data | public long insert(MyCoin myCoin) {
SQLiteDatabase db = dbHelper.getWritableDatabase();
ContentValues values = new ContentValues();
values.put(KEY_ID, myCoin.getId());
values.put(KEY_NAME, myCoin.getName());
values.put(KEY_SYMBOL, myCoin.getSymbol());
values.put(KEY_RANK, myCoin.getRank());
values.put(KEY_PRICE_USD, myCoin.getPrice_usd());
values.put(KEY_PRICE_BTC, myCoin.getPrice_btc());
values.put(KEY_VOLUME_24H, myCoin.getVolume_24h());
// int random = new Random().nextInt(100);
values.put(KEY_PERCENT_CHANGE_1H, myCoin.getPercent_change_1h());
values.put(KEY_PERCENT_CHANGE_24H, myCoin.getPercent_change_24h());
values.put(KEY_PERCENT_CHANGE_7D, myCoin.getPercent_change_7d());
values.put(KEY_AMOUNT, myCoin.getAmmount());
// Inserting Row
long rowId = db.insert(TABLE_FAVORITE, null, values);
myCoin.setRowId(rowId);
db.close(); // Closing database connection
return rowId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openConnection() throws IOException {\n String path = \"D:/MSSQL-DB.txt\";\n file = new File(path);\n bufferedWriter = new BufferedWriter(new FileWriter(file, true));\n }",
"private void openConnection(){}",
"abstract public void openConnection();",
"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 }",
"void write(PacketConnection connection);",
"private void openDataConnectionActive(String ipAddress, int port) {\n try {\n dataConnection = new Socket(ipAddress, port);\n dataOutWriter = new PrintWriter(dataConnection.getOutputStream(), true);\n debugOutput(\"Data connection - Active Mode - established\");\n } catch (IOException e) {\n debugOutput(\"Could not connect to client data socket\");\n e.printStackTrace();\n }\n\n }",
"private void openDataConnectionPassive(int port) {\n\n try {\n dataSocket = new ServerSocket(port);\n dataConnection = dataSocket.accept();\n dataOutWriter = new PrintWriter(dataConnection.getOutputStream(), true);\n debugOutput(\"Data connection - Passive Mode - established\");\n\n } catch (IOException e) {\n debugOutput(\"Could not create data connection.\");\n e.printStackTrace();\n }\n\n }",
"private void openOutputStream() throws IOException {\n writer=new PrintWriter(this.sock.getOutputStream());\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}",
"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 DataOutputStream openDataOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }",
"public DataOutputStream openDataOutputStream() throws IOException {\n return new DataOutputStream(openOutputStream());\n }",
"@Override\n public void openConnection() throws DAOManagerException {\n try {\n connection = ds.getConnection();\n //save autocommit value\n this.autoCommit = connection.getAutoCommit();\n } catch (SQLException e) {\n LOGGER.error(\"Can't get connection \", e);\n throw new DAOManagerException(e);\n }\n\n }",
"public void setConnection(Connection conn);",
"private void openSocket(String host, int port) throws IOException {\n \t\t// Debug - attempting connection\n \n \t\tclientSocket = new Socket(InetAddress.getByName(host), port);\n \n \t\toutput = new BufferedWriter(new OutputStreamWriter(\n \t\t\t\tclientSocket.getOutputStream()));\n \t\toutput.flush();\n \n \t\tfileOutput = new BufferedOutputStream(clientSocket.getOutputStream());\n \n \t\tinput = new BufferedReader(new InputStreamReader(\n \t\t\t\tclientSocket.getInputStream()));\n \n \t\t// Debug - done\n \t}",
"public abstract void writeToStream(DataOutputStream dataOutputStream);",
"public static void openConnection() {\n try {\n connection = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:XE\", \"system\", \"kevin2000\");\n connection.setAutoCommit(true);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"void createConnection();",
"SocketWriter newSocketWriter(SocketConnection connection);",
"void setConnection(Connection con);",
"public long openTransaction() {\n try (var conn = openConnection()) {\n // Notify the user of a new connection\\\n var oos = new ObjectOutputStream(conn.getOutputStream());\n var ois = new ObjectInputStream(conn.getInputStream());\n oos.writeObject(new OpenMessage());\n return ois.readLong();\n } catch (Exception e) {\n System.err.println(\"Couldn't open transaction!\");\n e.printStackTrace();\n return -1l;\n }\n }",
"public void setConn(Connection conn) {this.conn = conn;}",
"private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }",
"void write();",
"void data_Connection(){\n\t\ttry{\n\t Class.forName(\"com.mysql.jdbc.Driver\");\n\t System.out.println(\"MySQL JDBC driver loaded.\");\n\t \n\t url=\"jdbc:mysql://localhost:3306/\"+dbName;\n\t user=\"root\";\n\t password=\"zhutou6161\";\n\t con=DriverManager.getConnection(url,user,password);\n\t System.out.println(\"MySQL is connected.\");\n\t outfile=new BufferedWriter(new FileWriter(logfile,true));\n\t }\n\t\t//catch Class not Found exception\n\t catch(ClassNotFoundException cnfe){\n\t \tcnfe.printStackTrace();\n\t \tSystem.exit(1);\n\t }\n\t\t//Catch SQL exception\n\t catch(SQLException sqle){\n\t \t sqle.printStackTrace();\n\t\t System.exit(1);\n\t }\n\t\t//catch I/O exception\n\t\tcatch(IOException ioe){ \n\t\t\t ioe.printStackTrace();\n\t\t System.exit(1);\n\t\t} \n\t}",
"Write createWrite();",
"protected void doOpenConnection() throws Exception {\n connection.open\n (conn_route, request_spec.context, request_spec.params);\n }",
"@Override\r\n\tpublic void closeConnection() {\n\t\t\r\n\t}",
"public void connect() throws IOException;",
"public void connectToServer() throws IOException {\n\t\t\tString serverAddress = \"localhost\";\r\n\r\n\t\t\t// Make connection and initialize streams\r\n\t\t\tsocket = new Socket(serverAddress, 9898);\r\n\t\t\tin = new BufferedReader(\r\n\t\t\t\t\tnew InputStreamReader(socket.getInputStream()));\r\n\t\t\tout = new PrintWriter(socket.getOutputStream(), true);\r\n\t\t}",
"void save(storage_server_connections connection);",
"@Override\n\tpublic void closeConnection() {\n\t\t\n\t}",
"private DataConnection() {\n \tperformConnection();\n }",
"public void saveConnections(){\n\t\tXMLMemento memento = XMLMemento.createWriteRoot(TAG_CONNECTIONS);\r\n\t\tsaveConnections(memento);\r\n\t\tFileWriter writer =null;\r\n\t\ttry {\r\n\t\t\twriter=new FileWriter(getStroreFile());\r\n\t\t\tmemento.save(writer);\r\n\t\t\t\r\n\t\t\t\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\tlog(e.getMessage(), IStatus.ERROR, e);\r\n\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\t\r\n\t\t\t\tif(writer !=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\twriter.close();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\tlog(e.getMessage(), IStatus.ERROR, e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\r\n\t\t\r\n\t}",
"private void sendDataMsgToClient(String msg) {\n if (dataConnection == null || dataConnection.isClosed()) {\n sendMsgToClient(\"425 No data connection was established\");\n debugOutput(\"Cannot send message, because no data connection is established\");\n } else {\n dataOutWriter.print(msg + '\\r' + '\\n');\n }\n\n }",
"public void setConnection(String sConnection) throws IOException;",
"@Override\r\n\tpublic void connect(String name, String mode) throws IOException {\n\t\tthis.mode = mode;\r\n\t\tif (this.mode.equals(\"r\")) {\r\n\t\t\tthis.scanner = new Scanner(new File(name));\r\n\t\t} else if (this.mode.equals(\"w\")) {\r\n\t\t\tthis.writer = new BufferedWriter(new FileWriter(name, false));\r\n\t\t} else if (this.mode.equals(\"w+\")) {\r\n\t\t\tthis.writer = new BufferedWriter(new FileWriter(name, true));\t\t\r\n\t\t}\r\n\t}",
"void writeTo(DataSink dataSink, boolean overWrite) throws IOException;",
"public abstract void writeData(DataOutput dout) throws IOException;",
"public void closeConnection();",
"private void openConnection () {\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(\n\t\t\t\t\tPasswordProtector.HOST,\n\t\t\t\t\tPasswordProtector.USER,\n\t\t\t\t\tPasswordProtector.PASSWORD);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t}",
"@Override\n\tpublic void connect() throws IOException {\n\n\t}",
"public void setConnection(Connection connection)\n\t{\n\t\twConn = connection;\n\t}",
"@Override\n public void writeData(String path, String payload) {\n Connection connection = null;\n\n try {\n connection = getConnection();\n connection.setAutoCommit(true);\n\n PreparedStatement pstmt = connection.prepareStatement(\"INSERT INTO DATA VALUES (?,?)\");\n\n pstmt.setString(1, path);\n InputStream in = new ByteArrayInputStream(payload.getBytes());\n pstmt.setBinaryStream(2, in);\n\n pstmt.executeUpdate();\n pstmt.close();\n connection.close();\n\n } catch (SQLException e) {\n logger.log(Level.SEVERE, e.getMessage(), e);\n }\n\n }",
"private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}",
"public void ArduinoConnection() {\n\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n while (portEnum.hasMoreElements()) {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n\n if (PORT_NAME.equals(currPortId.getName())) {\n portId = currPortId;\n break;\n }\n }\n\n if (portId == null) {\n\n System.exit(ERROR);\n return;\n }\n\n try {\n\n serialPort = (SerialPort) portId.open(this.getClass().getName(), TIME_OUT);\n\n serialPort.setSerialPortParams(DATA_RATE,\n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n\n Output = serialPort.getOutputStream();\n\n } catch (Exception e) {\n\n System.exit(ERROR);\n }\n\n }",
"protected void openConnection() {\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(\"jdbc:sqlite:\" + name);\n\t\t\tif (conn == null) {\n\t\t\t\tconnectionOpened = false;\n\t\t\t} else {\n\t\t\t\tconnectionOpened = true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Connect problem: \" + e.getMessage());\n\t\t\tconn = null;\n\t\t}\n\t}",
"void write(StreamOption streamOpt);",
"public void write(DataOutputStream out) throws IOException;",
"public void openConnection() throws SQLException {\r\n if (getConnection() == null || getConnection().isClosed()) {\r\n LOG.ok(\"Get new connection, it is closed\");\r\n setConnection(getNativeConnection(config));\r\n }\r\n }",
"void writeTo(DataSink dataSink) throws IOException;",
"public Socket openDataConnection(int command, String path)\n throws IOException {\n Socket socket = _openDataConnection_(command, path);\n if (socket == null) {\n throw new FTPException(this.getReplyCode());\n }\n return socket;\n }",
"public void store(DBConnection db) throws IOException;",
"public void processConnection(DataInputStream dis, DataOutputStream dos);",
"@Override\r\n\tpublic void close() {\n\t \t if (conn != null) {\r\n\t \t\t try {\r\n\t \t\t\t conn.close();\r\n\t \t\t } catch (Exception e) {\r\n\t \t\t\t e.printStackTrace();\r\n\t \t\t }\r\n\t \t }\r\n\t}",
"public void ArduinoConnection() \n {\n //variables para la identificacion del puerto y poder hacer la conexion\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n //Ciclo para mandar todos los elementos, es decir, aqui se mandara por el puerto los caracteres del mensaje\n while (portEnum.hasMoreElements()) \n {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n \n //comprobamos si hay algo\n if (PORT_NAME.equals(currPortId.getName())) \n {\n portId = currPortId;\n break;\n }\n }\n\n if (portId == null) \n {\n\n System.exit(ERROR);\n return;\n }\n\n try \n {\n \n serialPort = (SerialPort) portId.open(this.getClass().getName(), TIME_OUT);\n\n serialPort.setSerialPortParams(DATA_RATE,\n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n\n Output = serialPort.getOutputStream();\n\n } catch (Exception e) {\n\n System.exit(ERROR);\n }\n\n }",
"public void openConnection() throws SerialConnectionException\n {\n\n\t// Obtain a CommPortIdentifier object for the port you want to open.\n\ttry\n\t{\n ezlink.info(\"openConnection Request received in \" + SerialConnection.class.getName());\n ezlink.info(\"PortName= : \"+parameters.getPortName());\n\t\tSystem.out.println(\"PortName=\"+parameters.getPortName());\n\t portId =\n\t\t CommPortIdentifier.getPortIdentifier(parameters.getPortName());\n\t} catch (NoSuchPortException e) {\n ezlink.error(new Object(), e);\n\t throw new SerialConnectionException(e.getMessage());\n\t}\n\n\t// Open the port represented by the CommPortIdentifier object. Give\n\t// the open call a relatively long timeout of 30 seconds to allow\n\t// a different application to reliquish the port if the user\n\t// wants to.\n\ttry {\n\t\tSystem.out.println(\"Owner=\"+portId.getCurrentOwner());\n ezlink.info(\"Owner= : \"+portId.getCurrentOwner());\n\t sPort = (SerialPort)portId.open(parameters.getPortName(), 3000);\n ezlink.info(\"connection opened!! \");\n\t System.out.println(\"connection opened\");\n\t} catch (Exception e) {\n ezlink.error(new Object(), e);\n\t throw new SerialConnectionException(e.getMessage());\n\t}\n\n\t// Set the parameters of the connection. If they won't set, close the\n\t// port before throwing an exception.\n\ttry {\n\t setConnectionParameters();\n\t} catch (SerialConnectionException e) {\n ezlink.info(\"setConnectionParameters(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw e;\n\t}\n\n\t// Open the input and output streams for the connection. If they won't\n\t// open, close the port before throwing an exception.\n\ttry {\n\t\tSystem.out.println(\"Before Streams\");\n ezlink.info(\"Before Streams: \");\n\t os = sPort.getOutputStream();\n\t is = sPort.getInputStream();\n\t} catch (IOException e) {\n System.out.println(\"openConnection : IOException : sPort.getOutputStream()\");\n e.printStackTrace();\n ezlink.info(\"Streams(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw new SerialConnectionException(\"Error opening i/o streams\");\n\t}\n\n\t// Add this object as an event listener for the serial port.\n\ttry {\n\t sPort.addEventListener(this);\n\t} catch (TooManyListenersException e) {\n System.out.println(\"openConnection : TooManyListenersException : sPort.addEventListener(this)\");\n e.printStackTrace();\n ezlink.info(\"addEventListener(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw new SerialConnectionException(\"too many listeners added\");\n\t}\n\n\t// Set notifyOnDataAvailable to true to allow event driven input.\n\tsPort.notifyOnDataAvailable(true);\n\n\t// Set notifyOnBreakInterrup to allow event driven break handling.\n\tsPort.notifyOnBreakInterrupt(true);\n\n\t// Set receive timeout to allow breaking out of polling loop during\n\t// input handling.\n\ttry {\n\t sPort.enableReceiveTimeout(30);\n\t} catch (UnsupportedCommOperationException e) {\n System.out.println(\"openConnection : UnsupportedCommOperationException : sPort.enableReceiveTimeout(30)\");\n e.printStackTrace();\n ezlink.info(\"UnsupportedCommOperationException(): \");\n ezlink.error(new Object(), e);\n\t}\n\n\t// Add ownership listener to allow ownership event handling.\n\tportId.addPortOwnershipListener(this);\n\topen = true;\n\n\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}",
"@Override\n\tpublic void connect() throws IOException {\n\t}",
"abstract public void closeConnection();",
"public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;",
"public ServerWriter(ServerConnection connection) {\n super(connection);\n }",
"public HttpURLConnection openConnection(String path) throws IOException {\n\t\tHttpURLConnection co = (HttpURLConnection) getURL(path).openConnection();\n\t\tconfigureConnection(co);\n\t\tconfigureSession(co);\n\t\treturn co;\n\t}",
"public OutputStream openOutputStream() throws IOException {\n // TODO: this mode is not set yet.\n // \tif ((parent.mode & Connector.WRITE) == 0)\n // \t\tthrow new IOException(\"read-only connection\");\n ensureOpen();\n ensureNotDone();\n\n if (outputStreamOpened)\n throw new IOException(\"no more output streams available\");\n\n if (privateOutput == null) {\n // there are 3 bytes operation headers and 3 bytes body headers //\n privateOutput = new PrivateOutputStream(this, maxPacketSize - 6);\n }\n\n outputStreamOpened = true;\n\n return privateOutput;\n }",
"public static void open()\n\t{\n\t\ttry\n\t\t{\n\t\t\tClass.forName(PATH_DRIVER_JDBC).newInstance();\n\t\t\tCONNECTION \t= DriverManager.getConnection(PATH_DB,USER,PASSWORT);\n\t\t\tSTATEMENT \t= CONNECTION.createStatement();\n\t\t\tlink = true;\n\t\t\n\t\t} catch (Exception e) \n\t\t{\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeSysCall() {\n clientChannel.write(writeBuffer, this, writeCompletionHandler);\n }",
"@Override\n public void run() {\n HttpsURLConnection connPut = null;\n try {\n URL webServerUrl = new URL(DB_URL);\n\n connPut = (HttpsURLConnection) webServerUrl.openConnection();\n\n connPut.setReadTimeout(10000 /* milliseconds */);\n connPut.setConnectTimeout(15000 /* milliseconds */);\n connPut.setDoOutput(true);\n\n connPut.setRequestMethod(\"POST\");\n connPut.setRequestProperty(\"Content-type\", \"application/json\");\n AuthenticationValidator authenticationValidator = new AuthenticationValidator(context);\n String token = authenticationValidator.getAuthenticationToken();\n connPut.addRequestProperty(\"Authorization\", \"Bearer \" + token);\n connPut.connect();\n OutputStreamWriter out = new OutputStreamWriter(connPut.getOutputStream());\n\n\n\n\n for(RestRecord rr : toBePushed)\n {\n out.write(rr.getJSON().toString());\n out.flush();\n }\n out.close();\n\n if(connPut.getResponseCode() == 200)\n System.out.println(\"Successfully posted new route(s).\");\n else\n System.out.println(connPut.getResponseMessage());\n\n connPut.disconnect();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(connPut!=null)\n connPut.disconnect();\n }\n }",
"public Socket connect() {\r\n\t\ts = null;\r\n\t\ttry {\r\n\t\t\ts = new Socket(hostName, port);\r\n\t\t\tdos = Utils.deflatedDataOut(s.getOutputStream(), 8);\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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\treturn s;\r\n\t\t// TODO Auto-generated method stub\r\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 }",
"Connection createConnection();",
"void setCloseConnection();",
"private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }",
"public Connection getConn() {return conn;}",
"private static void writeStream(Path path) {\n try (DataOutputStream dataOutputStream = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(path.toString())))) {\n dataOutputStream.writeUTF(\"go\");\n dataOutputStream.writeInt(5);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public OutputStreamWriter connectToServer(String serverName) {\n\t\treturn null;\n\t}",
"public Connection getConnection()\n\t{\n\t\treturn wConn;\n\t}",
"public void connect() {}",
"@Override\n public void write() {\n\n }",
"public abstract void write (DataOutputStream outStream)\r\n throws IOException;",
"void handleConnectionOpened();",
"private void closeDataConnection() {\n try {\n dataOutWriter.close();\n dataConnection.close();\n if (dataSocket != null) {\n dataSocket.close();\n }\n\n debugOutput(\"Data connection was closed\");\n } catch (IOException e) {\n debugOutput(\"Could not close data connection\");\n e.printStackTrace();\n }\n dataOutWriter = null;\n dataConnection = null;\n dataSocket = null;\n }",
"public abstract void write(DataOutput out) throws IOException;",
"public void writeDatabase();",
"public void connect();",
"public void connect();",
"public void connect();",
"protected final synchronized boolean send(final Object data, final Commands overWrite) {\n\t\ttry {\n\t\t\t// verificamos si la conexion esta cerrada\n\t\t\tif (this.getConnection().isClosed())\n\t\t\t\t// retornamos false\n\t\t\t\treturn false;\n\t\t\t// mostramos un mensaje\n\t\t\tthis.getLogger().debug((data instanceof Commands || overWrite != null ? \"<<= \" : \"<<< \") + (overWrite != null ? overWrite : data));\n\t\t\t// verificamos si es un comando\n\t\t\tif (!this.getLocalStage().equals(Stage.POST) && data instanceof Commands || overWrite != null)\n\t\t\t\t// almacenamos el ultimo comando enviado\n\t\t\t\tthis.lastCommand = overWrite != null ? overWrite : (Commands) data;\n\t\t\t// enviamos el dato\n\t\t\tthis.getOutputStream().writeObject(data);\n\t\t\t// escribimos el dato\n\t\t\tthis.getOutputStream().flush();\n\t\t} catch (final IOException e) {\n\t\t\t// mostramos el trace\n\t\t\tthis.getLogger().error(e);\n\t\t\t// retornamos false\n\t\t\treturn false;\n\t\t}\n\t\t// retornamos true\n\t\treturn true;\n\t}",
"private void openSocket(int port, String request) throws Exception {\n Socket socket = new Socket(InetAddress.getByName(\"localhost\"), port);\n ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());\n oos.writeObject(request);\n ObjectInputStream ois = new ObjectInputStream(socket.getInputStream()); \n String response = (String) ois.readObject(); \n System.out.println(\"Response from DataNode: \" + response);\n socket.close();\n }",
"public static void establishConnection()throws IOException, SQLException {\n connection= DriverManager.getConnection(\n Configuration.fileReader(\"dbhostname\"),\n Configuration.fileReader(\"dbusername\"),\n Configuration.fileReader(\"dbpassword\"));\n statement=connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n }",
"public void open() throws IOException;",
"private synchronized Socket establishPortDataConnection(String command)\n throws ConnectionException, IOException, FTPException {\n InetAddress localAddress = controlConnection.getLocalAddress();\n int port = utils.producePort(config.getActiveMinPort(), config.getActiveMaxPort());\n ServerSocket serverSocket = new ServerSocket(port, 1, localAddress);\n\n InetSocketAddress socketAddress = new InetSocketAddress(localAddress, serverSocket.getLocalPort());\n String str = utils.getStringByAddress(socketAddress);\n executeCommand(FTPCommand.PORT + \" \" + str);\n if (!FTPReplyCode.find(getReplyCode()).isOkay())\n throw new FTPException(response);\n\n sendCommand(command);\n Socket socket = serverSocket.accept();\n serverSocket.close();\n return socket;\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 }",
"private void handleWrite(SelectionKey key, String message, SSLClientSession session) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = session.getSSLSocketChannel();\n\t\t\t\n\t\t\tByteBuffer out_message = ssl_socket_channel.getAppSendBuffer();\n\t\t\t\n\t\t\tif(message != null) \n\t\t\t\tout_message.put(message.getBytes());\n\t\t\t\n//\t\t\tOutputHandler.println(\"Server: writing \"+new String(out_message.array(), 0, out_message.position()));\n\t\t\tint count = 0;\n\t\t\t\n\t\t\twhile (out_message.position() > 0) {\n\t\t\t\tcount = ssl_socket_channel.write();\n\t\t\t\tif (count == 0) {\n//\t\t\t\t\tOutputHandler.println(\"Count was 0.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tOutputHandler.println(\"Count was \"+count);\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (out_message.position() > 0) {\n\t\t\t\t// short write:\n\t\t\t\t// Register for OP_WRITE and come back here when ready\n\t\t\t\tkey.interestOps(key.interestOps() | SelectionKey.OP_WRITE);\n\t\t\t\t\n\t\t\t\tsession.rewrite = true;\n\t\t\t} else {\n\t\t\t\tif(session.out_messages.isEmpty()) { \n\t\t\t\t\t// Write succeeded, don�t need OP_WRITE any more\n\t\t\t\t\tkey.interestOps(key.interestOps() & ~SelectionKey.OP_WRITE);\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tsession.rewrite = false;\n\t\t\t}\n\t\t}",
"@WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/writeConnectorData\",\n operationName=\"writeConnectorData\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"writeConnectorData\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"writeConnectorDataResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String writeConnectorData(@WebParam(mode = WebParam.Mode.IN, name=\"DataWriter\")\n String DataWriter) throws ServiceException;",
"private void closeConnection() {\n try {\n bufferedWriter.close();\n } catch (IOException e) {\n System.err.println(\"Cannot close connection to MS SQL DB\");\n e.printStackTrace();\n }\n System.out.println(\"Close connection to MS SQL DB\");\n }",
"private void write(String command) throws IOException {\n if (connected) {\n try {\n writer.write(command);\n writer.newLine();\n writer.flush();\n } catch (IOException e) {\n System.out.println(\"Could not read from server -> ServerCommunication:write()\");\n System.out.println(e);\n }\n } else {\n throw new IOException(\"Not Connected\");\n }\n }",
"abstract public boolean createConnection();",
"public void commit() {\n\t\ttry {\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"完了したコミット/Commit Done\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"接続エラーが発生しました/Connection Commit Error Occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }",
"public boolean connect(){\n \ttry {\n \t\tString writeConcernType = test_properties.getProperty(\"writeConcern\");\n \t\tif (\"none\".equals(writeConcernType)) {\n \t\t\twriteConcern = WriteConcern.NONE;\n \t\t} else if (\"safe\".equals(writeConcernType)) {\n \t\t\twriteConcern = WriteConcern.SAFE;\n \t\t} else if (\"normal\".equals(writeConcernType)) {\n \t\twriteConcern = WriteConcern.NORMAL;\n \t\t} else if (\"journal\".equals(writeConcernType)) {\n \t\twriteConcern = WriteConcern.JOURNAL_SAFE;\n \t\t} else if (\"fsync\".equals(writeConcernType)) {\n \t\twriteConcern = WriteConcern.FSYNC_SAFE;\n \t\t}\n \t\n \t\tm = new Mongo (server, port);\n \t\tm.setWriteConcern(writeConcern);\n \t\tmdb = m.getDB(dbName);\n \n \t \t// Try to authenticate.\n \t\tif (!(user.equals(\"\") || pass.equals(\"\")))\n \t\t\tmdb.authenticate(user, pass.toCharArray());\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n\t\t\treturn false;\n \t\t}\n \treturn true;\n \t }",
"private void setConnectionData(HttpURLConnection connection) {\n OutputStream os;\n String response = \"\";\n\n try {\n os = connection.getOutputStream();\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Can't open output stream\");\n return;\n }\n\n try {\n BufferedOutputStream bos = new BufferedOutputStream(os);\n\n byte[] ippRequest = new IppRequest(jobName, printJobData).getBytes();\n\n bos.write(ippRequest);\n\n bos.flush();\n bos.close();\n\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"unsupported encoding\");\n return;\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"io exception\");\n return;\n }\n\n Log.i(LOG_TAG, response);\n }"
] | [
"0.62915444",
"0.62781584",
"0.6040394",
"0.5929251",
"0.5891607",
"0.5886095",
"0.5808653",
"0.57920223",
"0.5751235",
"0.5724619",
"0.566547",
"0.5648304",
"0.5567603",
"0.5566242",
"0.55460006",
"0.55161965",
"0.5416348",
"0.5408236",
"0.5406708",
"0.54065627",
"0.53965",
"0.53963846",
"0.5389611",
"0.538124",
"0.5369094",
"0.53585494",
"0.5351246",
"0.5336453",
"0.53268075",
"0.52880484",
"0.52866906",
"0.52796",
"0.5266272",
"0.5262816",
"0.5231072",
"0.5225547",
"0.52199554",
"0.52187616",
"0.5211956",
"0.5208427",
"0.52083415",
"0.5201996",
"0.5200965",
"0.52005213",
"0.51904225",
"0.51843166",
"0.51817465",
"0.51813173",
"0.51789933",
"0.51775575",
"0.5175668",
"0.5168713",
"0.5168525",
"0.5165328",
"0.5152744",
"0.51524246",
"0.5150883",
"0.5150482",
"0.5148608",
"0.5144917",
"0.51384926",
"0.5132702",
"0.5116739",
"0.51129603",
"0.51126134",
"0.51116115",
"0.5109435",
"0.510131",
"0.50991815",
"0.50883824",
"0.50852495",
"0.5078805",
"0.50766116",
"0.5076589",
"0.50712717",
"0.5066913",
"0.50640976",
"0.50623274",
"0.5058019",
"0.5052412",
"0.504829",
"0.503217",
"0.5019392",
"0.49985194",
"0.49985194",
"0.49985194",
"0.49938712",
"0.49922973",
"0.49875477",
"0.49857664",
"0.49813446",
"0.49785888",
"0.49779528",
"0.49758726",
"0.49749327",
"0.4972016",
"0.49671853",
"0.49661523",
"0.4965576",
"0.49642175",
"0.49610317"
] | 0.0 | -1 |
Test Success of getAllJobTypes method, of class JobsController. | @Test
public void testGetAllJobTypes_request_OK()
{
JobTypes jobType1 = new JobTypes(1, "test1");
JobTypes jobType2 = new JobTypes(2, "test2");
JobTypes[] jobList = {jobType1, jobType2};
List<JobTypes> jobTypesList = new ArrayList<JobTypes>();
jobTypesList.add(jobType1);
jobTypesList.add(jobType1);
Iterable<JobTypes> allJobTypesList = jobTypesList;
doReturn(allJobTypesList).when(jobTypesService).getAllJobTypes();
try {
mockMvc.perform(MockMvcRequestBuilders.get("/job_types/all")
.content(asJsonString(allJobTypesList))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testGetJobTypesById_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n \n Optional<JobTypes> jobType = Optional.of(jobType1);\n \n doReturn(jobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testAddNewJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testUpdateJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testGetJobTypesById_request_Not_Found()\n { \n Optional<JobTypes> emptyJobType = Optional.empty();\n \n doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(emptyJobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isNotFound())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n\tvoid testGetAllByType() {\n\t\tList<Plant> plant = service.getAllByType(\"Shurbs\");\n\t\tString type = plant.get(0).getType();\n\t\tassertEquals(\"Shurbs\", type);\n\t}",
"@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"2\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(successMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@RequestMapping(value = \"/getJobsList\", method = RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic List<GetJobsResponse> getJobsList(@RequestParam String jobType, \n\t\t\t@RequestParam String jobTitle,@RequestParam String emailId) {\n \tList<GetJobsResponse> getJobsResponseList = null;\n\t\ttry {\n\t\t\t\n\t\t\tgetJobsResponseList = this.econnectService.getJobsList(jobType,jobTitle,emailId);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getJobsResponseList;\n\t}",
"@Test\n public void testGetListOfAircraftTypes() {\n System.out.println(\"getListOfAircraftTypes\");\n AircraftModel acModel = new AircraftModel();\n acModel.setId(\"PASSENGER\");\n Simulation sim = new Simulation();\n sim.getFlightPlan().getAircraft().setAircraftModel(acModel);\n p.getSimulationsList().getSimulationsList().add(sim);\n this.instance = new ExportCSVController(p);\n ExportCSVController instance = this.instance;\n \n List<String> expResult = new LinkedList<>();\n expResult.add(acModel.getId());\n List<String> result = instance.getListOfAircraftTypes();\n assertEquals(expResult, result);\n \n }",
"@Test\n void getAllSuccess() {\n List<RunCategory> categories = dao.getAll();\n assertEquals(13, categories.size());\n }",
"@Test\n\tpublic void findTypeList() {\n\t}",
"@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(failMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n void technicalStatusPerBatchTableTest() throws Exception {\n\n jCtrl.getTrainer2(); // initialize data\n\n // call technicalStatusPerBatchTable() and get returned list\n List<TechnicalStatusPerBatch> result = tspbServ.technicalStatusPerBatchTable(1);\n\n // check if returned list contains TechnicalStatusPerBatch objects\n assertTrue(result.get(0) instanceof TechnicalStatusPerBatch);\n }",
"@GetMapping(\"/type-tests\")\n @Timed\n public ResponseEntity<List<TypeTest>> getAllTypeTests(Pageable pageable) {\n log.debug(\"REST request to get a page of TypeTests\");\n Page<TypeTest> page = typeTestService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/type-tests\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"DataResult<List<Job>> getAll();",
"ResponseEntity<List<Type>> findTaskTypes();",
"@Test\n public void testGetAllLocations() throws Exception {\n\n mockMvc.perform(get(URL_PREFIX + \"/all\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(contentType))\n .andExpect(jsonPath(\"$\", hasSize(DB_LOCATION_NUMBER)))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(DB_LOCATION_ID.intValue())))\n .andExpect(jsonPath(\"$.[*].city\").value(hasItem(DB_LOCATION_CITY)))\n .andExpect(jsonPath(\"$.[*].cityArea\").value(hasItem(DB_LOCATION_CITY_AREA)))\n .andExpect(jsonPath(\"$.[*].street\").value(hasItem(DB_LOCATION_STREET)))\n .andExpect(jsonPath(\"$.[*].streetNumber\").value(hasItem(DB_LOCATION_STREET_NUMBER)))\n .andExpect(jsonPath(\"$.[*].state\").value(hasItem(DB_LOCATION_STATE)));\n }",
"@GetMapping(\"/company-types\")\n @Timed\n public List<CompanyType> getAllCompanyTypes() {\n log.debug(\"REST request to get all CompanyTypes\");\n List<CompanyType> companyTypes = companyTypeRepository.findAll();\n return companyTypes;\n }",
"@Test\n public void getAllItems_Returns200Status() throws Exception {\n mockMvc.perform(get(\"/api/v1/items\")).andExpect(status().isOk());\n }",
"@Test\n public void testBookController() {\n BookController bookeController = new BookController();\n /* List<Book> result =bookeController.getAllBooks();\n if (result.size() > 0) {\n assertEquals(result.get(0).getClass(), Book.class); */\n }",
"java.util.List<cb.Careerbuilder.Job> \n getJobsList();",
"@Test\n public void given_devEnvironmentAndListStudent_when_callEndpointFindAll_then_returnListStudentAndStatus200() throws Exception {\n\n when(studentRepo.findAll()).thenReturn(STUDENT_LIST);\n\n RequestBuilder request = MockMvcRequestBuilders\n .get(\"/students\")\n .accept(MediaType.APPLICATION_JSON);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andExpect(content().json(gson.toJson(STUDENT_LIST),true))\n .andReturn();\n }",
"@Test\n public void testFindAll_Event_Job() {\n // more or less tested in testFindEntity_Event_Job()\n }",
"@Override\r\n\tpublic List<JobDTO> getAllJobs() {\n\t\treturn accountDao.getAllJobs();\r\n\t}",
"public String[] getAllJobs();",
"@Test\n public void testFourthSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"all\")\n .param(\"searchTerm\", \"ruby\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][2]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][3]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][4]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][5]\").doesNotExist());\n }",
"@Test\n public void shouldReturnOkStatus() throws Exception {\n mockMvc.perform(get(API_MOOD_TYPE, \"angry\"))\n .andExpect(status().isOk());\n\n mockMvc.perform(get(API_MOOD_TYPE, \"cherry\"))\n .andExpect(status().isOk());\n }",
"@RequestMapping(value = \"/contracts/types\", method = RequestMethod.GET)\n public JsonListWrapper<String> listAllTypes() {\n Collection<String> items = ((ContractService) service).findAllInsuranceTypes();\n return JsonListWrapper.withTotal(items);\n }",
"@Test\n public void testGetClassListByTeacher() {\n System.out.println(\"getClassListByTeacher\");\n\n given()\n .contentType(\"application/json\")\n .when()\n .get(\"/generel/teacher/\" + t1.getName()).then()\n .statusCode(200)\n .assertThat()\n .body(\"courseName\", hasSize(1), \"courseName\", hasItems(\"Programming\"), \"semester\", hasItems(\"fall2018\"));\n\n }",
"@GetMapping(\"getAll\")\n\tpublic Collection<JobApplication> getAll(){\n\t\treturn jobAppRepo.findAll();\n\t}",
"@Test\n void testGetAllApplicationsToCompany() {\n Company company = new Company(\"HoraceCorp\");\n Branch branch1 = company.createBranch(\"HQ\", \"M5S2E8\");\n HRCoordinator hrc1 = new HRCoordinator(\"horace\", \"ABC\", \"Horace Businessman\",\n \"horace@gmail.com\", branch1, LocalDate.now());\n BranchJobPosting branchJobPosting1 = hrc1.addJobPosting(\"Test Job\", \"HR\", \"This is a job.\",\n new ArrayList<>(), new ArrayList<>(), 1, LocalDate.now(), LocalDate.now().plusDays(3),\n LocalDate.now().plusDays(4));\n Applicant applicant = new Applicant(\"dudebro7\", \"ABC\", \"DudeBro Smith\",\n \"dudebro@gmail.com\", \"Toronto\", LocalDate.now());\n JobApplication application1 = new JobApplication(applicant, branchJobPosting1, LocalDate.now());\n Branch branch2 = company.createBranch(\"South Branch\", \"N9G0A3\");\n HRCoordinator hrc2 = new HRCoordinator(\"boris\", \"ABC\", \"Boris Businessman\",\n \"boris@gmail.com\", branch2, LocalDate.now());\n BranchJobPosting branchJobPosting2 = hrc2.addJobPosting(\"Best Job\", \"HR\",\n \"This is a better job.\", new ArrayList<>(), new ArrayList<>(), 1, LocalDate.now(),\n LocalDate.now().plusDays(3), LocalDate.now().plusDays(4));\n JobApplication application2 = new JobApplication(applicant, branchJobPosting2,\n LocalDate.now().plusDays(1));\n assertEquals(2, company.getAllApplicationsToCompany(applicant).size());\n assertTrue(company.getAllApplicationsToCompany(applicant).contains(application1));\n assertTrue(company.getAllApplicationsToCompany(applicant).contains(application2));\n }",
"@Test\n\tpublic void testGetAllProjects() throws Exception {\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/projects\")\n\t\t\t\t.accept(APPLICATION_JSON)).andExpect(status().isOk())\n\t\t.andExpect(content().contentType(contentType));\n\t\t// Verifies If projectService.getAllProjects() is invoked at least once\n\t\tMockito.verify(projectService).getAllProjects();\n\t}",
"@PUT\n @Path(\"jobs/status\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response jobActiveByStatusBulk(String body) {\n try {\n JSONArray jobs = new JSONArray(body);\n JSONObject ob = new JSONObject();\n for (int i = 0; i < jobs.length(); i++) {\n String jobId = jobs.getString(i);\n JSONObject t = new JSONObject();\n LGJob lg = Utils.getJobManager().getJob(jobId);\n if (null == lg) {\n t.put(\"error\", \"unknown\");\n t.put(\"reason\", \"\");\n ob.put(jobId, t);\n } else {\n t.put(\"status\", lg.getStatusString(lg.getStatus()));\n t.put(\"reason\", lg.getReason());\n ob.put(jobId, t);\n }\n }\n return Response.status(200).entity(ob.toString(1)).build();\n }\n catch(Exception e) {\n e.printStackTrace();\n JSONObject ret = new JSONObject();\n ret.put(\"error\", e.getMessage());\n return Response.status(500).entity(ret.toString()).build();\n }\n }",
"@Test\r\n\tpublic void testFindAllApplication() {\r\n\t\twhen(backgroundVerificationAndLeaseAdminRepository.findAll()).thenReturn(StringList);\r\n\t\tList<Backgroundverification> StringList1 = backgroundVerificationAndLeaseAdmnServiceImpl.findAllApplications();\r\n\r\n\t\tassertEquals(6, StringList1.size());\r\n\t}",
"@Test\n public void testSearchResultsLoad() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"all\")\n .param(\"searchTerm\", \"asdf\"))\n .andExpect(status().isOk());\n }",
"@ResponseBody\r\n\t@RequestMapping(value = \"getJobsCount\", method = { RequestMethod.POST, RequestMethod.GET })\r\n\tpublic Response getJobsCount()\r\n\t{\r\n\t\treturn indexService.getJobsCount();\r\n\t}",
"@Test\n void getCategories() throws Exception {\n CategoryItemResponse categoryItemResponse = generateCategoryItemResponse();\n\n when(categoryService.getAllCategories()).thenReturn(Arrays.asList(categoryItemResponse));\n\n MvcResult mvcResult = mockMvc.perform(get(PATH + \"/get\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(status().is2xxSuccessful())\n .andReturn();\n\n List<CategoryItemResponse> response = objectMapper.readValue(mvcResult.getResponse().getContentAsString(), List.class);\n\n assertNotNull(response);\n assertFalse(response.isEmpty());\n verify(categoryService, times(1)).getAllCategories();\n }",
"@Test\n public void testValues() {\n System.out.println(\"values\");\n StatusType[] result = StatusType.values();\n assertEquals(result.length, 1);\n }",
"@Test\r\n\tpublic void listAllTransformer() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\ttr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10));\r\n\t\ttr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4));\r\n\t\ttr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7));\r\n\t\ttr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1));\r\n\t\ttr.save(new Transformer( null, \"Foo\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1));\r\n\t\t\r\n\t\tmockMvc.perform(get(\"/transformers/\" ))\r\n\t\t\t\t.andExpect(status().isOk())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$\").isArray())\r\n\t\t\t\t.andExpect(jsonPath(\"$\" , hasSize(5)))\r\n\t\t\t\t;\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n public void testGetCourseList() {\n System.out.println(\"getCourseList\");\n\n given()\n .contentType(\"application/json\")\n .when()\n .get(\"/generel/courselist\").then()\n .statusCode(200)\n .assertThat()\n .body(\"description\", hasSize(2), \"courseName\", hasItems(\"Programming\", \"System Development\"));\n\n }",
"public void testGetAllPhaseTypes() throws Exception {\n PhaseType[] phaseTypes = persistence.getAllPhaseTypes();\n assertEquals(\"Should return 2 types.\", 2, phaseTypes.length);\n\n // pick one PhaseType to check the fields\n PhaseType phaseType = null;\n for (int i = 0; i < phaseTypes.length; ++i) {\n if (phaseTypes[i].getId() == 2) {\n phaseType = phaseTypes[i];\n }\n }\n assertEquals(\"Failed to get name\", \"Manual\", phaseType.getName());\n }",
"@Test\n public void given_devEnvironmentAndEmptyListStudent_when_callEndpointFindAll_then_returnEmptyListStudentAndStatus200() throws Exception {\n\n List<Student> studentList = new ArrayList<>();\n\n when(studentRepo.findAll()).thenReturn(studentList);\n\n RequestBuilder request = MockMvcRequestBuilders\n .get(\"/students\")\n .accept(MediaType.APPLICATION_JSON);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andExpect(content().json(gson.toJson(studentList)))\n .andReturn();\n }",
"@Test\n\t\tpublic void testGetAllOrganization() {\n\t\t\tfor (int i =0; i<10;i++){\n\t\t\t assertEquals(wraRestServer.listOrganization().get(i).getSiret(),organizationDao.getAll().get(i).getSiret());\n\t\t}\n\t\t\n\t\n\t}",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"@RequestMapping(value=\"/getJobStatus\")\n\tpublic ResponseEntity<List<JobResponse>> getJobStatus(@RequestParam String jobId) {\n\n\t\t\n\t\tif(jobId == null || jobId.isEmpty()) {\n\t\t\treturn ResponseEntity.status(HttpStatus.BAD_REQUEST).body(null);\n\t\t}\n\t\t\n\t\tfinal Long jobNumber = Long.valueOf(jobId);\n\t\tlogger.debug(\"Job id recieved from client - \" + jobNumber);\n\t\t\n\t\tfinal List<JobResponse> responseList = new ArrayList<JobResponse>();\n\t\t\n\t\tif (jobDirectory.containsKey(jobNumber)) {\n\t\t\tlogger.debug(\"found the job in the job directory. fetching the responses.\");\n\t\t\tJob newJob = jobDirectory.get(jobNumber);\n\t\t\tnewJob.getJobList().stream().forEach(job -> {\n\t\t\t\tJobResponse jobResponse = new JobResponse();\n\t\t\t\tjobResponse.setUrl(((SubTask) job).getUrl());\n\t\t\t\tif (((SubTask) job).getCurrentStatus().equals(JobStatus.COMPLETE)) {\n\t\t\t\t\tjobResponse.setResult(((SubTask) job).getResult().toString());\n\t\t\t\t} else {\n\t\t\t\t\tjobResponse.setResult(((SubTask) job).getCurrentStatus().getValue());\n\t\t\t\t}\n\t\t\t\tresponseList.add(jobResponse);\n\t\t });\n\t\t\t\n\t\t\tlogger.debug(\"Finished fetching responses.\");\n\t\t\tif(logger.isDebugEnabled()) {\n\t\t\t\tresponseList.stream().forEach( x -> {\n\t\t\t\t\tlogger.debug(\"url -\" + x.getUrl() + \" result- \" + x.getResult());\n\t\t\t\t});\n\t\t\t}\n\t\t \t\n\t\t return ResponseEntity.status(HttpStatus.OK).body(responseList);\n\n\t\t} else {\n logger.debug(\"Could not find jobid \" + jobId + \" in job directory.\");\n return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(null);\n\t\t}\n\n\t\t\n\t}",
"@Test\n\tpublic void getProjects() {\n\t\tList<Project> projects = new ArrayList<Project>();\n\t\tprojects.add(project);\n\t\twhen(repository.findAll()).thenReturn(projects);\n\t\tassertEquals(controller.getAllProjects(), projects);\n\t}",
"@Override\r\n\tpublic List<Job> ShowAllJobs() {\n\t\treturn null;\r\n\t}",
"@Test\n public void testListCustomers() throws Exception{\n List<Customer> customers = new ArrayList<>();\n customers.add(new Customer());\n customers.add(new Customer());\n\n when(customerService.listAll()).thenReturn((List) customers);\n\n mockMvc.perform(get(\"/customers\"))\n .andExpect(status().isOk())\n .andExpect(view().name(\"customer/customers\"))\n .andExpect(model().attribute(\"customers\", hasSize(2)));\n }",
"public void testGetAllPhaseStatuses() throws Exception {\n PhaseStatus[] phaseStatuses = persistence.getAllPhaseStatuses();\n assertEquals(\"Should return 3 statuses.\", 3, phaseStatuses.length);\n\n // pick one PhaseType to check the fields\n PhaseStatus phaseStatus = null;\n for (int i = 0; i < phaseStatuses.length; ++i) {\n if (phaseStatuses[i].getId() == 2) {\n phaseStatus = phaseStatuses[i];\n }\n }\n assertEquals(\"Failed to get name\", \"Open\", phaseStatus.getName());\n }",
"@Test\n public void testEjemplaresDisponibles() {\n System.out.println(\"ejemplaresDisponibles\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n List<Ejemplar> expResult = new ArrayList<>();\n expResult.add(new EjemplaresList().getEjemplares().get(1));\n List<Ejemplar> result = instance.ejemplaresDisponibles(libro);\n assertEquals(expResult, result);\n\n }",
"@GetMapping(\"/findAll\")\n public List<LabTest> findAll(){\n return labTestService.getLabTests();\n }",
"@Test\n\tpublic void testGetAllTasks() throws Exception {\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/tasks\")\n\t\t\t\t.accept(APPLICATION_JSON)).andExpect(status().isOk())\n\t\t.andExpect(content().contentType(contentType));\n\t\t// Verifies If taskService.getAllTasks() is invoked at least once\n\t\tMockito.verify(taskService).getAllTasks();\n\t}",
"private void defaultListWrkStatusShouldBeFound(String filter) throws Exception {\n restListWrkStatusMockMvc.perform(get(\"/api/list-wrk-statuses?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(listWrkStatus.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].code\").value(hasItem(DEFAULT_CODE)))\n .andExpect(jsonPath(\"$.[*].name\").value(hasItem(DEFAULT_NAME)))\n .andExpect(jsonPath(\"$.[*].fullName\").value(hasItem(DEFAULT_FULL_NAME)))\n .andExpect(jsonPath(\"$.[*].isCurrentFlag\").value(hasItem(DEFAULT_IS_CURRENT_FLAG)))\n .andExpect(jsonPath(\"$.[*].description\").value(hasItem(DEFAULT_DESCRIPTION)))\n .andExpect(jsonPath(\"$.[*].dateCreate\").value(hasItem(DEFAULT_DATE_CREATE.toString())))\n .andExpect(jsonPath(\"$.[*].dateEdit\").value(hasItem(DEFAULT_DATE_EDIT.toString())))\n .andExpect(jsonPath(\"$.[*].creator\").value(hasItem(DEFAULT_CREATOR)))\n .andExpect(jsonPath(\"$.[*].editor\").value(hasItem(DEFAULT_EDITOR)));\n\n // Check, that the count call also returns 1\n restListWrkStatusMockMvc.perform(get(\"/api/list-wrk-statuses/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"@Test\n\tvoid testgetAllPlants() {\n\t\tList<Plant> plantlist = service.getAllPlant();\n\t\tboolean result = true;\n\t\tif (plantlist.isEmpty()) {\n\t\t\tresult = false;\n\t\t}\n\t\tassertTrue(result);\n\t}",
"@Test\n public void testFindAll() {\n final WebTarget target = target().\n path(\"category\");\n\n Response response = target.request(MediaType.APPLICATION_JSON_TYPE).get();\n\n assertEquals(200, response.getStatus());\n List<Category> categories = response.readEntity(new GenericType<List<Category>>() {});\n assertTrue(categories.size() > 0);\n \n response = target.request(MediaType.APPLICATION_XML_TYPE).get();\n assertEquals(200, response.getStatus());\n }",
"@Test\n\tpublic void getSurveysTest() throws Exception {\n\t\t mockMvc.perform(get(\"/getallsurveys\"))\n\t\t .andExpect(status().isFound())\n\t\t .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n\t\t .andExpect(jsonPath(\"$\", hasSize(2)));\n\t}",
"cb.Careerbuilder.Job getJobs(int index);",
"@Override\n\tpublic ResponseEntity<String> getSectionTypes(@RequestBody Map<String, String> request) throws Exception \n\t{\n\t\t// Print is for testing purposes\n\t\tSystem.out.println(\"controller (map/sectionType) reached\");\n\n\t\t// add any objects that need to be returned to the success list\n\t\tString response = \"\";\n\t\tList<Object> success = new ArrayList<Object>();\n\t\t\n\t\t\n\t\tsuccess.add(mapService.getSectionTypes());\n\t\tresponse = JsonResponseCreator.getJSONResponse(JsonResponseCreator.ResponseKey.SUCCESS, success);\n\n\t\treturn new ResponseEntity<String>(response, HttpStatus.OK);\n\t}",
"@Test()\n public void testGetExpensesByTypeAll() {\n\tString type = \"all types\";\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByType(type);\n\tassertEquals(4, expensesForDisplay.size(), 0);\n }",
"public List<IJobTemplate> getJobTemplates();",
"@Override\r\n\tpublic List<IncomingJobResponse> getJobList() {\n\t\tList<IncomingJobs> js = (List<IncomingJobs>)incomingRepository.fetchincomingJobs();\r\n\t\tList<IncomingJobResponse> joblist = new ArrayList<IncomingJobResponse>();\r\n\t\tfor(IncomingJobs job :js){\r\n\t\t\tIncomingJobResponse jobs = new IncomingJobResponse();\r\n\t\t\tSystem.out.println(\"ATA:\"+job.getAta()+\"ETA:\"+job.getEta());\r\n\t\t\tjobs.setJobid(job.getID());\r\n\t\t\t\r\n\t\t\tif(job.getEta()!=null){\r\n\t\t\tjobs.setEta(job.getEta().toString());\r\n\t\t\t}\r\n\t\t\tif(job.getAta()!=null){\r\n\t\t\tjobs.setAta(job.getAta().toString());\r\n\t\t\t}\r\n\t\t\tjobs.setBroker(job.getBroker());\r\n\t\t\tjobs.setClear(job.getClear());\r\n\t\t\tjobs.setConsignee(job.getConsignee());\r\n\t\t\tjobs.setDestination(job.getDestination());\r\n\t\t\tjobs.setFlight(job.getFlight());\r\n\t\t\tjobs.setHawb(job.getHawb());\r\n\t\t\tjobs.setHeld(job.getHeld());\r\n\t\t\tjobs.setMawb(job.getMawb());\r\n\t\t\tjobs.setMLID(job.getMLID());\r\n\t\t\tjobs.setNote(job.getNote());\r\n\t\t\tjobs.setOutturn(job.getOutturn());\r\n\t\t\tjobs.setPiece(job.getPiece());\r\n\t\t\tjobs.setWeight(job.getWeight());\r\n\t\t\tif(job.getInjectionDate()!=null){\r\n\t\t\t\tjobs.setInjectionDate(job.getInjectionDate().toString());\r\n\t\t\t\t}\r\n\t\t\tif(job.getClearanceDate()!=null){\r\n\t\t\t\tjobs.setClearanceDate(job.getClearanceDate().toString());\r\n\t\t\t\t}\r\n\t\t\tjobs.setDamage(job.getDamageNotes());\r\n\t\t\tjobs.setSurplus(job.getSurplusShortage());\r\n\t\t\tjoblist.add(jobs);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn joblist;\r\n\t}",
"@Test\n public void getPlaylists() {\n ResponseEntity<PlaylistsArrayRepresentation> responseEntity = rest.getForEntity(BASE_URL, PlaylistsArrayRepresentation.class, Collections.EMPTY_MAP);\n assertEquals(\"Asserting status code\", HttpStatus.OK, responseEntity.getStatusCode());\n assertEquals(\"Asserting array size\", playlists.size(), responseEntity.getBody().getPlaylists().size());\n }",
"@Test\n void getAllSuccess() {\n List<UserRoles> roles = genericDAO.getAll();\n assertEquals(3, roles.size());\n }",
"@Test\r\n public void testBuscaArticulos() throws Exception {\r\n System.out.println(\"BuscaArticulos\");\r\n ReportesController instance = new ReportesController();\r\n ArrayList<Articulo> expResult = null;\r\n ArrayList<Articulo> result = instance.BuscaArticulos();\r\n assertNotNull(result);\r\n \r\n }",
"@GetMapping(\"/at-job-applications\")\n @Timed\n public ResponseEntity<List<AtJobApplicationsDTO>> getAllAtJobApplications(Pageable pageable) {\n log.debug(\"REST request to get a page of AtJobApplications\");\n Page<AtJobApplications> page = atJobApplicationsRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/at-job-applications\");\n return new ResponseEntity<>(atJobApplicationsMapper.toDto(page.getContent()), headers, HttpStatus.OK);\n }",
"@Test\n void shouldReturnAllPersonsValidatingJsonResponse() throws Exception {\n when(personDao.findAll()).thenReturn(Arrays.asList(testPersons()));\n\n mockMvc.perform(get(\"/api/person\")).andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.items[0].firstName\", is(\"Jan\")))\n .andExpect(jsonPath(\"$.items[0].lastName\", is(\"Janssen\")))\n .andExpect(jsonPath(\"$.items[1].firstName\", is(\"Pieter\")))\n .andExpect(jsonPath(\"$.items[1].lastName\", is(\"Pietersen\")))\n .andExpect(jsonPath(\"$.items[2].firstName\", is(\"Erik\")))\n .andExpect(jsonPath(\"$.items[2].lastName\", is(\"Eriksen\")))\n ;\n }",
"@Test\n public void testFifthSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"skill\")\n .param(\"searchTerm\", \"ruby\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][2]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][3]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][4]\").doesNotExist());\n }",
"@Test\n public void testConsultarEjemplares() {\n System.out.println(\"ConsultarEjemplares\");\n BibliotecarioController instance = new BibliotecarioController();\n List<Ejemplar> expResult = new EjemplaresList().getEjemplares();\n List<Ejemplar> result = instance.ConsultarEjemplares();\n assertEquals(expResult, result);\n\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();",
"@Test\n public void testGetLoadWindows() {\n\tLoadCategoriesForm instance = new LoadCategoriesForm();\n\tList<LoadWindow> expResult = new ArrayList();\n\tinstance.setLoadWindows(expResult);\n\tList<LoadWindow> result = instance.getLoadWindows();\n\tassertEquals(expResult, result);\n }",
"@Test\n void testGetAllUsers() {\n List<User> users = userData.crud.getAll();\n int currentSize = users.size();\n assertEquals(currentSize, users.size());\n logger.info(\"Got all users\");\n }",
"@Test\n void testToGetAllHeroes() throws Exception {\n initHero();\n mockMvc.perform(MockMvcRequestBuilders.get(\"/api/hero\"))\n .andExpect(status().isOk())\n .andDo(print())\n .andExpect(MockMvcResultMatchers.jsonPath(\"$.*\", hasSize(1)));\n\n }",
"@Nonnull\n List<AbstractProject<?,?>> getAllJobs();",
"@Test\n public void testGetAllPageIdsOfMetsDocument() throws Exception {\n System.out.println(\"getAllPageIdsOfMetsDocument\");\n String resourceId = \"id_0017\";\n String items[] = {\"PAGE-0001\", \"PAGE-0002\"};\n\n this.mockMvc.perform(get(\"/api/v1/metastore/mets/\" + resourceId + \"/pageid\"))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(MockMvcResultMatchers.jsonPath(\"$\", Matchers.hasSize(2)))\n .andExpect(MockMvcResultMatchers.jsonPath(\"$.[*]\", Matchers.hasItems(items)))\n .andReturn();\n }",
"@RequestMapping(value = \"/list/\", method = RequestMethod.GET, produces = {\"application/hal+json\"})\n\tpublic List<FavouriteJobs> getAllFavJobs(){\n\t\tList<FavouriteJobs> favJobsList = null;\n\t\ttry {\n\t\t\tfavJobsList = favJobService.getAllFavJobs();\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception Handle\n\t\t}\n\t\t\n\t\treturn favJobsList;\n\t}",
"@Test\n public void testGetClassAndCourseForStudents() {\n System.out.println(\"getClassAndCourseForStudents\");\n\n given()\n .contentType(\"application/json\")\n .when()\n .get(\"/generel/student/class/\" + s1.getName()).then()\n .statusCode(200)\n .assertThat()\n .body(\"courseName\", hasSize(2), \"courseName\", hasItems(\"Programming\", \"System Development\"), \"teachers\", hasSize(2));\n\n }",
"java.util.List<com.google.cloud.talent.v4.Job> \n getJobsList();",
"@Test\n void givenUsers_whenGetUsers_thenReturnJsonArray() throws Exception {\n // given\n User user = new User();\n user.setPassword(\"Firstname Lastname\");\n user.setUsername(\"firstname@lastname\");\n user.setStatus(UserStatus.OFFLINE);\n\n List<User> allUsers = Collections.singletonList(user);\n\n // this mocks the UserService -> we define above what the userService should return when getUsers() is called\n given(loginService.getUsers()).willReturn(allUsers);\n\n // when\n MockHttpServletRequestBuilder getRequest = get(\"/users\").contentType(MediaType.APPLICATION_JSON);\n\n // then\n mockMvc.perform(getRequest).andExpect(status().isOk())\n .andExpect(jsonPath(\"$\", hasSize(1)))\n .andExpect(jsonPath(\"$[0].username\", is(user.getUsername())))\n .andExpect(jsonPath(\"$[0].status\", is(user.getStatus().toString())));\n }",
"@Test\r\n\tpublic void findAllMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}",
"@Test\n public void listAll_200() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n List<Workflow> wfList = new ArrayList<>();\n wfList.add(addMOToDb(1));\n wfList.add(addMOToDb(2));\n wfList.add(addMOToDb(3));\n\n // PREPARE THE TEST\n // Fill in the workflow db\n\n // DO THE TEST\n Response response = callAPI(VERB.GET, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(wfList.size(), readWorkflowList.size());\n for (int i = 0; i < wfList.size(); i++) {\n assertEquals(wfList.get(i).getId(), readWorkflowList.get(i).getId());\n assertEquals(wfList.get(i).getName(), readWorkflowList.get(i).getName());\n assertEquals(wfList.get(i).getDescription(), readWorkflowList.get(i).getDescription());\n }\n\n\n }",
"@Test\n public void testGetAll() {\n List<Allocation> cc = allocationCollection.getAll();\n assertNotNull(cc);\n assertFalse(cc.isEmpty());\n }",
"public java.util.List<cb.Careerbuilder.Job> getJobsList() {\n return jobs_;\n }",
"@GetMapping(\"/_search/type-tests\")\n @Timed\n public ResponseEntity<List<TypeTest>> searchTypeTests(@RequestParam String query, Pageable pageable) {\n log.debug(\"REST request to search for a page of TypeTests for query {}\", query);\n Page<TypeTest> page = typeTestService.search(query, pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/type-tests\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@Test\n public void testConsultarLibros() {\n System.out.println(\"ConsultarLibros\");\n BibliotecarioController instance = new BibliotecarioController();\n\n List<Libro> expResult = new LibrosList().getLibros();\n \n List<Libro> result = instance.ConsultarLibros();\n assertEquals(expResult, result);\n\n }",
"@Test\r\n\tpublic final void testGetAllRooms() {\n\t\tList<Room> actualList = roomServices.getAllRooms();\r\n\t\t// get all data in JUnit test\r\n\r\n\t\tList<Room> expectedList = new ArrayList<Room>();\r\n\t\texpectedList.addAll(params());\r\n\t\t\r\n\t\tSystem.out.println(\"expectedList\");\r\n\t\tSystem.out.println(expectedList);\r\n\t\tSystem.out.println(\"actualList\");\r\n\t\tSystem.out.println(actualList);\r\n\t\t\r\n\t\t// see if JUnit test value is in room list\r\n\t\tassertTrue(actualList.contains(expected));\r\n\t}",
"@Test\n public void getAllContributorTypesReturnsAllExistingTypesWithNames() {\n List<ContributorType> results = contributorDao.getAllContributorTypes();\n\n // THEN: all expected types are returned\n assertEquals(7, results.size());\n // AND: all contain a name\n results.forEach(result -> assertNotNull(result.getName()));\n }",
"@Test\n public void testStartJob() {\n // Set a specific date for the last change\n DateTime originalDate = new DateTime(2014, 12, 23, 0, 0, 0);\n List<MonitorJob> listMonitorJobs = new ArrayList<>();\n String url = \"http://www.google.com\";\n MonitorJob monitorJob = new MonitorJob();\n monitorJob.setUrl(url);\n monitorJob.setElement(\"body\");\n monitorJob.setLastChange(originalDate.toDate());\n monitorJob.setBody(\"empty body\");\n\n listMonitorJobs.add(monitorJob);\n\n when(monitorJobRepositoryMock.getAllMonitorJobs())\n .thenReturn(listMonitorJobs);\n\n monitorJobExecutor.startCheckJobs();\n\n // Assert that the specific date has been changed because content of page changed\n Assert.assertNotEquals(monitorJob.getLastChange(), originalDate.toDate());\n\n }",
"@Test\n public void testGetAllPharmacies() throws Exception {\n System.out.println(\"getAllPharmacies\");\n\n ManagePharmaciesController instance = new ManagePharmaciesController();\n LinkedList<PharmacyDTO> expResult= new LinkedList<>();\n LinkedList<PharmacyDTO> result = instance.getAllPharmacies();\n expResult.add(getPharmacyDTOTest(\"a\"));\n expResult.add(getPharmacyDTOTest(\"b\"));\n expResult.add(getPharmacyDTOTest(\"c\"));\n\n LinkedList<Pharmacy> resultDB = new LinkedList<>();\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"a\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"b\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"c\")));\n PharmacyDB db = Mockito.mock(PharmacyDB.class);\n PharmaDeliveriesApp.getInstance().getPharmacyService().setPharmacyDB(db);\n when(db.getAllPharmacies()).thenReturn(resultDB);\n result = instance.getAllPharmacies();\n Assertions.assertEquals(result.size(), expResult.size());\n Assertions.assertEquals(result.get(0).getName(), expResult.get(0).getName());\n Assertions.assertEquals(result.get(1).getName(), expResult.get(1).getName());\n Assertions.assertEquals(result.get(2).getName(), expResult.get(2).getName());\n \n// int i = 0;\n// for(PharmacyDTO p : result){\n// Assertions.assertEquals(p.getName(), expResult.get(i).getName());\n// i++;\n// }\n \n when(db.getAllPharmacies()).thenReturn(null);\n Assertions.assertNull(instance.getAllPharmacies());\n }",
"public JobType getType() { return type; }",
"@Test\n public void testGetListaUsuario() {\n System.out.println(\"getListaUsuario\");\n usuarioController.crear(usuario1);\n List<Usuario> expResult = new ArrayList<>();\n expResult.add(usuario1);\n List<Usuario> result = usuarioController.getListaUsuario();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n void getAllMoviesTest() throws Exception {\n\n //Set Up\n List<Movie> movies = new ArrayList<>();\n Movie movie = new Movie();\n movies.add(movie);\n\n //Exercise\n when(movieService.getAllMovies()).thenReturn(movies);\n mockMvc.perform(get(baseUrl).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\", hasSize(movies.size())));\n\n }",
"@Test\n void getCartCategories() throws Exception {\n CartCategoryItem cartCategoryItem = generateCartCategoryItem();\n\n when(categoryService.getAllCartCategoryItems()).thenReturn(Arrays.asList(cartCategoryItem));\n\n MvcResult mvcResult = mockMvc.perform(get(PATH + \"/get/carts\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(status().is2xxSuccessful())\n .andReturn();\n\n CartCategoryItemResponse response = objectMapper.readValue(mvcResult.getResponse().getContentAsString(), CartCategoryItemResponse.class);\n\n assertNotNull(response);\n assertFalse(response.getCartCategoryItems().isEmpty());\n assertNull(response.getErrorMessage());\n verify(categoryService, times(1)).getAllCartCategoryItems();\n }",
"@Test\n public void test_get_all_success() throws Exception {\n List<UserDto> users = Arrays.asList(new UserDto(1L, \"Daenerys\", \"Targaryen\", \"motherofdragons@got.com\"),\n new UserDto(2L, \"John\", \"Snow\", \"youknownothing@got.com\"));\n\n when(userService.getAllUsers()).thenReturn(users);\n\n mockMvc.perform(get(\"/users\")).andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$\", hasSize(2))).andExpect(jsonPath(\"$[0].userId\", is(1)))\n .andExpect(jsonPath(\"$[0].userFirstName\", is(\"Daenerys\"))).andExpect(jsonPath(\"$[1].userId\", is(2)))\n .andExpect(jsonPath(\"$[1].userLastName\", is(\"Snow\")));\n\n verify(userService, times(1)).getAllUsers();\n verifyNoMoreInteractions(userService);\n }",
"@Test\n\tpublic void testGetAllUsers() throws Exception {\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/users\")\n\t\t\t\t.accept(APPLICATION_JSON)).andExpect(status().isOk())\n\t\t.andExpect(content().contentType(contentType));\n\t\t// Verifies If userService.getAllUsers() is invoked at least once\n\t\tMockito.verify(userService).getAllUsers();\n\t}",
"@RequestMapping(value = \"/list/{pjobId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList1(@PathVariable(\"pjobId\") Integer pjobId) {\n ProfessionJob professionJob = professionJobService.getProfessionJob(pjobId).get();\n List<JobRequireProfessionJob> list = jobService.findAllByProfessionJob(professionJob);\n List<Job> jobsAfterFilterByProfession = new ArrayList<>();\n for(JobRequireProfessionJob jrpj : list) {\n jobsAfterFilterByProfession.add(jrpj.getJob());\n }\n return jobsAfterFilterByProfession;\n }",
"@Test\n\tpublic void test_get_all_success() {\n\t\tResponseEntity<User[]> response = template.getForEntity(REST_SERVICE_URI + ACCESS_TOKEN + token, User[].class);\n\t\tassertThat(response.getStatusCode(), is(HttpStatus.OK));\n\t\tvalidateCORSHttpHeaders(response.getHeaders());\n\t}",
"@Test\r\n\tpublic void test_getAllEmployees() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t// .pathParam(\"page\", \"0\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(0))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}",
"@Test\n public void testFirstSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"location\")\n .param(\"searchTerm\", \"new york\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][2]\").doesNotExist());\n }",
"@Test\n public void reqTypeTest() {\n // TODO: test reqType\n }"
] | [
"0.65257764",
"0.6367779",
"0.62891746",
"0.6220112",
"0.6136727",
"0.5954455",
"0.59536326",
"0.5851289",
"0.5826291",
"0.5655814",
"0.56402844",
"0.5625087",
"0.5620035",
"0.56168246",
"0.5524689",
"0.5503272",
"0.55008143",
"0.54738957",
"0.54362977",
"0.54163086",
"0.541233",
"0.5411793",
"0.54056954",
"0.5398545",
"0.5380408",
"0.53619325",
"0.5347344",
"0.5320663",
"0.5297506",
"0.5276376",
"0.5265019",
"0.52567524",
"0.5243092",
"0.5234748",
"0.5218384",
"0.5215001",
"0.5214961",
"0.5212749",
"0.52078086",
"0.518337",
"0.51805186",
"0.51794744",
"0.51770395",
"0.51764613",
"0.5170013",
"0.5167919",
"0.5141389",
"0.51243037",
"0.5119258",
"0.51160985",
"0.5114223",
"0.5113939",
"0.5089753",
"0.50896955",
"0.50883245",
"0.50851023",
"0.5060692",
"0.50529975",
"0.50517464",
"0.50514364",
"0.5046771",
"0.5038862",
"0.5035674",
"0.50354344",
"0.5034198",
"0.50264484",
"0.5022684",
"0.5017263",
"0.50028235",
"0.5000733",
"0.4999434",
"0.49974066",
"0.49970427",
"0.49816433",
"0.49740618",
"0.49719155",
"0.4965957",
"0.496334",
"0.49584353",
"0.4957864",
"0.49540472",
"0.4947424",
"0.49447948",
"0.49444962",
"0.49404982",
"0.49401772",
"0.4939995",
"0.493591",
"0.4935643",
"0.4931462",
"0.49171594",
"0.4917081",
"0.49168295",
"0.4912028",
"0.48970953",
"0.48953542",
"0.48935375",
"0.489305",
"0.48886073",
"0.48819062"
] | 0.8000125 | 0 |
Test Success of getJobTypesId method, of class JobsController. | @Test
public void testGetJobTypesById_request_OK()
{
JobTypes jobType1 = new JobTypes(1, "test1");
Optional<JobTypes> jobType = Optional.of(jobType1);
doReturn(jobType).when(jobTypesService).getJobType(anyInt());
try {
mockMvc.perform(MockMvcRequestBuilders.get("/job_types/{id}", "1")
.content(asJsonString(jobType))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testGetJobTypesById_request_Not_Found()\n { \n Optional<JobTypes> emptyJobType = Optional.empty();\n \n doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(emptyJobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isNotFound())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testGetAllJobTypes_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n JobTypes jobType2 = new JobTypes(2, \"test2\");\n \n JobTypes[] jobList = {jobType1, jobType2};\n List<JobTypes> jobTypesList = new ArrayList<JobTypes>();\n jobTypesList.add(jobType1);\n jobTypesList.add(jobType1);\n Iterable<JobTypes> allJobTypesList = jobTypesList;\n \n doReturn(allJobTypesList).when(jobTypesService).getAllJobTypes();\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/all\")\n .content(asJsonString(allJobTypesList))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testUpdateJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(successMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testAddNewJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void idTypeTest() {\n // TODO: test idType\n }",
"@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(failMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"2\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"@Test\n public void testGetCategoriesIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getCategoriesIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Category\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@RequestMapping(value = \"/getJobsList\", method = RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic List<GetJobsResponse> getJobsList(@RequestParam String jobType, \n\t\t\t@RequestParam String jobTitle,@RequestParam String emailId) {\n \tList<GetJobsResponse> getJobsResponseList = null;\n\t\ttry {\n\t\t\t\n\t\t\tgetJobsResponseList = this.econnectService.getJobsList(jobType,jobTitle,emailId);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getJobsResponseList;\n\t}",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"@Test\n public void testGetProductsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getProductsIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Product\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Test\r\n\tpublic void testGetId() {\r\n\t\tassertEquals(1, breaku1.getId());\r\n\t\tassertEquals(2, externu1.getId());\r\n\t\tassertEquals(3, meetingu1.getId());\r\n\t\tassertEquals(4, teachu1.getId());\r\n\t}",
"@Test\r\n public void testSetTypeId() {\r\n System.out.println(\"setTypeId\");\r\n int tid = 0;\r\n \r\n instance.setTypeId(tid);\r\n assertEquals(tid, instance.getTypeId());\r\n \r\n }",
"@Test\n\tpublic void getSurveyIdTest() throws Exception {\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/getsurveybyid/962\")\n\t\t .contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON))\n\t\t\t\t.andExpect(status().isFound());\n\t}",
"@Test\n public void testGetShoppinglistsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getShoppinglistsIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ShoppingList\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"public int getJobType() {\n return jobType;\n }",
"@Test\n\tpublic void getIdTest() {\n\t}",
"int getTypeIdValue();",
"@Test\r\n public void testGetTypeId() {\r\n System.out.println(\"getTypeId\");\r\n \r\n int expResult = 0;\r\n int result = instance.getTypeId();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }",
"@Test\n public void testGetListOfAircraftTypes() {\n System.out.println(\"getListOfAircraftTypes\");\n AircraftModel acModel = new AircraftModel();\n acModel.setId(\"PASSENGER\");\n Simulation sim = new Simulation();\n sim.getFlightPlan().getAircraft().setAircraftModel(acModel);\n p.getSimulationsList().getSimulationsList().add(sim);\n this.instance = new ExportCSVController(p);\n ExportCSVController instance = this.instance;\n \n List<String> expResult = new LinkedList<>();\n expResult.add(acModel.getId());\n List<String> result = instance.getListOfAircraftTypes();\n assertEquals(expResult, result);\n \n }",
"public int getTypeId();",
"public int getTypeId();",
"@Test\n public void testGetCustomersIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getCustomersIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Customer\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Test\n public void testGetCartsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getCartsIdAction(\"{id}\", \"{customerId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Cart\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@RequestMapping(value=\"/getJobStatus\")\n\tpublic ResponseEntity<List<JobResponse>> getJobStatus(@RequestParam String jobId) {\n\n\t\t\n\t\tif(jobId == null || jobId.isEmpty()) {\n\t\t\treturn ResponseEntity.status(HttpStatus.BAD_REQUEST).body(null);\n\t\t}\n\t\t\n\t\tfinal Long jobNumber = Long.valueOf(jobId);\n\t\tlogger.debug(\"Job id recieved from client - \" + jobNumber);\n\t\t\n\t\tfinal List<JobResponse> responseList = new ArrayList<JobResponse>();\n\t\t\n\t\tif (jobDirectory.containsKey(jobNumber)) {\n\t\t\tlogger.debug(\"found the job in the job directory. fetching the responses.\");\n\t\t\tJob newJob = jobDirectory.get(jobNumber);\n\t\t\tnewJob.getJobList().stream().forEach(job -> {\n\t\t\t\tJobResponse jobResponse = new JobResponse();\n\t\t\t\tjobResponse.setUrl(((SubTask) job).getUrl());\n\t\t\t\tif (((SubTask) job).getCurrentStatus().equals(JobStatus.COMPLETE)) {\n\t\t\t\t\tjobResponse.setResult(((SubTask) job).getResult().toString());\n\t\t\t\t} else {\n\t\t\t\t\tjobResponse.setResult(((SubTask) job).getCurrentStatus().getValue());\n\t\t\t\t}\n\t\t\t\tresponseList.add(jobResponse);\n\t\t });\n\t\t\t\n\t\t\tlogger.debug(\"Finished fetching responses.\");\n\t\t\tif(logger.isDebugEnabled()) {\n\t\t\t\tresponseList.stream().forEach( x -> {\n\t\t\t\t\tlogger.debug(\"url -\" + x.getUrl() + \" result- \" + x.getResult());\n\t\t\t\t});\n\t\t\t}\n\t\t \t\n\t\t return ResponseEntity.status(HttpStatus.OK).body(responseList);\n\n\t\t} else {\n logger.debug(\"Could not find jobid \" + jobId + \" in job directory.\");\n return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(null);\n\t\t}\n\n\t\t\n\t}",
"@Test\n public void test05FindContentTypes() throws Exception\n {\n List<Integer> cids = new ArrayList<Integer>();\n \n cids.addAll(ms_cms.findContentIdsByType(311));\n cids.addAll(ms_cms.findContentIdsByType(305));\n cids.addAll(ms_cms.findContentIdsByType(313));\n \n Set<Long> contenttypeids = ms_cms.findContentTypesForIds(cids);\n assertNotNull(contenttypeids);\n assertTrue(contenttypeids.size() == 3);\n assertTrue(contenttypeids.contains(311L));\n assertTrue(contenttypeids.contains(305L));\n assertTrue(contenttypeids.contains(313L));\n \n // Test large collection of content ids\n cids.clear();\n \n for(int i = 0; i < ALL_FF_TYPES.length; i++)\n {\n cids.addAll(ms_cms.findContentIdsByType(ALL_FF_TYPES[i])); \n }\n \n contenttypeids = ms_cms.findContentTypesForIds(cids);\n assertNotNull(contenttypeids);\n assertTrue(contenttypeids.size() == ALL_FF_TYPES.length);\n for(int i = 0; i < ALL_FF_TYPES.length; i++)\n {\n assertTrue(contenttypeids.contains(new Long(ALL_FF_TYPES[i])));\n }\n }",
"@Test\n public void testGetAllPageIdsOfMetsDocument() throws Exception {\n System.out.println(\"getAllPageIdsOfMetsDocument\");\n String resourceId = \"id_0017\";\n String items[] = {\"PAGE-0001\", \"PAGE-0002\"};\n\n this.mockMvc.perform(get(\"/api/v1/metastore/mets/\" + resourceId + \"/pageid\"))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(MockMvcResultMatchers.jsonPath(\"$\", Matchers.hasSize(2)))\n .andExpect(MockMvcResultMatchers.jsonPath(\"$.[*]\", Matchers.hasItems(items)))\n .andReturn();\n }",
"@Test\n public void testGetCountByIdResultType() {\n // TODO: test GetCountByIdResultType\n }",
"public int getHC_EmployeeJob_ID();",
"@Test\n public void shouldReturnOkStatus() throws Exception {\n mockMvc.perform(get(API_MOOD_TYPE, \"angry\"))\n .andExpect(status().isOk());\n\n mockMvc.perform(get(API_MOOD_TYPE, \"cherry\"))\n .andExpect(status().isOk());\n }",
"@Test\n public void testGetShoppinglistsIdEntriesEntryIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getShoppinglistsIdEntriesEntryIdAction(\"{id}\", \"{entryId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ShoppingListEntry\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"public List<String> retrieveJobId(String delegId, int[] jobStatusType, String userId) throws DatabaseException, IllegalArgumentException;",
"@Test\n\tpublic void testGetID() {\n\t}",
"ResponseEntity<List<Type>> findTaskTypes();",
"public JobType getType() { return type; }",
"@Test(priority=2)\r\n\t\tpublic void getStudentIDSerialization() {\r\n\t\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t.when()\r\n\t\t\t\t.get(\"http://localhost:8085/student/102\")\r\n\t\t\t.then()\r\n\t\t\t\t.statusCode(200)\r\n\t\t\t\t.assertThat()\r\n\t\t\t\t.body(\"id\",equalTo(\"102\"));\r\n\t\t\t\t\r\n\t\t}",
"public List<String> retrieveJobId(int[] jobStatusType, String queueName, String batchSystem, String userId) throws DatabaseException, IllegalArgumentException;",
"public void test_Initialize_Failure5_activeContestStatusId_notLong()\r\n throws Exception {\r\n context.addEntry(\"unitName\", \"contestManager\");\r\n context.addEntry(\"activeContestStatusId\", new Object());\r\n context.addEntry(\"defaultDocumentPathId\", new Long(1));\r\n context.addEntry(\"documentContentManagerClassName\",\r\n \"com.topcoder.service.studio.contest.documentcontentmanagers.SocketDocumentContentManager\");\r\n context.addEntry(\"documentContentManagerAttributeKeys\",\r\n \"serverAddress,serverPort\");\r\n context.addEntry(\"serverAddress\", \"127.0.0.1\");\r\n context.addEntry(\"serverPort\", new Integer(40000));\r\n\r\n Method method = beanUnderTest.getClass()\r\n .getDeclaredMethod(\"initialize\",\r\n new Class[0]);\r\n\r\n method.setAccessible(true);\r\n\r\n try {\r\n method.invoke(beanUnderTest, new Object[0]);\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (InvocationTargetException e) {\r\n // success\r\n }\r\n }",
"@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n \r\n int expResult = 0;\r\n int result = instance.getId();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }",
"@Test\n\tpublic void findTypeList() {\n\t}",
"@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}",
"@GetMapping(\"/type-tests/{id}\")\n @Timed\n public ResponseEntity<TypeTest> getTypeTest(@PathVariable Long id) {\n log.debug(\"REST request to get TypeTest : {}\", id);\n TypeTest typeTest = typeTestService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(typeTest));\n }",
"public Integer getTickettypesId() {\r\n return tickettypesId;\r\n }",
"@Test\n public void testPutShoppinglistsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.putShoppinglistsIdAction(\"{id}\", \"{name}\", \"{description}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ShoppingList\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"String getTestFieldTypeId();",
"@NotNull\n @JsonProperty(\"typeId\")\n public ReferenceTypeId getTypeId();",
"@Test\n public void getID() {\n\n }",
"private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }",
"@GetMapping(\"/ci-types/{ci-type-id}\")\n @ResponseBody\n public JsonResponse getCiType(@PathVariable(value = \"ci-type-id\") int ciTypeId, @RequestParam(name = \"with-attributes\", required = false) String withAttributes) {\n //return okayWithData(cmdbServiceV2Stub.getCiType(ciTypeId, isTrue(withAttributes)));\n return error(\"This API will be discarded as never used.\");\n }",
"@Test\n public void reqTypeTest() {\n // TODO: test reqType\n }",
"@Test\n public void testGetId() {\n System.out.println(\"getId\");\n DTO_Ride instance = dtoRide;\n long expResult = 1L;\n long result = instance.getId();\n assertEquals(expResult, result);\n }",
"@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n Integrante instance = new Integrante();\r\n Long expResult = null;\r\n Long result = instance.getId();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test\n public void subjectIdTest() {\n // TODO: test subjectId\n }",
"@Test\n public void testGetId() {\n System.out.println(\"Animal.getId\");\n assertEquals(252, animal1.getId());\n assertEquals(165, animal2.getId());\n }",
"private List<NameIdType> loadInfo(UUID typeId) {\r\n final EntityManager entMgr = trans.getEntityManager();\r\n\r\n if ( ! maybeState.isPresent()) {\r\n final String sQuery = \"SELECT NEW littleware.asset.db.jpa.NameIdType( x.name, x.objectId, x.typeId ) \" +\r\n \"FROM Asset x WHERE x.fromId=:fromId AND x.typeId=:typeId\";\r\n final Query query = entMgr.createQuery(sQuery).\r\n setParameter(\"fromId\", UUIDFactory.makeCleanString(uFrom)).\r\n setParameter(\"typeId\", UUIDFactory.makeCleanString(typeId));\r\n return query.getResultList();\r\n } else {\r\n final String sQuery = \"SELECT NEW littleware.asset.db.jpa.NameIdType( x.name, x.objectId, x.typeId ) \" +\r\n \"FROM Asset x WHERE x.fromId=:fromId AND x.typeId=:typeId AND x.state=:state\";\r\n final Query query = entMgr.createQuery(sQuery).\r\n setParameter(\"fromId\", UUIDFactory.makeCleanString(uFrom)).\r\n setParameter(\"typeId\", UUIDFactory.makeCleanString(typeId)).\r\n setParameter(\"state\", maybeState.get().intValue());\r\n return query.getResultList();\r\n }\r\n }",
"public int getTypeId() {\n return typeId_;\n }",
"public void testGetInvoiceStatusByIdAccuracy() throws Exception {\n InvoiceStatus invoiceStatus = invoiceSessionBean.getInvoiceStatus(1);\n\n assertEquals(\"The id of the returned value is not as expected\", 1, invoiceStatus.getId());\n }",
"@Test\n public void testGetAllFilesOfMetsDocument() throws Exception {\n System.out.println(\"getAllFilesOfMetsDocument\");\n String resourceId = \"id_0002\";\n\n this.mockMvc.perform(get(\"/api/v1/metastore/mets/\" + resourceId + \"/files\"))//\"/api/v1/metastore/mets/\" + resourceId + \"/files\"))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(MockMvcResultMatchers.jsonPath(\"$\", Matchers.hasSize(12)))\n .andExpect(MockMvcResultMatchers.jsonPath(\"$.[*].resourceId\", Matchers.hasItem(resourceId)))\n .andReturn();\n }",
"@GET(\"replays/upload/status/{id}\")\n Call<DataResponse<JobData>> getJobStatus(@Path(\"id\") String jobId);",
"@Test\r\n public void testGetId_banque() {\r\n System.out.println(\"getId_banque\");\r\n chequeBeans instance = new chequeBeans();\r\n int expResult = 0;\r\n int result = instance.getId_banque();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test\n\tpublic void test_get_product_by_id_return_200() throws Exception {\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"1\");\n\t\tProductDTO expected = DummyData.getProductDto1();\n\t\tMockHttpServletRequestBuilder mockRequest = MockMvcRequestBuilders.request(HttpMethod.GET, \"/1\")\n\t\t\t\t.principal(mockPrincipal)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON);\n\n\t\t// Setup when\n\t\twhen(productService.findProductById(1l)).thenReturn(expected);\n\t\t\n\t\t// Execute the POST request\n\t\tmockMvc.perform(mockRequest)\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t// Validate the response code and content type\n\t\t\t\t.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t// Validate the returned fields\n\t\t\t\t.andExpect(jsonPath(\"$.brand\", Is.is(expected.getBrand())))\n\t\t\t\t.andExpect(jsonPath(\"$.color\", Is.is(expected.getColor())))\n\t\t\t\t.andExpect(jsonPath(\"$.name\", Is.is(expected.getName()))).andReturn();\n\n\t\t// verify\n\t\tverify(productService).findProductById(ArgumentMatchers.any());\n\t}",
"@Test\n public void testGetAllFilesOfMetsDocumentWithPageId() throws Exception {\n System.out.println(\"getAllFilesOfMetsDocument\");\n String resourceId = \"id_0015\";\n String pageId = \"PAGE-0001\";\n\n this.mockMvc.perform(get(\"/api/v1/metastore/mets/\" + resourceId + \"/files\")\n .param(\"pageId\", pageId))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(MockMvcResultMatchers.jsonPath(\"$\", Matchers.hasSize(4)))\n .andExpect(MockMvcResultMatchers.jsonPath(\"$.[*].resourceId\", Matchers.hasItem(resourceId)))\n .andReturn();\n }",
"private void setTypeId(int value) {\n \n typeId_ = value;\n }",
"@RequestMapping(value = \"todoList/jobInfo/{id}\",method = RequestMethod.GET)\n public String doActions(@PathVariable Integer id, ModelMap modelMap) {\n\t\tSystem.out.println(\"aaa \"+ jDao.getJob(id).get(0).getJobId());\n\t\tmodelMap.put(\"jobForm\", jDao.getJob(id).get(0));\n\t\treturn \"todoList/jobInfo\";\t\n\t\t\n }",
"@Test\n public void testGetId() {\n System.out.println(\"getId\");\n Reserva instance = new Reserva();\n Long expResult = null;\n Long result = instance.getId();\n assertEquals(expResult, result);\n \n }",
"@Test\n void technicalStatusPerBatchTableTest() throws Exception {\n\n jCtrl.getTrainer2(); // initialize data\n\n // call technicalStatusPerBatchTable() and get returned list\n List<TechnicalStatusPerBatch> result = tspbServ.technicalStatusPerBatchTable(1);\n\n // check if returned list contains TechnicalStatusPerBatch objects\n assertTrue(result.get(0) instanceof TechnicalStatusPerBatch);\n }",
"cb.Careerbuilder.Job getJobs(int index);",
"@Test\n public void given_devEnvironmentAndListStudent_when_callEndpointFindAll_then_returnListStudentAndStatus200() throws Exception {\n\n when(studentRepo.findAll()).thenReturn(STUDENT_LIST);\n\n RequestBuilder request = MockMvcRequestBuilders\n .get(\"/students\")\n .accept(MediaType.APPLICATION_JSON);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andExpect(content().json(gson.toJson(STUDENT_LIST),true))\n .andReturn();\n }",
"private void defaultListWrkStatusShouldBeFound(String filter) throws Exception {\n restListWrkStatusMockMvc.perform(get(\"/api/list-wrk-statuses?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(listWrkStatus.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].code\").value(hasItem(DEFAULT_CODE)))\n .andExpect(jsonPath(\"$.[*].name\").value(hasItem(DEFAULT_NAME)))\n .andExpect(jsonPath(\"$.[*].fullName\").value(hasItem(DEFAULT_FULL_NAME)))\n .andExpect(jsonPath(\"$.[*].isCurrentFlag\").value(hasItem(DEFAULT_IS_CURRENT_FLAG)))\n .andExpect(jsonPath(\"$.[*].description\").value(hasItem(DEFAULT_DESCRIPTION)))\n .andExpect(jsonPath(\"$.[*].dateCreate\").value(hasItem(DEFAULT_DATE_CREATE.toString())))\n .andExpect(jsonPath(\"$.[*].dateEdit\").value(hasItem(DEFAULT_DATE_EDIT.toString())))\n .andExpect(jsonPath(\"$.[*].creator\").value(hasItem(DEFAULT_CREATOR)))\n .andExpect(jsonPath(\"$.[*].editor\").value(hasItem(DEFAULT_EDITOR)));\n\n // Check, that the count call also returns 1\n restListWrkStatusMockMvc.perform(get(\"/api/list-wrk-statuses/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"public List<String> retrieveJobIdByLease(int[] jobStatusType, String leaseId, String userId) throws DatabaseException, IllegalArgumentException;",
"@ResponseBody\r\n\t@RequestMapping(value = \"getJobsCount\", method = { RequestMethod.POST, RequestMethod.GET })\r\n\tpublic Response getJobsCount()\r\n\t{\r\n\t\treturn indexService.getJobsCount();\r\n\t}",
"@Test\n public void testGetShoppinglistsIdEntriesAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getShoppinglistsIdEntriesAction(\"{id}\", -1, -1);\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/PagedResponseShoppingListEntry\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Test\n public void getId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Attempt to retrieve the object with the given id\n try {\n mvc.perform(MockMvcRequestBuilders.get(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n )\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.name\", equalTo(role.getName())));\n } catch (Exception e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Clean up database for other tests\n remove(role.getUuid());\n }",
"@Test\n public void testSplitRoomReservationReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find all bookings spanning different rooms\n Job j = new SplitRoomReservationReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"public interface IJobListService {\n\n public JobListModel getJobListBySelect(JobListSelectRequestParam selectRequestParam);\n\n}",
"public Integer getTypeId() {\n return typeId;\n }",
"@Test\n public void testGetCourseList() {\n System.out.println(\"getCourseList\");\n\n given()\n .contentType(\"application/json\")\n .when()\n .get(\"/generel/courselist\").then()\n .statusCode(200)\n .assertThat()\n .body(\"description\", hasSize(2), \"courseName\", hasItems(\"Programming\", \"System Development\"));\n\n }",
"@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}",
"@Test\n public void idTest() {\n // TODO: test id\n }",
"@Test\n public void idTest() {\n // TODO: test id\n }",
"@PUT\n @Path(\"jobs/status\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response jobActiveByStatusBulk(String body) {\n try {\n JSONArray jobs = new JSONArray(body);\n JSONObject ob = new JSONObject();\n for (int i = 0; i < jobs.length(); i++) {\n String jobId = jobs.getString(i);\n JSONObject t = new JSONObject();\n LGJob lg = Utils.getJobManager().getJob(jobId);\n if (null == lg) {\n t.put(\"error\", \"unknown\");\n t.put(\"reason\", \"\");\n ob.put(jobId, t);\n } else {\n t.put(\"status\", lg.getStatusString(lg.getStatus()));\n t.put(\"reason\", lg.getReason());\n ob.put(jobId, t);\n }\n }\n return Response.status(200).entity(ob.toString(1)).build();\n }\n catch(Exception e) {\n e.printStackTrace();\n JSONObject ret = new JSONObject();\n ret.put(\"error\", e.getMessage());\n return Response.status(500).entity(ret.toString()).build();\n }\n }",
"@Test\n public void idMappingTest() {\n // TODO: test idMapping\n }",
"@Test\r\n\tpublic void findByIdMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}",
"@Test\n\tvoid testGetAllByType() {\n\t\tList<Plant> plant = service.getAllByType(\"Shurbs\");\n\t\tString type = plant.get(0).getType();\n\t\tassertEquals(\"Shurbs\", type);\n\t}",
"@Test\n public void testGetOwners() throws Exception {\n int ID_FIRST_RECORD = 1;\n this.mockMvc.perform(get(\"/owners/all\"))\n .andExpect(status().isOk())\n .andExpect(content()\n .contentType(MediaType.APPLICATION_JSON))\n // .andExpect(jsonPath(\"$\", hasSize(NRO_RECORD)))\n .andExpect(jsonPath(\"$[0].id\", is(ID_FIRST_RECORD)));\n }",
"public int getIdType() {\r\n return idType;\r\n }",
"@RequestMapping(value = \"/list/{pjobId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList1(@PathVariable(\"pjobId\") Integer pjobId) {\n ProfessionJob professionJob = professionJobService.getProfessionJob(pjobId).get();\n List<JobRequireProfessionJob> list = jobService.findAllByProfessionJob(professionJob);\n List<Job> jobsAfterFilterByProfession = new ArrayList<>();\n for(JobRequireProfessionJob jrpj : list) {\n jobsAfterFilterByProfession.add(jrpj.getJob());\n }\n return jobsAfterFilterByProfession;\n }",
"@Test\n public void testGetClassAndCourseForStudents() {\n System.out.println(\"getClassAndCourseForStudents\");\n\n given()\n .contentType(\"application/json\")\n .when()\n .get(\"/generel/student/class/\" + s1.getName()).then()\n .statusCode(200)\n .assertThat()\n .body(\"courseName\", hasSize(2), \"courseName\", hasItems(\"Programming\", \"System Development\"), \"teachers\", hasSize(2));\n\n }",
"@Test\n public void getAllItems_Returns200Status() throws Exception {\n mockMvc.perform(get(\"/api/v1/items\")).andExpect(status().isOk());\n }",
"@Test\n public void testGetPenggunas_Long() {\n System.out.println(\"getPenggunas\");\n Long id = null;\n DaftarPengguna instance = new DaftarPengguna();\n List expResult = null;\n List result = instance.getPenggunas(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n @OperateOnDeployment(\"server\")\n public void shouldGetResourceMatchingId() {\n given().header(\"Authorization\", \"Bearer access_token\").expect().statusCode(200).and().expect().body(\"name\",\n equalTo(\"Audiences\")).and().expect().body(\"sort\", equalTo(15)).when().get(getBaseTestUrl() + \"/1/category/get/json/1\");\n }",
"@Test\n public void recordTypeTest() {\n // TODO: test recordType\n }",
"@Test\n public void testGetClassListByTeacher() {\n System.out.println(\"getClassListByTeacher\");\n\n given()\n .contentType(\"application/json\")\n .when()\n .get(\"/generel/teacher/\" + t1.getName()).then()\n .statusCode(200)\n .assertThat()\n .body(\"courseName\", hasSize(1), \"courseName\", hasItems(\"Programming\"), \"semester\", hasItems(\"fall2018\"));\n\n }",
"@Test\n public void shouldReturnOKStatus() throws Exception{\n Mockito.when(itemService.getItemById(1)).thenReturn(new Item(1,\"Item1\",12,25));\n RequestBuilder requestBuilder= MockMvcRequestBuilders.get(\"/item?id=1\").accept(MediaType.APPLICATION_JSON);\n mockMvc.perform(requestBuilder).andExpect(status().isOk()).andExpect(content().json(\"{\" +\n \"id:1,name:Item1,price:12,quantity:25}\"));\n }",
"public TypeId getTypeId() {\r\n return typeId;\r\n }",
"int getJobsCount();",
"int getJobsCount();"
] | [
"0.67581457",
"0.6753162",
"0.6209252",
"0.61412024",
"0.6139761",
"0.584728",
"0.5827015",
"0.5826361",
"0.5821871",
"0.563594",
"0.55094355",
"0.54990953",
"0.546701",
"0.5462619",
"0.54343605",
"0.5386943",
"0.53817296",
"0.53618443",
"0.5353859",
"0.5337673",
"0.5249953",
"0.52407986",
"0.5192158",
"0.51847875",
"0.51847875",
"0.51673526",
"0.5049529",
"0.5029902",
"0.5011945",
"0.501193",
"0.5001698",
"0.49750355",
"0.49587032",
"0.4945759",
"0.49406895",
"0.48924398",
"0.48685315",
"0.48608992",
"0.48420328",
"0.48334378",
"0.48246193",
"0.48198166",
"0.4818679",
"0.48135275",
"0.48111606",
"0.48021686",
"0.4797483",
"0.47973174",
"0.4781825",
"0.47760013",
"0.47755083",
"0.47731182",
"0.47635177",
"0.47442603",
"0.4744171",
"0.47427592",
"0.47423962",
"0.47410068",
"0.47407836",
"0.47403586",
"0.4726281",
"0.47247496",
"0.47241232",
"0.4720029",
"0.4719002",
"0.47182828",
"0.4718039",
"0.47167137",
"0.47143766",
"0.47134468",
"0.4711197",
"0.47092173",
"0.4703643",
"0.46983528",
"0.46967438",
"0.469524",
"0.46931666",
"0.4685914",
"0.46779603",
"0.46773058",
"0.46724874",
"0.46546882",
"0.46546882",
"0.4650479",
"0.4647654",
"0.46457136",
"0.46444216",
"0.46434942",
"0.46385887",
"0.463639",
"0.4636103",
"0.46350348",
"0.46284196",
"0.46245685",
"0.4619653",
"0.46184522",
"0.46139",
"0.45916948",
"0.45820922",
"0.45820922"
] | 0.7194126 | 0 |
Test Failure of getJobTypesId method, of class JobsController. | @Test
public void testGetJobTypesById_request_Not_Found()
{
Optional<JobTypes> emptyJobType = Optional.empty();
doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt());
try {
mockMvc.perform(MockMvcRequestBuilders.get("/job_types/{id}", "1")
.content(asJsonString(emptyJobType))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isNotFound())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(failMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testAddNewJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testGetJobTypesById_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n \n Optional<JobTypes> jobType = Optional.of(jobType1);\n \n doReturn(jobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"2\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(successMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testGetAllJobTypes_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n JobTypes jobType2 = new JobTypes(2, \"test2\");\n \n JobTypes[] jobList = {jobType1, jobType2};\n List<JobTypes> jobTypesList = new ArrayList<JobTypes>();\n jobTypesList.add(jobType1);\n jobTypesList.add(jobType1);\n Iterable<JobTypes> allJobTypesList = jobTypesList;\n \n doReturn(allJobTypesList).when(jobTypesService).getAllJobTypes();\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/all\")\n .content(asJsonString(allJobTypesList))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void idTypeTest() {\n // TODO: test idType\n }",
"@Test\n\tpublic void testGetAllUsersFailed() throws Exception {\n\n\t\tString id = \"dccfdfd1213\";\n\t\tmockMvc.perform(get(\"/api/v1/project/{projectid}/users\", id)).andExpect(status().is4xxClientError())\n\t\t\t\t.andDo(print());\n\n\t}",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"@Test(timeout = 4000)\n public void test233() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.label();\n Component component1 = component0.code();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }",
"@Test\n public void testUpdateJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testFailure() throws ComponentInitializationException, ParseException {\n Set<ResponseType> responseTypes = new HashSet<ResponseType>();\n responseTypes.add(ResponseType.parse(\"code\"));\n metaData.setResponseTypes(responseTypes);\n final Event event = action.execute(requestCtx);\n ActionTestingSupport.assertEvent(event, OidcEventIds.INVALID_RESPONSE_TYPE);\n }",
"@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Override\n\t\t\tpublic void onGetBookIdsFail() {\n\t\t\t\t\n\t\t\t}",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"@Test\n public void testGetCategoriesIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getCategoriesIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Category\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }",
"@Override\n public void testTaskManagerFailure(\n TestEnvironment testEnv,\n ExternalContext<RowData> externalContext,\n ClusterControllable controller)\n throws Exception {\n }",
"@Test\n public void testFailureWithoutObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, \"\", 400);\n }",
"@Test\r\n public void findUserInvalidUserId() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(-1L);\r\n }).isInstanceOf(Exception.class);\r\n }",
"@Override\n\t\t\t\tpublic void onGetBookIdsFail() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Test\n\tpublic void testAddUsersFailed() throws Exception {\n\n\t\tString id = \"dccfdfd1213\";\n\t\tmockMvc.perform(get(\"/api/v1/project/{projectid}/adduser\", id)).andExpect(status().is4xxClientError())\n\t\t\t\t.andDo(print());\n\n\t}",
"@Test\n\tpublic void getIdTest() {\n\t}",
"@Test\r\n\tpublic void testGetId() {\r\n\t\tassertEquals(1, breaku1.getId());\r\n\t\tassertEquals(2, externu1.getId());\r\n\t\tassertEquals(3, meetingu1.getId());\r\n\t\tassertEquals(4, teachu1.getId());\r\n\t}",
"@Test\n\tpublic void getSurveyIdTest() throws Exception {\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/getsurveybyid/962\")\n\t\t .contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON))\n\t\t\t\t.andExpect(status().isFound());\n\t}",
"@Test\n public void testReturningWrongType() throws Exception {\n try {\n runGroupComparator(\"LembosGroupComparatorTest-testReturningWrongType\", 1, 3);\n\n fail(\"The line above should had failed\");\n } catch (Exception e) {\n assertEquals(\"MapReduce function 'group' must return an integer\", e.getMessage());\n }\n }",
"@Test\n public void testGetProductsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getProductsIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Product\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Test(timeout = 4000)\n public void test192() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.del();\n Component component0 = errorPage0.id(\"O=V>!a<w512kq\");\n assertFalse(component0._isGeneratedId());\n }",
"@Test\n\tvoid testIdNotFound() {\n\t\tOfficer officer = new Officer(\"414\",\"Harish\",\"officer\",\"Harish Keni\",\"Karnataka\");\n\t \t\t\n\t\tassertThrows(IdNotFoundException.class,()->iOfficerService.editOfficer(officer,\"414\"));\n\t\t\n\t}",
"public void test_Initialize_Failure5_activeContestStatusId_notLong()\r\n throws Exception {\r\n context.addEntry(\"unitName\", \"contestManager\");\r\n context.addEntry(\"activeContestStatusId\", new Object());\r\n context.addEntry(\"defaultDocumentPathId\", new Long(1));\r\n context.addEntry(\"documentContentManagerClassName\",\r\n \"com.topcoder.service.studio.contest.documentcontentmanagers.SocketDocumentContentManager\");\r\n context.addEntry(\"documentContentManagerAttributeKeys\",\r\n \"serverAddress,serverPort\");\r\n context.addEntry(\"serverAddress\", \"127.0.0.1\");\r\n context.addEntry(\"serverPort\", new Integer(40000));\r\n\r\n Method method = beanUnderTest.getClass()\r\n .getDeclaredMethod(\"initialize\",\r\n new Class[0]);\r\n\r\n method.setAccessible(true);\r\n\r\n try {\r\n method.invoke(beanUnderTest, new Object[0]);\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (InvocationTargetException e) {\r\n // success\r\n }\r\n }",
"private List<BatchJobInstance> getFailedJobs() {\r\n\t\tlog.info(\"Searching for failed jobs ...\");\r\n\t\tlog.info(\" \");\r\n\r\n\t\tList<BatchJobInstance> jobs = new ArrayList<BatchJobInstance>();\r\n\t\tConnection conn = null;\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tString qs = \"select id from batchjobinstance where status = 'Failed' and startDateTime > now() + interval -1 day\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\trs = stmt.executeQuery(qs);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tjobs.add(batchJobInstanceManager.findById(rs.getInt(\"id\")));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlog.error(\"Exception encountered while attempting to retrieve abandoned jobs: \" + e.toString() + \"; \" + e.getMessage(), e);\r\n\t\t\tlog.error(\"SQL statement: \" + qs);\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on rs.close(): \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\trs = null;\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on stmt.close(): \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\tstmt = null;\r\n\t\t\t}\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on conn.close(): : \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlog.info(jobs.size() + \" failed job(s) found\");\r\n\t\tlog.info(\" \");\r\n\r\n\t\treturn jobs;\r\n\t}",
"private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }",
"@Override\r\n\tpublic void jobFailed(Job failedJob, Job retry) {\n\t\tgetCloudsim().log(\"WARNING: Job failed: \" + failedJob.getID());\r\n\t}",
"private void failJobAndIndependentStages(ActiveJob activeJob, String reason) {\n failJobAndIndependentStages(activeJob, reason, null);\n }",
"public void onFailure(Throwable throwable) {\n\t\t\tGWT.log(\"error getting target ids\",throwable);\n\t\t}",
"@Test\n public void test134() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.object();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }",
"@Test\r\n public void testGetId_banque() {\r\n System.out.println(\"getId_banque\");\r\n chequeBeans instance = new chequeBeans();\r\n int expResult = 0;\r\n int result = instance.getId_banque();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test(timeout = 4000)\n public void test189() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LocalTime localTime0 = MockLocalTime.ofSecondOfDay(1816L);\n Component component0 = errorPage0.em((Object) localTime0);\n StandaloneComponent standaloneComponent0 = component0._getTopLevelComponent(true);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", standaloneComponent0.getComponentId());\n }",
"@Test\n public void testGetShoppinglistsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getShoppinglistsIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ShoppingList\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}",
"public int getJobType() {\n return jobType;\n }",
"@Test(timeout = 4000)\n public void test222() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.label();\n assertTrue(block0._isGeneratedId());\n \n block0.id(\"sajp\");\n assertFalse(block0._isGeneratedId());\n }",
"private static void testValid() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_valid; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_valid_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n } finally {\n userInt.removeJob(job);\n }\n Assert.assertTrue(\"JobFactory returned null for valid job \" + job_path, job != null);\n Assert.assertTrue(\"JobFactory threw an exception for valid job \" + job_path, exc == null);\n }\n SchedulerTHelper.log(jobs_valid + \" valid jobs successfully created\");\n }",
"@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}",
"@Test\n\tpublic void testDeleteUsersFailed() throws Exception {\n\n\t\tString id = \"dccfdfd1213\";\n\t\tmockMvc.perform(delete(\"/api/v1/project/{projectid}/deleteuser\", id)).andExpect(status().is4xxClientError())\n\t\t\t\t.andDo(print());\n\n\t}",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable t, String errorMsg, int statusCode) {\n\t\t\t\tmListLayout.setLoadFailure();\n\t\t\t}",
"@Test(timeout = 4000)\n public void test008() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.small();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }",
"@Test\n public void testGetPenggunas_Long() {\n System.out.println(\"getPenggunas\");\n Long id = null;\n DaftarPengguna instance = new DaftarPengguna();\n List expResult = null;\n List result = instance.getPenggunas(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }",
"@Override\n public void onFailure(int arg0) {\n }",
"public int getHC_EmployeeJob_ID();",
"@Test(expected = IllegalArgumentException.class)\r\n public void test_getTermsOfUse_agreeabilityTypeIdsEmpty() throws Exception {\r\n instance.getTermsOfUse(projectId, 1, new int[0]);\r\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tfail(\"Request failure: \" + caught.getMessage());\n\t\t\t}",
"@Test\n public void test145() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.strike();\n assertTrue(block0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }",
"public String getIDName() {\n return \"FailureIDGenerator\";\n }",
"@Test\n public void testSplitRoomReservationReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find all bookings spanning different rooms\n Job j = new SplitRoomReservationReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Deployment(resources = {\"org/camunda/bpm/engine/test/api/mgmt/IncidentTest.testShouldCreateIncidentOnFailedStartTimerEvent.bpmn\"})\n @Test\n public void shouldCreateIncidentOnFailedStartTimerEvent() {\n JobQuery jobQuery = managementService.createJobQuery();\n assertEquals(1, jobQuery.count());\n\n Job job = jobQuery.singleResult();\n String jobId = job.getId();\n\n while(0 != job.getRetries()) {\n try {\n managementService.executeJob(jobId);\n fail();\n } catch (Exception e) {\n // expected\n }\n job = jobQuery.jobId(jobId).singleResult();\n\n }\n\n // job exists\n job = jobQuery.singleResult();\n assertNotNull(job);\n\n assertEquals(0, job.getRetries());\n\n // incident was created\n Incident incident = runtimeService.createIncidentQuery().configuration(job.getId()).singleResult();\n assertNotNull(incident);\n\n // manually delete job for timer start event\n managementService.deleteJob(job.getId());\n }",
"@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}",
"@Test\n\tpublic void testInvalidEmailId() {\n\t\tString emailId = \"InvalidPerson\";\n\t\tClient client = Client.create();\n\t\tWebResource webResource2 = client\n\t\t\t\t.resource(\"http://localhost:8080/MeetingSchedulerProject/meeting/personservice/\"\n\t\t\t\t\t\t+ emailId);\n\t\tClientResponse response2 = webResource2.accept(\n\t\t\t\tMediaType.APPLICATION_JSON).get(ClientResponse.class);\n\n\t\t// not found status code\n\t\tassertEquals(response2.getStatus(), 404);\n\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable t, String errorMsg, int statusCode) {\n\t\t\t}",
"public List<String> retrieveJobId(int[] jobStatusType, String queueName, String batchSystem, String userId) throws DatabaseException, IllegalArgumentException;",
"@Test\n public void testIncorrectId(){\n UserRegisterKYC idTooLong = new UserRegisterKYC(\"hello\",\"S12345678B\",\"26/02/1995\",\"738583\");\n int requestResponse = idTooLong.sendRegisterRequest();\n assertEquals(400, requestResponse);\n\n UserRegisterKYC nonAlphanumId = new UserRegisterKYC(\"hello\",\"S12345!8B\",\"26/02/1995\",\"738583\");\n requestResponse = nonAlphanumId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC invalidPrefixId = new UserRegisterKYC(\"hello\",\"A\"+validId3.substring(1),\"26/02/1995\",\"738583\");\n requestResponse = invalidPrefixId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC alphaInMiddleId = new UserRegisterKYC(\"hello\",\"S1234A68B\",\"26/02/1995\",\"738583\");\n requestResponse = alphaInMiddleId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC idTooShort = new UserRegisterKYC(\"hello\",\"S123678B\",\"26/02/1995\",\"738583\");\n requestResponse = idTooShort.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC invalidChecksum = new UserRegisterKYC(\"hello\",\"S1234578B\",\"26/02/1995\",\"738583\");\n requestResponse = invalidChecksum.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n }",
"@Test\r\n public void testGetTypeId() {\r\n System.out.println(\"getTypeId\");\r\n \r\n int expResult = 0;\r\n int result = instance.getTypeId();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }",
"@Test(timeout = 4000)\n public void test356() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.h3();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }",
"@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n Integrante instance = new Integrante();\r\n Long expResult = null;\r\n Long result = instance.getId();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test(timeout = 4000)\n public void test027() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.br();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Any_1\", component0.getComponentId());\n }",
"@Test(timeout = 4000)\n public void test024() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.dfn();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }",
"@Test(expected = GenericRequestException.class)\n public void getComputerBuildByInvalidIdentifier() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(USER_NAME_TO_TEST_OWNERSHIP_ENDPOINTS);\n ComputerBuild retrievedBuild = computerBuilds.iterator().next();\n assertNotNull(retrievedBuild);\n\n // attempt to find the computer build created above with an invalid identifier.\n computerBuildService.getComputerBuildByBuildIdentifier(retrievedBuild.getBuildIdentifier() + INVALID_IDENTIFIER_SUFFIX);\n }",
"@Test\n\tpublic void testFindProductByProductIdFailure() {\n\n\t\tMockito.when(productDao.findById(1)).thenReturn(Optional.of(product));\n\n\t\tResponseEntity<Product> expected = productServiceImpl.findProductByProductId(1);\n\n\t\tAssertions.assertNotSame(expected, ResponseEntity.noContent().build());\n\t}",
"public void test_Initialize_Failure4_miss_activeContestStatusId()\r\n throws Exception {\r\n context.addEntry(\"unitName\", \"contestManager\");\r\n // context.addEntry(\"activeContestStatusId\", new Long(1));\r\n context.addEntry(\"defaultDocumentPathId\", new Long(1));\r\n context.addEntry(\"documentContentManagerClassName\",\r\n \"com.topcoder.service.studio.contest.documentcontentmanagers.SocketDocumentContentManager\");\r\n context.addEntry(\"documentContentManagerAttributeKeys\",\r\n \"serverAddress,serverPort\");\r\n context.addEntry(\"serverAddress\", \"127.0.0.1\");\r\n context.addEntry(\"serverPort\", new Integer(40000));\r\n\r\n Method method = beanUnderTest.getClass()\r\n .getDeclaredMethod(\"initialize\",\r\n new Class[0]);\r\n\r\n method.setAccessible(true);\r\n\r\n try {\r\n method.invoke(beanUnderTest, new Object[0]);\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (InvocationTargetException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void test108() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.ul();\n Label label0 = (Label)errorPage0.big((Object) errorPage0);\n ActionExpression actionExpression0 = errorPage0.action(\"~Dci\");\n Label label1 = (Label)errorPage0.small((Object) actionExpression0);\n Block block1 = (Block)errorPage0.b();\n List<ActionExpression> list0 = errorPage0._getActions();\n block1._clear();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block1._isGeneratedId());\n }",
"@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}",
"@RequestMapping(value = \"/getJobsList\", method = RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic List<GetJobsResponse> getJobsList(@RequestParam String jobType, \n\t\t\t@RequestParam String jobTitle,@RequestParam String emailId) {\n \tList<GetJobsResponse> getJobsResponseList = null;\n\t\ttry {\n\t\t\t\n\t\t\tgetJobsResponseList = this.econnectService.getJobsList(jobType,jobTitle,emailId);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getJobsResponseList;\n\t}",
"@Test\n\tpublic void testGetID() {\n\t}",
"@Override\n\tpublic boolean onJobError(ApiJob job) {\n\t\treturn false;\n\t}",
"@Override\n\t\t\t\t\tpublic void loadEndFailed(int type) {\n\n\t\t\t\t\t}",
"@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}",
"public void test_GetClientForProject_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n beanUnderTest.getClientForProject(999);\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test020() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.q();\n Component component1 = component0.h4();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }",
"@Test\r\n public void testSetTypeId() {\r\n System.out.println(\"setTypeId\");\r\n int tid = 0;\r\n \r\n instance.setTypeId(tid);\r\n assertEquals(tid, instance.getTypeId());\r\n \r\n }",
"@Test\n\tpublic void getAccountTestFailure() {\n\t\tRestAssured.given().when().get(\"/account?accountNumber=7912\").then().assertThat().statusCode(404);\n\t}",
"public void fail( String reason );",
"void onHadoopJobFailure(LmmpJob job, String failReason);",
"private synchronized void onJobFailure(final JobStatusProto jobStatusProto) {\n assert jobStatusProto.getState() == ReefServiceProtos.State.FAILED;\n\n final String id = this.jobId;\n final Optional<byte[]> data = jobStatusProto.hasException() ?\n Optional.of(jobStatusProto.getException().toByteArray()) :\n Optional.<byte[]>empty();\n final Optional<Throwable> cause = this.exceptionCodec.fromBytes(data);\n\n final String message;\n if (cause.isPresent() && cause.get().getMessage() != null) {\n message = cause.get().getMessage();\n } else {\n message = \"No Message sent by the Job in exception \" + cause.get();\n LOG.log(Level.WARNING, message, cause.get());\n }\n final Optional<String> description = Optional.of(message);\n\n final FailedJob failedJob = new FailedJob(id, message, description, cause, data);\n this.failedJobEventHandler.onNext(failedJob);\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate void sendOutFailedJobAlert(List<BatchJobInstance> jobs) {\r\n\t\tif (StringUtils.isNotEmpty(alertRecipients)) {\r\n\t\t\tString[] sendToArray = alertRecipients.split(\",\");\r\n\t\t\tif (sendToArray.length > 0) {\r\n\t\t\t\tif (StringUtils.isNotEmpty(alertTemplateId)) {\r\n\t\t\t\t\tList<Object> sendTo = new ArrayList<Object>();\r\n\t\t\t\t\tfor (int i=0; i<sendToArray.length; i++) {\r\n\t\t\t\t\t\tsendTo.add(sendToArray[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tMap<String,Object> noticeData = new HashMap<String,Object>();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tnoticeData = (Map<String,Object>) notifier.getStandardNoticeData(null, null);\r\n\t\t\t\t\t} catch (ClassCastException e) {\r\n\t\t\t\t\t\tlog.warn(\"Exception encountered when attempting to obtain standard notice data\", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnoticeData.put(\"jobs\", jobs);\r\n\t\t\t\t\tnotifier.sendNotification(sendTo, alertTemplateId, noticeData);\r\n\t\t\t\t\tnoticesSent = sendTo.size();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlog.error(\"Unable to send out alerts: no alert template configured\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlog.error(\"Unable to send out alerts: no alert recipients configured\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tlog.error(\"Unable to send out alerts: no alert recipients configured\");\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}",
"private synchronized void onJobFailure(final JobStatusProto jobStatusProto) {\n assert (jobStatusProto.getState() == ReefServiceProtos.State.FAILED);\n\n final String id = this.jobId;\n final Optional<byte[]> data = jobStatusProto.hasException() ?\n Optional.of(jobStatusProto.getException().toByteArray()) :\n Optional.<byte[]>empty();\n final Optional<Throwable> cause = this.exceptionCodec.fromBytes(data);\n\n final String message = cause.isPresent() ?\n cause.get().getMessage() :\n \"No Message sent by the Job\";\n final Optional<String> description = Optional.of(message);\n\n final FailedJob failedJob = new FailedJob(id, message, description, cause, data);\n this.failedJobEventHandler.onNext(failedJob);\n }",
"@Test\n public void testGetShoppinglistsIdEntriesEntryIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getShoppinglistsIdEntriesEntryIdAction(\"{id}\", \"{entryId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ShoppingListEntry\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Test(timeout = 4000)\n public void test349() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.strong();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }",
"@Override\n public void fail(String status, String msg, Object object) {\n\n }",
"@Test(timeout = 4000)\n public void test032() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.acronym((Object) \"src\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }",
"public List<String> retrieveJobId(String delegId, int[] jobStatusType, String userId) throws DatabaseException, IllegalArgumentException;",
"int getTypeIdValue();",
"@Test\n public void readGameNotFound() throws Exception {\n final String id = new GameId().toString();\n final String getUrl = BASE_REQUEST_URL + id;\n\n mockMvc.perform(get(getUrl))\n .andExpect(status().isNotFound());\n }",
"@Test\n public void testSecondSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"location\")\n .param(\"searchTerm\", \"chicago\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").doesNotExist());\n }",
"@Test(timeout = 4000)\n public void test017() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.i();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }"
] | [
"0.67222434",
"0.64744914",
"0.64088166",
"0.6402537",
"0.61510015",
"0.5888181",
"0.5692325",
"0.5685242",
"0.5591631",
"0.55244243",
"0.5511335",
"0.5497967",
"0.5474748",
"0.5445464",
"0.54043704",
"0.5398021",
"0.53910285",
"0.5384247",
"0.5378386",
"0.53666204",
"0.5328205",
"0.53112096",
"0.52988154",
"0.5295286",
"0.5276537",
"0.52647287",
"0.5251349",
"0.52402306",
"0.52389336",
"0.52085227",
"0.52022403",
"0.5173527",
"0.51415867",
"0.51327175",
"0.512683",
"0.51178074",
"0.5108624",
"0.51018023",
"0.5100684",
"0.5100089",
"0.5089552",
"0.50871384",
"0.5078657",
"0.5066845",
"0.5064382",
"0.5040095",
"0.5037806",
"0.50371337",
"0.5032002",
"0.50293833",
"0.50269616",
"0.50265306",
"0.50078195",
"0.5000771",
"0.49994823",
"0.4999376",
"0.49955145",
"0.49918985",
"0.49893707",
"0.4981629",
"0.4971426",
"0.496071",
"0.495391",
"0.494961",
"0.4947282",
"0.4946524",
"0.49391934",
"0.49358916",
"0.49300182",
"0.49211967",
"0.4915027",
"0.49138555",
"0.49131402",
"0.49126703",
"0.49122733",
"0.4909977",
"0.49091047",
"0.49048972",
"0.49036068",
"0.4901327",
"0.48951367",
"0.48945776",
"0.4893356",
"0.48932788",
"0.48927644",
"0.48925906",
"0.4888311",
"0.48877287",
"0.4884582",
"0.48814398",
"0.48765355",
"0.48753187",
"0.4855888",
"0.48548073",
"0.4854259",
"0.48535886",
"0.4853",
"0.48527765",
"0.48519787",
"0.48508272"
] | 0.68672216 | 0 |
Test Success of addNewJobType method, of class JobsController. | @Test
public void testAddNewJobType_request_OK()
{
JobTypes jobType = new JobTypes(1, "test1");
doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));
try {
mockMvc.perform(MockMvcRequestBuilders.post("/job_types/add")
.content(asJsonString(jobType))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testAddNewJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testUpdateJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"2\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"public void addJob(String jobID, String jobTitle, String jobType,\n String salary, String jobDescription, String expirationDate,\n String contactEmail) {\n //Will check if the amount is less than 100 jobs added\n //then Will add the job to the end of the arrayList\n //will return true if added else return false\n currentJob = new Job(contactEmail, jobType, jobID, jobDescription, salary, jobTitle, expirationDate);\n if(jobs.size() <= 100)\n {\n jobs.add(currentJob);\n String success = String.format(\"================JOB POSTING SUCCESS================\\n\" +\n \"A new job has been posted with following details:\\n\" +\n \"Job ID: %s\\n\" +\n \"Job Name: %s\\n\" +\n \"Job Type: %s\\n\" +\n \"Salary: %s\\n\" +\n \"Job Description: %s\\n\" +\n \"Expiration Date: %s\\n\" +\n \"Contact email: %s\\n\", jobID, jobTitle, jobType, salary, jobDescription, expirationDate, contactEmail);\n\n System.out.println(success);\n } else {\n String success = String.format(\"================JOB POSTING FAILURE ================\\n\" +\n \"THERE ARE MORE THAN 100 JOBS IN THE SYSTEM:\\n\");\n System.out.println(success);\n }\n }",
"@Test\n public void testGetAllJobTypes_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n JobTypes jobType2 = new JobTypes(2, \"test2\");\n \n JobTypes[] jobList = {jobType1, jobType2};\n List<JobTypes> jobTypesList = new ArrayList<JobTypes>();\n jobTypesList.add(jobType1);\n jobTypesList.add(jobType1);\n Iterable<JobTypes> allJobTypesList = jobTypesList;\n \n doReturn(allJobTypesList).when(jobTypesService).getAllJobTypes();\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/all\")\n .content(asJsonString(allJobTypesList))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(successMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testGetJobTypesById_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n \n Optional<JobTypes> jobType = Optional.of(jobType1);\n \n doReturn(jobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@PostMapping(\"/type-tests\")\n @Timed\n public ResponseEntity<TypeTest> createTypeTest(@Valid @RequestBody TypeTest typeTest) throws URISyntaxException {\n log.debug(\"REST request to save TypeTest : {}\", typeTest);\n if (typeTest.getId() != null) {\n throw new BadRequestAlertException(\"A new typeTest cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n TypeTest result = typeTestService.save(typeTest);\n return ResponseEntity.created(new URI(\"/api/type-tests/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public void successfulCreation(String type) {\n switch (type) {\n case \"Attendee\":\n System.out.println(\"Attendee Created\");\n break;\n case \"Organizer\":\n System.out.println(\"Organizer Created\");\n break;\n case \"Speaker\":\n System.out.println(\"Speaker Created\");\n break;\n case \"VIP\":\n System.out.println(\"VIP Created\");\n break;\n }\n }",
"public Result addNewRoomType() {\n\n DynamicForm dynamicform = Form.form().bindFromRequest();\n if (dynamicform.get(\"AdminAddRoom\") != null) {\n\n return ok(views.html.AddRoomType.render());\n }\n\n\n return ok(\"Something went wrong\");\n }",
"@Test\n public void testCreateConfirmDepositAmountsJob() throws Exception {\n Job asj = new AllocationScraperJob();\n asj.setStatus( JobStatus.completed );\n dao.insertJob( asj );\n\n // setup the job\n Job j = new CreateConfirmDepositAmountsJob();\n j.setStatus( JobStatus.submitted );\n j.getDependentJobs().add( asj );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test\n\tpublic void isExistingCaseNameAdded() {\n\t\tString caseName = \"leather Case\";\n\t\tString cost = \"50\";\n\t\ttry {\n\t\t\tCaseManagerService.addCaseType(caseName, cost);\n\t\t\tfail();\n\t\t} catch (ServiceException e) {\n\t\t\tassertEquals(\"Case Name is Already Exist\",e.getMessage());\n\t\t}\n\t}",
"@Test\n public void testAllocationScraperJob() throws Exception {\n AllocationScraperJob j = new AllocationScraperJob();\n j.setStatus( JobStatus.submitted );\n j.setStartDate( Calendar.getInstance().getTime() );\n j.setDaysAhead( 27 );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test\n public void testGetJobTypesById_request_Not_Found()\n { \n Optional<JobTypes> emptyJobType = Optional.empty();\n \n doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(emptyJobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isNotFound())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@RequestMapping(\"/addjob\")\n public String addJob(Model model)\n {\n model.addAttribute(\"aJob\",new Job());\n return \"addjob\";\n }",
"@Test\n public void addContacts() {\n }",
"@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(failMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"public void addPlayer(HeroClass newJob){job.add(newJob);}",
"@Test\n public void testStaffFactoryCreate() {\n StaffController staffController = staffFactory.getStaffController();\n staffController.addStaff(STAFF_NAME, STAFF_GENDER, STAFf_ROLE);\n assertEquals(1, staffController.getStaffList().size());\n }",
"@Test\n\tpublic void testAddVolunteer() {\n\t\tassertEquals(initialJob.getEnrolledVolunteers().size(), 0);\n\t\tinitialJob.addVolunteer((Volunteer) volunteer, WorkLoad.MEDIUM);\n\t\tassertEquals(initialJob.getEnrolledVolunteers().size(), 1);\n\t\t\n\t\t// Attempt to exceed max job duty requirement\n\t\tinitialJob.addVolunteer((Volunteer) volunteer, WorkLoad.MEDIUM);\n\t\tassertEquals(initialJob.getEnrolledVolunteers().size(), 1);\n\t}",
"@Test\n void addItem() {\n }",
"@Test\n void addItem() {\n\n }",
"@Test\n public void testCrearBibliotecario() {\n System.out.println(\"BibliotecaController\");\n String email = \"mail\";\n String login = \"login\";\n String password = \"pass\";\n String nif = \"nif\";\n BibliotecarioController instance = new BibliotecarioController();\n Bibliotecario result = instance.crearBibliotecario(email, login, password, nif);\n assertEquals(email, result.getEmail());\n assertEquals(login, result.getLogin());\n assertEquals(password, result.getPassword());\n assertEquals(nif , result.getNif());\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n public void createNewComputerBuildSuccess() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n loginAndCreateBuild(computerBuild, loginRequest, SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n }",
"@Test\n\tpublic void testCreate() throws Exception {\n\t\tMockHttpServletRequestBuilder reqBuilder = MockMvcRequestBuilders.post(\"/createJourney\");\n\t\treqBuilder.contentType(MediaType.APPLICATION_JSON);\n\t\treqBuilder.accept(MediaType.APPLICATION_JSON);\n\t\treqBuilder.content(this.mapper.writeValueAsString(journey));\n\t\t\n\t\tResultMatcher matchStatus = MockMvcResultMatchers.status().isCreated();\n\t\tResultMatcher matchContent = MockMvcResultMatchers.content().json(this.mapper.writeValueAsString(savedJourney));\t\n\t\t\t\t\n\t\tthis.mockMVC.perform(reqBuilder).andExpect(matchStatus).andExpect(matchContent);\n\t}",
"@Test\n @Ignore\n public void testSubmit() {\n System.out.println(\"submit\");\n String sub = \"\";\n String obj = \"\";\n String rid = \"\";\n String pmid = \"\";\n String doi = \"\";\n String pdate = \"\";\n String inst = \"\";\n HttpServletResponse response = null;\n HomeController instance = new HomeController();\n instance.submit(sub, obj, rid, pmid, doi, pdate, inst, response);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public void testStorageContainerAdd() //Container Added only with the existing values of Storage Type\r\n\t{\n\t\tString[] arr = getDataObject().getValues();\r\n\r\n\t\tStorageContainerForm storageContainerForm = new StorageContainerForm();\r\n\t\tsetRequestPathInfo(\"/OpenStorageContainer\");\r\n\t\taddRequestParameter(\"operation\",\"add\");\r\n\t\taddRequestParameter(\"pageOf\",\"pageOfStorageContainer\");\r\n\t\tsetActionForm(storageContainerForm);\r\n\t\tactionPerform();\r\n\t\tverifyForward(\"success\");\r\n\r\n\t\tsetRequestPathInfo(\"/StorageContainer\");\r\n\t\taddRequestParameter(\"operation\",\"add\");\r\n\t\taddRequestParameter(\"pageOf\",\"pageOfStorageContainer\");\r\n\t\tsetActionForm(storageContainerForm);\r\n\t\tactionPerform();\r\n\t\tverifyForward(\"pageOfStorageContainer\");\r\n\r\n\t\tstorageContainerForm=(StorageContainerForm)getActionForm();\r\n\t\tstorageContainerForm.setTypeId(Long.parseLong(arr[0]));\r\n\t\tstorageContainerForm.setSelectedContainerName(arr[1]);\r\n\t\tstorageContainerForm.setSiteId(Long.parseLong(arr[2]));\r\n\t\tstorageContainerForm.setNoOfContainers(Integer.parseInt(arr[3]));\r\n\t\tstorageContainerForm.setDefaultTemperature(arr[4]);\r\n\t\tstorageContainerForm.setOneDimensionCapacity(Integer.parseInt(arr[5]));\r\n\t\tstorageContainerForm.setTwoDimensionCapacity(Integer.parseInt(arr[6]));\r\n\t\tstorageContainerForm.setActivityStatus(arr[7]);\r\n\r\n\t\tlong[] arr1={Long.parseLong(arr[8].trim())};\r\n\t\tstorageContainerForm.setHoldsStorageTypeIds(arr1);\r\n\r\n\t\tString[] arr2={(arr[9].trim())};\r\n\t\tstorageContainerForm.setHoldsSpecimenClassTypes(arr2);\r\n\r\n\t\tString[] arr3={(arr[10].trim())};\r\n\t\tstorageContainerForm.setHoldsTissueSpType(arr3);\r\n\r\n\t\tString[] arr4={(arr[11].trim())};\r\n\t\tstorageContainerForm.setHoldsFluidSpType(arr4);\r\n\r\n\t\tString[] arr5={(arr[12].trim())};\r\n\t\tstorageContainerForm.setHoldsCellSpType(arr5);\r\n\r\n\t\tString[] arr6={(arr[13].trim())};\r\n\t\tstorageContainerForm.setHoldsMolSpType(arr6);\r\n\r\n\r\n\t\tsetRequestPathInfo(\"/StorageContainerAdd\");\r\n\t\taddRequestParameter(\"operation\",\"add\");\r\n\t\taddRequestParameter(\"pageOf\",\"pageOfStorageType\");\r\n\t\tsetActionForm(storageContainerForm);\r\n\t\tactionPerform();\r\n\t\tverifyForward(\"success\");\r\n\t\tverifyActionMessages(new String[]{\"object.add.successOnly\"});\r\n\t}",
"@Test\r\n\tpublic void addNew() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\t\r\n\t\tString content = \"{\\r\\n\" + \r\n\t\t\t\t\" \\\"id\\\": 3,\\r\\n\" + \r\n\t\t\t\t\" \\\"name\\\": \\\"TF1\\\",\\r\\n\" + \r\n\t\t\t\t\" \\\"team\\\": \\\"DECEPTICON\\\",\\r\\n\" + \r\n\t\t\t\t\" \\\"strength\\\": 8,\\r\\n\" + \r\n\t\t\t\t\" \\\"intelligence\\\": 9,\\r\\n\" + \r\n\t\t\t\t\" \\\"speed\\\": 2,\\r\\n\" + \r\n\t\t\t\t\" \\\"endurance\\\": 6,\\r\\n\" + \r\n\t\t\t\t\" \\\"rank\\\": 7,\\r\\n\" + \r\n\t\t\t\t\" \\\"courage\\\": 5,\\r\\n\" + \r\n\t\t\t\t\" \\\"firepower\\\": 6,\\r\\n\" + \r\n\t\t\t\t\" \\\"skill\\\": 10\\r\\n\" + \r\n\t\t\t\t\"}\";\r\n\t\t\r\n\t\tmockMvc.perform(post(\"/transformers/\").contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t\t\t.andExpect(status().isCreated())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t;\r\n\t\tassertEquals( 1, tr.count());\r\n\t\t\r\n\t}",
"@Test\n public void addNewTask_startsActivity() {\n mTasksNavigator.addNewTask();\n\n // The AddEditTaskActivity is opened with the correct request code\n verify(mNavigationProvider).startActivityForResult(eq(AddEditTaskActivity.class),\n eq(AddEditTaskActivity.REQUEST_ADD_TASK));\n }",
"@Test\n public void canAddBookToLibrary(){\n library.add(book);\n assertEquals(1, library.countBooks());\n }",
"@Test\n public void validAdd() throws Exception {\n Logger.getGlobal().info(\"Start validAdd test\");\n RestaurantVO restaurant = new RestaurantVO();\n restaurant.setId(\"999\");\n restaurant.setName(\"Test Restaurant\");\n\n ResponseEntity<Restaurant> restaurants = restaurantController.add(restaurant);\n Assert.assertEquals(HttpStatus.CREATED, restaurants.getStatusCode());\n Logger.getGlobal().info(\"End validAdd test\");\n }",
"@Then(\"^new type is saved$\")\n public void newTypeIsSaved() throws Throwable {\n throw new PendingException();\n }",
"public boolean modifyJob(String jobID, String jobTitle, String jobType,\n String salary, String jobDescription, String expirationDate,\n String contactEmail){\n //Will locate the job with the jobID\n //Then will move the user input for each input\n //to its respected fields\n //Will then return true if successful\n Job newJob = new Job(contactEmail, jobType, jobID, jobDescription, salary, jobTitle, expirationDate);\n for(int i = 0; i< jobs.size(); i++){\n this.currentJob = jobs.get(i);\n if(this.currentJob.getJobID().compareTo(newJob.getJobID())==0){\n jobs.set(i,newJob);\n String success = String.format(\"=========JOB POSTING MODIFICATION SUCCESS=========\\n\"+\n \"A new job has been posted with following details:\\n\"+\n \"Job ID: %s\\n\"+\n \"Job Name: %s\\n\"+\n \"Job Type: %s\\n\"+\n \"Salary: %s\\n\"+\n \"Job Description: %s\\n\"+\n \"Expiration Date: %s\\n\"+\n \"Contact email: %s\\n\", jobID,jobTitle,jobType,salary,jobDescription,expirationDate,contactEmail);\n System.out.println(success);\n return true;\n }\n }\n return false;\n }",
"boolean addJob(PrintJob job);",
"@Test\n public void testStartJob() {\n // Set a specific date for the last change\n DateTime originalDate = new DateTime(2014, 12, 23, 0, 0, 0);\n List<MonitorJob> listMonitorJobs = new ArrayList<>();\n String url = \"http://www.google.com\";\n MonitorJob monitorJob = new MonitorJob();\n monitorJob.setUrl(url);\n monitorJob.setElement(\"body\");\n monitorJob.setLastChange(originalDate.toDate());\n monitorJob.setBody(\"empty body\");\n\n listMonitorJobs.add(monitorJob);\n\n when(monitorJobRepositoryMock.getAllMonitorJobs())\n .thenReturn(listMonitorJobs);\n\n monitorJobExecutor.startCheckJobs();\n\n // Assert that the specific date has been changed because content of page changed\n Assert.assertNotEquals(monitorJob.getLastChange(), originalDate.toDate());\n\n }",
"@Test\n public void recordTypeTest() {\n // TODO: test recordType\n }",
"public void testNewLead_1() throws Throwable {\n\t\tif (abortTest()) return;\n\t\ttry {\n\t\t\tthis.initAction(\"/do/salesforce/leads\", \"save\");\n\t\t\tthis.addAttribute(\"LastName\", LASTNAME);\n\t\t\tthis.addAttribute(\"FirstName\", LASTNAME);\n\t\t\tthis.addAttribute(\"Company\", COMPANY);\n\t\t\tString result = this.executeAction();\n\t\t\tassertEquals(\"input\", result);\t\n//\t\t\tLeadAction action = (LeadAction) this.getAction();\n//\t\t\tSystem.out.println(\">>> \" + action.getRedirectionUrl());\n//\t\t\tSystem.out.println(\"Messages: \" + action.getActionMessages().toString());\n//\t\t\tSystem.out.println(\"Action: \" + action.getActionErrors().toString());\n//\t\t\tSystem.out.println(\"Fields: \" + action.getFieldErrors().toString());\n\t\t} catch (Throwable t) {\n\t\t\tthrow t;\n\t\t}\n\t}",
"@Test\n public void reqTypeTest() {\n // TODO: test reqType\n }",
"@Test\n void addTask() {\n }",
"public void testSave() {\r\n\r\n\t\ttry {\r\n\t\t\tLevelOfCourt levelOfCourt = new LevelOfCourt();\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tlevelOfCourt.setName(\"alpha\");\r\n\r\n\t\t\t\tTestDataFactory jurisdictionTestDataFactory = (TestDataFactory) BeanHelper\r\n\t\t\t\t\t\t.getBean(\"jurisdictionTestDataFactory\");\r\n\r\n\t\t\t\tlevelOfCourt\r\n\t\t\t\t\t\t.setJurisdiction((com.cc.civlit.domain.courtdivisions.Jurisdiction) jurisdictionTestDataFactory\r\n\t\t\t\t\t\t\t\t.loadOneRecord());\r\n\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tlevelOfCourtService.save(levelOfCourt);\r\n\t\t\tassertNotNull(levelOfCourt.getId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}",
"@RequestMapping(value = \"/add\", method = RequestMethod.POST)\n\tpublic void addFavouriteJob(@RequestBody FavouriteJobs favJob) {\n\t\ttry {\n\t\t\tfavJobService.addNewFavouriteJob(favJob);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ServerErrorException(e.getMessage());\n\t\t}\n\t}",
"@Test\n public void save_Positive() throws LocationSchemeAlreadyExists {\n LocationSchemeDTO locationScheme = new LocationSchemeDTO(false, \"Scheme\", \"Address\");\n SectorDTO sector = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector2 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector3 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 0, 0, SectorType.PARTER);\n List<SectorDTO> sectors = Arrays.asList(sector, sector2, sector3);\n\n LocationSchemeSectorsDTO locationSchemeSectorsDTO = new LocationSchemeSectorsDTO(sectors, locationScheme);\n testRestTemplate.withBasicAuth(\"admin\", \"password\").postForEntity(URL_PREFIX, locationSchemeSectorsDTO, LocationSchemeSectorsDTO.class);\n\n verify(sectorService, times(1)).saveAll(anyList(), any(LocationScheme.class));\n verify(locationSchemeService, times(1)).save(any(LocationScheme.class));\n }",
"@Test\n\tpublic void testAddItem() {\n\t\tassertEquals(\"testAddItem(LongTermTest): valid enter failure\", 0, ltsTest.addItem(item4, 10)); //can enter\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid available capacity after adding\", 900, ltsTest.getAvailableCapacity());\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid item count after adding\", 10, ltsTest.getItemCount(item4.getType()));\n\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid enter failure\", -1, ltsTest.addItem(item4, 100)); // can't enter\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid available capacity after adding\", 900, ltsTest.getAvailableCapacity());\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid item count after adding\", 10, ltsTest.getItemCount(item4.getType()));\n\t}",
"@Test\n public void addTest(){\n \n Assert.assertTrue(p1.getName().equals(\"banana\"));\n Assert.assertTrue(c1.getEmail().equals(\"e@mail.nu\"));\n \n }",
"@PostMapping(value = \"/add\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<ServiceResult> insertTest(@RequestBody Test test) {\n return new ResponseEntity<ServiceResult>(testService.insertTest(test), HttpStatus.OK);\n }",
"@Test\n\tpublic void testingAddNewEmployee() {\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.id(\"act_primary\")).click();\n\t\t\n\t\tdriver.findElement(By.id(\"_asf1\")).sendKeys(\"FirstName\");\n\t\tdriver.findElement(By.id(\"_asl1\")).sendKeys(\"LastName\");\n\t\tdriver.findElement(By.id(\"_ase1\")).sendKeys(\"emailAddress\");\n\t\t\n\t\tdriver.findElement(By.id(\"_as_save_multiple\")).click();\n\t\t\n\t\tWebElement newEmployee = driver.findElement(By.linkText(\"FirstName LastName\"));\n\t\tassertNotNull(newEmployee);\n\t\t\n\t}",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"@Test\n\tpublic void addAccountTestSuccess() {\n\t\tAccount account = new Account();\n\t\taccount.setName(\"Vikas\");\n\t\taccount.setAmount(2000);\n\t\tString requestBody = gson.toJson(account);\n\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.post(\"/account\");\n\t\tAssertions.assertNotNull(response.asString());\n\t}",
"@Test\n @WithMockUser\n public void add_post_authenticatedUserAndValidData_returnsCorrectViewAndStatusCode() throws Exception {\n mockMvc.perform(post(URL_CUSTOMERS_ADD)\n .param(PARAM_NAME, NAME)\n .param(PARAM_BIRTH_DATE, BIRTH_DATE))\n .andExpect(status().is3xxRedirection())\n .andExpect(redirectedUrl(URL_CUSTOMERS_ALL));\n }",
"@Test\n public void addToCart() throws Exception {\n\n ReadableProducts product = super.readyToWorkProduct(\"addToCart\");\n assertNotNull(product);\n\n PersistableShoppingCartItem cartItem = new PersistableShoppingCartItem();\n cartItem.setProduct(product.getId());\n cartItem.setQuantity(1);\n\n final HttpEntity<PersistableShoppingCartItem> cartEntity =\n new HttpEntity<>(cartItem, getHeader());\n final ResponseEntity<ReadableShoppingCart> response =\n testRestTemplate.postForEntity(\n String.format(\"/api/v1/cart/\"), cartEntity, ReadableShoppingCart.class);\n\n // assertNotNull(response);\n // assertThat(response.getStatusCode(), is(CREATED));\n\n }",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values = {\"all\",\"dept-update\"})\n public void _2_4_2__addBCtoDept() throws Exception {\n Department d = d_1;\n d.addBusinessCategory(bc_1);\n this.mockMvc.perform(put(\"/api/v1.0/companies/\"+\n d.getCompany()+\n \"/departments/\"+\n d.getId())\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(d)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\",is(d.getId().toString())))\n .andExpect(jsonPath(\"$.description\",is(d.getDescription())))\n .andExpect(jsonPath(\"$.businessCategories\",hasSize(1)))\n .andExpect(jsonPath(\"$.businessCategories[0].product\",is(bc_1.getProduct())))\n .andExpect(jsonPath(\"$.businessCategories[0].locality\",is(bc_1.getLocality())));\n }",
"@Test\n void createParkingLot() {\n }",
"@RequestMapping( method = RequestMethod.POST,\n path=\"/save\",\n consumes = MediaType.APPLICATION_JSON_VALUE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n public LabTest save(@RequestBody LabTest labTest){\n System.out.println( labTest );\n return labTestService.save(labTest);\n }",
"@Test\n public void testNewJobHistoryProcessing()\n {\n Job job = jobFakery.makeFakeJob();\n JobHistory newJobHistory = jobHistoryTx.newJobHistoryProcessing(job, START_TIME);\n\n verify(mockJobHistoryDAO).persist(newJobHistory);\n assertEquals(newJobHistory.getStatus(), JobStatus.PROCESSING);\n assertNull(newJobHistory.getEndTime());\n }",
"@RequestMapping(value = \"/createCourse\", method = RequestMethod.POST, headers = { \"Content-type=application/json\" })\n\tpublic @ResponseBody JobCode ajaxCreateJobCode(@RequestBody JobCode jc) {\n\n\t\tJobCode res = null;\n\t\tSystem.out.println(jc);\n\n\t\ttry {\n\t\t\tres = courseService.saveCourse(jc);\n\t\t} catch (JobCodeException e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\n\t\treturn res;\n\t}",
"@Test\n\tpublic void testAjouter() {\n\t\tprofesseurServiceEmp.ajouter(prof);\n\t}",
"@Test\n\tpublic void givenCreateItem_whenValidRecord_ThenSuccess() {\n\t\tHashMap<String, Object> newRecord = getRecordHashMap(20, \"Steak\", \"Meats\", 15.5f);\n\n\t\t// create a new record and extract the ID from the response\n\t\tInteger newId = given().\n\t\t\tcontentType(ContentType.JSON).\n\t\t\tbody(newRecord).\n\t\twhen().\n\t\t\tpost(\"/\").\n\t\tthen().\n\t\t\tstatusCode(HttpStatus.CREATED.value()).\n\t\t\tcontentType(ContentType.JSON).\n\t\t\textract().\n\t\t\tpath(\"id\");\n\n\t\tnewRecord = setRecordId(newRecord, newId);\n\n\t\t// verify that the new record is created\n\t\tHashMap<String, Object> actual = given().\n\t\t\tpathParam(\"id\", newId).\n\t\twhen().\n\t\t\tget(\"/{id}\").\n\t\tthen().\n\t\t\tstatusCode(HttpStatus.OK.value()).\n\t\t\tcontentType(ContentType.JSON).\n\t\t\textract().path(\"$\");\n\n\t\tassertThat(newRecord).isEqualTo(actual);\n\n\t}",
"@Then ( \"the prescription has been added to the patient\" )\r\n public void successAddPatient () {\r\n // assertTrue( driver.getPageSource().contains( \"Prescription created\r\n // successfully\" ) );\r\n }",
"@Test\n public void createdWithSucessAndReturn201() throws Exception {\n List<Double> quotes = new ArrayList<>();\n StockRequest stockRequest = new StockRequest(\"StockI\", quotes);\n String request = objectMapper.writeValueAsString(stockRequest);\n String response = objectMapper.writeValueAsString(stockRequest);\n URI uri = UriComponentsBuilder.fromUriString(\"/stock\").build().toUri();\n String location = UriComponentsBuilder.fromUriString(\"/stock?name=StockI\").build().toUriString();\n mockMvc.perform(MockMvcRequestBuilders.post(uri)\n .contentType(MediaType.APPLICATION_JSON)\n .content(request))\n .andExpect(MockMvcResultMatchers.status().isCreated())\n .andExpect(MockMvcResultMatchers.content().json(response))\n .andExpect(MockMvcResultMatchers.header().string(\"location\", location));\n }",
"@Test\n\tpublic void testSave() {\n\t}",
"@Test\r\n\tpublic void testAjouterEtiquette() {\r\n\t\tassertEquals(true,this.client.ajouterEtiquette(\"Film\", \"lol\"));\r\n\t}",
"@Test(alwaysRun=true)\n public void addProject() {\n driver.findElement(By.xpath(\"//ul[contains(@class, 'nav-tabs')]//li[3]\")).click();\n assertThat(driver.getTitle(), equalTo(\"Manage Projects - MantisBT\"));\n //Click \"Create New Projects\" button\n driver.findElement(By.xpath(\"//form//button[contains(@class, 'btn-primary')]\")).click();\n //Check fields on the \"Add Project\" view\t\"Project Name Status Inherit Global Categories View Status Description\"\n List<String> expCategory = Arrays.asList(new String[]{\"* Project Name\", \"Status\", \"Inherit Global Categories\",\n \"View Status\", \"Description\"});\n List<WebElement> category = driver.findElements(By.className(\"category\"));\n List<String> actCategory = new ArrayList<>();\n for (WebElement categories : category) {\n actCategory.add(categories.getText());\n }\n assertThat(actCategory, equalTo(expCategory));\n //Fill Project inforamtion\n driver.findElement(By.id(\"project-name\")).sendKeys(\"SB\");\n driver.findElement(By.id(\"project-description\")).sendKeys(\"new one\");\n //Add project\n driver.findElement(By.xpath(\"//input[@value='Add Project']\")).click();\n //delete Created class\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//tr//a[contains(text(),'SB')]\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n }",
"@Test\n\t\t@Transactional\n\t\tpublic void addBeer() {\n\t\t\taddTestUser(\"addBeer\",Role.ADMIN);\n\t\t\tBeer newBeer = new Beer();\n\t\t\tnewBeer.setName(\"Jimmy Light\");\n\t\t\tnewBeer.setBrewery(\"Jimmy Brewing\");\n\t\t\tnewBeer.setCountry(\"US\");\n\t\t\tBeer savedBeer = beerSvc.add(newBeer);\n\t\t\tAssert.assertNotNull(savedBeer);\n\t\t\tAssert.assertTrue(savedBeer.getId() > 0);\n\t\t}",
"@Test\r\n\tpublic void test() {\n\t\tString serverUrl = \"https://openapi.kaola.com/router\";\r\n\t\tString accessToken = \"a2d50342-d6c9-4bff-9329-ab289904cf68\";\r\n\t\tString appKey = \"3526616f2ecf2beeceac7f7a940dce41\";\r\n\t\tString appSecret = \"afab22a1e6124bbd93179adb37188fe5a9cdbc5d78dc1631be2d6a4efc896c83\";\r\n\t\tDefaultKaolaClient client = new DefaultKaolaClient(serverUrl, accessToken, appKey, appSecret);\r\n\r\n\t\tItemAddRequest request = (ItemAddRequest) ObjectFieldManager.pushValues(new ItemAddRequest(), createAddItemRequest());\r\n\t\tSystem.out.println(JsonUtils.toJson(request));\r\n\t\tItemAddResponse response = client.execute(request);\r\n\t\tSystem.out.println(JsonUtils.toJson(response));\r\n\t}",
"@Test\n public void addRole(){\n }",
"@Test\n public void testCustomerFactoryCreate() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(1, customerController.getCustomerList().size());\n }",
"@Test\r\n public void testAddR() {\r\n TestingTypeList test = new TestingTypeList();\r\n test.addTestingType(\"TestType\", \"test\");\r\n\r\n assertEquals(1, test.size());\r\n assertFalse(test.isEmpty());\r\n\r\n // invalid index\r\n try {\r\n test.getTestingTypeAt(2);\r\n fail();\r\n } catch (IndexOutOfBoundsException e) {\r\n assertEquals(1, test.size());\r\n }\r\n\r\n assertEquals(\"TestType\", test.getTestingTypeAt(0).getName());\r\n assertEquals(0, test.indexOf(\"TT1\"));\r\n assertEquals(0, test.indexOfName(\"TestType\"));\r\n\r\n Object[][] testArray = test.get2DArray();\r\n assertTrue(testArray[0][0].equals(\"TT1\"));\r\n assertTrue(testArray[0][1].equals(\"TestType\"));\r\n assertTrue(testArray[0][2].equals(\"test\"));\r\n\r\n test.addTestingType(\"TestType2\", \"test2\");\r\n test.addTestingType(\"TestType3\", \"test3\");\r\n\r\n testArray = test.get2DArray();\r\n assertTrue(testArray[1][0].equals(\"TT2\"));\r\n assertTrue(testArray[1][1].equals(\"TestType2\"));\r\n assertTrue(testArray[1][2].equals(\"test2\"));\r\n\r\n assertEquals(\"TestType2\", test.removeTestingTypeAt(1).getName());\r\n assertTrue(test.removeTestingType(\"TT1\"));\r\n\r\n }",
"@Test\n public void testSplitRoomReservationReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find all bookings spanning different rooms\n Job j = new SplitRoomReservationReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test\n public void testCrear() {\n System.out.println(\"crear\");\n usuarioController.crear(usuario1);\n usuarioController.crear(usuario2);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n\tpublic void testAddHomework() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tassertTrue(this.instructor.homeworkExists(\"Class1\", 2017, \"HW1\"));\n\t}",
"@Test(alwaysRun=true, priority=15,enabled=true)\n\tpublic void addNewCustomer() throws InterruptedException, IOException {\t\n\t\tadminPage.addNewCustomer(driver);\n\t}",
"@Test\n public void testAddProduct() {\n }",
"@PostMapping(\"/company-types\")\n @Timed\n public ResponseEntity<CompanyType> createCompanyType(@Valid @RequestBody CompanyType companyType) throws URISyntaxException {\n log.debug(\"REST request to save CompanyType : {}\", companyType);\n if (companyType.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"companyType\", \"idexists\", \"A new companyType cannot already have an ID\")).body(null);\n }\n CompanyType result = companyTypeRepository.save(companyType);\n companyTypeSearchRepository.save(result);\n return ResponseEntity.created(new URI(\"/api/company-types/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"companyType\", result.getId().toString()))\n .body(result);\n }",
"@Test\n public void testAddRent() {\n System.out.println(\"addRent\");\n ReserveInfo reserveInfo = new ReserveInfo();\n reserveInfo.setGuestIDnumber(\"test\");\n reserveInfo.setGuestName(\"test\");\n reserveInfo.setRentType(\"test\");\n reserveInfo.setRoomType(\"test\");\n reserveInfo.setRentDays(1);\n reserveInfo.setRemark(\"test\");\n reserveInfo.setResult(true); \n BookingController instance = new BookingController();\n boolean expResult = true;\n boolean result = instance.addRent(reserveInfo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n }",
"@Test\n\tpublic void test_case3() throws Exception {\n\t\t\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/getTask\")\n\t\t\t\t.param(\"name\",\"Joey Tribianni\")\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t \t\t.accept(MediaType.APPLICATION_JSON))\n\t\t .andExpect(status().isOk())\n\t\t .andExpect(jsonPath(\"$[0].taskName\").value(\"Spring Test Case Addition\"))\n\t\t .andExpect(jsonPath(\"$[0].taskStatus\").value(\"Completed\"))\n\t\t .andReturn();\n\t\t\t\n\t}",
"@Test\n\tpublic void testAddColaboradorSuccess() {\n\n\t\tboolean result = grupo.addColaborador(col1);\n\t\tassertTrue(result);\n\t}",
"@Test\n public void addAndGetMap() throws Exception {\n String mapName = mockMvc.perform(post(\"/map/add\")\n .param(\"map_name\", \"mapTest\")\n .param(\"map_bin\",\"map_bin_test\")).andExpect(status().isOk())\n .andDo(print())\n .andReturn().getResponse().getContentAsString();\n assertEquals(\"add map\",mapName,\"mapTest\");\n\n /* get the added map */\n String mapUrl = mockMvc.perform(get(\"/map/get\")\n .param(\"name\", \"mapTest\"))\n .andExpect(status().isOk())\n .andDo(print())\n .andReturn().getResponse().getContentAsString();\n assertEquals(\"get map url\",mapUrl,\"map_bin_test\");\n\n /* clear db */\n mockMvc.perform(get(\"/map/delete\")\n .param(\"map_name\", \"mapTest\"))\n .andExpect(status().isOk())\n .andDo(print());\n }",
"@Test\r\n public void testCreateMethod() {\r\n DailyBudget budget = new DailyBudget();\r\n\r\n budget.setName(\"Test budget\");\r\n RequestBuilder requestBuilder = MockMvcRequestBuilders\r\n .post(\"/api/budget\")\r\n .characterEncoding(\"utf-8\")\r\n .accept(MediaType.APPLICATION_JSON)\r\n .contentType(MediaType.APPLICATION_JSON)\r\n .header(\"authorization\", authUtils.generateToken(testUser.getEmail()))\r\n .content(String.format(\"{%s: %s}\",\r\n getEnclosedString(\"id\"),\r\n getEnclosedString(testUser.getId().toString())));\r\n\r\n try {\r\n MvcResult result = mockMvc.perform(requestBuilder).andReturn();\r\n MockHttpServletResponse response = result.getResponse();\r\n BudgetRole createdRole;\r\n\r\n assertEquals(HttpStatus.CREATED.value(), response.getStatus());\r\n assertEquals(1, testRoles.size()); // make sure only one instance was created\r\n\r\n createdRole = testRoles.get(0);\r\n assertEquals(testUser, createdRole.getUser());\r\n assertEquals(BudgetRoleType.CREATOR.rank, createdRole.getRoleType().rank);\r\n }\r\n catch (Exception ex) {\r\n log.error(ex.getMessage());\r\n }\r\n }",
"@Test\n public void addPublisherTest() {\n Mockito.when(this.repo.save(testPublisher1)).thenReturn(testPublisher1);\n Publisher resultFromService = this.publisherService.addOne(testPublisher1);\n assertTrue(resultFromService.getWebsite().equals(\"www.whatthewhat.com\"));\n }",
"@Test\n public void testNewEntity() throws Exception {\n\n }",
"@Test\n public void testSaveProduct() throws Exception {\n when(mockProductService.createOrUpdateProduct(any(ProductRequest.class))).thenReturn(productResponse);\n String requestPayload = objectMapper.writeValueAsString(productRequest);\n RequestBuilder requestBuilder = MockMvcRequestBuilders.post(basePath + \"/product\")\n .content(requestPayload).contentType(MediaType.APPLICATION_JSON);\n MvcResult result = mockMvc.perform(requestBuilder).andReturn();\n MockHttpServletResponse response = result.getResponse();\n assertEquals(\"Status code must be same as expected\", HttpStatus.NOT_FOUND.value(), response.getStatus());\n }",
"@Test\r\n\t public void hasSubmitted3() {\n\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2017, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs60\", 2017);\r\n\t this.student.dropClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertTrue(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t }",
"@Test\n public void testAddWorkload_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Workload userType = new Workload();\n\n fixture.addWorkload(userType);\n }",
"@Then(\"^the account should be added successfully$\")\n\tpublic void the_account_should_be_added_successfully() throws Throwable {\n\t assertTrue(\"Verify that the account is saved\",waitforElementPresent(Edit,10));\n\t UIDriver.mystep.write(\"This is a custom message -- Account saved successfully\");\n\t result = AccessibilityDriver.run508OnPage(UIDriver.driver.getPageSource(),\"Successful Account Page\");\n\t UIDriver.mystep.write(result);\n\t}",
"@Test\n\tpublic void saveTest(){\n\t\t\n\t}",
"@Test\n\tvoid testOnAddToOrder() {\n\t}",
"public void addNewJob(String jobId, String shipTo, String shipperContact, String paymentDue){\n JobInfo job = new JobInfo(shipTo,\n shipperContact,\n paymentDue,\n address,\n String.valueOf(latitude),\n String.valueOf(longitude));\n Map<String, Object> postValues = job.toMap();\n Map<String, Object> childUpdates = new HashMap<>();\n childUpdates.put(\"deliverybot/jobs/\" + jobId + \"/info\", postValues);\n firebaseDatabaseReference.updateChildren(childUpdates);\n\n if (selectedDriver.isEmpty())\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/status\").setValue(\"Unassigned\");\n else\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/status\").setValue(\"Assigned\");\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/driver\").setValue(selectedDriver);\n\n // Add route information to firebase\n Route route = new Route(address,\n String.valueOf(latitude),\n String.valueOf(longitude),\n selectedDriver);\n Map<String, Object> postRouteUpdate = route.toMap();\n Map<String, Object> routeChildUpdates = new HashMap<>();\n routeChildUpdates.put(\"deliverybot/routes/\" + jobId, postRouteUpdate);\n firebaseDatabaseReference.updateChildren(routeChildUpdates);\n String toastMessage = getResources().getString(R.string.job_creation_toast);\n Toast.makeText(getApplicationContext(), toastMessage, Toast.LENGTH_LONG).show();\n finish();\n }",
"public void test_AddContestStatus_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n beanUnderTest.addContestStatus(status);\r\n fail(\"EntityAlreadyExistsException is expected.\");\r\n } catch (EntityAlreadyExistsException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void testAdd_02() {\n System.out.println(\"add\");\n \n Skill s = mock(Skill.class);\n when(s.getName()).thenReturn(\"Java\");\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.add(s);\n int result = instance.size();\n assertTrue(result==1);\n }",
"public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }",
"@Test\n public void testAddMine() throws Exception {\n Mine.addMine(9, 9);\n assertEquals(\"success\", Mine.addMine(9, 9));\n\n }",
"@Test\r\n\tpublic final void testAddRoom() {\n\t\tboolean success = roomServices.addRoom(expected2);\r\n\t\t// check if added successfully\r\n\t\tassertTrue(success);\r\n\t\t// need to copy the id from database since it autoincrements\r\n\t\tRoom actual = roomServices.getRoomByName(expected2.getName());\r\n\t\texpected2.setId(actual.getId());\r\n\t\t// check content of data\r\n\t\tassertEquals(expected2, actual);\r\n\t\t// delete room on exit\r\n\t\troomServices.deleteRoom(actual);\r\n\t}",
"@Test\n public void testAdd_01() {\n System.out.println(\"add\");\n \n Skill s = mock(Skill.class); \n SkillsList instance = new SkillsList();\n instance.add(s);\n int result = instance.size();\n assertTrue(result==1);\n }",
"@Test\r\n\tpublic void addEmployeeTestCase3() {\n\t\tEmployee employee3 = new Employee();\r\n\t\temployee3.name = \"Lingtan\";\r\n\t\temployee3.role = \"Ui designer\";\r\n\t\temployee3.email = \"lingtan@chainsys.com\";\r\n\t\temployee3.employeeID = \"Ling2655\";\r\n\t\temployee3.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee3.gender = \"Male\";\r\n\t\temployee3.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee3.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee3);\t\r\n\t}",
"@Test\n\tpublic void isNotExistingCaseNameAdded() {\n\t\tString caseName = \"led\";\n\t\tString cost = \"50\";\n\n\t\tboolean isAdded;\n\t\ttry {\n\t\t\tisAdded = CaseManagerService.addCaseType(caseName, cost);\n\t\t\tassertTrue(isAdded);\n\t\t} catch (ServiceException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\n\t}",
"public void testAddAction() {\n AccuracyMockAddAction addAction = new AccuracyMockAddAction(\n modelElement, classToolUtil, manager, namespace);\n\n assertEquals(\"Should return ModelElement instance.\", modelElement,\n addAction.getModelElement());\n assertEquals(\"Should return ClassToolUtil instance.\", classToolUtil,\n addAction.getClassToolUtil());\n }",
"@Test\n public void testGroupBookingsReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find reservations with more than X guests\n Job j = new GroupBookingsReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"public void testStorageContainerAddWithArrayType() //Container Added only with the existing values of Storage Type\r\n\t\t{\n\t\t\tString[] arr = getDataObject().getValues();\r\n\r\n\t\t\tStorageContainerForm storageContainerForm = new StorageContainerForm();\r\n\t\t\tsetRequestPathInfo(\"/OpenStorageContainer\");\r\n\t\t\taddRequestParameter(\"operation\",\"add\");\r\n\t\t\taddRequestParameter(\"pageOf\",\"pageOfStorageContainer\");\r\n\t\t\tsetActionForm(storageContainerForm);\r\n\t\t\tactionPerform();\r\n\t\t\tverifyForward(\"success\");\r\n\r\n\t\t\tsetRequestPathInfo(\"/StorageContainer\");\r\n\t\t\taddRequestParameter(\"operation\",\"add\");\r\n\t\t\taddRequestParameter(\"pageOf\",\"pageOfStorageContainer\");\r\n\t\t\tsetActionForm(storageContainerForm);\r\n\t\t\tactionPerform();\r\n\t\t\tverifyForward(\"pageOfStorageContainer\");\r\n\r\n\t\t\tstorageContainerForm=(StorageContainerForm)getActionForm();\r\n\t\t\tstorageContainerForm.setTypeId(Long.parseLong(arr[0]));\r\n\t\t\tstorageContainerForm.setSelectedContainerName(arr[1]);\r\n\t\t\tstorageContainerForm.setSiteId(Long.parseLong(arr[2]));\r\n\t\t\tstorageContainerForm.setNoOfContainers(Integer.parseInt(arr[3]));\r\n\t\t\tstorageContainerForm.setDefaultTemperature(arr[4]);\r\n\t\t\tstorageContainerForm.setOneDimensionCapacity(Integer.parseInt(arr[5]));\r\n\t\t\tstorageContainerForm.setTwoDimensionCapacity(Integer.parseInt(arr[6]));\r\n\t\t\tstorageContainerForm.setActivityStatus(arr[7]);\r\n\r\n\t\t\tlong[] arr1={Long.parseLong(arr[8].trim())};\r\n\t\t\tstorageContainerForm.setHoldsSpecimenArrTypeIds(arr1);\r\n\r\n\t\t\tlong[] arr2={Long.parseLong(arr[9].trim())};\r\n\t\t\tstorageContainerForm.setHoldsStorageTypeIds(arr2);\r\n\r\n\t\t\tString[] arr3={(arr[10].trim())};\r\n\t\t\tstorageContainerForm.setHoldsTissueSpType(arr3);\r\n\r\n\t\t\tString[] arr4={(arr[11].trim())};\r\n\t\t\tstorageContainerForm.setHoldsFluidSpType(arr4);\r\n\r\n\t\t\tString[] arr5={(arr[12].trim())};\r\n\t\t\tstorageContainerForm.setHoldsCellSpType(arr5);\r\n\r\n\t\t\tString[] arr6={(arr[13].trim())};\r\n\t\t\tstorageContainerForm.setHoldsMolSpType(arr6);\r\n\r\n\r\n\t\t\tsetRequestPathInfo(\"/StorageContainerAdd\");\r\n\t\t\taddRequestParameter(\"operation\",\"add\");\r\n\t\t\taddRequestParameter(\"pageOf\",\"pageOfStorageType\");\r\n\t\t\tsetActionForm(storageContainerForm);\r\n\t\t\tactionPerform();\r\n\t\t\tverifyForward(\"success\");\r\n\t\t\tverifyActionMessages(new String[]{\"object.add.successOnly\"});\r\n\t\t}",
"@Test\n public void saveActivity() {\n }",
"@Test (groups = {\"Functional\"})\n public void testAddProject() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String projectName = \"TestProject\";\n String testAccount = \"Account1\";\n createProject.setProjectName(projectName);\n createProject.clickPublicProjectPrivacy();\n createProject.setAccountDropDown(testAccount);\n project = createProject.clickCreateProject();\n\n //Then\n assertEquals(PROJECT_NAME, project.getTitle());\n }"
] | [
"0.7303231",
"0.68526083",
"0.6298814",
"0.6213486",
"0.60204035",
"0.6004255",
"0.5981106",
"0.58452743",
"0.5742877",
"0.57194716",
"0.5691005",
"0.56657207",
"0.562447",
"0.5564696",
"0.5561563",
"0.5543921",
"0.55380535",
"0.55225205",
"0.5508583",
"0.5488613",
"0.54621327",
"0.5440042",
"0.5424011",
"0.5422406",
"0.541395",
"0.54057914",
"0.54033023",
"0.5400136",
"0.53523964",
"0.5345113",
"0.53435886",
"0.53417075",
"0.5327589",
"0.52981853",
"0.5282773",
"0.5282289",
"0.5274792",
"0.5271328",
"0.5258748",
"0.52402294",
"0.5239685",
"0.5234458",
"0.52289414",
"0.52282584",
"0.52223223",
"0.522069",
"0.52174455",
"0.5212194",
"0.5206087",
"0.5205508",
"0.51932204",
"0.5188445",
"0.5184644",
"0.51765007",
"0.51752704",
"0.5173968",
"0.51737785",
"0.51714987",
"0.5161921",
"0.51585793",
"0.51525",
"0.514398",
"0.513944",
"0.5137734",
"0.5131637",
"0.5128056",
"0.51262707",
"0.51189005",
"0.511286",
"0.51114386",
"0.5110534",
"0.51078635",
"0.50978935",
"0.5094253",
"0.508301",
"0.5082844",
"0.5079712",
"0.5071087",
"0.5068559",
"0.5063864",
"0.5058639",
"0.5050936",
"0.5043074",
"0.50385606",
"0.5038035",
"0.503584",
"0.5035163",
"0.5030133",
"0.5028449",
"0.5026914",
"0.50267595",
"0.50253016",
"0.5022036",
"0.5020723",
"0.5016457",
"0.50134706",
"0.5011498",
"0.5009873",
"0.50018156",
"0.499129"
] | 0.80376107 | 0 |
Test Failure of addNewJobType method, of class JobsController. | @Test
public void testAddNewJobType_request_Internal_Server_Error()
{
JobTypes jobType = new JobTypes(1, "test1");
doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));
try {
mockMvc.perform(MockMvcRequestBuilders.post("/job_types/add")
.content(asJsonString(jobType))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isInternalServerError())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"2\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(failMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n\tpublic void testAddUsersFailed() throws Exception {\n\n\t\tString id = \"dccfdfd1213\";\n\t\tmockMvc.perform(get(\"/api/v1/project/{projectid}/adduser\", id)).andExpect(status().is4xxClientError())\n\t\t\t\t.andDo(print());\n\n\t}",
"@Test\n public void testUpdateJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"public void addJob(String jobID, String jobTitle, String jobType,\n String salary, String jobDescription, String expirationDate,\n String contactEmail) {\n //Will check if the amount is less than 100 jobs added\n //then Will add the job to the end of the arrayList\n //will return true if added else return false\n currentJob = new Job(contactEmail, jobType, jobID, jobDescription, salary, jobTitle, expirationDate);\n if(jobs.size() <= 100)\n {\n jobs.add(currentJob);\n String success = String.format(\"================JOB POSTING SUCCESS================\\n\" +\n \"A new job has been posted with following details:\\n\" +\n \"Job ID: %s\\n\" +\n \"Job Name: %s\\n\" +\n \"Job Type: %s\\n\" +\n \"Salary: %s\\n\" +\n \"Job Description: %s\\n\" +\n \"Expiration Date: %s\\n\" +\n \"Contact email: %s\\n\", jobID, jobTitle, jobType, salary, jobDescription, expirationDate, contactEmail);\n\n System.out.println(success);\n } else {\n String success = String.format(\"================JOB POSTING FAILURE ================\\n\" +\n \"THERE ARE MORE THAN 100 JOBS IN THE SYSTEM:\\n\");\n System.out.println(success);\n }\n }",
"@Override\n\tpublic void test00500Add_Validate_ExistingRecord() throws Exception\n\t{\n\t}",
"public void test_AddPrizeToContest_Failure2() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Prize prize = createPrizeForTest();\r\n\r\n // It should process successfully.\r\n beanUnderTest.addPrizeToContest(100, prize.getPrizeId());\r\n\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"@Then(\"^new type is saved$\")\n public void newTypeIsSaved() throws Throwable {\n throw new PendingException();\n }",
"public void test_AddContestStatus_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n beanUnderTest.addContestStatus(status);\r\n fail(\"EntityAlreadyExistsException is expected.\");\r\n } catch (EntityAlreadyExistsException e) {\r\n // success\r\n }\r\n }",
"@Test\r\n\tvoid testUpdateSkillRecordShouldFail() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint playerSru = 99999999;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standardLevel = 5;\r\n\t\tint spinLevel = 4;\r\n\t\tint popLevel = 3;\r\n\t\tString passingNotes = \"Passing\";\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint frontLevel= 4;\r\n\t\tint rearLevel = 4;\r\n\t\tint sideLevel = 3;\r\n\t\tint scrabbleLevel = 2;\r\n\t\tString tacklingNotes = \"Tackling\";\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint dropLevel= 4;\r\n\t\tint puntLevel = 5;\r\n\t\tint grubberLevel = 3;\r\n\t\tint goalLevel = 3;\r\n\t\tString kickingNotes = \"Kicking\";\r\n\t\r\n\t\tboolean successful = ctrl.createNewSkillRecord(playerSru, standardLevel, spinLevel, popLevel, passingNotes,\r\n\t\t\t\tfrontLevel, rearLevel, sideLevel, scrabbleLevel, tacklingNotes,\r\n\t\t\t\tdropLevel, puntLevel, grubberLevel, goalLevel, kickingNotes);\r\n\t\t\r\n\t\tassertTrue(successful);\t\r\n\t}",
"private static void testValid() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_valid; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_valid_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n } finally {\n userInt.removeJob(job);\n }\n Assert.assertTrue(\"JobFactory returned null for valid job \" + job_path, job != null);\n Assert.assertTrue(\"JobFactory threw an exception for valid job \" + job_path, exc == null);\n }\n SchedulerTHelper.log(jobs_valid + \" valid jobs successfully created\");\n }",
"public void test_AddPrizeToContest_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n // It should process successfully.\r\n beanUnderTest.addPrizeToContest(contest.getContestId(), 1000);\r\n\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tWindow.alert(\"failed to add new Information Request in Updated list\");\r\n\t\t\t}",
"@Test\n\tpublic void isExistingCaseNameAdded() {\n\t\tString caseName = \"leather Case\";\n\t\tString cost = \"50\";\n\t\ttry {\n\t\t\tCaseManagerService.addCaseType(caseName, cost);\n\t\t\tfail();\n\t\t} catch (ServiceException e) {\n\t\t\tassertEquals(\"Case Name is Already Exist\",e.getMessage());\n\t\t}\n\t}",
"public void test_AddContestStatus_Failure2() throws Exception {\r\n try {\r\n initContext();\r\n\r\n entityManager.close();\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"public void test_AddDocument_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Document document = createDocumentForTest();\r\n beanUnderTest.addDocument(document);\r\n beanUnderTest.addDocument(document);\r\n fail(\"EntityAlreadyExistsException is expected.\");\r\n } catch (EntityAlreadyExistsException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(successMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Then ( \"the Prescription was not added\" )\r\n public void failure () {\r\n // assertTrue( driver.getPageSource().contains( \"Error occurred creating\r\n // prescription\" ) );\r\n }",
"@Test(expected = UsernameNotFoundException.class)\n public void createNewComputerBuildFailure() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n computerBuildService.createNewComputerBuild(computerBuild);\n }",
"void persistentFailure(String category);",
"@Test\n public void testGetJobTypesById_request_Not_Found()\n { \n Optional<JobTypes> emptyJobType = Optional.empty();\n \n doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(emptyJobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isNotFound())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"public void test_AddDocumentToContest_Failure2() throws Exception {\r\n try {\r\n\r\n this.initContext();\r\n Document document = this.createDocumentForTest();\r\n\r\n beanUnderTest.addDocument(document);\r\n\r\n beanUnderTest.addDocumentToContest(document.getDocumentId(), 1000);\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"@Override\n public void testTaskManagerFailure(\n TestEnvironment testEnv,\n ExternalContext<RowData> externalContext,\n ClusterControllable controller)\n throws Exception {\n }",
"public void createFailure() {\n\t\tgetController().changeFree(true);\t\t\n\t\tdisplayAdvertisement(\"opponent failure\");\n\t\tvalidate();\n\t}",
"@Test\n\tpublic void testCreateTicketFail() {\n\t}",
"@Test\n\tpublic void testAddVolunteer() {\n\t\tassertEquals(initialJob.getEnrolledVolunteers().size(), 0);\n\t\tinitialJob.addVolunteer((Volunteer) volunteer, WorkLoad.MEDIUM);\n\t\tassertEquals(initialJob.getEnrolledVolunteers().size(), 1);\n\t\t\n\t\t// Attempt to exceed max job duty requirement\n\t\tinitialJob.addVolunteer((Volunteer) volunteer, WorkLoad.MEDIUM);\n\t\tassertEquals(initialJob.getEnrolledVolunteers().size(), 1);\n\t}",
"@PostMapping(\"/type-tests\")\n @Timed\n public ResponseEntity<TypeTest> createTypeTest(@Valid @RequestBody TypeTest typeTest) throws URISyntaxException {\n log.debug(\"REST request to save TypeTest : {}\", typeTest);\n if (typeTest.getId() != null) {\n throw new BadRequestAlertException(\"A new typeTest cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n TypeTest result = typeTestService.save(typeTest);\n return ResponseEntity.created(new URI(\"/api/type-tests/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@Test\n\tpublic void isNotExistingCaseNameAdded() {\n\t\tString caseName = \"led\";\n\t\tString cost = \"50\";\n\n\t\tboolean isAdded;\n\t\ttry {\n\t\t\tisAdded = CaseManagerService.addCaseType(caseName, cost);\n\t\t\tassertTrue(isAdded);\n\t\t} catch (ServiceException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\n\t}",
"@Override\r\n\tpublic void jobFailed(Job failedJob, Job retry) {\n\t\tgetCloudsim().log(\"WARNING: Job failed: \" + failedJob.getID());\r\n\t}",
"@Test\n public void save_Negative() throws LocationSchemeAlreadyExists {\n LocationSchemeDTO locationScheme = new LocationSchemeDTO(false, EXISTING_SCHEME_NAME, \"Address 2\");\n locationScheme.setId(EXISTING_SCHEME2_ID);\n SectorDTO sector = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector2 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector3 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 0, 0, SectorType.PARTER);\n List<SectorDTO> sectors = Arrays.asList(sector, sector2, sector3);\n\n LocationSchemeSectorsDTO locationSchemeSectorsDTO = new LocationSchemeSectorsDTO(sectors, locationScheme);\n when(locationSchemeService.save(any(LocationScheme.class)))\n .thenThrow(LocationSchemeAlreadyExists.class);\n testRestTemplate.withBasicAuth(\"admin\", \"password\").postForEntity(URL_PREFIX, locationSchemeSectorsDTO, LocationSchemeSectorsDTO.class);\n\n verify(locationSchemeService, times(1)).save(any(LocationScheme.class));\n }",
"void failure(String category);",
"@Test\n public void testAllocationScraperJob() throws Exception {\n AllocationScraperJob j = new AllocationScraperJob();\n j.setStatus( JobStatus.submitted );\n j.setStartDate( Calendar.getInstance().getTime() );\n j.setDaysAhead( 27 );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Then ( \"^The labor and delivery report is not updated successfully$\" )\n public void unsuccessfulEdit () {\n // confirm that the error message is displayed\n waitForAngular();\n try {\n final String temp = driver.findElement( By.name( \"errorMsg\" ) ).getText();\n if ( temp.equals( \"\" ) ) {\n fail();\n }\n }\n catch ( final Exception e ) {\n }\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Test\n public void testCreateConfirmDepositAmountsJob() throws Exception {\n Job asj = new AllocationScraperJob();\n asj.setStatus( JobStatus.completed );\n dao.insertJob( asj );\n\n // setup the job\n Job j = new CreateConfirmDepositAmountsJob();\n j.setStatus( JobStatus.submitted );\n j.getDependentJobs().add( asj );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"public void test_AddDocumentToContest_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n beanUnderTest.addDocumentToContest(1000, contest.getContestId());\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"@Test\n\tpublic void testAddItem() {\n\t\tassertEquals(\"testAddItem(LongTermTest): valid enter failure\", 0, ltsTest.addItem(item4, 10)); //can enter\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid available capacity after adding\", 900, ltsTest.getAvailableCapacity());\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid item count after adding\", 10, ltsTest.getItemCount(item4.getType()));\n\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid enter failure\", -1, ltsTest.addItem(item4, 100)); // can't enter\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid available capacity after adding\", 900, ltsTest.getAvailableCapacity());\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid item count after adding\", 10, ltsTest.getItemCount(item4.getType()));\n\t}",
"@Deployment(resources = {\"org/camunda/bpm/engine/test/api/mgmt/IncidentTest.testShouldCreateIncidentOnFailedStartTimerEvent.bpmn\"})\n @Test\n public void shouldCreateIncidentOnFailedStartTimerEvent() {\n JobQuery jobQuery = managementService.createJobQuery();\n assertEquals(1, jobQuery.count());\n\n Job job = jobQuery.singleResult();\n String jobId = job.getId();\n\n while(0 != job.getRetries()) {\n try {\n managementService.executeJob(jobId);\n fail();\n } catch (Exception e) {\n // expected\n }\n job = jobQuery.jobId(jobId).singleResult();\n\n }\n\n // job exists\n job = jobQuery.singleResult();\n assertNotNull(job);\n\n assertEquals(0, job.getRetries());\n\n // incident was created\n Incident incident = runtimeService.createIncidentQuery().configuration(job.getId()).singleResult();\n assertNotNull(incident);\n\n // manually delete job for timer start event\n managementService.deleteJob(job.getId());\n }",
"@Test(timeout = 4000)\n public void test199() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.meta();\n component0.afterAdd();\n assertEquals(\"Any_1\", component0.getComponentId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }",
"@Test\n public void testNewEntity() throws Exception {\n\n }",
"@Override\n\tpublic void onTestFailure(ITestResult tr) {\n\t\tsuper.onTestFailure(tr);\n\t}",
"@Override\n\tpublic void onTestFailure(ITestResult tr) {\n\t\tsuper.onTestFailure(tr);\n\t}",
"public void test_AddContestStatus_Failure4() throws Exception {\r\n try {\r\n initContext();\r\n\r\n entityManager.enablePersistenceException(true);\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"public void test_AddDocument_Failure2() throws Exception {\r\n try {\r\n initContext();\r\n\r\n entityManager.close();\r\n\r\n Document document = createDocumentForTest();\r\n\r\n beanUnderTest.addDocument(document);\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"public void menuJobTest() throws Exception;",
"@Override\n\tpublic void onTestFailure(ITestResult arg0) {\n\n\t}",
"@Override\r\n\tpublic void onTestFailure(ITestResult arg0) {\n\t\t\r\n\t}",
"@Test(timeout = 4000)\n public void test142() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ActionExpression actionExpression0 = new ActionExpression(\"Can't add components to a component that is not an instance of IContainer.\");\n Form form0 = new Form(errorPage0, \"Can't add components to a component that is not an instance of IContainer.\", actionExpression0);\n Submit submit0 = new Submit(form0, \"I:>RYBiBrZ6\", \"wheel_ErrorPage\");\n // Undeclared exception!\n try { \n submit0.form(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // A Form must always have a given componentId.\n //\n verifyException(\"wheel.components.Form\", e);\n }\n }",
"@Test\n public void testValidationFailed() {\n fail();\n }",
"@Test\n void saveFail() {\n try {\n Api2 instance = new Api2();\n instance.save(new TestEntity());\n } catch (Exception error) {\n System.out.println(error);\n }\n }",
"@Test\n public void tcEditProfileWithInvalidData() {\n\n }",
"public void test_AddContestStatus_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n entityManager.enableTransactionException(true);\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Override\n\tpublic void fail(Throwable t) {\n\t}",
"public void fail( String reason );",
"@Test\n public void testAddToWaitList() throws Exception {\n }",
"public void test_AddPrizeToContest_Failure5() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n Prize prize = createPrizeForTest();\r\n\r\n entityManager.enablePersistenceException(true);\r\n // It should process successfully.\r\n beanUnderTest.addPrizeToContest(contest.getContestId(),\r\n prize.getPrizeId());\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void testSecondSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"location\")\n .param(\"searchTerm\", \"chicago\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").doesNotExist());\n }",
"public void test_AddDocumentToContest_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n entityManager.close();\r\n beanUnderTest.addDocumentToContest(1, 1);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Then(\"^Post should be created successfully$\")\n\tpublic void post_should_be_created_successfully() throws Throwable {\n\t throw new PendingException();\n\t}",
"@When(\"^I modify journey type$\")\n public void iModifyJourneyType() throws Throwable {\n throw new PendingException();\n }",
"@Test\n public void Tester_UI_when_find_contact_not_added() throws Exception{System.out.println(\"TODO\") ;}",
"@Test\n public void testUnpaidDepositReportJob() throws Exception {\n Job allocScraperJob = new AllocationScraperJob();\n allocScraperJob.setStatus( JobStatus.completed );\n dao.insertJob( allocScraperJob );\n\n // setup a job to scrape allocation info\n Job j = new UnpaidDepositReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocScraperJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"public void test_AddPrizeToContest_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n Prize prize = createPrizeForTest();\r\n\r\n entityManager.close();\r\n // It should process successfully.\r\n beanUnderTest.addPrizeToContest(contest.getContestId(),\r\n prize.getPrizeId());\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void testSplitRoomReservationReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find all bookings spanning different rooms\n Job j = new SplitRoomReservationReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test(groups = { \"survey-creation\", \"all-tests\", \"key-tests\" })\r\n public void unsuccessfullyCreatedSurveyWhenEmailIsNotMappedAndClickSaveButton() throws Exception {\r\n\r\n log.startTest( \"LeadEnable: Verify that survey can not be created when Email is not mapped and you click Save button\" );\r\n unsuccessfullyCreateSurveyWhenSaving( true );\r\n log.endTest();\r\n }",
"@Test\n public void autocreateLesson() throws Exception{\n\n }",
"@Test(expected = NotAbleToCreateTestException.class)\n public void createNewTestF02_TC01() throws NotAbleToCreateTestException {\n appService.createNewTest();\n }",
"@Test\r\n\tpublic void testAddPortfolios2() {\n\t\tassertTrue(\"Error adding initial stocks to portfolios\", false);\r\n\t}",
"public void test_UpdateContestStatus_Failure2() throws Exception {\r\n try {\r\n initContext();\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n entityManager.close();\r\n\r\n status.setName(\"sss\");\r\n beanUnderTest.updateContestStatus(status);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Test\n void addItem() {\n }",
"public abstract void\n fail(ValidationError error);",
"@Test\n public void testSaveException() {\n when(client.receiveFromServer()).thenThrow(new RuntimeException(\"plant out of stock\"));\n\n service.save(plantedPlant);\n\n verify(client).sendToServer(\"save#PlantedPlant\");\n verify(client).sendToServer(plantedPlant);\n }",
"@Test\r\n\tvoid testContactServiceAddDuplicateContact() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.addContact(contact);\r\n\t\t});\r\n\t}",
"@Override\n\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\tif (addListener != null) {\n\t\t\t\t\t\taddListener.onAddFail();\n\t\t\t\t\t}\n\t\t\t\t}",
"@Test\r\n\tpublic void testRegisterTimeforWrongActivity() throws Exception {\r\n\t\tcompany.employeeLogin(\"KANO\", \"empassword2\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\temployee.registerSpentTime(project.getID()+\"-Designing\", 100);\r\n\t\t\tfail(\"OperationNotAllowedException exception should have been thrown\");\r\n\t\t} catch (OperationNotAllowedException e) {\r\n\t\t\tassertEquals(\"Employee is not assigned to the chosen activity\", e.getMessage());\r\n\t\t\tassertEquals(\"Register spent time\", e.getOperation());\r\n\t\t}\r\n\t}",
"void onHadoopJobFailure(LmmpJob job, String failReason);",
"public void test_CreateContest_Failure2_EntityAlreadyExistsException()\r\n throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n\r\n beanUnderTest.createContest(contest);\r\n\r\n // Persist it again.\r\n beanUnderTest.createContest(contest);\r\n\r\n fail(\"EntityAlreadyExistsException is expected.\");\r\n } catch (EntityAlreadyExistsException e) {\r\n // success\r\n }\r\n }",
"@Override\n public void fail(String status, String msg, Object object) {\n\n }",
"@Test\n public void testAddPurityReport() {\n Assert.assertEquals(\"incorrect initial purity report list size\", 0,\n theModel.getPurityReportList().size());\n try {\n WaterPurityReport a = new WaterPurityReport(Model.getCurrentAccount(), \"Safe\",\n 400, 300, \"Today\", new Location(40, 30));\n WaterPurityReport b = new WaterPurityReport(Model.getCurrentAccount(), \"Unsafe\",\n 250, 100, \"Today\", new Location(25, 50));\n theModel.addPurityReport(a);\n theModel.addPurityReport(b);\n Assert.assertEquals(\"incorrect size of purity report list after adding\", 2,\n theModel.getPurityReportList().size());\n } catch (Exception e) {\n Assert.fail(\"Adding purity reports shouldn't have failed here\");\n e.printStackTrace();\n }\n }",
"@Test\n public void testGetJobTypesById_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n \n Optional<JobTypes> jobType = Optional.of(jobType1);\n \n doReturn(jobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\r\n\tpublic void testAddPortfolios1() {\n\t\tassertTrue(\"Error adding initial stocks to portfolios\", false);\r\n\t}",
"public void test_AddContestChannel_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n ContestChannel channel = createContestChannelForTest();\r\n\r\n beanUnderTest.addContestChannel(channel);\r\n\r\n beanUnderTest.addContestChannel(channel);\r\n fail(\"EntityAlreadyExistsException is expected.\");\r\n } catch (EntityAlreadyExistsException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void validAdd() throws Exception {\n Logger.getGlobal().info(\"Start validAdd test\");\n RestaurantVO restaurant = new RestaurantVO();\n restaurant.setId(\"999\");\n restaurant.setName(\"Test Restaurant\");\n\n ResponseEntity<Restaurant> restaurants = restaurantController.add(restaurant);\n Assert.assertEquals(HttpStatus.CREATED, restaurants.getStatusCode());\n Logger.getGlobal().info(\"End validAdd test\");\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testErrorShapeDoesntExist() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addAction(ScaleOvalAction.createScaleOvalAction(\"O\", 0, 100,\n 100, 100, 1, 1));\n }",
"@Test(timeout = 4000)\n public void test150() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Submit submit0 = new Submit(errorPage0, \"X\", \"java.lang.String@0000000004\");\n // Undeclared exception!\n try { \n submit0.dt((Object) \"sub\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"@Test(dataProvider = \"testData\")\r\n\r\n public void createVacancyTest(String CVOption, String jobVisibility) throws InterruptedException {\r\n //STEP 1\r\n homePage.getSideBar().clickOnJobsMenu();\r\n Assert.assertTrue(jobsPage.isDisplayed());\r\n\r\n //STEP 2\r\n jobsPage.addNewJob();\r\n Assert.assertTrue(newJobPage.isDisplayed());\r\n Assert.assertTrue(newJobPage.getDetails().isDisplayed());\r\n\r\n //STEP 3\r\n newJobPage.getDetails().enterJobTitle(jobTitle);\r\n\r\n //STEP 4\r\n newJobPage.getDetails().enterJobLocation(randomCountry());\r\n Assert.assertTrue(newJobPage.getSearchSuggestion().isDisplayed());\r\n newJobPage.getSearchSuggestion().clickSuggestionByIndex();\r\n\r\n //STEP 5\r\n newJobPage.getDetails().enterSomeNote(randomText());\r\n\r\n //STEP 6\r\n newJobPage.getDetails().clickOnNextButton();\r\n Assert.assertTrue(newJobPage.getApplication().isDisplayed());\r\n\r\n //STEP 7\r\n newJobPage.getApplication().clickOnCVOption();\r\n Assert.assertTrue(newJobPage.getOptions().isDisplayed());\r\n newJobPage.getOptions().clickOnOption(CVOption);\r\n Assert.assertTrue(newJobPage.getApplication().isUpdateMessageDisplayed());\r\n\r\n //STEP 8\r\n newJobPage.getApplication().clickOnNextButton();\r\n Assert.assertTrue(newJobPage.getTeam().isDisplayed());\r\n\r\n //STEP 9\r\n newJobPage.getTeam().inviteTeamMember(email);\r\n Assert.assertTrue(newJobPage.getInvitedEmail().isDisplayed());\r\n Assert.assertEquals(newJobPage.getInvitedEmail().invitedEmailAddress(), email, \"the emails are not matching\");\r\n\r\n //STEP 10\r\n newJobPage.getTeam().clickOnNextButton();\r\n Assert.assertTrue(newJobPage.getEvaluation().isDisplayed());\r\n\r\n //STEP 11\r\n int skillCount = newJobPage.getEvaluation().getSkillCount();\r\n newJobPage.getEvaluation().addSomeSkill(randomSkill());\r\n int newSkillCount = newJobPage.getEvaluation().getSkillCount();\r\n Assert.assertTrue(newSkillCount > skillCount);\r\n\r\n //STEP 12\r\n newJobPage.getEvaluation().clickOnNextButton();\r\n Assert.assertTrue(newJobPage.getWorkflow().isDisplayed());\r\n\r\n //STEP 13\r\n newJobPage.getWorkflow().enterPipelineStage(stage);\r\n\r\n //STEP 14\r\n newJobPage.getWorkflow().clickOnNextButton();\r\n Assert.assertTrue(newJobPage.getOptional().isDisplayed());\r\n Assert.assertTrue(newJobPage.getInternalJobInformation().isDisplayed());\r\n Assert.assertTrue(newJobPage.getSalaryInfromation().isDisplayed());\r\n\r\n //STEP 15\r\n newJobPage.getInternalJobInformation().enterInternalJobInformation(internalJobTitle, id + \"\");\r\n\r\n //STEP 16\r\n newJobPage.getSalaryInfromation().enterSalaryInformation(minSalary + \"\", maxSalary + \"\", currency, minHour + \"\", maxHour + \"\");\r\n\r\n //STEP 17\r\n newJobPage.getOptional().clickOnNextButton();\r\n Assert.assertTrue(newJobPage.getPublish().isDisplayed());\r\n\r\n //STEP 18\r\n newJobPage.getPublish().chooseVisibility(jobVisibility);\r\n Assert.assertTrue(newJobPage.getPublish().updateMessageDisplayed());\r\n\r\n //STEP 19\r\n newJobPage.getPublish().clickOnSaveButton();\r\n Assert.assertTrue(newJobPage.getCreatedJobPage().isDisplayed());\r\n\r\n //EXPECTED RESULT\r\n Assert.assertEquals(newJobPage.getCreatedJobPage().getJobTitle(), internalJobTitle);\r\n Assert.assertEquals(newJobPage.getCreatedJobPage().getCreatedJobStatus(), jobVisibility);\r\n Assert.assertNotEquals(newJobPage.getCreatedJobPage().getJobInfo(), \"Remote\");\r\n }",
"@CrossOrigin\n\t@RequestMapping(value=\"/setFailure\", method= RequestMethod.POST)\n\tpublic JSONObject setFailure(@RequestBody StatusRequestBodyMessage requestBody, @RequestHeader HttpHeaders headers) {\n\t\tHeadersManager.setHeaders(headers);\n\t\ttry {\n\t\t String jobId = requestBody.jobId;\n\t\t \n\t\t SimpleResultSet res = new SimpleResultSet();\n\t\t LoggerRestClient logger = LoggerRestClient.getInstance(log_prop);\n\t \tLoggerRestClient.easyLog(logger, \"Status Service\", \"setFailure start\", \"JobId\", jobId, \"Message\", requestBody.message);\n\t \tLocalLogger.logToStdOut(\"Status Service setFailure start JobId=\" + jobId + \" Message=\" + requestBody.message);\n\t \t\n\t\t try {\n\t\t \t\n\t\t \tJobTracker tracker = this.getTracker();\n\t\t \ttracker.setJobFailure(jobId, requestBody.message);\n\t\t\t res.setSuccess(true);\n\t\t\t \n\t\t } catch (Exception e) {\n\t\t \tres.setSuccess(false);\n\t\t \tres.addRationaleMessage(SERVICE_NAME, \"setFailure\", e);\n\t\t\t LoggerRestClient.easyLog(logger, \"Status Service\", \"setFailure exception\", \"message\", e.toString());\n\t\t\t LocalLogger.logToStdOut(\"Status Service setFailure exception message=\" + e.toString());\n\t\t } \n\t\t \n\t\t return res.toJson();\n\t\t \n\t\t} finally {\n\t \tHeadersManager.clearHeaders();\n\t }\n\t\t \n\t}",
"private void failJobAndIndependentStages(ActiveJob activeJob, String reason) {\n failJobAndIndependentStages(activeJob, reason, null);\n }",
"@Test\n void addItem() {\n\n }",
"@Test\n void test010_addUsersDuplicateUserException() {\n // adding duplicate user --> DuplicateUserException\n\n }",
"@Test\n public void testFailedStoreCreationCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().requireInformationMessage().requireMessage(\"Store Creation Failed\\n\");\n }",
"public CampaignAddPage failToUpdate()\r\n\t{\r\n\t\treadconfig();\r\n\t\tdriver.findElement(By.id(library.getProperty(\"camp_edit_submit\"))).click();\r\n\t\ttry {\r\n\t\t\tThread.sleep(4000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tAssert.assertEquals(driver.getTitle(),library.getProperty(\"camp_edit_page_title\"));\r\n\t\treturn new CampaignAddPage(driver);\r\n\t}",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test\n public void testAddAccount() {\n Assert.assertEquals(\"Initial size of reporter list is incorrect\", 1,\n theModel.getAccountList().size());\n try {\n theModel.addAccountInfo(new Account(1, \"mbills2@gmail.com\", \"mbills2\", Credential.MANAGER));\n theModel.addAccountInfo(new Account(2, \"madie\", \"madie\", Credential.USER));\n theModel.addAccountInfo(new Account(3, \"sbills3\", \"sbills3\", Credential.ADMIN));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(\"Should not have thrown exception here\");\n }\n Assert.assertEquals(\"Total account list size wrong after adding\", 4,\n theModel.getAccountList().size());\n }",
"@Test\n public void testCrear() {\n System.out.println(\"crear\");\n usuarioController.crear(usuario1);\n usuarioController.crear(usuario2);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\r\n public void test_performLogic_Failure2() throws Exception {\r\n try {\r\n List<Object> docUploads = new ArrayList<Object>();\r\n docUploads.add(new Object());\r\n\r\n instance.performLogic(docUploads);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void testSaveCurrentProgress() throws Exception {\n try{\n service.saveCurrentProgress();\n } catch(Exception e){\n fail(\"Exception should not be thrown on save!!!\");\n }\n }",
"public void testNewEntity_Boom() throws DataBaseNotReadyException {\n // Verify that our test database is set-up as expected.\n // Access test-person , test-event and test-job.\n // Verify that such items exist in the database\n // and that the test-person has yet no allocations.\n Person p = Manager.getPersonCollection().findEntity(3);\n assertNotNull(\"Bad test data?\", p);\n Event e = Manager.getEventCollection().findEntity(4);\n assertNotNull(\"Bad test data?\", e);\n Job j1 = Manager.getJobCollection().findEntity(1);\n assertNotNull(\"Bad test data?\", j1);\n Job j2 = Manager.getJobCollection().findEntity(2);\n assertNotNull(\"Bad test data?\", j2);\n\n Allocation testItem1 = allocationCollection.newEntity(p, e, j1, \"USER\");\n\n // Here is the statement that should throw the exception:\n System.out.println(\"### testNewEntity_Boom() Exception is expected!\");\n Allocation testItem2 = allocationCollection.newEntity(p, e, j2, \"USER\");\n\n }"
] | [
"0.69139063",
"0.6772617",
"0.6515957",
"0.6375059",
"0.60614914",
"0.60360384",
"0.60316885",
"0.5903794",
"0.5902879",
"0.5899497",
"0.588101",
"0.58790183",
"0.58492893",
"0.58144933",
"0.5753189",
"0.5744658",
"0.5717467",
"0.5705439",
"0.5688012",
"0.56861496",
"0.5678576",
"0.56661934",
"0.5655008",
"0.56475323",
"0.564652",
"0.5644267",
"0.5635489",
"0.5610964",
"0.5602224",
"0.5584189",
"0.5538059",
"0.5535993",
"0.55342823",
"0.5511996",
"0.5506525",
"0.5500338",
"0.549655",
"0.5479052",
"0.54571253",
"0.5454084",
"0.5443227",
"0.5442463",
"0.5438103",
"0.5438103",
"0.543677",
"0.5422013",
"0.54195976",
"0.5406081",
"0.53885794",
"0.5386454",
"0.5360565",
"0.5353503",
"0.5341915",
"0.5340218",
"0.53356045",
"0.5334346",
"0.53246623",
"0.532165",
"0.53214717",
"0.53101796",
"0.5305711",
"0.5297427",
"0.5288587",
"0.52775055",
"0.52752155",
"0.52676344",
"0.5261673",
"0.5257056",
"0.5247932",
"0.52460206",
"0.52290255",
"0.52245474",
"0.52179694",
"0.521501",
"0.5213195",
"0.52095747",
"0.52093816",
"0.5204273",
"0.52022225",
"0.52008855",
"0.5199822",
"0.51998",
"0.5192931",
"0.5191473",
"0.5191325",
"0.51912326",
"0.5190696",
"0.5188625",
"0.51877373",
"0.51805156",
"0.51795214",
"0.5178765",
"0.51776516",
"0.5177013",
"0.5166601",
"0.5165327",
"0.51645637",
"0.5163383",
"0.51623714",
"0.515753"
] | 0.7579961 | 0 |
Test Success of updateJobType method, of class JobsController. | @Test
public void testUpdateJobType_request_OK()
{
JobTypes jobType = new JobTypes(1, "test1");
doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));
try {
mockMvc.perform(MockMvcRequestBuilders.post("/job_types/update/{id}", "1")
.content(asJsonString(jobType))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"2\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(successMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n\tpublic void testUpdateTicketOk() {\n\t}",
"public boolean modifyJob(String jobID, String jobTitle, String jobType,\n String salary, String jobDescription, String expirationDate,\n String contactEmail){\n //Will locate the job with the jobID\n //Then will move the user input for each input\n //to its respected fields\n //Will then return true if successful\n Job newJob = new Job(contactEmail, jobType, jobID, jobDescription, salary, jobTitle, expirationDate);\n for(int i = 0; i< jobs.size(); i++){\n this.currentJob = jobs.get(i);\n if(this.currentJob.getJobID().compareTo(newJob.getJobID())==0){\n jobs.set(i,newJob);\n String success = String.format(\"=========JOB POSTING MODIFICATION SUCCESS=========\\n\"+\n \"A new job has been posted with following details:\\n\"+\n \"Job ID: %s\\n\"+\n \"Job Name: %s\\n\"+\n \"Job Type: %s\\n\"+\n \"Salary: %s\\n\"+\n \"Job Description: %s\\n\"+\n \"Expiration Date: %s\\n\"+\n \"Contact email: %s\\n\", jobID,jobTitle,jobType,salary,jobDescription,expirationDate,contactEmail);\n System.out.println(success);\n return true;\n }\n }\n return false;\n }",
"@Test\r\npublic void testUpdateStatusForInprogress()\r\n{\r\n\t//Mocking request and session attributes\r\n\twhen(request.getSession()).thenReturn(session);\r\n\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\r\n\twhen(session.getAttribute(\"userRole\")).thenReturn(\"ADMIN\");\r\n\t//Mocking issueAdminService findById to return mocked issue\r\n\twhen(issueAdminService.findById(1)).thenReturn(newissues);\r\n\t//Mocking userRepository findById to return mocked issue\r\n\twhen(userRepository.findById(10)).thenReturn(mockUser);\r\n\tModelAndView model = new ModelAndView();\r\n\tmodel = issueAdminController.issuestatusupdate(1,request);\r\n\t//Assert Statements\r\n\tassertTrue(model.getModel().containsKey(\"display_Issuestatus\"));\r\n\tassertTrue(model.getModel().containsValue(\"InProgress\"));\r\n\t\r\n}",
"@Test\n public void testGetJobTypesById_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n \n Optional<JobTypes> jobType = Optional.of(jobType1);\n \n doReturn(jobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n void testUpdateGoalie() {\n\n }",
"@Test\n public void updateContact() {\n }",
"@Test\r\n\r\n\tpublic void testUpdateStatus() {\r\n\t\tString status = \"accept\";\r\n\t\twhen(backgroundVerificationAndLeaseAdminRepository.findByEmail(\"shaline@gmail.com\"))\r\n\t\t\t\t.thenReturn(backgroundverification1);\r\n\t\twhen(backgroundVerificationAndLeaseAdminRepository.save(backgroundverification1))\r\n\t\t\t\t.thenReturn(backgroundverification1);\r\n\t\tBackgroundverification backgroundverification = backgroundVerificationAndLeaseAdmnServiceImpl\r\n\t\t\t\t.updateStatus(\"shaline@gmail.com\", status);\r\n\t\tassertEquals(\"accept\", backgroundverification.getApp_bgc_status());\r\n\r\n\t}",
"@Test\n public void testAddNewJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"JobResponse.Update update();",
"@Test\n\tpublic void update() throws Exception {\n\t\tMockito.when(productService.updateProductPriceInfo(Mockito.anyLong(), Mockito.anyFloat())).thenReturn(true);\n\t\tRequestBuilder requestBuilder = MockMvcRequestBuilders.put(\"/products/13860428\")\n\t\t\t\t.accept(MediaType.APPLICATION_JSON).content(expected).contentType(MediaType.APPLICATION_JSON);\n\t\tMvcResult result = mockMvc.perform(requestBuilder).andReturn();\n\n\t\tMockHttpServletResponse response = result.getResponse();\n\n\t\tassertEquals(HttpStatus.OK.value(), response.getStatus());\n\n\t}",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"@Test\n final void testUpdateDevice() {\n when(deviceDao.findDevice(user, DeviceFixture.SERIAL_NUMBER))\n .thenReturn(Optional.of(deviceDTO));\n deviceModel.setStatus(\"Stopped\");\n when(deviceMapper.toDto(deviceModel)).thenReturn(deviceDTO);\n when(deviceDao.save(user, deviceDTO)).thenReturn(deviceDTO);\n when(deviceMapper.toModel(deviceDTO)).thenReturn(deviceModel);\n ResponseEntity<DeviceModel> response = deviceController.updateDevice(deviceModel);\n\n assertEquals(200, response.getStatusCodeValue());\n assertNotNull(response.getBody());\n assertEquals(\"Stopped\", response.getBody().getStatus());\n }",
"@Test\r\npublic void testUpdateStatusForSolved()\r\n{\r\n\t//Mocked request and session attributes\r\n\twhen(request.getSession()).thenReturn(session);\r\n\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\r\n\twhen(session.getAttribute(\"userRole\")).thenReturn(\"ADMIN\");\r\n\t//mocking issueAdminService findById to return mocked issue\r\n\twhen(issueAdminService.findById(1)).thenReturn(newissues1);\r\n\t//Mocking userRepository findById to return mocked user\r\n\twhen(userRepository.findById(10)).thenReturn(mockUser);\r\n\tModelAndView model = new ModelAndView();\r\n\tmodel = issueAdminController.issuestatusupdate(1,request);\r\n\t//Assert Statements\r\n\tassertTrue(model.getModel().containsKey(\"display_Issuestatus\"));\r\n\tassertTrue(model.getModel().containsValue(\"Solved\"));\r\n\t\r\n}",
"@Test\n public void testUpdateApartmentStatus() {\n System.out.println(\"updateApartmentStatus\");\n String status = \"Unavailable\";\n int apartmentid = 2;\n ApartmentBLL instance = new ApartmentBLL();\n instance.updateApartmentStatus(status, apartmentid);\n }",
"@Test\n @WithMockUser(username=\"supervisor_admin\",roles={\"PM\",\"ADMIN\"})\n public void shouldUpdateAssessmentRubric() throws Exception {\n\n // Creating Rubric object using test values\n String rubricTitle = \"test_rubric_title\";\n int rubricRank = 4;\n boolean rubricIsEnabled = true;\n\n AssessmentRubric rubricObject = new AssessmentRubric();\n rubricObject.setTitle(rubricTitle);\n rubricObject.setStarting_date_time(LocalDateTime.now());\n rubricObject.setEnd_date_time(LocalDateTime.now());\n rubricObject.setEnabled(rubricIsEnabled);\n rubricObject.setRank(rubricRank);\n\n rubricObject.setRubricType(getMockTestRubricType());\n rubricObject.setLearningProcess(getMockTestLearningProcess());\n\n // Creating process JSON\n byte[] rubricJSON = this.mapper.writeValueAsString(rubricObject).getBytes();\n\n // invoke Create\n MvcResult resultInsert = mvc.perform(post(BASE_URL).content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle)))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank)))\n .andExpect(jsonPath(\"$.enabled\", is(rubricIsEnabled)))\n .andReturn();\n\n\n AssessmentRubric rubricUpdatable = this.mapper.readValue(resultInsert.getResponse().getContentAsByteArray(), AssessmentRubric.class);\n // Update the inserted AssessmentRubric\n rubricUpdatable.setTitle(rubricTitle +\" updated\");\n rubricUpdatable.setRank(rubricRank +1 );\n rubricUpdatable.setEnabled(!rubricIsEnabled);\n\n rubricJSON = this.mapper.writeValueAsString(rubricUpdatable).getBytes();\n\n // UPDATE: Operation\n MvcResult resultUpdate = mvc.perform(put(BASE_URL+\"/\"+rubricUpdatable.getId())\n .content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").exists())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle +\" updated\")))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank + 1)))\n .andExpect(jsonPath(\"$.enabled\", is(!rubricIsEnabled)))\n .andReturn();\n\n\n }",
"@Test\r\n public void testUpdate() {\r\n TestingTypeList test = new TestingTypeList();\r\n test.addTestingType(\"TestType\", \"test\");\r\n TestingType testValue = test.getTestingTypeAt(0);\r\n test.update(testValue, testValue);\r\n TestingType notInList = new TestingType(\"NotInList\", \"notinlist\", \"notinlist\");\r\n test.update(notInList, notInList);\r\n assertEquals(1, test.size());\r\n }",
"@Test\n\t@Override\n\tpublic void testUpdateObjectOKJson() throws Exception {\n\t}",
"@Test\n public void testGetAllJobTypes_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n JobTypes jobType2 = new JobTypes(2, \"test2\");\n \n JobTypes[] jobList = {jobType1, jobType2};\n List<JobTypes> jobTypesList = new ArrayList<JobTypes>();\n jobTypesList.add(jobType1);\n jobTypesList.add(jobType1);\n Iterable<JobTypes> allJobTypesList = jobTypesList;\n \n doReturn(allJobTypesList).when(jobTypesService).getAllJobTypes();\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/all\")\n .content(asJsonString(allJobTypesList))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n @DisplayName(\"replace updates anime when successful\")\n void replace_UpdatesAnime_WhenSuccessful() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(USER);\n\n // setting a new name so that we update the anime aftewards\n savedAnime.setName(\"new name\");\n \n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleUser.exchange(\n \"/animes\",\n HttpMethod.PUT,\n new HttpEntity<>(savedAnime),\n Void.class\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.NO_CONTENT);\n\n }",
"@Test\n\tpublic void validateUpdateOperation() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tget(\"/secure/user/{username}\", \"username1\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"firstName\").value(\"updatedFirstName\"));\n\n\t}",
"@Test\n public void testUpdateDietStatusById() throws Exception{\n\n String URI = \"/healthreminder/followup_dietstatus_update/{patientId}/status/{dietStatus}\";\n FollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(false);\n \n String jsonInput = this.converttoJson(followUpDietStatusInfo);\n\n Mockito.when(followUpDietStatusInfoServices.updateDietStatusById(Mockito.any(),Mockito.anyBoolean())).thenReturn(followUpDietStatusInfo);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.put(URI, 1, true).accept(MediaType.APPLICATION_JSON).content(jsonInput).contentType(MediaType.APPLICATION_JSON))\n .andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n String jsonOutput = mockHttpServletResponse.getContentAsString();\n\n assertThat(jsonInput).isEqualTo(jsonOutput);\n }",
"@Test\n public void update() {\n }",
"@Override\n\tpublic ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\t\n\t\tUpdateJobForm updateJobForm = (UpdateJobForm) form;\n\t\tJobServiceImp jbs = (JobServiceImp) FactoryUtil.mapClassInstance.get(FactoryUtil.JOBSERVICEIMP);\n\t\tint jobId= updateJobForm.getId();\n\t\n\t\t\n\t\tHttpSession session = request.getSession();\n\t\tint uid= (int) session.getAttribute(\"uid\");\n\t\tboolean updated=jbs.updateChoosenParam(uid, jobId, updateJobForm.getJobTitle(), updateJobForm.getStartDate(), updateJobForm.getEndDate(),updateJobForm.getPayPerHour());\n\t\tif(updated)\n\t\treturn mapping.findForward(\"success\");\n\t\telse\n\t\t\treturn mapping.findForward(\"failure\");\t\n\t}",
"@Test\n void updateSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n\n String name = \"Edited name\";\n boolean check = false;\n String description = \"edited description\";\n\n if (result != null) {\n testEntity.setName(name);\n testEntity.setCheck(check);\n testEntity.setDescription(description);\n instance.update(testEntity);\n\n Optional<TestEntity> optionalTestEntity = instance.getById(TestEntity.class, testEntity.getId());\n assertTrue(optionalTestEntity.isPresent());\n\n if (optionalTestEntity.isPresent()) {\n TestEntity entity = optionalTestEntity.get();\n\n assertEquals(entity.getName(), name);\n assertEquals(entity.getDescription(), description);\n assertEquals(entity.isCheck(), check);\n } else {\n fail();\n }\n } else {\n fail();\n }\n }",
"@Test\r\n public void testUpdate() {\r\n }",
"@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(failMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n\tpublic void testUpdateTask() {\n\t}",
"private static void testupdate() {\n\t\ttry {\n\t\t\tRoleModel model = new RoleModel();\n\t\t\tRoleBean bean = new RoleBean();\n\t\t\tbean = model.findByPK(7L);\n\t\t\tbean.setName(\"Finance\");\n\t\t\tbean.setDescription(\"Finance Dept\");\n\t\t\tbean.setCreatedBy(\"CCD MYSORE\");\n\t\t\tbean.setModifiedBy(\"CCD MYSORE\");\n\t\t\tbean.setCreatedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tbean.setModifiedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tmodel.update(bean);\n\t\t\tRoleBean updateBean = model.findByPK(1);\n\t\t\tif (\"12\".equals(updateBean.getName())) {\n\t\t\t\tSystem.out.println(\"UPDATE RECORD FAILED\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"RECORD UPDATED SUCCESSFULLY\");\n\t\t\t}\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (DuplicateRecordException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\tpublic void updateTestCase(TestCaseStatus testCaseStatus) {\n\t\t\n\t}",
"@Test\n void updateSuccess() {\n RunCategory categoryToUpdate = (RunCategory) dao.getById(2);\n categoryToUpdate.setCategoryName(\"New Name\");\n dao.saveOrUpdate(categoryToUpdate);\n RunCategory categoryAfterUpdate = (RunCategory) dao.getById(2);\n assertEquals(categoryToUpdate, categoryAfterUpdate);\n }",
"@Test\n\tpublic void test_update_product_return_200() throws Exception {\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"1\");\n\t\tProductDTO expected = DummyData.getProductDto1();\n\t\tMockHttpServletRequestBuilder mockRequest = MockMvcRequestBuilders.request(HttpMethod.PUT, \"/\")\n\t\t\t\t.principal(mockPrincipal)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(ObjectMapperHelper.asJsonString(expected));\n\n\t\t// Setup when\n\t\twhen(productService.update(ArgumentMatchers.any())).thenReturn(expected);\n\t\t\n\t\t// Execute the POST request\n\t\tmockMvc.perform(mockRequest)\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t// Validate the response code and content type\n\t\t\t\t.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t// Validate the returned fields\n\t\t\t\t.andExpect(jsonPath(\"$.brand\", Is.is(expected.getBrand())))\n\t\t\t\t.andExpect(jsonPath(\"$.color\", Is.is(expected.getColor())))\n\t\t\t\t.andExpect(jsonPath(\"$.name\", Is.is(expected.getName()))).andReturn();\n\n\t\t// verify\n\t\tverify(productService).update(ArgumentMatchers.any());\n\t}",
"@Test\n public void testUpdate() {\n\n }",
"@Test\r\npublic void testUpdateStatusForUnderReview()\r\n{\r\n\t//mocking request and session attributes\r\n\twhen(request.getSession()).thenReturn(session);\r\n\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\r\n\twhen(session.getAttribute(\"userRole\")).thenReturn(\"ADMIN\");\r\n\t//mocking issueAdminService findById to return mocked issue\r\n\twhen(issueAdminService.findById(1)).thenReturn(issues);\r\n\t//mocking userRepository findById to return mocked user\r\n\twhen(userRepository.findById(10)).thenReturn(mockUser);\r\n\tModelAndView model = new ModelAndView();\r\n\tmodel = issueAdminController.issuestatusupdate(1,request);\r\n\t//Assert Statements\r\n\tassertTrue(model.getModel().containsKey(\"display_Issuestatus\"));\r\n\tassertTrue(model.getModel().containsValue(\"Under Review\"));\r\n\t\r\n}",
"@Test\n\tpublic void updateUser() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tpost(\"/secure/user/updateUser\").param(\"username\", \"username1\")\n\t\t\t\t\t\t.param(\"firstName\", \"updatedFirstName\")\n\t\t\t\t\t\t.accept(MediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"message\").value(\"Success\"));\n\n\t}",
"public void update(Job job) throws DatabaseException, IllegalArgumentException;",
"@Test\n public void test_update_user_success() throws Exception {\n UserDto user = new UserDto(1L, \"Arya\", \"Stark\", \"noone@got.com\");\n\n when(userService.updateUser(user.getUserId(), user)).thenReturn(user);\n\n mockMvc.perform(put(\"/users/{id}\", user.getUserId()).contentType(MediaType.APPLICATION_JSON)\n .content(asJsonString(user))).andExpect(status().isOk());\n\n verify(userService, times(1)).updateUser(user.getUserId(), user);\n verifyNoMoreInteractions(userService);\n }",
"private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\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}\n\t\t});\n\t}",
"@RequestMapping(value = \"/editCourse\", method = RequestMethod.POST, headers = { \"Content-type=application/json\" })\n public @ResponseBody JobCode ajaxEditJobCode(@RequestBody JobCode jc) {\n\n JobCode updatedJC = null;\n try {\n updatedJC = courseService.updateCourse(jc);\n } catch (JobCodeException e) {\n //model.addAttribute(\"error\", e.getMessage());\n }\n\n\n return updatedJC;\n }",
"@Test\n /* testUpdateRecord\n * testing update exist record in Save.Json\n * */\n public void testUpdateRecord() {\n testAddRecord();\n\n score = 300;\n level = 3;\n name = \"test1\";\n\n saveReader.updateRecord(indexOfReturned, \"name\", name);\n assertEquals(\"True : name field updated successfully\", name, saveReader.LoadsList.get(indexOfReturned).name);\n\n saveReader.updateRecord(indexOfReturned, \"score\", score);\n assertEquals(\"True : score field updated successfully\", score, saveReader.LoadsList.get(indexOfReturned).score);\n\n saveReader.updateRecord(indexOfReturned, \"level\", level);\n assertEquals(\"True : level field updated successfully\", level, saveReader.LoadsList.get(indexOfReturned).level);\n }",
"@Test\n public void testUpdatePharmacy() throws Exception {\n System.out.println(\"updatePharmacy\");\n\n //Null test\n PharmacyDTO pharmacy = null;\n ManagePharmaciesController instance = new ManagePharmaciesController();\n PharmacyDTO expResult = null;\n PharmacyDTO result = instance.updatePharmacy(pharmacy);\n Assertions.assertEquals(expResult, result);\n\n //Value test\n instance = new ManagePharmaciesController();\n PharmacyDB db = Mockito.mock(PharmacyDB.class);\n PharmaDeliveriesApp.getInstance().getPharmacyService().setPharmacyDB(db);\n PharmacyDTO update = getPharmacyDTOTest(\"teste1\");\n Pharmacy returnedP = convertPharmacyDTO(update);\n when(db.updatePharmacy(any(Pharmacy.class))).thenReturn(returnedP);\n Assertions.assertEquals(instance.updatePharmacy(update).getName(), update.getName());\n Assertions.assertEquals(instance.updatePharmacy(update).getId(), update.getId());\n \n when(db.updatePharmacy(any(Pharmacy.class))).thenReturn(null);\n Assertions.assertNull(instance.updatePharmacy(update));\n }",
"@Test\n @IfProfileValue(name = \"dept-test-group\", values = {\"all\",\"role\",\"update-role\"})\n public void _4_4_1_updateExistRole() throws Exception {\n\n String _id = r_2.getId().toString();\n r_2.setDescription(\"修改角色测试\");\n log.debug(\"_4_4_1_updateExistRole:{}\",json(r_2));\n this.mockMvc.perform(put(PATH_PREFIX_v1+\n r_2.getCompany()+\n \"/departments/\"+\n r_2.getCompany()+\n \"/roles/\"+\n _id)\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(r_2)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\",is(_id)))\n .andExpect(jsonPath(\"$.description\",is(r_2.getDescription())));\n }",
"@Test\n\tpublic void updateTest() {\n\t\tEmployeeGroup employeeGroup = createMocKEmployeeGroup(\"1\" ,new Short((short)1) );\n\t\t// Recover this employeeGroup\n\t\tResponseEntity<EmployeeGroupResource> result = this.restTemplate.getForEntity(\"/employeeGroup/1/1\", EmployeeGroupResource.class);\n\t\t// The reponse can't be null\n\t\tassertThat(result).isNotNull();\n\t\t// The status code must be OK\n\t\tassertThat(result.getStatusCode()).isEqualTo(HttpStatus.OK);\n\t\t// Response body must not be null\n\t\tassertThat(result.getBody()).isNotNull();\n\t\t// Assert the Hateoas self link\n\t\tLink link = new Link(\"http://localhost:9999/employeeGroup/1/1\", Link.REL_SELF);\n\t\tassertThat(result.getBody().getId()).isEqualTo(link);\n\n\t\t// Change field value\n\t\t// Process update\n\t\tRequestEntity<EmployeeGroup> request = new RequestEntity<EmployeeGroup>(employeeGroup, HttpMethod.PUT, null);\n\t\tResponseEntity<Void> resultUpdate = this.restTemplate.exchange(\"/employeeGroup/1/1\", HttpMethod.PUT, request,\n\t\t\t\tgetTypeRefVoid());\n\t\t// The response can't be null\n\t\tassertThat(resultUpdate).isNotNull();\n\t\t// The status code must be OK\n\t\tassertThat(resultUpdate.getStatusCode()).isEqualTo(HttpStatus.OK);\n\n\t\t// Recover the employeeGroup and ensure field are correct\n\t\tresult = this.restTemplate.getForEntity(\"/employeeGroup/1/1\", EmployeeGroupResource.class);\n\t\t// The reponse can't be null\n\t\tassertThat(result).isNotNull();\n\t\t// The status code must be OK\n\t\tassertThat(result.getStatusCode()).isEqualTo(HttpStatus.OK);\n\t\t// Response body must not be null\n\t\tassertThat(result.getBody()).isNotNull();\n\t\t// Assert the Hateoas self link\n\t\tlink = new Link(\"http://localhost:9999/employeeGroup/1/1\", Link.REL_SELF);\n\t\tassertThat(result.getBody().getId()).isEqualTo(link);\n\t}",
"public void updateJobStatus(String archiveType, String jobID, boolean isArchiveSuccess, String archiveID,\n boolean isArchiveOrphan) throws Exception\n {\n //ArchiveActivityHelper.obtainArchiveSummaryLock();\n String mn = \"updateJobStatus\";\n \n String folderPath = getArchiveFolderPath();\n Properties pro = ArchiveActivityHelper.getPropertiesFile(folderPath, jobID);\n String archiveStatus = isArchiveSuccess ? (Boolean.TRUE.toString()) : IArchiveConstant.ARCHIVE_STATUS_FAILED;\n \n _logger.logMessage(mn, null, \"Updating job status: archive type: \"+archiveType+\" jobID:\"+jobID+\" isArchiveSuccess: \"+isArchiveSuccess+\" isArchiveOrphan: \"+isArchiveOrphan);\n _logger.logMessage(mn, null, \"Job Properties prior update: \"+pro);\n \n if(IArchiveConstant.ARCHIVE_TYPE_TM.equals(archiveType))\n {\n pro.setProperty(IArchiveConstant.ARCHIVE_BY_TM, archiveStatus);\n }\n else if(IGTArchiveConstant.ARCHIVE_TYPE_PI.equals(archiveType))\n {\n pro.setProperty(IArchiveConstant.ARCHIVE_BY_PI, archiveStatus);\n \n if(isArchiveOrphan)\n {\n pro.setProperty(IArchiveConstant.ARCHIVE_BY_DOCUMENT, Boolean.TRUE.toString());\n }\n else if(! isArchiveOrphan && ! isArchiveSuccess)\n {\n _logger.logMessage(mn, null, \"archive document set to failed\");\n pro.setProperty(IArchiveConstant.ARCHIVE_BY_DOCUMENT, IArchiveConstant.ARCHIVE_STATUS_FAILED);\n }\n }\n else if(IGTArchiveConstant.ARCHIVE_TYPE_DOCUMENT.equals(archiveType))\n {\n pro.setProperty(IArchiveConstant.ARCHIVE_BY_DOCUMENT, archiveStatus);\n }\n else\n {\n throw new IllegalArgumentException(\"Failed to update current node job status. Archive Type: \"+archiveType+\" is not supported.\");\n }\n \n _logger.logMessage(mn, null, \"Job Properties after update: \"+pro);\n ArchiveActivityHelper.generatePropertiesFile(folderPath, pro, jobID);\n \n updateMasterNodeStatus(pro, jobID, archiveID);\n }",
"@Override\n\tpublic void onUpdateComplete(Class clazz, HttpStatus errorCode) {\n\t\t\n\t}",
"@Test\n public void testUpdateExample() throws Exception{\n MvcResult result = this.mockMvc.perform(get(\"/api/example/{id}\",50))\n .andExpect(status().is2xxSuccessful())\n .andReturn();\n\n // Parses it\n Example example = convertFromJson(result.getResponse().getContentAsString(), Example.class);\n \n // Change name value\n example.setName(\"Test 27\");\n\n // Updates it and checks if it was updated\n this.mockMvc.perform(put(\"/api/example\")\n .contentType(MediaType.APPLICATION_JSON)\n .content(convertToJson(example)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.name\", equalTo(\"Test 27\")));\n }",
"@Test\n public void testExposesUpdate() throws Exception {\n Link customer = findCustomersLinks().iterator().next();\n byte[] bytes = Files.readAllBytes(Paths.get(\"src/test/resources/customer-update.txt\"));\n\n mockMvc\n .perform(put(customer.getHref())\n .contentType(MediaType.APPLICATION_JSON)\n .content(bytes))\n .andExpect(status().isNoContent());\n\n MockHttpServletResponse response2 = request(customer.getHref());\n\n assertThat(\"Firstname field was updated correctly\",\n JsonPath.read(response2.getContentAsString(), \"firstname\").toString(),\n is(\"Ralph\"));\n }",
"@Test\n\tpublic void testUpdateStatusbarValue() {\n\t}",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values = {\"all\",\"dept-update\"})\n public void _2_4_1_updateExistDept() throws Exception {\n Department d = d_1;\n d.setDescription(\"修改部门1描述\");\n this.mockMvc.perform(put(\"/api/v1.0/companies/\"+\n d.getCompany()+\n \"/departments/\"+\n d.getId())\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(d)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\",is(d.getId().toString())))\n .andExpect(jsonPath(\"$.description\",is(d.getDescription())));\n }",
"@Test\n public void testModificarEjemplar() {\n System.out.println(\"ModificarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);;\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar expResult = new EjemplaresList().getEjemplares().get(0);;\n Ejemplar result = instance.ModificarEjemplar(ejemplar);\n assertEquals(expResult, result);\n System.out.println(\"Ejemplar dado de baja\\nid:\" + result.getIdEjemplar());\n }",
"@Test\r\n\tvoid testUpdateSkillRecordShouldPass() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint playerSru = 1000;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standardLevel = 5;\r\n\t\tint spinLevel = 4;\r\n\t\tint popLevel = 3;\r\n\t\tString passingNotes = \"Passing\";\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint frontLevel= 4;\r\n\t\tint rearLevel = 4;\r\n\t\tint sideLevel = 3;\r\n\t\tint scrabbleLevel = 2;\r\n\t\tString tacklingNotes = \"Tackling\";\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint dropLevel= 4;\r\n\t\tint puntLevel = 5;\r\n\t\tint grubberLevel = 3;\r\n\t\tint goalLevel = 3;\r\n\t\tString kickingNotes = \"Kicking\";\r\n\t\r\n\t\tboolean successful = ctrl.createNewSkillRecord(playerSru, standardLevel, spinLevel, popLevel, passingNotes,\r\n\t\t\t\tfrontLevel, rearLevel, sideLevel, scrabbleLevel, tacklingNotes,\r\n\t\t\t\tdropLevel, puntLevel, grubberLevel, goalLevel, kickingNotes);\r\n\t\t\r\n\t\tassertTrue(successful);\r\n\t}",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void updateAdmissionBedNoTestCase() throws IOException, JSONException {\n\n\t\tJSONObject jsonRequestObject = new JSONObject(RequestUtil\n\t\t\t\t.requestByID(TestCaseConstants.UPDATE_ADMISSION_BED_NO));\n\t\t\n\t\tArrayList<String> resArrayList = getHTTPResponse(\n\t\t\t\tproperties\n\t\t\t\t\t\t.getProperty(TestCaseConstants.URL_APPEND_UPDATE_ADMISSION_BED_NO),\n\t\t\t\tTestCaseConstants.HTTP_PUT, jsonRequestObject.toString());\n\n\t\tSystem.out.println(\"message :\"+resArrayList.get(0));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)),\n\t\t\t\tSUCCESS_STATUS_CODE);\n\t\t\n\t}",
"@Test\n public void execute_filteredContactList_editSuccess() {\n showContactAtIndex(model, INDEX_FIRST_CONTACT);\n\n Contact contactInFilteredList = model.getFilteredContactList().get(INDEX_FIRST_CONTACT.getZeroBased());\n Contact editedContact = new ContactBuilder(contactInFilteredList).withName(VALID_NAME_BOB).build();\n\n EditContactDescriptor descriptor = new EditContactDescriptorBuilder().withName(VALID_NAME_BOB).build();\n\n EditContactCommand editContactCommand = new EditContactCommand(INDEX_FIRST_CONTACT, descriptor);\n\n String expectedMessage = String.format(EditContactCommand.MESSAGE_EDIT_CONTACT_SUCCESS, editedContact);\n\n Model expectedModel = new ModelManager(new ModuleList(), new ModuleList(),\n new ContactList(model.getContactList()), new TodoList(), new EventList(), new UserPrefs());\n\n expectedModel.setContact(model.getFilteredContactList().get(0), editedContact);\n\n assertCommandSuccess(editContactCommand, model, expectedMessage, expectedModel);\n }",
"public int editType(BikeType type){\n final int EDITED = 0;\n final int NOT_EDITED = 1;\n final int NOT_FOUND = 2;\n if(!findType(type.getTypeId())){ //No matching type_id registered\n return NOT_FOUND;\n }else{ \n \n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(UPDATE)){\n \n ps.setString(1, type.getTypeName());\n ps.setDouble(2, type.getRentalPrice());\n ps.setInt(3, type.getTypeId());\n ps.executeUpdate();\n return EDITED;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n return NOT_EDITED;\n }",
"@Test\r\n void testUpdateMedicine() throws Exception{\r\n\r\n String URI = \"/medicine/update/{medicineId}\";\r\n Medicine medicine = new Medicine();\r\n\t\tmedicine.setMedicineId(134);\r\n\t\tmedicine.setMedicineName(\"crosin\");\r\n\t\tmedicine.setMedicineCost(200);\r\n\t\t\r\n\t\tString jsonInput = this.converttoJson(medicine);\r\n Mockito.when(medicineService.updateMedicineById(Mockito.any(),Mockito.anyString())).thenReturn(medicine);\r\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.put(URI ,105).accept(MediaType.APPLICATION_JSON).content(jsonInput).contentType(MediaType.APPLICATION_JSON)).andReturn();\r\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\r\n String jsonOutput = mockHttpServletResponse.getContentAsString();\r\n assertNotNull(jsonOutput);\r\n }",
"@Test\n\tpublic void testUpdateAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString newName = \"New Name\";\n\t\tString newPassword = \"newPassword\";\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.updateAdminAccount(USERNAME1, newPassword, newName);\n\t\t} catch (InvalidInputException e) {\n\t\t\t// Check that no error occurred\n\t\t\tfail();\n\t\t}\n\t\tassertNotNull(user);\n\t\tassertEquals(USERNAME1, user.getUsername());\n\t\tassertEquals(newPassword, user.getPassword());\n\t\tassertEquals(newName, user.getName());\n\t}",
"@Test\r\n public void testUpdateEmployee1() throws Exception {\r\n try {\r\n\r\n int employee_id = 0;\r\n int department_id = 1;\r\n int position_id = 1;\r\n int status = 1;\r\n String date = \"\";\r\n EmployeeDAOImpl instance = new EmployeeDAOImpl();\r\n boolean expResult = false;\r\n boolean result = instance.updateEmployee(employee_id, department_id, position_id, status, date);\r\n assertEquals(expResult, result);\r\n } catch (Exception ex) {\r\n assertTrue(ex.getMessage().contains(\"Wrong Required Parameters\"));\r\n }\r\n }",
"@Test\n public void updatePage() {\n }",
"@Test\n public void testUpdateCar() {\n\n }",
"@Test\n public void testAllocationScraperJob() throws Exception {\n AllocationScraperJob j = new AllocationScraperJob();\n j.setStatus( JobStatus.submitted );\n j.setStartDate( Calendar.getInstance().getTime() );\n j.setDaysAhead( 27 );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test\n public void updateQuejaTest() {\n QuejaEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n\n newEntity.setId(entity.getId());\n\n quejaPersistence.update(newEntity);\n\n QuejaEntity resp = em.find(QuejaEntity.class, entity.getId());\n\n Assert.assertEquals(newEntity.getName(), resp.getName());\n }",
"@Test\r\n\tpublic void test_updateEmployeeDetail() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"id\", \"2\")//\r\n\t\t\t\t.body(new EmployeeDto(2L, \"sunil\", \"changed\", \"sunil.changed@gmail.com\"))//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.put(\"/api/v1/employee\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"id\", equalTo(2))//\r\n\t\t\t\t.body(\"firstName\", equalTo(\"sunil\"))//\r\n\t\t\t\t.body(\"lastName\", equalTo(\"changed\"))//\r\n\t\t\t\t.body(\"emailId\", equalTo(\"sunil.changed@gmail.com\"));\r\n\r\n\t}",
"@Test\n public void testGetJobTypesById_request_Not_Found()\n { \n Optional<JobTypes> emptyJobType = Optional.empty();\n \n doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(emptyJobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isNotFound())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testCreateConfirmDepositAmountsJob() throws Exception {\n Job asj = new AllocationScraperJob();\n asj.setStatus( JobStatus.completed );\n dao.insertJob( asj );\n\n // setup the job\n Job j = new CreateConfirmDepositAmountsJob();\n j.setStatus( JobStatus.submitted );\n j.getDependentJobs().add( asj );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test\n public void testEdit() throws Exception {\n // create citation entity to reflect the change that happens after calling edit\n Citation entity = getSampleCitation();\n\n // pretend the entity was edited and return new entity\n doNothing().when(Service).editUrl(any(String.class), any(String.class));\n when(Service.retrieveCitation(any(String.class))).thenReturn(entity);\n\n // test to see that the correct view is returned\n ModelAndView mav = Controller.edit(\"\", \"\");\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String jsonObject = (String) map.get(\"message\");\n testJsonObject(jsonObject, entity);\n }",
"@Test\n void updateSuccess() {\n String newFirstName = \"Artemis\";\n User userToUpdate = (User) dao.getById(1);\n userToUpdate.setFirstName(newFirstName);\n dao.saveOrUpdate(userToUpdate);\n User userAfterUpdate = (User) dao.getById(1);\n assertEquals(newFirstName, userAfterUpdate.getFirstName());\n }",
"@Test\n public void testStartJob() {\n // Set a specific date for the last change\n DateTime originalDate = new DateTime(2014, 12, 23, 0, 0, 0);\n List<MonitorJob> listMonitorJobs = new ArrayList<>();\n String url = \"http://www.google.com\";\n MonitorJob monitorJob = new MonitorJob();\n monitorJob.setUrl(url);\n monitorJob.setElement(\"body\");\n monitorJob.setLastChange(originalDate.toDate());\n monitorJob.setBody(\"empty body\");\n\n listMonitorJobs.add(monitorJob);\n\n when(monitorJobRepositoryMock.getAllMonitorJobs())\n .thenReturn(listMonitorJobs);\n\n monitorJobExecutor.startCheckJobs();\n\n // Assert that the specific date has been changed because content of page changed\n Assert.assertNotEquals(monitorJob.getLastChange(), originalDate.toDate());\n\n }",
"@Test\n public void testSplitRoomReservationReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find all bookings spanning different rooms\n Job j = new SplitRoomReservationReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test\n public void putId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Change a field of the object that has to be updated\n role.setName(\"roleNameChanged\");\n RESTRole restRole = new RESTRole(role);\n\n //Perform the put request to update the object and check the fields of the returned object\n try {\n mvc.perform(MockMvcRequestBuilders.put(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n .content(TestUtil.convertObjectToJsonBytes(restRole))\n )\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.name\", equalTo(restRole.getName())));\n } catch (AssertionError e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Test if changes actually went in effect in the database\n try {\n role = get(role.getUuid());\n try {\n assertEquals(\"name field not updated correctly\", \"roleNameChanged\", role.getName());\n } finally {\n //Clean up database for other tests\n remove(role.getUuid());\n }\n } catch (ObjectNotFoundException e) {\n fail(\"Could not retrieve the put object from the actual database\");\n }\n }",
"@Test\n public void updateEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity pojoEntity = factory.manufacturePojo(EspecieEntity.class);\n pojoEntity.setId(entity.getId());\n especieLogic.updateSpecies(pojoEntity.getId(), pojoEntity);\n EspecieEntity resp = em.find(EspecieEntity.class, entity.getId());\n Assert.assertEquals(pojoEntity.getId(), resp.getId());\n Assert.assertEquals(pojoEntity.getNombre(), resp.getNombre());\n }",
"@Test \n\tpublic void testUpdateSetting() throws Exception\n\t{\n\t}",
"@Override\n\tpublic boolean orgTypeUpdate(OrganizationTypeForm organizationTypeForm, int orgTypeCode, HttpSession session, HttpServletRequest request) throws Exception {\n\t\tSession session1 = null;\n\t\tTransaction tx1 = null;\n\t\tsession1 = sessionFactory.openSession();\n\t\ttx1 = session1.beginTransaction();\n\t\ttry {\n\t\t\torganizationDAO.updateOrgType(organizationTypeForm, orgTypeCode, session1);\n\t\t\ttx1.commit();\n\t\t\treturn true;\n\t\t} catch (HibernateException e) {\n\t\t\tLOG.error(\"Exception-->\"+e);\n\t\t\ttx1.rollback();\n\t\t\treturn false;\n\t\t} finally {\n\t\t\tif (session1 != null && session1.isOpen()) {\n\t\t\t\tsession1.close();\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void updateTarjetaPrepagoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity pojoEntity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n pojoEntity.setId(entity.getId());\n tarjetaPrepagoLogic.updateTarjetaPrepago(pojoEntity.getId(), pojoEntity);\n TarjetaPrepagoEntity resp = em.find(TarjetaPrepagoEntity.class, entity.getId());\n Assert.assertEquals(pojoEntity.getId(), resp.getId());\n Assert.assertEquals(pojoEntity.getSaldo(), resp.getSaldo(),0.001);\n Assert.assertEquals(pojoEntity.getPuntos(), resp.getPuntos(), 0.001);\n Assert.assertEquals(pojoEntity.getNumTarjetaPrepago(), resp.getNumTarjetaPrepago());\n }",
"@Test\npublic void tickerUpdateExample() throws Exception {\n\n\tMap<String, Object> tickers = new HashMap<String, Object>();\n\ttickers.put(\"name\",\"maxxa\");\n \n\tString tickerLocation = this.mockMvc\n\t\t\t.perform(\n\t\t\t\t\tpost(\"/api/tickers\").contentType(MediaTypes.HAL_JSON).content(\n\t\t\t\t\t\t\tthis.objectMapper.writeValueAsString(tickers)))\n\t\t\t.andExpect(status().isCreated()).andReturn().getResponse()\n\t\t\t.getHeader(\"Location\");\n\n\tthis.mockMvc.perform(get(tickerLocation)).andExpect(status().isOk())\n\t\t\t.andExpect(jsonPath(\"name\", is(tickers.get(\"name\"))))\n\t\t\t.andExpect(jsonPath(\"_links.self.href\", is(tickerLocation)));\n\n\t\t\t\n\tthis.mockMvc.perform(\n\t\t\tpatch(tickerLocation).contentType(MediaTypes.HAL_JSON).content(\n\t\t\t\t\tthis.objectMapper.writeValueAsString(tickers)))\n\t\t\t.andExpect(status().isNoContent())\n\t\t\t.andDo(document(\"tickers-update-example\",\n\t\t\t\t\trequestFields(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfieldWithPath(\"name\").description(\"The name of the ticker\").type(JsonFieldType.STRING).optional())));\n\t\t\t\t\t\t\t\n}",
"@ResponseStatus(code=HttpStatus.OK)\r\n\t@RequestMapping(value=\"/update\", method=RequestMethod.GET)\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"StudentRestController.Update()_________\");\r\n\t}",
"@Test\r\n\tpublic void testUpdateOwnerTest() {\r\n\t\tString status = \"accept\";\r\n\t\twhen(backgroundVerificationAndLeaseAdminRepository.findByEmail(\"shaline@gmail.com\"))\r\n\t\t\t\t.thenReturn(backgroundverification1);\r\n\t\twhen(backgroundVerificationAndLeaseAdminRepository.save(backgroundverification1))\r\n\t\t\t\t.thenReturn(backgroundverification1);\r\n\t\tBackgroundverification backgroundverification = backgroundVerificationAndLeaseAdmnServiceImpl\r\n\t\t\t\t.updateOwnerSign(\"shaline@gmail.com\", status);\r\n\t\tassertEquals(\"accept\", backgroundverification.getOwnerSign());\r\n\t}",
"@Test\n public void updateWorkflow_200() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n Integer id = addMOToDb(2).getId();\n addMOToDb(3);\n\n // PREPARE THE TEST\n Workflow mo = new Workflow();\n mo.setName(\"New My_Workflow\");\n mo.setDescription(\"New Description of my new workflow\");\n mo.setRaw(\"New Workflow new content\");\n\n // DO THE TEST\n Response response = callAPI(VERB.PUT, \"/mo/\" + id.toString(), mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(200, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }",
"@Test\n public void testModificarLibro() {\n System.out.println(\"ModificarLibro\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Libro expResult = new LibrosList().getLibros().get(0);\n Libro result = instance.ModificarLibro(libro);\n assertEquals(expResult, result);\n System.out.println(\"Libro modificado\\ntitulo:\" + result.getTitulo() + \"\\nISBN: \" + result.getIsbn());\n }",
"@RequestMapping(value = \"/{datasetid}/edit\", method = RequestMethod.POST)\n public String updateQATest(\n QATest qatest,\n BindingResult bindingResult, ModelMap model) {\n qaTestService.save(qatest);\n model.addAttribute(\"message\", \"Test \" + qatest.getTestId() + \" updated\");\n return \"redirect:view\";\n }",
"@Test\n public void updateRole() throws Exception {\n\n doReturn(null).when(roleRepository).findByName(anyString());\n doReturn(role).when(roleRepository).findOne(anyLong());\n doReturn(role).when(roleRepository).save(any(Role.class));\n\n boolean result = roleService.updateRole(anyLong(), requestVO);\n\n Assert.assertTrue(\"Update role failed\", result);\n }",
"UpdateType updateType();",
"@Test\r\n\tvoid testUpdateSkillRecordShouldFail() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint playerSru = 99999999;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standardLevel = 5;\r\n\t\tint spinLevel = 4;\r\n\t\tint popLevel = 3;\r\n\t\tString passingNotes = \"Passing\";\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint frontLevel= 4;\r\n\t\tint rearLevel = 4;\r\n\t\tint sideLevel = 3;\r\n\t\tint scrabbleLevel = 2;\r\n\t\tString tacklingNotes = \"Tackling\";\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint dropLevel= 4;\r\n\t\tint puntLevel = 5;\r\n\t\tint grubberLevel = 3;\r\n\t\tint goalLevel = 3;\r\n\t\tString kickingNotes = \"Kicking\";\r\n\t\r\n\t\tboolean successful = ctrl.createNewSkillRecord(playerSru, standardLevel, spinLevel, popLevel, passingNotes,\r\n\t\t\t\tfrontLevel, rearLevel, sideLevel, scrabbleLevel, tacklingNotes,\r\n\t\t\t\tdropLevel, puntLevel, grubberLevel, goalLevel, kickingNotes);\r\n\t\t\r\n\t\tassertTrue(successful);\t\r\n\t}",
"@Test\n public void updateAll_501() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n Workflow mo = new Workflow();\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.PUT, \"/mo/\", mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(501, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n }",
"@Test\n\tpublic void testLaunchJob() throws Exception {\n\t\tJobExecution jobExecution = jobLauncherTestUtils.launchJob();\n\t\tassertEquals(BatchStatus.COMPLETED, jobExecution.getStatus());\n\n\t}",
"public void setJobStatus(Integer jobStatus) {\n this.jobStatus = jobStatus;\n }",
"@Test\n public void shouldUpdateTheSpezifiedValidRoomAndPersistTheChanges()\n\t throws Exception {\n\n\tfinal ArrayList<String> newValidValues = Lists.newArrayList(\"Hilton\",\n\t\t\"Hamburg\", \"2\", \"N\", \"12\", \"12.02.2007\", \"\");\n\n\tfinal UpdateRoomCommand command = new UpdateRoomCommand(newValidValues,\n\t\tvalidRoomOffer);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, null);\n\twhen(dao.read(validRoomOffer.getIndex())).thenReturn(validRoomOffer);\n\twhen(builder.createRoomOffer(newValidValues, validRoomOffer.getIndex()))\n\t\t.thenReturn(validRoomOffer);\n\n\tfinal UrlyBirdRoomOffer updatedRoomOffer = roomOfferService\n\t\t.updateRoomOffer(command);\n\n\tverify(dao).lock(validRoomOffer.getIndex());\n\tverify(dao).unlock(eq(validRoomOffer.getIndex()), anyLong());\n\tverify(dao).update(eq(validRoomOffer), anyLong());\n\tassertThat(updatedRoomOffer, is(equalTo(validRoomOffer)));\n }",
"public void updateJob(Job job) {\n\t\t\tJobDao jobDao=new JobDaoImpl();\n\t\t\tjobDao.updateJob(job);\n\t\t}",
"@Test\n\tpublic void testUpdateCategory() throws Exception {\n\n\t\tCategoryResponse categoryResponse = new CategoryResponse();\n\t\tList<Category> categories = new ArrayList<>();\n\t\tCategory category = new Category();\n\t\tcategory.setTenantId(\"default\");\n\t\tcategory.setParentId(Long.valueOf(1));\n\n\t\tAuditDetails auditDetails = new AuditDetails();\n\t\tcategory.setAuditDetails(auditDetails);\n\t\tcategory.setName(\"Flammables\");\n\n\t\tcategories.add(category);\n\n\t\tcategoryResponse.setResponseInfo(new ResponseInfo());\n\t\tcategoryResponse.setCategories(categories);\n\n\t\ttry {\n\n\t\t\twhen(categoryService.updateCategoryMaster(any(CategoryRequest.class),any(String.class))).thenReturn(categoryResponse);\n\t\t\tmockMvc.perform(post(\"/category/v1/_update\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t\t.content(getFileContents(\"categoryUpdateRequest.json\")))\n\t\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t\t.andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON))\n\t\t\t\t\t.andExpect(content().json(getFileContents(\"categoryUpdateResponse.json\")));\n\n\t\t} catch (Exception e) {\n\n\t\t\tassertTrue(Boolean.FALSE);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertTrue(Boolean.TRUE);\n\n\t}",
"@Test\r\n\tpublic void updateUpdate() throws InterruptedException, ExecutionException {\r\n\t\tLOGGER.debugf(\"BEGINN\");\r\n\t\t\r\n\t\t// Given\r\n\t\tfinal Long zahlId = ZAHLUNGSINFORMATION_ID_UPDATE;\r\n \tfinal String neuerKontoinhaber = NEUER_KONTOINHABER;\r\n \tfinal String neuerKontoinhaber2 = NEUER_KONTOINHABER_2;\r\n\t\tfinal String username = USERNAME_ADMIN;\r\n\t\tfinal String password = PASSWORD_ADMIN;\r\n\t\t\r\n\t\t// When\r\n\t\tResponse response = given().header(ACCEPT, APPLICATION_JSON)\r\n\t\t\t\t .pathParameter(ZAHLUNGSINFORMATIONEN_ID_PATH_PARAM, zahlId)\r\n .get(ZAHLUNGSINFORMATIONEN_ID_PATH);\r\n\t\tJsonObject jsonObject;\r\n\t\ttry (final JsonReader jsonReader =\r\n\t\t\t\t getJsonReaderFactory().createReader(new StringReader(response.asString()))) {\r\n\t\t\tjsonObject = jsonReader.readObject();\r\n\t\t}\r\n\r\n \t// Konkurrierendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n \tfinal JsonObjectBuilder job2 = getJsonBuilderFactory().createObjectBuilder();\r\n \tSet<String> keys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob2.add(\"kontoinhaber\", neuerKontoinhaber2);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob2.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tfinal JsonObject jsonObject2 = job2.build();\r\n \tfinal ConcurrentUpdate concurrentUpdate = new ConcurrentUpdate(jsonObject2, ZAHLUNGSINFORMATIONEN_PATH,\r\n \t\t\t username, password);\r\n \tfinal ExecutorService executorService = Executors.newSingleThreadExecutor();\r\n\t\tfinal Future<Response> future = executorService.submit(concurrentUpdate);\r\n\t\tresponse = future.get(); // Warten bis der \"parallele\" Thread fertig ist\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_NO_CONTENT));\r\n\t\t\r\n \t// Fehlschlagendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n\t\tfinal JsonObjectBuilder job1 = getJsonBuilderFactory().createObjectBuilder();\r\n \tkeys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob1.add(\"kontoinhaber\", neuerKontoinhaber);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob1.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tjsonObject = job1.build();\r\n\t\tresponse = given().contentType(APPLICATION_JSON)\r\n\t\t\t\t .body(jsonObject.toString())\r\n\t\t .auth()\r\n\t\t .basic(username, password)\r\n\t\t .put(ZAHLUNGSINFORMATIONEN_PATH);\r\n \t\r\n\t\t// Then\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_CONFLICT));\r\n\t\t\r\n\t\tLOGGER.debugf(\"ENDE\");\r\n\t}",
"@Test\n void updateTest() {\n admin.setSurname(\"Rossini\");\n Admin modifyied = adminJpa.update(admin);\n assertEquals(\"Rossini\", modifyied.getSurname());\n }",
"@Test\n public void testUnpaidDepositReportJob() throws Exception {\n Job allocScraperJob = new AllocationScraperJob();\n allocScraperJob.setStatus( JobStatus.completed );\n dao.insertJob( allocScraperJob );\n\n // setup a job to scrape allocation info\n Job j = new UnpaidDepositReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocScraperJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test\n public void setGetStatus() {\n final CourseType courseType = new CourseType();\n final Integer STATUS = 1;\n courseType.setStatus(STATUS);\n\n assertSame(STATUS, courseType.getStatus());\n }",
"@Test\n\tpublic void testUpdateLabel() {\n\t\tList<Label> label1 = null;\n\t\tString emailId = \"pratikshatamadalge21@gmail.com\";\n\t\tString labelName = \"7 wonders in world....\";\n\n\t\twhen(labelRepository.findByEmailId(emailId)).thenReturn(label1);\n\t\tlabel.setLabelName(\"7 wonders in world....\");\n\t\twhen(labelRepository.save(label)).thenReturn(label);\n\t\tassertEquals(label.getLabelName(), labelName);\n\t}",
"public void saveAndUpdateJobStatus(AbstractPersistedAnalysisJob job) {\r\n job.setLastUpdateDate(new Date());\r\n getWorkspaceService().savePersistedAnalysisJob(job);\r\n updateJobStatus(job);\r\n }",
"@Override\n\tpublic SchedulerJobEntity modifyJob(SchedulerJobEntity jobEntity) throws Exception {\n\n\t\tSchedulerJobEntity retVal = new SchedulerJobEntity();\n\n\t\tOptional<SchedulerJobEntity> existingJobEntityOpt = schedulerRepository.findById(jobEntity.getId());\n\t\tif (!existingJobEntityOpt.isPresent()) {\n\t\t\tthrow new GenericSchedulerException(\"job not exists\");\n\t\t}\n\n\t\tSchedulerJobEntity existingJobEntity = existingJobEntityOpt.get();\n\n\t\tString validateVerdict = validateModifiedJob(jobEntity, existingJobEntity);\n\t\tif (!StringUtils.isEmpty(validateVerdict)) {\n\t\t\tthrow new GenericSchedulerException(validateVerdict);\n\t\t}\n\n\t\tif (jobEntity.getCronJob()) {\n\n\t\t\tboolean modifiedCron = modifyCronScheduledJob(jobEntity);\n\n\t\t\tif (modifiedCron) {\n\t\t\t\tretVal = updateSchedulerJobEntity(jobEntity);\n\t\t\t} else {\n\t\t\t\tthrow new GenericSchedulerException(\"job or trigger not exists\");\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tboolean modifiedSimple = modifySimpleScheduledJob(jobEntity, existingJobEntity);\n\n\t\t\tif (modifiedSimple) {\n\t\t\t\tretVal = updateSchedulerJobEntity(jobEntity);\n\t\t\t} else {\n\t\t\t\tthrow new GenericSchedulerException(\"cannot update job\");\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}",
"@Test\r\n\tvoid testContactServiceUpdatPhone() {\r\n\t\t// update contact phone\r\n\t\tcontactService.updateContactPhone(id, \"9876543210\");\r\n\t\tassertTrue(contactService.getContactPhone(id).equals(\"9876543210\"));\r\n\t}",
"@Test\r\n public void testUpdate() {\r\n assertTrue(false);\r\n }",
"@Test\r\n public void testUpdate() throws Exception {\r\n MonitoriaEntity entity = data.get(0);\r\n PodamFactory pf = new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity = pf.manufacturePojo(MonitoriaEntity.class);\r\n nuevaEntity.setId(entity.getId());\r\n persistence.update(nuevaEntity);\r\n// Assert.assertEquals(nuevaEntity.getName(), resp.getName());\r\n }"
] | [
"0.731495",
"0.6200792",
"0.6015194",
"0.6008626",
"0.59963673",
"0.5964498",
"0.5938874",
"0.5909029",
"0.59030306",
"0.5902687",
"0.58994627",
"0.5898528",
"0.58773965",
"0.5868042",
"0.58125675",
"0.5779728",
"0.5771242",
"0.576459",
"0.5706971",
"0.56935847",
"0.5689551",
"0.56668335",
"0.56534594",
"0.56291735",
"0.55999553",
"0.5591373",
"0.5587695",
"0.55817145",
"0.5569725",
"0.5564516",
"0.5543967",
"0.5520766",
"0.5517051",
"0.55166626",
"0.55122435",
"0.55112034",
"0.55062413",
"0.55018157",
"0.54739094",
"0.54413795",
"0.54311484",
"0.5414634",
"0.54119",
"0.53960526",
"0.53907454",
"0.53812295",
"0.53776133",
"0.53687453",
"0.53673404",
"0.5361484",
"0.5359933",
"0.53541803",
"0.53295994",
"0.53225976",
"0.53113836",
"0.53028446",
"0.52980906",
"0.5297784",
"0.5288504",
"0.528215",
"0.52635926",
"0.5253991",
"0.5231438",
"0.52293146",
"0.5223193",
"0.52128595",
"0.52002984",
"0.51895934",
"0.51895887",
"0.51792717",
"0.5176131",
"0.5159253",
"0.51545054",
"0.51511735",
"0.51455826",
"0.5134867",
"0.5125471",
"0.51247835",
"0.51243883",
"0.5122715",
"0.5121558",
"0.5117364",
"0.5113251",
"0.51037",
"0.51001304",
"0.5085601",
"0.50853753",
"0.50834876",
"0.5076622",
"0.5074613",
"0.50739217",
"0.5070267",
"0.50701505",
"0.506692",
"0.50638247",
"0.50635433",
"0.5061544",
"0.50544333",
"0.505441",
"0.50518167"
] | 0.8016122 | 0 |
Test Failure of updateJobType method, of class JobsController. | @Test
public void testUpdateJobType_request_Internal_Server_Error()
{
JobTypes jobType = new JobTypes(1, "test1");
doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));
try {
mockMvc.perform(MockMvcRequestBuilders.post("/job_types/update/{id}", "2")
.content(asJsonString(jobType))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isInternalServerError())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testUpdateJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testAddNewJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(failMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\r\n\tvoid testUpdateSkillRecordShouldFail() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint playerSru = 99999999;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standardLevel = 5;\r\n\t\tint spinLevel = 4;\r\n\t\tint popLevel = 3;\r\n\t\tString passingNotes = \"Passing\";\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint frontLevel= 4;\r\n\t\tint rearLevel = 4;\r\n\t\tint sideLevel = 3;\r\n\t\tint scrabbleLevel = 2;\r\n\t\tString tacklingNotes = \"Tackling\";\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint dropLevel= 4;\r\n\t\tint puntLevel = 5;\r\n\t\tint grubberLevel = 3;\r\n\t\tint goalLevel = 3;\r\n\t\tString kickingNotes = \"Kicking\";\r\n\t\r\n\t\tboolean successful = ctrl.createNewSkillRecord(playerSru, standardLevel, spinLevel, popLevel, passingNotes,\r\n\t\t\t\tfrontLevel, rearLevel, sideLevel, scrabbleLevel, tacklingNotes,\r\n\t\t\t\tdropLevel, puntLevel, grubberLevel, goalLevel, kickingNotes);\r\n\t\t\r\n\t\tassertTrue(successful);\t\r\n\t}",
"@Test\n\tpublic void testUpdateTicketFail() {\t//campos nulos\n\t\t//tp.set_name(\"\");\n\t\t//assertFalse(sa.updatePlatform(tp)); //name empty y campos nulos\n\t\t//tp.set_name(\"PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3\");\n\t\t//assertFalse(sa.updatePlatform(tp)); //nombre >45 chars y campos nulos\n\t\t//tp.set_name(\"STEAM\"); //campos nulos menos nombre\n\t\t//assertFalse(sa.updatePlatform(tp)); //name empty y campos nulos\n\t\t//tp.set_activated(true);\n\t\t//assertFalse(sa.updatePlatform(tp)); //id nulo\n\t\t//Plataforma no existe\n\t\t//tp.set_id(8);\n\t\t//assertFalse(sa.updatePlatform(tp));\n\t}",
"@Then ( \"^The labor and delivery report is not updated successfully$\" )\n public void unsuccessfulEdit () {\n // confirm that the error message is displayed\n waitForAngular();\n try {\n final String temp = driver.findElement( By.name( \"errorMsg\" ) ).getText();\n if ( temp.equals( \"\" ) ) {\n fail();\n }\n }\n catch ( final Exception e ) {\n }\n }",
"@Test(expected = PAException.class)\r\n public void testUpdateFailure_NonIndustrial() throws Exception {\n final Session session = PaHibernateUtil.getCurrentSession();\r\n StudyProtocol protocol = (StudyProtocol) session.get(\r\n StudyProtocol.class, TestSchema.studyProtocolIds.get(0));\r\n protocol.setProprietaryTrialIndicator(false);\r\n session.update(protocol);\r\n session.flush();\r\n\r\n InterventionalStudyProtocolDTO studyProtocolDTO = getInterventionalStudyProtocol();\r\n OrganizationDTO leadOrganizationDTO = getLeadOrg();\r\n OrganizationDTO summary4Org = getSummary4Org();\r\n St leadOrganizationIdentifier = StConverter.convertToSt(\"NEW_LEAD_ID\");\r\n St nctIdentifier = StConverter.convertToSt(\"NEW_NCT_ID\");\r\n Cd summary4TypeCode = CdConverter\r\n .convertToCd(SummaryFourFundingCategoryCode.INDUSTRIAL);\r\n List<DocumentDTO> documents = getStudyDocuments();\r\n List<StudySiteDTO> studySiteDTOs = getStudySites();\r\n List<StudySiteAccrualStatusDTO> studySiteAccrualDTOs = getStudySiteAccrualStatusDTO(studySiteDTOs);\r\n\r\n bean.update(studyProtocolDTO, leadOrganizationDTO, summary4Org,\r\n leadOrganizationIdentifier, nctIdentifier, summary4TypeCode,\r\n documents, studySiteDTOs, studySiteAccrualDTOs);\r\n\r\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"@Override\r\n\tpublic void jobFailed(Job failedJob, Job retry) {\n\t\tgetCloudsim().log(\"WARNING: Job failed: \" + failedJob.getID());\r\n\t}",
"public void update(Job job) throws DatabaseException, IllegalArgumentException;",
"@Test\n public void testUpdateUser_InvalidAction() throws Exception {\n when(userService.getUserByUID(anyLong())).thenThrow(IncorrectResultSizeDataAccessException.class);\n\n mockMvc.perform(put(\"/api/users/123?action=invalid\")).andExpect(status().isBadRequest());\n\n verify(userService, times(0)).getUserByUID(anyLong());\n }",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(successMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n\tpublic void testUpdateTicketOk() {\n\t}",
"@Test\n public void tcEditProfileWithInvalidData() {\n\n }",
"public void test_UpdateContestStatus_Failure2() throws Exception {\r\n try {\r\n initContext();\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n entityManager.close();\r\n\r\n status.setName(\"sss\");\r\n beanUnderTest.updateContestStatus(status);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"public void test_UpdateContestStatus_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.updateContestStatus(status);\r\n\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"public void test_updateContest_Failure2() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n entityManager.close();\r\n\r\n contest.setName(\"sss\");\r\n beanUnderTest.updateContest(contest, 1, \"2\", true);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Test\n void testUpdateGoalie() {\n\n }",
"public void test_updateContest_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.updateContest(contest, 1, \"2\", true);\r\n\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void testUpdateUser_InvalidUser() throws Exception {\n when(userService.getUserByUID(anyLong())).thenThrow(IncorrectResultSizeDataAccessException.class);\n\n mockMvc.perform(put(\"/api/users/321?action=unlock\")).andExpect(status().isNotFound());\n\n verify(userService, times(1)).getUserByUID(anyLong());\n }",
"@When(\"^I modify journey type$\")\n public void iModifyJourneyType() throws Throwable {\n throw new PendingException();\n }",
"@Test(expected = Exception.class)\n public void shouldInformTheClientWithAnExceptionIfTheUpdateCausesAnException()\n\t throws Exception {\n\n\tfinal ArrayList<String> newValidValues = Lists.newArrayList(\"Hilton\",\n\t\t\"Hamburg\", \"2\", \"N\", \"12\", \"12.02.2007\", \"\");\n\n\tfinal UpdateRoomCommand command = new UpdateRoomCommand(newValidValues,\n\t\tvalidRoomOffer);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, null);\n\twhen(dao.read(validRoomOffer.getIndex())).thenReturn(validRoomOffer);\n\twhen(builder.createRoomOffer(newValidValues, validRoomOffer.getIndex()))\n\t\t.thenReturn(validRoomOffer);\n\tdoThrow(new RuntimeException()).when(dao).update(eq(validRoomOffer),\n\t\tanyLong());\n\n\troomOfferService.updateRoomOffer(command);\n\n\tverify(dao).lock(validRoomOffer.getIndex());\n\tverify(dao).unlock(eq(validRoomOffer.getIndex()), anyLong());\n\tverify(dao).update(eq(validRoomOffer), anyLong());\n }",
"@Test\n\tpublic void validateUpdateOperation() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tget(\"/secure/user/{username}\", \"username1\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"firstName\").value(\"updatedFirstName\"));\n\n\t}",
"public boolean modifyJob(String jobID, String jobTitle, String jobType,\n String salary, String jobDescription, String expirationDate,\n String contactEmail){\n //Will locate the job with the jobID\n //Then will move the user input for each input\n //to its respected fields\n //Will then return true if successful\n Job newJob = new Job(contactEmail, jobType, jobID, jobDescription, salary, jobTitle, expirationDate);\n for(int i = 0; i< jobs.size(); i++){\n this.currentJob = jobs.get(i);\n if(this.currentJob.getJobID().compareTo(newJob.getJobID())==0){\n jobs.set(i,newJob);\n String success = String.format(\"=========JOB POSTING MODIFICATION SUCCESS=========\\n\"+\n \"A new job has been posted with following details:\\n\"+\n \"Job ID: %s\\n\"+\n \"Job Name: %s\\n\"+\n \"Job Type: %s\\n\"+\n \"Salary: %s\\n\"+\n \"Job Description: %s\\n\"+\n \"Expiration Date: %s\\n\"+\n \"Contact email: %s\\n\", jobID,jobTitle,jobType,salary,jobDescription,expirationDate,contactEmail);\n System.out.println(success);\n return true;\n }\n }\n return false;\n }",
"@Test\n public void testUpdateUser_NoAction() throws Exception {\n when(userService.getUserByUID(anyLong())).thenThrow(IncorrectResultSizeDataAccessException.class);\n\n mockMvc.perform(put(\"/api/users/123\")).andExpect(status().isBadRequest());\n\n verify(userService, times(0)).getUserByUID(anyLong());\n }",
"@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testGetJobTypesById_request_Not_Found()\n { \n Optional<JobTypes> emptyJobType = Optional.empty();\n \n doReturn(emptyJobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(emptyJobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isNotFound())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Override\n\tpublic boolean onJobError(ApiJob job) {\n\t\treturn false;\n\t}",
"@Test\r\npublic void testUpdateStatusForInprogress()\r\n{\r\n\t//Mocking request and session attributes\r\n\twhen(request.getSession()).thenReturn(session);\r\n\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\r\n\twhen(session.getAttribute(\"userRole\")).thenReturn(\"ADMIN\");\r\n\t//Mocking issueAdminService findById to return mocked issue\r\n\twhen(issueAdminService.findById(1)).thenReturn(newissues);\r\n\t//Mocking userRepository findById to return mocked issue\r\n\twhen(userRepository.findById(10)).thenReturn(mockUser);\r\n\tModelAndView model = new ModelAndView();\r\n\tmodel = issueAdminController.issuestatusupdate(1,request);\r\n\t//Assert Statements\r\n\tassertTrue(model.getModel().containsKey(\"display_Issuestatus\"));\r\n\tassertTrue(model.getModel().containsValue(\"InProgress\"));\r\n\t\r\n}",
"private void failJobAndIndependentStages(ActiveJob activeJob, String reason) {\n failJobAndIndependentStages(activeJob, reason, null);\n }",
"@Test\n public void testUpdateException() {\n when(client.receiveFromServer()).thenThrow(new RuntimeException(\"server down\"));\n\n service.update(1L, plantedPlant);\n\n verify(client).sendToServer(\"update#PlantedPlant\");\n verify(client).sendToServer(1L);\n verify(client).sendToServer(plantedPlant);\n }",
"public void test_UpdateContestStatus_Failure4() throws Exception {\r\n try {\r\n initContext();\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n entityManager.enablePersistenceException(true);\r\n\r\n status.setName(\"sss\");\r\n beanUnderTest.updateContestStatus(status);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"private static void testupdate() {\n\t\ttry {\n\t\t\tRoleModel model = new RoleModel();\n\t\t\tRoleBean bean = new RoleBean();\n\t\t\tbean = model.findByPK(7L);\n\t\t\tbean.setName(\"Finance\");\n\t\t\tbean.setDescription(\"Finance Dept\");\n\t\t\tbean.setCreatedBy(\"CCD MYSORE\");\n\t\t\tbean.setModifiedBy(\"CCD MYSORE\");\n\t\t\tbean.setCreatedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tbean.setModifiedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tmodel.update(bean);\n\t\t\tRoleBean updateBean = model.findByPK(1);\n\t\t\tif (\"12\".equals(updateBean.getName())) {\n\t\t\t\tSystem.out.println(\"UPDATE RECORD FAILED\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"RECORD UPDATED SUCCESSFULLY\");\n\t\t\t}\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (DuplicateRecordException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public ProgramsEditPage failToUpdate()\r\n\t{\r\n\t\treadconfig();\r\n\t\tdriver.findElement(By.id(manage.getProperty(\"program_edit_submit\"))).click();\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tAssert.assertEquals(driver.getTitle(),manage.getProperty(\"program_edit_page_title\"));\r\n\t\treturn new ProgramsEditPage(driver);\r\n\t}",
"public CampaignAddPage failToUpdate()\r\n\t{\r\n\t\treadconfig();\r\n\t\tdriver.findElement(By.id(library.getProperty(\"camp_edit_submit\"))).click();\r\n\t\ttry {\r\n\t\t\tThread.sleep(4000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tAssert.assertEquals(driver.getTitle(),library.getProperty(\"camp_edit_page_title\"));\r\n\t\treturn new CampaignAddPage(driver);\r\n\t}",
"@Test\n @WithMockUser(username=\"supervisor_admin\",roles={\"PM\",\"ADMIN\"})\n public void shouldUpdateAssessmentRubric() throws Exception {\n\n // Creating Rubric object using test values\n String rubricTitle = \"test_rubric_title\";\n int rubricRank = 4;\n boolean rubricIsEnabled = true;\n\n AssessmentRubric rubricObject = new AssessmentRubric();\n rubricObject.setTitle(rubricTitle);\n rubricObject.setStarting_date_time(LocalDateTime.now());\n rubricObject.setEnd_date_time(LocalDateTime.now());\n rubricObject.setEnabled(rubricIsEnabled);\n rubricObject.setRank(rubricRank);\n\n rubricObject.setRubricType(getMockTestRubricType());\n rubricObject.setLearningProcess(getMockTestLearningProcess());\n\n // Creating process JSON\n byte[] rubricJSON = this.mapper.writeValueAsString(rubricObject).getBytes();\n\n // invoke Create\n MvcResult resultInsert = mvc.perform(post(BASE_URL).content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle)))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank)))\n .andExpect(jsonPath(\"$.enabled\", is(rubricIsEnabled)))\n .andReturn();\n\n\n AssessmentRubric rubricUpdatable = this.mapper.readValue(resultInsert.getResponse().getContentAsByteArray(), AssessmentRubric.class);\n // Update the inserted AssessmentRubric\n rubricUpdatable.setTitle(rubricTitle +\" updated\");\n rubricUpdatable.setRank(rubricRank +1 );\n rubricUpdatable.setEnabled(!rubricIsEnabled);\n\n rubricJSON = this.mapper.writeValueAsString(rubricUpdatable).getBytes();\n\n // UPDATE: Operation\n MvcResult resultUpdate = mvc.perform(put(BASE_URL+\"/\"+rubricUpdatable.getId())\n .content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").exists())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle +\" updated\")))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank + 1)))\n .andExpect(jsonPath(\"$.enabled\", is(!rubricIsEnabled)))\n .andReturn();\n\n\n }",
"@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}",
"public void failOnMappingUpdate(Exception cause) {\n assert assertInvariants(ItemProcessingState.WAIT_FOR_MAPPING_UPDATE);\n currentItemState = ItemProcessingState.EXECUTED;\n final DocWriteRequest docWriteRequest = getCurrentItem().request();\n executionResult = new BulkItemResponse(\n getCurrentItem().id(),\n docWriteRequest.opType(),\n // Make sure to use getCurrentItem().index() here, if you use docWriteRequest.index() it will use the\n // concrete index instead of an alias if used!\n new BulkItemResponse.Failure(getCurrentItem().index(), docWriteRequest.id(), cause)\n );\n markAsCompleted(executionResult);\n }",
"@Test\n\t@Override\n\tpublic void testUpdateObjectNotFoundJson() throws Exception {\n\t}",
"public void onUpdateFailure();",
"public abstract void updateStatus() throws Throwable;",
"public void test_updateContest_Failure4() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n entityManager.enablePersistenceException(true);\r\n\r\n contest.setName(\"sss\");\r\n beanUnderTest.updateContest(contest, 1, \"2\", true);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Override\n public void testTaskManagerFailure(\n TestEnvironment testEnv,\n ExternalContext<RowData> externalContext,\n ClusterControllable controller)\n throws Exception {\n }",
"public void test_UpdateContestStatus_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n beanUnderTest.addContestStatus(status);\r\n\r\n entityManager.enableTransactionException(true);\r\n\r\n status.setName(\"sss\");\r\n beanUnderTest.updateContestStatus(status);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"public void testUpdateWithFormError() {\n Basket_up.setPath(BasketPath);\n TUpdate_Return[] Baskets_update_out = basketService.update(new TUpdate_Input[] { Basket_up });\n Baskets_update_out[0].setFormErrors(new TFormError[] { new TFormError() });\n assertEquals(\"updateWithFormError resultset\", Baskets_update_out[0].getFormErrors().length, 1);\n }",
"@Test\n\t@Override\n\tpublic void testUpdateObjectOKJson() throws Exception {\n\t}",
"public void test_UpdateDocument_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Document document = createDocumentForTest();\r\n\r\n beanUnderTest.updateDocument(document);\r\n\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"public void test_updateContest_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n entityManager.enableTransactionException(true);\r\n\r\n contest.setName(\"sss\");\r\n beanUnderTest.updateContest(contest, 1, \"2\", true);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Test\n public void noUpdateWhenNotValidParams() {\n }",
"@Test\n public void testEditTravel_RecordNotFoundExceptionUpdateTravel() throws Exception {\n doThrow(new RecordNotFoundException()).when(databaseMock).updateTravel(anyInt(), anyInt(), any(Travel.class));\n \n mockMVC.perform(put(\"/user/1/travel/1\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(dto))\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNotFound());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verify(databaseMock, times(1)).updateTravel(anyInt(), anyInt(), any(Travel.class));\n verifyNoMoreInteractions(databaseMock);\n }",
"@Test\n @DisplayName(\"We're R4, there have been successful jobs so set default since\")\n void testDefaultSince() {\n Job oldJob = new Job();\n oldJob.setJobUuid(\"AA-BB\");\n oldJob.setStatus(JobStatus.SUCCESSFUL);\n oldJob.setStatusMessage(\"100%\");\n oldJob.setOrganization(pdpClient.getOrganization());\n oldJob.setOutputFormat(NDJSON_FIRE_CONTENT_TYPE);\n OffsetDateTime oldJobTime = OffsetDateTime.parse(\"2021-01-01T00:00:00.000-05:00\", DateTimeFormatter.ISO_DATE_TIME);\n oldJob.setCreatedAt(oldJobTime);\n oldJob.setFhirVersion(STU3);\n oldJob.setContractNumber(contract.getContractNumber());\n oldJob = jobRepository.save(oldJob);\n\n // This is an even early job (want to make sure it picks the correct old job)\n Job reallyOldJob = new Job();\n reallyOldJob.setJobUuid(\"CC-DD\");\n reallyOldJob.setStatus(JobStatus.SUCCESSFUL);\n reallyOldJob.setStatusMessage(\"100%\");\n reallyOldJob.setOrganization(pdpClient.getOrganization());\n reallyOldJob.setStartedBy(DEVELOPER);\n reallyOldJob.setOutputFormat(NDJSON_FIRE_CONTENT_TYPE);\n OffsetDateTime reallyOldldJobTime = OffsetDateTime.parse(\"2020-12-01T00:00:00.000-05:00\", DateTimeFormatter.ISO_DATE_TIME);\n reallyOldJob.setCreatedAt(reallyOldldJobTime);\n reallyOldJob.setFhirVersion(R4);\n reallyOldJob.setContractNumber(contract.getContractNumber());\n reallyOldJob = jobRepository.save(reallyOldJob);\n\n Job newJob = new Job();\n newJob.setJobUuid(\"YY-ZZ\");\n newJob.setStatus(JobStatus.SUBMITTED);\n newJob.setStatusMessage(\"0%\");\n newJob.setOrganization(pdpClient.getOrganization());\n newJob.setOutputFormat(NDJSON_FIRE_CONTENT_TYPE);\n newJob.setCreatedAt(OffsetDateTime.now());\n newJob.setFhirVersion(R4);\n newJob.setContractNumber(contract.getContractNumber());\n newJob = jobRepository.save(newJob);\n\n Job processedJob = cut.preprocess(newJob.getJobUuid());\n assertEquals(oldJobTime.getNano(), processedJob.getSince().getNano());\n assertEquals(AB2D, processedJob.getSinceSource());\n\n addJobForCleanup(oldJob);\n addJobForCleanup(reallyOldJob);\n addJobForCleanup(newJob);\n }",
"@Test\n\t@Override\n\tpublic void testUpdateObjectWrongIdJson() throws Exception {\n\t}",
"@Test\npublic void testUpdateResult() throws Exception { \n//TODO: Test goes here... \n}",
"@Test\n public void testUpdateApartmentStatus() {\n System.out.println(\"updateApartmentStatus\");\n String status = \"Unavailable\";\n int apartmentid = 2;\n ApartmentBLL instance = new ApartmentBLL();\n instance.updateApartmentStatus(status, apartmentid);\n }",
"@Test\n\tpublic void testUpdateTask() {\n\t}",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void updateAdmissionBedNoTestCase() throws IOException, JSONException {\n\n\t\tJSONObject jsonRequestObject = new JSONObject(RequestUtil\n\t\t\t\t.requestByID(TestCaseConstants.UPDATE_ADMISSION_BED_NO));\n\t\t\n\t\tArrayList<String> resArrayList = getHTTPResponse(\n\t\t\t\tproperties\n\t\t\t\t\t\t.getProperty(TestCaseConstants.URL_APPEND_UPDATE_ADMISSION_BED_NO),\n\t\t\t\tTestCaseConstants.HTTP_PUT, jsonRequestObject.toString());\n\n\t\tSystem.out.println(\"message :\"+resArrayList.get(0));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)),\n\t\t\t\tSUCCESS_STATUS_CODE);\n\t\t\n\t}",
"@Test\n public void updateDecline() throws Exception {\n }",
"@Test\n public void updateUnknownRule() throws Exception {\n RuleEntity rule = new RuleEntity();\n rule.setPackageName(\"junitPackage\");\n rule.setStatus(Status.INACTIVE);\n rule.setRuleName(\"junitRuleName\");\n rule.setRule(Base64.getEncoder().encodeToString(\"jUnit Rule Contents\".getBytes()));\n /*\n * update it\n */\n rule.setRule(Base64.getEncoder().encodeToString(\"jUnit UPDATED Rule Contents\".getBytes()));\n HttpEntity<RuleEntity> entity = new HttpEntity<RuleEntity>(rule);\n ResponseEntity<TranslatedExceptionMessage> updateResponse = template.exchange(\n base.toString() + \"/1234\",\n HttpMethod.PUT,\n entity,\n TranslatedExceptionMessage.class, rule);\n\n Assert.assertEquals(\"checking for 404\", NOT_FOUND, updateResponse.getStatusCode());\n Assert.assertEquals(\"checking for not found message\",\n \"rule 1234 not found in database on update\",\n updateResponse.getBody().getMessage());\n }",
"public void setFailStatus(java.lang.String newFailStatus) {\n\tfailStatus = newFailStatus;\n}",
"@Test\n public void testUnpaidDepositReportJob() throws Exception {\n Job allocScraperJob = new AllocationScraperJob();\n allocScraperJob.setStatus( JobStatus.completed );\n dao.insertJob( allocScraperJob );\n\n // setup a job to scrape allocation info\n Job j = new UnpaidDepositReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocScraperJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@CrossOrigin\n\t@RequestMapping(value=\"/setFailure\", method= RequestMethod.POST)\n\tpublic JSONObject setFailure(@RequestBody StatusRequestBodyMessage requestBody, @RequestHeader HttpHeaders headers) {\n\t\tHeadersManager.setHeaders(headers);\n\t\ttry {\n\t\t String jobId = requestBody.jobId;\n\t\t \n\t\t SimpleResultSet res = new SimpleResultSet();\n\t\t LoggerRestClient logger = LoggerRestClient.getInstance(log_prop);\n\t \tLoggerRestClient.easyLog(logger, \"Status Service\", \"setFailure start\", \"JobId\", jobId, \"Message\", requestBody.message);\n\t \tLocalLogger.logToStdOut(\"Status Service setFailure start JobId=\" + jobId + \" Message=\" + requestBody.message);\n\t \t\n\t\t try {\n\t\t \t\n\t\t \tJobTracker tracker = this.getTracker();\n\t\t \ttracker.setJobFailure(jobId, requestBody.message);\n\t\t\t res.setSuccess(true);\n\t\t\t \n\t\t } catch (Exception e) {\n\t\t \tres.setSuccess(false);\n\t\t \tres.addRationaleMessage(SERVICE_NAME, \"setFailure\", e);\n\t\t\t LoggerRestClient.easyLog(logger, \"Status Service\", \"setFailure exception\", \"message\", e.toString());\n\t\t\t LocalLogger.logToStdOut(\"Status Service setFailure exception message=\" + e.toString());\n\t\t } \n\t\t \n\t\t return res.toJson();\n\t\t \n\t\t} finally {\n\t \tHeadersManager.clearHeaders();\n\t }\n\t\t \n\t}",
"@Test\r\npublic void testUpdateStatusForSolved()\r\n{\r\n\t//Mocked request and session attributes\r\n\twhen(request.getSession()).thenReturn(session);\r\n\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\r\n\twhen(session.getAttribute(\"userRole\")).thenReturn(\"ADMIN\");\r\n\t//mocking issueAdminService findById to return mocked issue\r\n\twhen(issueAdminService.findById(1)).thenReturn(newissues1);\r\n\t//Mocking userRepository findById to return mocked user\r\n\twhen(userRepository.findById(10)).thenReturn(mockUser);\r\n\tModelAndView model = new ModelAndView();\r\n\tmodel = issueAdminController.issuestatusupdate(1,request);\r\n\t//Assert Statements\r\n\tassertTrue(model.getModel().containsKey(\"display_Issuestatus\"));\r\n\tassertTrue(model.getModel().containsValue(\"Solved\"));\r\n\t\r\n}",
"@Override\n public void fail(String status, String msg, Object object) {\n\n }",
"@Test\n final void testUpdateDevice() {\n when(deviceDao.findDevice(user, DeviceFixture.SERIAL_NUMBER))\n .thenReturn(Optional.of(deviceDTO));\n deviceModel.setStatus(\"Stopped\");\n when(deviceMapper.toDto(deviceModel)).thenReturn(deviceDTO);\n when(deviceDao.save(user, deviceDTO)).thenReturn(deviceDTO);\n when(deviceMapper.toModel(deviceDTO)).thenReturn(deviceModel);\n ResponseEntity<DeviceModel> response = deviceController.updateDevice(deviceModel);\n\n assertEquals(200, response.getStatusCodeValue());\n assertNotNull(response.getBody());\n assertEquals(\"Stopped\", response.getBody().getStatus());\n }",
"@Test\n public void testGetJobTypesById_request_OK()\n {\n JobTypes jobType1 = new JobTypes(1, \"test1\");\n \n Optional<JobTypes> jobType = Optional.of(jobType1);\n \n doReturn(jobType).when(jobTypesService).getJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.get(\"/job_types/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n @DisplayName(\"replace updates anime when successful\")\n void replace_UpdatesAnime_WhenSuccessful() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(USER);\n\n // setting a new name so that we update the anime aftewards\n savedAnime.setName(\"new name\");\n \n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleUser.exchange(\n \"/animes\",\n HttpMethod.PUT,\n new HttpEntity<>(savedAnime),\n Void.class\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.NO_CONTENT);\n\n }",
"@Test\n public void updateContact() {\n }",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values = {\"all\",\"dept-update\"})\n public void _2_4_1_updateExistDept() throws Exception {\n Department d = d_1;\n d.setDescription(\"修改部门1描述\");\n this.mockMvc.perform(put(\"/api/v1.0/companies/\"+\n d.getCompany()+\n \"/departments/\"+\n d.getId())\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(d)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\",is(d.getId().toString())))\n .andExpect(jsonPath(\"$.description\",is(d.getDescription())));\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n Log.i(\"update\", \"failed\");\n }",
"public void testSetSubmissionStatus() {\n try {\n sub.setSubmissionStatus(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }",
"@Override\n\tpublic void updateTestCase(TestCaseStatus testCaseStatus) {\n\t\t\n\t}",
"@Test\n public void testSplitRoomReservationReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find all bookings spanning different rooms\n Job j = new SplitRoomReservationReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test \n\tpublic void testUpdateSetting() throws Exception\n\t{\n\t}",
"@Test\r\n public void testUpdateValid() throws PAException {\r\n Ii studyDiseaseIi = IiConverter.convertToStudyDiseaseIi(TestSchema.studyDiseaseIds.get(0));\r\n StudyDiseaseDTO studyDiseaseDTO = bean.get(studyDiseaseIi);\r\n Ii diseaseIi = IiConverter.convertToIi(TestSchema.pdqDiseaseIds.get(3));\r\n studyDiseaseDTO.setDiseaseIdentifier(diseaseIi);\r\n StudyDiseaseDTO result = bean.update(studyDiseaseDTO);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, result);\r\n StudyDiseaseDTO saved = bean.get(studyDiseaseIi);\r\n assertNotNull(\"No result returned\", saved);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, saved);\r\n }",
"@Override\n\tpublic void onUpdateComplete(Class clazz, HttpStatus errorCode) {\n\t\t\n\t}",
"@Test\n\tpublic void updateTestPaperQuestion() throws Exception {\n\t}",
"@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}",
"@Test\n @IfProfileValue(name = \"dept-test-group\", values = {\"all\",\"role\",\"update-role\"})\n public void _4_4_1_updateExistRole() throws Exception {\n\n String _id = r_2.getId().toString();\n r_2.setDescription(\"修改角色测试\");\n log.debug(\"_4_4_1_updateExistRole:{}\",json(r_2));\n this.mockMvc.perform(put(PATH_PREFIX_v1+\n r_2.getCompany()+\n \"/departments/\"+\n r_2.getCompany()+\n \"/roles/\"+\n _id)\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(r_2)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\",is(_id)))\n .andExpect(jsonPath(\"$.description\",is(r_2.getDescription())));\n }",
"JobResponse.Update update();",
"@SuppressWarnings(\"unchecked\")\n @Test\n public void testBackenStatusUpdateError() throws Exception {\n RequestBodyEntity bodyEntityRegister = mock(RequestBodyEntity.class);\n \n HttpResponse<String> stringResponseRegister = (HttpResponse<String>) mock(HttpResponse.class);\n when(stringResponseRegister.getStatus())\n .thenReturn(400); \n when(bodyEntityRegister.asString())\n .thenReturn(stringResponseRegister); \n\n HttpRequestWithBody registerBodyMock = mock(HttpRequestWithBody.class);\n \n when(registerBodyMock.routeParam(anyString(), anyString()))\n .thenReturn(registerBodyMock);\n when(registerBodyMock.header(anyString(), anyString()))\n .thenReturn(registerBodyMock);\n when(registerBodyMock.body(anyString()))\n .thenReturn(bodyEntityRegister);\n\n // PUT mock\n when(Unirest.put(contains(\"/event/status\")))\n .thenReturn(registerBodyMock); \n \n TestWorker testWorker = new TestWorker();\n worker = getWrappedWorker(testWorker);\n worker.run();\n \n // let worker throw CommunicationException\n Envelope envelope = new Envelope(new Long(34343), false, \"graviton\", \"documents.core.app.update\");\n URL jsonFile = this.getClass().getClassLoader().getResource(\"json/queueEvent.json\");\n String message = FileUtils.readFileToString(new File(jsonFile.getFile()));\n workerConsumer.handleDelivery(\"documents.core.app.update\", envelope, new AMQP.BasicProperties(), message.getBytes()); \n }",
"@Override\n\tpublic SchedulerJobEntity modifyJob(SchedulerJobEntity jobEntity) throws Exception {\n\n\t\tSchedulerJobEntity retVal = new SchedulerJobEntity();\n\n\t\tOptional<SchedulerJobEntity> existingJobEntityOpt = schedulerRepository.findById(jobEntity.getId());\n\t\tif (!existingJobEntityOpt.isPresent()) {\n\t\t\tthrow new GenericSchedulerException(\"job not exists\");\n\t\t}\n\n\t\tSchedulerJobEntity existingJobEntity = existingJobEntityOpt.get();\n\n\t\tString validateVerdict = validateModifiedJob(jobEntity, existingJobEntity);\n\t\tif (!StringUtils.isEmpty(validateVerdict)) {\n\t\t\tthrow new GenericSchedulerException(validateVerdict);\n\t\t}\n\n\t\tif (jobEntity.getCronJob()) {\n\n\t\t\tboolean modifiedCron = modifyCronScheduledJob(jobEntity);\n\n\t\t\tif (modifiedCron) {\n\t\t\t\tretVal = updateSchedulerJobEntity(jobEntity);\n\t\t\t} else {\n\t\t\t\tthrow new GenericSchedulerException(\"job or trigger not exists\");\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tboolean modifiedSimple = modifySimpleScheduledJob(jobEntity, existingJobEntity);\n\n\t\t\tif (modifiedSimple) {\n\t\t\t\tretVal = updateSchedulerJobEntity(jobEntity);\n\t\t\t} else {\n\t\t\t\tthrow new GenericSchedulerException(\"cannot update job\");\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}",
"@Test\n public void updateEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertFalse(employeeResource.updateEmployee(new Employee(\"notdummy\", \"dummyUpdated\", \"dummyUpdated\", \"dummyUpdated\", \"dummyUpdated\", 1)));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"public void updateJobCommand(JobCommand jobCommand) throws DatabaseException, IllegalArgumentException;",
"public void test_UpdateDocument_Failure2() throws Exception {\r\n try {\r\n initContext();\r\n\r\n\r\n Document document = createDocumentForTest();\r\n beanUnderTest.addDocument(document);\r\n entityManager.close();\r\n\r\n beanUnderTest.updateDocument(document);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"void onHadoopJobFailure(LmmpJob job, String failReason);",
"private static void testValid() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_valid; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_valid_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n } finally {\n userInt.removeJob(job);\n }\n Assert.assertTrue(\"JobFactory returned null for valid job \" + job_path, job != null);\n Assert.assertTrue(\"JobFactory threw an exception for valid job \" + job_path, exc == null);\n }\n SchedulerTHelper.log(jobs_valid + \" valid jobs successfully created\");\n }",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tWindow.alert(\"failed to add new Information Request in Updated list\");\r\n\t\t\t}",
"@Test\r\npublic void testUpdateStatusForUnderReview()\r\n{\r\n\t//mocking request and session attributes\r\n\twhen(request.getSession()).thenReturn(session);\r\n\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\r\n\twhen(session.getAttribute(\"userRole\")).thenReturn(\"ADMIN\");\r\n\t//mocking issueAdminService findById to return mocked issue\r\n\twhen(issueAdminService.findById(1)).thenReturn(issues);\r\n\t//mocking userRepository findById to return mocked user\r\n\twhen(userRepository.findById(10)).thenReturn(mockUser);\r\n\tModelAndView model = new ModelAndView();\r\n\tmodel = issueAdminController.issuestatusupdate(1,request);\r\n\t//Assert Statements\r\n\tassertTrue(model.getModel().containsKey(\"display_Issuestatus\"));\r\n\tassertTrue(model.getModel().containsValue(\"Under Review\"));\r\n\t\r\n}",
"@Test\r\n public void testUpdate() {\r\n }",
"public void fail( String reason );",
"@Test\n public void testSaveCurrentProgress() throws Exception {\n try{\n service.saveCurrentProgress();\n } catch(Exception e){\n fail(\"Exception should not be thrown on save!!!\");\n }\n }",
"@Test\n public void testAllocationScraperJob() throws Exception {\n AllocationScraperJob j = new AllocationScraperJob();\n j.setStatus( JobStatus.submitted );\n j.setStartDate( Calendar.getInstance().getTime() );\n j.setDaysAhead( 27 );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"@Test\r\n\tvoid testUpdateSkillRecordShouldPass() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint playerSru = 1000;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standardLevel = 5;\r\n\t\tint spinLevel = 4;\r\n\t\tint popLevel = 3;\r\n\t\tString passingNotes = \"Passing\";\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint frontLevel= 4;\r\n\t\tint rearLevel = 4;\r\n\t\tint sideLevel = 3;\r\n\t\tint scrabbleLevel = 2;\r\n\t\tString tacklingNotes = \"Tackling\";\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint dropLevel= 4;\r\n\t\tint puntLevel = 5;\r\n\t\tint grubberLevel = 3;\r\n\t\tint goalLevel = 3;\r\n\t\tString kickingNotes = \"Kicking\";\r\n\t\r\n\t\tboolean successful = ctrl.createNewSkillRecord(playerSru, standardLevel, spinLevel, popLevel, passingNotes,\r\n\t\t\t\tfrontLevel, rearLevel, sideLevel, scrabbleLevel, tacklingNotes,\r\n\t\t\t\tdropLevel, puntLevel, grubberLevel, goalLevel, kickingNotes);\r\n\t\t\r\n\t\tassertTrue(successful);\r\n\t}",
"@Test\n public void shouldUpdateTheSpezifiedValidRoomAndPersistTheChanges()\n\t throws Exception {\n\n\tfinal ArrayList<String> newValidValues = Lists.newArrayList(\"Hilton\",\n\t\t\"Hamburg\", \"2\", \"N\", \"12\", \"12.02.2007\", \"\");\n\n\tfinal UpdateRoomCommand command = new UpdateRoomCommand(newValidValues,\n\t\tvalidRoomOffer);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, null);\n\twhen(dao.read(validRoomOffer.getIndex())).thenReturn(validRoomOffer);\n\twhen(builder.createRoomOffer(newValidValues, validRoomOffer.getIndex()))\n\t\t.thenReturn(validRoomOffer);\n\n\tfinal UrlyBirdRoomOffer updatedRoomOffer = roomOfferService\n\t\t.updateRoomOffer(command);\n\n\tverify(dao).lock(validRoomOffer.getIndex());\n\tverify(dao).unlock(eq(validRoomOffer.getIndex()), anyLong());\n\tverify(dao).update(eq(validRoomOffer), anyLong());\n\tassertThat(updatedRoomOffer, is(equalTo(validRoomOffer)));\n }",
"@Test\r\n public void testUpdate() {\r\n assertTrue(false);\r\n }",
"public void attemptToUpdate();",
"@Test\n public void testUpdatePharmacy() throws Exception {\n System.out.println(\"updatePharmacy\");\n\n //Null test\n PharmacyDTO pharmacy = null;\n ManagePharmaciesController instance = new ManagePharmaciesController();\n PharmacyDTO expResult = null;\n PharmacyDTO result = instance.updatePharmacy(pharmacy);\n Assertions.assertEquals(expResult, result);\n\n //Value test\n instance = new ManagePharmaciesController();\n PharmacyDB db = Mockito.mock(PharmacyDB.class);\n PharmaDeliveriesApp.getInstance().getPharmacyService().setPharmacyDB(db);\n PharmacyDTO update = getPharmacyDTOTest(\"teste1\");\n Pharmacy returnedP = convertPharmacyDTO(update);\n when(db.updatePharmacy(any(Pharmacy.class))).thenReturn(returnedP);\n Assertions.assertEquals(instance.updatePharmacy(update).getName(), update.getName());\n Assertions.assertEquals(instance.updatePharmacy(update).getId(), update.getId());\n \n when(db.updatePharmacy(any(Pharmacy.class))).thenReturn(null);\n Assertions.assertNull(instance.updatePharmacy(update));\n }",
"@Test\r\n\tpublic void updateFunctionTestFail(){\r\n\t\tSystem.out.println(\"TEST STARTED: updateFunctionTestFail()\");\r\n\t\tLong orgId = null;\r\n\t\tLong funcId = null;\r\n\t\ttry{\r\n\t\t\t//create the test organization\r\n\t\t\tString createOrgResp = org_service.createOrganization(CREATE_ORG_REQ_1);\r\n\t\t\torgId = getRecordId(createOrgResp);\r\n\t\t\tSystem.out.println(createOrgResp);\r\n\t\t\t\r\n\t\t\t//create the test function linked to the organization test\r\n\t\t\tString createFuncResp = func_service.createFunction(CREATE_FUNCTION_REQ_1.replace(\"$ID_ORG\", orgId.toString()));\r\n\t\t\tSystem.out.println(\"CreateFunction Response: \"+createFuncResp);\r\n\t\t\t\r\n\t\t\t//get the new function ID\r\n\t\t\tfuncId = getRecordId(createFuncResp);\r\n\t\t\t\r\n\t\t\t//check if the createFuncResp is a well formed JSON object.\t\t\t\r\n\t\t\tcheckJsonWellFormed(createFuncResp);\r\n\t\t\t\r\n\t\t\tLong wrongFuncId = funcId+1;\r\n\t\t\t\r\n\t\t\t//update an unexisting function.\r\n\t\t\tString updateFuncResp = func_service.updateFunction(UPDATE_FUNCTION_REQ_1.replace(\"$ID_FUNC\", wrongFuncId.toString()).replace(\"$ID_ORG\", orgId.toString()));\r\n\t\t\tSystem.out.println(\"UpdateFunction Response: \"+updateFuncResp);\r\n\t\t\t\r\n\t\t\tcheckJsonWellFormed(updateFuncResp);\r\n\r\n\t\t\tAssert.assertTrue(updateFuncResp.contains(\"\\\"status\\\":\\\"error\\\"\"));\r\n\t\t}catch (Exception e){\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}finally{\r\n\t\t\t//delete the test organization created\r\n\t\t\torg_service.deleteOrganization(DELETE_ORG_REQ_1+orgId+REQ_END);\r\n\t\t\t//delete the test function created\r\n\t\t\tfunc_service.deleteFunction(DELETE_FUNC_REQ_1+funcId+REQ_END);\r\n\t\t\tSystem.out.println(\"TEST ENDED: updateFunctionTestFail()\");\r\n\t\t}\r\n\t}"
] | [
"0.71058017",
"0.6582782",
"0.64691",
"0.60474235",
"0.5898171",
"0.5872914",
"0.5865183",
"0.58403796",
"0.5831053",
"0.58113474",
"0.58005434",
"0.57990843",
"0.57417256",
"0.5731029",
"0.57281595",
"0.57163304",
"0.5709626",
"0.5694266",
"0.5666707",
"0.56511605",
"0.5623045",
"0.5604607",
"0.56029326",
"0.55944115",
"0.55827916",
"0.55806744",
"0.5570759",
"0.5555312",
"0.55470717",
"0.5546512",
"0.5546082",
"0.55223244",
"0.5518727",
"0.55171615",
"0.55151874",
"0.55127126",
"0.5504758",
"0.5494018",
"0.54927516",
"0.54861504",
"0.5475179",
"0.545922",
"0.5449152",
"0.54429454",
"0.5435242",
"0.54333806",
"0.5429616",
"0.541743",
"0.54150015",
"0.54080474",
"0.5407872",
"0.54053515",
"0.5399414",
"0.5390656",
"0.5389089",
"0.5385518",
"0.5373638",
"0.53533834",
"0.5352313",
"0.53441584",
"0.53435165",
"0.5340902",
"0.5338734",
"0.5316997",
"0.5312128",
"0.5309069",
"0.53075683",
"0.5301757",
"0.52933544",
"0.5275778",
"0.5273552",
"0.526828",
"0.52627766",
"0.52602607",
"0.52570474",
"0.52461517",
"0.5242183",
"0.52402353",
"0.5228898",
"0.52146083",
"0.52128077",
"0.52118456",
"0.5207012",
"0.5206469",
"0.52018946",
"0.51972824",
"0.51860595",
"0.51809597",
"0.5177998",
"0.5176129",
"0.51706463",
"0.5170323",
"0.5164611",
"0.51568973",
"0.5156862",
"0.514919",
"0.51453006",
"0.51442796",
"0.5142875",
"0.5139903"
] | 0.7742631 | 0 |
Test Success of deleteJobType method, of class JobsController. | @Test
public void testDeleteJobType_request_Ok()
{
String successMessage = "Successfully Deleted!";
doReturn(true).when(jobTypesService).deleteJobType(anyInt());
try {
mockMvc.perform(MockMvcRequestBuilders.delete("/job_types/delete/{id}", "1")
.content(asJsonString(successMessage))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testDeleteJobType_request_Internal_Server_Error()\n { \n String failMessage = \"Failure Deleting\";\n \n doReturn(false).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(failMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void _05deleteJob() throws ApiException {\n OCRJobResponse response = api.deleteJob(ocrJob.getJobId());\n Assert.assertNotNull(response);\n Assert.assertNotNull(response.getJob());\n Assert.assertEquals(OCRJobResponse.StatusEnum.DELETED, response.getStatus());\n }",
"@Path(\"/api/job/delete\")\n\t@POST\n\t@ApiOperation(value = \"Delete the job\", notes = \"User can delete a job on his appliance.User with role Customer Admin or Customer User is allowed.\", response = ApiResponseDTO.class)\n\t@ApiResponses({ @ApiResponse(code = 200, message = \"The job with the given serial number has been deleted\") })\n\t@Transactional(rollbackFor = { NotAuthorizeException.class, CustomerNotFoundException.class,\n\t\t\tNodeNotFoundException.class, BaseException.class })\n\t@RequestMapping(value = \"/api/job/delete\", method = RequestMethod.POST)\n\t@PreAuthorize(\"hasAnyAuthority('Customer User','Customer Admin')\")\n\tpublic ApiResponseDTO deleteJob(\n\t\t\t@ApiParam(name = \"Job task object\", value = \"Job task object that needs to be deleted\", required = true) @Valid @RequestBody JobDeleteRequestDTO jobTaskDTO,\n\t\t\tHttpServletRequest request)\n\t\t\tthrows NotAuthorizeException, JobNotFoundException, BaseException, ValidationException {\n\t\tlogger.debug(\"Started JobsController.deleteJob() \");\n\t\tString message = null;\n\t\tString statusCode = HttpStatus.OK.toString();\n\t\tString uri = null;\n\t\tString jobName = null;\n\t\t// verify user associated with requested appliance\n\t\tString loginCustomerId = getLoggedInUserCustomerID(SecurityContextHolder.getContext().getAuthentication());\n\t\tString roleName = getLoggedInUserRoleName(SecurityContextHolder.getContext().getAuthentication());\n\t\tString loggedInEmail = getLoggedInUserEmail(SecurityContextHolder.getContext().getAuthentication());\n\t\tString userQAuthToken = getLoggedInUserAuthToken(SecurityContextHolder.getContext().getAuthentication());\n\t\tUser loggedInUser = userService.findUserByEmail(loggedInEmail);\n\n\t\t// User is associated with appliance\n\t\tif (!isCustomerAllowed(jobTaskDTO.getSerialNumber(), loginCustomerId)) {\n\t\t\tlogger.info(\"Appliance {} not owned by user {}\", jobTaskDTO.getSerialNumber(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\tJob job = createJobTaskDTOToJob(jobTaskDTO);\n\n\t\t// Customer admin can delete jobs created by himself and his\n\t\t// organization user jobs\n\t\tif (roleName.equalsIgnoreCase(ServicesConstants.CUSTOMER_ADMIN) && !isCustomerAllowedForJob(job, loginCustomerId)) {\n\t\t\tlogger.info(\"Job {} not owned by user {}\", job.getName(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\t// if user role is customer_user verify job owned by himself\n\t\tif (roleName.equalsIgnoreCase(ServicesConstants.CUSTOMER_USER)\n\t\t\t\t&& !isUserAllowedForJob(job, \"\" + loggedInUser.getId())) {\n\t\t\tlogger.info(\"Job {} not owned by user {}\", job.getName(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\tif (jobTaskDTO.getJobApiType() != null || !jobTaskDTO.getJobApiType().isEmpty()) {\n\t\t\tif (jobTaskDTO.getJobApiType().equalsIgnoreCase(MARATHON.toString())) {\n\t\t\t\turi = formatString(marathonUrl, MARATHON_V2_APPS);\n\t\t\t\tjobName = CHARACTER_SINGLE_FRONT_SLASH + jobTaskDTO.getAppId();\n\t\t\t} else if (jobTaskDTO.getJobApiType().equalsIgnoreCase(CHRONOS.toString())) {\n\t\t\t\turi = formatString(chronosUrlPrefix, CHRONOS_SCHEDULER_JOB);\n\t\t\t\tjobName = jobTaskDTO.getAppId();\n\t\t\t}\n\t\t\ttry {\n Node node = nodeService.findNodeBySerialNumber(jobTaskDTO.getSerialNumber());\n String nodeName=null;\n if(node != null){\n \tnodeName = node.getName();\n }\n\t\t\t\tjob.setIsDeleted(YES.toString());\n\t\t\t\tjobService.removeJob(job);\n\n\t\t\t\tboolean isDeletedSuccess = false;\n\n\t\t\t\tWSServerJobResponse wsServerJobResponse = JobsClient.deleteJob(websocketServerUrl,\n\t\t\t\t\t\tjobTaskDTO.getSerialNumber(), jobName, uri, loggedInUser.getUserName(), userQAuthToken);\n\t\t\t\tJobRetVal jobRetVal = JobsClient.convertWebsocketServerResponse(wsServerJobResponse,\n\t\t\t\t\t\tCHRONOS.toString());\n\t\t\t\tif (jobRetVal != null && jobRetVal.getStatus() != null\n\t\t\t\t\t\t&& jobRetVal.getStatus().equalsIgnoreCase(statusCode)\n\t\t\t\t\t\t|| jobRetVal != null && jobRetVal.getStatus() != null\n\t\t\t\t\t\t\t\t&& jobRetVal.getStatus().equalsIgnoreCase(HttpStatus.NO_CONTENT.toString())) {\n\t\t\t\t\tmessage = formatString(jobTaskDTO.getAppId(), JOB_DELETE_SUCCESS);\n\t\t\t\t\tisDeletedSuccess = true;\n\t\t\t\t} else {\n\t\t\t\t\tisDeletedSuccess = false;\n\t\t\t\t\tmessage = formatString(jobTaskDTO.getAppId(), JOB_NOT_DELETE_SUCCESS);\n\t\t\t\t\tstatusCode = HttpStatus.ACCEPTED.toString();\n\t\t\t\t\tjob.setIsDeleted(NO.toString());\n\t\t\t\t\tjobService.updateJob(job);\n\n\t\t\t\t}\n\t\t\t\tif (isDeletedSuccess == true) {\n\t\t\t\t\tjobService.deleteJob(job);\n\t\t\t\t}\n\t\t\t\tlogger.info(environment.getProperty(\"job.delete.sucess\"),loggedInUser.getUserName(),nodeName);\n\t\t\t} catch (JobNotFoundException e) {\n\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\tthrow new JobNotFoundException(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.error(\"Deleting a job failed with message {} \" + environment.getProperty(\"job.api.notnull\"));\n\t\t\tthrow new ValidationException(environment.getProperty(\"job.api.notnull\"));\n\t\t}\n\t\tApiResponseDTO response = new ApiResponseDTO(message, Integer.parseInt(statusCode));\n\t\tlogger.debug(\"Started JobsController.deleteJob() \");\n\t\treturn response;\n\t}",
"@Test\n @DisplayName(\"delete removes anime when successful\")\n void delete_RemovesAnime_WhenSuccessful() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(ADMIN);\n \n // using testRestTemplateRoleAdmin to perform request\n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleAdmin.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.NO_CONTENT);\n }",
"@Test\n @Transactional\n public void deleteComputerBuild() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n ComputerBuild newComputerBuild = loginAndCreateBuild(computerBuild, loginRequest,\n SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n\n /*\n * as long as there is no exception thrown the test can be considered to pass. in the controller test, a certain\n * http status code can be checked for.\n */\n computerBuildService.deleteComputerBuild(newComputerBuild.getBuildIdentifier());\n }",
"@Test\n public void testDelete() throws Exception {\n // pretend the entity was deleted\n doNothing().when(Service).deleteCitation(any(String.class));\n\n // call delete\n ModelAndView mav = Controller.delete(\"\");\n\n // test to see that the correct view is returned\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String result = (String) map.get(\"message\");\n\n Assert.assertEquals(\"{\\\"result\\\":\\\"deleted\\\"}\", result);\n }",
"Boolean deleteJob(String jobName, String groupName) throws GWTJahiaServiceException;",
"@Test\n public void n4_testDelete() throws Exception {\n mockMvc.perform(delete(API_PATH + \"/TestDataType/\" + lkUUID)\n .accept(APPLICATION_JSON))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(content()\n .json(\"{'bool':false,'text':'lk','domain1':{},'numberDouble':0,'numberLong':100, 'date':''}\", false)); // TODO need strict true\n mockMvc.perform(get(API_PATH + \"/TestDataType/lk\")\n .accept(APPLICATION_JSON))\n .andExpect(status().is4xxClientError());\n mockMvc.perform(get(API_PATH + \"/TestDataType/\" + lkUUID)\n .accept(APPLICATION_JSON))\n .andExpect(status().is4xxClientError());\n }",
"@Test\n final void testDeleteDevice() {\n when(deviceDao.deleteDevice(user, DeviceFixture.SERIAL_NUMBER)).thenReturn(Long.valueOf(1));\n ResponseEntity<String> response = deviceController.deleteDevice(DeviceFixture.SERIAL_NUMBER);\n assertEquals(200, response.getStatusCodeValue());\n assertEquals(\"Device with serial number 1 deleted\", response.getBody());\n }",
"@Test\n public void testDelete() {\n System.out.println(\"delete\");\n String guestIDnumber = \"test\";\n BookingController instance = new BookingController();\n boolean expResult = true;\n boolean result = instance.delete(guestIDnumber);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n }",
"@Test\n public void deleteContact() {\n }",
"@Test\n public void deleteFlightTest() throws Exception {\n mockMvc.perform(delete(\"/v1/flight/deleteFlight?flightId=1\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(status().is(200));\n\n }",
"@Test\n void shouldDeleteTask() throws Exception {\n mockMvc\n .perform(MockMvcRequestBuilders\n .delete(\"/v1/task/{id}\", 123))\n .andExpect(MockMvcResultMatchers.status().is(200));\n }",
"@Test\n public void givenStatus_whenDeleteByEntity_ThenReturnStatus() {\n ThreeEntity entity = new ThreeEntity(1,1,1);\n\n given(threeDao.delete(entity)).willReturn(Status.OK);\n\n StatusEntity status = threeService.delete(entity);\n\n assertEquals(Status.OK.getName(), status.getStatus());\n }",
"private void deletejob() {\n\t\tjob.delete(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\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}\n\t\t});\n\t}",
"@Test\n public void testUpdateJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"1\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n public void testDeleteDietStatus() throws Exception{\n \tString URI = \"/healthreminder/delete_dietstatus_by_id/{patientId}\"; \n \tFollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\n Mockito.when(followUpDietStatusInfoServices.findDietStatusById(Mockito.anyInt())).thenReturn(followUpDietStatusInfo);\n Mockito.when(followUpDietStatusInfoServices.deleteDietStatus(Mockito.any())).thenReturn(true);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.delete(URI,1).accept(MediaType.\n \t\tAPPLICATION_JSON)).andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n\n Assert.assertEquals(HttpStatus.OK.value(), mockHttpServletResponse.getStatus());\n\n }",
"@DeleteMapping(\"/type-tests/{id}\")\n @Timed\n public ResponseEntity<Void> deleteTypeTest(@PathVariable Long id) {\n log.debug(\"REST request to delete TypeTest : {}\", id);\n typeTestService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Test\n public void deleteOrderTest() {\n Long orderId = 10L;\n api.deleteOrder(orderId);\n\n verify(exactly(1), deleteRequestedFor(urlEqualTo(\"/store/order/10\")));\n }",
"@Test\n void delete() {\n }",
"@Test\n void delete() {\n }",
"@Override\n\tpublic void delete(Long id) {\n\t\tlog.debug(\"Request to delete Jobs : {}\", id);\n\t\tjobsRepository.deleteById(id);\n\t}",
"@CrossOrigin\n\t@RequestMapping(value=\"/deleteJob\", method= RequestMethod.POST)\n\tpublic JSONObject deleteJob(@RequestBody StatusRequestBodyMessage requestBody, @RequestHeader HttpHeaders headers) {\n\t\tHeadersManager.setHeaders(headers);\n\t\ttry {\n\t\t String jobId = requestBody.jobId;\n\t\t \n\t\t SimpleResultSet res = new SimpleResultSet();\n\t\t LoggerRestClient logger = LoggerRestClient.getInstance(log_prop);\n\t \tLoggerRestClient.easyLog(logger, \"Status Service\", \"deleteJob start\", \"JobId\", jobId);\n\t \tLocalLogger.logToStdOut(\"Status Service deleteJob start JobId=\" + jobId);\n\t\t try {\n\t\t \tJobTracker tracker = this.getTracker();\n\t\t \ttracker.deleteJob(jobId);\n\t\t\t res.setSuccess(true);\n\t\t\t \n\t\t } catch (Exception e) {\n\t\t \tres.setSuccess(false);\n\t\t \tres.addRationaleMessage(SERVICE_NAME, \"deleteJob\", e);\n\t\t\t LoggerRestClient.easyLog(logger, \"Status Service\", \"deleteJob exception\", \"message\", e.toString());\n\t\t\t LocalLogger.logToStdOut(\"Status Service deleteJob exception message=\"+ e.toString());\n\t\t } \n\t\t \n\t\t return res.toJson();\n\t\t \n\t\t} finally {\n\t \tHeadersManager.clearHeaders();\n\t }\n\t}",
"@Test\n\tpublic void testDelete(){\n\t}",
"@Test\n void deleteTest() {\n URI uri = URI.create(endBody + \"/delete\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n assertEquals(200, response.statusCode());\n }",
"@Test\n void delete() {\n petTypeSDJpaService.delete(petType);\n\n //Then\n verify(petTypeRepository).delete(petType);\n }",
"@Test\n public void shouldDeleteClient() throws Exception {\n mockMvc.perform(delete(\"/v1/clients/1\")\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk());\n verify(clientFacade, times(1)).deletedById(any());\n }",
"@Test\n public void deleteId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Attempt to remove from the database with delete request\n try {\n mvc.perform(MockMvcRequestBuilders.delete(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n )\n .andExpect(status().isOk());\n } catch (Exception e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Check if successfully removed from database\n try {\n //Remove from database (above get function should have thrown an error if the object was no longer in the database)\n remove(role.getUuid());\n fail(\"DELETE request did not succesfully delete the object from the database\");\n } catch (ObjectNotFoundException e) {\n //Nothing because the object is no longer present in the database which is expected\n }\n }",
"@Test\n\t@Override\n\tpublic void testDeleteObjectOKJson() throws Exception {\n\t}",
"@Test\n void deletePet_API_TEST() throws Exception {\n mvc.perform(delete(\"/owners/1/pets/2\").accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk());\n verify(petService, times(1)).deletePet(2, 1);\n }",
"@DeleteMapping(\"/job-bids/{id}\")\n @Timed\n public ResponseEntity<Void> deleteJobBid(@PathVariable Long id) {\n log.debug(\"REST request to delete JobBid : {}\", id);\n\n jobBidRepository.deleteById(id);\n jobBidSearchRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Override\n\t@Transactional\n\tpublic void deleteJob(String jobId) {\n\n\t}",
"public void deleteRequest() {\n assertTrue(true);\n }",
"@PostMapping(\"/delete\")\n public ResponseEntity<ServiceResult> deleteTest(@RequestBody Integer id) {\n return new ResponseEntity<ServiceResult>(testService.deleteTest(id), HttpStatus.OK);\n }",
"@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }",
"@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}",
"private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }",
"@POST\n @Path(\"/jobs/delete\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response deleteJobs(String body) {\n log.info(\"API Delete Jobs received \" + body);\n JSONArray retVals = new JSONArray();\n String jobId;\n JSONObject params = Utils.getRequestParameters(request);\n try {\n JSONArray input_jobs = new JSONArray(body);\n for (int i = 0; i < input_jobs.length(); i++) {\n jobId = input_jobs.getString(i);\n try {\n log.info(\"Deleting job : \" + jobId);\n params.put(\"ids\", new JSONArray().put(jobId));\n JSONObject ret = Utils.deleteHelper(params);\n retVals.put(ret);\n } catch (Exception e) {\n JSONObject ret = new JSONObject();\n ret.put(\"error\", \"Job with the id \" + jobId + \" FAILED: \" + e.getMessage());\n ret.put(\"deleted\", false);\n retVals.put(ret);\n }\n }\n return Response.status(200).entity(retVals.toString()).build();\n }\n catch(Exception e) {\n e.printStackTrace();\n return Response.status(500).entity(retVals.toString()).build();\n }\n }",
"@Test\n public void testDeleteLocation(){\n\t\tLocationMasterDAO locationMasterDAO =ctx.getBean(LocationMasterDAO.class);\n\t\t\n\t\tassertTrue(locationMasterDAO.deleteLocation(1239));\n }",
"@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }",
"@Test\n\tpublic void deleteUser() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tdelete(\"/secure/user/deleteUser/username2\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"message\").value(\"Success\"));\n\n\t}",
"@Test\n\tvoid deleteDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setId(\"1\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).deleteDoctorService(doctorfind.getId());\n\t\tmockMvc.perform(get(\"/doctor/delete?id=/{id}\", 1L)).andExpect(status().isOk());\n\t}",
"public void testDelete() {\n TDelete_Return[] PriceLists_delete_out = priceListService.delete(new String[] { path + alias });\n\n // test if deletion was successful\n assertEquals(\"delete result set\", 1, PriceLists_delete_out.length);\n\n TDelete_Return PriceList_delete_out = PriceLists_delete_out[0];\n\n assertNoError(PriceList_delete_out.getError());\n\n assertEquals(\"deleted?\", true, PriceList_delete_out.getDeleted());\n }",
"@Test\n void deleteItem() {\n }",
"@Test\n public void delete() {\n auctionService.restTemplate = mockRestTemplate;\n auctionService.delete(1);\n verify(mockRestTemplate).delete(testOneUrl);\n }",
"@org.junit.Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String emailid = \"dnv3@gmail.com\";\r\n ContactDao instance = new ContactDao();\r\n List<ContactResponse> expResult = new ArrayList<ContactResponse>();\r\n ContactResponse c = new ContactResponse(\"Contact Deleted\");\r\n expResult.add(c);\r\n List<ContactResponse> result = instance.delete(emailid);\r\n String s=\"No such contact ID found\";\r\n if(!result.get(0).getMessage().equals(s))\r\n assertEquals(expResult.get(0).getMessage(), result.get(0).getMessage());\r\n // TODO review the generated test code and remove the default call to fail.\r\n }",
"@Test\r\n\tpublic void deleteGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGame \r\n\t\tGame game_1 = new tsw.domain.Game();\r\n\t\tservice.deleteGame(game_1);\r\n\t}",
"@DeleteMapping(\"/at-job-applications/{id}\")\n @Timed\n public ResponseEntity<Void> deleteAtJobApplications(@PathVariable Long id) {\n log.debug(\"REST request to delete AtJobApplications : {}\", id);\n atJobApplicationsRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Test\n public void deleteTest(){\n given().pathParam(\"id\",1)\n .when().delete(\"/posts/{id}\")\n .then().statusCode(200);\n }",
"public void deleteJob(String jobId);",
"public void testDelete() {\n TDelete_Return[] Basket_delete_out = basketService.delete(new String[] { BasketPath });\n assertNoError(Basket_delete_out[0].getError());\n }",
"@Override\n\tpublic void onDeleteComplete(Class clazz, HttpStatus errorCode) {\n\t\t\n\t}",
"@Test\n public void testAccountDelete() {\n Response response = webTarget\n .path(\"account/1\")\n .request(APPLICATION_JSON)\n .delete();\n assertThat(response.getStatus(), anyOf(is(200), is(202), is(204)));\n }",
"@Test\n public void test_delete_user_success() throws Exception {\n UserDto user = new UserDto(1L, \"Arya\", \"Stark\", \"noone@got.com\");\n\n when(userService.deleteUser(user.getUserId())).thenReturn(user);\n\n mockMvc.perform(delete(\"/users/{id}\", user.getUserId())).andExpect(status().isOk());\n\n verify(userService, times(1)).deleteUser(user.getUserId());\n verifyNoMoreInteractions(userService);\n }",
"@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }",
"@Test\n public void testDeleteProductShouldCorrect() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(product);\n doNothing().when(productRepository).delete(product);\n\n testResponseData(RequestInfo.builder()\n .request(delete(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(adminToken)\n .httpStatus(HttpStatus.OK)\n .build());\n }",
"@Test\n void deleteSuccess() {\n carDao.delete(carDao.getById(1));\n assertNull(carDao.getById(1));\n\n //Delete repairs\n GenericDao<Repair> repairDao = new GenericDao(Repair.class);\n Repair repair = repairDao.getById(2);\n assertNull(carDao.getById(2));\n\n //Delete part\n GenericDao<Part> partDao = new GenericDao(Part.class);\n Role part = partDao.getById(2);\n assertNull(partDao.getById(2));\n }",
"@Test\n public void givenStatus_whenDeleteById_ThenReturnStatus() {\n int id = 1;\n\n given(threeDao.deleteById(1)).willReturn(Status.OK);\n\n StatusEntity status = threeService.deleteById(id);\n\n assertEquals(Status.OK.getName(), status.getStatus());\n }",
"@Test\n void deleteById() {\n petTypeSDJpaService.deleteById(petType.getId());\n\n //Then\n verify(petTypeRepository).deleteById(petType.getId());\n }",
"@Test\r\n public void testDelete() throws PAException {\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(TestSchema.studyProtocolIds.get(0));\r\n List<StudyDiseaseDTO> dtoList = bean.getByStudyProtocol(spIi);\r\n int oldSize = dtoList.size();\r\n Ii ii = dtoList.get(0).getIdentifier();\r\n bean.delete(ii);\r\n dtoList = bean.getByStudyProtocol(spIi);\r\n assertEquals(oldSize - 1, dtoList.size());\r\n }",
"@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n\tpublic void testDeleteCorrectParamDeletePb() {\n\t\tfinal String owner = \"1\";\n\t\tfinal Long piiUniqueId = (long) 12345789;\n\t\t\n\t\tPiiDeleteRequest piiRequest = new PiiDeleteRequest();\n\t\tpiiRequest.setOwner(owner);\n\t\tpiiRequest.setPiiUniqueId(piiUniqueId);\n\t\t\n\t\tPiiDeleteResponse piiDeleteResponse = new PiiDeleteResponse();\n\t\tpiiDeleteResponse.setDeleted(false);\n\t\twhen(mPiiService.delete(piiRequest)).thenReturn(piiDeleteResponse);\n\t\t\n\t\tResponse response = piiController.delete(piiRequest);\n\t\t\n\t\tverify(mPiiService).delete(piiRequest);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(200, response.getStatus());\n\t\t\n\t\tPiiDeleteResponse returnedResponse = (PiiDeleteResponse) response.getEntity();\n\t\tassertFalse(returnedResponse.isDeleted());\n\t}",
"@Test\n\tpublic void testDeleteUsersFailed() throws Exception {\n\n\t\tString id = \"dccfdfd1213\";\n\t\tmockMvc.perform(delete(\"/api/v1/project/{projectid}/deleteuser\", id)).andExpect(status().is4xxClientError())\n\t\t\t\t.andDo(print());\n\n\t}",
"@Test\n public void deletePerson_ShouldReturnUpdatedRecordAnd_NO_CONTENT() {\n ResponseEntity<Person> response = personController.deletePerson(3L);\n\n //assert\n Mockito.verify(personService).deletePerson(3L);\n assertEquals(null, response.getBody());\n assertEquals(HttpStatus.NO_CONTENT, response.getStatusCode());\n }",
"@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"2\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n void deleteSuccess() {\n genericDAO.delete(genericDAO.getByID(2));\n assertNull(genericDAO.getByID(2));\n }",
"@Test\n void deleteSuccess() {\n\n UserDOA userDao = new UserDOA();\n User user = userDao.getById(1);\n String orderDescription = \"February Large Test-Tshirt Delete\";\n\n Order newOrder = new Order(orderDescription, user, \"February\");\n user.addOrder(newOrder);\n\n dao.delete(newOrder);\n List<Order> orders = dao.getByPropertyLike(\"description\", \"February Large Test-Tshirt Delete\");\n assertEquals(0, orders.size());\n }",
"@Test\n void deleteSuccess() {\n genericDao.delete(genericDao.getById(3));\n assertNull(genericDao.getById(3));\n }",
"@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }",
"@Test\n public void testDeleteShoppinglistsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteShoppinglistsIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(204, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@RequestMapping(value = \"/delete/{favJobId}\", method = RequestMethod.DELETE)\n\tpublic void deleteFavouriteJob(@PathVariable Long favJobId) {\n\t\ttry {\n\t\t\tfavJobService.deleteFavouriteJob(favJobId);\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception to be handle\n\t\t}\n\t}",
"@DELETE\n @Path(\"/job/{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response deleteJobEndpoint(@PathParam(\"id\") String jobId) {\n log.info(\"API Delete Job received \" + jobId);\n JSONObject ret = Utils.deleteJob(jobId);\n return Response.status(500).entity(ret.toString()).build();\n }",
"@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }",
"@Test\n\tpublic void testDeleteCorrectParamNoDeletePb() {\n\t\tfinal String owner = \"1\";\n\t\tfinal Long piiUniqueId = (long) 12345789;\n\t\t\n\t\tPiiDeleteRequest piiRequest = new PiiDeleteRequest();\n\t\tpiiRequest.setOwner(owner);\n\t\tpiiRequest.setPiiUniqueId(piiUniqueId);\n\t\t\n\t\tPiiDeleteResponse piiDeleteResponse = new PiiDeleteResponse();\n\t\tpiiDeleteResponse.setDeleted(true);\n\t\twhen(mPiiService.delete(piiRequest)).thenReturn(piiDeleteResponse);\n\t\t\n\t\tResponse response = piiController.delete(piiRequest);\n\t\t\n\t\tverify(mPiiService).delete(piiRequest);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(200, response.getStatus());\n\t\t\n\t\tPiiDeleteResponse returnedResponse = (PiiDeleteResponse) response.getEntity();\n\t\tassertTrue(returnedResponse.isDeleted());\n\t}",
"@Test\n public void testDeleteCartsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteCartsIdAction(\"{id}\", \"{customerId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Cart\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Test\r\n public void testDelete() {\r\n assertTrue(false);\r\n }",
"@Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String doc = \"\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = false;\r\n boolean result = instance.delete(doc);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test\n public void testDeleteCarById() {\n System.out.println(\"deleteCarById\");\n int id = 17;\n CarController instance = new CarController();\n instance.deleteCarById(id);\n assertTrue(true);\n }",
"@Test\n\tpublic void IsCaseNameDeleted(){\n\t\tString caseName = \"led\";\n\t\tboolean isNameValid = CaseManagerService.deleteCaseType(caseName);\n\t\tassertTrue(isNameValid);\n\t}",
"@Test\n public void testEliminar3() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 0;\n boolean expResult = false;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testDeleteUser() {\n User testUser = new User();\n testUser.setUserEmail(TEST_EMAIL);\n testUser.setUserPassword(TEST_PASSWORD);\n \n Mockito.doNothing().when(userService).deleteUser((User) Matchers.anyObject());\n \n given().body(testUser).contentType(ContentType.JSON).when()\n .delete(URLPREFIX + \"delete\").then()\n .statusCode(HttpServletResponse.SC_OK)\n .contentType(ContentType.JSON).body(equalTo(\"true\"));\n }",
"@Test (groups = \"create_post\")\n public void LTest_Delete_Post_success(){\n\n System.out.println(\"Delete PostID# \"+ createdPost);\n System.out.println(\"Request to: \" + resourcePath + \"/\" + createdPost);\n\n given()\n .spec(RequestSpecs.generateToken())\n //.body(testPost)\n .when()\n .delete(resourcePath + \"/\" + createdPost)\n .then()\n .body(\"message\", equalTo(\"Post deleted\"))\n .and()\n .statusCode(200)\n .spec(ResponseSpecs.defaultSpec());\n }",
"public void testDelete() {\r\n\r\n\t\ttry {\r\n\t\t\tlong count, newCount, diff = 0;\r\n\t\t\tcount = levelOfCourtService.getCount();\r\n\t\t\tLevelOfCourt levelOfCourt = (LevelOfCourt) levelOfCourtTestDataFactory\r\n\t\t\t\t\t.loadOneRecord();\r\n\t\t\tlevelOfCourtService.delete(levelOfCourt);\r\n\t\t\tnewCount = levelOfCourtService.getCount();\r\n\t\t\tdiff = newCount - count;\r\n\t\t\tassertEquals(diff, 1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}",
"@Test(priority = 2)\n\tpublic void deleteTest() throws IOException, InterruptedException\n\t{\n\t\tdriver.get(baseURL);\n\t\tloginPage lp = new loginPage(driver);\n\t\tSearchCustomerPage scp = new SearchCustomerPage(driver);\n\t\tEditDeleteCustomerPage edcp = new EditDeleteCustomerPage(driver);\n\t\t\n\t\tlp.setUserName(username);\n\t\tlp.setPassword(password);\n\t\tlp.clickLogin();\n\t\tlogger.info(\"login passed\");\n\t\t\n\t\t//getting cutsomers page\n\t\tscp.clickCustomers();\n\t\tscp.clickCustomers1();\n\t\tlogger.info(\"customers page \");\n\t\t\n\t\t//choosing a customer to edit and editing them\n\t\tedcp.editCustomer(edcp.btnEdit2);\n\t\tlogger.info(\"edit customer clicked\");\n\t\t\n\t\tedcp.deleteCutomer();\n\t\tlogger.info(\"deleting\");\n\t\tedcp.deleteCutomer1();\n\t\tlogger.info(\"confirm delete\");\n\t\t\n\t\tString s = edcp.alertMsgDeleted.getText();\n\t\t\n\t\t//checking if true\n\t\tif(s.contains(\"The customer has been deleted successfully.\"))\n\t\t{\n\t\t\tAssert.assertTrue(true);\n\t\t\tlogger.info(\"passed\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcaptureScreen(driver, \"deleteTest\");\n\t\t\tAssert.assertTrue(false);\n\t\t\tlogger.info(\"failed\");\n\t\t}\n\t\tThread.sleep(2000);\n\t\tlp.clickLogout();\n\t}",
"@Test\n void deleteList() {\n }",
"@RequestMapping(value = DELETE_JOBS, method = DELETE)\n @ResponseBody\n @ResponseStatus(ACCEPTED)\n public ResponseEntity<String> deleteJobs(@RequestBody KeyGroupDescriptionDTO keyGroupDescriptionDTO, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {\n return quartzService.deleteJobs(keyGroupDescriptionDTO, getCookie(httpServletRequest, X_AUTH_TOKEN));\n }",
"@Test\n void deleteTest() {\n Product product = new Product(\"Apple\", 10, 4);\n shoppingCart.addProducts(product.getName(), product.getPrice(), product.getQuantity());\n //when deletes two apples\n boolean result = shoppingCart.deleteProducts(product.getName(), 2);\n //then basket contains two apples\n int appleNb = shoppingCart.getQuantityOfProduct(\"Apple\");\n assertTrue(result);\n assertEquals(2, appleNb);\n }",
"@Test\n public void deleteQuejaTest() {\n QuejaEntity entity = data.get(0);\n quejaPersistence.delete(entity.getId());\n QuejaEntity deleted = em.find(QuejaEntity.class, entity.getId());\n Assert.assertNull(deleted);\n }",
"@Test\n public void testDeleteCartsIdPaymentAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteCartsIdPaymentAction(\"{id}\", \"{customerId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Cart\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Test\r\n\tvoid testContactServiceDeleteContact() {\r\n\t\t// delete contact\r\n\t\tcontactService.deleteContact(id);\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.getContactFirstName(id);\r\n\t\t});\r\n\t}",
"@Test\n public void testEliminar() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 1;\n boolean expResult = true;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n\tpublic void testDeleteCarById() {\n\t\tSystem.out.println(\"deleteCarById\");\n\t\tint id = 1;\n\t\tResponseEntity<String> expResult = new ResponseEntity<String>(\"OK\", HttpStatus.OK);\n\t\twhen(carService.deleteCarById(id)).thenReturn(expResult);\n\n\t\tReflectionTestUtils.setField(carController, \"carService\", carService);\n\n\t\tResponseEntity<String> result = carController.deleteCarById(id);\n\t\tassertEquals(expResult.getStatusCode(), result.getStatusCode());\n\t}",
"void deleteByJobId(Long jobId);",
"@Test public void deleteUser_thenReturnJsonArray() throws Exception {\n User mockUser = new User(\"joe\", \"1234\", \"admin\");\n\n // studentService.addCourse to respond back with mockCourse\n Mockito.when(userService.getUserByUsername(Mockito.anyString())).thenReturn(new FetchUserResult(mockUser));\n\n\n String exampleUserJson = \"{\\\"username\\\":\\\"joe\\\",\\\"password\\\":\\\"1234\\\"}\";\n\n // Send user as body to\n RequestBuilder requestBuilder = MockMvcRequestBuilders\n .delete(\"/admin/user/joe\")\n .accept(MediaType.APPLICATION_JSON).content(exampleUserJson)\n .contentType(MediaType.APPLICATION_JSON);\n\n MvcResult result = mvc.perform(requestBuilder).andReturn();\n\n MockHttpServletResponse response = result.getResponse();\n\n assertEquals(HttpStatus.OK.value(), response.getStatus());\n assertEquals(\"{\\\"data\\\":\\\"User deleted successfully.\\\",\\\"success\\\":true}\", response.getContentAsString());\n\n }",
"@Test\n void deleteNoteSuccess() {\n noteDao.delete(noteDao.getById(2));\n assertNull(noteDao.getById(2));\n }",
"public void delete(BatchJob batchJob) {\r\n\t\tdao.delete(batchJob);\r\n\t}",
"@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}",
"@Test\n\tpublic void deleteUserWhichDoesNotExistInTheSystem() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tdelete(\"/secure/user/deleteUser/username2\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"message\").value(\"Fail\"));\n\n\t}",
"@Test(dataProvider = \"DataForDelete\")\n public void testDelete(int id) throws JsonProcessingException {\n\n JSONObject jsonResult = new JSONObject();\n jsonResult.put(\"id\", id);\n\n given()\n .header(\"Content-Type\", \"application/json\")\n .contentType(ContentType.JSON)\n .accept(ContentType.JSON)\n .body(jsonResult)\n .when()\n .delete(\"https://reqres.in/api/users/2\")\n .then()\n .statusCode(204);\n }",
"@Test\n public void testCreateConfirmDepositAmountsJob() throws Exception {\n Job asj = new AllocationScraperJob();\n asj.setStatus( JobStatus.completed );\n dao.insertJob( asj );\n\n // setup the job\n Job j = new CreateConfirmDepositAmountsJob();\n j.setStatus( JobStatus.submitted );\n j.getDependentJobs().add( asj );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }"
] | [
"0.715683",
"0.6744748",
"0.6691305",
"0.6425568",
"0.6378862",
"0.6352565",
"0.63392735",
"0.62814426",
"0.62538564",
"0.6245448",
"0.62437516",
"0.6240499",
"0.62184095",
"0.6194966",
"0.6159681",
"0.6152293",
"0.611549",
"0.60864717",
"0.6067901",
"0.6066546",
"0.6066546",
"0.6065424",
"0.6062358",
"0.60567784",
"0.6053137",
"0.6011666",
"0.60106134",
"0.5994229",
"0.5979606",
"0.59772944",
"0.5966824",
"0.596606",
"0.5954949",
"0.59385544",
"0.59201753",
"0.5913112",
"0.5912065",
"0.59082687",
"0.5897095",
"0.5863762",
"0.5860539",
"0.5855801",
"0.5848518",
"0.5829261",
"0.58198917",
"0.58166647",
"0.58155006",
"0.58062166",
"0.58028424",
"0.5801492",
"0.5789942",
"0.57825655",
"0.57793283",
"0.5777559",
"0.5776143",
"0.57685816",
"0.57541025",
"0.5738595",
"0.5737183",
"0.573648",
"0.5731629",
"0.5714243",
"0.57129943",
"0.5706995",
"0.5698626",
"0.5693249",
"0.56915396",
"0.5690133",
"0.5687149",
"0.56844467",
"0.56751806",
"0.5669297",
"0.5669253",
"0.56689554",
"0.56602424",
"0.56549066",
"0.5653995",
"0.56525517",
"0.5649233",
"0.5648718",
"0.56457263",
"0.5640719",
"0.5640638",
"0.56359875",
"0.5633477",
"0.56244886",
"0.5624281",
"0.56158257",
"0.5614264",
"0.56120217",
"0.56064194",
"0.55965257",
"0.55921334",
"0.55902976",
"0.5586209",
"0.5573052",
"0.5571741",
"0.5570261",
"0.55573255",
"0.55462295"
] | 0.78713757 | 0 |
Test Failure of deleteJobType method, of class JobsController. | @Test
public void testDeleteJobType_request_Internal_Server_Error()
{
String failMessage = "Failure Deleting";
doReturn(false).when(jobTypesService).deleteJobType(anyInt());
try {
mockMvc.perform(MockMvcRequestBuilders.delete("/job_types/delete/{id}", "1")
.content(asJsonString(failMessage))
.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))
.andExpect(status().isInternalServerError())
.andExpect(content().contentType("application/json"));
} catch (Exception ex) {
Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);
fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testDeleteJobType_request_Ok()\n { \n String successMessage = \"Successfully Deleted!\";\n \n doReturn(true).when(jobTypesService).deleteJobType(anyInt());\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.delete(\"/job_types/delete/{id}\", \"1\")\n .content(asJsonString(successMessage))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n\tpublic void testDeleteUsersFailed() throws Exception {\n\n\t\tString id = \"dccfdfd1213\";\n\t\tmockMvc.perform(delete(\"/api/v1/project/{projectid}/deleteuser\", id)).andExpect(status().is4xxClientError())\n\t\t\t\t.andDo(print());\n\n\t}",
"@Path(\"/api/job/delete\")\n\t@POST\n\t@ApiOperation(value = \"Delete the job\", notes = \"User can delete a job on his appliance.User with role Customer Admin or Customer User is allowed.\", response = ApiResponseDTO.class)\n\t@ApiResponses({ @ApiResponse(code = 200, message = \"The job with the given serial number has been deleted\") })\n\t@Transactional(rollbackFor = { NotAuthorizeException.class, CustomerNotFoundException.class,\n\t\t\tNodeNotFoundException.class, BaseException.class })\n\t@RequestMapping(value = \"/api/job/delete\", method = RequestMethod.POST)\n\t@PreAuthorize(\"hasAnyAuthority('Customer User','Customer Admin')\")\n\tpublic ApiResponseDTO deleteJob(\n\t\t\t@ApiParam(name = \"Job task object\", value = \"Job task object that needs to be deleted\", required = true) @Valid @RequestBody JobDeleteRequestDTO jobTaskDTO,\n\t\t\tHttpServletRequest request)\n\t\t\tthrows NotAuthorizeException, JobNotFoundException, BaseException, ValidationException {\n\t\tlogger.debug(\"Started JobsController.deleteJob() \");\n\t\tString message = null;\n\t\tString statusCode = HttpStatus.OK.toString();\n\t\tString uri = null;\n\t\tString jobName = null;\n\t\t// verify user associated with requested appliance\n\t\tString loginCustomerId = getLoggedInUserCustomerID(SecurityContextHolder.getContext().getAuthentication());\n\t\tString roleName = getLoggedInUserRoleName(SecurityContextHolder.getContext().getAuthentication());\n\t\tString loggedInEmail = getLoggedInUserEmail(SecurityContextHolder.getContext().getAuthentication());\n\t\tString userQAuthToken = getLoggedInUserAuthToken(SecurityContextHolder.getContext().getAuthentication());\n\t\tUser loggedInUser = userService.findUserByEmail(loggedInEmail);\n\n\t\t// User is associated with appliance\n\t\tif (!isCustomerAllowed(jobTaskDTO.getSerialNumber(), loginCustomerId)) {\n\t\t\tlogger.info(\"Appliance {} not owned by user {}\", jobTaskDTO.getSerialNumber(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\tJob job = createJobTaskDTOToJob(jobTaskDTO);\n\n\t\t// Customer admin can delete jobs created by himself and his\n\t\t// organization user jobs\n\t\tif (roleName.equalsIgnoreCase(ServicesConstants.CUSTOMER_ADMIN) && !isCustomerAllowedForJob(job, loginCustomerId)) {\n\t\t\tlogger.info(\"Job {} not owned by user {}\", job.getName(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\t// if user role is customer_user verify job owned by himself\n\t\tif (roleName.equalsIgnoreCase(ServicesConstants.CUSTOMER_USER)\n\t\t\t\t&& !isUserAllowedForJob(job, \"\" + loggedInUser.getId())) {\n\t\t\tlogger.info(\"Job {} not owned by user {}\", job.getName(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\tif (jobTaskDTO.getJobApiType() != null || !jobTaskDTO.getJobApiType().isEmpty()) {\n\t\t\tif (jobTaskDTO.getJobApiType().equalsIgnoreCase(MARATHON.toString())) {\n\t\t\t\turi = formatString(marathonUrl, MARATHON_V2_APPS);\n\t\t\t\tjobName = CHARACTER_SINGLE_FRONT_SLASH + jobTaskDTO.getAppId();\n\t\t\t} else if (jobTaskDTO.getJobApiType().equalsIgnoreCase(CHRONOS.toString())) {\n\t\t\t\turi = formatString(chronosUrlPrefix, CHRONOS_SCHEDULER_JOB);\n\t\t\t\tjobName = jobTaskDTO.getAppId();\n\t\t\t}\n\t\t\ttry {\n Node node = nodeService.findNodeBySerialNumber(jobTaskDTO.getSerialNumber());\n String nodeName=null;\n if(node != null){\n \tnodeName = node.getName();\n }\n\t\t\t\tjob.setIsDeleted(YES.toString());\n\t\t\t\tjobService.removeJob(job);\n\n\t\t\t\tboolean isDeletedSuccess = false;\n\n\t\t\t\tWSServerJobResponse wsServerJobResponse = JobsClient.deleteJob(websocketServerUrl,\n\t\t\t\t\t\tjobTaskDTO.getSerialNumber(), jobName, uri, loggedInUser.getUserName(), userQAuthToken);\n\t\t\t\tJobRetVal jobRetVal = JobsClient.convertWebsocketServerResponse(wsServerJobResponse,\n\t\t\t\t\t\tCHRONOS.toString());\n\t\t\t\tif (jobRetVal != null && jobRetVal.getStatus() != null\n\t\t\t\t\t\t&& jobRetVal.getStatus().equalsIgnoreCase(statusCode)\n\t\t\t\t\t\t|| jobRetVal != null && jobRetVal.getStatus() != null\n\t\t\t\t\t\t\t\t&& jobRetVal.getStatus().equalsIgnoreCase(HttpStatus.NO_CONTENT.toString())) {\n\t\t\t\t\tmessage = formatString(jobTaskDTO.getAppId(), JOB_DELETE_SUCCESS);\n\t\t\t\t\tisDeletedSuccess = true;\n\t\t\t\t} else {\n\t\t\t\t\tisDeletedSuccess = false;\n\t\t\t\t\tmessage = formatString(jobTaskDTO.getAppId(), JOB_NOT_DELETE_SUCCESS);\n\t\t\t\t\tstatusCode = HttpStatus.ACCEPTED.toString();\n\t\t\t\t\tjob.setIsDeleted(NO.toString());\n\t\t\t\t\tjobService.updateJob(job);\n\n\t\t\t\t}\n\t\t\t\tif (isDeletedSuccess == true) {\n\t\t\t\t\tjobService.deleteJob(job);\n\t\t\t\t}\n\t\t\t\tlogger.info(environment.getProperty(\"job.delete.sucess\"),loggedInUser.getUserName(),nodeName);\n\t\t\t} catch (JobNotFoundException e) {\n\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\tthrow new JobNotFoundException(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.error(\"Deleting a job failed with message {} \" + environment.getProperty(\"job.api.notnull\"));\n\t\t\tthrow new ValidationException(environment.getProperty(\"job.api.notnull\"));\n\t\t}\n\t\tApiResponseDTO response = new ApiResponseDTO(message, Integer.parseInt(statusCode));\n\t\tlogger.debug(\"Started JobsController.deleteJob() \");\n\t\treturn response;\n\t}",
"@Test\n public void _05deleteJob() throws ApiException {\n OCRJobResponse response = api.deleteJob(ocrJob.getJobId());\n Assert.assertNotNull(response);\n Assert.assertNotNull(response.getJob());\n Assert.assertEquals(OCRJobResponse.StatusEnum.DELETED, response.getStatus());\n }",
"@Test\n @Transactional\n public void deleteComputerBuild() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n ComputerBuild newComputerBuild = loginAndCreateBuild(computerBuild, loginRequest,\n SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n\n /*\n * as long as there is no exception thrown the test can be considered to pass. in the controller test, a certain\n * http status code can be checked for.\n */\n computerBuildService.deleteComputerBuild(newComputerBuild.getBuildIdentifier());\n }",
"@Test\n @DisplayName(\"delete removes anime when successful\")\n void delete_RemovesAnime_WhenSuccessful() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(ADMIN);\n \n // using testRestTemplateRoleAdmin to perform request\n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleAdmin.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.NO_CONTENT);\n }",
"@Test\n\tpublic void deleteUserWhichDoesNotExistInTheSystem() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tdelete(\"/secure/user/deleteUser/username2\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"message\").value(\"Fail\"));\n\n\t}",
"@Test\n void shouldDeleteTask() throws Exception {\n mockMvc\n .perform(MockMvcRequestBuilders\n .delete(\"/v1/task/{id}\", 123))\n .andExpect(MockMvcResultMatchers.status().is(200));\n }",
"@Test\n public void n4_testDelete() throws Exception {\n mockMvc.perform(delete(API_PATH + \"/TestDataType/\" + lkUUID)\n .accept(APPLICATION_JSON))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(content()\n .json(\"{'bool':false,'text':'lk','domain1':{},'numberDouble':0,'numberLong':100, 'date':''}\", false)); // TODO need strict true\n mockMvc.perform(get(API_PATH + \"/TestDataType/lk\")\n .accept(APPLICATION_JSON))\n .andExpect(status().is4xxClientError());\n mockMvc.perform(get(API_PATH + \"/TestDataType/\" + lkUUID)\n .accept(APPLICATION_JSON))\n .andExpect(status().is4xxClientError());\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"@Test\n public void testUpdateJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).updateJobType(anyInt(), any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/update/{id}\", \"2\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n\tpublic void testDelete(){\n\t}",
"@Test\n public void deleteContact() {\n }",
"@Test\n public void deleteId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Attempt to remove from the database with delete request\n try {\n mvc.perform(MockMvcRequestBuilders.delete(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n )\n .andExpect(status().isOk());\n } catch (Exception e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Check if successfully removed from database\n try {\n //Remove from database (above get function should have thrown an error if the object was no longer in the database)\n remove(role.getUuid());\n fail(\"DELETE request did not succesfully delete the object from the database\");\n } catch (ObjectNotFoundException e) {\n //Nothing because the object is no longer present in the database which is expected\n }\n }",
"@Test\n public void testDelete() throws Exception {\n // pretend the entity was deleted\n doNothing().when(Service).deleteCitation(any(String.class));\n\n // call delete\n ModelAndView mav = Controller.delete(\"\");\n\n // test to see that the correct view is returned\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String result = (String) map.get(\"message\");\n\n Assert.assertEquals(\"{\\\"result\\\":\\\"deleted\\\"}\", result);\n }",
"@Test\n void delete() {\n }",
"@Test\n void delete() {\n }",
"@Test\n public void deleteFlightTest() throws Exception {\n mockMvc.perform(delete(\"/v1/flight/deleteFlight?flightId=1\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(status().is(200));\n\n }",
"@Test\n final void testDeleteDevice() {\n when(deviceDao.deleteDevice(user, DeviceFixture.SERIAL_NUMBER)).thenReturn(Long.valueOf(1));\n ResponseEntity<String> response = deviceController.deleteDevice(DeviceFixture.SERIAL_NUMBER);\n assertEquals(200, response.getStatusCodeValue());\n assertEquals(\"Device with serial number 1 deleted\", response.getBody());\n }",
"@Test\n public void deleteByHealthCodeSilentlyFails() {\n dao.deleteUploadsForHealthCode(\"nonexistentHealthCode\");\n }",
"@Test\r\n\tpublic void checkDeleteTest() {\n\t\tassertFalse(boardService.getGameRules().checkDelete(board.field[13][13])); \r\n\t}",
"Boolean deleteJob(String jobName, String groupName) throws GWTJahiaServiceException;",
"@Test\r\n public void testDelete() {\r\n assertTrue(false);\r\n }",
"@Test\n public void testAddNewJobType_request_Internal_Server_Error()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(false).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isInternalServerError())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }",
"@Test\n void deleteItem() {\n }",
"@Test\n public void testDeleteTravel_RecordNotFoundExceptionDeleteTravel() throws Exception {\n doThrow(new RecordNotFoundException()).when(databaseMock).deleteTravel(anyInt());\n \n mockMVC.perform(delete(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNotFound());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verify(databaseMock, times(1)).deleteTravel(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }",
"@Test\n public void deleteOrderTest() {\n Long orderId = 10L;\n api.deleteOrder(orderId);\n\n verify(exactly(1), deleteRequestedFor(urlEqualTo(\"/store/order/10\")));\n }",
"@Test\n public void testDelete() {\n System.out.println(\"delete\");\n String guestIDnumber = \"test\";\n BookingController instance = new BookingController();\n boolean expResult = true;\n boolean result = instance.delete(guestIDnumber);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n }",
"private void deletejob() {\n\t\tjob.delete(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\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}\n\t\t});\n\t}",
"public void test_RemovePrizeFromContest_Failure2()\r\n throws Exception {\r\n try {\r\n initContext();\r\n\r\n Prize prize = createPrizeForTest();\r\n\r\n // It should process successfully.\r\n beanUnderTest.removePrizeFromContest(100, prize.getPrizeId());\r\n\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}",
"@Test\n\t@Override\n\tpublic void testDeleteObjectOKJson() throws Exception {\n\t}",
"@Test\n\tpublic void withInvalidType() {\n\t\t\n\t\tboolean delete = false;\n\t\ttry {\n\t\t\tdelete = FlowerManager.deleteFlower(\"natural\", \"rose\");\n\t\t} catch (ServiceException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertFalse(delete);\n\t}",
"public void test_RemovePrizeFromContest_Failure1()\r\n throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n // It should process successfully.\r\n beanUnderTest.removePrizeFromContest(contest.getContestId(), 1000);\r\n\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"@Test\n\tpublic void testWithInvalidType2() {\n\t\tboolean delete = false;\n\t\ttry {\n\t\t\tdelete = FlowerManager.deleteFlower(\"Artificial\", \"rose\");\n\t\t} catch (ServiceException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertFalse(delete);\n\t}",
"@Test\r\n\tvoid testContactServiceDeleteContact() {\r\n\t\t// delete contact\r\n\t\tcontactService.deleteContact(id);\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.getContactFirstName(id);\r\n\t\t});\r\n\t}",
"@Test\n public void testDeleteDietStatus() throws Exception{\n \tString URI = \"/healthreminder/delete_dietstatus_by_id/{patientId}\"; \n \tFollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\n Mockito.when(followUpDietStatusInfoServices.findDietStatusById(Mockito.anyInt())).thenReturn(followUpDietStatusInfo);\n Mockito.when(followUpDietStatusInfoServices.deleteDietStatus(Mockito.any())).thenReturn(true);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.delete(URI,1).accept(MediaType.\n \t\tAPPLICATION_JSON)).andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n\n Assert.assertEquals(HttpStatus.OK.value(), mockHttpServletResponse.getStatus());\n\n }",
"private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }",
"@Test\n final void testDeleteDeviceNotExisting() {\n assertThrows(\n ExceptionType.DeviceNotFoundException.class,\n () -> deviceController.deleteDevice(\"Not Available device\"));\n }",
"@Test\n void delete() {\n petTypeSDJpaService.delete(petType);\n\n //Then\n verify(petTypeRepository).delete(petType);\n }",
"@Test\n public void deleteRule() throws Exception {\n RuleEntity rule = new RuleEntity();\n rule.setPackageName(\"junitPackage\");\n rule.setStatus(Status.INACTIVE);\n rule.setRuleName(\"junitRuleName\");\n rule.setRule(Base64.getEncoder().encodeToString(\"jUnit Rule Contents\".getBytes()));\n\n ResponseEntity<RuleEntity> createResponse = template.postForEntity(\n base.toString() + \"/\",\n rule,\n RuleEntity.class);\n RuleEntity createdRule = createResponse.getBody();\n /*\n * delete it\n */\n template.delete(base.toString() + \"/{1}\", createdRule.getId());\n /*\n * find it\n */\n ResponseEntity<RuleEntity> queryresponse = template.getForEntity(\n base.toString() + \"/{1}\",\n RuleEntity.class,\n createdRule.getId());\n\n Assert.assertEquals(\"checking for 404 notfound\", NOT_FOUND, queryresponse.getStatusCode());\n }",
"@DeleteMapping(\"/job-bids/{id}\")\n @Timed\n public ResponseEntity<Void> deleteJobBid(@PathVariable Long id) {\n log.debug(\"REST request to delete JobBid : {}\", id);\n\n jobBidRepository.deleteById(id);\n jobBidSearchRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }",
"@org.junit.Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String emailid = \"dnv3@gmail.com\";\r\n ContactDao instance = new ContactDao();\r\n List<ContactResponse> expResult = new ArrayList<ContactResponse>();\r\n ContactResponse c = new ContactResponse(\"Contact Deleted\");\r\n expResult.add(c);\r\n List<ContactResponse> result = instance.delete(emailid);\r\n String s=\"No such contact ID found\";\r\n if(!result.get(0).getMessage().equals(s))\r\n assertEquals(expResult.get(0).getMessage(), result.get(0).getMessage());\r\n // TODO review the generated test code and remove the default call to fail.\r\n }",
"@Test\r\n public void testDelete() throws PAException {\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(TestSchema.studyProtocolIds.get(0));\r\n List<StudyDiseaseDTO> dtoList = bean.getByStudyProtocol(spIi);\r\n int oldSize = dtoList.size();\r\n Ii ii = dtoList.get(0).getIdentifier();\r\n bean.delete(ii);\r\n dtoList = bean.getByStudyProtocol(spIi);\r\n assertEquals(oldSize - 1, dtoList.size());\r\n }",
"@Test\n\tpublic void testDeleteIncorrectParam() {\n\n\t\tResponse response = piiController.delete(null);\n\t\t\n\t\tverifyZeroInteractions(mPiiService);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(400, response.getStatus());\n\t\t\n\t\tObject entity = response.getEntity();\n\t\tassertNull(entity);\n\t}",
"@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }",
"@Test\n void deletePet_API_TEST() throws Exception {\n mvc.perform(delete(\"/owners/1/pets/2\").accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk());\n verify(petService, times(1)).deletePet(2, 1);\n }",
"@DeleteMapping(\"/type-tests/{id}\")\n @Timed\n public ResponseEntity<Void> deleteTypeTest(@PathVariable Long id) {\n log.debug(\"REST request to delete TypeTest : {}\", id);\n typeTestService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Test\n public void testEliminar3() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 0;\n boolean expResult = false;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n void deleteTest() {\n URI uri = URI.create(endBody + \"/delete\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n assertEquals(200, response.statusCode());\n }",
"@Test\n public void testDeleteMember() throws Exception {\n }",
"@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }",
"@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}",
"@Test\n\t@Override\n\tpublic void testDeleteObjectNotFoundJson() throws Exception {\n\t}",
"public void deleteRequest() {\n assertTrue(true);\n }",
"@Test\n public void givenResourceDoesNotExist_whenDeleteIsTriggered_thenNoExceptions() {\n final long randomId = IDUtil.randomPositiveLong();\n givenEntityExists(randomId);\n\n // When\n getApi().delete(randomId);\n\n // Then\n }",
"@Test\r\n\tpublic void deleteFunctionTestFail(){\r\n\t\tSystem.out.println(\"TEST STARTED: deleteFunctionTestFail()\");\r\n\t\tLong orgId = null;\r\n\t\tLong funcId = null;\r\n\t\ttry{\r\n\t\t\t//create the test organization\r\n\t\t\tString createOrgResp = org_service.createOrganization(CREATE_ORG_REQ_1);\r\n\t\t\torgId = getRecordId(createOrgResp);\r\n\t\t\tSystem.out.println(createOrgResp);\r\n\t\t\t\r\n\t\t\t//create the test function linked to the organization test\r\n\t\t\tString createFuncResp = func_service.createFunction(CREATE_FUNCTION_REQ_1.replace(\"$ID_ORG\", orgId.toString()));\r\n\t\t\tSystem.out.println(\"CreateFunction Response: \"+createFuncResp);\r\n\t\t\t\r\n\t\t\t//get the new function ID\r\n\t\t\tfuncId = getRecordId(createFuncResp);\r\n\t\t\t\r\n\t\t\t//check if the createFuncResp is a well formed JSON object.\t\t\t\r\n\t\t\tcheckJsonWellFormed(createFuncResp);\r\n\t\t\t\r\n\t\t\tLong wrongFuncId = funcId+1;\r\n\t\t\t\r\n\t\t\t//delete the test function created\r\n\t\t\tString deleteFuncResp = func_service.deleteFunction(DELETE_FUNC_REQ_1+wrongFuncId+REQ_END);\r\n\t\t\tSystem.out.println(\"DeleteFunction Response: \"+deleteFuncResp);\r\n\t\t\t\r\n\t\t\t//check if the deleteFuncResp is a well formed JSON object.\r\n\t\t\tcheckJsonWellFormed(deleteFuncResp);\r\n\r\n\t\t\tAssert.assertTrue(deleteFuncResp.contains(\"\\\"status\\\":\\\"error\\\"\"));\r\n\t\t}catch (Exception e){\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}finally{\r\n\t\t\t//delete the test organization created\r\n\t\t\torg_service.deleteOrganization(DELETE_ORG_REQ_1+orgId+REQ_END);\t\t\t\t\t\t\r\n\t\t\t//delete the test function created\r\n\t\t\tfunc_service.deleteFunction(DELETE_FUNC_REQ_1+funcId+REQ_END);\r\n\t\t\tSystem.out.println(\"TEST ENDED: deleteFunctionTestFail()\");\r\n\t\t}\r\n\t}",
"@Test\n public void testDeleteProductShouldCorrect() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(product);\n doNothing().when(productRepository).delete(product);\n\n testResponseData(RequestInfo.builder()\n .request(delete(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(adminToken)\n .httpStatus(HttpStatus.OK)\n .build());\n }",
"@CrossOrigin\n\t@RequestMapping(value=\"/deleteJob\", method= RequestMethod.POST)\n\tpublic JSONObject deleteJob(@RequestBody StatusRequestBodyMessage requestBody, @RequestHeader HttpHeaders headers) {\n\t\tHeadersManager.setHeaders(headers);\n\t\ttry {\n\t\t String jobId = requestBody.jobId;\n\t\t \n\t\t SimpleResultSet res = new SimpleResultSet();\n\t\t LoggerRestClient logger = LoggerRestClient.getInstance(log_prop);\n\t \tLoggerRestClient.easyLog(logger, \"Status Service\", \"deleteJob start\", \"JobId\", jobId);\n\t \tLocalLogger.logToStdOut(\"Status Service deleteJob start JobId=\" + jobId);\n\t\t try {\n\t\t \tJobTracker tracker = this.getTracker();\n\t\t \ttracker.deleteJob(jobId);\n\t\t\t res.setSuccess(true);\n\t\t\t \n\t\t } catch (Exception e) {\n\t\t \tres.setSuccess(false);\n\t\t \tres.addRationaleMessage(SERVICE_NAME, \"deleteJob\", e);\n\t\t\t LoggerRestClient.easyLog(logger, \"Status Service\", \"deleteJob exception\", \"message\", e.toString());\n\t\t\t LocalLogger.logToStdOut(\"Status Service deleteJob exception message=\"+ e.toString());\n\t\t } \n\t\t \n\t\t return res.toJson();\n\t\t \n\t\t} finally {\n\t \tHeadersManager.clearHeaders();\n\t }\n\t}",
"@Test\n public void shouldDeleteTheRoomIfTheIndexIsFoundInTheDatabase()\n\t throws Exception {\n\n\tfinal DeleteRoomCommand command = new DeleteRoomCommand(validRoomOffer);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, null);\n\n\twhen(dao.read(validRoomOffer.getIndex())).thenReturn(validRoomOffer);\n\n\tfinal int deletedRoomIndex = roomOfferService.deleteRoomOffer(command);\n\n\tverify(dao).lock(anyInt());\n\tverify(dao).unlock(anyInt(), anyLong());\n\tverify(dao).delete(eq(validRoomOffer.getIndex()), anyLong());\n\tassertThat(deletedRoomIndex, is(equalTo(deletedRoomIndex)));\n }",
"@Override\n\t@Transactional\n\tpublic void deleteJob(String jobId) {\n\n\t}",
"@Test\n\tpublic void deleteUser() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tdelete(\"/secure/user/deleteUser/username2\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"message\").value(\"Success\"));\n\n\t}",
"@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }",
"public void testDelete() {\n TDelete_Return[] Basket_delete_out = basketService.delete(new String[] { BasketPath });\n assertNoError(Basket_delete_out[0].getError());\n }",
"@Test\n public void testEliminar2() {\n System.out.println(\"eliminar\");\n int codigo = 1;\n boolean expResult = false;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Override\n\tpublic void onDeleteComplete(Class clazz, HttpStatus errorCode) {\n\t\t\n\t}",
"@Test\n public void testDeleteException() {\n when(client.receiveFromServer()).thenThrow(new RuntimeException(\"connection timeout\", new SocketException()));\n\n service.delete(1L);\n\n verify(client).sendToServer(\"delete#PlantedPlant\");\n verify(client).sendToServer(1L);\n }",
"@Test()\n public void testDeleteInvalidResource() throws Exception {\n if (!deleteSupported) {\n return;\n }\n\n FHIRResponse response = client.delete(MedicationAdministration.class.getSimpleName(), \"invalid-resource-id-testDeleteInvalidResource\");\n assertNotNull(response);\n assertResponse(response.getResponse(), Response.Status.OK.getStatusCode());\n }",
"@Test\n public void testEliminar() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 1;\n boolean expResult = true;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testExposesDelete() throws Exception {\n List<Link> customers = findCustomersLinks();\n assertThat(\"Customers exist to work with\",\n customers.size(),\n greaterThan(0));\n\n Link customer = customers.get(customers.size() - 1);\n\n mockMvc\n .perform(delete(customer.getHref()))\n .andExpect(status().isNoContent());\n\n mockMvc\n .perform(get(customer.getHref()))\n .andExpect(status().isNotFound());\n }",
"@Test\r\n\tpublic void deleteGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGame \r\n\t\tGame game_1 = new tsw.domain.Game();\r\n\t\tservice.deleteGame(game_1);\r\n\t}",
"@Test\n public void givenStatus_whenDeleteByEntity_ThenReturnStatus() {\n ThreeEntity entity = new ThreeEntity(1,1,1);\n\n given(threeDao.delete(entity)).willReturn(Status.OK);\n\n StatusEntity status = threeService.delete(entity);\n\n assertEquals(Status.OK.getName(), status.getStatus());\n }",
"public void testDelete() {\r\n\r\n\t\ttry {\r\n\t\t\tlong count, newCount, diff = 0;\r\n\t\t\tcount = levelOfCourtService.getCount();\r\n\t\t\tLevelOfCourt levelOfCourt = (LevelOfCourt) levelOfCourtTestDataFactory\r\n\t\t\t\t\t.loadOneRecord();\r\n\t\t\tlevelOfCourtService.delete(levelOfCourt);\r\n\t\t\tnewCount = levelOfCourtService.getCount();\r\n\t\t\tdiff = newCount - count;\r\n\t\t\tassertEquals(diff, 1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}",
"@Transactional\n @Test(expected = GenericRequestException.class)\n public void deleteComputerBuildWithIncorrectIdentifier() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n ComputerBuild newComputerBuild = loginAndCreateBuild(computerBuild, loginRequest,\n SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n\n computerBuildService.deleteComputerBuild(newComputerBuild.getBuildIdentifier() + INVALID_IDENTIFIER_SUFFIX);\n }",
"@Override\n\tpublic void delete(Long id) {\n\t\tlog.debug(\"Request to delete Jobs : {}\", id);\n\t\tjobsRepository.deleteById(id);\n\t}",
"@Test\n public void testDeleteLocation(){\n\t\tLocationMasterDAO locationMasterDAO =ctx.getBean(LocationMasterDAO.class);\n\t\t\n\t\tassertTrue(locationMasterDAO.deleteLocation(1239));\n }",
"@Test\n public void deletePerson_ShouldReturnError404_WhenPersonNotFoundException() {\n Mockito.doThrow(PersonNotFoundException.class).when(personService).deletePerson(3L);\n\n //act\n ResponseEntity<Person> response = personController.deletePerson(3L);\n\n //assert\n assertEquals(HttpStatus.NOT_FOUND, response.getStatusCode());\n assertEquals(null, response.getBody());\n }",
"@Test\n public void shouldDeleteClient() throws Exception {\n mockMvc.perform(delete(\"/v1/clients/1\")\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk());\n verify(clientFacade, times(1)).deletedById(any());\n }",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"dept-del\"})\n public void _2_3_1_delExistDept() throws Exception {\n this.mockMvc.perform(delete(\"/api/v1.0/companies/\"+\n d_1.getCompany()+\n \"/departments/\"+\n d_1.getId())\n .header(AUTHORIZATION,ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk());\n thrown.expect(NameNotFoundException.class);\n repository.findDepartment(d_1.getId());\n }",
"@Test\n public void deleteEmpleadoTest() {\n \n try{ \n EmpleadoEntity entity = data.get(3);\n empleadoLogic.deleteEmpleado(entity.getId());\n EmpleadoEntity deleted = em.find(EmpleadoEntity.class, entity.getId());\n Assert.assertNull(deleted);\n \n }catch(BusinessLogicException b){\n Assert.fail();\n }\n }",
"@Override\r\n\tpublic void jobFailed(Job failedJob, Job retry) {\n\t\tgetCloudsim().log(\"WARNING: Job failed: \" + failedJob.getID());\r\n\t}",
"@Test\n public void deleteTest(){\n given().pathParam(\"id\",1)\n .when().delete(\"/posts/{id}\")\n .then().statusCode(200);\n }",
"@Test(expected = Exception.class)\n public void shouldNotDeleteTheRoomIfTheIndexIsNotFoundInTheDatabaseAndThorwAnException()\n\t throws Exception {\n\n\tfinal DeleteRoomCommand command = new DeleteRoomCommand(validRoomOffer);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, null);\n\tdoThrow(new RecordNotFoundException(\"Test\")).when(dao).delete(anyInt(),\n\t\tanyLong());\n\twhen(dao.read(validRoomOffer.getIndex())).thenReturn(validRoomOffer);\n\n\troomOfferService.deleteRoomOffer(command);\n\n\tverify(dao).lock(anyInt());\n\tverify(dao).unlock(anyInt(), anyLong());\n\tverify(dao).delete(eq(validRoomOffer.getIndex()), anyLong());\n }",
"@Test\n public void testDeletePengguna() throws Exception {\n System.out.println(\"deletePengguna\");\n Long id = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.deletePengguna(id);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n\tvoid deleteDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setId(\"1\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).deleteDoctorService(doctorfind.getId());\n\t\tmockMvc.perform(get(\"/doctor/delete?id=/{id}\", 1L)).andExpect(status().isOk());\n\t}",
"@Test\n public void test_delete_user_success() throws Exception {\n UserDto user = new UserDto(1L, \"Arya\", \"Stark\", \"noone@got.com\");\n\n when(userService.deleteUser(user.getUserId())).thenReturn(user);\n\n mockMvc.perform(delete(\"/users/{id}\", user.getUserId())).andExpect(status().isOk());\n\n verify(userService, times(1)).deleteUser(user.getUserId());\n verifyNoMoreInteractions(userService);\n }",
"@Test\r\n\tpublic void testDeleteAlert() throws DuplicateRecordException, RecordNotFoundException {\r\n\t\tSecurityAlert alert = addAlert();\r\n\t\talertService.deleteSecurityAlert(alert);\r\n\t\tassertThrows(RecordNotFoundException.class, ()->{\r\n\t\t\talertService.findByPk(alert.getId());\r\n\t\t\t});\r\n\t}",
"@Test\n\tpublic void withInvalidCategory() {\n\t\tboolean delete = false;\n\t\ttry {\n\t\t\tdelete = FlowerManager.deleteFlower(\"christina\", \"rose\");\n\t\t} catch (ServiceException e) {\n\n\t\t\te.printStackTrace();\n\t\t\tassertFalse(delete);\n\t\t}\n\t}",
"private void runWithoutJobId() {\n if (numJobsToDelete.isPresent() && numJobsToDelete.get() <= 0) {\n handleBadRequest(ERROR_NON_POSITIVE_JOBS_TO_DELETE);\n return;\n }\n int defaultedDaysOld = daysOld.orElse(DEFAULT_DAYS_OLD);\n // Only generate the detailed response payload if there aren't too many jobs involved.\n boolean verbose =\n numJobsToDelete.isPresent() && (numJobsToDelete.get() <= DEFAULT_MAX_NUM_JOBS_TO_DELETE);\n StringBuilder payload = new StringBuilder();\n\n // Since findEligibleJobsByJobName returns only a certain number of jobs, we must loop through\n // until we find enough, requesting deletion as we go.\n int numJobsProcessed = 0;\n DateTime cutoffDate = clock.nowUtc().minusDays(defaultedDaysOld);\n Optional<String> cursor = Optional.empty();\n do {\n Optional<Integer> numJobsToRequest =\n Optional.ofNullable(\n numJobsToDelete.isPresent() ? numJobsToDelete.get() - numJobsProcessed : null);\n EligibleJobResults batch =\n mapreduceEntityCleanupUtil.findEligibleJobsByJobName(\n jobName.orElse(null), cutoffDate, numJobsToRequest, force.orElse(false), cursor);\n cursor = batch.cursor();\n // Individual batches can come back empty if none of the returned jobs meet the requirements\n // or if all jobs have been exhausted.\n if (!batch.eligibleJobs().isEmpty()) {\n String payloadChunk = requestDeletion(batch.eligibleJobs(), verbose);\n if (verbose) {\n payload.append(payloadChunk);\n }\n numJobsProcessed += batch.eligibleJobs().size();\n }\n // Stop iterating when all jobs have been exhausted (cursor is absent) or enough have been\n // processed.\n } while (cursor.isPresent()\n && (!numJobsToDelete.isPresent() || (numJobsProcessed < numJobsToDelete.get())));\n\n if (numJobsProcessed == 0) {\n logger.atInfo().log(\n \"No eligible jobs found with name '%s' older than %d days old.\",\n jobName.orElse(\"(any)\"), defaultedDaysOld);\n payload.append(\"No eligible jobs found\");\n } else {\n logger.atInfo().log(\"A total of %d job(s) processed.\", numJobsProcessed);\n payload.append(String.format(\"A total of %d job(s) processed\", numJobsProcessed));\n }\n response.setPayload(payload.toString());\n }",
"private void assertRemoved()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttestController.getContentTypeDefinitionVOWithId(testDefinition.getId());\n\t\t\tfail(\"The ContentTypeDefinition was not deleted\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{ /* expected */ }\n\t}",
"@Test\r\n\tpublic void testDelete() {\n\t\tint todos = modelo.getAll().size();\r\n\r\n\t\tassertTrue(modelo.delete(1));\r\n\r\n\t\t// comprobar que este borrado\r\n\t\tassertNull(modelo.getById(1));\r\n\r\n\t\t// borrar un registro que no existe\r\n\t\tassertFalse(modelo.delete(13));\r\n\t\tassertNull(modelo.getById(13));\r\n\r\n\t\tassertEquals(\"debemos tener un registro menos\", (todos - 1), modelo\r\n\t\t\t\t.getAll().size());\r\n\r\n\t}",
"public void fail( String reason );",
"@Test\n public void deleteTarjetaPrepagoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(2);\n tarjetaPrepagoLogic.deleteTarjetaPrepago(entity.getId());\n TarjetaPrepagoEntity deleted = em.find(TarjetaPrepagoEntity.class, entity.getId());\n Assert.assertNull(deleted);\n }",
"@Test\n\tpublic void IsCaseNameDeleted(){\n\t\tString caseName = \"led\";\n\t\tboolean isNameValid = CaseManagerService.deleteCaseType(caseName);\n\t\tassertTrue(isNameValid);\n\t}",
"@Test\n public void testDeleteTravel() throws Exception{\n \n doNothing().when(databaseMock).deleteTravel(anyInt());\n \n mockMVC.perform(delete(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNoContent());\n \n verify(databaseMock, times(1)).getUser(1);\n verify(databaseMock, times(1)).deleteTravel(1);\n verifyNoMoreInteractions(databaseMock);\n }",
"@Test\n public void testDeleteShoppinglistsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteShoppinglistsIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(204, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Transactional\n @Test(expected = GenericRequestException.class)\n public void deleteComputerBuildAsNonOwner() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n ComputerBuild newComputerBuild = loginAndCreateBuild(computerBuild, loginRequest,\n SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n\n // log in as a different user, this is expected to cause the delete to fail.\n LoginRequest newLoginRequest = new LoginRequest(USER_NAME_ONE, USER_PASSWORD);\n WebUtility.logUserIn(applicationUserAuthenticationService, authenticationManager, jwtTokenProvider, newLoginRequest);\n\n computerBuildService.deleteComputerBuild(newComputerBuild.getBuildIdentifier());\n }",
"@Test\n public void testDeleteTravel_RecordNotFoundExceptionGetUser() throws Exception {\n when(databaseMock.getUser(anyInt())).thenThrow(new RecordNotFoundException());\n \n mockMVC.perform(delete(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNotFound());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }",
"@Test\n @ExpectedDatabase(value = \"classpath:data.xml\", assertionMode = DatabaseAssertionMode.NON_STRICT)\n public void delete_WithUnauthorisedUser_Test_OK() throws Exception {\n mockMvc.perform(delete(\"/client-journal-resource/clients/{id}\", 1))\n .andExpect(status().is(401));\n }"
] | [
"0.7361193",
"0.6608237",
"0.6588744",
"0.64553446",
"0.64453",
"0.62596697",
"0.6234099",
"0.61830884",
"0.6176807",
"0.6164864",
"0.61341757",
"0.6128682",
"0.6124879",
"0.61164254",
"0.61092645",
"0.60801274",
"0.60801274",
"0.60668206",
"0.60596925",
"0.60514665",
"0.6019863",
"0.5998957",
"0.5980839",
"0.5962656",
"0.5950396",
"0.59282017",
"0.59179765",
"0.5910568",
"0.5909558",
"0.5897948",
"0.58918405",
"0.5877663",
"0.5870336",
"0.5867801",
"0.5857888",
"0.58537966",
"0.58500993",
"0.5846462",
"0.58374935",
"0.5817677",
"0.58097124",
"0.57935554",
"0.579303",
"0.5787836",
"0.57867235",
"0.57805574",
"0.57766885",
"0.5770208",
"0.5769933",
"0.57612514",
"0.5753599",
"0.5753008",
"0.5749447",
"0.57302254",
"0.57301974",
"0.5726515",
"0.5726411",
"0.5722534",
"0.5721487",
"0.57192916",
"0.57070786",
"0.57061756",
"0.5697747",
"0.5695924",
"0.5694066",
"0.5687227",
"0.5685125",
"0.56827736",
"0.5681529",
"0.56815135",
"0.5681118",
"0.56791514",
"0.56777704",
"0.56745285",
"0.5662998",
"0.5660586",
"0.56591254",
"0.56509364",
"0.5646963",
"0.5640039",
"0.56359524",
"0.5634765",
"0.5632983",
"0.5629507",
"0.5629365",
"0.5621923",
"0.5621872",
"0.5621217",
"0.5609572",
"0.5609451",
"0.56089544",
"0.56088233",
"0.5598992",
"0.55973107",
"0.55968237",
"0.55960536",
"0.55898964",
"0.55896026",
"0.55831885",
"0.5576636"
] | 0.77125216 | 0 |
Helper Method to turn Objects into JSON String | public static String asJsonString(final Object obj) {
try {
return new ObjectMapper().writeValueAsString(obj);
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String toJSONString(Object data);",
"String toJSON();",
"public String toJson(Object obj){\n return new Gson().toJson(obj);\n }",
"public static String toJson(Object obj) {\n\t\treturn toJson(obj, true, true);\n\t}",
"private static String asJsonString(final Object obj) {\n try {\n return new ObjectMapper().writeValueAsString(obj);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public static <T> String object2String(T obj){\n\t\treturn JSON.toJSONString(obj);\n\t}",
"public static String object2Json(Object object) {\n\t\treturn JSON.toJSONString(object, features);\n\t}",
"public abstract String toJsonString();",
"public String objectToJson(Object o){\n Gson gson = new Gson();\n String json = gson.toJson(o);\n return json;\n }",
"public static String getJsonString(Object obj) {\n\t\tString res = \"{}\";\n\t\tStringWriter out = new StringWriter();\n\t\ttry {\n\t\t\tJSONValue.writeJSONString(obj, out);\n\t\t\tres = out.toString();\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Error converting obj to string\", e);\n\t\t}\n\t\treturn res;\n\t}",
"String parseObjectToJson(Object obj);",
"public String toJsonfrmObject(Object object) {\n try {\n ObjectMapper mapper = new ObjectMapper();\n mapper.setDateFormat(simpleDateFormat);\n return mapper.writeValueAsString(object);\n } catch (IOException e) {\n logger.error(\"Invalid JSON!\", e);\n }\n return \"\";\n }",
"private String convertToJSON(Object o) throws JsonProcessingException {\n return new ObjectMapper().writeValueAsString(o);\n }",
"public static String getJsonString(Object object) throws Exception {\r\n\t\tObjectMapper mapper = new ObjectMapper();\r\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\r\n\t\treturn mapper.writeValueAsString(object);\t\r\n\t}",
"private String stringify(Object object) throws JsonProcessingException {\n return new ObjectMapper().writeValueAsString(object);\n }",
"public static String getJson(final Object obj)\n\t{\n\t\tString json = null;\n\t\ttry\n\t\t{\n\t\t\tfinal ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.setSerializationInclusion(Include.ALWAYS);\n\t\t\tjson = mapper.writer().writeValueAsString(obj);\n\t\t}\n\t\tcatch (final Exception exception)\n\t\t{\n\t\t\tLOG.error(\"Exception occured when converting Java object to json string. Exception message: \", exception);\n\t\t}\n\t\treturn json;\n\t}",
"public static String toJson(Object o)\n {\n return g.toJson(o);\n }",
"private static String jsonToString(final Object obj) throws JsonProcessingException {\n String result;\n try {\n final ObjectMapper mapper = new ObjectMapper();\n final String jsonContent = mapper.writeValueAsString(obj);\n result = jsonContent;\n } catch (JsonProcessingException e) {\n result = \"Json processing error\";\n }\n return result;\n }",
"public static String ConvertToJsonString(final Object obj) {\n\t\ttry {\n\t\t\tfinal ObjectMapper mapper = new ObjectMapper();\n\t\t\tfinal String jsonContent = mapper.writeValueAsString(obj);\n\t\t\treturn jsonContent;\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public static String asJsonString(final Object obj) {\n try {\n return new ObjectMapper().writeValueAsString(obj);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public static String asJsonString(final Object obj) {\n try {\n return new ObjectMapper().writeValueAsString(obj);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public static String asJsonString(final Object obj) {\n try {\n return new ObjectMapper().writeValueAsString(obj);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"private static String asJsonString(final Object obj) {\n try {\n ObjectMapper objectToJsonMapper = new ObjectMapper();\n objectToJsonMapper.registerModule(new JavaTimeModule());\n objectToJsonMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);\n return objectToJsonMapper.writeValueAsString(obj);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public abstract String toJson();",
"public abstract Object toJson();",
"public final static String toJson(final Object src) {\n\t\treturn gson.toJson(src);\n\t}",
"@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}",
"public String toJsonString() {\n return JsonUtils.getGson().toJson(toJson());\n }",
"public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }",
"public static String toJSON(final Object object) {\r\n\t\tString jsonString = null;\r\n\t\ttry\t{\r\n\t\t\tif (object != null)\t{\r\n\t\t\t\tjsonString = SERIALIZER.serialize(object);\r\n\t\t\t}\r\n\t\t} catch (SerializeException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in serializing to json\",\r\n\t\t\t\t\tex);\r\n\t\t\tjsonString = null;\r\n\r\n\t\t}\r\n\t\treturn jsonString;\r\n\t}",
"private static String valueToJSONString(Object value) throws Exception \n {\n\t\t JSONObject json = new JSONObject(); \n\t if (value instanceof IdScriptableObject && \n\t ((IdScriptableObject)value).getClassName().equals(\"Date\") == true) \n\t { \n\t // Get the UTC values of the date \n\t Object year = NativeObject.callMethod((IdScriptableObject)value, \"getUTCFullYear\", null); \n\t Object month = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMonth\", null); \n\t Object date = NativeObject.callMethod((IdScriptableObject)value, \"getUTCDate\", null); \n\t Object hours = NativeObject.callMethod((IdScriptableObject)value, \"getUTCHours\", null); \n\t Object minutes = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMinutes\", null); \n\t Object seconds = NativeObject.callMethod((IdScriptableObject)value, \"getUTCSeconds\", null); \n\t Object milliSeconds = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMilliseconds\", null); \n\t \n\t // Build the JSON object to represent the UTC date \n\t \n\t json.put(\"zone\",\"UTC\"); \n\t json.put(\"year\",year); \n\t json.put(\"month\",month); \n\t json.put(\"date\",date); \n\t json.put(\"hours\",hours); \n\t json.put(\"minutes\",minutes); \n\t json.put(\"seconds\",seconds); \n\t json.put(\"milliseconds\",milliSeconds); \n\t return json.toString(); \n\t } \n\t else if (value instanceof NativeJavaObject) \n\t { \n\t Object javaValue = Context.jsToJava(value, Object.class); \n\t return javaValue.toString(); \n\t } \n\t else if (value instanceof NativeArray) \n\t { \n\t // Output the native array \n\t return nativeArrayToJSONString((NativeArray)value); \n\t } \n\t else if (value instanceof NativeObject) \n\t { \n\t // Output the native object \n\t return nativeObjectToJSONString((NativeObject)value); \n\t } \n\t else if( value instanceof Function){\n\t \treturn Context.toString(value);\n\t }\n\t else \n\t { \n\t return value.toString(); \n\t } \n }",
"public static String toJSON(final Object object) {\n return gson.toJson(object);\n }",
"public static String obj2json(Object obj) throws Exception {\n return objectMapper.writeValueAsString(obj);\n }",
"public static String ToJsonString(AsonValue obj,boolean format) {\n return new JsonSerializer().serialize(obj,format);\n }",
"private static String nativeObjectToJSONString(NativeObject nativeObject) throws Exception \n { \n \tMap<String, String> mapJson = new LinkedHashMap<String, String>();\n \tMap<String, Class<?>> mapTypeJson = new LinkedHashMap<String, Class<?>>();\n \t\n Object[] ids = nativeObject.getIds(); \n for (Object id : ids) \n { \n String key = id.toString();\n Object value = nativeObject.get(key, nativeObject);\n if(!(value instanceof Undefined)) {\n Object json = toJson(value);\n mapJson.put(key, json+\"\");\n if(!(json instanceof String) && json!=null) mapTypeJson.put(key, json.getClass()); \n }\n } \n \n return HAPUtilityJson.buildMapJson(mapJson, mapTypeJson); \n }",
"public static String getJsonString(Object o) {\n\n\t\ttry {\n\t\t\tObjectMapper om = new ObjectMapper();\n\t\t\treturn om.writeValueAsString(o);\n\t\t} catch (JsonProcessingException e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"JSONObject toJson();",
"JSONObject toJson();",
"public static String getString(Object object){\n return JSON.toJSONString(object);\n }",
"public String toJsonString() {\n\t\tString json = null;\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\n\t\ttry {\n\t\t\tjson = mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\t}",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"public String writeAsJson(final Object object) {\n String jsonRepresentation = null;\n try {\n if (object != null) {\n jsonRepresentation = jsonMapper.writeValueAsString(object);\n }\n } catch (final JsonProcessingException e) {\n // LOGGER.error(\"Failed writing object as json\", e);\n }\n\n if (applyMasking) {\n jsonRepresentation = jsonMaskingUtil.mask(jsonRepresentation);\n }\n return jsonRepresentation;\n }",
"public static String convertObjToString(Object clsObj) {\n String jsonSender = new Gson().toJson(clsObj, new TypeToken<Object>() {\n }.getType());\n return jsonSender;\n }",
"public static String asJsonString(final Object obj) {\n try {\n return new ObjectMapper()\n .registerModule(new JavaTimeModule())\n .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)\n .writeValueAsString(obj);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public String toJson(Object src) {\n return getGson().toJson(src);\n }",
"public String toJson() {\n\n final StringBuilder jsonRepresentation = new StringBuilder();\n\n jsonRepresentation.append(\"[\");\n\n final Iterator<TrackingDataEntry> entriesIter = getEntries().iterator();\n while (entriesIter.hasNext()) {\n\n final TrackingDataEntry entry = entriesIter.next();\n\n serializeTrackingDataVariables(jsonRepresentation, entry.getVars());\n\n if (null != entry.getName()) {\n jsonRepresentation.append(\",\\\"name\\\":\\\"\").append(entry.getName()).append(\"\\\"\");\n }\n if (null != entry.getId()) {\n jsonRepresentation.append(\",\\\"id\\\":\\\"\").append(entry.getId()).append(\"\\\"\");\n }\n if (null != entry.getType()) {\n jsonRepresentation.append(\",\\\"type\\\":\\\"\").append(entry.getType()).append(\"\\\"\");\n }\n if (null != entry.getUrl()) {\n jsonRepresentation.append(\",\\\"url\\\":\\\"\").append(entry.getUrl()).append(\"\\\"\");\n }\n jsonRepresentation.append(\"}\");\n if (entriesIter.hasNext()) {\n jsonRepresentation.append(\",\");\n }\n }\n\n jsonRepresentation.append(\"]\");\n\n return jsonRepresentation.toString();\n }",
"String toJson() throws IOException;",
"public String parseObjectToJson(Object object) {\n\n return gson.toJson(object);\n }",
"public String toJson()\n\t{\n\t\tJsonStringEncoder encoder = JsonStringEncoder.getInstance();\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append('{');\n\n\t\tboolean needComma = true;\n\t\tif (m_Message != null)\n\t\t{\n\t\t\tchar [] message = encoder.quoteAsString(m_Message.toString());\n\t\t\tbuilder.append(\"\\n \\\"message\\\" : \\\"\").append(message).append('\"').append(',');\n\t\t\tneedComma = false;\n\t\t}\n\n\t\tif (m_ErrorCode != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n \\\"errorCode\\\" : \").append(m_ErrorCode.getValueString());\n\t\t\tneedComma = true;\n\t\t}\n\n\t\tif (m_Cause != null)\n\t\t{\n\t\t\tif (needComma)\n\t\t\t{\n\t\t\t\tbuilder.append(',');\n\t\t\t}\n\t\t\tchar [] cause = encoder.quoteAsString(m_Cause.toString());\n\t\t\tbuilder.append(\"\\n \\\"cause\\\" : \\\"\").append(cause).append('\"');\n\t\t}\n\n\t\tbuilder.append(\"\\n}\\n\");\n\n\t\treturn builder.toString();\n\t}",
"private String converttoJson(Object medicine) throws JsonProcessingException {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n return objectMapper.writeValueAsString(medicine);\r\n }",
"public String toJson() {\n try{\n return new JsonSerializer().getObjectMapper().writeValueAsString(this);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }",
"public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"void generateJSON(JSONObject object, String name);",
"<T> String toJson(T source);",
"public static String objToJsonString(Object obj) {\n\n // 初始化返回值\n String json = \"str_empty\";\n\n if (obj == null) {\n return json;\n }\n\n StringBuilder buff = new StringBuilder();\n Field[] fields = obj.getClass().getFields();\n try {\n buff.append(\"{\");\n int i = 0;\n for (Field field : fields) {\n if (i != 0) {\n buff.append(\",\");\n }\n buff.append(\"\\\"\");\n buff.append(field.getName());\n buff.append(\"\\\"\");\n buff.append(\":\");\n buff.append(\"\\\"\");\n buff.append(field.get(obj) == null ? \"\" : field.get(obj));\n buff.append(\"\\\"\");\n i++;\n }\n buff.append(\"}\");\n json = buff.toString();\n } catch (Exception e) {\n throw new RuntimeException(\"cause:\" + e.toString());\n }\n return json;\n }",
"public String toJSON() throws JSONException;",
"public String toJson() throws Exception {\r\n\t\treturn SimpleJson.HashMapToText(getJsonToken());\r\n\t}",
"public static String convertToJson(Object target) {\n StringBuilder sb = new StringBuilder();\n Class struc = target.getClass();\n Field[] fields = struc.getFields();\n\n for (Field field : fields) {\n try {\n sb.append(String.format(\"%s:%s\\n\", field.getName(), field.get(target)));\n\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n return sb.toString();\n }",
"public static String toJSON(Object data) {\n\t\ttry {\n\t\t\treturn fullMapper.writeValueAsString(data);\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String convertObjectToJsonString(Object object) {\n\t\ttry {\n\t\t\tString jsonText = mapper.writeValueAsString(object);\n\n\t\t\treturn jsonText;\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"Error converting object to Json String [\" + object + \"]\",\n\t\t\t\t\te);\n\t\t}\n\t}",
"public static String toJson(Object o) {\r\n\t\ttry {\r\n\t\t\treturn mapper.writeValueAsString(o);\r\n\t\t} catch (JsonGenerationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (JsonMappingException 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\treturn null;\r\n\t}",
"public static String dataToJson(Object data) {\n try {\n ObjectMapper mapper = new ObjectMapper();\n //for pretty printing JSON\n mapper.enable(SerializationFeature.INDENT_OUTPUT);\n ObjectWriter writer = mapper.writer(new DefaultPrettyPrinter());\n return mapper.writeValueAsString(data);\n } catch (IOException e){\n \tSystem.out.println(\"Error\");\n return createError(\"404\",\"Jackson: Error converting object into json format\");\n }\n }",
"public JsonObject toJson();",
"public final native String toJson() /*-{\n // Safari 4.0.5 appears not to honor the replacer argument, so we can't do this:\n \n // var replacer = function(key, value) {\n // if (key == '__key') {\n // return;\n // }\n // return value;\n // }\n // return $wnd.JSON.stringify(this, replacer);\n \n var key = this.__key;\n delete this.__key;\n var rf = this.__rf;\n delete this.__rf;\n var gwt = this.__gwt_ObjectId;\n delete this.__gwt_ObjectId;\n // TODO verify that the stringify() from json2.js works on IE\n var rtn = $wnd.JSON.stringify(this);\n this.__key = key;\n this.__rf = rf;\n this.__gwt_ObjectId = gwt;\n return rtn;\n }-*/;",
"@Override\n public String toJson(Object object) {\n if (null == object) {\n return null;\n }\n return JSON.toJSONString(object, SerializerFeature.DisableCircularReferenceDetect);\n }",
"public String toJsonString() {\n String str;\n String str2;\n try {\n if (this.lifetime == null) {\n str = \"null\";\n } else {\n str = \"\\\"\" + this.lifetime.toString() + \"\\\"\";\n }\n if (this.frequency == null) {\n str2 = \"\";\n } else {\n str2 = \",\\\"frequency\\\":\" + this.frequency;\n }\n return \"{\\\"enabled\\\":\" + this.enabled + str2 + \",\\\"lifetime\\\":\" + str + \"}\";\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return \"\";\n }\n }",
"private String convertToJson(Users user) throws JsonProcessingException{\n\t ObjectMapper objectMapper = new ObjectMapper();\n\t return objectMapper.writeValueAsString(user); \n\t}",
"public String toJson(final String object) {\n if (object != null && (object.startsWith(\"[\") || object.startsWith(\"{\")\n || (object.startsWith(\"\\\"[\") || object.startsWith(\"\\\"{\")))) {\n return object;\n } else\n return \"{\\\"\" + \"{\\\"success\\\" : 1}\" + \"\\\":\\\"\" + object + \"\\\"}\";\n }",
"private String objectToJson(Object o) throws JsonProcessingException {\n ObjectMapper om = new ObjectMapper();\n om.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);\n return om.writeValueAsString(o);\n }",
"public static String convertListToJSON(List<?> objectsList) {\n\t\tString listAsJSON = \"\";\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\ttry {\n\t\t\tlistAsJSON = objectMapper.writeValueAsString(objectsList);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listAsJSON;\n\t}",
"public static String toString(Object obj) {\n try {\n return TOSTRINGMAPPER.writeValueAsString(obj);\n } catch (JsonProcessingException ex) {\n throw new RuntimeException(ex);\n }\n }",
"public static String convertOb2String(Object ob) throws JsonProcessingException {\n ObjectMapper om = new ObjectMapper();\n return om.writerWithDefaultPrettyPrinter().writeValueAsString(ob);\n }",
"public static String toJson(Object o) throws JsonProcessingException {\n var mapper = new ObjectMapper();\n mapper.setDateFormat(new SimpleDateFormat(\"yyyy-MM-dd\"));\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false);\n var ow = mapper.writer();\n return ow.writeValueAsString(o);\n }",
"public String toJSON() {\n\t JSONObject outer = new JSONObject();\r\n\t JSONObject inner = new JSONObject();\r\n\t // Now generate the JSON output\r\n\t try {\r\n\t outer.put(\"articleMobile\", inner); // the outer object name\r\n\t inner.put(\"codeArticle\", codeArticle); // a name/value pair\r\n\t inner.put(\"designation\", designation); // a name/value pair\r\n\t inner.put(\"prixVente\", prixVente); // a name/value pair\r\n\t inner.put(\"stockTh\", stockTh);\r\n\t inner.put(\"error\", error); // a name/value pair\r\n\t inner.put(\"gisement\", gisement); // a name/value pair\r\n\t } catch (JSONException ex) {\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return outer.toString(); // return the JSON text\r\n\t}",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() { return new Gson().toJson(this); }",
"public static String toJsonString(final Object object) {\n try {\n return writeValueAsString(object);\n } catch (JsonProcessingException e) {\n LOGGER.error(\"toJsonString::JsonProcessingException={}\", e.getMessage(), e);\n throw new MapperException(e.getMessage(), e);\n }\n\n }",
"private static String nativeArrayToJSONString(NativeArray nativeArray) throws Exception \n { \n Object[] propIds = nativeArray.getIds(); \n if (isArray(propIds) == true) \n {\n \tList<String> jsonArray = new ArrayList<String>();\n \tClass typeClass = null;\n for (int i=0; i<propIds.length; i++) \n { \n Object propId = propIds[i]; \n if (propId instanceof Integer) \n { \n Object value = nativeArray.get((Integer)propId, nativeArray);\n Object json = toJson(value);\n jsonArray.add(json+\"\");\n if(typeClass==null) typeClass = json.getClass();\n } \n } \n return HAPUtilityJson.buildArrayJson(jsonArray.toArray(new String[0]), typeClass);\n } \n else \n { \n \tMap<String, String> mapJson = new LinkedHashMap<String, String>();\n \tMap<String, Class<?>> mapTypeJson = new LinkedHashMap<String, Class<?>>();\n for (Object propId : propIds) \n { \n \tString key = propId.toString();\n Object value = nativeArray.get(key, nativeArray);\n Object json = toJson(value);\n mapJson.put(key, json+\"\");\n mapTypeJson.put(key, json.getClass()); \n } \n return HAPUtilityJson.buildMapJson(mapJson, mapTypeJson); \n }\n }",
"public String toJsonString() {\n JSONObject jsonObject = new JSONObject();\n try {\n jsonObject.put(\"from\", from);\n jsonObject.put(\"domain\", domain);\n jsonObject.put(\"provider\", provider);\n jsonObject.put(\"action\", action);\n\n try {\n JSONObject jsonData = new JSONObject();\n for (Map.Entry<String, String> entry : data.entrySet()) {\n jsonData.put(entry.getKey(), entry.getValue());\n }\n jsonObject.put(\"data\", jsonData);\n } catch (Exception e) {\n e.printStackTrace();\n jsonObject.put(\"data\", \"{}\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }",
"public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\\"code\\\": \\\"\").append(this.code).append(\"\\\", \");\n sb.append(\"\\\"color\\\": \\\"\").append(this.color).append(\"\\\", \");\n\n /* Append a size only if the product has a Size */\n if (this.size.getClass() != NoSize.class) {\n sb.append(\"\\\"size\\\": \\\"\").append(this.size).append(\"\\\", \");\n }\n\n sb.append(\"\\\"price\\\": \").append(this.price).append(\", \");\n sb.append(\"\\\"currency\\\": \\\"\").append(this.currency).append(\"\\\"}, \");\n\n return sb.toString();\n }",
"String objectWrite();",
"@Override\n public String toString() {\n return jsonString;\n }",
"public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }",
"public String toJSONString() throws CharConversionException, UnsupportedEncodingException {\n return objectMap.toJSONString();\n }",
"public static String object_to_string(java.lang.Object obj) throws Exception\r\n\t{\r\n\t\tString str = null;\r\n\r\n\t\tClass<?> c = obj.getClass();\r\n\t\tField[] flds = c.getDeclaredFields();\r\n\t\tif (flds != null)\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < flds.length; i++)\r\n\t\t\t{\r\n\t\t\t\tflds[i].setAccessible(true);\r\n\t\t\t\tif (flds[i].get(obj) != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tString strtmp = \"\";\r\n\t\t\t\t\tObject tmp = flds[i].get(obj);\r\n\t\t\t\t\tif (flds[i].getType().isArray()) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (tmp instanceof String[]) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tString[] tmp1 = (String[])tmp;\r\n\t\t\t\t\t\t\tfor (int j = 0 ;j<tmp1.length;j++)\r\n\t\t\t\t\t\t\t\tstrtmp += tmp1[j] + \" \";\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse if (tmp instanceof Integer[]) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tInteger[] tmp1 = (Integer[])tmp;\r\n\t\t\t\t\t\t\tfor (int j = 0 ;j<tmp1.length;j++)\r\n\t\t\t\t\t\t\t\tstrtmp += tmp1[j].toString() + \" \";\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse if (tmp instanceof Long[]) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tLong[] tmp1 = (Long[])tmp;\r\n\t\t\t\t\t\t\tfor (int j = 0 ;j<tmp1.length;j++)\r\n\t\t\t\t\t\t\t\tstrtmp += tmp1[j].toString() + \" \";\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse if (tmp instanceof Double[]) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tDouble[] tmp1 = (Double[])tmp;\r\n\t\t\t\t\t\t\tfor (int j = 0 ;j<tmp1.length;j++)\r\n\t\t\t\t\t\t\t\tstrtmp += tmp1[j].toString() + \" \";\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse if(tmp instanceof Boolean[]) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tBoolean[] tmp1 = (Boolean[])tmp;\r\n\t\t\t\t\t\t\tfor (int j = 0 ;j<tmp1.length;j++)\r\n\t\t\t\t\t\t\t\tstrtmp += tmp1[j].toString() + \" \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstrtmp = strtmp.trim();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstrtmp = flds[i].get(obj).toString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (str != null)\r\n\t\t\t\t\t\tstr = str + \",\";\r\n\t\t\t\t\tif (str == null)\r\n\t\t\t\t\t\tstr = \"\\\"\" + flds[i].getName() + \"\\\"\" + \":\" + \"\\\"\" + encode(strtmp) + \"\\\"\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tstr = str + \"\\\"\" + flds[i].getName() + \"\\\"\" + \":\" + \"\\\"\" + encode(strtmp) + \"\\\"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn str;\r\n\t}",
"private StringBuilder getJSONHelper()\n\t{\n\t\tStringBuilder json = new StringBuilder();\n\t\tint n = 0;\n\t\tfor(String key : values.keySet())\n\t\t\tappendValue(json, key, n++);\n\t\treturn json;\n\t}",
"public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }",
"public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }",
"public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }",
"public String jsonify() {\n return gson.toJson(this);\n }",
"public String toJson(SerializationFormattingPolicy formattingPolicy) {\n this.populatePropertyBag();\n if (SerializationFormattingPolicy.Indented.equals(formattingPolicy) ) {\n return this.propertyBag.toString(INDENT_FACTOR);\n } else {\n return this.propertyBag.toString();\n }\n }"
] | [
"0.7757787",
"0.7558377",
"0.74155724",
"0.7321071",
"0.73005325",
"0.72601914",
"0.7208921",
"0.71887726",
"0.7183577",
"0.7102347",
"0.70956045",
"0.7048678",
"0.7045041",
"0.7014228",
"0.70074254",
"0.6994777",
"0.69713193",
"0.69303274",
"0.69260216",
"0.69177437",
"0.69177437",
"0.69177437",
"0.69069993",
"0.6905275",
"0.687526",
"0.68700624",
"0.6867672",
"0.6848875",
"0.6813627",
"0.678748",
"0.6781071",
"0.6761705",
"0.6756477",
"0.674981",
"0.6749457",
"0.67298263",
"0.6706676",
"0.6706676",
"0.67016155",
"0.66998196",
"0.6670095",
"0.6664861",
"0.666116",
"0.6658033",
"0.6654731",
"0.6606873",
"0.65813965",
"0.6570932",
"0.6557729",
"0.65568686",
"0.655201",
"0.655185",
"0.654608",
"0.6539531",
"0.65105087",
"0.64917934",
"0.6488639",
"0.64861673",
"0.6473707",
"0.64621234",
"0.64573616",
"0.64198464",
"0.6413808",
"0.64109796",
"0.64081216",
"0.6399001",
"0.6392297",
"0.63632953",
"0.6359902",
"0.6358523",
"0.63540506",
"0.63445276",
"0.6319051",
"0.63072044",
"0.62951034",
"0.62951034",
"0.62951034",
"0.62951034",
"0.62951034",
"0.62951034",
"0.62951034",
"0.62951034",
"0.62951034",
"0.62951034",
"0.6287795",
"0.6284139",
"0.62690294",
"0.6267277",
"0.62625206",
"0.626066",
"0.62599504",
"0.6258351",
"0.62515515",
"0.6232794",
"0.6217098",
"0.6214598",
"0.6214598",
"0.6196149",
"0.6189542",
"0.61863536"
] | 0.68581057 | 27 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
SparseBooleanArray selected = adapter
.getSelectedIds();
for (int i = (selected.size() - 1); i >= 0; i--) {
if (selected.valueAt(i)) {
String selecteditem = adapter.getItem(selected.keyAt(i)).toString();
String[] parts = selecteditem.split("=");
final String content = (parts[0]);
Log.d("ghjk",String.valueOf(content));
CheckInternetConnection c=new CheckInternetConnection();
if(c.haveNetworkConnection()){
mDatabase = FirebaseDatabase.getInstance().getReference("users").child(user).child("Noti");
mDatabase.addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {
Model1 m = postSnapshot.getValue(Model1.class);
String user1=m.getUser();
if(user1.equals(content)){
postSnapshot.getRef().removeValue();
Toast.makeText(getContext(), "Successfully Removed", Toast.LENGTH_SHORT).show();
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.sixth, new SixthFragment());
fragmentTransaction.commit();
break;
}
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
}
else{
Toast.makeText(getContext(), "Network Error", Toast.LENGTH_SHORT).show();
}
}
}
mode.finish();
selected.clear();
} | {
"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 |
Get the name of the method | @Override
public String execute(final HttpServletRequest request,
final HttpServletResponse response) throws ControllerException
{
int lastSlash = request.getRequestURI().lastIndexOf("/");
String methodName = request.getRequestURI().substring(lastSlash + 1);
// Find the target method
Method targetMethod = null;
for (Method method : this.getClass().getMethods())
{
if (method.getName().equals(methodName))
{
targetMethod = method;
break;
}
}
if (targetMethod == null)
{
throw new ControllerException(
"Could not find a Controller method with name "
+ methodName + " in class "
+ this.getClass().getName());
}
// Execute the target method
try
{
errors.clear();
targetMethod.invoke(this, request, response);
request.setAttribute("errors", errors);
}
catch (Exception ex)
{
if (ex.getCause() instanceof ControllerException)
{
// If it is a Controller exception, just propagate it
throw (ControllerException) ex.getCause();
}
throw new ControllerException(
"Could not execute the Controller method " + methodName
+ " from class " + this.getClass().getName(), ex);
}
// The view name is the same than the method
return methodName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getName() {\n return method.getName();\n }",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"String getMethodName();",
"String getMethodName();",
"public String getMethodName() {\n return LOG_TAG + \":\" + this.getClass().getSimpleName() + \".\" + new Throwable().getStackTrace()[1].getMethodName();\n }",
"public String getName() {\n return nameRule.getMethodName();\n }",
"public String getMethodName() {\r\n return _methodName;\r\n }",
"public String getMethodName() {\n\t\treturn this.methodName;\n\t}",
"public String getMethodName() {\n\t\treturn this.methodName;\n\t}",
"public java.lang.String getMethodName() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t} else {\r\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\r\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\r\n\t\t\t\tif (bs.isValidUtf8()) {\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t}\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}",
"public String getGetMethodName() {\n return m_getMethodName;\n }",
"public java.lang.String getMethodName() {\r\n\t\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\r\n\t\t\t\t\tjava.lang.String s = ((com.google.protobuf.ByteString) ref)\r\n\t\t\t\t\t\t\t.toStringUtf8();\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t\treturn s;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t\t}\r\n\t\t\t}",
"public String getMethodName() {\n return methodName;\n }",
"public String getMethodName() {\n return methodName;\n }",
"public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n methodName_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n methodName_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getCurrentMethodName () {\n String currentMethod = getCurrentElement(ElementKind.METHOD);\n if (currentMethod == null) return \"\";\n else return currentMethod;\n }",
"public String getMethodName() {\n\t\treturn methodName;\n\t}",
"public static String getCurrentMethodName() {\n\t\tStackTraceElement stackTraceElements[] = (new Throwable()).getStackTrace();\n\t\tString fullString = stackTraceElements[1].toString();\n\t\tint stringEnd = fullString.indexOf('(');\n\t\tString fullName = fullString.substring(0, stringEnd);\n\t\tint start = fullName.lastIndexOf('.') + 1;\n\t\tString methodName = fullName.substring(start);\n\n\t\treturn methodName;\n\t}",
"public String getMethodName() {\n\t\t\treturn methodName;\n\t\t}",
"public String getFullName() {\n return getFullMethodName(method);\n }",
"public String getMethodName(String name) {\n return methodResources.getString(name);\n }",
"public static String getCurrentMethodName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getMethodName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=getStackTrace s1=getCurrentMethodName s2=run\n\t\treturn s2;\n\t}",
"public static String getCurrentMethodName() {\n Exception e = new Exception();\n StackTraceElement trace = e.fillInStackTrace().getStackTrace()[1];\n String name = trace.getMethodName();\n String className = trace.getClassName();\n int line = trace.getLineNumber();\n return \"[CLASS:\" + className + \" - METHOD:\" + name + \" LINE:\" + line + \"]\";\n }",
"private static String getFullMethodName(Method method) {\n return method.getDeclaringClass()\n .getName() + '.' + method.getName() + \"()\";\n }",
"String getMethod();",
"String getMethod();",
"public String toString() {\n\t\treturn methodName;\n\t}",
"@Override\n public String getMethodName() {\n return null;\n }",
"public com.google.protobuf.ByteString getMethodNameBytes() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\r\n\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\r\n\t\t\t\tmethodName_ = b;\r\n\t\t\t\treturn b;\r\n\t\t\t} else {\r\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\r\n\t\t\t}\r\n\t\t}",
"@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }",
"public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString getMethodNameBytes() {\r\n\t\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\t\tif (ref instanceof String) {\r\n\t\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\r\n\t\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\r\n\t\t\t\t\tmethodName_ = b;\r\n\t\t\t\t\treturn b;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\r\n\t\t\t\t}\r\n\t\t\t}",
"com.google.protobuf.ByteString getMethodNameBytes();",
"com.google.protobuf.ByteString getMethodNameBytes();",
"com.google.protobuf.ByteString\n getMethodNameBytes();",
"com.google.protobuf.ByteString\n getMethodNameBytes();",
"public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\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 methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\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 methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }",
"@Override\n public String getMethod() {\n return METHOD_NAME;\n }",
"public String getMethod ()\n {\n return method;\n }",
"public String getName()\n {\n return m_functionName;\n }",
"MethodName getMethod();",
"public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}",
"@Nullable\n @Override\n public String getName() {\n return /*this.requestMethod + \" \" +*/ this.url;\n }",
"public static String getMethodName(Method _method) {\n Objects.requireNonNull(_method, \"method must not be null\");\n\n if (_method.isAnnotationPresent(DBusMemberName.class)) {\n return _method.getAnnotation(DBusMemberName.class).value();\n }\n return _method.getName();\n }",
"public static String getName(Method m)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tsb.append(getName(m.getReturnType())).append(' ');\n\t\tsb.append(m.getName()).append('(');\n\t\t\n\t\tClass<?>[] types = m.getParameterTypes();\n\t\tfor (int i = 0; i < types.length; i++) \n\t\t{\n\t\t\tif (i > 0)\n\t\t\t{\n\t\t\t\tsb.append(',');\n\t\t\t}\n\t\t\tsb.append(getName(types[i]));\n\t\t}\n\t\tsb.append(')');\n\t\t\n\t\treturn sb.toString();\n\t}",
"public static String getName(String methodName) {\n\t\tString[] splitMethodName = methodName.split(\"(?<=.)(?=\\\\p{Lu})\");\n\t\tString strMethodName = Arrays.toString(splitMethodName);\n\t\tstrMethodName = strMethodName.substring(1, strMethodName.length() - 1);\n\t\tString covertMethodName = strMethodName.replace(\",\", \"\").replace(\"verify \", \"\");\n\t\treturn covertMethodName;\n\t}",
"public String getTestMethodName() {\n return m_testMethodName;\n }",
"public String getMethod() {\n\t\treturn getParameter(\"method\");\n\t}",
"public SimpleName getName() {\n if (this.methodName == null) {\n // lazy init must be thread-safe for readers\n synchronized (this) {\n if (this.methodName == null) {\n preLazyInit();\n this.methodName = new SimpleName(this.ast);\n postLazyInit(this.methodName, NAME_PROPERTY);\n }\n }\n }\n return this.methodName;\n }",
"public String getMethod() {\n return method;\n }",
"public String getMethod() {\n return method;\n }",
"public String getMethod() {\n return method;\n }",
"public String getMethod()\n {\n if (averageRating == null) {\n return \"\";\n } else {\n return averageRating.getMethod();\n }\n }",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"public String getName() {\n return m_function.getName();\n }",
"public int getMethod(){\n return method;\n }",
"public abstract String[] getMethodNames();",
"public void setGetMethodName(String name) {\n m_getMethodName = name;\n }"
] | [
"0.8824914",
"0.87628996",
"0.87628996",
"0.87628996",
"0.87628996",
"0.8543785",
"0.8543785",
"0.8291258",
"0.8290031",
"0.8019511",
"0.7946902",
"0.7946902",
"0.79313284",
"0.79243344",
"0.7915453",
"0.79116535",
"0.79116535",
"0.78989947",
"0.78989947",
"0.7856308",
"0.7856308",
"0.7781425",
"0.77706146",
"0.7764265",
"0.77087456",
"0.7701518",
"0.76644886",
"0.7560101",
"0.75314504",
"0.7494344",
"0.74313164",
"0.74313164",
"0.7359504",
"0.73363924",
"0.7335151",
"0.72908235",
"0.72873175",
"0.72873175",
"0.7275735",
"0.7271193",
"0.7271193",
"0.726562",
"0.726562",
"0.71990335",
"0.71990335",
"0.71789527",
"0.717149",
"0.7112895",
"0.7040304",
"0.70386446",
"0.69806045",
"0.6939961",
"0.6932672",
"0.6896933",
"0.688605",
"0.6869686",
"0.6859392",
"0.6827939",
"0.6813442",
"0.6813442",
"0.6813442",
"0.6811311",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6774772",
"0.6763865",
"0.6756664",
"0.67426",
"0.6710452"
] | 0.0 | -1 |
Gets the Twitter user. | protected String getTwitterUser(final HttpServletRequest request,
final HttpServletResponse response)
{
return (String) request.getSession().getServletContext()
.getAttribute(ContextListener.TWITTER_USER_NAME);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}",
"public Twitter getTwitter() {\n\t\treturn twitter;\n\t}",
"public static String getUser() {\n return user;\n }",
"public final User getUser() {\t\r\n\t\treturn this.user;\r\n\t}",
"public static String getUser() {\r\n return user;\r\n }",
"public synchronized Twitter getTwitter() {\n\t\tif (this.twitter == null) {\n\t\t\tString username, password, apiRoot;\n\t\t\tboolean setDefault;\n\t\t\t/*\n\t\t\t * We get the username and password from the shared preference\n\t\t\t * object.\n\t\t\t */\n\t\t\tusername = this.prefs.getString(\"username\", \"\");\n\t\t\tpassword = this.prefs.getString(\"password\", \"\");\n\t\t\tapiRoot = this.prefs.getString(\"apiRoot\",\n\t\t\t\t\t\"http://yamba.marakana.com/api\");\n\t\t\tsetDefault = this.prefs.getBoolean(\"setDefault\", true);\n\n\t\t\tif (setDefault) {\n\t\t\t\tusername = \"student\";\n\t\t\t\tpassword = \"password\";\n\t\t\t\tapiRoot = \"http://yamba.marakana.com/api\";\n\t\t\t}\n\n\t\t\tif (!TextUtils.isEmpty(username) && !TextUtils.isEmpty(password)\n\t\t\t\t\t&& !TextUtils.isEmpty(apiRoot)) {\n\t\t\t\t// Create a twitter object\n\t\t\t\tthis.twitter = new Twitter(username, password);\n\t\t\t\tthis.twitter.setAPIRootUrl(apiRoot);\n\t\t\t\tLog.d(TAG, \"Create: \" + username + \" \" + password + \" \"\n\t\t\t\t\t\t+ apiRoot);\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tToast.makeText(YambaApplication.this,\n\t\t\t\t\t\t\"Problem with setting credentials\", Toast.LENGTH_LONG)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t}\n\t\treturn this.twitter;\n\t}",
"public User getUser() {\n\t\treturn this.user;\n\t}",
"public User getUser() {\n\t\treturn this.user;\n\t}",
"public static String getTwitterUsername(Context context) {\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_USERNAME, null);\n\t\t}",
"public User getUser(long id) {\n\t\tUser user = null;\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\n\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \" +\n\t\t\t \"PREFIX foaf: <http://xmlns.com/foaf/0.1/>\" +\n\t\t\t \"select * \" +\n\t\t\t \"where { \" +\n\t\t\t \t\"?user sweb:id \" + id + \".\" +\n\t\t\t \"} \\n \";\n\n\t Query query = QueryFactory.create(queryString);\n\t \n\t QueryExecution qe = QueryExecutionFactory.create(query, this.model);\n\t ResultSet results = qe.execSelect();\n\t \n\t while(results.hasNext()) {\n\t \tQuerySolution solution = results.nextSolution() ;\n\t Resource currentResource = solution.getResource(\"user\");\n\n\t user = this.buildUserFromResource(currentResource);\n\t \n\t user.setTweets(this.getTweetsByUserId(id));\n\t user.setVisited(this.getVenuesVisitedByUserId(id));\n\t user.setInContact(this.getInContactForUserId(id));\n\t }\n\t \n\t return user;\n\t}",
"public java.lang.String getUser() {\n return user;\n }",
"public SimpleUser getUser() {\n return user;\n }",
"@Override\n public DocumentUser getUser() {\n UserService userService = UserServiceFactory.getUserService();\n User user = userService.getCurrentUser();\n if (user != null){\n String email = user.getEmail();\n AuthenticationToken at = AuthenticationToken.getUserToken(email);\n if (at != null) {\n DocumentUser docUser = new DocumentUser();\n docUser.setToken(at.getPublicToken());\n docUser.setName(user.getNickname());\n docUser.setEmail(user.getEmail());\n docUser.setId(user.getUserId());\n return docUser;\n }\n }\n return null;\n }",
"public Optional<User> getUser(OAuthCredential credential) {\n\t\t// Validate Arguments\n\t\tAssert.notNull(credential, \"Please provide Twitch Credentials!\");\n\n\t\t// Endpoint\n\t\tString requestUrl = String.format(\"%s/user\", Endpoints.API.getURL());\n\t\tRestTemplate restTemplate = getTwitchClient().getRestClient().getPrivilegedRestTemplate(credential);\n\n\t\t// REST Request\n\t\ttry {\n\t\t\tLogger.trace(this, \"Rest Request to [%s]\", requestUrl);\n\t\t\tUser responseObject = restTemplate.getForObject(requestUrl, User.class);\n\n\t\t\treturn Optional.ofNullable(responseObject);\n\t\t} catch (RestException restException) {\n\t\t\tLogger.error(this, \"RestException: \" + restException.getRestError().toString());\n\t\t} catch (Exception ex) {\n\t\t\tLogger.error(this, \"Request failed: \" + ex.getMessage());\n\t\t\tLogger.trace(this, ExceptionUtils.getStackTrace(ex));\n\t\t}\n\n\t\treturn Optional.empty();\n\t}",
"public User getUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n return userRepository.findByEmail(auth.getName()).get();\n }",
"public final String getUser() {\n return username;\n }",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\r\n return user;\r\n }",
"public String getUser() {\n return this.user;\n }",
"public User getUser(){\r\n\t\treturn this.user;\r\n\t}",
"public User getUser(){\n\t\treturn this.user;\n\t}",
"public String getUser()\n {\n return this.user;\n }",
"public String getUser()\n {\n return this.user;\n }",
"public String getUser()\n {\n return this.user;\n }",
"public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n String userJson = sharedPreferences.getString(KEY_USER, null);\n User user = new Gson().fromJson(userJson, new TypeToken<User>(){}.getType());\n return user;\n }",
"synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic User getAuthenticatedUser()\r\n\t{\n\t\treturn userWpJauRestClientImpl.getUser().getUser();\r\n\t}",
"public String getUser() {\n\t\t\treturn user;\n\t\t}",
"java.lang.String getUser();",
"public String getUser() {\n\t\treturn user;\n\t}",
"public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}",
"public User getUser() {\n\t\treturn mUser;\n\t}",
"public String getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\r\n\t\treturn _userName;\r\n\t}",
"User getUser();",
"User getUser();",
"public User getUser() {\n return user;\n }",
"public User getUser() {\n return user;\n }",
"public User getUser() {\n return user;\n }",
"public User getUser() {\n return user;\n }",
"public User getUser() {\r\n return user;\r\n }",
"public BaseUser getUser() {\r\n\t\treturn user;\r\n\t}",
"UserWithPersistedAuth getUserWithToken();",
"ApplicationUser getUser();",
"@NonNull\n public User getUser() {\n return user;\n }",
"public User getUser() {\n\treturn user;\n }",
"public User getUser(){\n return this.getAccountController().getUser();\n }",
"public user getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return new user(\n sharedPreferences.getInt(KEY_ID, -1),\n sharedPreferences.getInt(KEY_NATIONAL_ID, -1),\n sharedPreferences.getString(KEY_FIRST_NAME, null),\n sharedPreferences.getString(KEY_SECOND_NAME, null),\n sharedPreferences.getString(KEY_EMAIL, null),\n sharedPreferences.getString(KEY_MOBILE_NUMBER, null),\n sharedPreferences.getString(KEY_REG_DATE, null),\n sharedPreferences.getString(KEY_dob, null),\n sharedPreferences.getString(KEY_address, null),\n sharedPreferences.getString(KEY_city, null),\n sharedPreferences.getString(KEY_country, null)\n );\n }",
"public User getUser() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n return mUser;\n }",
"public TokenUser findTokenUser() {\n\t\treturn securityContextService != null && securityContextService.getAuthentication() != null\n\t\t\t\t? (TokenUser) securityContextService.getAuthentication().getDetails()\n\t\t\t\t: null;\n\t}",
"public static User getLoggedUser(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"loggedUserPrefs\", 0);\n User user = (new Gson()).fromJson(prefs.getString(\"user\", null), User.class);\n return user;\n }",
"public User getUser(){\n\t\treturn user;\n\t}",
"public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return new User(\n sharedPreferences.getInt(AppConfig.ID, -1),\n sharedPreferences.getString(AppConfig.NAME, null),\n sharedPreferences.getString(AppConfig.EMAIL, null),\n sharedPreferences.getString(AppConfig.AGE, null),\n sharedPreferences.getString(AppConfig.GENDER, null),\n sharedPreferences.getString(AppConfig.ADDRESS, null)\n\n\n );\n }",
"private AuthenticatedUser getUser(AuthenticationContext context) {\n StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(context.getCurrentStep() - 1);\n return stepConfig.getAuthenticatedUser();\n }",
"@Nullable\n public User getUser() {\n return mUser;\n }",
"public String getUser()\n {\n return _user;\n }",
"public User getUser();",
"public String getUser() {\n if(user == null)\n return \"\"; \n return user;\n }",
"public frame.game.proto.User.UserInfo getUser() {\n return user_ == null ? frame.game.proto.User.UserInfo.getDefaultInstance() : user_;\n }",
"public frame.game.proto.User.UserInfo getUser() {\n return user_ == null ? frame.game.proto.User.UserInfo.getDefaultInstance() : user_;\n }",
"String getUser();",
"String getUser();",
"public User getUser() { return this.user; }",
"public com.lxd.protobuf.msg.result.user.User.User_ getUser() {\n return user_;\n }",
"public UserLogueado getUser() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n return new UserLogueado(\r\n sharedPreferences.getString(KEY_EMAIL, null),\r\n sharedPreferences.getString(KEY_TOKEN, null)\r\n );\r\n }",
"public Long getUser() {\n return user;\n }",
"@Override\n\tpublic IUser getUser() {\n\t\treturn getInnerObject().getUser();\n\t}",
"public static String getUser() {\n return annotation != null ? annotation.user() : \"Unknown\";\n }",
"public UserModel getUser() {\n return userRepository.findById(getUserID())\n .orElseThrow(() -> new ResourceNotFoundException(\"User not found with id: \" + getUserID()));\n }",
"public synchronized static User getUser() {\n return null;\n }",
"public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT_USER_DETAILS_ATTRIBUTE_KEY);\n if (currentUser == null) {\n return null;\n } else {\n return currentUser;\n }\n }",
"public User getUserEntity() {\n Authentication authentication = getAuthentication();\n if(authentication == null) {\n throw new AuthenticationCredentialsNotFoundException(\"No user is currently logged in.\");\n }\n return userDAO.getById(getUserInfo().getId());\n }",
"Twitter geTwitterInstance();",
"public User getUser(){\n return User.getUser(this.event.getAuthor());\n }",
"public User getMe() {\n try {\n GetMeResponse response = restTemplate.getForObject(methodUrl(\"getMe\"), GetMeResponse.class);\n\n if(response == null) {\n logger.warn(\"getMe null response\");\n return null;\n }\n\n if(!response.isOk()) {\n logger.warn(\"getMe error: {} - {}\", response.getErrorCode(), response.getDescription());\n return null;\n }\n\n return response.getResult();\n } catch(Exception e) {\n logger.error(\"getMe failed\", e);\n return null;\n }\n }",
"static public User getUser(HttpServletRequest request) {\n String accessToken = request.getParameter(\"access_token\");\n if (accessToken == null) {\n return null;\n } else {\n try {\n URL url = new URL(\n \"https://www.googleapis.com/oauth2/v1/tokeninfo\"\n + \"?access_token=\" + accessToken);\n\n Map<String, String> userData = mapper.readValue(\n new InputStreamReader(url.openStream(), \"UTF-8\"),\n new TypeReference<Map<String, String>>() {\n });\n if (userData.get(\"audience\") == null\n || userData.containsKey(\"error\")\n || !userData.get(\"audience\")\n .equals(Constants.CLIENT_ID)) {\n return null;\n } else {\n String email = userData.get(\"email\"),\n userId = userData.get(\"user_id\");\n User user = null;\n PersistenceManager pm = PMF.get().getPersistenceManager();\n try {\n user = pm.getObjectById(User.class, userId);\n } catch (JDOObjectNotFoundException ex) {\n user = new User(userId, email);\n pm.makePersistent(user);\n } finally {\n pm.close();\n }\n return user;\n }\n } catch (Exception ex) {\n System.err.println(ex.getMessage());\n return null;\n }\n }\n }",
"public ScrumzuUser getUser() {\n\t\treturn user;\n\t}",
"private void getUserData() {\n TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();\n AccountService statusesService = twitterApiClient.getAccountService();\n Call<User> call = statusesService.verifyCredentials(true, true, true);\n call.enqueue(new Callback<User>() {\n @Override\n public void success(Result<User> userResult) {\n //Do something with result\n\n //parse the response\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }\n\n public void failure(TwitterException exception) {\n //Do something on failure\n }\n });\n }",
"public com.lxd.protobuf.msg.result.user.User.User_ getUser() {\n if (userBuilder_ == null) {\n return user_;\n } else {\n return userBuilder_.getMessage();\n }\n }",
"@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}",
"public String getUser(){\n \treturn user;\n }",
"@Override\n public User getUser() {\n return user;\n }",
"@Override\n public User getUser() {\n return user;\n }",
"public java.lang.String getUser() {\n java.lang.Object ref = user_;\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 user_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public IUser getUser() {\n \t\treturn null;\n \t}",
"public frame.game.proto.User.UserInfo getUser() {\n if (userBuilder_ == null) {\n return user_ == null ? frame.game.proto.User.UserInfo.getDefaultInstance() : user_;\n } else {\n return userBuilder_.getMessage();\n }\n }",
"public frame.game.proto.User.UserInfo getUser() {\n if (userBuilder_ == null) {\n return user_ == null ? frame.game.proto.User.UserInfo.getDefaultInstance() : user_;\n } else {\n return userBuilder_.getMessage();\n }\n }",
"@Generated(hash = 1086511214)\n public User getUser() {\n Long __key = this.User_ID;\n if (user__resolvedKey == null || !user__resolvedKey.equals(__key)) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n UserDao targetDao = daoSession.getUserDao();\n User userNew = targetDao.load(__key);\n synchronized (this) {\n user = userNew;\n user__resolvedKey = __key;\n }\n }\n return user;\n }"
] | [
"0.6773586",
"0.6699177",
"0.6599599",
"0.6566446",
"0.65518343",
"0.6473979",
"0.64606124",
"0.64606124",
"0.64544445",
"0.6445757",
"0.6386377",
"0.6386332",
"0.63578606",
"0.63558304",
"0.635552",
"0.63293165",
"0.6318751",
"0.6318751",
"0.6318751",
"0.63103193",
"0.63103193",
"0.63103193",
"0.63103193",
"0.63103193",
"0.63103193",
"0.63100535",
"0.63100535",
"0.63100535",
"0.62913823",
"0.628863",
"0.6286526",
"0.627703",
"0.6274908",
"0.6274908",
"0.6274908",
"0.6269018",
"0.6217174",
"0.6215359",
"0.62116116",
"0.6211361",
"0.62101656",
"0.6206987",
"0.6206804",
"0.6193076",
"0.6193076",
"0.6183225",
"0.616429",
"0.616429",
"0.61520463",
"0.61520463",
"0.61520463",
"0.61520463",
"0.61378115",
"0.6136682",
"0.6136524",
"0.61349994",
"0.61307204",
"0.61235493",
"0.6118131",
"0.61119235",
"0.61075366",
"0.6103541",
"0.6099075",
"0.60878426",
"0.6072216",
"0.6069988",
"0.6067946",
"0.60489494",
"0.60484016",
"0.6047648",
"0.6041404",
"0.6041404",
"0.6031725",
"0.6031725",
"0.6020852",
"0.6019787",
"0.6012313",
"0.6007278",
"0.6001791",
"0.5997783",
"0.59955114",
"0.5992589",
"0.59833753",
"0.59788096",
"0.5975803",
"0.59581965",
"0.5922976",
"0.59202176",
"0.59180504",
"0.59076065",
"0.5891713",
"0.587893",
"0.58427626",
"0.5842515",
"0.5842515",
"0.58340675",
"0.5827426",
"0.58241075",
"0.58241075",
"0.58207875"
] | 0.73190266 | 0 |
Checks if there are any errors. | protected boolean errors()
{
return !errors.isEmpty();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasErrors();",
"boolean hasErrors();",
"boolean hadErrors();",
"public boolean hasError();",
"boolean hasError();",
"boolean hasError();",
"boolean hasError();",
"public boolean hasError() {\n\t\treturn results.getErrors().contains( \"ERROR\") ;\n\t}",
"@Override\r\n\tpublic boolean hasErrors() {\n\t\treturn hasErrors;\r\n\t}",
"public boolean hasErrors() {\n return !errors.isEmpty();\n }",
"public boolean hasErrors(){\n\t\treturn ! errorList.isEmpty();\n\t}",
"public boolean errorsFound() {\n return _errors.size() > 0;\n }",
"public boolean errorsFound() {\n return errorList.size() > 0;\n }",
"public boolean errors() {\n \treturn semantErrors != 0;\n }",
"public boolean hasError()\n {\n return errorBuffer.length() != 0;\n }",
"boolean hasErr();",
"public boolean containsErrors() {\n\t\treturn !errors.isEmpty();\n\t}",
"public boolean isError(){\r\n\t\tif(error!=0)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"@Override\r\n\tpublic boolean hasError() {\n\t\treturn false;\r\n\t}",
"public boolean hasErrors() {\n return hasErrors;\n }",
"public boolean hasMoreErrors() {\n return false;\n }",
"public boolean hasError() {\n\t\treturn hasERR;\n\t}",
"public boolean hasError()\n {\n return hasError;\n }",
"public boolean isInError()\r\n {\r\n return myCurrentState.equals(State.ERROR);\r\n }",
"public boolean proceedOnErrors() {\n return false;\n }",
"public boolean errorFound()\r\n\t{\r\n\t\t\r\n\t}",
"boolean isError();",
"public boolean hasError()\n {\n return data().containsKey(_ERROR);\n }",
"public synchronized boolean isErrored() {\n return error != null;\n }",
"public void checkError() {\n if (this.threadError != null) {\n throw new EncogError(this.threadError);\n }\n }",
"protected int checkForAllErrors(Order order) {\r\n int returnValue = checkIfGiftCardsAreBeingPurchased(order);\r\n \r\n if (returnValue == NO_ERRORS) {\r\n returnValue = checkGiftCardValues(order.getProfileId());\r\n }\r\n if (returnValue == NO_ERRORS) {\r\n returnValue = checkForDuplicateGiftCards(order);\r\n }\r\n if (returnValue == NO_ERRORS) {\r\n returnValue = checkAllCardsAppliedHaveZeroBalance();\r\n }\r\n \r\n return returnValue;\r\n }",
"public boolean hasError() {\r\n return \"\".equals(recentErrorCode) ? false : true;\r\n }",
"public boolean isSetErrors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ERRORS$4) != 0;\r\n }\r\n }",
"boolean hasErrormessage();",
"public boolean isSetErrors() {\n return this.errors != null;\n }",
"protected void VerifyUrlDoesntHaveAnError() {\n\t\tif (urlHasAnError())\n\t\t\tReports.logAMessage(LogStatus.ERROR, \"BasePage: URL has an error\");\n\t}",
"public boolean isError() {\r\n return textErrorIndex >= 0;\r\n }",
"public boolean isError() { return error; }",
"public boolean hasFailed ()\r\n {\r\n return exception_ != null;\r\n }",
"public boolean isError() {\n return _type == Type.ERROR;\n }",
"public boolean isSetErrorcount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(ERRORCOUNT$4) != null;\r\n }\r\n }",
"public boolean hasEntries(){\n\t\treturn ! errorList.isEmpty();\n\t}",
"public boolean isErrors() {\r\n return errors;\r\n }",
"public boolean hasErrorLog() {\n return result.hasErrorLog();\n }",
"@Override\n\tpublic boolean hasError() {\n\t\treturn super.hasError() || (answerCode != null && answerCode == GeneralAnswerCode.FAIL);\n\t}",
"public void correctErrors();",
"public boolean hasRecordErrors();",
"public boolean hasError() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"boolean documentFreeOfErrors();",
"boolean hasErrorMessage();",
"boolean hasErrorMessage();",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"public boolean isError() {\n\t\treturn error;\n\t}",
"public boolean isError(){\n\t\treturn isError;\n\t}",
"private static boolean hasErrFound() {\r\n\t\tsynchronized (workerLock) {\r\n\t\t\treturn (errFoundByThread != -1);\r\n\t\t}\r\n\t}",
"public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isError() {\n\t\tif (response.containsKey(\"Result\")) {\n\t\t\tif (response.get(\"Result\").equals(\"E\") || response.get(\"Result\").equals(\"MISSING\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasError() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"boolean hasErrmsg();",
"public boolean isError() {\n return error;\n }",
"protected void checkComponents() throws Exception {\r\n if (InitialData == null) {\r\n throw new Exception(\"Initial data not set.\");\r\n }\r\n if (Oracle == null) {\r\n throw new Exception(\"Oracle not set.\");\r\n }\r\n if (SearchSpace == null) {\r\n throw new Exception(\"Search space not set.\");\r\n }\r\n if (ObjectiveFunction == null) {\r\n throw new Exception(\"Ranker not set.\");\r\n }\r\n }",
"public static void error()\r\n {\r\n valid=false;\r\n\r\n }",
"public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isError() {\n return code >= 400;\n }",
"public boolean isError() {\n\t\treturn packet.isError();\n\t}",
"public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }",
"private boolean checkFaults() throws Exception {\n iLogger.info( \"Processing faults.\" );\n\n ResultSet lFaultResultSet = null;\n PreparedStatement lStatement = null;\n boolean lFailureFound = false;\n\n try {\n Class.forName( \"oracle.jdbc.OracleDriver\" );\n\n lStatement = iConnection.prepareStatement( getQuery( FAULT_QUERY_FILE ) );\n lFaultResultSet = lStatement.executeQuery();\n StringBuilder lQueryResults = new StringBuilder();\n\n // if an error is found, print results and toggle error boolean\n if ( lFaultResultSet.next() ) {\n\n iLogger.error( \"**** Fault validation Error Found: ****\" );\n lFailureFound = true;\n\n do {\n // collect query results for current row\n lQueryResults.append( \"TABLE: \" + lFaultResultSet.getString( \"TABLE\" ) + \", \" );\n lQueryResults\n .append( \"ASSMBL_CD: \" + lFaultResultSet.getString( \"ASSMBL_CD\" ) + \", \" );\n lQueryResults\n .append( \"PART_NO_OEM: \" + lFaultResultSet.getString( \"PART_NO_OEM\" ) + \", \" );\n lQueryResults\n .append( \"ATA_SYS_CD: \" + lFaultResultSet.getString( \"ATA_SYS_CD\" ) + \", \" );\n lQueryResults\n .append( \"RESULT_CD: \" + lFaultResultSet.getString( \"RESULT_CD\" ) + \", \" );\n lQueryResults\n .append( \"USER_DESC: \" + lFaultResultSet.getString( \"USER_DESC\" ) + \";\" );\n\n iLogger.error( lQueryResults );\n\n // clear StringBuilder for next result\n lQueryResults.setLength( 0 );\n\n } while ( lFaultResultSet.next() );\n } else {\n iLogger.info( \"No fault validation errors found.\" );\n lFailureFound = false;\n }\n\n } catch ( SQLException e ) {\n iLogger.error( e.toString() );\n\n // close Statement and ResultSet\n } finally {\n try {\n if ( lStatement != null ) {\n lStatement.close();\n }\n } catch ( Exception e ) {\n iLogger.error( e.toString() );\n }\n\n try {\n if ( lFaultResultSet != null ) {\n lFaultResultSet.close();\n }\n } catch ( Exception e ) {\n iLogger.error( e.toString() );\n }\n }\n return lFailureFound;\n\n }",
"default boolean checkForError(HttpResponse response) {\n parameters.clear();\n\n\n if (response.getStatusCode() == 500) {\n System.out.println(\"Internal server error\");\n return true;\n } else if (response.getStatusCode() == 400) {\n System.out.println(\"Your input was not as expected. Use \\\"help\\\"-command to get more help.\");\n System.out.println(response.getBody());\n return true;\n } else if (response.getStatusCode() == 404) {\n System.out.println(\"The resource you were looking for could not be found. Use \\\"help\\\"-command to get more help.\");\n }\n\n return false;\n\n }",
"public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }",
"private void check() {\n Path pathroot = getPath();\n // check the path is file or directory\n checkFileOrDirectory(pathroot);\n }",
"public boolean isErrored() {\n return errored;\n }",
"boolean hasErrcode();",
"boolean error() {\n return error;\n }",
"@Override\n public boolean hasErrorResults() {\n return false;\n }",
"public boolean errorState();",
"public Boolean hasErrors() {\n if ((this.hasErrors == null)) {\n this.hasErrors = Boolean.valueOf(this.hasIssuesOfSeverity(Severity.ERROR));\n }\n return this.hasErrors;\n }",
"private boolean checkForErrors(String response) {\n\t\treturn response.contains(ResponseType.ERROR.toString()) && response.endsWith(\".\");\n\t}",
"public boolean applyErrors() {\n\t\t/*\n\t\tdouble erreur = Math.random(); // on genere un nombre entre 0 et 1\n\t\tSystem.out.print(this.error*erreur + \"\\n\");\n\t\tif (erreur * this.error < 0.07) { // on multiplie l'erreur aleatoire par l'error de la sonde (qui sera aussi compris entre 0 et 1)\n\t\t\treturn true;\t\t\t\t// si l'erreur finle (produit des deux erreur) est inferieur a 20%\n\t\t}\n\t\treturn false;\n\t\t*/\n\t\treturn true;\n\t}",
"private void checkStatus()\n {\n // If the last command failed\n if(!project.getLastCommandStatus())\n {\n view.alert(\"Error: \" + project.getLastCommandStatusMessage());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCommand lastCmd = project.getLastCommand();\n\t\t\tif (lastCmd != null && lastCmd.hasOptionalState())\n\t\t\t{\n\t\t\t\tview.loadFromJSON(lastCmd.getOptionalState());\n\t\t\t\tview.onUpdate(project.getProjectSnapshot(), false);\n\t\t\t}\n\t\t}\n }",
"public boolean urlHasAnError() {\n\t\tString url = driver.getCurrentUrl();\n\t\tboolean error = false;\n\t\t\n\t\tif (url.contains(\"ERROR\"))\n\t\t\terror = true;\n\t\treturn error;\n\t}",
"public boolean isApiError() {\n return this.getCode() != null && this.getCode() > 0;\n }",
"public int getErrorCount() {\n return error_.size();\n }",
"public boolean hasSoftErrors() {\n return !softErrors.isEmpty();\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}",
"private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }",
"public boolean hasFieldErrors();",
"@Override\n public boolean hasErrorMessage() {\n return errorMessage != null;\n }",
"boolean isError() {\n if (firstChar == '5' || firstChar == '4') {\n return true;\n }\n\n return false;\n }",
"public void checkError() throws IOException{\n if (transactionFailure == null) {\n FacesContext.getCurrentInstance().getExternalContext().\n redirect(\"converter.xhtml\");\n }\n }",
"public boolean hasFailed() {\n\t\treturn failed;\n\t}",
"public boolean validate() throws Exception {\n return true;\n }",
"public boolean validate() throws Exception {\n return true;\n }",
"int getErrorCount();",
"private void validate() throws JShellException {\r\n // cmd shud have no args\r\n if (!this.hasValidArgs()) {\r\n String msg = \"ERROR: popd: does not accept any arguments\\n\";\r\n throw new JShellException(msg);\r\n }\r\n // directory stack shudnt be empty\r\n if (this.getShell().getDirStack().size() < 1) {\r\n String msg = \"ERROR: popd: cannot popd on empty stack\\n\";\r\n throw new JShellException(msg);\r\n }\r\n }",
"public boolean isError(int i);",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"public static boolean isErrorEnabled() {\n\n return errorLogger.isErrorEnabled();\n }"
] | [
"0.79171723",
"0.786163",
"0.78061",
"0.7672539",
"0.7559598",
"0.7559598",
"0.7559598",
"0.74922085",
"0.7444641",
"0.7420365",
"0.7367534",
"0.73522145",
"0.7334491",
"0.7185455",
"0.7176441",
"0.7150559",
"0.7119236",
"0.71097887",
"0.70836604",
"0.7069981",
"0.70257634",
"0.7016478",
"0.7014714",
"0.70040435",
"0.6979644",
"0.6953349",
"0.691219",
"0.69079936",
"0.6893537",
"0.688629",
"0.68758917",
"0.6738174",
"0.67326903",
"0.66301167",
"0.6571918",
"0.6563188",
"0.6482716",
"0.64808875",
"0.64111364",
"0.64100164",
"0.6401318",
"0.6394691",
"0.6391393",
"0.63855475",
"0.6381413",
"0.63713187",
"0.63678145",
"0.63263166",
"0.63123405",
"0.6312037",
"0.6312037",
"0.62971634",
"0.62941027",
"0.6292023",
"0.627225",
"0.6269643",
"0.6269643",
"0.6266691",
"0.6259304",
"0.62544614",
"0.623454",
"0.6229921",
"0.6218887",
"0.61998886",
"0.61998886",
"0.6191733",
"0.61880285",
"0.6152312",
"0.6146502",
"0.61377907",
"0.61303496",
"0.61296093",
"0.60996044",
"0.6096722",
"0.60876536",
"0.6086029",
"0.60828465",
"0.6074719",
"0.60666144",
"0.60458535",
"0.6034737",
"0.6011527",
"0.6011086",
"0.6003709",
"0.5995897",
"0.59886616",
"0.59721667",
"0.59712833",
"0.59700394",
"0.59660697",
"0.59640634",
"0.59597355",
"0.5942095",
"0.5933184",
"0.5933184",
"0.59321743",
"0.5931659",
"0.5931252",
"0.5922069",
"0.59171104"
] | 0.74467885 | 8 |
TODO Autogenerated method stub | @Override
public Object getItem(int position) {
return data.get(position);
} | {
"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 long getItemId(int position) {
return position;
} | {
"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 |
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_donors_list, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n 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 // 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 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 int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n 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\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 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\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\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\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.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577",
"0.734109",
"0.73295504",
"0.7327726",
"0.73259085",
"0.73188347",
"0.731648",
"0.73134047",
"0.7303978",
"0.7303978",
"0.7301588",
"0.7298084",
"0.72932935",
"0.7286338",
"0.7283324",
"0.72808945",
"0.72785115",
"0.72597474",
"0.72597474",
"0.72597474",
"0.725962",
"0.7259136",
"0.7249966",
"0.7224023",
"0.721937",
"0.7216621",
"0.72045326",
"0.7200649",
"0.71991026",
"0.71923256",
"0.71851367",
"0.7176769",
"0.7168457",
"0.71675026",
"0.7153402",
"0.71533287",
"0.71352696",
"0.71350807",
"0.71350807",
"0.7129153",
"0.7128639",
"0.7124181",
"0.7123387",
"0.7122983",
"0.71220255",
"0.711715",
"0.711715",
"0.711715",
"0.711715",
"0.7117043",
"0.71169263",
"0.7116624",
"0.71149373",
"0.71123946",
"0.7109806",
"0.7108778",
"0.710536",
"0.7098968",
"0.70981944",
"0.7095771",
"0.7093572",
"0.7093572",
"0.70862055",
"0.7082207",
"0.70808214",
"0.7080366",
"0.7073644",
"0.7068183",
"0.706161",
"0.7060019",
"0.70598614",
"0.7051272",
"0.70374316",
"0.70374316",
"0.7035865",
"0.70352185",
"0.70352185",
"0.7031749",
"0.703084",
"0.7029517",
"0.7018633"
] | 0.0 | -1 |
Attempted to merge sorted arrays. Merely encapsulates within a FHbinheap | public static void mergeSortedArrays(final int MEM_SIZE, ArrayList<Integer []> inputChunks, HeapTuple[] minHeap, String outfile, final boolean ENABLE_DEBUG){
FileOutputStream out;
try{
out = new FileOutputStream(outfile);
}
catch (FileNotFoundException e){
System.err.println(e);
return;
}
PrintWriter sortedFiles = new PrintWriter(out, true);
int tempLength = 0;
FHbinHeap<Integer> heap = new FHbinHeap<>();
for (int i = 0; i < inputChunks.size(); i++) {
Integer[] temp = inputChunks.get(i).clone();
for(int j = 0; j < temp.length; j++){
//Integer[] temp = inputChunks.get(i).clone();
//System.out.print(temp[j] + ",");
int hi = temp[j];
heap.insert(hi);
}
tempLength += temp.length;
}
System.out.println();
for(int i = 0; i < tempLength; i++){
int removal = heap.remove();
System.out.print(removal + ",");
sortedFiles.print(removal + ",");
}
sortedFiles.close();
/* FAILED CODE
Due to our sorting of the arrays, the minimum of the entire set must be the minimum of the set of the first element for all chunks
By adding an offset to the array whose
FHbinHeap<HeapTuple> metaHeap = null;
HeapTuple[] heapElement = null;
// Probably should just be a FHbinheap
for (int i = 0; i < inputChunks.size(); i++) {
for (int j = 0; j < MEM_SIZE; i++) {
heapElement[i] = new HeapTuple(inputChunks.get(i)[j], i, j);
metaHeap.insert(heapElement[i]);
System.out.println(metaHeap.remove());
//sortedFiles.println(metaHeap.remove());
}
}
*/
//First MEM_SIZE minima, no order
/*/*
int removed = 0;
int [] arrayShift = new int[MEM_SIZE];
//int innerIndex = 0;
int tempLength = 0;
int tempMin = 0;
int tempMinIndex = 0;
FHbinHeap<Integer> heap = new FHbinHeap<>();
for (int j = 0; j < 5; j++) {
//System.out.println(arrayShift[0] + "ARRAYSHIFT");
for (int i = 0; i < inputChunks.size(); i++) {
//FHbinHeap<Integer> heap = new FHbinHeap<>();
Integer[] temp = inputChunks.get(i).clone();
//System.out.println(temp[arrayShift[i]] + ",");
if (temp[arrayShift[i]] < tempMin) {
tempMin = temp[arrayShift[i]];
tempMinIndex = i;
}
for(int j = arrayShift[i]; j < temp.length; j++){
//Integer[] temp = inputChunks.get(i).clone();
System.out.print(temp[j] + ",");
//int hi = temp[j];
//heap.insert(hi);
}
tempLength += temp.length;
heap.insert(temp[arrayShift[i]]);
//System.out.print(temp[arrayShift[i]]+ ",");
//int heapRemove = heap.remove();
if (i == inputChunks.size() - 1) {
removed = heap.remove();
System.out.println();
System.out.println(removed + ",MINIMUM");
arrayShift[tempMinIndex] = (arrayShift[tempMinIndex] + 1);
}
}
}
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mergesort()\n { sort(this.heap, 0, heap.size()-1);\n }",
"private void merge() {\n for (int i = low; i<high; i++){\n temparray[i]=nums[i];\n }\n\n int i = low;\n int j = middle;\n //index of the original array for which we are making compare\n int index = low;\n //copy the smallest from the left and right partition to temp\n while ((i<middle)&&(j<high)){\n if(temparray[i]<=temparray[j]){\n nums[index]=temparray[i];\n i++;\n }\n else {\n nums[index]=temparray[j];\n j++;\n }\n index++;\n }\n // copy the rest of the the left side\n while (i<middle){\n nums[index]= temparray[i];\n i++;\n index++;\n }\n //and the right\n while (j<high){\n nums[index]=temparray[j];\n j++;\n index++;\n }\n\n }",
"private static void mergeSort(int[] attr, int low, int hight) {\n\t\t\n\t}",
"private static int[] mergeSortedArray(int[] a, int[] b){\n int i = a.length -1;\n for(int j = 3, k = 3, x=0; ( (j >= 0) && (k >= 0)) ; x++){\n\n if(a[j] > b[k]){\n a[i] = a[j];\n a[j] = 0;\n --j;\n --i;\n\n } else{\n a[i] = b[k];\n --k;\n --i;\n }\n\n if(j == -1 ) // this condition worked\n j = 0;\n }\n\n return a;\n\n }",
"private static Node binomialHeapMerge(BinomialHeap h1, BinomialHeap h2) {\n\t\t\n\t\t// checking for null values\n\t\tif(h1.head == null)\n\t\t\treturn h2.head;\n\t\tif(h2.head == null)\n\t\t\treturn h1.head;\n\t\t\n\t\t// initialize pointers\n\t\t// initialize the first pointer based on smallest node in both heaps\n\t\tNode first = null;\n\t\tNode curr = null;\n\t\tNode currh1 = h1.head;\n\t\tNode currh2 = h2.head;\n\t\tif (currh1.degree < currh2.degree) { \n first = currh1;\n currh1 = currh1.rightSibling;\n }\n else {\n \tfirst = currh2;\n currh2 = currh2.rightSibling;\n }\n\t\t\n\t\t// loop over remaining values by attaching the smallest degree element\n\t\t// one at a time until one of the pointers becomes null\n\t\tcurr = first;\n\t\twhile (currh1!=null && currh2!=null) {\n\t if (currh1.degree < currh2.degree) { \n\t curr.rightSibling = currh1;\n\t currh1 = currh1.rightSibling;\n\t }\n\t else {\n\t curr.rightSibling = currh2;\n\t currh2 = currh2.rightSibling;\n\t }\n\t \n\t curr = curr.rightSibling;\n\t }\n\t \n\t\t// attach the remaining of the other list to current list's right\n\t if (currh1!=null)\n\t curr.rightSibling = currh1;\n\t else\n\t curr.rightSibling = currh2;\n\n\t //return the head of newly formed list of heaps\n\t return first;\n\t}",
"public void merge(paintIntegers[] arr, int lidx, int midx, int ridx){\n int leftn = midx - lidx + 1;\n int rightn = ridx - midx;\n\n //instantiating the left and right arrays\n int Left[] = new int [leftn];\n int Right[] = new int [rightn];\n\n //copies the data from original to the left and right\n for (int i=0; i < leftn; ++i) {\n Left[i] = arr[lidx + i].val;\n }\n for (int j=0; j < rightn; ++j) {\n Right[j] = arr[midx + 1 + j].val;\n }\n\n //merges the two arrays and updates the original array\n //initializes leftIndex and rightIndex to iterate over the left and right arrays\n //if it is added to the original array, then where it came from, it would increment\n int leftIndex = 0;\n int rightIndex = 0;\n int k = lidx; //to properly align where the elements to go, left\n //System.out.println(k);\n //while it hasnt gone through all the elements in the left and right array\n //between the two arrays check which one is lowest, and then updates original array\n while (leftIndex < leftn && rightIndex < rightn)\n {\n if (Left[leftIndex] <= Right[rightIndex])\n {\n arr[k].val = Left[leftIndex];\n sorting.add(paintIntegers.deepCopy(arr));//adds current array to list\n leftIndex++;\n }\n else\n {\n arr[k].val = Right[rightIndex];\n sorting.add(paintIntegers.deepCopy(arr));//adds current array to list\n rightIndex++;\n }\n k++;\n }\n //if there are some left on the left array then just adds to original array\n //possible because all the elements in right array have been added\n //all thats left is the sorted elements from the left array\n while (leftIndex < leftn)\n {\n arr[k].val = Left[leftIndex];\n sorting.add(paintIntegers.deepCopy(arr));//adds current array to list\n leftIndex++;\n k++;\n }\n //same explanation as above but with the right array\n while (rightIndex < rightn)\n {\n arr[k].val = Right[rightIndex];\n sorting.add(paintIntegers.deepCopy(arr));//adds current array to list\n rightIndex++;\n k++;\n }\n }",
"@Test(timeout = SHORT_TIMEOUT)\n public void testTinyMergeSort() {\n //size-0 arr\n toSort = new IntPlus[0];\n sortedInts = cloneArr(toSort);\n Sorting.mergeSort(sortedInts, comp);\n\n assertArrayEquals(toSort, sortedInts); //Sort can't rearrange anything\n\n //size-1 arr\n toSort = new IntPlus[1];\n toSort[0] = new IntPlus(42);\n sortedInts = cloneArr(toSort);\n Sorting.mergeSort(sortedInts, comp);\n\n assertArrayEquals(toSort, sortedInts); //Sort can't rearrange anything\n }",
"private void merge(Comparable[] array, Comparable[] aux, int low, int high) {\n if (low >= high) return;\n\n int mid = (low + high) / 2;\n // Copy to aux\n for (int i = low; i <= high; i++) {\n aux[i] = array[i];\n }\n\n int i = low;\n int j = mid + 1;\n\n for (int k = low; k <= high; k++) {\n if (i > mid) array[k] = aux[j++];\n else if (j > high) array[k] = aux[i++];\n else if (aux[i].compareTo(aux[j]) <= 0) array[k] = aux[i++]; // <= makes it stable!!\n else array[k] = aux[j++];\n }\n }",
"public static int[] mergeSort(int[] arr, int lo, int hi) {\n //write your code here\n if(lo < hi) {\n int mid = (lo+hi)/2;\n int[] lft = mergeSort(arr, lo, mid);\n int[] rgt = mergeSort(arr, mid+1, hi);\n int[] res = mergeTwoSortedArrays(lft, rgt);\n return res;\n }\n return new int[]{arr[lo]}; // if(lo==hi)\n}",
"public static MinBinaryheap merge (MinBinaryheap heap1, MinBinaryheap heap2) {\n\n int newSize = heap1.getHeapsize() + heap2.getHeapsize();\n MinBinaryheap mergeHeap = new MinBinaryheap(newSize);\n\n int i = 0;\n int j = 0;\n int k = 0;\n\n while (i < newSize) {\n\n if (j <= heap1.getHeapsize() - 1) {\n //System.out.println (\"i = \" + i + \" j= \" + j + \" \");\n mergeHeap.array[i] = heap1.array[j];\n mergeHeap.addHeapsize();\n i++;\n j++;\n\n } else {\n //System.out.println (\"i = \" + i + \" k= \" + k + \" \");\n\n mergeHeap.array[i] = heap2.array[k];\n mergeHeap.addHeapsize();\n i++;\n k++;\n }\n }\n\n i = newSize - 1;\n\n while (i <= 0) {\n mergeHeap.minHeapify(i);\n i--;\n }\n return mergeHeap;\n }",
"private static void merge(Comparable[] a, int[] index, int[] aux, int lo, int mid, int hi){\n for(int k=lo;k<=hi;k++){\n aux[k]=index[k];\n }\n int i=lo,j=mid+1;\n for(int k=lo;k<=hi;k++){\n if(i>mid) index[k]=aux[j++];\n else if(j>hi) index[k]=aux[i++];\n else if(less(a[aux[j]],a[aux[i]])) index[k]=aux[j++];\n else index[k]=aux[i++];\n }\n }",
"private void mergesort(int[] array) {\n\t\t\n\t}",
"private void merge(ArrayList<Integer> arrayList, int p, int q, int r){\n ArrayList<Integer> lowHalf = new ArrayList<>();\r\n ArrayList<Integer> topHalf = new ArrayList<>();\r\n\r\n int k = p;\r\n int i;\r\n int j;\r\n\r\n //Values from original array entered into the new arrays\r\n for (i = 0; k <= q; i++, k++) {\r\n lowHalf.add(i, arrayList.get(k));\r\n }\r\n for (j = 0; k <= r; j++, k++) {\r\n topHalf.add(j, arrayList.get(k));\r\n }\r\n\r\n\r\n k = p;\r\n i = 0;\r\n j = 0;\r\n\r\n\r\n while (i < lowHalf.size() && j < topHalf.size()) {\r\n if (lowHalf.get(i) < topHalf.get(j)) {\r\n arrayList.set(k, lowHalf.get(i));\r\n i++;\r\n } else {\r\n arrayList.set(k, topHalf.get(j));\r\n j++;\r\n }\r\n k++;\r\n }\r\n\r\n while (i < lowHalf.size()) {\r\n arrayList.set(k, lowHalf.get(i));\r\n k++;\r\n i++;\r\n }\r\n while (j < topHalf.size()) {\r\n arrayList.set(k, topHalf.get(j));\r\n k++;\r\n j++;\r\n }\r\n }",
"public static void merge(Value[] arr, int low, int high) {\r\n int mid = low + (high - low) / 2; // the mid-point\r\n // Merge the two \"halves\" into a new array merged\r\n Value[] merged = new Value[high - low];\r\n int low_i = low;\r\n int upp_i = mid;\r\n for (int mer_i = 0; mer_i < merged.length; mer_i++) {\r\n if (low_i == mid) {\r\n // We already put all elements from the lower half in their\r\n // right place, so just put all the elements from the upper half\r\n // in their place, and be done.\r\n while (upp_i < high) {\r\n merged[mer_i] = arr[upp_i];\r\n upp_i++;\r\n mer_i++;\r\n }\r\n break;\r\n } else if (upp_i == high) {\r\n // We already put all elements from the upper half in their\r\n // right place, so just put all the elements from the lower half\r\n // in their place, and be done.\r\n while (low_i < mid) {\r\n merged[mer_i] = arr[low_i];\r\n low_i++;\r\n mer_i++;\r\n }\r\n double x = 0.5;\r\n for (int i = 0; i < merged.length; i++) {\r\n merged[i].draw(x, 0);\r\n }\r\n break;\r\n } else if (arr[low_i].getValue() < arr[upp_i].getValue()) { // when comparing objects, use arr[low_i].compareTo(arr[upp_i) < 0\r\n merged[mer_i] = arr[low_i];\r\n low_i++;\r\n } else {\r\n merged[mer_i] = arr[upp_i];\r\n upp_i++;\r\n }\r\n }\r\n // Copy the elements of merged back into arr in the right place.\r\n for (int i = 0; i < merged.length; i++)\r\n arr[low + i] = merged[i];\r\n }",
"public static void Mergesort(int[]data,int[]storageA,int[]storageB){\n int length=data.length;\n while (length>8){\n for(int i=0;i<data.length/2;i++){\n storageA[i]=data[i];\n }\n int index=0;\n for(int i=data.length/2;i<data.length;i++){\n storageB[index]=data[i];\n index++;\n }\n int[]temp1=new int[storageA.length/2];\n int[]temp2=new int[storageA.length-temp1.length];\n int[]temp3=new int[storageB.length/2];\n int[]temp4=new int[storageB.length-temp3.length];\n Mergesort(storageA,temp1,temp2);\n Mergesort(storageB,temp3,temp4);\n\n merge(data,storageA,storageB);\n // System.out.println(Arrays.toString(data));\n length=8;\n }\n insertion(data);\n\n // System.out.println(Arrays.toString(storageA));\n //System.out.println(Arrays.toString(storageB));\n //data=merge(storageA,storageB,0,1);\n }",
"private static int[] merge( int[] a, int[] b ) \n {\n\tint[] c = new int[a.length+b.length];\n\n\tint x=0;\n\tint y=0;\n\tint z=0;\n\n\twhile (x < a.length || y < b.length){\n\t if (x>=a.length) {\n\t\tc[z]=b[y];\n\t\ty++;\n\t }\n\t else if (y>=b.length) {\n\t\tc[z]=a[x];\n\t\tx++;\n\t }\n\n\t else if (a[x] >= b[y]) {\n\t\tc[z] = b[y];\n\t\ty++;\t\t\n\t }\n\t else if (a[x] < b[y]) {\n\t\tc[z] = a[x];\n\t\tx++;\t\t\n\t }\n\t z++;\n\t}\n\treturn c;\n\n }",
"private static void mergeSortInternally(int[] a, int low, int high) {\n\n if (low >= high) {\n return;\n }\n int mid = low + (high - low) / 2;\n mergeSortInternally(a, low, mid);\n mergeSortInternally(a, mid + 1, high);\n System.out.println(\"low:\" + low + \", mid:\" + mid + \", high:\" + high);\n merge(a, low, mid, high);\n }",
"void merge(int []arr,int low, int mid, int high){\n int n1 = mid-low+1;\n int n2 = high-mid; //high - (mid+1)+1\n\n //create temp arrays\n int temp1[] = new int[n1];\n int temp2[] = new int[n2];\n\n //copy data to temp arrays\n for(int i=0;i<n1;i++){\n temp1[i] = arr[low+i];\n }\n for(int i=0;i<n2;i++){\n temp2[i] = arr[mid+1+i];\n }\n\n //Merge the temp arrays\n int i=0, j=0,k=low;\n while(i<n1 && j <n2){\n if(temp1[i]<temp2[j]){\n arr[k++] = temp1[i++];\n }else{\n arr[k++] = temp2[j++];\n }\n }\n\n //copy remaining elements\n while(i<n1){\n arr[k++]= temp1[i++];\n }\n while(j<n2){\n arr[k++] = temp2[j++];\n }\n }",
"private static <T extends Comparable,S> void mergeSort(T[] src, S[] src2,\n\t\t\tT[] dest,\n\t\t\tS[] dest2,\n\t\t\tint low,\n\t\t\tint high,\n\t\t\tint off) {\n\t\tint length = high - low;\n\n\t\t// Insertion sort on smallest arrays\n\t\tif (length < INSERTIONSORT_THRESHOLD) {\n\t\t\tfor (int i=low; i<high; i++)\n\t\t\t\tfor (int j=i; j>low &&\n\t\t\t\t\t\tdest[j-1].compareTo(dest[j])>0; j--)\n\t\t\t\t\tswap(dest,dest2, j, j-1);\n\t\t\treturn;\n\t\t}\n\n\t\t// Recursively sort halves of dest into src\n\t\tint destLow = low;\n\t\tint destHigh = high;\n\t\tlow += off;\n\t\thigh += off;\n\t\tint mid = (low + high) >>> 1;\n\t\tmergeSort(dest, dest2, src, src2,low, mid, -off);\n\t\tmergeSort(dest, dest2, src, src2, mid, high, -off);\n\n\t\t// If list is already sorted, just copy from src to dest. This is an\n\t\t// optimization that results in faster sorts for nearly ordered lists.\n\t\tif (src[mid-1].compareTo(src[mid]) <= 0) {\n\t\t\tSystem.arraycopy(src, low, dest, destLow, length);\n\t\t\tSystem.arraycopy(src2, low, dest2, destLow, length);\n\t\t\treturn;\n\t\t}\n\n\t\t// Merge sorted halves (now in src) into dest\n\t\tfor(int i = destLow, p = low, q = mid; i < destHigh; i++) {\n\t\t\tif (q >= high || p < mid && src[p].compareTo(src[q])<=0) {\n\t\t\t\tdest2[i] = src2[p];\n\t\t\t\tdest[i] = src[p++];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdest2[i] = src2[q];\n\t\t\t\tdest[i] = src[q++];\n\t\t\t}\n\t\t}\n\t}",
"public static void mergesort(int[]data){\n if (data.length <= 1)\n return;\n mergesortH(data, 0, data.length - 1);\n \n }",
"private static int[] merge( int[] a, int[] b )\n {\n int[] retList = new int[a.length + b.length];\n\t int aPos = 0, bPos = 0;\n\t for(int x = 0; x < retList.length; x ++) {\n\t\t if(aPos < a.length && bPos < b.length) {\n\t\t\t if(a[aPos] < b[bPos]) {\n\t\t\t\t retList[x] = a[aPos];\n\t\t\t\t aPos ++;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t retList[x] = b[bPos];\n\t\t\t\t bPos ++;\n\t\t\t }\n\t\t }\n\t\t else if(aPos < a.length) {\n\t\t\t retList[x] = a[aPos];\n\t\t\t aPos ++;\n\t\t }\n\t\t else {\n\t\t\t retList[x] = b[bPos];\n\t\t\t bPos ++;\n\t\t }\n\t }\n return retList;\n }",
"public static void merge(Integer[] gArray, int low, int mid1, int mid2, int high, Integer[] destArray) {\n\t\tint i = low, j = mid1, k = mid2, l = low;\n// escoje el más pequeño de los más pequeños en los\n//tres rangos\n\t\twhile ((i < mid1) && (j < mid2) && (k < high)) {\n\t\t\tif (gArray[i].compareTo(gArray[j]) < 0) {\n\t\t\t\tif (gArray[i].compareTo(gArray[k]) < 0) {\n\t\t\t\t\tdestArray[l++] = gArray[i++];\n\t\t\t\t} else {\n\t\t\t\t\tdestArray[l++] = gArray[k++];\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif (gArray[j].compareTo(gArray[k]) < 0) {\n\t\t\t\t\tdestArray[l++] = gArray[j++];\n\t\t\t\t} else {\n\t\t\t\t\tdestArray[l++] = gArray[k++];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile ((i < mid1) && (j < mid2)) {\n\t\t\tif (gArray[i].compareTo(gArray[j]) < 0) {\n\t\t\t\tdestArray[l++] = gArray[i++];\n\t\t\t} else {\n\t\t\t\tdestArray[l++] = gArray[j++];\n\t\t\t}\n\t\t}\n\t\twhile ((j < mid2) && (k < high)) {\n\t\t\tif (gArray[j].compareTo(gArray[k]) < 0) {\n\t\t\t\tdestArray[l++] = gArray[j++];\n\t\t\t} else {\n\t\t\t\tdestArray[l++] = gArray[k++];\n\t\t\t}\n\t\t}\n\t\twhile ((i < mid1) && (k < high)) {\n\t\t\tif (gArray[i].compareTo(gArray[k]) < 0) {\n\t\t\t\tdestArray[l++] = gArray[i++];\n\t\t\t} else {\n\t\t\t\tdestArray[l++] = gArray[k++];\n\t\t\t}\n\t\t}\n\t\twhile (i < mid1) {\n\t\t\tdestArray[l++] = gArray[i++];\n\t\t}\n\t\twhile (j < mid2) {\n\t\t\tdestArray[l++] = gArray[j++];\n\t\t}\n\t\twhile (k < high) {\n\t\t\tdestArray[l++] = gArray[k++];\n\t\t}\n\t}",
"private static int[] mergeSortedArrays(int[] arr1, int[] arr2) {\n if (arr1 == null\n || arr2 == null\n || arr1.length == 0\n || arr2.length == 0) {\n return new int[]{-1};\n }\n\n int[] mergedArr = new int[arr1.length + arr2.length];\n int lengthOfArrOne = arr1.length;\n int lengthOfArrTwo = arr2.length;\n int indexForFirstArr = 0;\n int indexForSecondArr = 0;\n int indexForMergedArr = 0;\n while (indexForFirstArr < lengthOfArrOne\n && indexForSecondArr < lengthOfArrTwo) {\n if (arr1[indexForFirstArr] < arr2[indexForSecondArr]) {\n mergedArr[indexForMergedArr++] = arr1[indexForFirstArr++];\n } else {\n mergedArr[indexForMergedArr++] = arr2[indexForSecondArr++];\n }\n\n //increase index counter\n //indexForFirstArr++;\n //indexForSecondArr++;\n }\n\n //append the remaining array\n if(indexForFirstArr == lengthOfArrOne\n && indexForSecondArr < lengthOfArrTwo){\n for(int index = indexForSecondArr; indexForSecondArr<lengthOfArrTwo; indexForSecondArr++){\n mergedArr[indexForMergedArr++] = arr2[index];\n }\n }else if(indexForFirstArr < lengthOfArrOne\n && indexForSecondArr == lengthOfArrTwo){\n for(int index = indexForFirstArr; indexForFirstArr<lengthOfArrOne; indexForFirstArr++){\n mergedArr[indexForMergedArr++] = arr1[index];\n }\n }\n\n //decrease the extra space in the last index\n --indexForMergedArr;\n\n return mergedArr;\n }",
"static void merge(Comparable[] a, int lo, int mid, int hi) {\n int i = lo, j = mid + 1;\n\n //copy a[lo..hi] to aux[lo..hi]\n for (int k = lo; k <= hi; k++) {\n aux[k] = a[k];\n }\n\n for (int k = lo; k <= hi; k++) {\n if (i > mid) {\n a[k] = aux[j++];\n\n } else if (j > hi) {\n a[k] = aux[i++];\n\n } else if (less(aux[j], aux[i])) {\n a[k] = aux[j++];\n\n } else {\n a[k] = aux[i++];\n\n }\n }\n }",
"@SuppressWarnings(\"unchecked\") private static <T extends Comparable<T>> void merge(T[] a, int p, int mid, int q) {\r\n\r\n\tObject[] tmp = new Object[q-p+1]; \r\n\tint i = p;\r\n\tint j = mid+1;\r\n\tint k = 0;\r\n\twhile (i <= mid && j <= q) {\r\n\t if (a[i].compareTo(a[j])<=0)\r\n\t\ttmp[k] = a[i++];\r\n\t else\r\n\t\ttmp[k] = a[j++];\r\n\t k++;\r\n\t}\r\n\tif (i <= mid && j > q) {\r\n\t while (i <= mid) \r\n\t\ttmp[k++] = a[i++];\r\n\t} else {\r\n\t while (j <= q)\r\n\t\ttmp[k++] = a[j++];\r\n\t}\r\n\tfor (k = 0; k < tmp.length; k++) {\r\n\t a[k+p] = (T)(tmp[k]); // this is the line that would generate the warning \r\n\t}\r\n }",
"public void mergeSort() {\n this.array = mergeSort(array);\n }",
"private static int[] merge( int[] a, int[] b ) \n { \n\tint[] retArr = new int[a.length + b.length];\n\tint aCounter = 0;\n\tint bCounter = 0;\n\tint index = 0;\n while (aCounter < a.length && bCounter < b.length){\n\t if (a[aCounter] < b[bCounter]){\n\t\tretArr[index] = a[aCounter];\n\t\tindex++;\n\t\taCounter++;\n\t }\n\t else {\n\t\tretArr[index] = b[bCounter];\n\t\tindex++;\n\t\tbCounter++;\n\t }\n\t}\n\tif (aCounter < a.length){\n\t for (int x = aCounter; x < a.length; x++){\n\t\tretArr[index] = a[x];\n\t\tindex++;\n\t }\n\t}\n\telse if (bCounter < b.length){\n\t for (int x = bCounter; x < b.length; x++){\n\t\tretArr[index] = b[x];\n\t\tindex++;\n\t }\n\t}\n\tprintArray(retArr);\n\tSystem.out.println();\n\treturn retArr;\n }",
"public void mergesort(int[] a, int startI, int endI) {\n\t\t\n\t\t//int si= a.length-1;\n\t\tint [] val = new int[1];\n\t\tint midPoint;\n\t\tlong heapSize = Runtime.getRuntime().totalMemory();\n\t\tlong heapFreeSize = Runtime.getRuntime().freeMemory(); \n\t\t//System.out.println(\"current heap size \"+heapsize);\n\t\tmidPoint = (endI+startI)/2; //midpoint for array\n\t\t\n\t\tif(heapFreeSize<1212015976)\n\t\tSystem.out.println(\"Start: \"+startI+\" End: \"+endI+\" Mid: \"+midPoint+\" current heap size \"+heapSize+\" current free heap \"+heapFreeSize);\n\t\tif (endI-startI < 1) {\n\t\t\tval[0]=a[startI];\n\t\t\t//System.out.println(\"returning \"+val[0]);\n\t\t\treturn ;\n\t\t}\n\t\t/*try\n\t\t{\n\t\t Thread.sleep(3000);\n\t\t}\n\t\tcatch(InterruptedException ex)\n\t\t{\n\t\t Thread.currentThread().interrupt();\n\t\t}*/\n\t\n\t\tmergesort(a, startI, midPoint); //split left\n\t\t\n\t\t\n\t\t//System.out.println(\"Start 2: \"+startI+\" End: \"+endI+\" Mid: \"+midPoint);\n\t\tmergesort(a, midPoint+1, endI);\t\t//split right\n\t\ttemp=mergeSortedArrays(a, startI, midPoint, midPoint+1, endI); //by defining positions in array, we are taking out array slices\n\t\t/*for (int i=0;i<temp.length;i++) {\n\t\t\ta[i]=temp[i];\n\t\t}*/\n\t\t/*System.out.println(\"Printing Temp=>\");\n\t\t\n\t\tfor (int i=0;i<temp.length;i++) {\n\t\t\tSystem.out.print(temp[i]+\", \");\n\t\t}\n\t\tSystem.out.println(\"\\n Printing A=>\");\n\t\t\n\t\tfor (int i=startI;i<endI;i++) {\n\t\t\tSystem.out.print(a[i]+\", \");\n\t\t}\n\t\tSystem.out.println(\"==>\");\n\t\treturn a;*/\n\t\t\n\t\t//System.out.println(\"==>\");\n\t\tint fill = startI;\n\t\tfor (int i=0;i<temp.length;i++) {\n\t\t\ta[fill]=temp[i];\n\t\t\tfill++;\n\t\t}\n\t\treturn ;\n\t}",
"private static void mergeSorted(int[] a, int alength, int[] b) {\n int ai = alength - 1;\n int bi = b.length - 1;\n int ri = a.length - 1;\n while (ai >= 0 && bi >= 0) {\n if (a[ai] > b[bi]) {\n a[ri--] = a[ai--];\n } else {\n a[ri--] = b[bi--];\n }\n }\n\n while (bi >= 0) a[ri--] = b[bi--];\n //Note that you don't need to copy the contents of A after running out of elements in B. They are already in place.\n// while (ai >= 0) a[ri--] = a[ai--];\n }",
"public void mergeSort(){\r\n mergeSort(mArray, new int[mArray.length], 0 , mArray.length - 1);\r\n }",
"private PerfectMergeSort() {}",
"private static void merge(int[] a, int[] b) {\n\t\tint aI = a.length-1;\r\n\t\tint bI = b.length-1;\r\n\t\tint posI=a.length-b.length-1;\r\n\t\t\r\n\t\r\n\t\twhile (aI>=0 ) {\r\n\t\t\tif(a[posI]> b[bI]) {//missing the test for posI>=0 see mergeInPlace(int a[],int b[])\r\n\t\t\t\ta[aI]=a[posI];\r\n\t\t\t\tposI--;\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\r\n\t\t\t\ta[aI]=b[bI];\r\n\t\t\t\tbI--;\r\n\r\n\t\t\t}\r\n\t\t\taI--;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int x:a) {\r\n\t\t\tSystem.out.println(x);\r\n\t\t}\r\n\t}",
"private void merge_sort( ArrayList<Type> array, ArrayList<Type> auxillary, int low, int high )\r\n\t{\r\n\t\t// base case\r\n\t\tif ((high - low) <= switchValue)\r\n\t\t{\r\n\t\t\tSort_Utils.insertion_sort(array, low, high);\r\n\t\t}\r\n\t\t\r\n\t\tif (low < high)\r\n\t\t{\r\n\t\t\tint middle = low + (high - low)/2;\r\n\t\t\t\r\n\t\t\t// recursively sort the two halves of the array\r\n\t\t\tmerge_sort(array, auxillary, low, middle);\r\n\t\t\tmerge_sort(array, auxillary, middle + 1, high);\r\n\t\t\tcombine(array, auxillary, low, middle, high);\r\n\t\t}\r\n}",
"private void merge_sort( ArrayList<Type> array, ArrayList<Type> auxillary, int low, int high ){\n\t\tif((high-low)>switchOff){\n\t\t\tint middle=low+((high-low)/2);\n\t\t\tmerge_sort(array,auxillary,low,middle);\n\t\t\tmerge_sort(array,auxillary,middle+1,high);\n\t\t\tcombine(array,auxillary,low,middle,high);\n\t\t}else{\n\t\t\tSort_Utils.insertion_sort(array, low, high);\n\t\t}\n\t}",
"private int merge(Comparable[] a, Comparable[] aux, int lo, int mid, int hi) {\n for (int k = lo; k <= hi; k++) {\n aux[k] = a[k];\n }\n\n int k = lo;\n int i = lo;\n int j = mid + 1;\n int count = 0;\n\n while (k < hi) {\n if (i > mid) a[k++] = aux[j++];\n else if (j > hi) a[k++] = aux[i++];\n else if (less(aux[j], aux[i])) {\n count += mid + 1 - i;\n a[k++] = aux[j++];\n }\n else a[k++] = aux[i++];\n }\n return count;\n }",
"static void merge(int arr[], int low, int mid, int high){\n int len1 = mid-low+1;\n int len2 = high - mid;\n\n //Create temp arrays\n int left[] = new int[len1];\n int right[] = new int[len2];\n\n //Copy data into the temp arrays\n for(int i=0;i<len1;++i) left[i] = arr[low+i];\n\n for(int j=0;j<len2;++j) right[j] = arr[mid+1+j];\n\n /*Merge two arrays*/\n\n int i=0, j=0, k=low;\n\n while(i<len1 && j<len2)\n {\n if (left[i] <= right[j])\n {\n arr[k] = left[i];\n i++;\n }\n else\n {\n arr[k] = right[j];\n j++;\n }\n k++;\n\n }\n\n /* Copy remaining elements of left[] if any */\n while (i < len1)\n {\n arr[k] = left[i];\n i++;\n k++;\n }\n\n /* Copy remaining elements of right[] if any */\n while (j < len2)\n {\n arr[k] = right[j];\n j++;\n k++;\n }\n }",
"static void merge(int arr[], int l, int m, int r) \n { \n // Sizes of the two subarrays\n int size1 = m - l + 1; \n int size2 = r - m; \n \n // Temporary arrays\n int left[] = new int [size1]; \n int right[] = new int [size2]; \n \n // Copy over to temps\n for (int i=0; i<size1; ++i) \n left[i] = arr[l + i]; \n for (int j=0; j<size2; ++j) \n right[j] = arr[m + 1+ j]; \n \n \n // Initial indexes of first and second subarrays \n int i = 0, j = 0; \n \n // Initial index of merged subarry array \n int k = l; \n while (i < size1 && j < size2) \n { \n if (left[i] <= right[j]) \n { \n arr[k] = left[i]; \n i++; \n } \n else\n { \n arr[k] = right[j]; \n j++; \n } \n k++; \n } \n \n // Copy rest of arrays\n while (i < size1) \n { \n arr[k] = left[i]; \n i++; \n k++; \n } \n \n // For the other array\n while (j < size2) \n { \n arr[k] = right[j]; \n j++; \n k++; \n } \n }",
"private void merge(int lb, int mid, int ub, int[] ar){\n\t\tint i = lb ,j = lb + mid, k = 0;\n\t\tint[] out = new int[ub - lb + 1];\n\t\twhile( (i <= lb + mid - 1) && (j <= ub)){\n\t\t if(ar[i] <= ar[j]) out[k++] = ar[i++];\n\t\t else out[k++] = ar[j++];\n\t\t}\n\t\twhile(i <= lb + mid - 1) out[k++] = ar[i++];\n\t\twhile(j <= ub) \t out[k++] = ar[j++];\n\t\tfor(int l = 0; l < k; l++) ar[lb + l] = out[l];\n\t}",
"private static void merge(int arr[], int[] buf, int a, int aLen, int b, int bLen) {\n int from = a;\n\n int aEnd = a + aLen;\n int bEnd = b + bLen;\n\n int i = 0;\n\n while (a < aEnd || b < bEnd) {\n if (b >= bEnd || (a < aEnd && arr[a] < arr[b])) {\n buf[i] = arr[a];\n ++a;\n } else {\n buf[i] = arr[b];\n ++b;\n }\n ++i;\n }\n\n System.arraycopy(buf, 0, arr, from, aLen + bLen);\n }",
"private static void merge(Comparable[] as, Comparable[] aux, int lo, int mid, int hi) {\n assert isSorted(as, lo, mid); // precondition that first sub array is ordered\n assert isSorted(as, mid + 1, hi); // precondition that second sub array is ordered\n\n for (int k = lo; k <= hi; k++) {\n aux[k] = as[k];\n }\n\n int i = lo;\n int j = mid + 1;\n for (int k = lo; k <= hi; k++) {\n // done with first sub array\n if (i > mid) as[k] = aux[j++];\n // done with second sub array\n else if (j > hi) as[k] = aux[i++];\n // second less than first\n else if (less(aux[j], aux[i])) as[k] = aux[j++];\n // first less than first\n else as[k] = aux[i++];\n }\n\n assert isSorted(as, lo, hi); // postcondition that whole as array is sorted\n }",
"private static <T,S>void mergeSort(T[] src,S[] src2,\n\t\t\tT[] dest,\n\t\t\tS[] dest2,\n\t\t\tint low, int high, int off,\n\t\t\tComparator c) {\n\t\tint length = high - low;\n\n\t\t// Insertion sort on smallest arrays\n\t\tif (length < INSERTIONSORT_THRESHOLD) {\n\t\t\tfor (int i=low; i<high; i++)\n\t\t\t\tfor (int j=i; j>low && c.compare(dest[j-1], dest[j])>0; j--) \n\t\t\t\t\tswap(dest,dest2,j, j-1);\n\t\t\treturn;\n\t\t}\n\n\t\t// Recursively sort halves of dest into src\n\t\tint destLow = low;\n\t\tint destHigh = high;\n\t\tlow += off;\n\t\thigh += off;\n\t\tint mid = (low + high) >>> 1;\n\t\t\tmergeSort(dest,dest2, src, src2,low, mid, -off, c);\n\t\t\tmergeSort(dest,dest2, src, src2, mid, high, -off, c);\n\n\t\t\t// If list is already sorted, just copy from src to dest. This is an\n\t\t\t// optimization that results in faster sorts for nearly ordered lists.\n\t\t\tif (c.compare(src[mid-1], src[mid]) <= 0) {\n\t\t\t\tSystem.arraycopy(src, low, dest, destLow, length);\n\t\t\t\tSystem.arraycopy(src2, low, dest2, destLow, length);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Merge sorted halves (now in src) into dest\n\t\t\tfor(int i = destLow, p = low, q = mid; i < destHigh; i++) {\n\t\t\t\tif (q >= high || p < mid && c.compare(src[p], src[q]) <= 0) {\n\t\t\t\t\tdest2[i] = src2[p];\n\t\t\t\t\tdest[i] = src[p++];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdest2[i] = src2[q];\n\t\t\t\t\tdest[i] = src[q++];\n\t\t\t\t}\n\t\t\t}\n\t}",
"private void merge(Comparable[] a, int min, int mid, int max){\n for(int t = min; t <= max;t++){\n aux[t] = a[t];\n }\n \n int i = min; // start index for left side\n int j = mid + 1; // start index for right side\n \n for(int k = min; k <= max; k++){\n if(i > mid){\n a[k] = aux[j++];\n }\n else if(j > max){\n a[k] = aux[i++];\n }\n else if(aux[i].compareTo(aux[j]) < 0 ){\n a[k] = aux[i++];\n }\n else {\n a[k] = aux[j++];\n }\n }\n }",
"private void merge(int p, int q, int r) {\n int n1 = q - p + 1;\n int n2 = r - (q + 1) + 1;\n int[] left = new int[n1 + 1];\n int[] right = new int[n2 + 1];\n for (int i = 0; i < n1; i++) {\n left[i] = data[p + i];\n }\n left[n1] = Integer.MAX_VALUE;\n for (int j = 0; j < n2; j++) {\n right[j] = data[q + 1 + j];\n }\n right[n2] = Integer.MAX_VALUE;\n\n int i = 0, j = 0;\n for (int k = p; k <= r; k++) {\n if (left[i] <= right[j]) {\n data[k] = left[i];\n i++;\n } else {\n data[k] = right[j];\n j++;\n }\n }\n }",
"private void mergeAB() {\r\n //merge only for the indexes of this global_count\r\n boolean a_end = false;\r\n boolean b_end = false;\r\n boolean start = false;\r\n int a_count = splitA[global_count - 1];\r\n if(a_count == A.length - 1){\r\n a_count = splitA[global_count - 2] + 1;\r\n }\r\n int b_count = splitB[global_count - 1];\r\n if(b_count == B.length - 1){\r\n if(global_count != splitB.length){\r\n start = true;\r\n b_count = 0;\r\n }\r\n else{\r\n b_count = splitB[global_count - 2] + 1;\r\n }\r\n }\r\n if(b_count == -1){\r\n b_end = true;\r\n b_count = 0;\r\n if(splitB[0] == B.length - 1){\r\n b_count = B.length;\r\n }\r\n }\r\n int c_count = a_count + b_count;\r\n while(!a_end || !b_end){\r\n if(a_end){\r\n C[c_count] = B[b_count];\r\n b_count++;\r\n }\r\n else if(b_end){\r\n C[c_count] = A[a_count];\r\n a_count++;\r\n }\r\n //if a > b\r\n else if(A[a_count] > B[b_count]){\r\n C[c_count] = B[b_count];\r\n b_count++;\r\n c_count++;\r\n }\r\n //if a <= b\r\n else{\r\n C[c_count] = A[a_count];\r\n a_count++;\r\n c_count++;\r\n }\r\n if(!start){\r\n if(a_count == splitA[global_count - 1] + 1){\r\n a_end = true;\r\n }\r\n if(b_count == splitB[global_count - 1] + 1){\r\n b_end = true;\r\n }\r\n }\r\n else{\r\n if(a_count == splitA[global_count - 1] + 1){\r\n a_end = true;\r\n }\r\n if(b_count == splitB.length){\r\n b_end = true;\r\n }\r\n }\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tMergeSortedArrays obj = new MergeSortedArrays();\r\n\t\tint[] nums1 = {1,2,3,0,0,0};\r\n\t\tint m = 3;\r\n\t\tint[] nums2 = {2,5,6};\r\n\t\tint n=3;\r\n\t\tobj.merge(nums1, m, nums2, n);\r\n\r\n\t}",
"static int[] merge(int[] A, int[] B){\n int m = A.length; int n = B.length;\n A = Arrays.copyOf(A, m+n);\n while(m > 0 && n > 0){\n if(A[m-1] > B[n-1]){\n A[m+n-1] = A[m-1];\n m--;\n }else{\n A[m+n-1] = B[n-1];\n n--;\n }\n }\n\n while(n > 0){\n A[m+n-1] = B[n-1];\n n--;\n }\n return A;\n }",
"private void merge(int[] left, int[] right, int[] a) {\n\t\t// i - left\n\t\t// j - right\n\t\t// k - original\n\t\tint i = 0, j = 0, k = 0;\n\t\tint sL = left.length;\n\t\tint sR = right.length;\n\n\t\twhile (i < sL && j < sR) {\n\t\t\tif (left[i] < right[j]) {\n\t\t\t\ta[k] = left[i];\n\t\t\t\ti++;\n\t\t\t} else {\n\t\t\t\ta[k] = right[j];\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\n\t\twhile (i < sL) {\n\t\t\ta[k] = left[i];\n\t\t\tk++;\n\t\t\ti++;\n\t\t}\n\t\twhile (j < sR) {\n\t\t\ta[k] = right[j];\n\t\t\tk++;\n\t\t\tj++;\n\t\t}\n\t}",
"static int[] merge(int[] a, int[] b) {\n\t\tint m = a.length, n = b.length;\n\t\tint[] res = new int[m + n];\n\t\tint i = 0, j = 0, k = 0;\n\t\twhile (i < m || j < n) {\n\t\t\tif (i == m)\n\t\t\t\tres[k++] = b[j++];\n\t\t\telse if (j == n)\n\t\t\t\tres[k++] = a[i++];\n\t\t\telse if (a[i] < b[j])\n\t\t\t\tres[k++] = a[i++];\n\t\t\telse\n\t\t\t\tres[k++] = b[j++];\n\t\t}\n\t\treturn res;\n\t}",
"public static int[] merge(int[] arrLeft, int[] arrRight){\n int[] vals = new int[arrLeft.length + arrRight.length];\n int i = 0;\n int j = 0;\n while(i < arrLeft.length && j < arrRight.length){\n if(arrLeft[i] < arrRight[j]){\n vals[i+j] = arrLeft[i];\n i++;\n }else{\n vals[i+j] = arrRight[j];\n j++;\n }\n }\n while(i < arrLeft.length){\n vals[i+j] = arrLeft[i];\n i++;\n }\n while(j < arrRight.length){\n vals[i+j] = arrRight[j];\n j++;\n }\n return vals;\n\n}",
"private static boolean merge(int[] a, int[] b) {\n if (b[1] < a[0] || a[1] < b[0]) {\n return false;\n }\n\n a[0] = Math.min(a[0], b[0]);\n a[1] = Math.max(a[1], b[1]);\n return true;\n }",
"private void mergeSort(int low, int high) {\n\t\tif (low < high) {\n\t\t\tint middle = low + (high - low) / 2;\n\t\t\tmergeSort(low, middle);\n\t\t\tmergeSort(middle + 1, high);\n\t\t\tmergeParts(low, middle, high);\n\t\t}\n\t}",
"private static void merge(int[] num1, int[] num2) {\n\t\tint len = num1.length + num2.length;\n\n\t\tint[] temp = new int[len];\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint count = 0;\n\t\twhile (i < num1.length && j < num2.length) {\n\t\t\tif (num1[i] < num2[j]) {\n\t\t\t\ttemp[count++] = num1[i++];\n\t\t\t \n\t\t\t} else {\n\t\t\t\ttemp[count++] = num2[j++];\n\t\t\t \n\t\t\t}\n\t\t}\n\n\t\twhile (i < num1.length) {\n\t\t\ttemp[count++] = num1[i++];\n\t\t}\n\t\twhile (j < num2.length) {\n\t\t\ttemp[count++] = num2[j++];\n\t\t}\n\t\tfor (int ind = 0; ind < temp.length; ind++) {\n\t\t\tSystem.out.print(temp[ind] + \" \");\n\t\t}\n\t}",
"private static void mergeSort(int[] data, int left, int right) {\n\n\t\tint mid;\n\n\t\tif (left < right) {\n\n\t\t\tmid = (left + right) / 2;\n\n\t\t\tmergeSort(data, left, mid);\n\t\t\tmergeSort(data, mid + 1, right);\n\t\t\tmerge(data, left, mid, right);\n\t\t}\n\n\t}",
"private static int[] merge( int[] a, int[] b )\n {\n int[] ans = new int[(a.length + b.length)]; //create new array with the combined lengths\n int a1 = 0; //counter for a's position\n int b1 = 0; //counter for b's position\n while (a1 < a.length || b1 < b.length) { //iterates while either counter is not at the end of each array\n\t if (a1 == a.length) { //if you finished with all of a add the remaining b elements\n\t ans[a1 + b1] = b[b1]; \n\t b1 += 1;\n\t }\n\t else if (b1 == b.length) { //if you finished with all of b add the remaining a elements\n\t ans[a1 + b1] = a[a1];\n\t a1 += 1;\n\t }\n\t else if (a[a1] > b[b1]) { //if the current element at position a1 is larger than the one at b1, add the lower b1 to the new array and move to next b position\n\t ans[a1 + b1] = b[b1];\n\t b1 += 1;\n\t }\n\t else {\n\t ans[a1 + b1] = a[a1]; //otherwise add the element at a1 and move to next a position \n\t a1 += 1;\n\t }\n }\n return ans; //return the sorted merged array\t \t \n }",
"public static void main(String[] args) {\n\t\tint [] queue1 = {4,7,2,9,12,35,8,49};\r\n\t int [] queue2 = {24,53,6,19,41,71,1,68,11,32,99}; \r\n\t int[]mergeQ = new int[queue1.length + queue2.length];\r\n\r\n\t for(int i=0; i < queue1.length; i++ )\r\n\t {\r\n\r\n\t mergeQ[i*2] = queue1[i]; \r\n\t mergeQ[i*2+1] = queue2[i]; \r\n\t }\r\n\t for(int i=0; i < mergeQ.length; i++) { \r\n\t System.out.print(mergeQ[i]+\",\");\r\n\t }\r\n\t}",
"public static void merge(Comparable[] a, Comparable[] aux, int lo,int mid,int hi){\n for(int k=lo;k<=hi;k++){\n aux[k]=a[k];\n }\n int i=lo,j=mid+1;\n for(int k=lo;k<=hi;k++){\n if(i>mid) a[k]=aux[j++];\n else if(j>hi) a[k]=aux[i++];\n else if(less(aux[j],aux[i])) a[k]=aux[j++];\n else a[k]=aux[i++];\n }\n }",
"private static void mergeAsc(int arr[], int start, int mid, int end) {\n\r\n\t\tint subArrLen1 = mid - start + 1;\r\n\t\tint subArrLen2 = end - mid;\r\n\r\n\t\t// create the sub Arrays as temporary storage\r\n\t\tint subArray1[] = new int[subArrLen1];\r\n\t\tint subArray2[] = new int[subArrLen2];\r\n\r\n\t\t// copy data in temporary arrays\r\n\r\n\t\tfor (int i = 0; i < subArrLen1; i++) {\r\n\t\t\tsubArray1[i] = arr[start + i];\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < subArrLen2; i++) {\r\n\t\t\tsubArray2[i] = arr[mid + i + 1];\r\n\t\t}\r\n\r\n\t\t// merging the temporary arrays\r\n\r\n\t\tint i = 0, j = 0;\r\n\t\tint k = start;\r\n\r\n\t\twhile (i < subArrLen1 && j < subArrLen2) {\r\n\t\t\tif (subArray1[i] <= subArray2[j]) {\r\n\t\t\t\tarr[k] = subArray1[i];\r\n\t\t\t\ti++;\r\n\t\t\t} else {\r\n\t\t\t\tarr[k] = subArray2[j];\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\r\n\t\t}\r\n\r\n\t\t// copy left over elements of subArray2[]\r\n\t\twhile (i < subArrLen1) {\r\n\t\t\tarr[k] = subArray1[i];\r\n\t\t\ti++;\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\t// copy left over elements of subArray2[]\r\n\t\twhile (j < subArrLen2) {\r\n\t\t\tarr[k] = subArray2[j];\r\n\t\t\tj++;\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t}",
"public static int[] mergeTwoSortedArrays(int[] a, int[] b){\n System.out.println(\"Merging these two arrays \");\n System.out.print(\"left array -> \");\n print(a);\n System.out.print(\"right array -> \");\n print(b);\n int i = 0, j =0, k = 0;\n int[] ans = new int[a.length + b.length];\n while(i < a.length && j < b.length){\n if(a[i] <= b[j]){\n ans[k] = a[i];\n i++;\n k++;\n }else{\n ans[k] = b[j];\n j++;\n k++;\n }\n }\n\n while(i < a.length){\n ans[k] = a[i];\n k++;\n i++;\n }\n\n while(j < b.length){\n ans[k] = b[j];\n k++;\n j++;\n }\n\n return ans;\n}",
"private void merge(Object [] arr, int l, int m, int r) \n\t{\n\t\tint n1 = m - l + 1; \n\t\tint n2 = r - m; \n\n\t\t/* Create temp arrays */\n\t\tObject L[] = new Object [n1]; \n\t\tObject R[] = new Object [n2]; \n\n\t\t/*Copy data to temp arrays*/\n\t\tfor (int i=0; i<n1; ++i) \n\t\t\tL[i] = arr[l + i]; \n\t\tfor (int j=0; j<n2; ++j) \n\t\t\tR[j] = arr[m + 1+ j]; \n\n\n\t\t/* Merge the temp arrays */\n\n\t\t// Initial indexes of first and second subarrays \n\t\tint i = 0, j = 0; \n\n\t\t// Initial index of merged subarry array \n\t\tint k = l; \n\t\twhile (i < n1 && j < n2) \n\t\t{ \n\t\t\tint comparison = ((T)L[i]).compareTo((T)R[j]);\n\t\t\tif (comparison <= 0) \n\t\t\t{ \n\t\t\t\tarr[k] = L[i]; \n\t\t\t\ti++; \n\t\t\t} \n\t\t\telse\n\t\t\t{ \n\t\t\t\tarr[k] = R[j]; \n\t\t\t\tj++; \n\t\t\t} \n\t\t\tk++; \n\t\t} \n\n\t\t/* Copy remaining elements of L[] if any */\n\t\twhile (i < n1) \n\t\t{ \n\t\t\tarr[k] = L[i]; \n\t\t\ti++; \n\t\t\tk++; \n\t\t} \n\n\t\t/* Copy remaining elements of R[] if any */\n\t\twhile (j < n2) \n\t\t{ \n\t\t\tarr[k] = R[j]; \n\t\t\tj++; \n\t\t\tk++; \n\t\t} \n\t}",
"private void mergeSortHelper(Object arr[], int l, int r) \n\t{ \n\t\tif (l < r) \n\t\t{ \n\t\t\t// Find the middle point \n\t\t\tint m = (l+r)/2; \n\n\t\t\t// Sort first and second halves \n\t\t\tmergeSortHelper(arr, l, m); \n\t\t\tmergeSortHelper(arr , m+1, r); \n\n\t\t\t// Merge the sorted halves \n\t\t\tmerge(arr, l, m, r); \n\t\t} \n\t}",
"public static void main(String[] args) {\n\t\tint []arr1= {12,13,44};\r\n\t\tint []arr2= {44,45,47,50};\r\n\t\tint i,j;\r\n\t\tint count=0;\r\n\t\t\r\n\t\tint []merge=new int[arr1.length+arr2.length];\r\n\t\tfor(i=0;i<arr1.length;i++)\r\n\t\t{\r\n\t\t\tmerge[i]=arr1[i];\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\tfor(i=0;i<arr2.length;i++)\r\n\t\t\t{\r\n\t\t\t\tmerge[count++]=arr2[i];\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(i=0;i<merge.length;i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\" \" +merge[i]);\r\n\t\t\t}\r\n\t\t\r\n\r\n\t}",
"public void meld(BinomialHeap heap2) {\r\n\t\tthis.size = this.size + heap2.size;\r\n\t\tif (heap2.min != null && this.min != null && heap2.min.value < this.min.value) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t}\r\n\t\tif (heap2.min != null && this.min == null) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t}\r\n\t\tHeapNode[] heap2Arr = heap2.HeapTreesArray;\r\n\t\tif (this.empty() && !heap2.empty()) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t\tthis.empty = false;\r\n\t\t}\r\n\t\tfor (int i = 0; i < heap2Arr.length; i++) {\r\n\t\t\tif (heap2Arr[i] != null && this.HeapTreesArray[i] == null) {\r\n\t\t\t\tthis.HeapTreesArray[i] = heap2Arr[i];\r\n\t\t\t} else if (heap2Arr[i] != null && this.HeapTreesArray[i] != null) {\r\n\t\t\t\tHeapNode hN = merge(heap2Arr[i], this.HeapTreesArray[i]);\r\n\t\t\t\tHeapTreesArray[i] = null;\r\n\t\t\t\tint j = i + 1;\r\n\t\t\t\twhile (this.HeapTreesArray[j] != null) {\r\n\t\t\t\t\thN = merge(hN, this.HeapTreesArray[j]);\r\n\t\t\t\t\tHeapTreesArray[j] = null;\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\tHeapTreesArray[j] = hN;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"private int[] merge(int[] left, int[] right) {\r\n\t\tint[] merged = new int[(left.length + right.length)];\r\n\r\n\t\t// l -> arrL index and r -> arrR index\r\n\t\tint l = 0, r = 0;\r\n\t\tfor (int i = 0; i < merged.length; i++) {\r\n\r\n\t\t\tif (l >= left.length) {\r\n\t\t\t\tmerged[i] = right[r++];\r\n\t\t\t} \r\n\t\t\telse if (r >= right.length) {\r\n\t\t\t\tmerged[i] = left[l++];\r\n\t\t\t}\r\n\t\t\telse if (left[l] >= right[r]) {\r\n\t\t\t\t// The total inversions will always be left.length - l\r\n\t\t\t\tcounter += (left.length - l);\r\n\t\t\t\tmerged[i] = right[r++];\r\n\t\t\t}\r\n\t\t\telse if (left[l] < right[r]) {\r\n\t\t\t\tmerged[i] = left[l++];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn merged;\r\n\t}",
"private static InputStream merge(InputStream ... arrays) throws IOException {\n\t\tMinHeap heap = new MinHeap();\n\t\tfor(int k = 0; k < arrays.length; k++) {\n\t\t\tElement element = new Element(arrays[k]);\n\t\t\tif(element.hasMoreElement()) {\n\t\t\t\theap.insert(element);\n\t\t\t}\n\t\t}\n\t\treturn new MergedIntegerStream(heap);\n\t}",
"private static void merge(int[] nums, int low, int mid, int high) {\n int n1=mid-low+1;\n int n2=high-mid;\n int[] left=new int[n1];\n int[] right=new int[n2];\n for (int i = 0; i <n1 ; i++) {\n left[i]=nums[i+low];\n }\n for (int j = 0; j < n2; j++) {\n right[j]=nums[mid+1+j];\n }\n int k=low;\n int i=0,j=0;\n while (i< left.length && j< right.length){\n if(left[i]<right[j]){\n nums[k++]=left[i++];\n }\n else {\n nums[k++]=right[j++];\n }\n }\n //copy the remaining elements\n\n while (i<left.length){\n nums[k++]=left[i++];\n }\n while (j< right.length){\n nums[k++]=right[j++];\n }\n }",
"public static int[] bottomUpMergeSort(int[] num) {\n\n\t\tint[] temp = new int[num.length];\n\n\t\t// repeat merging process while width is smaller than length\n\t\tfor (int width = 2; width <= num.length; width *= 2) {\n\n\t\t\t// System.out.println(\"width = \" + width );\n\n\t\t\t// merge sublists\n\t\t\tfor (int i = 0; i < num.length; i += width)\n\t\t\t\tmergeLists(num, i, width, temp);\n\n\t\t\t// copy temp array back to original array\n\t\t\tfor (int i = 0; i < num.length; i++) {\n\t\t\t\tnum[i] = temp[i];\n\t\t\t\t// System.out.print(num[i] + \" \");\n\t\t\t}\n\n\t\t\t// System.out.println();\n\t\t\t// System.out.println();\n\t\t}\n\n\t\treturn num;\n\n\t}",
"void merge(int arr[], int left, int mid, int right) {\n\t\tint n1 = mid - left + 1;\n\t\tint n2 = right - mid;\n\n\t\t/* Create temporary arrays */\n\t\tint leftArray[] = new int[n1];\n\t\tint rightArray[] = new int[n2];\n\n\t\t/* Copy data to temporary arrays */\n\t\tfor (int i = 0; i < n1; ++i)\n\t\t\tleftArray[i] = arr[left + i];\n\t\tfor (int j = 0; j < n2; ++j)\n\t\t\trightArray[j] = arr[mid + 1 + j];\n\n\t\t/* Merge the temporary arrays */\n\n\t\t// Initial indexes of first and second sub-arrays\n\t\tint i = 0, j = 0;\n\n\t\t// Initial index of merged sub-array array\n\t\tint k = left;\n\t\twhile (i < n1 && j < n2) {\n\t\t\tif (leftArray[i] >= rightArray[j]) {\n\t\t\t\tarr[k] = leftArray[i];\n\t\t\t\ti++;\n\t\t\t} else {\n\t\t\t\tarr[k] = rightArray[j];\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\n\t\t/* Copy remaining elements of L[] if any */\n\t\twhile (i < n1) {\n\t\t\tarr[k] = leftArray[i];\n\t\t\ti++;\n\t\t\tk++;\n\t\t}\n\n\t\t/* Copy remaining elements of R[] if any */\n\t\twhile (j < n2) {\n\t\t\tarr[k] = rightArray[j];\n\t\t\tj++;\n\t\t\tk++;\n\t\t}\n\t\t\n\t}",
"public static void mergeSortNonRecursive(int[] input){\n int[] arr;\n Stack<int[]> unsortedStack = new Stack();\n Stack<int[]> sortedStack = new Stack();\n unsortedStack.push(input);\n //while !unsortedStack.isempty, needs to pop int[] from stack , assign to arr, pop status\n //if(arr.length>1), split arr to arr.left and arr.right,push left and right into stack, push false to stack twice\n //else if(arr.length<=1), push arr to sortedStack (while (!unsorted.isempty && peek().length==arr,merge and pushback to stack again)\n //\n\n while(!unsortedStack.empty()) {\n arr = unsortedStack.pop();\n if (arr.length > 1) {\n int begin = 0,end=arr.length,mid=arr.length/2;\n int[] left = Arrays.copyOfRange(arr, begin, mid);\n int[] right = Arrays.copyOfRange(arr, mid, end);\n unsortedStack.push(left);\n unsortedStack.push(right);\n } else {\n while(!sortedStack.isEmpty() && sortedStack.peek().length<=arr.length){\n arr = merge(arr, sortedStack.pop());\n }\n sortedStack.push(arr);\n }\n }\n while(sortedStack.size()>1){\n arr = merge(sortedStack.pop(), sortedStack.pop());\n sortedStack.push(arr);\n }\n int[] tmp = sortedStack.pop();\n for(int i=0;i<input.length;i++){\n input[i]=tmp[i];\n }\n\n }",
"public static void mergeKSortedArrays(int[][] arr, int k) {\n\t\tNode[] hArr = new Node[k];\n\t\tint resultSize = 0;\n\n\n\t\tfor(int i=0;i<arr.length;i++) {\n\n\t\t\tNode node = new Node(arr[i][0],i,1);\n\t\t\thArr[i] = node;\n\t\t\tresultSize += arr[i].length;\n\t\t}\n \n\t\tMinHeap mh = new MinHeap(hArr);\n\n\t\tint[] result = new int[resultSize];\n \n\t\tfor(int i=0;i<resultSize;i++) {\n\t\t\tNode root = mh.getMin();\n\t\t\tresult[i] = root.element;\n\t\t\t\n\t\t\tif(root.j < arr[root.i].length)\n\t\t\t\troot.element = arr[root.i][root.j++];\n\t\t\telse\n\t\t\troot.element = Integer.MAX_VALUE;\n\t\t\t\tmh.replaceMin(root);\n\t\t}\n \n\t\tfor(int i : result)\n\t\t\tSystem.out.print(i + \" \");\n\t\tSystem.out.println();\n \n\t}",
"@Before\n public void setUpBinaryMinHeaps() {\n empty = new BinaryMinHeap<>();\n emptyArr = new ArrayList<>();\n \n multipleElements = new BinaryMinHeap<>();\n multipleElements.insert(7);\n multipleElements.insert(8);\n multipleElements.insert(5);\n multipleElements.insert(3);\n multipleElements.insert(2);\n multipleElements.insert(6);\n \n multiArr = new ArrayList<>();\n multiArr.add(2);\n multiArr.add(3);\n multiArr.add(6);\n multiArr.add(8);\n multiArr.add(5);\n multiArr.add(7);\n \n }",
"private void expand() { \n\t\tComparable[] temp = new Comparable[ _data.length * 2 ];\n\t\tfor( int i = 0; i < _data.length; i++ )\n\t \ttemp[i] = _data[i];\n\t\t_data = temp;\n }",
"void merge(int arr[], int l, int m , int r)\n {\n int n1 = m-l+1;\n int n2 = r-m;\n\n //create temp arrays\n int L[] = new int[n1];\n int R[] = new int[n2];\n\n //copy the elements to the array\n for(int i=0; i < n1 ;i++)\n L[i] = arr[l+i];\n for(int j=0; j < n2 ;j++)\n R[j] = arr[m+1+j];\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n\n while(i<n1 && j< n2)\n {\n if(L[i] <= R[j])\n {\n arr[k++] = L[i++];\n }\n else\n {\n arr[k++] = R[j++];\n }\n }\n\n while(i<n1)\n {\n arr[k++]=L[i++];\n }\n\n while(j<n2)\n {\n arr[k++]=R[j++];\n }\n\n }",
"private static void mergeDesc(int arr[], int start,int mid, int end) {\n\r\n\t\t\t\tint subArrLen1 = mid - start + 1;\r\n\t\t\t\tint subArrLen2 = end - mid;\r\n\r\n\t\t\t\t// create the sub Arrays as temporary storage\r\n\t\t\t\tint subArray1[] = new int[subArrLen1];\r\n\t\t\t\tint subArray2[] = new int[subArrLen2];\r\n\r\n\t\t\t\t// copy data in temporary arrays\r\n\r\n\t\t\t\tfor (int i = 0; i < subArrLen1; i++) {\r\n\t\t\t\t\tsubArray1[i] = arr[start + i];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int i = 0; i < subArrLen2; i++) {\r\n\t\t\t\t\tsubArray2[i] = arr[mid + i + 1];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// merging the temporary arrays\r\n\r\n\t\t\t\tint i = 0, j = 0;\r\n\t\t\t\tint k = start;\r\n\r\n\t\t\t\twhile (i < subArrLen1 && j < subArrLen2) {\r\n\t\t\t\t\tif (subArray1[i] > subArray2[j]) {\r\n\t\t\t\t\t\tarr[k] = subArray1[i];\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tarr[k] = subArray2[j];\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// copy left over elements of subArray2[]\r\n\t\t\t\twhile (i < subArrLen1) {\r\n\t\t\t\t\tarr[k] = subArray1[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// copy left over elements of subArray2[]\r\n\t\t\t\twhile (j < subArrLen2) {\r\n\t\t\t\t\tarr[k] = subArray2[j];\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\r\n\t}",
"private static void merge(Comparable[] a, int[] index, int[] aux, int low, int mid, int high) {\n for(int k=low; k<=high; k++)\n aux[k] = index[k];\n \n // merge back to a[]\n int i=low, j=mid+1;\n for(int k=low; k<=high; k++) {\n if(i>mid) index[k] = aux[j++];\n else if(j>high) index[k] = aux[i++];\n else if(SortUtil.less(a[aux[j]], a[aux[i]])) index[k] = aux[j++];\n else index[k] = aux[i++];\n }\n }",
"static void mergeSortInner(int[] array, int low, int high, int[] extra) {\n if (low == high - 1) {\r\n return;\r\n }\r\n if (low >= high) {\r\n return;\r\n }\r\n // 1. 平均切分\r\n int mid = low + (high - low) / 2;\r\n // [low, mid) + [mid, high)\r\n // 2. 分治算法处理所有两个小区间\r\n mergeSortInner(array, low, mid, extra);\r\n mergeSortInner(array, mid, high, extra);\r\n\r\n // 左右两个小区间已经有序了\r\n merge(array, low, mid, high, extra);\r\n }",
"public static void mergeSort(int[] arr) {\r\n if (arr.length - 1 > 0) {\r\n int[] arrLeft = new int[arr.length / 2];\r\n System.arraycopy(arr, 0, arrLeft, 0, arr.length / 2);\r\n int[] arrRight = new int[arr.length - arrLeft.length];\r\n System.arraycopy(arr, arr.length / 2, arrRight, 0, arrRight.length);\r\n mergeSort(arrLeft);\r\n mergeSort(arrRight);\r\n merge(arr, arrLeft, arrRight);\r\n }\r\n }",
"private static void merge(int[] array, int lowIndex, int middleIndex, int highIndex) {\n int n1 = middleIndex - lowIndex + 1;\n int n2 = highIndex - middleIndex;\n\n /*Create temp arrays*/\n int L[] = new int[n1];\n int R[] = new int[n2];\n\n /*Copy data to temp arrays*/\n for (int i = 0; i < L.length; i++) {\n L[i] = array[lowIndex + i];\n }\n for (int i = 0; i < R.length; i++) {\n R[i] = array[middleIndex + 1 + i];\n }\n\n /* Merge the temp arrays */\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarray\n int k = lowIndex;\n\n while (i < n1 && j < n2) {\n if (L[i] <= R[j]) {\n array[k] = L[i];\n i++;\n } else {\n array[k] = R[j];\n j++;\n }\n k++;\n }\n\n /*Copy remaining elements of L[] if any */\n while (i < n1) {\n array[k] = L[i];\n i++;\n k++;\n }\n\n /*Copy remaining elements of R[] if any */\n while (j < n2) {\n array[k] = R[j];\n j++;\n k++;\n }\n }",
"public static void randomArraySorts() {\n int[] randomArr = new int[1000];\n for (int i = 0; i < randomArr.length; i++) {\n randomArr[i] = (int) (Math.random() * 5000 + 1);\n }\n\n // Heap Sort of random array\n int arr[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr[i] = randomArr[i];\n }\n\n HeapSort hs = new HeapSort();\n\n System.out.println(\"Given Array: \");\n hs.printArray(arr);\n\n long start = System.currentTimeMillis();\n hs.sort(arr);\n long end = System.currentTimeMillis();\n long time = end - start;\n\n System.out.println(\"Heap Sorted Array: \");\n hs.printArray(arr);\n System.out.println(\"Heap Sort Time: \" + time);\n\n // Merge Sort of random array\n System.out.println();\n int arr2[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr2[i] = randomArr[i];\n }\n\n MergeSort ms = new MergeSort();\n\n System.out.println(\"Given Array: \");\n ms.printArray(arr2);\n\n start = System.currentTimeMillis();\n ms.sort(arr2, 0, arr.length - 1);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Merge Sorted Array: \");\n ms.printArray(arr2);\n System.out.println(\"Merge Sort Time: \" + time);\n\n // Insert Sort of random array\n System.out.println();\n int arr3[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr3[i] = randomArr[i];\n }\n\n System.out.println(\"Given Array: \");\n print(arr3, arr3.length);\n\n start = System.currentTimeMillis();\n insertSort(arr3);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Insert Sorted Array: \");\n print(arr3, arr3.length);\n System.out.println(\"Insert Sort Time: \" + time);\n }",
"private void merge(Integer[] arr, int s, int e, int m) {\n\t\tInteger[] ar1 = new Integer[m-s+1];\r\n\t\tInteger[] ar2 = new Integer[e-m];\r\n\t\t//copy values into temp arrays\r\n\t\tfor(int i1=0; i1<ar1.length; i1++)\r\n\t\t\tar1[i1] = arr[s+i1];\r\n\t\tfor(int i2=0; i2<ar2.length; i2++)\r\n\t\t\tar2[i2] = arr[m+1+i2];\r\n\t\t\r\n\t\t// compare values of temp arrays\r\n\t\tint k=s, i=0, j=0;\r\n\t\tfor(; i<ar1.length && j<ar2.length && k<=e; k++) {\r\n\t\t\tif(ar1[i] < ar2[j]) {\r\n\t\t\t\tarr[k] = ar1[i];\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tarr[k] = ar2[j];\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//copy remaining elements of ar1 if any\r\n\t\twhile(i < ar1.length) {\r\n\t\t\tarr[k] = ar1[i];\r\n\t\t\ti++;k++;\r\n\t\t}\r\n\t\twhile(j < ar2.length) {\r\n\t\t\tarr[k] = ar2[j];\r\n\t\t\tj++;k++;\r\n\t\t}\r\n\r\n\t}",
"static void merge(int array[], int l, int x, int r) {\n int arrSize1 = x - l + 1;\n int arrSize2 = r - x;\n\n //Create temp arrays \n int tempArray1[] = new int[arrSize1];\n int tempArray2[] = new int[arrSize2];\n\n // Copy elements to temp arrays\n for (int i = 0; i < arrSize1; ++i)\n \ttempArray1[i] = array[l + i];\n for (int j = 0; j < arrSize2; ++j)\n \ttempArray2[j] = array[x + 1 + j];\n\n // Merge the temp arrays\n\n // Initial the indexes of two arrays\n int i = 0, j = 0;\n\n int k = l;\n while (i < arrSize1 && j < arrSize2) {\n\n if (tempArray1[i] <= tempArray2[j]) {\n array[k] = tempArray1[i];\n i++;\n }\n else {\n array[k] = tempArray2[j];\n j++;\n }\n k++;\n }\n\n // If there are any elements left, copy those elements of tempArray1\n while (i < arrSize1) {\n array[k] = tempArray1[i];\n i++;\n k++;\n }\n\n // If there are any elements left, copy those elements of tempArray2\n while (j < arrSize2) {\n array[k] = tempArray2[j];\n j++;\n k++;\n }\n\n }",
"public ListNode mergeKLists(ListNode[] lists) {\n PriorityQueue<Integer> minHeap = new PriorityQueue<Integer>();\n //Iterate over the list\n for(ListNode head: lists)\n {\n //as long as head not null\n while(head!=null)\n {\n //add the value at the head to min heap\n minHeap.add(head.val);\n //move to next head\n head=head.next;\n }\n }\n //Make a dummy ListNode\n ListNode dummy = new ListNode(-1);\n //make head to dummy\n ListNode head = dummy;\n while(!minHeap.isEmpty())\n {\n //adding the values to the new dummy list\n head.next = new ListNode(minHeap.remove());\n head = head.next;\n }\n //Return the dummy list which is our result\n return dummy.next;\n }",
"protected static <T extends Comparable<? super T>> void merge(List<T> a,\n List<T> tmpArray, int low, int high){\n int leftEnd = (low + high)/2;\n int leftPos = low;\n int rightPos = leftEnd + 1;\n int rightEnd = high;\n\n // merge into beginning of tmpArray\n int tmpPos = 0;\n int numElements = high - low + 1;\n\n while(leftPos <= leftEnd && rightPos <= rightEnd){\n // if value at leftPos is less than rightPos\n // copy leftPos into tmpArray and increment leftPos\n if(a.get(leftPos).compareTo(a.get(rightPos)) <= 0){\n tmpArray.set(tmpPos, a.get(leftPos));\n leftPos++;\n \n } else { // else rightPos is less and should be copied\n tmpArray.set(tmpPos, a.get(rightPos));\n rightPos++;\n }\n\n // in either case increment tmpPos\n tmpPos++;\n }\n\n // copy rest of left array if right array finished first\n while(leftPos <= leftEnd){\n tmpArray.set(tmpPos, a.get(leftPos));\n // increment left and tmp position\n leftPos++;\n tmpPos++;\n }\n\n // copy rest of right array if left array finished first\n while(rightPos <= rightEnd){\n tmpArray.set(tmpPos, a.get(rightPos));\n // increment right and tmp position\n rightPos++;\n tmpPos++;\n }\n\n // copy tmpArray back into array a\n for(int i = 0; i < numElements; i++){\n a.set(low+i, tmpArray.get(i));\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate static <E extends Comparable<? super E>> void merge(\r\n\t\t\tComparable<E>[] data, int first, int second, int len,\r\n\t\t\tComparable<E>[] target) {\r\n\t\t// indices from first\r\n\t\tint i = 0;\r\n\t\t// indices from second\r\n\t\tint j = 0;\r\n\t\t// index in target to copy to\r\n\t\tint t = first;\r\n\r\n\t\t// main copy smaller element into target loop\r\n\t\t// stop if the right pointer runs off the array\r\n\t\twhile (i < len && j < len && second + j < data.length) {\r\n\t\t\tint cmp = data[first + i].compareTo((E) data[second + j]);\r\n\t\t\tif (cmp > 0) {\r\n\t\t\t\ttarget[t] = data[second + j];\r\n\t\t\t\tj++;\r\n\t\t\t} else {\r\n\t\t\t\ttarget[t] = data[first + i];\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tt++;\r\n\t\t}\r\n\r\n\t\t// finish copying from the array that hasn't finished, making sure you\r\n\t\t// don't run off the end of the array\r\n\t\tif (i < len) {\r\n\t\t\t// finish copying first array\r\n\t\t\tfor (int k = i; k < len && first + k < data.length; k++) {\r\n\t\t\t\ttarget[t] = data[first + k];\r\n\t\t\t\tt++;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// finish copying second array\r\n\t\t\tfor (int k = j; k < len && second + k < data.length; k++) {\r\n\t\t\t\ttarget[t] = data[second + k];\r\n\t\t\t\tt++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void mergeSort(Comparable[] input) {\n\t\t\n\t\t// check if input array is null\n\t\tif (input == null)\n\t\t\tthrow new IllegalArgumentException(\"Input array cannot be null!\");\n\t\t\n\t\t// if input array is empty or contains only 1 element - there's no need to sort\n\t\tif (input.length < 2)\n\t\t\treturn;\n\t\t\n\t\t// set up environment\n\t\tsetUp(input);\n\t\t\n\t\t// variable to store final result list\n\t\tint list;\n\t\twhile (true) {\n\t\t\t\n\t\t\t// poll two lists from queue\n\t\t\tint list1 = poll();\n\t\t\tint list2 = poll();\n\t\t\t\n\t\t\t// merge them and save result into created variable\n\t\t\tlist = merge(list1, list2);\n\t\t\t\n\t\t\t// if queue is empty - there's nothing else to merge - break loop\n\t\t\tif (isEmpty())\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// if queue is not empty - add merged list to it\n\t\t\tadd(list);\n\t\t}\n\t\t\n\t\t// write result\n\t\twriteBack(input, list);\n\t}",
"private static void merge(ArrayList<Integer> a, int left, int mid, int right) {\n\t\tint chunk1 = mid - left + 1;\r\n\t\tint chunk2 = right - mid;\r\n\t\tArrayList<Integer> tempArrLeft = new ArrayList<>();\r\n\t\tArrayList<Integer> tempArrRight = new ArrayList<>();\r\n\t\t//pipe data into temps\r\n\t\tfor (int i=0; i < chunk1; ++i) {\r\n\t\t\ttempArrLeft.add(a.get(left + i));\r\n\t\t}\r\n\t\tfor (int j=0; j < chunk2; ++j) {\r\n\t\t\ttempArrRight.add(a.get(mid + 1 + j));\r\n\t\t}\r\n\r\n\t\t//merge temp arrays\r\n\t\tint i = 0, j = 0;\r\n\t\tint k = left;\r\n\t\twhile (i < chunk1 && j < chunk2) {\r\n\t\t\tif (tempArrLeft.get(i) <= tempArrRight.get(j)) {\r\n\t\t\t\ta.set(k, tempArrLeft.get(i));\r\n\t\t\t\ti++;\r\n\t\t\t} else {\r\n\t\t\t\ta.set(k, tempArrRight.get(j));\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t}\r\n\t\twhile (i < chunk1) {\r\n\t\t\ta.set(k, tempArrLeft.get(i));\r\n\t\t\ti++;\r\n\t\t\tk++;\r\n\t\t}\r\n\t\twhile (j < chunk2) {\r\n\t\t\ta.set(k, tempArrRight.get(j));\r\n\t\t\tj++;\r\n\t\t\tk++;\r\n\t\t}\r\n\t}",
"public void balanceHeaps(){\n \n //If max heap size is greater than min heap then pop the first element and put int min heap\n if(maxHeap.size() > minHeap.size())\n minHeap.add(maxHeap.pollFirst());\n\n }",
"private static int[] mergeSort(int numbers[]) {\n\n\t\tif (numbers.length <= 1) {\n\t\t\treturn numbers;\n\t\t}\n\n\t\tint mid = numbers.length / 2;\n\t\tint subArray1[] = new int[mid];\n\t\tint subArray2[] = new int[numbers.length - mid];\n\n\t\tint count = 0;\n\t\tfor (int i = 0; i < subArray1.length; i++) {\n\t\t\tsubArray1[i] = numbers[count++];\n\t\t}\n\t\tfor (int i = 0; i < subArray2.length; i++) {\n\t\t\tsubArray2[i] = numbers[count++];\n\t\t}\n\n\t\tsubArray1 = mergeSort(subArray1);\n\t\tsubArray2 = mergeSort(subArray2);\n\t\tnumbers = merge(subArray1, subArray2);\n\n\t\treturn numbers;\n\t}",
"static public void merge2(Comparable[]x,int ip,int im,int iu){\n\t\tObject[]aux = new Object[iu+1]; //arreglo auxiliar\n\t\tfor(int i=ip, i1=ip, i2=im+1; i<=iu; ++i)\n\t\t\tif(i1<=im && (i2>iu || x[i1].compareTo(x[i2])<0))\n\t\t\t\taux[i] = x[i1++];\n\t\t\telse\n\t\t\t\taux[i] = x[i2++];\n\t\t//copiar arreglo auxiliar en arreglo original\n\t\tfor(int i=ip; i<=iu; ++i) x[i]=(Comparable)aux[i];\n\t}",
"public static void merge(int[] array, int start, int mid, int end) {\n if (array[mid - 1] <= array[mid]) {\n return;\n }\n\n // Index variables\n int i = start;\n int j = mid;\n int tempIndex = 0;\n\n // Create a temp array large enough to hold all elements in the left and right partitions\n int[] temp = new int[end - start];\n\n // While there are elements left in any of the left and right partitions...\n while (i < mid && j < end) {\n /* \n temp[tempIndex++] = array[i] <= array[j] ? array[i++] : array[j++];\n */\n // If the left element is smaller than or equal to the right...\n if (array[i] <= array[j]) {\n // Assign the left element to the temp array, and increment tempIndex and i\n temp[tempIndex++] = array[i++];\n } else {\n // Else assign the right element to the temp array, and increment tempIndex and j\n temp[tempIndex++] = array[j++];\n }\n }\n\n // At this point, either left or right partition will now be empty. \n // Then we simply merge the rest from another partition into temp array \n // as elements left are all larger than the largest elements in the temp array.\n /*\n System.arraycopy(src, srcPos, dest, destPos, length)\n src => source array\n srcPos => source index\n dest => destination array\n destPos => destination index\n */\n\n // Start at unhandled index of the left partition and copy over the rest of the elements\n // to the end of the array from index we've copied over to temp array so far.\n // If there are left over elements in the right partitions, they're already in the end of the array.\n // In the next step, we will be copying over the sorted and merged array from temp array \n // back to the original array, so the the beginning of the array is now sorted in the original array.\n System.arraycopy(array, i, array, start + tempIndex, mid - i);\n\n // Copy the elements in the temp array back into the original array\n System.arraycopy(temp, 0, array, start, tempIndex);\n }",
"private void heapSort() {\n\n\t\tint queueSize = priorityQueue.size();\n\n\t\tfor (int j = 0; j < queueSize; j++) {\n\n\t\t\theapified[j] = binaryHeap.top(priorityQueue);\n\t\t\tbinaryHeap.outHeap(priorityQueue);\n\n\t\t}\n\n\t}",
"void doMerge() {\n int[] temp = new int[arr.length + brr.length];\n int count = 0;\n for (int i = 0; i < arr.length; i++) {\n temp[i] = arr[i];\n count++;\n }\n for (int i = 0; i < brr.length; i++) {\n temp[count++] = brr[i];\n }\n for (int i = 0; i < temp.length; i++) {\n System.out.println( temp[i] );\n }\n String a[] = {\"A\", \"E\", \"I\"};\n String b[] = {\"O\", \"U\"};\n List<String> list = new ArrayList( Arrays.asList( a ) );\n list.addAll( Arrays.asList( b ) );\n Object[] c = list.toArray();\n System.out.println( Arrays.toString( c ) );\n }",
"private void mergeHalves(int[] array, int[] temp, int leftStart, int rightEnd){\r\n int leftEnd = (rightEnd + leftStart)/2;\r\n int rightStart = leftEnd + 1;\r\n int size = rightEnd - leftStart + 1;\r\n\r\n int left = leftStart;\r\n int right = rightStart;\r\n int index = leftStart;\r\n\r\n while(left <= leftEnd && right <= rightEnd){\r\n if(array[left] <= array[right]){\r\n temp[index] = array[left];\r\n left++;\r\n }else {\r\n temp[index] = array[right];\r\n right++;\r\n }\r\n index++;\r\n }\r\n System.arraycopy(array, left, temp, index, leftEnd - left + 1);\r\n System.arraycopy(array, right, temp, index, rightEnd - right + 1);\r\n System.arraycopy(temp, leftStart, array, leftStart, size);\r\n }",
"private void sort(T[] arr, T[] temp, int lo, int hi) {\n if (lo >= hi) return; // we return if the size of the part equals 1\n int mid = lo + (hi - lo) / 2;\n sort(arr, temp, lo, mid); // sorting the left part\n sort(arr, temp, mid + 1, hi); // sorting the right part\n merge(arr, temp, lo, hi, mid); // merging two parts\n }",
"void merge(int arr[], int l, int m, int r) {\r\n\t\tint[] temp = new int[r - l + 1];\r\n\t\tint i = l;\r\n\t\tint j = m + 1;\r\n\t\tint k = 0;\r\n\t\twhile (i <= m && j <= r) {\r\n\t\t\tif (arr[i] < arr[j])\r\n\t\t\t\ttemp[k++] = arr[i++]; // same as b[k]=a[i]; k++; i++;\r\n\t\t\telse\r\n\t\t\t\ttemp[k++] = arr[j++];\r\n\t\t}\r\n\r\n\t\twhile (j <= r) {\r\n\t\t\ttemp[k++] = arr[j++];\r\n\t\t}\r\n\t\twhile (i <= m) {\r\n\t\t\ttemp[k++] = arr[i++];\r\n\t\t}\r\n\r\n\t\tfor (i = r; i >= l; i--) {\r\n\t\t\tarr[i] = temp[--k];\r\n\t\t}\r\n\t}",
"public static void mergeSort3WayRec(Integer[] gArray, int low, int high, Integer[] destArray) {\n//Si el array tiene tamaño 1 no haga nada \n\t\tif (high - low < 2) {\n\t\t\treturn;\n\t\t}\n// Separando el array en tres partes \n\t\tint mid1 = low + ((high - low) / 3);\n\t\tint mid2 = low + 2 * ((high - low) / 3) + 1;\n// Ordenando las tres partes recursivamente \n\t\tmergeSort3WayRec(destArray, low, mid1, gArray);\n\t\tmergeSort3WayRec(destArray, mid1, mid2, gArray);\n\t\tmergeSort3WayRec(destArray, mid2, high, gArray);\n// Uniendo las tres partes\n\t\tmerge(destArray, low, mid1, mid2, high, gArray);\n\t}",
"static void merge(double a[],int start,int mid, int end) {\r\n \tint i,j,k;\r\n \tint size1 = mid - start +1;\r\n \tint size2 = end - mid;\r\n \tif (size2 > 0 && size1 > 0) {\r\n \t\tdouble leftA[] = new double[size1]; // temp arrays\r\n \tdouble rightA[] = new double[size2];\r\n \tfor(i=0;i < size1;i++) leftA[i] = a[start+i]; //Copy data into temp arrays \r\n \tfor(j=0;j<size2;j++) rightA[j] = a[mid+1+j];\r\n \ti=0; // Merge temp arrays back into a[]\r\n \tj=0;\r\n \tk=start;\r\n \twhile (i<size1 && j < size2) {\r\n \t\tif(leftA[i]<=rightA[j]) {\r\n \t\t\ta[k]=leftA[i];\r\n \t\t\ti++;\r\n \t\t}else {\r\n \t\t\ta[k]=rightA[j];\r\n \t\t\tj++;\r\n \t\t}\r\n \t\tk++;\r\n \t}\r\n \twhile(i<size1) { //if remaining in leftA[] copy in\r\n \t\ta[k]=leftA[i];\r\n \t\ti++;\r\n \t\tk++;\r\n \t}\r\n \twhile(j<size2) { //if remaining in rightA[] copy in\r\n \t\ta[k]=rightA[j];\r\n \t\tj++;\r\n \t\tk++;\r\n \t}\r\n \t}\t\r\n }",
"public static int[] mergeSortedArrayInPlace(int[] a, int[] b) {\n\t\tint i = 0;\n\t\twhile (i < a.length && a[i] != 0)\n\t\t\ti++;\n\t\ti--;\n\t\tint j = b.length - 1;\n\t\tint cur = a.length - 1;\n\t\twhile (i >= 0 || j >= 0) {\n\t\t\tif (i >= 0 && j >= 0) {\n\t\t\t\tif (a[i] > b[j]) {\n\t\t\t\t\ta[cur--] = a[i];\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\ta[cur--] = b[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t} else if (j >= 0) {\n\t\t\t\ta[cur--] = b[j];\n\t\t\t\tj--;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn a;\n\t}",
"public void merge(Heap<E> other) throws ClassCastException,NullPointerException,IllegalArgumentException,IllegalStateException {\n this.addAll(other);\n }",
"public static void main(String[] args) {\n\t\tint a[] = { 9, 3, 6, 4, 7, 2, 1 }; // size=7\n\t\tint b[] = { 14, 3, 2, 6, 9, 7 }; //size =6\n\t\tint c[] = {24,23,12,13,7,6,7,2}; // size=8\n\t\tint d[] = new int[a.length + b.length+c.length];\n\t\t\n\t\t\n\t\t\n\t//merging\n\t\t\n\t\t\n\t\t\n\t\tfor (int i = 0; i < a.length; i++) \n\t{ \n\t\t\td[i] = a[i];\n\n\t}\n\t\tint k = 0;\n\t\tfor (int j = a.length; j < a.length+b.length; j++) \n\t{\n\t\t\td[j] = b[k];\n\t\t\tk = k + 1;\n\n\t}\n int m=0;\n\t\tfor (int l = a.length+b.length; l < d.length; l++)\n\t{\n\t\t d[l]=c[m];\t\n\t\t m=m+1;\n\n\t}\n\t\t//merging print statement\n\t\tfor (int i =0;i < d.length; i++)\n\t\t{\n\t\t\t /// System.out.print(d[i]+\" \");\n\t\t}\n\t\t\n\t\t \n\t\t//duplicate checking\n\t\tfor (int i =0;i < d.length; i++)\n\t\t\t\n\t\t{\n\t\t\tfor (int j =i+1;j < d.length; j++)\t\n\t\t\t{\n\t\t\t\tif(d[i]==d[j])\n\t\t\t\t{\n\t\t\t\t\td[j]=0;\n\t\t\t\t}\n\t\t\t\tif (d[i] > d[j])\n\n\t\t\t\t{ // sorting swap logic\n\t\t\t\t\t//int temp; \n\t\t\t\t\t//temp = d[i]; \n\t\t\t\t//\td[i] = d[j]; \n\t\t\t\t//\td[j] = temp;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\td[i] = d[i] + d[j];\n\t\t\t\t\td[j] = d[i] - d[j];\n\t\t\t\t\td[i] = d[i] - d[j];\n\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\t\n\t} //removing the finding duplicates\n\t\tfor (int h =0;h < d.length; h++)\n\t\t{\n\t\t\tif(d[h]!=0)\n\t\t\t{\n\t\t\t\tSystem.out.print(d[h]+\" \");\n\t\t\t}\n\t\t}\n\n}",
"private static <T extends Comparable<T>> void mergeSort(T[] arrayToSort, int startIndex, int endIndex) {\n if(startIndex + 1 < endIndex) {\n int centerIndex = (endIndex + startIndex)/2;\n mergeSort(arrayToSort, startIndex, centerIndex); // sort left half\n mergeSort(arrayToSort, centerIndex, endIndex); // sort right half\n merge(arrayToSort, startIndex, centerIndex, endIndex); // merge two, sorted halves\n }\n }"
] | [
"0.70106876",
"0.67598933",
"0.66796666",
"0.64281726",
"0.63929385",
"0.6382088",
"0.63804173",
"0.63618594",
"0.6268902",
"0.6254369",
"0.62495714",
"0.6219984",
"0.62156737",
"0.6207015",
"0.62057847",
"0.62036425",
"0.6189196",
"0.61740255",
"0.6169393",
"0.6152793",
"0.61456466",
"0.61440784",
"0.61146355",
"0.6104376",
"0.6104309",
"0.6098793",
"0.6098464",
"0.6086257",
"0.6085461",
"0.60806996",
"0.60684144",
"0.60600156",
"0.60592085",
"0.60445803",
"0.6042268",
"0.603531",
"0.6027703",
"0.60209167",
"0.6020743",
"0.60180455",
"0.60153717",
"0.5987454",
"0.5986236",
"0.59843826",
"0.59788376",
"0.5975095",
"0.59726644",
"0.5969844",
"0.59664863",
"0.59607947",
"0.5956262",
"0.594508",
"0.5936313",
"0.5936303",
"0.5928942",
"0.5919778",
"0.5918315",
"0.5915399",
"0.59147906",
"0.5907895",
"0.5893546",
"0.588812",
"0.58873117",
"0.5885718",
"0.58845216",
"0.5864184",
"0.5853525",
"0.5845701",
"0.5843694",
"0.5834446",
"0.58281994",
"0.582588",
"0.58219576",
"0.5819654",
"0.5815973",
"0.58157504",
"0.58152443",
"0.58099896",
"0.5804083",
"0.5800864",
"0.5800289",
"0.57971036",
"0.5794623",
"0.57937163",
"0.57909054",
"0.57870954",
"0.5786828",
"0.5785796",
"0.57842964",
"0.57827187",
"0.5774134",
"0.57672876",
"0.5767038",
"0.57511145",
"0.57497275",
"0.57462907",
"0.5745421",
"0.5740318",
"0.5737626",
"0.573154"
] | 0.7555624 | 0 |
No necessary function, as my attempt at the sort involved encapsulating everything within a FHbinheap | public static ArrayList<HeapTuple[]> getHeapsUsed(){
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void heapSort() {\n\n\t\tint queueSize = priorityQueue.size();\n\n\t\tfor (int j = 0; j < queueSize; j++) {\n\n\t\t\theapified[j] = binaryHeap.top(priorityQueue);\n\t\t\tbinaryHeap.outHeap(priorityQueue);\n\n\t\t}\n\n\t}",
"private HuffmanTreeNode[] heapify(int freq[][]) {\n\t\tHuffmanTreeNode[] heap = new HuffmanTreeNode[freq.length];\n\t\tfor (int i = 0; i < freq.length; i++)\n\t\t{\n\t\t\theap[i] = new HuffmanTreeNode(freq[i][1], freq[i][0], null, null);\n\t\t}\n\t\t\n\t\theap = heapSort(heap);\n\n\t\treturn heap;\n\t}",
"private void heapify() {\n\t\tint currIndex = 0;\n\t\twhile (currIndex < heapSize) {\n\t\t\tT val = lstEle.get(currIndex);\n\t\t\tint leftSubtreeIndex = getLeftSubtree(currIndex);\n\t\t\tint rightSubtreeIndex = getRightSubtree(currIndex);\n\t\t\tT leftChildVal = leftSubtreeIndex < heapSize ? lstEle.get(leftSubtreeIndex) : null;\n\t\t\tT rightChildVal = rightSubtreeIndex < heapSize ? lstEle.get(rightSubtreeIndex) : null;\n\t\t\t\n\t\t\tT minVal = null;\n\t\t\tint minValIndex = -1;\n\t\t\tif(leftChildVal != null && rightChildVal != null){\n\t\t\t\tint compVal = leftChildVal.compareTo(rightChildVal); \n\t\t\t\tif(compVal < 0){\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t}else {\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(leftChildVal != null && leftChildVal.compareTo(val) < 0){\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t}else if (rightChildVal != null && rightChildVal.compareTo(val) < 0 ){\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\tMin Val : \" +minVal +\" --> \" +minValIndex);\n\t\t\t\n\t\t\tlstEle.set(currIndex, minVal);\n\t\t\tcurrIndex = minValIndex;\n\t\t\tlstEle.set(minValIndex, val);\n\t\t\t\n\t\t}\n\n\t}",
"public static void mergeSortedArrays(final int MEM_SIZE, ArrayList<Integer []> inputChunks, HeapTuple[] minHeap, String outfile, final boolean ENABLE_DEBUG){\n\n FileOutputStream out;\n try{\n out = new FileOutputStream(outfile);\n }\n catch (FileNotFoundException e){\n System.err.println(e);\n return;\n }\n PrintWriter sortedFiles = new PrintWriter(out, true);\n\n int tempLength = 0;\n FHbinHeap<Integer> heap = new FHbinHeap<>();\n for (int i = 0; i < inputChunks.size(); i++) {\n Integer[] temp = inputChunks.get(i).clone();\n for(int j = 0; j < temp.length; j++){\n //Integer[] temp = inputChunks.get(i).clone();\n //System.out.print(temp[j] + \",\");\n int hi = temp[j];\n heap.insert(hi);\n }\n tempLength += temp.length;\n }\n System.out.println();\n for(int i = 0; i < tempLength; i++){\n int removal = heap.remove();\n System.out.print(removal + \",\");\n sortedFiles.print(removal + \",\");\n }\n sortedFiles.close();\n\n\n\n\n\n/* FAILED CODE\n\n Due to our sorting of the arrays, the minimum of the entire set must be the minimum of the set of the first element for all chunks\n By adding an offset to the array whose\n\n\n FHbinHeap<HeapTuple> metaHeap = null;\n HeapTuple[] heapElement = null;\n // Probably should just be a FHbinheap\n for (int i = 0; i < inputChunks.size(); i++) {\n for (int j = 0; j < MEM_SIZE; i++) {\n heapElement[i] = new HeapTuple(inputChunks.get(i)[j], i, j);\n metaHeap.insert(heapElement[i]);\n System.out.println(metaHeap.remove());\n //sortedFiles.println(metaHeap.remove());\n }\n }\n\n*/\n\n\n //First MEM_SIZE minima, no order\n /*/*\n int removed = 0;\n int [] arrayShift = new int[MEM_SIZE];\n //int innerIndex = 0;\n\n int tempLength = 0;\n\n int tempMin = 0;\n int tempMinIndex = 0;\n FHbinHeap<Integer> heap = new FHbinHeap<>();\n for (int j = 0; j < 5; j++) {\n //System.out.println(arrayShift[0] + \"ARRAYSHIFT\");\n for (int i = 0; i < inputChunks.size(); i++) {\n //FHbinHeap<Integer> heap = new FHbinHeap<>();\n Integer[] temp = inputChunks.get(i).clone();\n //System.out.println(temp[arrayShift[i]] + \",\");\n if (temp[arrayShift[i]] < tempMin) {\n tempMin = temp[arrayShift[i]];\n tempMinIndex = i;\n }\n\n\n for(int j = arrayShift[i]; j < temp.length; j++){\n //Integer[] temp = inputChunks.get(i).clone();\n System.out.print(temp[j] + \",\");\n //int hi = temp[j];\n //heap.insert(hi);\n }\n\n tempLength += temp.length;\n heap.insert(temp[arrayShift[i]]);\n //System.out.print(temp[arrayShift[i]]+ \",\");\n\n\n //int heapRemove = heap.remove();\n if (i == inputChunks.size() - 1) {\n removed = heap.remove();\n System.out.println();\n System.out.println(removed + \",MINIMUM\");\n arrayShift[tempMinIndex] = (arrayShift[tempMinIndex] + 1);\n }\n\n }\n }\n */\n\n\n\n\n }",
"public void balanceHeaps(){\n \n //If max heap size is greater than min heap then pop the first element and put int min heap\n if(maxHeap.size() > minHeap.size())\n minHeap.add(maxHeap.pollFirst());\n\n }",
"public void mergesort()\n { sort(this.heap, 0, heap.size()-1);\n }",
"static void heapSort(int[] input){\n int len = input.length;\n for(int i=(len/2)-1;i>=0;i--){\n heapify(input,i,len);\n }\n for(int i = len-1;i>=0;i--){\n int temp = input[0];\n input[0] = input[i];\n input[i] = temp;\n heapify(input,0,i);\n }\n }",
"public static void main(String[] args) {\n\r\n\t\tint [][] arr = new int[][] {\r\n\t\t\t{8,9,10,12},\r\n\t\t\t{2,5,9,12},\r\n\t\t\t{3,6,10,11},\r\n\t\t\t{1,4,7,8}\r\n\t\t};\t\t\r\n\t\t\r\n\t\tPriorityQueue<HeapNode> heap = new PriorityQueue<>();\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\t{\r\n\t\t\theap.offer(new HeapNode(arr[i][0], i, 0));\r\n\t\t}\r\n\t\tint count=0;\r\n\t\twhile(count<16)\r\n\t\t{\r\n\t\t\tHeapNode min = heap.poll();\r\n\t\t\tSystem.out.println(min.value);\r\n\t\t\tcount++;\r\n\t\t\tint value=0;\r\n\t\t\tint nextIndex=min.index+1;\r\n\t\t\tif(nextIndex < arr[min.k].length)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tvalue=arr[min.k][nextIndex];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tvalue=Integer.MAX_VALUE;\r\n\t\t\t}\r\n\t\t\theap.offer(new HeapNode(value, min.k, nextIndex));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void heapSort() {\n MyHeap heap = new MyHeap();\n heap.makeHeap((Comparable) array[0]);\n for (int i = 1; i < array.length; i++) {\n heap.insert((Comparable) array[i]);\n }\n int i = 0;\n while (!heap.isEmpty()) {\n array[i] = (T) heap.findMin();\n heap.deleteMin();\n i++;\n }\n }",
"public static void sort(Comparable[] pq) {\n int n = pq.length;\n \n /*\n * Fill in this method! Use the code on p. 324 of the book as a model,\n * but change it so each node in the heap has 3 children instead of 2.\n */\n }",
"private MyList<PartidaVacuna> heapSort(MyList<PartidaVacuna> listaDesordenada) {\n MyList<PartidaVacuna> salida = new MyLinkedListImpl<>();\n MyHeap<PartidaVacuna> heap = new MyHeapImpl<>();\n\n // insertar valores en el heap\n\n for (PartidaVacuna temp : listaDesordenada) {\n heap.insert(temp);\n }\n\n // quitar del heap y agregar en lista resultado\n\n for (int i = 0; i < heap.size(); i++) {\n salida.add(heap.delete());\n }\n\n return salida;\n }",
"private void heapify() {\n for (int i=N/2; i>=1; i--)\n sink(i);\n }",
"public static void heapify() {\n //배열을 heap 자료형으로 만든다.\n // 1d 2d 2d 3d 3d 3d 3d 4d\n// int[] numbers = {9, 12, 1, 3, 6, 2, 8, 4};\n // 1depth의 자식노드 numbers[2i], numbers[2i+1]\n int[] numbers = {4, 1, 3, 2, 16, 9, 10, 14, 8, 7};\n int i = 1;\n while (true) {\n int target = numbers[i-1];\n int left = numbers[2*i-1];\n\n if (2*i == numbers.length) {\n if (left > target){\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n print(numbers);\n break;\n }\n int right =numbers[2*i];\n\n if (left > right) {\n if(left > target) {\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n }else if (right > left) {\n if (right > target) {\n numbers[i-1] = right;\n numbers[2*i] = target;\n }\n }\n i++;\n\n print(numbers);\n }\n\n }",
"private void fixHeap(){\r\n int i = 1;\r\n int v = array[i].value.getYear();\r\n while(hasChildren(i)){\r\n Node left = array[getLeftChildIndex(i)];\r\n Node right = array[getRightChildIndex(i)];\r\n if(left != null){\r\n if(right != null){\r\n if(left.value.getYear() < right.value.getYear()){\r\n if(v > left.value.getYear()){\r\n swap(array[i], left);\r\n i = getLeftChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n else{\r\n if(v > right.value.getYear()){\r\n swap(array[i], right);\r\n i = getRightChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n if(v > left.value.getYear()){\r\n swap(array[i], left);\r\n i = getLeftChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n\r\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tfor (int i = 0; i < 1000000; i++) {\n\t\t\t\tint[] a = Util.generateRandomArray(500, 200000);\n\t\t\t\tint[] b = a.clone();\n\t\t\t\t\n\t\t\t\ta = sort(a);\n\t\t\t\tArrays.sort(b);\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < b.length; j++) {\n\t\t\t\t\tUtil.Assert(a[j] == b[j], \"shit\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Heap sort ok\");\n\t\t}",
"protected void heapify(int i) {\n \tE temp;\n\t\tE left = null;\n\t\tE right = null;\n\t\tE current = internal[i];\n\n\t\tif(left(i) < heapSize) left = internal[left(i)];\n\t\tif(right(i) < heapSize ) right = internal[right(i)];\n\n\t\tif(left != null && right != null){\n\t\t\tif(compy.compare(current, right) < 0 && compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tif(compy.compare(right, left) < 0){\n\t\t\t\t\tinternal[i] = left;\n\t\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\t\theapify(left(i));\n\t\t\t\t}else{\n\t\t\t\t\tinternal[i] = right;\n\t\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\t\theapify(right(i));\n\t\t\t\t}\n\t\t\t}else if(compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[left(i)];\n\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\theapify(left(i));\n\t\t\t}else if(compy.compare(current, right) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[right(i)];\n\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\theapify(right(i));\n\t\t\t}\n\t\t}else if(left != null){\n\t\t\tif(compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[left(i)];\n\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\theapify(left(i));\n\t\t\t}\n\t\t}else if(right != null){\n\t\t\tif(compy.compare(current, right) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[right(i)];\n\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\theapify(right(i));\n\t\t\t}\n\t\t}\n }",
"public static void HeapSort(int a[]) \n\t { \n\t int n = a.length; \n\t \n\t \t for (int i = n / 2 - 1; i >= 0; i--) \n\t heapify(a, n, i); \n\t \n\t for (int i=n-1; i>=0; i--) \n\t { \n\t \n\t int temp = a[0]; \n\t a[0] = a[i]; \n\t a[i] = temp; \n\t \n\t heapify(a, i, 0); \n\t } \n\t }",
"private void heapify(int idx) {\r\n // TODO\r\n }",
"@Before\n public void setUpBinaryMinHeaps() {\n empty = new BinaryMinHeap<>();\n emptyArr = new ArrayList<>();\n \n multipleElements = new BinaryMinHeap<>();\n multipleElements.insert(7);\n multipleElements.insert(8);\n multipleElements.insert(5);\n multipleElements.insert(3);\n multipleElements.insert(2);\n multipleElements.insert(6);\n \n multiArr = new ArrayList<>();\n multiArr.add(2);\n multiArr.add(3);\n multiArr.add(6);\n multiArr.add(8);\n multiArr.add(5);\n multiArr.add(7);\n \n }",
"public static void heapsort(int[]data){\n buildHeap(data);\n int j = data.length;\n for (int i=0; i<data.length; i++){\n remove(data,j);\n j--;\n }\n }",
"public static void main(String[] args) {\n int[] numeros = new int[20];\n Random rand = new Random();\n\n for (int i = 0; i < 20; i++){\n numeros[i] = rand.nextInt();\n }\n\n Sorter sort = new Sorter();\n sort.heapSort(numeros);\n\n for (int i = 0; i < 20; i++){\n System.out.println(numeros[i]+\" \");\n }\n\n }",
"public static void heapSort(int arr[]) {\n int n = arr.length;\n\n //Creating heap\n for (int i = n / 2 - 1; i >= 0; i--)\n heapify(arr, n, i);\n\n //Taking elements from heap one by one\n for (int i = n - 1; i > 0; i--) {\n //Place current root to end\n int temp = arr[0];\n arr[0] = arr[i];\n arr[i] = temp;\n\n //Call max heapify\n heapify(arr, i, 0);\n }\n }",
"private static <T extends Comparable<T>> void buildHeap(T[] table)\n {\n int n = 1;\n while (n < table.length)\n {\n n++;\n int child = n-1;\n int parent = (child - 1) / 2;\n while (parent >=0 && table[parent].compareTo(table[child]) < 0)\n {\n swap (table, parent, child);\n child = parent;\n parent = (child - 1) / 2;\n }//end while\n }//end while\n }",
"@Override\n protected void downHeap(int k)\n {\n while (2 * k <= this.count)\n {\n //identify which of the 2 children are smaller\n int j = 2 * k;\n if (j < this.count && this.isGreater(j, j + 1))\n {\n j++;\n }\n //if the current value is < the smaller child, we're done\n if (!this.isGreater(k, j))\n {\n break;\n }\n //if not, swap and continue testing\n this.swap(k, j);\n k = j;\n }\n \tthis.elementsToArrayIndex.put(elements[k], k);\n }",
"private static Node binomialHeapMerge(BinomialHeap h1, BinomialHeap h2) {\n\t\t\n\t\t// checking for null values\n\t\tif(h1.head == null)\n\t\t\treturn h2.head;\n\t\tif(h2.head == null)\n\t\t\treturn h1.head;\n\t\t\n\t\t// initialize pointers\n\t\t// initialize the first pointer based on smallest node in both heaps\n\t\tNode first = null;\n\t\tNode curr = null;\n\t\tNode currh1 = h1.head;\n\t\tNode currh2 = h2.head;\n\t\tif (currh1.degree < currh2.degree) { \n first = currh1;\n currh1 = currh1.rightSibling;\n }\n else {\n \tfirst = currh2;\n currh2 = currh2.rightSibling;\n }\n\t\t\n\t\t// loop over remaining values by attaching the smallest degree element\n\t\t// one at a time until one of the pointers becomes null\n\t\tcurr = first;\n\t\twhile (currh1!=null && currh2!=null) {\n\t if (currh1.degree < currh2.degree) { \n\t curr.rightSibling = currh1;\n\t currh1 = currh1.rightSibling;\n\t }\n\t else {\n\t curr.rightSibling = currh2;\n\t currh2 = currh2.rightSibling;\n\t }\n\t \n\t curr = curr.rightSibling;\n\t }\n\t \n\t\t// attach the remaining of the other list to current list's right\n\t if (currh1!=null)\n\t curr.rightSibling = currh1;\n\t else\n\t curr.rightSibling = currh2;\n\n\t //return the head of newly formed list of heaps\n\t return first;\n\t}",
"void sort(int a[]) throws Exception {\n\n // Make the input into a heap\n for (int i = a.length-1; i >= 0; i--)\n reheap (a, a.length, i);\n\n // Sort the heap\n for (int i = a.length-1; i > 0; i--) {\n int T = a[i];\n a[i] = a[0];\n a[0] = T;\n pause();\n reheap (a, i, 0);\n }\n }",
"public static void main(String[] args) {\n \n int swap = 0;\n \n Scanner scan = new Scanner(System.in);\n System.out.print(\"Kaç elemanlı = \");\n int max = scan.nextInt();\n\n int[] toSortArray = new int[max];\n\n toSortArray[0] = 0;\n\n for (int i = 1; i < max; i++) {\n\n toSortArray[i] = (int) (Math.random() * 100);\n toSortArray[0]++; //holds the number of values in the array;\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp;\n index = index / 2;\n\n }\n\n\t\t\t//Hence the heap is created!\n }\n\n System.out.println(\"The array to be sorted is:\");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n\n }\n\n System.out.println(\" | \");\n\n\t\t//Start\n\t\t//Let's Sort it out now!\n while (toSortArray[0] > 0) {\n\n int temp = toSortArray[1];\n toSortArray[1] = toSortArray[toSortArray[0]];\n toSortArray[toSortArray[0]] = temp;\n\n for (int i = 1; i < toSortArray[0]; i++) {\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp1 = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp1;\n index = index / 2;\n swap = swap+1;\n\n }\n\n }\n\n toSortArray[0]--;\n\n }\n\n\t\t//End\n System.out.println(\"The sorted array is: \");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n }\n\n System.out.println(\" | \");\n System.out.println(max + \" eleman için \"+ swap + \" adet eleman yerdeğiştirildi. \" );\n\n }",
"public static <Key extends Comparable<Key> > void sort (Key [] a){\n int n=a.length;\n //rearrange the array to a max heap\n for (int k=n/2;k>=1;k--) sink(a,k,n);\n for ( int i=0;i<a.length;i++){\n exch(a,1,n--);\n sink(a,1,n);\n }\n\n }",
"@Test\n\tpublic void testHeapify() {\n\t\tHeap heap = new Heap(testArrayList);\n\t\theap.heapify(0);\n\t\tArrayList<Integer> expected = new ArrayList<>(\n\t\t\t\tArrays.asList(3, 5, 33, 36, 15, 70, 24, 47, 7, 27, 38, 48, 53, 32, 93));\n\t\tassertEquals(expected, heap.getHeapArray());\n\t}",
"public void quicksort()\n { quicksort(this.heap, 0, heap.size()-1);\n }",
"private static <T> void heapify (HeapSet<T> heap) {\r\n\t\tfor (int i = heap.size () - 1; i >= 0; --i) {\r\n\t\t\tsiftDown (heap, i, heap.size ());\r\n\t\t}\r\n\t}",
"private void heapify(int left, int right) {\r\n\t\tint k = 2 * left;\r\n\r\n\t\tif (k > right)\r\n\t\t\treturn;\r\n\r\n\t\tif ((k + 1) > right) {\r\n\t\t\tif (c[k - 1].compareTo(c[left - 1]) > 0)\r\n\t\t\t\tswitchElements(left - 1, k - 1);\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (c[k - 1].compareTo(c[k]) < 0)\r\n\t\t\tk++;\r\n\r\n\t\tif (c[left - 1].compareTo(c[k - 1]) < 0) {\r\n\t\t\tswitchElements(left - 1, k - 1);\r\n\t\t\theapify(k, right);\r\n\t\t}\r\n\t}",
"private <E extends Comparable<E>> void heapify(E[] array){\n\t\tif(array.length > 0){\n\t\t\tint n = 1;\n\t\t\twhile( n < array.length){\t//for each value in the array\n\t\t\t\tn++;\n\t\t\t\t\n\t\t\t\tint child = n-1;\n\t\t\t\tint parent = (child-1)/2;\n\t\t\t\twhile(parent >= 0 && array[parent].compareTo(array[child]) < 0){\t//if the heap property isn't observed between the parent and child, swap them and readjust parent/child values until it is\n\t\t\t\t\tabstractSorter.swap(array, parent, child);\n\t\t\t\t\tchild = parent;\n\t\t\t\t\tparent = (child-1)/2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void test() {\n List<Integer> list = Arrays.asList(48, 12, 24, 7, 8, -5, 24, 391, 24, 56, 2, 6, 8, 41);\n Heap minHeap = new Heap(Heap.MIN_HEAP, list);\n List<Integer> expected = Arrays.asList(-5, 2, 6, 7, 8, 8, 24, 391, 24, 56, 12, 24, 48, 41);\n Assert.assertArrayEquals(expected.toArray(), minHeap.heap.toArray());\n Heap maxHeap = new Heap(Heap.MAX_HEAP, list);\n Assert.assertArrayEquals(expected.toArray(), maxHeap.heap.toArray());\n }",
"public void heapSort(int[] arr){\n \n int mid = arr.length/2 ;\n \n /* build max-heap step- does not gurantee sorted order*/\n for(int i = mid; i >= 0; i--){\n heapify(arr,i, arr.length);\n }\n \n /*sorting in ascending order*/\n for(int i = nums.length - 1; i >=0; i--){\n /*swap largest element (at index 0) with last index*/\n swap(nums,0,i);\n heapify(nums,0,i); // note- here we consider length of array to be i, as we dont wanna run the algo for entire length of array\n } \n \n \n \n }",
"public static Object PQdownheap(Object... arg) {\nUNSUPPORTED(\"c01vxogao855zs8fe94tpim9g\"); // void\nUNSUPPORTED(\"5jo6sukhc9upf5qv4eukh8kop\"); // PQdownheap (int k)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"dd3235mkocimg2v70ln8ixz3k\"); // snode* x = pq[k];\nUNSUPPORTED(\"e0wd4mp2k58ml2bf01e6mtxfc\"); // int v = (x)->n_val;\nUNSUPPORTED(\"b9pl90rstqz0jhnw3ttda3kx5\"); // int lim = PQcnt/2;\nUNSUPPORTED(\"917ffzmzxsh6kw3txaqow8dv0\"); // snode* n;\nUNSUPPORTED(\"zrgst5t0lhf2kxrym9g7gvsn\"); // int j;\nUNSUPPORTED(\"7bbx1rekibyh3hyxh24lprwwk\"); // while (k <= lim) {\nUNSUPPORTED(\"disb3eax2r4wgge9im541y9hv\"); // j = k+k;\nUNSUPPORTED(\"e4w7jx4o3i4gav8ujef2bapbn\"); // n = pq[j];\nUNSUPPORTED(\"4yles8zr6ozg2g0df2jefc1l2\"); // if (j < PQcnt) {\nUNSUPPORTED(\"77cupwd0hd3zp8he6wd4tm6nx\"); // if ((n)->n_val < (pq[j+1])->n_val) {\nUNSUPPORTED(\"1jeqo15tfc6vbefwf85bniwfn\"); // j++;\nUNSUPPORTED(\"1sglut5nbxcoto9tvzxs3eixh\"); // n = pq[j];\nUNSUPPORTED(\"dquo3qofk56ds5xl95lhvcthf\"); // }\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"3hshbuqs95898wh95e2fdh5uz\"); // if (v >= (n)->n_val) break;\nUNSUPPORTED(\"4i53ezzk69bsmpugd2h8bo35\"); // pq[k] = n;\nUNSUPPORTED(\"iolnc8pg22pbme3zbdim1eqy\"); // (n)->n_idx = k;\nUNSUPPORTED(\"8lpwfkimmel90007dlp5eqpbh\"); // k = j;\nUNSUPPORTED(\"7ijd6pszsxnoopppf6xwo8wdl\"); // }\nUNSUPPORTED(\"1lxwoekai0i8v3rg0vrg6ahmx\"); // pq[k] = x;\nUNSUPPORTED(\"7ss0wudteh17yswf0ihopig7z\"); // (x)->n_idx = k;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}",
"public void makeHeap() {\r\n\t\t//for (int i = (theHeap.size() >> 1) - 1; i >= 0; i--) {\r\n\t\tfor (int i = (theHeap.size() - 1) >> 1; i >= 0; i--) {\r\n\t\t\tsiftDown(i);\r\n\t\t}\r\n\t}",
"@Test\n public void canHeapSort(){\n int[] array = {5, 6, 3, 7, 9, 1};\n heapSort(array);\n for (int elem : array) {\n System.out.println(elem + \" \");\n }\n }",
"static void heapSort(ArrayList<Integer> arr, int n) {\r\n\t\tint z = n / 2 - 1;\r\n\t\tdo {\r\n\t\t\theapify(arr, n, z);\r\n\t\t\tz--;\r\n\t\t} while (z >= 0);\r\n\t\tint i = n - 1;\r\n\t\twhile (i >= 0) {\r\n\t\t\tint temp = arr.get(0);\r\n\t\t\tarr.set(0, arr.get(i));\r\n\t\t\tarr.set(i, temp);\r\n\t\t\theapify(arr, i, 0);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}",
"public static void heapify(Integer arr[])\n {\n N = arr.length-1;\n for (int i = N/2; i >= 0; i--)\n maxheap(arr, i);\n }",
"private void heapifyAdd() {\n // TODO. The general idea of this method is that we are checking whether the \n // most recently added item, which has been put at the end of the array, \n //needs to be swapped with its parent. We do this in a loop, until a swap isn’t needed or we reach the root. This is not recursive.\n\n // Pseudocode:\n // assign newly added item to a temp var.\n // use an index variable to keep track of the index where that value was added\n // while the index isn’t pointing at the root, and while the node at this index is greater than the node at its parent:\n // copy the parent node to the index location (move parent node down the heap)\n // set the index to the parent index\n // when we are at the root, or the parent of current index isn’t bigger, we are done\n // copy the temp variable to the location of the current index. \n T temp;\n int next = count - 1;\n\n temp = heap[next];\n\n while ((next != 0) && (((Comparable) temp).compareTo(heap[(next - 1) / 2]) > 0)) {\n heap[next] = heap[(next - 1) / 2];\n next = (next - 1) / 2;\n }\n heap[next] = temp;\n }",
"@Test\n public void heapSort(){\n int[] array = {3, 9, 6, 5, 2, 8, 7};\n SortTestHelper.testSort(new QuickSort(), array);\n SortTestHelper.print(array);\n }",
"public static Object PQupheap(Object... arg) {\nUNSUPPORTED(\"c01vxogao855zs8fe94tpim9g\"); // void\nUNSUPPORTED(\"5hhoge8azwixhuw1r6f1ae6d\"); // PQupheap(int k)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"7e1sq1127wt16hr7o0andcwob\"); // snode* x = pq[k];\nUNSUPPORTED(\"7bfu0p9xmzkty10xv4n4l5cqs\"); // int v = x->n_val;\nUNSUPPORTED(\"1j1bbq23z0qzohezignztjo66\"); // int next = k/2;\nUNSUPPORTED(\"ae5pat4mp4l6k25pvk8saz8c7\"); // snode* n;\nUNSUPPORTED(\"70492o1szwz9au93c3is2goa\"); // while ((n = pq[next])->n_val < v) {\nUNSUPPORTED(\"4i53ezzk69bsmpugd2h8bo35\"); // pq[k] = n;\nUNSUPPORTED(\"iolnc8pg22pbme3zbdim1eqy\"); // (n)->n_idx = k;\nUNSUPPORTED(\"8fpdpgwovt0k58t5u167v63is\"); // k = next;\nUNSUPPORTED(\"eqtnhenyor3dwsa6on9crthdd\"); // next /= 2;\nUNSUPPORTED(\"7ijd6pszsxnoopppf6xwo8wdl\"); // }\nUNSUPPORTED(\"1lxwoekai0i8v3rg0vrg6ahmx\"); // pq[k] = x;\nUNSUPPORTED(\"7ss0wudteh17yswf0ihopig7z\"); // (x)->n_idx = k;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}",
"void buildHeap() {\n\tfor(int i=parent(size-1); i>=0; i--) {\n\t percolateDown(i);\n\t}\n }",
"public static void heapSort(int[] arr){\n for(int i = arr.length / 2 - 1; i >= 0; i--){\n heapify(arr, i, arr.length - 1);\n }\n\n //now that I have a heap, I can repeatedly take out the\n //max item from the heap, and heapify starting from the root node\n for(int i = arr.length - 1; i > 0; i--){\n SortHelper.swap(arr, 0, i);\n heapify(arr, 0, i - 1);\n }\n\n }",
"private void heapifyRemove() {\n // this is called after the item at the bottom-left has been put at the root\n // we need to see if this item should swap down\n int node = 0;\n int left = 1;\n int right = 2;\n int next;\n\n // store the item at the root in temp\n T temp = heap[node];\n\n // find out where we might want to swap root \n if ((heap[left] == null) && (heap[right] == null)) {\n next = count; // no children, so no swapping\n return;\n } else if (heap[right] == null) {\n next = left; // we will check left child\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) { // figure out which is the biggest of the two children\n next = left; // left is bigger than right, so check left child\n } else {\n next = right; // check right child\n }\n\n // compare heap[next] to item temp, if bigger, swap, and then repeat process\n while ((next < count) && (((Comparable) heap[next]).compareTo(temp) > 0)) {\n heap[node] = heap[next];\n node = next;\n left = 2 * node + 1; // left child of current node\n right = 2 * (node + 1); // right child of current node\n if ((heap[left] == null) && (heap[right] == null)) {\n next = count;\n } else if (heap[right] == null) {\n next = left;\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) {\n next = left;\n } else {\n next = right;\n }\n }\n heap[node] = temp;\n\n }",
"private synchronized void freshSort(){\n Process[] newQueue = new Process[pros.proSize()];\n for(int i = 0; i <queue.length; i++){\n if(pros.isInList(queue[i])){\n newQueue[i] = queue[i];\n }\n }\n queue = new Process[pros.proSize()];\n queue = newQueue;\n }",
"private int compare(int i, int j) {\n return heap[i-1].compareTo(heap[j-1]);\n }",
"private void heapify(int[] arr, int i, int end){\n \n int largest = i;\n int left = 2 * i + 1;\n int right = 2 * i + 2;\n \n if(left < end && arr[left] > arr[largest]){ // check bounds and compare values\n largest = left;\n }\n \n if(right < end && arr[right] > arr[largest]){\n largest = right;\n }\n \n if(largest != i){\n // perform swap arr[i] and arr[largest]\n swap(arr,largest,i);\n //recursively fix the tree using heapify()\n heapify(arr,largest,end);\n }\n \n }",
"private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}",
"void Minheap()\n {\n for(int i= (size-2)/2;i>=0;i--)\n {\n minHeapify(i);\n }\n }",
"protected void siftUp() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1;\t// >> 1 is slightly faster than / 2\r\n\t\t\t\t\t\t\t\t\t\t// => parent = (child - 1) / 2\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tchild = parent;\r\n\t\t}\r\n\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Override\n\tpublic void sort() {\n\t\t\n\t\t// create maxHeap\n\t\tHeap<E> maxHeap = new MaxHeap<E>(arr);\n\t\t\n\t\telapsedTime = System.nanoTime(); // get time of start\n\t\t\n\t\tfor (int i = length - 1; i > 0; i--) {\n\n\t\t\tmaxHeap.swap(arr, 0, i);\n\t\t\tmaxHeap.heapSize--;\n\t\t\t((MaxHeap) maxHeap).maxHeapify(arr, 0);\n\n\t\t}\n\t\t\n\t\telapsedTime = System.nanoTime() - elapsedTime; // get elapsed time\n\t\t\n\t\tprint(); // print sorted array\n\t\tprintElapsedTime(); // print elapsed time\n\t\t\n\t\t\n\t}",
"private void minHeapPercolateUp(int index) {\r\n while (index > 0) {\r\n int parent = (int) Math.floor((index - 1) / 2); // parent index\r\n int compareResult = data[index].compareTo(data[parent]); // integer value of the comparison of\r\n // process at `index` to process at\r\n // index `parent`\r\n if (compareResult >= 0) { // order of heap \"heapified\" for min heap\r\n break;\r\n } else {\r\n swap(index, parent);\r\n index = parent;\r\n }\r\n }\r\n }",
"public void buildHeap() {\n\t\tthis.makeComplete();\n\t\tfor(int i = this.size/2; i >= 1; i--)\n\t\t\tthis.heapify(i);\n\t}",
"T[] heapSort() throws EmptyCollectionException {\n \n ArrayHeap<T> temp = new ArrayHeap<>();\n\n //copy array into heap\n for (int i = 0; i < heap.length; i++) {\n if (heap[i] != null) {\n temp.addElement(heap[i]);\n } else {\n break;\n }\n }\n \n //place the sorted elements back into the array\n int c = 0;\n \n \n while (!temp.isEmpty()) {\n T t = temp.removeMin();\n heap[c++] = t;\n \n\n }\n return heap;\n\n }",
"static void heapSortVector(Vector<Integer> arr, int n) {\r\n\t\tint z = n / 2 - 1;\r\n\t\tdo {\r\n\t\t\theapify1(arr, n, z);\r\n\t\t\tz--;\r\n\t\t} while (z >= 0);\r\n\t\tint i = n - 1;\r\n\t\twhile (i >= 0) {\r\n\t\t\tInteger temp = arr.get(0);\r\n\t\t\tarr.set(0, arr.get(i));\r\n\t\t\tarr.set(i, temp);\r\n\t\t\theapify1(arr, i, 0);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}",
"public ListNode mergeKLists(ListNode[] lists) {\n PriorityQueue<Integer> minHeap = new PriorityQueue<Integer>();\n //Iterate over the list\n for(ListNode head: lists)\n {\n //as long as head not null\n while(head!=null)\n {\n //add the value at the head to min heap\n minHeap.add(head.val);\n //move to next head\n head=head.next;\n }\n }\n //Make a dummy ListNode\n ListNode dummy = new ListNode(-1);\n //make head to dummy\n ListNode head = dummy;\n while(!minHeap.isEmpty())\n {\n //adding the values to the new dummy list\n head.next = new ListNode(minHeap.remove());\n head = head.next;\n }\n //Return the dummy list which is our result\n return dummy.next;\n }",
"private void bubbleUp(int index)\n {\n if(index == 0) //Base Case\n return;\n if(isMax == false) //Maxheap\n {\n if(arrayList.get(index).compareTo(arrayList.get((index-1)/2)) >= 0)\n return;\n else\n {\n E tempElement = arrayList.get((index-1)/2);\n arrayList.set((index-1)/2, arrayList.get(index));\n arrayList.set(index, tempElement);\n bubbleUp((index-1)/2);\n }\n }\n else //Minheap\n {\n if(arrayList.get(index).compareTo(arrayList.get((index-1)/2)) <= 0)\n return;\n else\n {\n E tempElement = arrayList.get((index-1)/2);\n arrayList.set((index-1)/2, arrayList.get(index));\n arrayList.set(index, tempElement);\n bubbleUp((index-1)/2);\n }\n }\n }",
"private static void buildHeap(int arr[], int n) \n\t\t{\n\t\t\tfor(int i=n;i>=0;i++)\n\t\t\t\theapify(arr,n,i);\n\t\t\t\n\t\t}",
"private static void sortingMemo() {\n\t\t\n\t}",
"void buildHeap() {\n for (int i = parent(size - 1); i >= 0; i--) {\n percolateDown(i);\n }\n }",
"public static void balanceHeaps()\n {\n // add your code here\n if(Math.abs(s.size()-g.size()) > 1){\n if(s.size() > g.size()){\n g.add(s.poll());\n }\n else {\n s.add(g.poll());\n }\n }\n }",
"private static <E> void heapify(E[] array, Comparator<E> comparator, int i1, int i2) {\n int start = (i1 + i2) / 2;\n \n while (start >= i1) {\n siftDown(array, comparator, i1, start, i2);\n start -= 1;\n }\n }",
"private void heapify(final int i) {\n assert(valid(i));\n if (leaf(i)) return;\n final int v = H[i];\n final int left_child = ls(i);\n final int right_child = rs(i);\n int largest = (v >= H[left_child]) ? i : left_child;\n if (right_child != n && H[largest] < H[right_child])\n largest = right_child;\n assert(valid(largest));\n if (largest != i) {\n H[i] = H[largest]; H[largest] = v;\n heapify(largest);\n }\n }",
"public static void heapify(int arr[]) {\n N = arr.length - 1;\n for (int i = N / 2; i >= 0; i--)\n maxheap(arr, i);\n }",
"private boolean buildHeap(int numPerRun){ \n\t\tTuple temp;\n\t\tint i = 0;\n\t\twhile(i < numPerRun && (temp = child.getNextTuple()) != null) {\n\t\t\tinternal.offer(temp);\n\t\t\ti++;\n\t\t}\n//\t\tSystem.out.println(\"internal heap has: \" + i + \"tuples\");\n\t\tif(i != numPerRun || i == 0) { // i == 0, heap is empty!\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private void heapify(T[] array) \n\t{\n\t\tfor (int i=0; i < array.length; i++)\n\t\t{\n\t\t\tinsert(array[i], i);\n\t\t}\n\t}",
"private void printHeap() {\n\t\tfor(Pair p: heap){\n\t\t\tint a= (int)p.element;\n\t\t\tint b=(int)p.priority;\n\t\t\tString printable=\"(\" + a + \", \" + b + \")\";\n\t\t\tSystem.out.println(printable);\n\t\t}\n\t}",
"public static void heapsort(int[] ints) {\n\t\theapify(ints);\n\t\tint temp;\n\t\tfor (int ei = ints.length - 1; ei > 0; ei--) {\n\t\t\t// put the root of the heap at the front of\n\t\t\t// the sorted array\n\t\t\ttemp = ints[ei];\n\t\t\tints[ei] = ints[0];\n\t\t\tints[0] = temp;\n\t\t\t// restore the heap\n\t\t\tpushDown(ints, 0, ei);\n\t\t}\n\t}",
"private void fixHeap(int indexItem){\r\n int child = indexItem;\r\n int parent = get_parent(child);\r\n // Fixing heap for upperbounds\r\n while (parent >= 0 && compare(theData.get(parent).data, theData.get(child).data) < 0) {\r\n swap(parent, child);\r\n child = parent;\r\n parent = get_parent(child);\r\n }\r\n\r\n parent = indexItem;\r\n\r\n // Fixing heap for lowerbounds\r\n while (true) {\r\n int leftChild = get_left_child(parent);\r\n if (leftChild >= theData.size()) {\r\n break;\r\n }\r\n int rightChild = leftChild + 1;\r\n int maxChild = leftChild;\r\n\r\n if (rightChild < theData.size() && compare(theData.get(leftChild).data, theData.get(rightChild).data) < 0) {\r\n maxChild = rightChild;\r\n }\r\n\r\n if (compare(theData.get(parent).data, theData.get(maxChild).data) < 0) {\r\n swap(parent, maxChild);\r\n parent = maxChild;\r\n } else {\r\n break;\r\n }\r\n }\r\n }",
"public void radixSorting() {\n\t\t\n\t}",
"private void assertHeapProperty(AbstractList<T> list, int elementsCount, Comparator<T> copmarator) {\n\t\tfinal int lastParentNodeIdx = elementsCount / 2 - 1;//the last child belongs to the last parent\n\t\tint currentIndex = lastParentNodeIdx;\n\t\t//invoke heapify on each element of every levels but last one, in a bottom-up manner\n\t\tfor (; currentIndex >= 0; --currentIndex) {\n\t\t\tT parentValue = list.get(currentIndex);\n\t\t\tint chIdx = leftChildIdx(currentIndex);\n\t\t\tif (chIdx < elementsCount)\n\t\t\t\tassert(1 != copmarator.compare(parentValue, list.get(chIdx)));\n\t\t\tchIdx = rightChildIdx(currentIndex);\n\t\t\tif (chIdx < elementsCount)\n\t\t\t\tassert(1 != copmarator.compare(parentValue, list.get(chIdx)));\n\t\t}\n\t}",
"private static void Heapify(int[] A, int i, int size)\n {\n // get left and right child of node at index i\n int left = LEFT(i);\n int right = RIGHT(i);\n\n int smallest = i;\n\n // compare A[i] with its left and right child\n // and find smallest value\n if (left < size && A[left] < A[i]) {\n smallest = left;\n }\n\n if (right < size && A[right] < A[smallest]) {\n smallest = right;\n }\n\n // swap with child having lesser value and\n // call heapify-down on the child\n if (smallest != i) {\n swap(A, i, smallest);\n Heapify(A, smallest, size);\n }\n }",
"private int compareToHelper(T a, T b) {\n if (isMaxHeap) {\n // compareTo function should work as expected for a max-dHeap\n return a.compareTo(b);\n } else {\n // compareTo function should be return -1 if a > b, 1 if a < b and 0 if a == b for a\n // min-dHeap\n return -1 * a.compareTo(b);\n }\n }",
"public void deleteMin() {\r\n\t\tif (empty())\r\n\t\t\treturn;\r\n\t\telse {\r\n\t\t\tif (this.size > 0) {\r\n\t\t\t\tthis.size--;\r\n\t\t\t}\r\n\t\t\tif (this.size == 0) {\r\n\t\t\t\tthis.empty = true;\r\n\t\t\t}\r\n\r\n\t\t\tHeapNode hN = this.min;\r\n\t\t\tint rnkCount = 0;\r\n\t\t\tHeapNode hNIterator = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\trnkCount++;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t}\r\n\t\t\tthis.HeapTreesArray[rnkCount] = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\trnkCount--;\r\n\t\t\tBinomialHeap bH = new BinomialHeap();\r\n\t\t\tif (hNIterator != null) {\r\n\t\t\t\tbH.empty = false;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\tbH.HeapTreesArray[rnkCount] = hNIterator;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t\tbH.HeapTreesArray[rnkCount].rightBrother = null;\r\n\t\t\t\tif (hNIterator != null) {\r\n\t\t\t\t\thNIterator.leftBrother = null;\r\n\t\t\t\t}\r\n\t\t\t\trnkCount = rnkCount - 1;\r\n\t\t\t}\r\n\t\t\tthis.min = null;\r\n\t\t\tfor (int i = 0; i < this.HeapTreesArray.length; i++) {\r\n\t\t\t\tif (this.min == null) {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tif (this.HeapTreesArray[i].value < this.min.value) {\r\n\t\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\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\r\n\t\t\tif (!bH.empty()) {\r\n\t\t\t\tfor (int i = 0; i < bH.HeapTreesArray.length; i++) {\r\n\t\t\t\t\tif (bH.min == null) {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tif (bH.HeapTreesArray[i].value < bH.min.value) {\r\n\t\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\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\tthis.meld(bH);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"private static <T> void siftUp (HeapSet<T> heap, int start) {\r\n\t\tint child = start;\r\n\t\twhile (child > 0) {\r\n\t\t\tint remainder = (child - 1) % 2;\r\n\t\t\tint root = ((child - 1) - remainder) / 2;\r\n\t\t\tif (((Comparable<? super T>) heap._list.get (root)).compareTo (heap._list.get (child)) < 0) {\r\n\t\t\t\tCollections.swap (heap._list, root, child);\r\n\t\t\t\tHeapSet.fireEvent (heap, root, child);\r\n\t\t\t\tchild = root;\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void SortHash(HashMap<String,ArrayList<input>> hashMap,Distribution list)\n\t{\n\t\tCollections.sort(list.First, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Second, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Third, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Fourth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Fifth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.reverse(list.First);\n\t\tCollections.reverse(list.Second);\n\t\tCollections.reverse(list.Third);\n\t\tCollections.reverse(list.Fourth);\n\t\tCollections.reverse(list.Fifth);\n\t\tputInHashMap(hashMap,list);\n\t}",
"public void bucketSort() {\n MyArray ten = new MyArray();\n MyArray hundred = new MyArray();\n MyArray thousand = new MyArray();\n MyArray tenThousand = new MyArray();\n MyArray hundredThousand = new MyArray();\n MyArray million = new MyArray();\n MyArray tenMillion = new MyArray();\n MyArray hundredMillion = new MyArray();\n MyArray billion = new MyArray();\n\n for (int i = 0; i < array.length; i++) {\n if ((int) array[i] / 10 < 0) {\n ten.add(array[i]);\n } else if ((int) array[i] / 100 < 0) {\n hundred.add(array[i]);\n } else if ((int) array[i] / 1000 < 0) {\n thousand.add(array[i]);\n } else if ((int) array[i] / 10000 < 0) {\n tenThousand.add(array[i]);\n } else if ((int) array[i] / 100000 < 0) {\n hundredThousand.add(array[i]);\n } else if ((int) array[i] / 1000000 < 0) {\n million.add(array[i]);\n } else if ((int) array[i] / 10000000 < 0) {\n tenMillion.add(array[i]);\n } else if ((int) array[i] / 100000000 < 0) {\n hundredMillion.add(array[i]);\n } else {\n billion.add(array[i]);\n }\n }\n\n ten = ten.radixSort(ten);\n hundred = hundred.radixSort(hundred);\n thousand = thousand.radixSort(thousand);\n tenThousand = tenThousand.radixSort(tenThousand);\n hundredThousand = hundredThousand.radixSort(hundredThousand);\n million = million.radixSort(million);\n tenMillion = tenMillion.radixSort(tenMillion);\n hundredMillion = hundredMillion.radixSort(hundredMillion);\n billion = billion.radixSort(billion);\n\n int j = 0;\n for (int i = 0; i < ten.getSize(); i++) {\n array[i] = (T) ten.get(i);\n j++;\n }\n for (int i = 0; i < hundred.getSize(); i++) {\n array[i] = (T) hundred.get(i);\n j++;\n }\n for (int i = 0; i < thousand.getSize(); i++) {\n array[i] = (T) thousand.get(i);\n j++;\n }\n for (int i = 0; i < tenThousand.getSize(); i++) {\n array[i] = (T) tenThousand.get(i);\n j++;\n }\n for (int i = 0; i < hundredThousand.getSize(); i++) {\n array[i] = (T) hundredThousand.get(i);\n j++;\n }\n for (int i = 0; i < million.getSize(); i++) {\n array[i] = (T) million.get(i);\n j++;\n }\n for (int i = 0; i < tenMillion.getSize(); i++) {\n array[i] = (T) tenMillion.get(i);\n j++;\n }\n for (int i = 0; i < hundredMillion.getSize(); i++) {\n array[j] = (T) hundredMillion.get(i);\n j++;\n }\n for (int i = 0; i < billion.getSize(); i++) {\n array[j] = (T) billion.get(i);\n j++;\n }\n\n }",
"public void heapify(AbstractList<T> list, int nodeIdx, int elementsCount, Comparator<T> comparator) {\n\t\tint leftChild, rightChild; \n\t\tint extremeIdx = nodeIdx;\n\n\t\twhile (true) {\n\t\t\tleftChild = leftChildIdx(extremeIdx);\n\t\t\trightChild = rightChildIdx(extremeIdx);\n\n\t\t\tif (leftChild < elementsCount && //does the left child exist?\n\t\t\t\t\t(0 > comparator.compare(list.get(leftChild), list.get(extremeIdx))) ) {//the leftChild node is greater(min-heap)/smaller(max-heap) than the parent\n\t\t\t\textremeIdx = leftChild;\n\t\t\t}\n\t\t\tif (rightChild < elementsCount && //does the right child exist?\n\t\t\t\t\t(0 > comparator.compare(list.get(rightChild), list.get(extremeIdx))) ) {//the rightChild node is greater(min-heap)/smaller(max-heap) than the extreme found earlier\n\t\t\t\textremeIdx = rightChild;\n\t\t\t}\n\n\t\t\tif (extremeIdx != nodeIdx) {//the parent node didn't fulfill the max/min-heap property\n\t\t\t\t//swap places with the largest of the children\n\t\t\t\tT oldParentValue = list.set(nodeIdx, list.get(extremeIdx));\n\t\t\t\tlist.set(extremeIdx, oldParentValue);\n\t\t\t\t\n\t\t\t\tnodeIdx = extremeIdx;\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\n\t}",
"void Min_heapfy(Map<Integer, Integer> heapmap, SimpleVertex simpleVertex) {\n\n\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\t\t\theapmap.put(node.two.Vertexname, node.weight);\n\t\t\tmapVertixEdge.put(node.two.Vertexname, node);\n\n\t\t}\n\t\theapmap.remove(simpleVertex.Vertexname);\n\n\t\tfor (Integer v : heapmap.values()) {\n\t\t\tarr[count++] = v;\n\t\t\tSystem.out.println(v);\n\t\t}\n\n\t\t// arr = Arrays.copyOfRange(arr, 1, arr.length);\n\t\tint edgeWeight = new HeapForPrims().Max_heapfy(arr, 1);\n\n\t\tSimpleEdge removeedge = null;\n\t\tIterator<Entry<Integer, SimpleEdge>> it = mapVertixEdge.entrySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntry<Integer, SimpleEdge> pair = it.next();\n\t\t\tif (pair.getValue().weight == edgeWeight) {\n\t\t\t\tresultedge.add(pair.getValue());\n\t\t\t\tpair.getValue().EdgeVisited = true;\n\t\t\t\tremoveedge = pair.getValue();\n\n\t\t\t}\n\n\t\t}\n\t\twhile (mapVertixEdge.values().remove(removeedge))\n\t\t\t;\n\n\t\tMin_heapfy(heapmap, resultedge.get(resultedge.size() - 1).two);\n\n\t}",
"public void meld(BinomialHeap heap2) {\r\n\t\tthis.size = this.size + heap2.size;\r\n\t\tif (heap2.min != null && this.min != null && heap2.min.value < this.min.value) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t}\r\n\t\tif (heap2.min != null && this.min == null) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t}\r\n\t\tHeapNode[] heap2Arr = heap2.HeapTreesArray;\r\n\t\tif (this.empty() && !heap2.empty()) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t\tthis.empty = false;\r\n\t\t}\r\n\t\tfor (int i = 0; i < heap2Arr.length; i++) {\r\n\t\t\tif (heap2Arr[i] != null && this.HeapTreesArray[i] == null) {\r\n\t\t\t\tthis.HeapTreesArray[i] = heap2Arr[i];\r\n\t\t\t} else if (heap2Arr[i] != null && this.HeapTreesArray[i] != null) {\r\n\t\t\t\tHeapNode hN = merge(heap2Arr[i], this.HeapTreesArray[i]);\r\n\t\t\t\tHeapTreesArray[i] = null;\r\n\t\t\t\tint j = i + 1;\r\n\t\t\t\twhile (this.HeapTreesArray[j] != null) {\r\n\t\t\t\t\thN = merge(hN, this.HeapTreesArray[j]);\r\n\t\t\t\t\tHeapTreesArray[j] = null;\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\tHeapTreesArray[j] = hN;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"void sort( int low, int high)\n {\n if (low > high)\n {\n /* pi is partitioning index, arr[pi] is\n now at right place */\n int pi = partition(low, high);\n\n // Recursively sort elements before\n // partition and after partition\n sort( low, pi-1);\n sort( pi+1, high);\n }\n }",
"public static void makeHeap(char[] heap, int size, CharComparator c) {\n/* 124 */ int i = size >>> 1;\n/* 125 */ while (i-- != 0)\n/* 126 */ downHeap(heap, size, i, c); \n/* */ }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tPriorityQueue<Integer>heap=new PriorityQueue<Integer>(new comparison());\n\t\tPriorityQueue<Integer>heap1=new PriorityQueue<Integer>();\n\t\tint num=sc.nextInt();\n\t\tint k=sc.nextInt();\n\t\tfor(int i=0;i<num;i++)\n\t\t{\n\t\t\tint value=sc.nextInt();\n\t\t\theap.add(value);\n\t\t\theap1.add(value);\n\t\t\tif(heap.size()>k)\n\t\t\t{\n\t\t\t\theap.remove();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(heap.peek());\n\t\tfor(int i=0;i<k-1;i++)\n\t\t{\n\t\t\theap.remove();\n\t\t}\n\t\tSystem.out.println(heap.peek());\n\t}",
"public static void main(String[] args) {\n\n\t\t// display programmer info\n\t\tCommonSuite.commonProgramStart(3, 7, \"Meldable Heap Remove\", false);\n\n\t\t// re-create the heaps from ODS\n\t\tInteger meldableHeapPage218_1[] = new Integer[] { 4, 9, 8, 17, 26, 50, 16, 19, 55 };\n\t\tInteger meldableHeapPage218_2[] = new Integer[] { 19, 25, 20, 28, 89, 32, 93, 99 };\n\n\t\tA3Q7MeldableHeap<Integer> h, j;\n\n\t\th = new A3Q7MeldableHeap<Integer>();\n\t\tj = new A3Q7MeldableHeap<Integer>();\n\n\t\tfor (int i = 0; i < meldableHeapPage218_1.length; i++)\n\t\t\th.add(meldableHeapPage218_1[i]);\n\n\t\tfor (int i = 0; i < meldableHeapPage218_2.length; i++)\n\t\t\tj.add(meldableHeapPage218_2[i]);\n\n\t\t// show the heaps before and after they are merged\n\t\tCommonSuite.printFancyHeader(\"MeldableHeap h\");\n\t\th.printBSTree();\n\t\tCommonSuite.printFancyHeader(\"MeldableHeap j\");\n\t\tj.printBSTree();\n\t\th.merge(h.r, j.r);\n\t\tCommonSuite.printFancyHeader(\"MERGE of MeldableHeap h and j: h.merge(h.r, j.r)\");\n\t\th.printBSTree();\n\t\tCommonSuite.printFancyHeader(\"Pointer & element originally at j.r.right.right\");\n\t\ttry {\n\t\t\tSystem.out.printf(\"j.r.R.R %s = %s%n\", j.r.right.right, j.r.right.right.x);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Node empty. Run simulation again. No nodes removed.\");\n\t\t\tSystem.out.println(e.toString());\n\t\t}\n\n\t\t// demonstrate the remove(u) method\n\t\tCommonSuite.printFancyHeader(\"REMOVE j.r.right.right: h.remove(j.right.right)\");\n\t\th.remove(j.r.right.right);\n\t\th.printBSTree();\n\t}",
"@Override\n public int compareTo(Heap<E> o) {\n if(this.peek().compareTo(o.peek()) < 0) return -1;\n if(this.peek().compareTo(o.peek()) > 0) return 1;\n else return 0;\n }",
"void minHeapify(int i) {\n\n\t\tint l = 2*i + 1;\n\t\tint r = 2*i + 2;\n\t\tint smallest = i;\n \n\t\tif(l < size && arr[l].element < arr[smallest].element)\n\t\t\tsmallest = l;\n\n\t\tif(r < size && arr[r].element < arr[smallest].element)\n\t\t\tsmallest = r;\n\n\t\tif(smallest != i) {\n\t\t\t// call method exchange to change \n\t\t\texchange(arr,i,smallest);\n\t\t\tminHeapify(smallest);\n\t\t}\n\t}",
"public MinHeap() {\n// contents = new HashMap<>();\n contents= new ArrayList<>();\n backwards = new HashMap<>();\n contents = new ArrayList<>();\n contents.add(null);\n\n// contents.put(0, null);\n backwards.put(null, 0);\n// setContents = new HashSet<>();\n }",
"private static void quicksort(Object a[], int lo0, int hi0) {\n int lo = lo0;\n int hi = hi0;\n int mid;\n\n if (hi0 > lo0) {\n swapReferences(a, lo0, (lo0 + hi0)/2);\n Object[] midObject = (Object[]) a[(lo0 + hi0) / 2];\n mid = (int)midObject[2];\n while (lo <= hi) {\n Object[] loObject = (Object[])a[lo];\n int loWeight = (int)loObject[2];\n while((lo < hi0) && (loWeight < mid)) {\n loObject = (Object[])a[lo];\n loWeight = (int)loObject[2];\n if (loWeight < mid) {\n lo++;\n }\n }\n\n Object[] hiObject = (Object[])a[hi];\n int hiWeight = (int)hiObject[2];\n while((hi > lo0) && (hiWeight > mid)) {\n hiObject = (Object[])a[hi];\n hiWeight = (int)hiObject[2];\n if (hiWeight > mid) {\n hi--;\n }\n }\n\n if (lo <= hi) {\n swapReferences(a, lo, hi);\n lo++;\n hi--;\n }\n }\n\n if (lo0 < hi) {\n quicksort(a, lo0, hi);\n }\n\n if (lo < hi0) {\n quicksort(a, lo, hi0);\n }\n }\n }",
"public boolean heapRule(HeapNode h) {\n\t\tif (h.theMostLeftChild == null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tboolean flag = true;\r\n\t\t\tHeapNode hIt = h.theMostLeftChild;\r\n\t\t\twhile (hIt != null) {\r\n\t\t\t\tflag = flag && heapRule(hIt);\r\n\t\t\t\tif (hIt.value < h.value) {\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t}\r\n\t\t\t\thIt = hIt.rightBrother;\r\n\t\t\t}\r\n\t\t\treturn flag;\r\n\t\t}\r\n\t}",
"private static ArrayList<Integer> mergKsort(int[][] arr) {\n\t\tArrayList<Integer> rv = new ArrayList<>();\r\n\t\tPriorityQueue<Pair> pq= new PriorityQueue<>();\r\n\t\t\t\t\r\n\t\tfor (int i=0;i<arr.length;i++) {\r\n\t\tPair p = new Pair(i,0,arr[i][0]);\r\n\t\t\tpq.add(p);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\twhile(pq.size()>0) {\r\n\t\t\tPair p=pq.remove();\r\n\t\t\trv.add(p.val);\r\n\t\t\tp.di++;\r\n\t\t\tif(p.di<arr[p.li].length) {\r\n\t\t\t\tp.val=arr[p.li][p.di];\r\n\t\t\t\tpq.add(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rv;\r\n\r\n\t}",
"private static void sink(Comparable[] pq, int k, int n) {\n \t/*\n \t * Fill in this method! Use the code on p. 316 of the book as a model,\n \t * but change it so each node in the heap has 3 children instead of 2.\n \t */\n }",
"public void heapSort(Comparable[] array, int lowindex, int highindex) {\n\t\t//Build the heap:\n\t\tComparable[] tmpArray = new Comparable[highindex - lowindex + 1];\n\t\tint j = 0;\n\t\tfor (int i = lowindex; i <= highindex; i++) {\n\t\t\ttmpArray[j] = array[i];\n\t\t\tj++;\n\t\t}\n\t\tbuildMaxHeap(tmpArray);\n\n\t\t//Sorting:\n\t\tint k = tmpArray.length - 1;\n\t\twhile (k >= 1) {\n\t\t\tswap(tmpArray, 0, k);\n\t\t\tif (k != 1) {\n\t\t\t\tpushdown(tmpArray, k, 0);\n\t\t\t}\n\t\t\tk--;\n\t\t}\n\n\t\tint q = 0;\n\t\tfor (int p = 0; p < array.length; p++) {\n\t\t\tif (lowindex <= p && p <= highindex) {\n\t\t\t\tarray[p] = tmpArray[q];\n\t\t\t\tq++;\n\t\t\t}\n\t\t}\n\n\t\t//print the result sorted array\n\t\tfor (Comparable c : array) {\n\t\t\tSystem.out.print(c + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"@Override\r\n\t\tpublic int compareTo(HeapNode o) {\n\t\t\treturn new Integer(value).compareTo(o.value);\r\n\t\t}",
"public void buildHeap(AbstractList<T> list, int elementsCount, Comparator<T> comparator) {\n\t\tfinal int lastParentNodeIdx = elementsCount / 2 - 1;//the last child belongs to the last parent\n\t\tint currentIndex = lastParentNodeIdx;\n\t\t//invoke heapify on each element of every levels but last one, in a bottom-up manner\n\t\tfor (; currentIndex >= 0; --currentIndex) {\n\t\t\theapify(list, currentIndex, elementsCount, comparator);\n\t\t}\n\t}",
"@Override\r\n public int compareTo(MaxHeap<E> es) {\r\n return compare(theData.get(0).data , es.get(0).data);\r\n }",
"public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\ttry {\r\n\t\t\tint T = Integer.parseInt(br.readLine());\r\n\t\t\tfor (int t = 0; t < T; t++) {\r\n\t\t\t\tint N = Integer.parseInt(br.readLine());\r\n\t\t\t\tint[] A = new int[N]; // 수열 저장\r\n\t\t\t\tint cnt = 0;\r\n\r\n\t\t\t\tfor (int i = 0; i < N / 10 + 1; i++) {\r\n\t\t\t\t\tString[] arr = br.readLine().split(\" \");\r\n\t\t\t\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\t\t\t\tA[cnt] = Integer.parseInt(arr[j]);\r\n\t\t\t\t\t\tcnt++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tArrayList<Integer> result = new ArrayList<Integer>();\r\n\t\t\t\tPriorityQueue<Integer> maxheap = new PriorityQueue<Integer>(Collections.reverseOrder());\r\n\t\t\t\tPriorityQueue<Integer> minheap = new PriorityQueue<Integer>();\r\n\r\n\t\t\t\tfor (int i = 0; i < A.length; i++) {\r\n\t\t\t\t\tif (maxheap.size() == minheap.size())\r\n\t\t\t\t\t\tmaxheap.offer(A[i]);\r\n\t\t\t\t\telse if (maxheap.size() > minheap.size())\r\n\t\t\t\t\t\tminheap.offer(A[i]);\r\n\r\n\t\t\t\t\tif (!maxheap.isEmpty() && !minheap.isEmpty() && minheap.peek() < maxheap.peek()) {\r\n\t\t\t\t\t\tint max = maxheap.poll();\r\n\t\t\t\t\t\tint min = minheap.poll();\r\n\r\n\t\t\t\t\t\tminheap.offer(max);\r\n\t\t\t\t\t\tmaxheap.offer(min);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i % 2 == 0) {\r\n\t\t\t\t\t\tresult.add(maxheap.peek());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(result.size());\r\n\t\t\t\tfor (int i = 0; i < result.size(); i++) {\r\n\t\t\t\t\tSystem.out.print(result.get(i) + \" \");\r\n\t\t\t\t\tif (i % 10 == 9)\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testHeap() {\n\t\t// merely a suggestion \n\t}",
"void minHeapify(int i)\n {\n int lt=MyHeap.left(i);\n int rt=MyHeap.right(i);\n int smallest=i;\n if(lt<size && arr[lt]<arr[i])\n smallest=lt;\n if(rt<size && arr[rt]<arr[smallest])\n smallest=rt;\n if(smallest!=i)\n {\n swap(i,smallest);\n minHeapify(smallest);\n }\n }",
"private void minHeapify(int v, int heapSize){\n\t\tint smallest;\n\t\tint left = leftChild(v);\n\t\tint right = rightChild(v);\n\t\tif (left<heapSize && _a[left].getWeight()<_a[v].getWeight()){\n\t\t\tsmallest = left;\n\t\t}\n\t\telse{\n\t\t\tsmallest = v;\n\t\t}\n\t\tif (right<heapSize && _a[right].getWeight()<_a[smallest].getWeight()){\n\t\t\tsmallest = right;\n\t\t}\n\t\tif (smallest!=v){\n\t\t\texchange(v, smallest);\n\t\t\tminHeapify(smallest, heapSize);\n\t\t}\t\t\n\t}"
] | [
"0.73422855",
"0.67022717",
"0.6692976",
"0.66736996",
"0.66205424",
"0.66154593",
"0.661041",
"0.657326",
"0.6545446",
"0.652097",
"0.64532936",
"0.6416007",
"0.6411705",
"0.63579273",
"0.63524765",
"0.6346568",
"0.63374406",
"0.6332865",
"0.63274974",
"0.63251376",
"0.6319756",
"0.6312898",
"0.6281955",
"0.6277816",
"0.6273937",
"0.62694156",
"0.62662226",
"0.62486875",
"0.6213428",
"0.62117434",
"0.62115717",
"0.6171372",
"0.61621594",
"0.6157372",
"0.6132349",
"0.6109673",
"0.6079547",
"0.6075186",
"0.60514617",
"0.604332",
"0.60348904",
"0.6028775",
"0.5987327",
"0.5980817",
"0.5979883",
"0.5970626",
"0.5967963",
"0.5965351",
"0.59646064",
"0.5952636",
"0.5948031",
"0.5943929",
"0.59379166",
"0.5936975",
"0.593499",
"0.5933702",
"0.5926639",
"0.5916792",
"0.59103686",
"0.59086514",
"0.58922535",
"0.5870911",
"0.5869387",
"0.58625954",
"0.5850459",
"0.584636",
"0.5836279",
"0.5820054",
"0.5804098",
"0.5800451",
"0.5800211",
"0.5795897",
"0.5778872",
"0.577516",
"0.5769439",
"0.57642907",
"0.57591057",
"0.57508147",
"0.5741046",
"0.57350254",
"0.5732666",
"0.57326114",
"0.57289386",
"0.5727253",
"0.5706943",
"0.5701044",
"0.56952596",
"0.56933564",
"0.5690784",
"0.5689828",
"0.5689732",
"0.56892276",
"0.5684504",
"0.5666531",
"0.56649023",
"0.5664049",
"0.5662577",
"0.56617165",
"0.5658581",
"0.5658308",
"0.5650251"
] | 0.0 | -1 |
Get context variables for DiplomaActivity. | void getContext() {
playerName = getIntent().getExtras().getString("player_name");
Log.i("DiplomaActivity", "getContext - Player name: " + playerName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Object> getContext();",
"Context getContext();",
"public String getContext() { return context; }",
"public String getContext() {\n\t\treturn context;\n\t}",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getActivityContext(){\n return mActivityContext;\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}",
"public Map<String, Object> context() {\n return unmodifiableMap(context);\n }",
"public static Activity getContext() {\n return instance;\n\n }",
"Context context();",
"Context context();",
"public Attributes getContextAttributes() {\r\n return this.atts;\r\n }",
"ContextVariable createContextVariable();",
"java.lang.String getContext();",
"public static Context getContext(){\n return appContext;\n }",
"protected Activity getContext() {\n return contextWeakReference.get();\n }",
"@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}",
"@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}",
"private Context getContext() {\n return mContext;\n }",
"private Context getContext() {\n return mContext;\n }",
"public Context getContext() {\n return context;\n }",
"@Override\n\tprotected Context getContext() {\n\t\treturn getActivity();\n\t}",
"Map<String, Object> getRequestContextLocalAttrs();",
"public Context getContext() {\n\t\treturn context;\n\t}",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public Context getContext() {\n\t\treturn mContext;\n\t}",
"public Context getContext() {\n return mContext;\n }",
"public ModuleContext getContext() {\r\n return context;\r\n }",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"com.google.protobuf.ByteString\n getContextBytes();",
"@Override\n public Context getActivityContext() {\n return mView.get().getActivityContext();\n }",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"public final Context getContext() {\n return mContext;\n }",
"public ContextRequest getContext() {\n\t\treturn context;\n\t}",
"public final Object getContextInfo() {\n return this.info;\n }",
"public Context getContext() {\n return this.mService.mContext;\n }",
"public static BundleContext getContext() {\n return context;\n }",
"ApplicationContext getAppCtx();",
"public static LifecycleContext getLifecycleContext()\n {\n return context;\n }",
"public int getContextId() {\n return contextId;\n }",
"public Context getContext() {\n\t\treturn ctx;\n\t}",
"public String getContextString();",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }",
"public Object getContextObject() {\n return context;\n }",
"public interface IView {\n Context getContexts();\n}",
"public String getContextId() {\n return contextId;\n }",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n context=getContext();\n\n }",
"public String getContextProperty() {\n return _contextProperty;\n }",
"public java.lang.CharSequence getContextId() {\n return contextId;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"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 }",
"@JsonProperty(\"context\")\n public Context getContext() {\n return context;\n }",
"Context createContext();",
"Context createContext();",
"public cl_context getContext() {\r\n return context;\r\n }",
"long getCurrentContext();",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public ContextInstance getContextInstance() {\n\t\treturn token.getProcessInstance().getContextInstance();\r\n\t}",
"protected final TranslationContext context() {\n\t\treturn context;\n\t}",
"String getContextId();",
"public String getTabContext();",
"public java.lang.CharSequence getContextId() {\n return contextId;\n }",
"private void getParameters(final CallbackContext callbackContext) {\n final Activity context = cordova.getActivity();\n this.cordova.getThreadPool().execute(new Runnable() {\n public void run() {\n try {\n\n // TODO: Devolver los SharedPreferences en formato JSON con la estructura de\n // pluginParameters.\n //Object pluginParameters = null; // TODO: Componer objeto desde SharedPreferences.\n //String pluginParametersJson = new Gson().toJson(pluginParameters);\n\n // MOCK:\n String pluginParametersJson = \"{'activityId': 7885478, 'holderId': 778}\";\n\n // Guarda la referencia del contexto de la app web.\n CordovaPluginJavaConnection.getParametersContext = callbackContext;\n\n sendResultSuccess(callbackContext, pluginParametersJson);\n } catch (Exception ex) {\n errorProcess(callbackContext, ex);\n }\n }\n });\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public LoggerContext getContext() {\n return context;\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"public IContextInformation getContextInformation()\n {\n return null;\n }",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"public Map<String, Object> getVariables();",
"public abstract Context context();",
"public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }",
"RenderingContext getContext();",
"public Context getContext() {\n return contextMain;\n }",
"CTX_Context getContext();",
"static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }",
"com.google.protobuf.ByteString getContext();",
"private static Context m17666a(WebView webView) {\n if (!(webView instanceof C4089qe)) {\n return webView.getContext();\n }\n C4089qe qeVar = (C4089qe) webView;\n Activity d = qeVar.mo15801d();\n return d != null ? d : qeVar.getContext();\n }",
"private SharedPreferences GetPreferences( Context context )\n\t{\n\t\treturn context.getSharedPreferences( CACHE_NAME, Context.MODE_PRIVATE );\n\t}",
"private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }",
"public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}",
"public static Context getAppContext() {\n return mContext;\n }",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"public void setContextualParams(Context context) {\n setAdvertisingID(context);\n setDefaultScreenResolution(context);\n setLocation(context);\n setCarrier(context);\n }",
"String getContextPath() {\n return contextPath;\n }",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public interface ActivityAware<E> {\r\n E getContextActivity();\r\n}",
"public static Context getResourceContext() {\n return context;\n }",
"private static Map<String, String> getValues(Context context) {\n Map<String, String> result = new HashMap<>();\n ApplicationInfo appInfo = context.getApplicationContext().getApplicationInfo();\n // App data\n result.put(APP_BUNDLE, appInfo.packageName);\n result.put(APP_DOMAIN, appInfo.packageName);\n result.put(APP_ID, appInfo.packageName);\n result.put(APP_NAME, (appInfo.labelRes == 0) ? appInfo.nonLocalizedLabel.toString() : context.getString(appInfo.labelRes));\n // Advertizing ID\n String advertisingId = SettingsProvider.getInstance().getString(SettingsProvider.GOOGLE_ADVERTISING_ID);\n result.put(DEVICE_IFA, advertisingId);\n // Device data\n result.put(DEVICE_MAKE, Build.MANUFACTURER);\n result.put(DEVICE_MODEL, Build.MODEL);\n // Default device type is '7' (set top box device)\n result.put(DEVICE_TYPE, \"7\");\n // Default VPI is 'MP4'\n result.put(VPI, \"MP4\");\n // UUID us the same as Advertising id\n result.put(UUID, advertisingId);\n return result;\n }"
] | [
"0.68264323",
"0.6158254",
"0.6106644",
"0.59902734",
"0.59897465",
"0.59897465",
"0.59897465",
"0.59837973",
"0.5960218",
"0.5950907",
"0.5950907",
"0.59234315",
"0.59053916",
"0.5894246",
"0.5847632",
"0.5847632",
"0.5832889",
"0.58237535",
"0.58214027",
"0.5810252",
"0.5794841",
"0.5792682",
"0.5792682",
"0.5776125",
"0.5776125",
"0.57040805",
"0.5703606",
"0.56871754",
"0.568639",
"0.5674814",
"0.56621695",
"0.5629377",
"0.562686",
"0.5622636",
"0.55926555",
"0.5579342",
"0.5579342",
"0.5571092",
"0.5566528",
"0.5551059",
"0.5549176",
"0.5532845",
"0.5518293",
"0.5499456",
"0.5490019",
"0.5442942",
"0.54271716",
"0.5426953",
"0.54155767",
"0.54098225",
"0.5408813",
"0.5406383",
"0.5405867",
"0.5401159",
"0.54002064",
"0.53885853",
"0.5369514",
"0.5349801",
"0.5338577",
"0.53349495",
"0.53349495",
"0.5320217",
"0.5307801",
"0.5299383",
"0.5299383",
"0.5297961",
"0.5283626",
"0.5282113",
"0.52797556",
"0.52771574",
"0.5268745",
"0.52583617",
"0.5252956",
"0.5250594",
"0.52458066",
"0.52450156",
"0.5242976",
"0.5242728",
"0.5239494",
"0.52360106",
"0.5209074",
"0.5196112",
"0.51879215",
"0.51854783",
"0.5183412",
"0.518171",
"0.5181033",
"0.51802444",
"0.5160963",
"0.515818",
"0.51398736",
"0.5139842",
"0.51367795",
"0.5135905",
"0.5129296",
"0.50971395",
"0.50872344",
"0.50815207",
"0.5079749",
"0.5070626"
] | 0.630678 | 1 |
Stops music and go back to the main menu. | @Override
public void onBackPressed() {
mediaPlayer.pause();
Intent intent = new Intent(this, MainMenuActivity.class);
startActivity(intent);
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop() {\n\t\tmusic.stop();\n\t}",
"public static void stopMusic() {\n\t\tcurrentMusic.stop();\n\t}",
"public static void resumeMusic() {\n\t\t\n\t\tif (currentMusic == null) {\n\t\t\tplayMusic(\"mainMenuMusic\", 0.1f);\n\t\t} else {\n\t\t\tcurrentMusic.start();\n\t\t}\n\t}",
"void stopMusic();",
"public void menu(){\n menuMusic.loop(pitch, volume);\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t new MenuGui(new HowToPlay());\n\t\tframe.dispose();\t\t\n\t\tclip.getMusicMenu().stop();\n\t\t\n\t}",
"@Override\n public void backToMainMenu() {\n try {\n Thread.sleep((long)480000);\n }\n catch (InterruptedException var1_1) {\n var1_1.printStackTrace();\n }\n if (this.activityActive && !this.getClass().equals((Object)SampleActivity.class)) {\n AudioDemo.Sound().playSound(\"a9\");\n try {\n Thread.sleep((long)10000);\n }\n catch (InterruptedException var2_2) {\n var2_2.printStackTrace();\n }\n this.finishInputMoney(false);\n }\n }",
"public void stop()\n {\n if(AudioDetector.getInstance().isNoAudio() || musicPlayer == null)\n {\n return;\n }\n\n\n musicPlayer.stop();\n }",
"public void stopBackgroundMusic()\n {\n background.stop();\n }",
"public static void stopSong()\n {\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.stopSong();\n }",
"public static void stopMusic()\n\t{\n\t\tif (music != null && currentMusicFile != -1)\n\t\t{\n\t\t\tmusic.get(currentMusicFile).stop();\n\t\t\tcurrentMusicFile = -1;\n\t\t}\n\t}",
"private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }",
"private void backToMenu()\n\t{\n\t\t//switch to menu screen\n\t\tgame.setScreen(new MenuScreen(game));\n\t}",
"public void StopMusic();",
"@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }",
"@Override\n public void stopSound(){\n gameMusic.stop();\n }",
"@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tif (keyCode == KeyEvent.KEYCODE_BACK) {\n\t\t\tIntent Menu = new Intent(CreditsActivity.this, MainActivity.class);\n\t\t\tstartActivity(Menu);\n\t\t\tfinish();\n//\t\t\tmp.stop();// when backkey is pressed , the music stopped\n//\t\t\tmp.release();// and also music is released\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onKeyDown(keyCode, event);\n\t}",
"public void stopPlayback(){\n \n \n if(getPlayMode()!=PlayMode.PLAYBACK){\n return;\n }\n setPlayMode(PlayMode.WAITING);\n playerControlPanel.setVisible(false);\n increasePlaybackSpeedMenuItem.setEnabled(false);\n decreasePlaybackSpeedMenuItem.setEnabled(false);\n rewindPlaybackMenuItem.setEnabled(false);\n togglePlaybackDirectionMenuItem.setEnabled(false);\n \n try {\n if(motionInputStream!=null){\n motionInputStream.close();\n motionInputStream=null;\n }\n if(fileInputStream!=null){\n fileInputStream.close();\n fileInputStream=null;\n }\n } catch (IOException ignore) {\n ignore.printStackTrace();\n }\n setTitleAccordingToState();\n }",
"public void stop() {\n\t\tsound.stop();\n\t}",
"public void stop()\n {\n mediaPlayer.stop();\n }",
"public static void musicMainMenu(){\n\t\ttry {\r\n\t\t\tbgmusic = new Music(\"res/otherSounds/Menu.wav\");\r\n\t\t\tbgmusic.loop(1f, 0.2f);\r\n\t\t\t//System.out.println(bgmusic.getVolume()); \t\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void stop() { \r\n timer.stop(); \r\n if (midi) \r\n sequencer.stop(); \r\n else \r\n clip.stop(); \r\n play.setText(\"Play\"); \r\n playing = false; \r\n }",
"@Override\n\tpublic void stop() {\n\t\tif (player != null) {\n\t\t\tplayer.close();\n\n\t\t\tpauseLocation = 0;\n\t\t\tsetSongTotalLenght(0);\n\t\t}\n\t}",
"public void stop() {\n\t\tstop(!playing);\n\t}",
"public static void stopCurrentGamePlay() {\r\n\t\tif(!STATUS.equals(Gamestatus.RUNNING) && !STATUS.equals(Gamestatus.PREPARED)) return;\r\n\t\tif(STATUS.equals(Gamestatus.RUNNING)) clock.stop();\r\n\t\tSTATUS = Gamestatus.STOPPED;\r\n\t\tgui.setMenu(new LoseMenu(), false);\r\n\t}",
"public static void shutDownPlayer()\n {\n MusicPlayerControl.shutdown();\n JSoundsMainWindowViewController.listSongs=null;\n JSoundsMainWindowViewController.listSongs=new JMusicPlayerList();\n JSoundsMainWindowViewController.alreadyPlaying=false;\n JSoundsMainWindowViewController.dontInitPlayer=false;\n JSoundsMainWindowViewController.shutDown=true;\n }",
"private void stopAudio() {\r\n // stop playback if possible here!\r\n }",
"public void onBackButton() {\n WindowLoader wl = new WindowLoader(backButton);\n wl.load(\"MenuScreen\", getInitData());\n RETURN_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif(ani.hasStarted())\n\t\t\t\t\t{\n\t\t\t\t\t\tani.cancel();\n\t\t\t\t\t}\n\t\t\t\t\tif(mediaPlayer.isPlaying())\n\t\t\t\t\t{\n\t\t\t\t\t\tmediaPlayer.stop();\n\t\t\t\t\t\tmediaPlayer.release();\n\t\t\t\t\t}\n\t\t\t\t\tfinish();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}",
"protected void stopTheSound(){\n mp.stop();\n }",
"private void stop()\r\n {\r\n player.stop();\r\n }",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n//\t\tgv.f = false;\t//如果没有这句,即使退出,run()函数也不停止运行,既游戏界面退出,到后台后仍在运行着。\r\n\t\tMusic.stop();\r\n\t}",
"public void stopPlaying() {\n \t\tisPlaying = false;\n \t}",
"@Override\n public void onBackPressed() {\n if(mediaPlayer != null && mediaPlayer.isPlaying()){\n mediaPlayer.stop();\n }\n\n super.onBackPressed();\n }",
"private void stop()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n }",
"@Override\n\tpublic void pause() {\n\t PhoneDevice.Settings.stopMusic();\n\t}",
"public void StopSound() {\r\n\t\tif (this.mp.isPlaying()) {\r\n\t\t\tmp.pause();\r\n\t\t}\r\n\t}",
"public void stop() {\n try {\n mIsIdle = true;\n mIsLooping = false;\n if (mCurPlayer != null) \n {\n mCurPlayer.stop(); \n Thread.sleep(100);\n// mCurPlayer.setMediaTime(0);\n mIsPlaying = false;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void stop() {\r\n\r\n if (soundLoop!=null)\r\n {\r\n soundLoop.stop();\r\n }\r\n }",
"@Override\n\tpublic void goToMainMenu() {\n\t\tfinish();\n\t}",
"public void stop() {\n\t\tplaybin.stop();\n\t}",
"public void stopPlaying(){\r\n\t\tsongsToPlay.clear();\r\n\t\tselectedPreset = -1;\r\n\t\tselectedSource = \"\";\r\n\t\ttry{\r\n\t\t\tplayer.stop();\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.err.println(\"ERROR: BASICPLAYER STOP CODE HAS FAULTED.\");\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void stopPlaying() {\n seq.stop();\n }",
"private void stop(){ player.stop();}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tms.stop();\n\t\t\t\tmp.stop();\n\t\t\t\tfinish();\n\t\t\t}",
"public void onBackPressed(){\n //Gardera ses fonctions de base\n super.onBackPressed();\n\n //Executera une action en plus. Ici il lancera le son et le coupera automatiquement\n //Si nous ne faisons que le stop cela ne marchera que si le son est en cours\n if (audioExist()){\n playTheSound(imgPos);\n stopTheSound();\n }\n }",
"public void stop() {\n AudioPlayer.player.stop(cas);\n playing = false;\n }",
"@Override\r\n public void hide() {\r\n bgMusic.pause();\r\n }",
"public void stop() {\n mMediaPlayer.stop();\n setPlayerState(State.STOPPED);\n notifyPlaying();\n }",
"@Override\r\n public void onClick(View v) {\n startActivity(new Intent(TwoPlayer.this, MainMenu.class));\r\n finish();\r\n }",
"public void backToMenu() {\n\t\tcurrentGameGraphics.setVisible(false);\n\t\tcurrentGameGraphics = null;\n\t\tgameScreen.setVisible(true);\n\t}",
"private void stop()\n\t\t{\n\t\t\tif (mMediaPlayer != null)\n\t\t\t{\n\t\t\t\tmMediaPlayer.stop();\n\t\t\t\tmMediaPlayer.reset();\n\t\t\t}\n\t\t}",
"public void stopPlaying()\n {\n player.stop();\n }",
"public void stopScene()\r\n\t{\r\n\t\tthis.stop();\r\n\t}",
"public void stopSound() {\n metaObject.stopSound();\n }",
"public void StopMusic(int id) {\n\t\t\n\t\tif(id == 1) {\n if(!bm.equals(null)) {\n\n \tbm.stop();\n }\n\t\t}else if(id == 2) {\n\t\t\n if(!bmwin.equals(null)) {\n bmwin.stop();\n }\n\t\t}else if(id == 3) {\n\n if(!bmdead.equals(null)) {\n \tbmdead.stop();\n }\n\t\t}\n \n\t}",
"public void stop()\n\t{\n\t\tindex = 0;\n\t\tlastUpdate = -1;\n\t\tpause();\n\t}",
"public static void stopSound() {\n if(mAudioManager != null) {\n mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0);\n }\n if (mp != null) {\n mp.stop();\n Log.d(TAG, \"Stop Sound\");\n }\n }",
"public void stopSound(){\n p.stop(as);\n }",
"public synchronized void resume(){\r\n if(currentLoop0) backgroundMusicLoop0.unpause();\r\n else backgroundMusicLoop1.unpause();\r\n }",
"public void backToMainMenu()\n {\n primaryStage.close();\n }",
"public void returnToMenu(){\n client.moveToState(ClientState.WELCOME_SCREEN);\n }",
"public void stop()\n {\n audioClip.stop();\n }",
"public void goBack(){\n startActivity(new Intent(this, MainMenu.class));\n }",
"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}",
"public void quitButtonOnTouch1(int scaledX, int scaledY, OnePlayerState oneplayerstate) {\n if (quitButton.isPressed(scaledX, scaledY) && oneplayerstate.isPause()) {\n oneplayerstate.setPause(false);\n //Takes player back the games start menu\n\n //resume the back ground music\n int currentVol = MainActivity.settings.getVolume(\"musicValue\");\n if(mediaPlayer != null){\n if (currentVol == 0) {\n mediaPlayer.setVolume(currentVol/10.0f, currentVol/10.0f);\n }\n mediaPlayer.start();\n }\n myGame.quitGame();\n }else{\n quitButton.cancel();\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_play) {\n\t\t\tif (playSong != null) {\n\t\t\t\tplaySong.cancel(true);\n\t\t\t}\n\t\t\tstopChants();\n\t\t\tplaySong = new playAll(this).execute();\n\t\t} else if (id == R.id.action_stop) {\n\t\t\tif (playSong != null) {\n\t\t\t\tplaySong.cancel(true);\n\t\t\t}\n\t\t\tfinal ListView listView = (ListView) findViewById(R.id.lines_of_song);\n\t\t\tif (listView != null) {\n\t\t\t\tsetDefaultBackgroundOnList(listView);\n\t\t\t}\n\t\t\tstopChants();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"public synchronized void stopBackgroundSmoothly(){\r\n if(currentLoop0) backgroundMusicLoop0.fadeOut();\r\n else backgroundMusicLoop1.fadeOut();\r\n }",
"protected abstract void quitToMainMenu();",
"public synchronized void stopBackgroundAbruptly(){\r\n if(currentLoop0) backgroundMusicLoop0.stopClip();\r\n else backgroundMusicLoop1.stopClip();\r\n }",
"public void stopCurrentSound() {\n\t\tif (midiSound != null) {\n\t\t\tmidiSound.stop();\n\t\t}\n\t\tif (functionSound != null) {\n\t\t\tfunctionSound.pause(true);\n\t\t}\n\t}",
"public void stop() { \r\n\t if (remoteControlClient != null) {\r\n\t remoteControlClient\r\n\t .setPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED);\r\n\t } \r\n\t }",
"public void goBackToMainMenu() {\n new MainMenu();\n dispose();\n }",
"private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}",
"public void stopMedia() {\n\t\tif (videoviewer.getCurrentPosition() != 0) {\n\t\t\t\n\t\t\tplaytogglebutton.setChecked(true);\n\t\t\t\n\t\t\tvideoviewer.pause();\n\t\t\tvideoviewer.seekTo(0);\n\t\t\ttimer.cancel();\n\n\t\t\ttimeElapsed.setText(countTime(videoviewer.getCurrentPosition()));\n\t\t\tprogressBar.setProgress(0);\n\t\t}\n\t}",
"public void pause() {\n\t\tmusic.pause();\n\t}",
"private void quit()\r\n { myFrame.setVisible(false); // Kill this frame\r\n myFrame.dispose();\r\n\r\n startControl.playAgain(); // and tell the guy who started me\r\n }",
"public void end()\n\t{\n\t\tStateManager.setState(StateManager.GameState.MAINMENU);\n\t\tStateManager.setGame(null);\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstopPlay(v);\n\t\t\t}",
"@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n stopMusic();\n }",
"public void stopThemeSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.stopSound(MUSIC_FOLDER, THEME);\n\n\t}",
"private void backToMenu()\n {\n Intent i = new Intent(this, HomeScreen.class);\n startActivity(i);\n }",
"public static void stopCurrentSoundtrack() {\n\t\tif (soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].stop();\n\t}",
"public void stop() {\n mCurrentPlayer.reset();\n mIsInitialized = false;\n }",
"@Override\n\tpublic void resume() {\n\t\tPhoneDevice.Settings.playMusic(PhoneDevice.Settings.MusicEnum.psyche_up);\n\t \n\t}",
"public void stop()\n {\n mover.stop();\n }",
"public static void stopMoving()\n {\n //System.out.println(\"player stopped moving\");\n runSound.stop();\n walkSound.stop();\n }",
"public void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstopPlayer();\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tSystem.err.println(ex);\n\t\t}\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}",
"public static void previusSong()\n {\n MusicPlayerControl.prevSong();\n }",
"private void stopCrawler()\n {\n playButton.setEnabled(true);\n startCrawlerItem.setEnabled(true);\n stopButton.setEnabled(false);\n stopCrawlerItem.setEnabled(false);\n canResume = true;\n spider.stopCrawling();\n }",
"private void stopSlideMenuItemActionPerformed() {//GEN-FIRST:event_stopSlideMenuItemActionPerformed\r\n this.controller.StopSlideshow();\r\n startAndStopToggleButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/assets/start.png\")));\r\n startAndStopToggleButton.setSelected(false);\r\n }",
"public void stopSong() {\n\t\tStatus status = mediaview.getMediaPlayer().getStatus();\n\t\t\n\t\tif (status == Status.PLAYING) {\n\t\t\tmediaview.getMediaPlayer().stop();\n\t\t\tplaying = false;\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\t}",
"public void stopped()\n {\n super.stopped();\n muteControl.stop();\n }",
"@Override\n\t\t public void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tStopMusic(2);\n\t\t\t\t\t\tStopMusic(3);\n\n\t\t\t\t\t\ttry {\n\n\t\t\t \tTitle.timerstop = false;\n\t\t\t\t\t\t\tnew Title();\n\t\t\t\t\t\t\tframe.dispose();\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t \n\t\t }",
"private void stopPlayback() {\n // stop player service using intent\n Intent intent = new Intent(mActivity, PlayerService.class);\n intent.setAction(ACTION_STOP);\n mActivity.startService(intent);\n LogHelper.v(LOG_TAG, \"Stopping player service.\");\n }",
"public void stopPressed() {\n // display\n TextLCD.print(STOP);\n // reset\n reset();\n }",
"@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tif (keyCode == KeyEvent.KEYCODE_HOME\n\t\t\t\t|| keyCode == KeyEvent.KEYCODE_SEARCH) {\n\t\t\tMusic.getInstance(mContext).stop();\n\t\t}\n\t\treturn super.onKeyDown(keyCode, event);\n\t}",
"private void stop() {\n Log.i(\"TTS\", \"Stopping\");\n mSpeechQueue.clear();\n \n nativeSynth.stop();\n mIsSpeaking = false;\n if (mPlayer != null) {\n try {\n mPlayer.stop();\n } catch (IllegalStateException e) {\n // Do nothing, the player is already stopped.\n }\n }\n Log.i(\"TTS\", \"Stopped\");\n }",
"public void exitToMenu()\n {\n exitToMenuFlag = true;\n }"
] | [
"0.75043285",
"0.74709463",
"0.7234132",
"0.72125614",
"0.72031766",
"0.71671295",
"0.71645284",
"0.71231055",
"0.70154667",
"0.7013585",
"0.69966865",
"0.6896069",
"0.6893571",
"0.6893044",
"0.6871782",
"0.67413944",
"0.6725896",
"0.6711774",
"0.6636163",
"0.6631252",
"0.66235703",
"0.661652",
"0.65680027",
"0.65189964",
"0.6512719",
"0.6506152",
"0.6505884",
"0.6491819",
"0.6475841",
"0.6474087",
"0.64655316",
"0.64574003",
"0.64478546",
"0.6446817",
"0.64453095",
"0.642713",
"0.64118975",
"0.6411355",
"0.6410874",
"0.6395269",
"0.63938373",
"0.6388001",
"0.6386423",
"0.6383302",
"0.63632065",
"0.63527054",
"0.6352127",
"0.63427305",
"0.6337555",
"0.633745",
"0.6331125",
"0.6326876",
"0.63065374",
"0.63056207",
"0.6303825",
"0.629563",
"0.6290017",
"0.62799674",
"0.6276726",
"0.6266107",
"0.6240189",
"0.6225681",
"0.6217529",
"0.62133974",
"0.62111133",
"0.6205407",
"0.62031174",
"0.61960715",
"0.61930454",
"0.61923397",
"0.616595",
"0.61637187",
"0.6156653",
"0.6146792",
"0.61331975",
"0.61258984",
"0.6113806",
"0.6111018",
"0.6103439",
"0.61030185",
"0.61002165",
"0.608704",
"0.6080622",
"0.60771906",
"0.60760385",
"0.60703576",
"0.6069554",
"0.6061313",
"0.60606694",
"0.6052812",
"0.60527563",
"0.60475624",
"0.6047299",
"0.6036377",
"0.6025855",
"0.60234433",
"0.6018178",
"0.6014422",
"0.60136664",
"0.6008017"
] | 0.70911926 | 8 |
try until thread is joined | @Override
public void surfaceDestroyed(SurfaceHolder surfaceHolder) {
boolean retry = true;
while (retry) {
try {
thread.join();
retry = false;
} catch (InterruptedException e) {
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void join() {\n try {\n thread.join();\n } catch(Exception e) {}\n }",
"public void Wait(){\r\n\t\ttry { worker.join(); }\r\n\t\tcatch (InterruptedException e) { e.printStackTrace(); }\r\n\t}",
"public void waitFinish() throws InterruptedException {\r\n\t\t\ttThread.join();\r\n\t\t}",
"private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}",
"private void sleepForChannelJoin() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(config.getChannelJoinTimeout());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }",
"private synchronized void join() {\n\t\ttry {\n\t\t\tlog.debug(\"Waiting for work...\");\n\n\t\t\twhile (pending > 0) {\n\t\t\t\t// if we put a wait() here... where does the notifyAll() go?\n\t\t\t\tthis.wait();\n\t\t\t\tlog.debug(\"Woke up with pending at {}.\", pending);\n\t\t\t}\n\n\t\t\tlog.debug(\"Work finished.\");\n\t\t}\n\t\tcatch (InterruptedException ex) {\n\t\t\tlog.debug(ex.getMessage(), ex);\n\t\t}\n\t}",
"public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }",
"void join() {\n join(this.workerThread);\n join(this.cacheFlusher);\n join(this.compactSplitThread);\n join(this.logRoller);\n }",
"private void waitForFree() throws InterruptedException {\n // Still full?\n while (isFull()) {\n // Park me 'till something is removed.\n block.await();\n }\n }",
"public synchronized void waitingToThraeds()\n\t{\n\t\twhile (countOfThreads<numberOfThreads)\n\t\t\n\t\ttry \n\t\t{\n\t\t\twait();\n\t\t}\n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\tSystem.out.println(\"Interrupted while waiting\");\n\t\t}\n\t \t\n\t\t\n \t\n\t}",
"public void pauseTilDone() throws InterruptedException { \n\t\t\tthis.me_.join(); \n\t\t}",
"public final void waitFor() {\r\n for (;;) {\r\n synchronized (this) {\r\n if (this.m_b)\r\n return;\r\n try {\r\n this.wait();\r\n } catch (Throwable tt) {\r\n tt.printStackTrace();\r\n }\r\n }\r\n }\r\n }",
"private void waitUntilAllThreadsAreFinished() {\n int index = 1;\n\n while (true) {\n while (index <= noThread) {\n if (carry[index] == -1) {\n index = 1;\n } else {\n index++;\n }\n }\n break;\n }\n }",
"public void waitCompletion()\n {\n\n if (isThreadEnabled())\n {\n try\n {\n executionThread.join();\n }\n catch (InterruptedException ex)\n {\n throw new RuntimeException(ex);\n }\n }\n }",
"public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}",
"private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }",
"public void CondWait(){\n try {\r\n trainCond.await();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }",
"public void join() throws InterruptedException {\n if (_runningThread != null) {\n _runningThread.join();\n }\n }",
"public void joinAll() {\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif (this.get(i).getClient() != null) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.get(i).join();\n\t\t\t\t\tSystem.out.println(\"Thread \" + i + \" wurde beendet!\");\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tthis.get(i).interrupt();\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void waitForThread() {\n monitorState = true;\n while (monitorState) {\n synchronized (monitor) {\n try {\n monitor.wait(); // wait until notified\n } catch (Exception e) {}\n }\n }\n }",
"public void doWait() {\n\t\tsynchronized(lock) {\n\t\t\twhile(!wasSignalled) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\twasSignalled = false;\n\t\t}\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tsuper.run();\r\n\t\ttry {\r\n\t\t\tjoin.join();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\twhile (!isDeadlock) {\r\n\t\t\tcheckDeadlock();\r\n\t\t}\r\n\t}",
"protected void finishBuilding() throws Exception{\n for(int i =0 ; i < Constants.MAX_THREADS; i++){\n if(shortestThread[i]!=null){\n shortestThread[i].setFinishedProcessing(true);\n shortestThread[i].join();\n }\n }\n }",
"public void waitToFinish()\n/* */ {\n/* 473 */ synchronized (this) {\n/* 474 */ while (getIterationsToGo() > 0) {\n/* */ try {\n/* 476 */ wait();\n/* */ }\n/* */ catch (InterruptedException e) {\n/* 479 */ e.printStackTrace();\n/* */ }\n/* */ }\n/* */ }\n/* */ }",
"public void waitUntilStarted() {\n mStarted.block();\n }",
"public boolean block() {\n while( !isDone() ) join();\n return true;\n }",
"@Override\r\n public void run() {\n try {\r\n synchronized (lock) {\r\n System.out.println(\"begin wait\");\r\n lock.wait();\r\n System.out.println(\"end wait\");\r\n }\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }",
"protected abstract long waitOnQueue();",
"public Status waitUntilFinished();",
"private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (a) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public void join();",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tleave = false;\n\t\t\t\t}",
"public void doSomething(){\n\t\tsynchronized(lock){\n\t\t\ttry{\n\t\t\t\tlock.wait();\n\t\t\t}\n\t\t\tcatch(InterruptedException e){\n\t\t\t\tSystem.out.println(\"WaitingThread interrupted\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 100; i++){\n\t\t\t\tSystem.out.println(\"Thread \" + this.getName() + \" is running \");\n\t\t\t}\n\t\t}\n\t}",
"public static void waitToGo() {\r\n try {\r\n sendMessageToMaster(SocketMessage.SLAVE_READY_TO_GO);\r\n wait_to_run.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }",
"public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }",
"@Override\n public void run() {\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n System.out.println(\"State of thread1 while it called join() method on thread2 -\" +\n DemonstrateThreadStates2.thread1.getState());\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true) {\r\n\t\t\t\tsynchronized(a) {\r\n\t\t\t\t\twhile(!a.isEmpty()) {\r\n\t\t\t\t\t\ta.getFirst().cover();\r\n\t\t\t\t\t\ta.removeFirst();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(bLinked &&!isExit()){\r\n\t\t\t\tLog.d(\"123\", \"set heart beat threadid:\"+Thread.currentThread().getId());\r\n\t\t\t\tjni.talkSetHeartBeat();\r\n\t\t\t\tif(jni.talkGetRegisterState()!=1 ){\r\n\t\t\t\t\tLog.e(\"123\", \"心跳停止了\");\r\n\t\t\t\t\tbLinked = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbLinked = true;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(interval*1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!bLinked){\r\n\t\t\t\thandler.sendEmptyMessage(MSG_NOT_LINK);\r\n\t\t\t}\r\n\t\t\theartThread = null;\r\n\t\t\tsuper.run();\r\n\t\t}",
"@Override\r\n\tpublic void join() {\n\r\n\t}",
"protected void makeThreadObjectFinish() {\n\t\ttry {\n\t\t\tif (syncCommands != null) {\n\t\t\t\tsyncCommands.join();\n\t\t\t}\n\t\t} catch (Exception e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"private static void waitForLogin() {\n\t\ttry {\n\t\t\tlatch.await();\n\t\t} catch (final InterruptedException e) {\n\t\t\tlogger.error(\"Unexpected interrupt\", e);\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}",
"public void join() throws InterruptedException {\n\t\tserver.join();\n\t}",
"private void awaitDone() throws IgniteInterruptedCheckedException {\n U.await(doneLatch);\n }",
"ThreadWait(long timeTowakeUp, KThread threadS){\n wakeUp = timeTowakeUp;\n thread = threadS;\n }",
"void await() throws InterruptedException\n {\n while (streams.containsKey(context))\n Thread.sleep(10);\n }",
"@Override\r\n public void run() { \r\n do{\r\n if(resList[resId].semaphore.tryLock()){ //gets lock and returns true if free (basically wait)\r\n try{\r\n this.doJob();\r\n }\r\n catch(Exception e){ //just in case\r\n System.out.println(e.toString());\r\n }\r\n finally{\r\n resList[resId].semaphore.unlock(); //frees resource (basically signal)\r\n }\r\n }\r\n } while(!shutdown);\r\n \r\n System.out.println(name + \" stopped.\"); //notify that the thread has stopped.\r\n }",
"public static void waitForMasterDone() {\r\n try {\r\n master_done_semaphore.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }",
"void join();",
"@Override\n\tpublic void run() {\n\t\tString result = null;\n\t\twhile (checkToStart()) {\n\t\t\tresult = doRun();\n\t\t\tsendResult(result);\n\t\t}\n\t\t// System.out.println(\"Thread - \" + name + \" is dead\");\n\t}",
"private static void waitForMoverThreads(List<Thread> moverThreads) throws InterruptedException {\n for (Thread thread : moverThreads) {\n thread.join();\n }\n }",
"public void wait4arriving() throws InterruptedException {\n \n // your code here\t\n }",
"@Override public void run() {\n waitUntil(\"message\", new Condition() {\n @Override public boolean isMet() {\n return false;\n }\n }, 0);\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\n\t\t\t while ( !bFinished ) {\n\t\t\t \ttry {\n\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t }\n\t\t\t System.exit(0);\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (map.containsKey(\"Maine\")) {\r\n\t\t try {\r\n\t\t \t System.out.println(\"Thread sleep starts\");\r\n\t\t Thread.sleep(500);\r\n\t\t System.out.println(\"Thread sleep ends\");\r\n\t\t } catch (InterruptedException ignored) {\r\n\t\t }\r\n\t\t System.out.println(\"Thread waiting\");\r\n\t\t System.gc();\r\n\t\t }\r\n\t\t\t}",
"public void run() {\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"准备。。。\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tp.await();//等待\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"已接受。。。\");\n\t\t\t\t\t\tThread.sleep((long)(Math.random()*10000));\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"完成。。。\");\n\t\t\t\t\t\ts.countDown();//三次后为0 释放主线程中的等待\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}",
"private static void await_execution(Thread[] threads) {\n for (Thread t: threads)\n {\n if (t.isAlive()) {\n try {\n t.join();\n }\n catch (InterruptedException ie) { \n ie.printStackTrace();\n }\n }\n }\n }",
"public synchronized void join() {\n try {\n connection.close();\n listener.join();\n } catch (Exception io) {\n System.err.println(io.getMessage());\n io.printStackTrace();\n } \n }",
"private void blockUntilShutdown() throws InterruptedException {\n\t\tif (server != null) {\n\t\t\tserver.awaitTermination();\n\t\t}\n\t}",
"public void finish() {\n latch.countDown();\n }",
"final void waitFinished() {\n if (selectionSyncTask != null) {\n selectionSyncTask.waitFinished();\n }\n }",
"@Override\n public void run() {\n while (this.isAlive()) {\n try {\n this.semaphoreHashMap.get(\"lock\").acquire();\n this.guestNo = -1;\n this.bellhopGuestHashMap = null;\n this.semaphoreHashMap.get(\"bellhops\").release();\n this.helper.addToBellhopQueue(this);\n this.semaphoreHashMap.get(\"lock\").release();\n\n printStringToConsole(toStringId, \"is ready to help a guest\");\n\n this.mutex.acquire();\n\n printStringToConsole(toStringId, \"has obtained the bags of [Guest \", guestNo + \"\", \"]\");\n this.bellhopGuestHashMap.get(\"hasBags\").release();\n\n this.bellhopGuestHashMap.get(\"guestNeedsBags\").acquire();\n\n this.bellhopGuestHashMap.get(\"inRoom\").acquire();\n printStringToConsole(toStringId, \"has entered the room of [Guest \", guestNo + \"\", \"]\");\n\n printStringToConsole(toStringId, \"has given the bags to [Guest \", guestNo + \"\", \"]\");\n this.bellhopGuestHashMap.get(\"giveBags\").release();\n\n this.bellhopGuestHashMap.get(\"giveTip\").acquire();\n printStringToConsole(toStringId, \"has gotten their tip and leaves from [Guest \", guestNo + \"\", \"]\");\n\n this.bellhopGuestHashMap.get(\"gotTip\").release();\n\n printStringToConsole(toStringId, \"is ready to help a guest\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\tIterator<Future<Integer>> iter = runningThreadsList.iterator();\n\t\t\tif (iter.hasNext()) {\n\t\t\t\tFuture<Integer> future = (Future<Integer>) iter.next();\n\t\t\t\tif (future.isDone()) {\n\t\t\t\t\trunningThreadsList.remove(future);\n\t\t\t\t\t\n\t\t\t\t\tif (allocator.getInventory().isEmpty()) {\n\t\t\t\t\t\tallocator.shutdown();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tThread.yield();\n\t\t}\n\t\t\t\n\t\t\n\t}",
"protected void waitUntilCommandFinished() {\n }",
"public synchronized void retThread(WorkerThread w) {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i) == w) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void requestThread() {\n while (true) {\n long elapsedMillis = System.currentTimeMillis() - lastHeartbeatTime;\n long remainingMillis = heartbeatMillis - elapsedMillis;\n if (remainingMillis <= 0) {\n sendHeartbeats();\n } else {\n try {\n Thread.sleep(Math.max(remainingMillis, 3));\n } catch (InterruptedException e) {\n }\n }\n }\n }",
"@Override\n\tpublic void run() \n\t{\n\n\t\ttry \n\t\t{\n\t\tif(isDriver) \n\t\t\t{\n\t\t\t\tSystem.out.println(\" waiting for the workers\");\n\t\t\t\tstopSignal.await();\n\t\t\t\tSystem.out.println(\" driver Shutting down.\");\n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\" Caller waiting \");\n\t\t\t\tstartSignal.await();\n\t\t\t\tSystem.out.println(\" Caller counting down \");\n\t\t\t\tstopSignal.countDown();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) \n\t\t{\n\t\t\tSystem.err.println(\"e:\"+e.getMessage());\n\t\t}\n\n\t}",
"private void initialBlockOnMoarRunners() throws InterruptedException\n {\n lock.lock();\n try\n {\n if (taskQueue.isEmpty() && runners > 1)\n {\n runners--;\n needMoreRunner.await();\n runners++;\n }\n }\n finally\n {\n lock.unlock();\n }\n }",
"private void blockUntilShutdown() throws InterruptedException {\n if (server != null) {\n server.awaitTermination();\n }\n }",
"public void delayTestFinish() {\r\n\t\ttry {\r\n\t\t\tlatch.await();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tthrow new RuntimeException(e);\t// don't expose InterruptedException to users\r\n\t\t} finally {\r\n\t\t\tlatch.reset();\r\n\t\t}\r\n\t}",
"private void blockUntilShutdown() throws InterruptedException {\n if (server != null) {\n server.awaitTermination();\n }\n }",
"private void blockUntilShutdown() throws InterruptedException {\n if (server != null) {\n server.awaitTermination();\n }\n }",
"private void blockUntilShutdown() throws InterruptedException {\n if (server != null) {\n server.awaitTermination();\n }\n }",
"private void blockUntilShutdown() throws InterruptedException {\n if (server != null) {\n server.awaitTermination();\n }\n }",
"private void blockUntilShutdown() throws InterruptedException {\n if (server!=null){\n server.awaitTermination();\n }\n }",
"public void waitForFinish() {\n for(Future future : futures){\n try {\n future.get();\n } catch (InterruptedException | ExecutionException e) {\n LOGGER.error(\"ERROR\",e);\n }\n }\n }",
"public void waitForPostProcessingThread(){\n\t\tsynchronized(PPT_Lock) {\n\t\t\twhile(PPT.isWorking()){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tPPT_Lock.wait();\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"private void blockUntilShutdown() throws InterruptedException {\n if (server != null) {\n server.awaitTermination();\n }\n }",
"private void blockUntilShutdown() throws InterruptedException {\n if (server != null) {\n server.awaitTermination();\n }\n }",
"private void waitForStart(IOThread iot, IOThread eot) throws InterruptedException {\n while (true) {\n String out = iot.getNext();\n String err = eot.getAvailable();\n if (mVerbose) {\n debugOutput(out, err);\n }\n if ((out == null) && (err == null)) {\n Thread.sleep(10);\n } else if (\"START\".equals(out)) {\n break;\n } else {\n throw new RuntimeException(\"jumble.fast.FastJumbler returned \" + ((out != null) ? out : err + \" on stderr\") + \" instead of START\");\n }\n }\n }",
"public void awaitDone() {\n try {\n // Wait until the CountDownLatch reaches 0.\n mExitBarrier.await();\n } catch(java.lang.InterruptedException e) {\n errorLog(\"PlatformStrategyAndroid\",\n e.getMessage());\n }\n }",
"public void waitForData() {\n waitForData(1);\n }",
"private synchronized void checkCollisions() {\n // I'm note sure whether this function is needed. \n // This code could go in do Collisions()\n // It was sort of painfull to make this work and I ended up making a mess\n // so this architecture may have good changes of improvement.\n //\n goCheckCollisions = true;\n isThreadLoopDone = false;\n notifyAll();\n while (!isThreadLoopDone) {\n try {\n wait();\n } catch (InterruptedException ex) {}\n }\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tURL url;\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\turl = new URL(strUrl);\n\t\t\t\tURLConnection con = url.openConnection();\n\t\t\t\tcon.connect();\n\t\t\t\tInputStream input = con.getInputStream();\n\t\t\t\tList<Map<String,Object>> temp = json.getListItems(input);\n\t\t\t\tif(temp != null){\n\t\t\t\t\tif(merger.mergeTwoList(list, temp, direction))\n\t\t\t\t\t\tmyHandler.sendEmptyMessage(1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tmyHandler.sendEmptyMessage(5);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}",
"@Override\n public boolean waitToProceed() {\n return false;\n }",
"private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }",
"@Override\n public void run() {\n try {\n while (shouldWork) {\n // The TA can sleep indefinitely, until someone wakes him up\n sleepUntilFirstStudent();\n // Help the student which wake the TA up, and all the\n // students waiting in the queue\n while (currentStudent != null) {\n helpStudent();\n currentStudent = getNextWaitingStudent();\n }\n }\n } catch (InterruptedException ex) {\n System.out.println(\"Someone interrupted the TA, closing the office...\");\n }\n }",
"@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.get();\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public synchronized void run() {\n System.out.println(this.getName() + \" is ready\");\n while (true) {\n try {\n // Sleep and release object lock\n this.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n // Clear interrupt status\n this.interrupted();\n }\n\n if (key == null) {\n continue; // just in case\n }\n\n System.out.println(this.getName() + \" has been awakened\");\n try {\n drainChannel(key);\n } catch (Exception e) {\n System.out.println(\"Caught '\" + e\n + \"' closing channel\");\n\n // Close channel and nudge selector\n try {\n key.channel().close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n key.selector().wakeup();\n }\n key = null;\n\n // Done. Ready for more. Return to pool\n this.pool.returnWorker(this);\n }\n }",
"@Override\n\tpublic void run() {\n\t\twhile(true){\n \tlock.lock();\n \ttry{\n\t \tif(observers.isEmpty()){\n\t \t\treturn;\n\t \t}\n \t}\n \tfinally{\n \t\tlock.unlock();\n \t}\n }\n\t}",
"public void notifyThreadExited() {}",
"public void waitForAccess(KThread thread) \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n ThreadState waiterState = getThreadState(thread);\n waiterState.waitForAccess(this); //Call waitForAccess of ThreadState class\n waitQueue.add(thread); //Add this thread to this waitQueue \n if(owner != null)\n\t\t\t{\n\t\t\t getThreadState(owner).donatePriority(waiterState.getPriority()-getThreadState(owner).getPriority()); //See if the incoming thread has to donate priority to the owner\n\t\t\t}\n\t\t}",
"private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"public void waitForShutdown() throws InterruptedException {\n\t\tsynchronized(this){\n\t\t\tif(platform != null){\n\t\t\t\tthis.wait();\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}",
"protected void onThreadStart() {\n\t\tparent.startLock.countDown();\n\t\t//wait for all other threads ready\n\t\ttry {\n\t\t\tparent.startLock.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthreadStartTime = new Date();\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tfor (int i=1; i<0;i++) {\r\n\t\t\ttry {\r\n\t\t\t\tcurrentThread();\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tSystem.out.println(currentThread());\r\n\t\t\t}catch(Exception e) {}\r\n\t\t}\r\n\t}"
] | [
"0.7119806",
"0.6790014",
"0.67499673",
"0.67085606",
"0.6658221",
"0.6622597",
"0.65755296",
"0.6524125",
"0.6519808",
"0.6446854",
"0.6444404",
"0.6390109",
"0.6389411",
"0.63855374",
"0.6380154",
"0.6363778",
"0.6349901",
"0.6345987",
"0.63248354",
"0.63230526",
"0.6224808",
"0.62105286",
"0.6201251",
"0.61705595",
"0.6051907",
"0.60452163",
"0.6042978",
"0.60083693",
"0.60078263",
"0.5997466",
"0.59822613",
"0.59694874",
"0.59666544",
"0.5965019",
"0.5959544",
"0.59513694",
"0.5945167",
"0.5944588",
"0.5933085",
"0.5926238",
"0.5917927",
"0.5904743",
"0.5901064",
"0.5893905",
"0.5892498",
"0.5891731",
"0.5886969",
"0.58668756",
"0.58614284",
"0.58583295",
"0.5855488",
"0.58158255",
"0.5808405",
"0.5803125",
"0.57891035",
"0.5780955",
"0.577819",
"0.5777238",
"0.5776937",
"0.57755387",
"0.5774313",
"0.5764721",
"0.5748183",
"0.5745093",
"0.5744465",
"0.5743772",
"0.5741407",
"0.57371116",
"0.5733915",
"0.5726987",
"0.57206553",
"0.5720176",
"0.570245",
"0.5697071",
"0.5697071",
"0.5697071",
"0.5697071",
"0.56910163",
"0.5690591",
"0.5681037",
"0.5680725",
"0.5679939",
"0.5679939",
"0.56790257",
"0.56615084",
"0.5641621",
"0.56367505",
"0.563253",
"0.5627258",
"0.55997145",
"0.5598718",
"0.55978745",
"0.5596261",
"0.55946606",
"0.5584108",
"0.5562827",
"0.5557677",
"0.5556807",
"0.55553544",
"0.55486256",
"0.5543629"
] | 0.0 | -1 |
if upper left corner, close else if edge, move in that direction else print touch location | @Override
public boolean onTouchEvent(MotionEvent event) {
int edgeDist = 128;
boolean debugging = false;
if (debugging) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
if (event.getY() < 50 && event.getX() < 50) {
thread.setRunning(false);
((Activity) getContext()).finish();
} else if (event.getY() > getHeight() - edgeDist) {
thread.getEnemy().setDirection(Gladiator.DIR.Down);
} else if (event.getY() < edgeDist) {
thread.getEnemy().setDirection(Gladiator.DIR.Up);
} else if (event.getX() > getWidth() - edgeDist) {
thread.getEnemy().setDirection(Gladiator.DIR.Right);
} else if (event.getX() < edgeDist) {
thread.getEnemy().setDirection(Gladiator.DIR.Left);
} else {
Log.d(TAG, "Coords: x=" + event.getX() + ",y=" + event.getY());
}
} else if (event.getAction() == MotionEvent.ACTION_UP) {
thread.getEnemy().setDirection(Gladiator.DIR.None);
}
} else {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
if (event.getY() > getHeight() - edgeDist && event.getX() > getWidth() - edgeDist) {
//TODO Set intent here
Log.d(TAG, "HOME INTENT");
}
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loopThroughEdge()\n {\n int margin = 2;\n\n if (getX() < margin) //left side\n { \n setLocation(getWorld().getWidth()+ margin, getY());\n }\n else if (getX() > getWorld().getWidth() - margin) //right side\n {\n setLocation(margin, getY());\n }\n\n if (getY() < margin) //top side\n { \n setLocation(getX(), getWorld().getHeight() - margin);\n }\n else if(getY() > getWorld().getHeight() - margin) //bottom side\n { \n setLocation(getX(), margin);\n }\n }",
"@Override\n\tpublic boolean onTouch(View view, MotionEvent event) {\n\t\t\n\t\tint viewWidth = view.getLayoutParams().width;\n\t\tint viewHeight = view.getLayoutParams().height;\n\t final int X = (int) event.getRawX();\n\t final int Y = (int) event.getRawY();\n\t switch (event.getAction() & MotionEvent.ACTION_MASK) {\n\t case MotionEvent.ACTION_DOWN:\n\t RelativeLayout.LayoutParams lParams = (RelativeLayout.LayoutParams) view.getLayoutParams();\n\t _xDelta = X - lParams.leftMargin;\n\t _yDelta = Y - lParams.topMargin;\n\t break;\n\t case MotionEvent.ACTION_UP:\n\t break;\n\t case MotionEvent.ACTION_POINTER_DOWN:\n\t break;\n\t case MotionEvent.ACTION_POINTER_UP:\n\t break;\n\t case MotionEvent.ACTION_MOVE:\n\t RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) view.getLayoutParams();\n\t if ((layoutParams.leftMargin > X - _xDelta)) {\n\t \t//Moving left - check for edge\n\t \tint newLeftMargin = X - _xDelta;\n\t \tif (newLeftMargin <1) {\n\t \t\tnewLeftMargin = 1;\n\t \t}\n\t \tlayoutParams.leftMargin = newLeftMargin;\n \t\t//Toast.makeText(getApplicationContext(), \"layoutParams.leftMargin: \" + Integer.toString(layoutParams.leftMargin) + \"parentLeftMargin: \" + Integer.toString(parentLeftMargin), Toast.LENGTH_SHORT).show();\n\t }\n\t if ((layoutParams.leftMargin < X - _xDelta)) {\n\t \t//Moving right - check for edge\n\t \tView parentView= (View)view.getParent();\n\t \tint parentWidth = parentView.getWidth();\n\t \tint newLongLeftMargin = X - _xDelta;\n\t \tif ( newLongLeftMargin > (parentWidth - viewWidth) ) {\n\t \t\t//we are at the right edge\n\t \t\tnewLongLeftMargin = parentWidth - viewWidth;\n\t \t}\n\t \tlayoutParams.leftMargin = newLongLeftMargin;\n\t }\n\t if ((layoutParams.topMargin > Y - _yDelta)) {\n\t \t//Moving up - check for top\n\t \tint newTopMargin = Y - _yDelta;\n\t\t if (newTopMargin < 1 ) {\n\t\t \t//We are at the top\n\t\t \tnewTopMargin = 1;\n\t\t }\n\t\t layoutParams.topMargin = newTopMargin;\n\t }\n\t if ((layoutParams.topMargin < Y - _yDelta)) {\n\t \t//Moving down - check for bottom\n\t \tView parentView= (View)view.getParent();\n\t \tint parentHeight = parentView.getHeight();\n\t \tint newTallTopMargin = Y - _yDelta;\n\t \tif ( newTallTopMargin > ( parentHeight - viewHeight) ) {\n\t \t\t//we are at the bottom\n\t \t\tnewTallTopMargin = parentHeight - viewHeight;\n\t \t}\n\t \tlayoutParams.topMargin = newTallTopMargin;\n\t }\n\t \n\t layoutParams.rightMargin = -250;\n\t layoutParams.bottomMargin = -250;\n\t view.setLayoutParams(layoutParams);\n\t break;\n\t }\n\t eventDisplayArea.invalidate();\n\t return true;\n\t}",
"@Override\n public void move() {\n System.out.println(\"diagonally\");\n }",
"private void touchMove(float x,float y){\n float dx = Math.abs(x - pointX);\n float dy = Math.abs(y - pointY);\n\n if(dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE){\n path.quadTo(pointX,pointY,(x + pointX)/2,(y + pointY)/2);\n pointX=x;\n pointY=y;\n }\n }",
"private void moveTouch(float x, float y) {\n// try {\n// socket.emit(\"drawing\", getJsonObject(x,y));\n//\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n float dx = Math.abs(x - mX);\n float dy = Math.abs(y - mY);\n if (dx >= TOLERANCE || dy >= TOLERANCE) {\n emitToServer(x, y);\n path.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2);\n mX = x;\n mY = y;\n }\n }",
"public void bounceOffEdge()\n {\n int margin = 2;\n\n if (getX() <= margin || getX() >= getWorld().getWidth() - margin) //left or right side\n {\n turn(180);\n }\n if (getY() <= margin || getY() >= getWorld().getHeight() - margin) //top or bottom side\n {\n turn(180);\n }\n }",
"private void drive(int e) {\r\n if (endx[e] + 120 >= width - radius[e] && directionend[e] == 0) {\r\n endx[e] += 20;\r\n endy[e] -= 20;\r\n directionend[e]++;\r\n radius[e] -= 60;\r\n directionchanged[e] = true;\r\n } else if (endy[e] + 120 >= height - radius[e] && directionend[e] == 1) {\r\n\r\n endx[e] += 20;\r\n endy[e] += 20;\r\n directionend[e]++;\r\n radius[e] -= 60;\r\n directionchanged[e] = true;\r\n } else if (endx[e] - 120 <= radius[e] && directionend[e] == 2) {\r\n endx[e] -= 20;\r\n endy[e] += 20;\r\n radius[e] -= 60;\r\n directionend[e]++;\r\n directionchanged[e] = true;\r\n } else if (endy[e] - 80 <= radius[e] && directionend[e] == 3) {\r\n endx[e] -= 20;\r\n endy[e] -= 20;\r\n radius[e] -= 60;\r\n directionend[e] = 0;\r\n directionchanged[e] = true;\r\n } else {\r\n directionchanged[e] = false;\r\n }\r\n }",
"public void move() {\n\t\t// tolerance of angle at which the Base starts moving\n\t\tint tolerance = 10;\n\t\tif(Math.abs(angle) < Math.abs(angleDesired)+tolerance && Math.abs(angleDesired)-tolerance < Math.abs(angle)) {\n\t\t\tdouble vX = Math.cos(Math.toRadians(this.angle + 90)) * v;\n\t\t\tdouble vY = Math.sin(Math.toRadians(this.angle + 90)) * v;\n\t\t\t\n\t\t\tthis.x += vX;\n\t\t\tthis.y += vY;\t\n\t\t\tthis.rectHitbox = new Rectangle((int)(x-rectHitbox.width/2),(int)(y-rectHitbox.height/2),rectHitbox.width,rectHitbox.height);\n\t\t}\n\t\t// curTargetPathBoardRectangle\n\t\tRectangle curTPBR = pathBoardRectangles.get(curTargetPathCellIndex).rect;\n\t\tRectangle rectSmallerBR = new Rectangle((int)curTPBR.getCenterX()-5,(int)curTPBR.getCenterY()-5,10,10);\n\t\t// updates the index when it crosses a pathCell so it counts down from pathCell to pathCell,\n\t\t// always having the next pathCell in the array as the target until the end is reached then it stops\n\t\tif(rectSmallerBR.contains(new Point((int)x,(int)y))) {\n\t\t\tif(curTargetPathCellIndex < pathBoardRectangles.size()-1) {\n\t\t\t\tcurTargetPathCellIndex++;\n\t\t\t\tparentGP.boardRect = pathBoardRectangles.get(curTargetPathCellIndex-1);\n\t\t\t\ttAutoDirectionCorrection.restart();\n\t\t\t}else {\n\t\t\t\tparentGP.isMoving = false;\n\t\t\t\tparentGP.boardRect = pathBoardRectangles.get(curTargetPathCellIndex);\n\t\t\t\tpathBoardRectangles.clear();\n\t\t\t\ttAutoDirectionCorrection.stop();\n\t\t\t\tStagePanel.tryCaptureGoldMine(parentGP);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif(event.getAction() == event.ACTION_DOWN)\n\t\t\t\t{\n\t\t\t\tswitch(v.getId()){\n\t\t\t\tcase R.id.left:\n\t\t\t\t\tmAgileBuddyView.handleMoving(-1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.right:\n\t\t\t\t\tmAgileBuddyView.handleMoving(1);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t} else if(event.getAction() == event.ACTION_UP) \n\t\t\t\t\tmAgileBuddyView.handleMoving(0);\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}",
"public void handlePress(double x, double y){\n xDistanceFromCorner = x - getX();\n yDistanceFromCorner = y - getY();\n }",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\t\tLeftLastX = (int) event.getRawX();\n\t\t\t\t\t\tLeftLastY = (int) event.getRawY();\n\t\t\t\t\t\tLog.d(Tag, \"Clicked\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\t\tLog.d(Tag, \"Moved\");\n\t\t\t\t\t\tint dx = (int) event.getRawX() - LeftLastX;\n\t\t\t\t\t\tint dy = 0;//(int) event.getRawY() - LeftLastY;\n\t\t\t\t\t\tLog.d(Tag, \"move dx=\" + dx + \", dy=\" + dy);\n\t\t\t\t\t\tint left = v.getLeft() + dx;\n\t\t\t\t\t\tint top = v.getTop() + dy;\n\t\t\t\t\t\tint right = v.getRight() + dx;\n\t\t\t\t\t\tint bottom = v.getBottom() + dy;\n\t\t\t\t\t\tLog.d(Tag, \"view left=\" + left + \", top=\" + top + \", right=\" + right + \",bottom=\" + bottom);\n\t\t\t\t\t\tif ((left<=0) || (right>=ValueSet.screenWidth/2)){\n\t\t\t\t\t\t\tleft = left - dx;\n\t\t\t\t\t\t\tright = right - dx;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tv.layout(left, top, right, bottom);\n\t\t\t\t\t\tValueSet.LeftEdgeX=left+10;\n\t\t\t\t\t\tLeftLastX = (int) event.getRawX();\n\t\t\t\t\t\tLeftLastY = (int) event.getRawY();\n\t\t\t\t//\t\tToast.makeText(getApplicationContext(), ValueSet.LeftEdgeX, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tDataGenerator.setNewBar(ControlGroup);\n\t\t\t\t\t\trefreshResult();\n\t\t\t\t\t//\tChannelCheck2.setImageResource(R.drawable.negative);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}",
"@Override\n public boolean onTouchEvent(MotionEvent _event) {\n\n float x = _event.getX();\n float y = _event.getY();\n\n switch (_event.getAction()){\n case MotionEvent.ACTION_DOWN: {\n mPath.moveTo(x,y);\n mX = x;\n mY = y;\n invalidate();\n }break;\n case MotionEvent.ACTION_MOVE: {\n int intY = (int) y;\n int intX = (int) x;\n\n int indexX;\n int indexY;\n for(int i = 0; i < size; i++){\n if(i < size/2) {\n indexX = intX + i;\n indexY = intY + i;\n } else {\n indexX = intX - i;\n indexY = intY - i;\n }\n if(indexY < height && indexY > -1 && indexX < width && indexX > -1) {\n mPixelY[indexY] = 1;\n mPixelX[indexX] = 1;\n }\n }\n float dx = Math.abs(x - mX);\n float dy = Math.abs(y - mY);\n if (dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE) {\n mPath.quadTo(mX, mY, (x + mX)/2, (y + mY)/2);\n mX = x;\n mY = y;\n }\n invalidate();\n }break;\n case MotionEvent.ACTION_UP:{\n if(isScreenFull()){\n LevelCompleteDialog d = new LevelCompleteDialog(mActivity,4);\n d.show();\n }\n }break;\n }\n\n return true;\n }",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\t\tRightLastX = (int) event.getRawX();\n\t\t\t\t\t\tRightLastY = (int) event.getRawY();\n\t\t\t\t\t\tLog.d(Tag, \"Clicked\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\t\tLog.d(Tag, \"Moved\");\n\t\t\t\t\t\tint dx = (int) event.getRawX() - RightLastX;\n\t\t\t\t\t\tint dy = 0;//(int) event.getRawY() - LeftLastY;\n\t\t\t\t\t\tLog.d(Tag, \"move dx=\" + dx + \", dy=\" + dy);\n\t\t\t\t\t\tint left = v.getLeft() + dx;\n\t\t\t\t\t\tint top = v.getTop() + dy;\n\t\t\t\t\t\tint right = v.getRight() + dx;\n\t\t\t\t\t\tint bottom = v.getBottom() + dy;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.d(Tag, \"view left=\" + left + \", top=\" + top + \", right=\" + right + \",bottom=\" + bottom);\n\t\t\t\t\t\tif ((left<=0) || (right>=ValueSet.screenWidth/2)){\n\t\t\t\t\t\t\tleft = left - dx;\n\t\t\t\t\t\t\tright = right - dx;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tv.layout(left, top, right, bottom);\n\t\t\t\t\t\tValueSet.RightEdgeX=right-10+ValueSet.screenWidth/2;\n\t\t\t\t\t\tRightLastX = (int) event.getRawX();\n\t\t\t\t\t\tRightLastY = (int) event.getRawY();\n\t\t\t\t\t\tDataGenerator.setNewBar(ControlGroup);\n\t\t\t\t\t\trefreshResult();\n\t\t\t\t\t//\tChannelCheck1.setImageResource(R.drawable.positive);\n\t\t\t\t\t\tbreak; \n\t\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}",
"@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tswitch (event.getAction()) {\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\tcx = event.getX();\n\t\t\tcy = event.getY();\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn true;\n\t}",
"private void mouseDownInMove()\n/* */ {\n/* 122 */ if (this.downNode < 0) return;\n/* 123 */ if (this.bn != null) this.oldPos.setLocation(this.bn.getPos(this.downNode)); else {\n/* 124 */ this.oldPos.setLocation(this.mn.getPos(this.downNode));\n/* */ }\n/* */ }",
"private void touchUp(){\n path.lineTo(pointX,pointY);\n }",
"@Override\r\n public void mouseDragged(MouseEvent e) {\r\n int deltaX = e.getXOnScreen() - screenX;\r\n int deltaY = e.getYOnScreen() - screenY; \r\n \r\n setLocation(myX + deltaX, myY + deltaY);\r\n }",
"public void display()\n {\n if(corner == 1)\n {\n moveTo(new Location(0,0));\n setDirection(135);\n }\n else if(corner == 2)\n {\n moveTo(new Location(0,9));\n setDirection(225);\n }\n else if(corner == 3)\n {\n moveTo(new Location(9,9));\n setDirection(315);\n }\n else if(corner == 4)\n {\n moveTo(new Location(9,0));\n setDirection(45);\n }\n }",
"@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n final int xi = (int) x;\n final int yi = (int) y;\n\n //pinch fov?\n switch (e.getAction()) {\n case MotionEvent.ACTION_DOWN:\n tt = System.currentTimeMillis();\n Log.d(\"buttst\", Long.toString(tt));\n break;\n case MotionEvent.ACTION_UP:\n if (System.currentTimeMillis() - tt < 150) {\n queueEvent(new Runnable() {\n @Override\n public void run() {\n mRenderer.switchCellAtPixel(xi, yi);\n }\n });\n Log.d(\"butt\", \"clicked__\" + Float.toString(x) + \"|\" + Float.toString(y));\n }\n break;\n case MotionEvent.ACTION_MOVE:\n float dx = x - mPreviousX;\n float dy = y - mPreviousY;\n mRenderer.rotateCamera(dx, dy);\n requestRender();\n }\n mPreviousX = x;\n mPreviousY = y;\n return true;\n }",
"void moveHandleToPointInTraceHorizontally(int where);",
"@Override\r\n public void mouseMoved(MouseEvent e) {\r\n int mouseX = e.getX();\r\n int mouseY = e.getY();\r\n\r\n if (eyesOpen == true) {\r\n //top left\r\n if (mouseX <= 385) {\r\n System.out.println(\"385\");\r\n }\r\n if (mouseX >= 390) {\r\n System.out.println(\"390\");\r\n }\r\n if (mouseX <= 385 && mouseY <= 245 && mouseY > 207) {\r\n eyeball1X = 380;\r\n eyeball1Y = 240;\r\n eyeball2X = 417;\r\n eyeball2Y = 240;\r\n }\r\n //bottom left\r\n if (mouseX <= 385 && mouseY >= 257) {\r\n eyeball1X = 380;\r\n eyeball1Y = 245;\r\n eyeball2X = 417;\r\n eyeball2Y = 245;\r\n }\r\n //top middle\r\n if (mouseX >= 390 && mouseX <= 410 && mouseY > 207) {\r\n eyeball1X = 385;\r\n eyeball1Y = 240;\r\n eyeball2X = 420;\r\n eyeball2Y = 240;\r\n }\r\n //bottom middle\r\n if (mouseX >= 390 && mouseX <= 410 && mouseY >= 267) {\r\n eyeball1X = 385;\r\n eyeball1Y = 245;\r\n eyeball2X = 420;\r\n eyeball2Y = 245;\r\n }\r\n //top right\r\n if (mouseX > 410 && mouseY <= 245 && mouseY > 207) {\r\n eyeball1X = 390;\r\n eyeball1Y = 240;\r\n eyeball2X = 425;\r\n eyeball2Y = 240;\r\n }\r\n //bottom right\r\n if (mouseX > 410 && mouseY >= 257) {\r\n eyeball1X = 390;\r\n eyeball1Y = 245;\r\n eyeball2X = 425;\r\n eyeball2Y = 245;\r\n }\r\n\r\n }\r\n }",
"@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tif((e.getModifiersEx() & MouseEvent.BUTTON2_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for middle mouse button drags, pan across the scene\r\n\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\ttemp.setTail(worldCenter);\r\n\t\t\tworldCenter = temp.getHead();\r\n\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t}\r\n\t\telse if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for left mouse button drags, move closest vert.\r\n\t\t\tif(closestPointToCursor != null)\r\n\t\t\t{\r\n\t\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\t\ttemp.setTail(closestPointToCursor);\r\n\t\t\t\tclosestPointToCursor.set(temp.getHead());\r\n\t\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"void object_calculations_touch_ground(){\n\n if (down_angle < 0 && up_angle > 0)//base case\n {\n double temp = up_angle;\n up_angle = down_angle;\n down_angle = temp;\n base_case();\n } else if ((down_angle > 0 && up_angle > 0) && (down_angle < up_angle))//smaller object\n {\n double temp = up_angle;\n up_angle = down_angle;\n down_angle = temp;\n measure_small_object();\n } else if (up_angle < 0 && down_angle > 0)//base case\n base_case();\n else //smaller object\n measure_small_object();\n }",
"public void move(TrackerState state) {\n\t\t\n\t\tcurrentPosition[0] = state.devicePos[0];\n\t\tcurrentPosition[1] = state.devicePos[1];\n\t\tcurrentPosition[2] = state.devicePos[2];\n\t\t\n\t\tboolean processMove = false;\n\t\t\n\t\tboolean isWheel = (state.actionType == TrackerState.TYPE_WHEEL);\n\t\tboolean isZoom = (isWheel || state.ctrlModifier);\n\t\t\n\t\tif (isZoom) {\n\t\t\t\n\t\t\tdirection[0] = 0;\n\t\t\tdirection[1] = 0;\n\t\t\t\n\t\t\tif (isWheel) {\n\t\t\t\tdirection[2] = state.wheelClicks * 0.1f;\n\t\t\t\t\n\t\t\t} else if (state.ctrlModifier) {\n\t\t\t\tdirection[2] = (currentPosition[1] - startPosition[1]);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tdirection[2] = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif (direction[2] != 0) {\n\t\t\t\t\n\t\t\t\tdirection[2] *= 16;\n\t\t\t\t\n\t\t\t\tdata.viewpointTransform.getTransform(startViewMatrix);\n\t\t\t\tstartViewMatrix.get(positionVector);\n\t\t\t\t\n\t\t\t\tinVector.x = startViewMatrix.m02;\n\t\t\t\tinVector.y = startViewMatrix.m12;\n\t\t\t\tinVector.z = startViewMatrix.m22;\n\t\t\t\tinVector.normalize();\n\t\t\t\tinVector.scale(direction[2]);\n\t\t\t\t\n\t\t\t\tpositionVector.add(inVector);\n\t\t\t\t\n\t\t\t\t// stay above the floor\n\t\t\t\tif (positionVector.y > 0) {\n\t\t\t\t\tdestViewMatrix.set(startViewMatrix);\n\t\t\t\t\tdestViewMatrix.setTranslation(positionVector);\n\t\t\t\t\t\n\t\t\t\t\tprocessMove = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t\n\t\t\tdirection[0] = -(startPosition[0] - currentPosition[0]);\n\t\t\tdirection[1] = -(currentPosition[1] - startPosition[1]);\n\t\t\tdirection[2] = 0;\n\t\t\t\n\t\t\tfloat Y_Rotation = direction[0];\n\t\t\tfloat X_Rotation = direction[1];\n\t\t\t\n\t\t\tif( ( Y_Rotation != 0 ) || ( X_Rotation != 0 ) ) {\n\t\t\t\t\n\t\t\t\tdouble theta_Y = -Y_Rotation * Math.PI;\n\t\t\t\tdouble theta_X = -X_Rotation * Math.PI;\n\t\t\t\t\n\t\t\t\tdata.viewpointTransform.getTransform(startViewMatrix);\n\t\t\t\tstartViewMatrix.get(positionVector);\n\t\t\t\t\n\t\t\t\tpositionVector.x -= centerOfRotation.x;\n\t\t\t\tpositionVector.y -= centerOfRotation.y;\n\t\t\t\tpositionVector.z -= centerOfRotation.z;\n\t\t\t\t\n\t\t\t\tif (theta_Y != 0) {\n\n\t\t\t\t\trot.set(0, 1, 0, (float)theta_Y);\n\t\t\t\t\tmtx.set(rot);\n\t\t\t\t\tmtx.transform(positionVector);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (theta_X != 0) {\n\t\t\t\t\t\n\t\t\t\t\tvec.set(positionVector);\n\t\t\t\t\tvec.normalize();\n\t\t\t\t\tfloat angle = vec.angle(Y_AXIS);\n\t\t\t\t\t\n\t\t\t\t\tif (angle == 0) {\n\t\t\t\t\t\tif (theta_X > 0) {\n\t\t\t\t\t\t\trightVector.x = startViewMatrix.m00;\n\t\t\t\t\t\t\trightVector.y = startViewMatrix.m10;\n\t\t\t\t\t\t\trightVector.z = startViewMatrix.m20;\n\t\t\t\t\t\t\trightVector.normalize();\n\t\t\t\t\t\t\trot.set(rightVector.x, 0, rightVector.z, (float)theta_X);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trot.set(0, 0, 1, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((theta_X + angle) < 0) {\n\t\t\t\t\t\t\ttheta_X = -(angle - 0.0001f);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvec.y = 0;\n\t\t\t\t\t\tvec.normalize();\n\t\t\t\t\t\trot.set(vec.z, 0, -vec.x, (float)theta_X);\n\t\t\t\t\t}\n\t\t\t\t\tmtx.set(rot);\n\t\t\t\t\tmtx.transform(positionVector);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpositionPoint.x = positionVector.x + centerOfRotation.x;\n\t\t\t\tpositionPoint.y = positionVector.y + centerOfRotation.y;\n\t\t\t\tpositionPoint.z = positionVector.z + centerOfRotation.z;\n\t\t\t\t\n\t\t\t\t// don't go below the floor\n\t\t\t\tif (positionPoint.y > 0) {\n\t\t\t\t\t\n\t\t\t\t\tmatrixUtils.lookAt(positionPoint, centerOfRotation, Y_AXIS, destViewMatrix);\n\t\t\t\t\tmatrixUtils.inverse(destViewMatrix, destViewMatrix);\n\t\t\t\t\t\n\t\t\t\t\tprocessMove = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (processMove) {\n\t\t\t\n\t\t\tboolean collisionDetected = \n\t\t\t\tcollisionManager.checkCollision(startViewMatrix, destViewMatrix);\n\t\t\t\n\t\t\tif (!collisionDetected) {\n\t\t\t\tAV3DUtils.toArray(destViewMatrix, array);\n\t\t\t\tChangePropertyTransientCommand cptc = new ChangePropertyTransientCommand(\n\t\t\t\t\tve, \n\t\t\t\t\tEntity.DEFAULT_ENTITY_PROPERTIES, \n\t\t\t\t\tViewpointEntity.VIEW_MATRIX_PROP,\n\t\t\t\t\tarray,\n\t\t\t\t\tnull);\n\t\t\t\tcmdCntl.execute(cptc);\n\t\t\t\tif (statusManager != null) {\n\t\t\t\t\tstatusManager.fireViewMatrixChanged(destViewMatrix);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tstartPosition[0] = currentPosition[0];\n\t\tstartPosition[1] = currentPosition[1];\n\t\tstartPosition[2] = currentPosition[2];\n\t}",
"@Override\n public boolean onTouch(View v, MotionEvent event) {\n float x;\n float y;\n int w = v.getWidth();\n int h = v.getHeight();\n int curAction = ACTION_NONE;\n float xscale = (float)w / (float)438;\n float yscale = (float)h / (float)600;\n\n x = event.getX() / xscale;\n y = event.getY() / yscale;\n // Log.d(LOG_TAG, \"x: \" + x + \", y:\" + y);\n if (x >= 90 && x <= 210 &&\n y >= 300 && y <= 425) curAction = ACTION_BATARI;\n else if (x >= 110 && x <= 200 &&\n y >= 450 && y <= 540) curAction = ACTION_GABARI;\n else if (x >= 240 && x <= 350 &&\n y >= 300 && y <= 430) curAction = ACTION_FUROHA;\n else if (x >= 245 && x <= 370 &&\n y >= 440 && y <= 550) curAction = ACTION_FUROA;\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\n mActionType = curAction;\n Log.d(LOG_TAG, \"DOWN ACTION: \" + curAction);\n } else if (event.getAction() == MotionEvent.ACTION_UP ) {\n Log.d(LOG_TAG, \"UP ACTION: \" + curAction);\n if (mActionType == curAction) doAction(mActionType);\n }\n return true;\n }",
"boolean reachedEdge() {\n\t\treturn this.x > parent.width - 30;// screen width including the size of\n\t\t\t\t\t\t\t\t\t\t\t// the image\n\t}",
"private void draggedEdge(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n edgeTool.setSeccondPoint(e.getPoint());\r\n }\r\n }",
"private void printMotionEvent(final MotionEvent ev, final boolean handled) {\n//\t\tString message;\n//\t\tswitch (ev.getActionMasked()) {\n//\t\tcase MotionEvent.ACTION_DOWN:\n//\t\t\tmessage = \"DOWN\";\n//\t\t\tbreak;\n//\t\tcase MotionEvent.ACTION_MOVE:\n//\t\t\tmessage = \"MOVE\";\n//\t\t\tbreak;\n//\t\tcase MotionEvent.ACTION_UP:\n//\t\t\tmessage = \"UP\";\n//\t\t\tbreak;\n//\t\tcase MotionEvent.ACTION_CANCEL:\n//\t\t\tmessage = \"CANCEL\";\n//\t\t\tbreak;\n//\t\tdefault:\n//\t\t\treturn;\n//\t\t}\n//\t\tLog.i(TAG, message + \"\\t\" + handled);\n\t}",
"void move() {\n\t\tif (reachedEdge()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\t\tif (reachedLeft()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\n\t\tx = x + velocityX;\n\t}",
"@Override public void onMouseClick( Location point ) {\n new FilledRect( verticalCorner, 5, 210, canvas );\n new FilledRect( horizontalCorner, 210, 5, canvas );\n\n verticalCorner.translate( -10, 0 );\n horizontalCorner.translate( 0, -10 );\n }",
"private void upTouch(float x, float y) {\n Log.d(\"UPTOUCH\", \"upTouch: \" + x + \" \" + y);\n\n// try {\n// socket.emit(\"drawing\", getJsonObject(x,y));\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n emitToServer(x, y);\n path.lineTo(mX, mY);\n }",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n orig_x = event.getX();\n orig_y = event.getY();\n Log.d(LOGNAME, \"Action down\");\n if (tool == MainActivity.Tool.PENCIL || tool == MainActivity.Tool.HIGHLIGHTER) {\n touch_down_draw(event.getX(), event.getY());\n }\n break;\n case MotionEvent.ACTION_MOVE:\n Log.d(LOGNAME, \"Action move\");\n if (tool == MainActivity.Tool.PENCIL || tool == MainActivity.Tool.HIGHLIGHTER) {\n touch_move_draw(event.getX(), event.getY());\n }\n break;\n case MotionEvent.ACTION_UP:\n Log.d(LOGNAME, \"Action up\");\n if (tool == MainActivity.Tool.PENCIL || tool == MainActivity.Tool.HIGHLIGHTER) {\n touch_up_draw(event.getX(), event.getY());\n }\n if (tool == MainActivity.Tool.ERASER) {\n touch_up_erase(event.getX(), event.getY());\n }\n break;\n }\n return true;\n }",
"@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }",
"public void checkIsFrogAtTheEdge() {\n\t\tif (getY()<0 || getY()>800) {\n\t\t\tsetY(FrogPositionY);\t\n\t\t}\n\t\tif (getX()<-20) {\n\t\t\tmove(movementX*2, 0);\n\t\t} else if (getX()>600) {\n\t\t\tmove(-movementX*2, 0);\n\t\t}\n\t\tif (getY()<130 && ! ((getIntersectingObjects(End.class).size() >= 1))) {\n\t\t\tmove(0, movementY*2);\n\t\t\t\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}",
"public void grabFoundationFingers() {\n tailLeft.setPosition(.4);\n tailRight.setPosition(0.4 );\n }",
"@Override\r\n\tpublic void onTouchMove(LTouch e) {\n\t\t\r\n\t}",
"@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n if (e.getAction() == MotionEvent.ACTION_MOVE) {\n dude.SetPosition(x, y);\n }\n// switch (e.getAction()) {\n// case MotionEvent.ACTION_MOVE:\n//\n// float dx = x - mPreviousX;\n// float dy = y - mPreviousY;\n//\n// // reverse direction of rotation above the mid-line\n// if (y > getHeight() / 2) {\n// dx = dx * -1 ;\n// }\n//\n// // reverse direction of rotation to left of the mid-line\n// if (x < getWidth() / 2) {\n// dy = dy * -1 ;\n// }\n//\n// mRenderer.setAngle(\n// mRenderer.getAngle() +\n// ((dx + dy) * TOUCH_SCALE_FACTOR); // = 180.0f / 320\n// requestRender();\n// }\n//\n// mPreviousX = x;\n// mPreviousY = y;\n return true;\n }",
"public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }",
"@Override\r\n public void mouseDragged(MouseEvent e) {\n int thisX = getLocation().x;\r\n int thisY = getLocation().y;\r\n\r\n //determina el desplazamiento\r\n int xMoved = (thisX + e.getX()) - (thisX + initialClick.x);\r\n int yMoved = (thisY + e.getY()) - (thisY + initialClick.y);\r\n\r\n //mueve la ventana a su nueva posicion\r\n int X = thisX + xMoved;\r\n int Y = thisY + yMoved;\r\n this.setLocation(X, Y);\r\n }",
"@Override\r\n\tpublic String moveDown() {\n\t\tif((0<=x && x<=50) && (0<y && y<=10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty--;\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\ty--;\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\ty--;\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\ty--;\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\ty--;\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\ty--;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}",
"public void move()\n {\n xPosition = xPosition + xSpeed;\n yPosition = yPosition + ySpeed;\n draw();\n if (xPosition >= rightBound - diameter)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (xPosition <= leftBound)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (yPosition <= upBound)\n {\n ySpeed = -(ySpeed);\n\n }\n else\n {\n }\n if (yPosition >= lowBound - diameter)\n {\n ySpeed = -(ySpeed);\n\n }\n else \n {\n }\n\n }",
"public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }",
"@SuppressLint(\"NewApi\")\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(final View view, MotionEvent event) {\n\t\t\t\tif (event.getAction() == MotionEvent.ACTION_MOVE) {\n\t\t\t\t\tif (balencing_coefficient_ == -1000.0f) {\n\t\t\t\t\t\tbalencing_coefficient_ = event.getY();\n\t\t\t\t\t}\n\t\t\t\t\tif (CENTRE_Y_OF_THE_SCREEN == 0.0f) {\n\t\t\t\t\t\tCENTRE_Y_OF_THE_SCREEN = view.getHeight() / 2.0f;\n\t\t\t\t\t}\n\t\t\t\t\tif (OPEN_CLOSE_BOUNDERY_Y == 0.0f) {\n\t\t\t\t\t\tOPEN_CLOSE_BOUNDERY_Y = CENTRE_Y_OF_THE_SCREEN / 2.0f;\n\t\t\t\t\t}\n\t\t\t\t\t// *******************************\n\t\t\t\t\tfloat act_position_ = event.getRawY()\n\t\t\t\t\t\t\t- balencing_coefficient_;\n\t\t\t\t\tif (act_position_ < CENTRE_Y_OF_THE_SCREEN\n\t\t\t\t\t\t\t&& act_position_ >= 0.0f) {\n\t\t\t\t\t\tview.setY(act_position_);\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"actual position : \" + act_position_);\n\t\t\t\t\t} else if (act_position_ < (-1 * (OPEN_CLOSE_BOUNDERY_Y / 3.0f))) {\n\t\t\t\t\t\t// ****************push back again\n\t\t\t\t\t\tview.setY(act_position_ / 3.0f);\n\t\t\t\t\t} else if (act_position_ < (-1 * (OPEN_CLOSE_BOUNDERY_Y / 1.50f))) {\n\t\t\t\t\t\t// ****************push back again\n\t\t\t\t\t\tview.setY(act_position_ / 5.0f);\n\t\t\t\t\t} else if (act_position_ < (-1 * OPEN_CLOSE_BOUNDERY_Y)) {\n\t\t\t\t\t\t// ****************push back again\n\t\t\t\t\t\tview.setY(act_position_ / 7.0f);\n\t\t\t\t\t}\n\t\t\t\t} else if (event.getAction() == MotionEvent.ACTION_UP) {\n\t\t\t\t\tbalencing_coefficient_ = -1000.0f;\n\t\t\t\t\t// *****\n\t\t\t\t\tSystem.out.println(\"final actual position : \" + view.getY());\n\t\t\t\t\tif (view.getY() < OPEN_CLOSE_BOUNDERY_Y) {\n\t\t\t\t\t\tview.clearAnimation();\n\t\t\t\t\t\tTranslateAnimation tAnim = new TranslateAnimation(0.0f,\n\t\t\t\t\t\t\t\t0.0f, 0.0f, (-view.getY()));\n\t\t\t\t\t\ttAnim.setDuration(300);\n\t\t\t\t\t\ttAnim.setFillAfter(true);\n\t\t\t\t\t\ttAnim.setInterpolator(new AnticipateOvershootInterpolator(\n\t\t\t\t\t\t\t\t1.0f, 1.0f));\n\t\t\t\t\t\tview.startAnimation(tAnim);\n\t\t\t\t\t\ttAnim.setAnimationListener(new AnimationListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tview.clearAnimation();\n\t\t\t\t\t\t\t\tview.setY(0.0f);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tview.clearAnimation();\n\t\t\t\t\t\tTranslateAnimation tAnim = new TranslateAnimation(0.0f,\n\t\t\t\t\t\t\t\t0.0f, 0.0f, (CENTRE_Y_OF_THE_SCREEN - view\n\t\t\t\t\t\t\t\t.getY()));\n\t\t\t\t\t\ttAnim.setDuration(300);\n\t\t\t\t\t\ttAnim.setFillAfter(true);\n\t\t\t\t\t\ttAnim.setInterpolator(new AnticipateOvershootInterpolator(\n\t\t\t\t\t\t\t\t2.0f, 1.0f));\n\t\t\t\t\t\tview.startAnimation(tAnim);\n\t\t\t\t\t\ttAnim.setAnimationListener(new AnimationListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tview.clearAnimation();\n\t\t\t\t\t\t\t\tview.setY(CENTRE_Y_OF_THE_SCREEN);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t\t}",
"private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }",
"@Override\r\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent event) {\n\t\t\t\tint action = event.getAction();\r\n\t\t\t\tswitch (action) {\r\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\r\n\t\t\t\t\tmLastDownY = (int) event.getY();\r\n\t\t\t\t\tSystem.err.println(\"ACTION_DOWN=\" + mLastDownY);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t\t\r\n\t\t\t\tcase MotionEvent.ACTION_UP:\r\n\t\t\t\t\tmCurryY = (int) event.getY();\r\n\t\t\t\t\tmDelY = mCurryY - mLastDownY;\r\n\t\t\t\t\tif (mDelY > 0) {\r\n\t\t\t\t\t\tpullDoorView.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\tstartBounceAnim(pullDoorView.getmScreenHeigh(), -pullDoorView.getmScreenHeigh(), 1000);\r\n\t\t\t\t\t\tpullDoorView.setmCloseFlag(false);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}",
"private void draggedWay(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n wayTool.setSeccondPoint(e.getPoint());\r\n }\r\n }",
"@Override\r\n\tpublic boolean onTouch(View v, MotionEvent me) {\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(50);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tswitch (me.getAction()) {\r\n\r\n//\t\tcase MotionEvent.ACTION_DOWN:\r\n//\t\t//\tx = me.getX();\r\n//\t\t//\ty = me.getY();\r\n//\t\t\tif(click){\r\n//\t\t\t\tclick = false;\r\n//\t\t\t}else{\r\n//\t\t\tclick = true;}\r\n//\t\t\tbreak;\r\n\r\n\t\tcase MotionEvent.ACTION_UP:\r\n\t\t\t//x = me.getX();\r\n\t\t\t//y = me.getY();\r\n\t\t\tbreak;\r\n\r\n\t\tcase MotionEvent.ACTION_MOVE:\r\n//\t\t\txf = me.getX() - (xc/2) ;\r\n//\t\t\tyf = me.getY() - (yc/2);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"X = \"+xf+\" Y = \"+yf);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\r\n\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"@Test\n public void mouseDragScenario() {\n Point[] points = {\n new Point(0,0), // north east from rect\n new Point(200,200), // south west from rect\n };\n\n for (int i = 0; i < HandleDirections.values().length; i++) {\n for (Point lead : points) {\n HandleDirections dir = HandleDirections.values()[i];\n given().figure(50d,50d,50d,50d);\n when().mouseDragged(dir, lead);\n then().checkBounds();\n }\n }\n }",
"public void checkIfAtEdge() {\n\t\tif(x<=0){\n\t\t\tx=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y<=0){\n\t\t\ty=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(x>=GameSystem.GAME_WIDTH-collisionWidth){\n\t\t\tx=GameSystem.GAME_WIDTH-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y>=GameSystem.GAME_HEIGHT-collisionWidth){\n\t\t\ty=GameSystem.GAME_HEIGHT-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\telse{\n\t\t\tatEdge=false;\n\t\t}\n\t\t\n\t}",
"public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }",
"@Override\n\tpublic boolean onTouchEvent(MotionEvent event)\n\t{\n\t\tfloat eventX = event.getX();\n\t\tfloat eventY = event.getY();\n\n\t\tswitch (event.getAction())\n\t\t{\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t// Sets the beginning of the next contour to the point (eventX, eventY).\n\t\t\tpath.moveTo(eventX, eventY);\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t// Add a line from the last point to the the point (eventX, eventY).\n\t\t\tpath.lineTo(eventX, eventY);\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\t// Use the signature canvas to draw the path which also updates\n\t\t\t// the underlying signBitmap.\n\t\t\tsignCanvas.drawPath(path, paint);\n\t\t\tpath.reset();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\n\t\tinvalidate();\n\t\treturn true;\n\t}",
"public abstract void snapPoseToTileMid();",
"int getTargetPos();",
"@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}",
"private boolean corner(int e) {\r\n if (endx[e] + 200 >= width - radius[e] && directionend[e] == 0) {\r\n return true;\r\n } else if (endy[e] + 200 >= height - radius[e] && directionend[e] == 1) {\r\n return true;\r\n } else if (endx[e] - 200 <= radius[e] && directionend[e] == 2) {\r\n return true;\r\n } else if (endy[e] - 200 <= radius[e] && directionend[e] == 3) {\r\n return true;\r\n }\r\n return false;\r\n }",
"void moveTo(int dx, int dy);",
"@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif (e.getX()>getX()&&getX()+getW()>e.getX())\n\t\t\tif (e.getY()>getY()&&getY()+getH()>e.getY())\n\t\t\t\tJOptionPane.showMessageDialog(null, \"oof\");\n\t}",
"@Override\n public void mouseDragged(MouseEvent e){\n newerlabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }",
"public void drag(Point p);",
"private void moveTouch(float x, float y) {\n boolean updated = false;\n //Set boundaries\n int maxX = getMaxX();\n int maxY = getMaxY();\n\n\n if(Math.abs(x)>1) {\n if ((xPlacing) >= 0 && (maxX) <= displaySize.x) {\n if(xPlacing + x < 0){\n xPlacing = 0;\n } else if(xPlacing + getTotalWidth(blockSize)+x > displaySize.x){\n xPlacing = displaySize.x - getTotalWidth(blockSize);\n } else {\n xPlacing += x;\n }\n\n } else if(maxX >= displaySize.x && x <0){\n if(maxX + x < displaySize.x){\n xPlacing = displaySize.x - getTotalWidth(blockSize);\n } else {\n xPlacing += x;\n }\n } else if(xPlacing < 0 && x > 0){\n if(xPlacing + x > 0){\n xPlacing = 0;\n } else {\n xPlacing += x;\n }\n }\n updated = true;\n }\n\n if(Math.abs(y)>1){\n if(yPlacing >= 0 && maxY < displaySize.y){\n if(yPlacing + y < 0){\n yPlacing = 0;\n } else if(yPlacing + getTotalHeight(blockSize) + y > displaySize.y){\n yPlacing = displaySize.y - getTotalHeight(blockSize);\n } else {\n yPlacing += y;\n }\n } else if(maxY >= displaySize.y && y <0){\n if(maxY + y < displaySize.y){\n yPlacing = displaySize.y - getTotalHeight(blockSize);\n } else {\n yPlacing += y;\n }\n } else if(yPlacing < 0 && y > 0){\n if(yPlacing + y > 0){\n yPlacing = 0;\n } else {\n yPlacing += y;\n }\n }\n updated = true;\n }\n\n\n /*if(Math.abs(x) > 1) {\n if (xPlacing <= 100 && (xPlacing + x) <= 100) {\n xPlacing += x;\n updated = true;\n }\n }\n\n if(yPlacing <= 100 && (yPlacing+y)<=100 && Math.abs(y) > 1){\n yPlacing += y;\n updated = true;\n }*/\n\n\n /*if(xPlacing >100){\n xPlacing = 100;\n }\n if(yPlacing > 100) {\n yPlacing = 100;\n }*/\n\n if(updated){\n moved = true;\n invalidate();\n }\n\n /*float dx = Math.abs(x - mX);\n float dy = Math.abs(y - mY);\n if (dx >= TOLERANCE || dy >= TOLERANCE) {\n mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2);\n mX = x;\n mY = y;\n }*/\n }",
"void moveHandleToPointInTraceVertically(int where);",
"public boolean moveForward(){\n \n int[] last = (int[]) this.snake.elementAt(this.snake.size() -1);\n int[] sLast = (int[]) this.snake.elementAt(this.snake.size() -2);\n int[] diff = new int[2];\n int[] diff2 = new int[2];\n \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n \n //left\n if( direction == 1){\n diff2[0]--;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff = diff2; \n }\n \n //down\n }else if(direction == 2){\n \n diff2[1]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n //System.out.println(\"first one: \" + diff[0] + \", \" + diff[1]);\n }\n \n //right\n }else if(direction == 3){\n diff2[0]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n \n //up\n }else if(direction == 4){\n \n diff2[1]--;\n //System.out.println(\"\" + diff[0] + \", \" + diff[1]);\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n }else{ \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n }\n \n int[] newPoint = new int[2];\n newPoint[0] = last[0] + diff[0];\n newPoint[1] = last[1] + diff[1];\n \n //if it hits the snake itself\n boolean hits = false;\n Enumeration enu = this.snake.elements();\n int[] temp = new int[2];\n while(enu.hasMoreElements()){\n temp = (int[]) enu.nextElement();\n if(temp[0] == newPoint[0] && temp[1] == newPoint[1]){\n hits = true; \n }\n }\n if(hits){\n return false; \n }\n //if it hits the wall\n if( newPoint[0] >50 || newPoint[0] <0 || newPoint[1] >50 || newPoint[1] <0){\n return false; \n }else{\n if(newPoint [0] == this.apple[0] && newPoint[1] == this.apple[1]){\n this.snake.add(newPoint);\n this.ateApple();\n }else{\n this.snake.add(newPoint);\n this.snake.remove(0);\n \n \n }\n return true;\n }\n }",
"public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }",
"@Override\n public void mousePressed(MouseEvent e) {\n // this.getVision().getCare().set(this.getVision().getSoul().newMemento());\n if (e.getButton() != MouseEvent.BUTTON1) {\n return;\n }\n if (getVerticallyPointOnGraph(e.getX(), e.getY()) != null) {\n setCurrentPoint(getVerticallyPointOnGraph(e.getX(), e.getY()));\n } else {\n setCurrentPoint(null);\n }\n \n if (getCurrentPoint() != null) {\n double toy = Math.min(Math.max(tCanvasPadding, e.getY()), getHeight() - bCanvasPadding);\n // System.out.println(\"moving to [\"+tox+\",\"+toy+\"]\");\n adapter.moveImagePoint(getCurrentPoint(), c2gy(toy));\n // getCurrentPoint().movePoint(getCurrentPoint(),\n // c2gx(tox),c2gy(toy,getCurrentPoint().getDataSet()));\n }\n // System.out.println(\"Current point is \"+currentPoint);\n }",
"@Override\n public void move(){\n if (flatbed.getCurrentAngle() == flatbed.getMinAngle()){\n super.move();\n }\n }",
"public static void main(String[] args) throws InterruptedException\r\n {\n\t\t int[] XposT = {5,5,5,5,5}; //XposT and YposT are the Tail positions of the robot\r\n int[] YposT = {5,4,3,2,1}; // all the same, no ititial tail. 5,4,3,2 would give initial tail.\r\n\t\t // we have a variable that sets up the boundries of our snake and his environment.\r\n\t\t int blockSize = 20;\r\n boolean more = true;\r\n Scanner keyboard = new Scanner(System.in);\r\n char direction = ' ';\r\n\r\n\t\t //System.out.println(\"\\033[H\\033[2J\"); //Clear Screen\r\n\r\n cls.cs();\r\n\t\t //print initial instructions\r\n\t\t System.out.println( \"w up, s down, a left, d right, q to quit\");\r\n // direction = keyboard.next().charAt(0);\r\n\r\n while(more){\r\n\r\n\r\n\r\n //Draw:\r\n //System.out.println(\"\\033[H\\033[2J\"); //Clear Screen\r\n\t\t cls.cs();\r\n for(int y=0; y < blockSize; y++) //\r\n {\r\n for(int x=0; x < blockSize; x++) // Print a column\r\n {\r\n if(((x == XposT[0]) && (y == YposT[0])) )\r\n {\r\n System.out.print(\"H\" );\r\n\t\t\t\t //Print Head\r\n }\r\n else if (((x == XposT[1]) && (y == YposT[1]))\r\n\t\t\t || ((x == XposT[2]) && (y == YposT[2])) || ((x == XposT[3]) && (y == YposT[3])) ||\r\n\t\t\t ((x == XposT[4]) && (y == YposT[4]))) {\r\n\t\t\t \tSystem.out.print( \"T\" );\r\n\t\t\t\t// Print Tail\r\n\t\t\t }\r\n\t\t\t else\r\n {\r\n System.out.print(\" \");\r\n }\r\n System.out.print(\" \");\r\n }\r\n System.out.println();\r\n\r\n }//End Draw\r\n System.out.println( \"use: w up, s down, a left, d right, q to quit, then press enter.\");\r\n\r\n\r\n\r\n\t\t for(int i=4; i > 0; i--){\r\n\t\t\tXposT[i] = XposT[i-1];\r\n\t\t\tYposT[i] = YposT[i-1];\r\n\t\t }\r\n\r\n\t\t//XposT[0] = Xpos;\r\n\t\t//YposT[0] = Ypos;\r\n\r\n\t //User Input (Get New Head)\r\n\t\tswitch ( keyboard.next().charAt(0)) {\r\n case 'w': // UP\r\n\t\t case 'W':\r\n YposT[0]--;\r\n\t\t\tif(YposT[0] == -1) YposT[0] = blockSize-1; //9 for raparound, -1 for bounce\r\n break;\r\n case 's': // down\r\n\t\t case 'S':\r\n YposT[0]++;\r\n\t\t\t if(YposT[0] == blockSize) YposT[0] = 0; //1 for raparound, 10 for bounce\r\n break;\r\n case 'a': // Left\r\n XposT[0]--;\r\n\t\t\tif(XposT[0] == -1) XposT[0] = 0; //10 for raparound, 1 for bounce\r\n break;\r\n case 'd': // Right\r\n XposT[0]++;\r\n\t\t\tif(XposT[0] == blockSize) XposT[0] = blockSize - 1; //1 for raparound, 10 for bounce\r\n break;\r\n case 'q': // quit\r\n System.out.println(\"Thank you for playing.\");\r\n\t\t\tmore = false;\r\n break;\r\n\t\t default :\r\n\t\t System.out.println( \" oops, use: w up, s down, a left, d right, q to quit\");\r\n\t\t System.out.println(\"Yikes, an incorrect letter nips at my tail.\");\r\n\t\t System.out.println(\"Hit any letter then enter to continue.\");\r\n\t\t keyboard.next();\r\n\t\t }\r\n } //end while\r\n\t System.out.println(ANSI_RESET);\r\n }",
"public void move(){\n switch(image){\n case 0: // Case 0: Ant moves up/north. If the ant hits the top of the screen the ant will appear at the bottom of it\n this.position[0] -= 1;\n if(this.position[0] < 0){\n this.position[0] = 19;\n }\n break;\n case 1: // Case 1: Ant moves right/east. If the ant hits the right border of the screen the ant will appear at the left border of it\n this.position[1] += 1;\n if(this.position[1] == 20){\n this.position[1] = 0;\n }\n break;\n case 2: // Case 2: Ant moves down/south. If the ant hits the top of the screen the ant will appear at the bottom of it\n this.position[0] += 1;\n if(this.position[0] == 20){\n this.position[0] = 0;\n }\n break;\n case 3: // Case 3: Ant moves left/west. If the ant hits the left border of the screen the ant will appear at the right border of it\n this.position[1] -= 1;\n if(this.position[1] < 0){\n this.position[1] = 19;\n }\n break;\n default: // Default: This shouldn't happen on a normal run. It prints an error.\n System.err.println(\"Something went wrong while the ant was trying to move\");\n }\n }",
"public void updateHitbox() {\n\t\tresistorPosEnd = new Rectangle(x - 10, y - 10, 40, 40);\n\t\tresistorNegEnd = new Rectangle(x + 30, y, 40, 40);\n\t}",
"private void getCloserX(Position target) {\n if (target.x > position.x) {\n moveRight(1);\n }\n if (target.x < position.x) {\n moveLeft(1);\n }\n }",
"private void makeMove(){\r\n\t\tif(cornerColorIs(GREEN)){\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(GREEN);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(RED);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tif(()) {\r\n//\t\t if(cornerColorIs(GREEN)) {\r\n//\t\t move();\r\n//\t\t paintCorner(GREEN);\r\n//\t\t } else {\r\n//\t\t move();\r\n//\t\t paintCorner(RED);\r\n//\t\t }\r\n//\t\t}noBeepersPresent\r\n\t}",
"private void mouseUpInMove()\n/* */ {\n/* 134 */ if (this.downNode < 0) { return;\n/* */ }\n/* 136 */ this.bn.setPos(this.downNode, 0, 0);\n/* 137 */ int i = this.bn.isClose(this.upPoint, 6);\n/* 138 */ if ((i != -2) || (this.upPoint.x < 0) || (this.upPoint.x > getSize().width) || (this.upPoint.y < 0) || (this.upPoint.y > getSize().height))\n/* */ {\n/* */ \n/* 141 */ this.bn.setPos(this.downNode, this.oldPos);\n/* 142 */ HelpPanel.showError(\"Too close to another node or out of border!\");\n/* */ } else {\n/* 144 */ this.bn.setPos(this.downNode, this.upPoint);\n/* */ }\n/* */ }",
"public boolean wander() {\n\t\tMapLocation target = sensor.findTargetLocation();\n\t\treturn(nav.moveToLocation(target));\n\t}",
"private void upTouch(int x, int y, boolean longPress) {\n int[][] state = gameLogic.getGridArray();\n int gridWidth = gameLogic.getGridWidth();\n\n for(int loc = 0; loc < state.length; loc++){\n Rect rect = getRect(loc, gridWidth);\n if (x > rect.left && x < rect.right && y > rect.top && y < rect.bottom) {\n //Log.i(\"PRESS\",loc+\", \"+rect.left +\", \"+rect.right+\", \"+rect.top+\", \"+rect.bottom);\n gameLogic.updateBlock(loc, longPress);\n break;\n }\n }\n }",
"@Override\n public void act()\n {\n Location loc = getLocation();\n int r = loc.getRow();\n int c = loc.getCol();\n int dir = getDirection();\n if(dir == Location.NORTH)\n {\n if(r - START_ROW + 1 > -2*(address & ADDRESS))\n {\n move();\n }\n else\n {\n setDirection(Location.WEST);\n }\n }\n else if(dir == Location.WEST)\n {\n if(c <= RETURN_COL)\n {\n setDirection(Location.SOUTH);\n }\n else\n {\n Bit b = null;\n Actor a = getGrid().get(loc.getAdjacentLocation(Location.SOUTH));\n if(a instanceof Bit) b = (Bit)a;\n if(b != null)\n {\n processBit(b,-c-1);\n }\n move();\n }\n }\n else if(dir == Location.SOUTH)\n {\n if(r == -1)\n {\n setDirection(Location.EAST);\n }\n else\n {\n move();\n }\n }\n else if(dir == Location.EAST)\n {\n move();\n }\n else\n {\n System.err.println(\"yer bus is on an angle bud\");\n }\n }",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n float eventX = event.getX();\n float eventY = event.getY();\n\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n // Set a new starting point\n path.moveTo(eventX, eventY);\n return true;\n case MotionEvent.ACTION_MOVE:\n // Connect the points\n path.lineTo(eventX, eventY);\n break;\n default:\n return false;\n }\n\n // Makes our view repaint and call onDraw\n invalidate();\n return true;\n }",
"@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n\n if (motionEvent.getAction() == MotionEvent.ACTION_DOWN){\n lastX = motionEvent.getX();\n }else if(motionEvent.getAction() == MotionEvent.ACTION_MOVE){\n if (lastX < motionEvent.getX()){\n pad.moveRight();\n }else {\n pad.moveLeft();\n }\n lastX = motionEvent.getX();\n }\n\n return true;\n }",
"public boolean wideSnakeOnDot()\n {\n if(up || down)\n {\n //Location p = new Location(head.getA()-30,head.getB());\n //Location m = new Location(head.getA()-15,head.getB());\n //Location n = new Location(head.getA()+15,head.getB());\n //Location o = new Location(head.getA()+30,head.getB()); \n //if(dot.isEqual(m) || dot.isEqual(n) || dot.isEqual(o) || head.isEqual(p))\n // return true;\n \n if(Math.abs(head.getA()-dot.getA())<50 && (head.getB()-dot.getB() == 0))\n {\n return true;\n } \n } \n else if(left || right)\n {\n //Location p = new Location(head.getA(),head.getB()-30);\n //Location m = new Location(head.getA(),head.getB()-15);\n //Location n = new Location(head.getA(),head.getB()+15);\n //Location o = new Location(head.getA(),head.getB()+30); \n //if(dot.isEqual(m) || dot.isEqual(n) || dot.isEqual(o) || head.isEqual(p))\n // return true;\n \n \n if(Math.abs(head.getB()-dot.getB())<50 && (head.getA()-dot.getA() == 0))\n {\n return true;\n }\n }\n return false;\n }",
"@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tif (moving) {\n\t\t\treturn true;\n\t\t}\n\n\t\tx = event.getRawX();\n\t\ty = event.getRawY();\n\t\t\n\t\tif (isNotFullScreen) {\n\t\t\ty -= mStatusBarHeight;\n\t\t}\n\n\t\tswitch (event.getAction()) {\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tfingerUP = false;\n\t\t\tlongPressed = false;\n\t\t\tif (mOnActionDownListener != null) {\n\t\t\t\tmOnActionDownListener.onActionDown();\n\t\t\t}\n\t\t\t// getRawX() and getRawY() that is guaranteed to return absolute\n\t\t\t// coordinates, relative to the device screen.\n\t\t\t// While getX() and getY(), should return you coordinates, relative\n\t\t\t// to the View, that dispatched them.\n\t\t\tmTouchStartX = event.getX();\n\t\t\tmTouchStartY = event.getY();\n\n\t\t\ttempX = x;\n\t\t\ttempY = y;\n\t\t\ttempT = SystemClock.uptimeMillis();\n\n\t\t\tbreak;\n\n\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\tmWindowMgrParams.x = (int) (x - mTouchStartX);\n\t\t\tmWindowMgrParams.y = (int) (y - mTouchStartY);\n\t\t\tif (withinClickRegion()) {\n\t\t\t\tif (!longPressed && SystemClock.uptimeMillis() - tempT > 800) {\n\t\t\t\t\tlongPressed = true;\n\t\t\t\t\tif (mOnLongPressedListener != null) {\n\t\t\t\t\t\tmOnLongPressedListener.onLongPressed();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmWindowManager.updateViewLayout(this, mWindowMgrParams);\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\tfingerUP = true;\n\t\t\tlongPressed = false;\n\t\t\tif (mOnActionUpListener != null) {\n\t\t\t\tmOnActionUpListener.onActionUp();\n\t\t\t}\n\n\t\t\tif (withinClickRegion()) {\n\t\t\t\tif (SystemClock.uptimeMillis() - tempT < 100) {\n\t\t\t\t\t// this is click operation\n\t\t\t\t\tif (mOnClickListener != null) {\n\t\t\t\t\t\tmOnClickListener.onClick();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// below is fling testing\n\t\t\t\tmoving = true;\n\t\t\t\tboolean isFling = false;\n\t\t\t\tfloat k = 0, b = 0, y1;\n\t\t\t\tfloat kmax, kmin;\n\t\t\t\t// y should at least be defaultFlipY\n\t\t\t\tint defaultFlipYmin = 30;\n\t\t\t\tint defaultFlipYmax = yMovementLimit - 30;\n\t\t\t\tif (SystemClock.uptimeMillis() - tempT < 130 && Math.abs(x - tempX) > 10) {\n\t\t\t\t\t// a fling is considered valid only when \n\t\t\t\t\t// the user is finging towards the center of screen, not the oppsite\n\t\t\t\t\tboolean flingIsValid = false;\n\t\t\t\t\tfloat deltaY = y - tempY;\n\t\t\t\t\tfloat deltaX = x - tempX;\n\t\t\t\t\tk = deltaY / deltaX;\n\t\t\t\t\tif (x < (currentdimension.x / 2)) {\n\t\t\t\t\t\tkmax = (y - currentdimension.y) / (x - currentdimension.x);\n\t\t\t\t\t\tkmin = y / (x - currentdimension.x);\n\t\t\t\t\t\tif (deltaX > 0) {\n\t\t\t\t\t\t\t// when button is on left side of screen\n\t\t\t\t\t\t\t// you must fling to right\n\t\t\t\t\t\t\tflingIsValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tkmax = y / x;\n\t\t\t\t\t\tkmin = (y - currentdimension.y) / x;\n\t\t\t\t\t\tif (deltaX < 0) {\n\t\t\t\t\t\t\t// when button is on right side of screen\n\t\t\t\t\t\t\t// you must fling to left\n\t\t\t\t\t\t\tflingIsValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (k < kmax && k > kmin && flingIsValid) {\n\t\t\t\t\t\tisFling = true;\n\t\t\t\t\t\tb = y - k * x;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//\n\n\t\t\t\tx = x - mTouchStartX;\n\t\t\t\ty = y - mTouchStartY;\n\n\t\t\t\tPoint finalPoint = new Point();\n\t\t\t\tif (x < (currentdimension.x / 2)) {\n\t\t\t\t\t// you finger now is on the left side\n\t\t\t\t\tif (isFling) {\n\t\t\t\t\t\t// if your finger flips\n\t\t\t\t\t\ty1 = k * xMovementLimit + b;\n\t\t\t\t\t\tif (y1 < defaultFlipYmin) {\n\t\t\t\t\t\t\ty1 = defaultFlipYmin;\n\t\t\t\t\t\t} else if (y1 > defaultFlipYmax) {\n\t\t\t\t\t\t\ty1 = defaultFlipYmax;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinalPoint.x = xMovementLimit;\n\t\t\t\t\t\tfinalPoint.y = (int) y1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// the button will move only in horizontal direction\n\t\t\t\t\t\tfinalPoint.x = 0;\n\t\t\t\t\t\tfinalPoint.y = (int) y;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// you finger now is on the right side\n\t\t\t\t\tif (isFling) {\n\t\t\t\t\t\t// if your finger flips\n\t\t\t\t\t\ty1 = b;\n\t\t\t\t\t\tif (y1 < defaultFlipYmin) {\n\t\t\t\t\t\t\ty1 = defaultFlipYmin;\n\t\t\t\t\t\t} else if (y1 > defaultFlipYmax) {\n\t\t\t\t\t\t\ty1 = defaultFlipYmax;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinalPoint.x = 0;\n\t\t\t\t\t\tfinalPoint.y = (int) y1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// the button will move only in horizontal direction\n\t\t\t\t\t\tfinalPoint.x = xMovementLimit;\n\t\t\t\t\t\tfinalPoint.y = (int) y;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tPoint startPoint = new Point((int) x, (int) y);\n\t\t\t\t\n\t\t\t\tmWindowMgrParams.x = startPoint.x;\n\t\t\t\tmWindowMgrParams.y = startPoint.y;\n\n\t\t\t\tmWindowManager.updateViewLayout(this, mWindowMgrParams);\n\t\t\t\t\n\t\t\t\tdockingTask = new AnimatingTask();\n\t\t\t\tdockingTask.execute(startPoint, finalPoint);\n\t\t\t}\n\n\t\t\tmTouchStartX = mTouchStartY = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn true;\n\t}",
"public Coordinate getMoveTo();",
"public abstract void makeMove(int mouseDownX, int mouseDownY, int MouseUpX, int mouseUpY, int left, int top, int width, int height);",
"public static void changePosition() {\n int direction;\n int speed;\n int newTopX;\n int newTopY;\n\n for (int i = 0; i < numShapes; ++i) {\n direction = moveDirection[i];\n speed = moveSpeed[i];\n newTopX = xTopLeft[i];\n newTopY = yTopLeft[i];\n\n //the switch uses the direction the speed should be applied to in order to find the new positions\n switch (direction) {\n case 0 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n }\n //upper left 135 degrees\n case 1 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n case 2 -> {\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n //upper right 45 degrees\n case 3 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n case 4 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n }\n //bottom right 315 degrees\n case 5 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n case 6 -> {\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n //bottom left 225 degrees\n case 7 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n }\n }\n }",
"public double getDirectionMove();",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public void checkEdge()\n {\n if(getX() < 10 || getX() > getWorld().getWidth() - 10)\n {\n speed *= -1;\n }\n }",
"public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }",
"private void followPath(){\r\n\t\tif(noBeepersPresent()){\r\n\t\t\twhile(frontIsClear() && leftIsBlocked() && rightIsBlocked() && noBeepersPresent()){\r\n\t\t\t\tmakeMove();\r\n\t\t\t}\r\n\t\t\tif(frontIsBlocked() && leftIsBlocked() && rightIsBlocked() && noBeepersPresent()){\r\n\t\t\t\tturnAround();\r\n\t\t\t\tpaintCorner(RED);\r\n\t\t\t\tfollowPath();\r\n\t\t\t}else{\r\n\t\t\t\tcheckPaths();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void touch_move_draw(float event_x, float event_y) {\n path.lineTo(event_x,event_y);\n cur_x = event_x;\n cur_y = event_y;\n\n // Add point to list\n addPoint();\n }",
"@Override\n public void mouseDragged(MouseEvent e){\n newLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }",
"@Override\n public boolean onTouch(View v, MotionEvent event) {\n final int Y = (int) event.getRawY();\n\n // Switch on motion event type\n switch (event.getAction() & MotionEvent.ACTION_MASK) {\n\n case MotionEvent.ACTION_DOWN:\n // save default base layout height\n defaultViewHeight = layout.getHeight();\n\n // Init finger and view position\n previousFingerPosition = Y;\n //baseLayoutPosition = (int) layout.getY();\n break;\n\n case MotionEvent.ACTION_MOVE:\n if(!isClosing){\n //int currentYPosition = (int) layout.getY();\n if (previousFingerPosition < Y){\n\n // First time android rise an event for \"down\" move\n if(!isScrollingDown){\n isScrollingDown = true;\n }\n\n // Change base layout size and position (must change position because view anchor is top left corner)\n layout.setY(layout.getY() + (Y - previousFingerPosition));\n layout.getLayoutParams().height = layout.getHeight() - (Y - previousFingerPosition);\n layout.requestLayout();\n }\n\n // Update position\n previousFingerPosition = Y;\n }\n break;\n case MotionEvent.ACTION_UP: {\n\n int currentYPosition = (int) layout.getY();\n\n if (currentYPosition < defaultViewHeight / 5) {\n layout.setY(0);\n layout.getLayoutParams().height = defaultViewHeight;\n layout.requestLayout();\n }\n else{\n closeActivity(currentYPosition);\n }\n break;\n }\n }\n return true;\n }",
"public boolean onTouchEvent(MotionEvent event) {\n int action = MotionEventCompat.getActionMasked(event);\n switch (action) {\n\n case MotionEvent.ACTION_DOWN: {\n\n if(CheckIfInside(event.getX(), event.getY())) {\n this.playMoving = true;\n }\n break;\n }\n case MotionEvent.ACTION_MOVE: {\n if (!this.playMoving)\n return true;\n\n if (CheckForLimit(event.getX(), event.getY())) {\n this.x = event.getX();\n this.y = event.getY();\n invalidate();\n ///////////////////////////////////////////////////\n double normalizedX = normalizeAileron(x);\n double normalizedY = normalizeElevator(y);\n TcpClient tcpClient = TcpClient.getInstance();\n tcpClient.sendMessage(\"set controls/flight/aileron \" + normalizedX + \"\\r\\n\");\n tcpClient.sendMessage(\"set controls/flight/elevator \" + normalizedY + \"\\r\\n\");\n }\n break;\n }\n //user input's is finished\n case MotionEvent.ACTION_UP :\n this.playMoving = false;\n returnDefault();\n //call on draw\n invalidate();\n }\n return true;\n }",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tdx=dx+(e.getX()-x);\n\t\tdy=dy+(e.getY()-y);\n\t\t\n\t\tx=e.getX();\n\t\ty=e.getY();\n\t}",
"private void touchMoved(MotionEvent event)\n {\n for (int i = 0; i < event.getPointerCount(); i++)\n {\n // get the pointer ID and pointer index\n int pointerID = event.getPointerId(i);\n int pointerIndex = event.findPointerIndex(pointerID);\n\n // if there is a path associated with the pointer\n if (pathHashMap.containsKey(pointerID))\n {\n // get the new coordinates for the pointer\n float newX = event.getX(pointerIndex);\n float newY = event.getY(pointerIndex);\n\n // get the Path and previous Point associated with \n // this pointer\n Path path = pathHashMap.get(pointerID);\n Point point = previousPointMap.get(pointerID);\n\n // calculate how far the user moved from the last update\n float deltaX = Math.abs(newX - point.x);\n float deltaY = Math.abs(newY - point.y);\n\n // if the distance is significant enough to matter\n if (deltaX >= TOUCH_TOLERANCE || deltaY >= TOUCH_TOLERANCE)\n {\n // move the path to the new location\n path.quadTo(point.x, point.y, (newX + point.x) / 2,\n (newY + point.y) / 2);\n\n // store the new coordinates\n point.x = (int) newX;\n point.y = (int) newY;\n } // end if\n } // end if\n } // end for\n }",
"private void travelTo(Location destination) \n\t{\n\t\tSystem.out.println(destination.name());\n\t\tif (destination == Location.Home) {\n\t\t\t\n\t\t\tif (role == Role.Attacker) {\n\t\t\t\t\n\t\t\t\tswitch(startingCorner) { \n\t\t\t\t\t/*case 1: travelTo(Location.X4); travelTo(Location.AttackBase); break;\n\t\t\t\t\tcase 2: travelTo(Location.X3); travelTo(Location.AttackBase); break;\n\t\t\t\t\tcase 3: case 4: travelTo(Location.AttackBase);*/\n\t\t\t\tcase 1: travelTo(Location.AttackBase); break;\n\t\t\t\tcase 2: travelTo(Location.AttackBase); break;\n\t\t\t\tcase 3: //travelTo(Location.X2);\n\t\t\t\t\t\ttravelTo(Location.AttackBase); break;\n\t\t\t\tcase 4: //travelTo(Location.X1);\n\t\t\t\t\t\ttravelTo(Location.AttackBase); break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (role == Role.Defender) {\n\t\t\t\t\n\t\t\t\tswitch(startingCorner) {\n\t\t\t\t\tcase 1: //travelTo(Location.X4);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 2: //travelTo(Location.X3);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 3: travelTo(Location.DefWay3);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 4: travelTo(Location.DefWay4);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\telse if (destination == Location.BallPlatform)\n\t\t\tnavigator.travelTo(ballPlatform[0], ballPlatform[1]);\n\t\t\t\n\t\telse if (destination == Location.ShootingRegion)\n\t\t\tnavigator.travelTo(CENTER, 7 * 30.0); // we have to account for the case when there is an obstacle in the destination\n\t\t\t// also need to find a way of determining the y coordinate\n\n\t\telse if (destination == Location.AttackBase)\n\t\t\tnavigator.travelTo(ATTACK_BASE[0], ATTACK_BASE[1]); \n\t\t\n\t\telse if (destination == Location.DefenseBase)\n\t\t\tnavigator.travelTo(DEFENSE_BASE[0], DEFENSE_BASE[1]);\n\t\t\n\t\telse if (destination == Location.X1) \n\t\t\tnavigator.travelTo(X[0][0] * 30.0, X[0][1] * 30.0);\n\n\t\telse if (destination == Location.X2)\n\t\t\tnavigator.travelTo(X[1][0] * 30.0, X[1][1] * 30.0);\n\t\t\n\t\telse if (destination == Location.X3) \n\t\t\tnavigator.travelTo(X[2][0] * 30.0, X[2][1] * 30.0);\n\n\t\telse if (destination == Location.X4)\n\t\t\tnavigator.travelTo(X[3][0] * 30.0, X[3][1] * 30.0);\n\t\t\n\t\telse if (destination == Location.DefWay3)\n\t\t\tnavigator.travelTo(240, 240);\n\t\t\n\t\telse if (destination == Location.DefWay4)\n\t\t\tnavigator.travelTo(60, 240);\n\n\t\t\n\t\t// return from method only after navigation is complete\n\t\twhile (navigator.isNavigating())\n\t\t{\n\t\t\tSystem.out.println(\"destX: \" + navigator.destDistance[0] + \"destY: \" + navigator.destDistance[1]);\n\t\t\ttry {\n\t\t\t\tThread.sleep(100);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Override\n public void mouseDragged(MouseEvent evt) {\n setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\n }",
"@Override\n protected void moveOver(){\n incrementXPos(getWidth()/2);\n if(pointUp){\n incrementYPos(-1*getHeight());\n } else {\n incrementYPos(getHeight());\n }\n incrementCol();\n setPointDirection();\n }",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tpvo3 = getPosition(e.getPoint());\n\t\t// System.out.println(pvo1.getX()+\",\"+pvo1.getY());\n\t}",
"public boolean onTouch(View v, MotionEvent event) {\n PointF p;\n\t\tfloat x, y;\n\n\t\t// get x,y coordinates from view and translate\n\t\t// to model coordinate system (with y=0 on bottom)\n\t\tsynchronized(gameModel){\n\t\t\t// at this point we convert from raw coordinates to the model coordinates\n\t\t\t// raw coordinates have the origin (0,0) at the upper left corner, but the\n\t\t\t// model system has it at the lower left corner.\n\t\t\t// The View may need to use this transformation to draw on the screen.....\n\t\tp = viewToModel(new PointF(event.getX(),event.getY()));\n\t\tx = p.x;\n\t\ty = p.y;\n Log.d(TAG,\"x=\"+x+\" y=\"+y+\"h-y=\"+(height-y)+\" currState=\"+currState+\" firstX=\"+firstX+\" firstY=\"+firstY);\n\n\t\tif (event.getAction() == MotionEvent.ACTION_DOWN) {\n\t\t\tDisk d;\n\t\t\tSquare s;\n\t\t\td = gameModel.touchingDisk(x, y);\n\t\t\ts = gameModel.touchingSquare(x, y);\n\t\t\tLog.d(TAG,\"d=\"+d);\n\t\t\tLog.d(TAG,\"s=\"+s);\n\t\t\t\n\t\t\tif ((d != null) && (!d.isStatic)) {\n\t\t\t\tcurrDisk = d;\n\t\t\t\tcurrDisk.vx = currDisk.vy = 0;\n\t\t\t\tcurrDisk.weightless=true;\n\t\t\t\tcurrState = State.TOUCH_DISK;\n\t\t\t\t// record the position of the disk as we will use it when we let go of the disk, to fling it in ACTION_UP\n\t\t\t\tfirstX = d.x;\n\t\t\t\tfirstY = d.y;\n\t\t\t\tLog.d(TAG,\"TOUCH_DISK\"+d);\n\t\t\t} else if (s!= null) {\n\t\t\t\tcurrSquare = s;\n\t\t\t\tcurrState = State.TOUCH_SQUARE;\n\t\t\t\tLog.d(TAG,\"TOUCH_SQUARE\"+s);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (event.getAction() == MotionEvent.ACTION_MOVE) {\n\t\t\tif (currState == State.TOUCH_DISK) {\n\t\t\t\tcurrDisk.move(firstX, firstY);\n\t\t\t} else if (currState == State.TOUCH_SQUARE) {\n\t\t\t\tcurrSquare.move(x, y);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (event.getAction() == MotionEvent.ACTION_UP) {\n\t\t\tif (currState == State.TOUCH_DISK) {\n\t\t\t\tcurrState = State.WAIT;\n\t\t\t\tfloat dx = x - firstX;\n\t\t\t\tfloat dy = y - firstY;\n\t\t\t\tcurrDisk.vx = dx;\n\t\t\t\tcurrDisk.vy = dy;\n\t\t\t\tcurrDisk.weightless=false;\n\t\t\t\tcurrDisk = null;\n\t\t\t\treturn true;\n\t\t\t} else if (currState == State.TOUCH_SQUARE) {\n\t\t\t\tcurrState = State.WAIT;\n\t\t\t\tcurrSquare = null;\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t\t}\n\t}",
"private void moveAround()\n {\n if(getY()>75)\n {\n setRotation(270);\n }\n else if(getX()<75)\n {\n setRotation(0);\n }\n else if (getX()>getWorld().getWidth()-50)\n {\n setRotation(180);\n }\n else if (isTouching(Player.class))\n {\n Actor actor = getOneIntersectingObject(Player.class);\n turnTowards(actor.getX(), actor.getY());\n turn(180);\n }\n else if(Greenfoot.getRandomNumber(100) < 3)\n {\n setRotation(Greenfoot.getRandomNumber(360));\n }\n move(1);\n }"
] | [
"0.592644",
"0.5818138",
"0.5808794",
"0.5740038",
"0.5661899",
"0.56437004",
"0.5595255",
"0.55883455",
"0.5501436",
"0.55000246",
"0.549225",
"0.5470997",
"0.544839",
"0.54369277",
"0.54349494",
"0.5415808",
"0.54030365",
"0.5399155",
"0.53982365",
"0.5385785",
"0.537938",
"0.5374236",
"0.5373323",
"0.53701246",
"0.5364551",
"0.5361937",
"0.53603023",
"0.53471553",
"0.53198856",
"0.530306",
"0.5293726",
"0.52888167",
"0.52822655",
"0.5273508",
"0.5266096",
"0.5266096",
"0.5243182",
"0.5242034",
"0.52399105",
"0.52336746",
"0.5220596",
"0.5205382",
"0.5202557",
"0.51958656",
"0.5191598",
"0.518661",
"0.5176894",
"0.51709247",
"0.5165459",
"0.51650095",
"0.5164848",
"0.5160509",
"0.51564556",
"0.51549405",
"0.5154706",
"0.5154597",
"0.5153041",
"0.5145972",
"0.5128716",
"0.51280206",
"0.51258826",
"0.5113232",
"0.51117873",
"0.5111387",
"0.51050836",
"0.5104544",
"0.5095186",
"0.5093726",
"0.5091767",
"0.509107",
"0.5089692",
"0.50833845",
"0.50823265",
"0.5074966",
"0.50738114",
"0.5063362",
"0.5060655",
"0.5059712",
"0.50547254",
"0.5054096",
"0.50369453",
"0.50349265",
"0.5027654",
"0.5026417",
"0.50256264",
"0.500661",
"0.50035477",
"0.49999893",
"0.49998686",
"0.49987006",
"0.49983948",
"0.4997923",
"0.4995973",
"0.4987623",
"0.49870926",
"0.49862233",
"0.4982915",
"0.49824274",
"0.4982243",
"0.49796242"
] | 0.53411055 | 28 |
Authenticate the passed credentials | public void authenticate(LoginCredentials credentials) throws LoginException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void authenticate(String user, String pass) {\n }",
"LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;",
"boolean authenticate(String userName, String password);",
"public User doAuthentication(String account, String password);",
"AuthenticationToken authenticate(String username, CharSequence password) throws Exception;",
"User authenticate(String username, String password);",
"List<String> authenticateUser(String userName, String password);",
"private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }",
"public void authenticate() {\n LOGGER.info(\"Authenticating user: {}\", this.name);\n WebSession result = null;\n try {\n result =\n getContext()\n .getAuthenticationMethod()\n .authenticate(\n getContext().getSessionManagementMethod(),\n this.authenticationCredentials,\n this);\n } catch (UnsupportedAuthenticationCredentialsException e) {\n LOGGER.error(\"User does not have the expected type of credentials:\", e);\n } catch (Exception e) {\n LOGGER.error(\"An error occurred while authenticating:\", e);\n return;\n }\n // no issues appear if a simultaneous call to #queueAuthentication() is made\n synchronized (this) {\n this.getAuthenticationState().setLastSuccessfulAuthTime(System.currentTimeMillis());\n this.authenticatedSession = result;\n }\n }",
"private Authentication tryToAuthenticateWithUsernameAndPassword(String username, String password) {\n\t\tUsernamePasswordAuthenticationToken requestAuthentication = new UsernamePasswordAuthenticationToken(username, password);\n\t\treturn tryToAuthenticate(requestAuthentication);\n \n\t}",
"public abstract boolean authenticate(String userid, String password) throws\n YAuthenticationException;",
"private void authenticate(final String username, final String password) {\n\t\tAuthenticator.setDefault(new Authenticator() {\n\n\t\t\t@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\n\t\t\t\treturn new PasswordAuthentication(username, password.toCharArray());\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic Authentication authenticate(Authentication auth) throws AuthenticationException {\n\t\t username = auth.getName();\n\t\tString pass = auth.getCredentials().toString();\n\t\t\n\t\tif(AppController.users.containsKey(username))\n\t\t{\n\t\tString password = AppController.users.get(username); \n\t\t\t\n\t\tif(password.equals(pass))\n\t\t\treturn new UsernamePasswordAuthenticationToken(username,pass,Collections.EMPTY_LIST);\n\t\telse\n\t\t\tthrow new BadCredentialsException(\"authentication failed\");\n\t\t\n\t\t}\n\t\telse\n\t\t\tthrow new BadCredentialsException(\"authentication failed\");\n\t}",
"SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;",
"int authenticateUser(IDAOSession session, String userName, String password);",
"private static boolean authenticate(String username, String password) {\r\n\t\tFile file = new File(\"auth.txt\");\r\n\t\tScanner scanner;\r\n\t\tString user = null;\r\n\t\tString pwd = null;\r\n\t\ttry {\r\n\t\t\tscanner = new Scanner(file);\r\n\t\t\tString nextLine = scanner.nextLine();\r\n\t\t\tString[] parts = nextLine.split(\"=\");\r\n\t\t\tuser = parts[0];\r\n\t\t\tpwd = parts[1];\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn (username.equals(user) && password.equals(pwd));\r\n\t\t\r\n\t}",
"@Override\n public AuthenticatedUser authenticateUser(Credentials credentials)\n throws GuacamoleException {\n SSOAuthenticationProviderService authProviderService =\n injector.getInstance(SSOAuthenticationProviderService.class);\n\n return authProviderService.authenticateUser(credentials);\n\n }",
"public void authenticate(LoginRequest loginRequest) {\n\n }",
"EmployeeMaster authenticateUser(int employeeId, String password);",
"protected synchronized void login() {\n\t\tauthenticate();\n\t}",
"@Override\n public Principal authenticate(String credentials, String remoteAddr, String httpMethod, StringBuilder errMsg) {\n return null;\n }",
"@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }",
"public Result authenticate() {\r\n // 1. Define class to send JSON response back\r\n class Login {\r\n public Long id;\r\n public String gamerTag;\r\n public String token;\r\n\r\n public Login() {\r\n }\r\n }\r\n\r\n // 2. Read email and password from request()\r\n JsonNode request = request().body().asJson();\r\n String gamerTag = request.get(\"gamerTag\").asText();\r\n String password = request.get(\"password\").asText();\r\n\r\n // 3. Find user with given gamerTag\r\n Login ret = new Login();\r\n User user = User.gamerTagLogin(gamerTag);\r\n if (user == null) {\r\n return unauthorized(Json.toJson(ret));\r\n }\r\n // 4. Compare password.\r\n String sha256 = User.getSha256(request.get(\"password\").asText());\r\n if (sha256.equals(user.getPassword())) {\r\n // Success\r\n String authToken = generateAuthToken();\r\n user.setToken(authToken);\r\n Ebean.update(user);\r\n ret.token = authToken;\r\n ret.gamerTag = user.getGamerTag();\r\n ret.id = user.getId();\r\n return ok(Json.toJson(ret));\r\n\r\n }\r\n // 5. Unauthorized access\r\n return unauthorized();\r\n }",
"@Override\n\tpublic boolean isUserAuthenticate(String username, String password) {\n\t\t// validate username and pwd with predefined credentials\n\t\tif (username.equals(Utility.USERNAME) && password.equals(Utility.PASSWORD)) {\n\t\t\treturn true;\n\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }",
"public abstract boolean checkCredentials (String username, String password);",
"private static boolean authenticateUser(String username_input, String password_input){\n\t\tif(!username_input.equals(USERNAME) || !password_input.equals(PASSWORD)){\n\t\t\tSystem.out.println(\"Invalid Credentials Entered!\");\n\t\t\treturn false;\n\t\t}\n\t\telse //username and password entered were correct\n\t\t\tSystem.out.println(\"User Credentials Authenticated! Please wait while books and students are being loaded.\");\n\t\treturn true;\n\t}",
"private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}",
"private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }",
"public void authenticateUser()\r\n\t{\r\n\t\tsc.nextLine(); \r\n\t\tint index=loginattempt();\r\n\t}",
"@Override\n\tpublic Authentication authenticate(Authentication authentication) throws AuthenticationException {\n\t\tString userId = authentication.getPrincipal().toString();\n\t\tString password = authentication.getCredentials().toString();\n\t\tUserInfo userAuth = Config.getInstance().getUserAuth();\n\t\tuserAuth.setUserEmail(userId);\n\t\tuserAuth.setUserPassword(password);\n\t\tLoginService loginService = Config.getInstance().getLoginService();\n\t\tUserInfo userInfo;\n\t\ttry{\n\t\t\tuserInfo = loginService.authenticateUser(userId,password);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new AuthenticationServiceException(\"1000\");\n\t\t}\n\t\tif (userInfo != null)\n\t\t{\n\t\t\treturn grantNormalRole(userInfo, authentication);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// No user with this banner id found.\n\t\t\tthrow new BadCredentialsException(\"1001\");\n\t\t}\n\t}",
"boolean isAuthenticate(String username, String password) throws UserDaoException;",
"@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }",
"public abstract boolean authenticate(ServiceSecurity serviceSecurity, SecurityContext securityContext);",
"private void authenticate() {\n\t\t//Isn't a foreach because if the ciphertext is invalid, that data object is removed from the data array.\n\t\t// In a foreach, this would lead to a concurrent modification exception.\n\t\t//noinspection ForLoopReplaceableByForEach\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\ttry {\n\t\t\t\tdata.get(i).decryptText(plainPassword);\n\t\t\t} catch (VaultFormatException ignored) {\n\t\t\t}\n\t\t}\n\t}",
"public static boolean authenticate(String username, String password) {\n\t\tif (username.equals(\"admin\") && password.equals(\"secret\"))\r\n\t\t\treturn true;\r\n\t\telse if (username.equals(\"user1\") && password.equals(\"1111\"))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"public AuthToken login(UserCreds credentials) throws ResourceNotFoundException, UnauthorizedException {\n User user = getByName(credentials);\n // Check if user is authorized\n if (!user.getUserCreds().equals(credentials)) throw new UnauthorizedException();\n // Generate auth token\n AuthToken token = new AuthToken(user);\n // Return the token\n return token;\n }",
"private UserSession handleBasicAuthentication(String credentials, HttpServletRequest request) {\n\t\tString userPass = Base64Decoder.decode(credentials);\n\n\t\t// The decoded string is in the form\n\t\t// \"userID:password\".\n\t\tint p = userPass.indexOf(\":\");\n\t\tif (p != -1) {\n\t\t\tString userID = userPass.substring(0, p);\n\t\t\tString password = userPass.substring(p + 1);\n\t\t\t\n\t\t\t// Validate user ID and password\n\t\t\t// and set valid true if valid.\n\t\t\t// In this example, we simply check\n\t\t\t// that neither field is blank\n\t\t\tIdentity identity = WebDAVAuthManager.authenticate(userID, password);\n\t\t\tif (identity != null) {\n\t\t\t\tUserSession usess = UserSession.getUserSession(request);\n\t\t\t\tsynchronized(usess) {\n\t\t\t\t\t//double check to prevent severals concurrent login\n\t\t\t\t\tif(usess.isAuthenticated()) {\n\t\t\t\t\t\treturn usess;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tusess.signOffAndClear();\n\t\t\t\t\tusess.setIdentity(identity);\n\t\t\t\t\tUserDeletionManager.getInstance().setIdentityAsActiv(identity);\n\t\t\t\t\t// set the roles (admin, author, guest)\n\t\t\t\t\tRoles roles = BaseSecurityManager.getInstance().getRoles(identity);\n\t\t\t\t\tusess.setRoles(roles);\n\t\t\t\t\t// set authprovider\n\t\t\t\t\t//usess.getIdentityEnvironment().setAuthProvider(OLATAuthenticationController.PROVIDER_OLAT);\n\t\t\t\t\n\t\t\t\t\t// set session info\n\t\t\t\t\tSessionInfo sinfo = new SessionInfo(identity.getName(), request.getSession());\n\t\t\t\t\tUser usr = identity.getUser();\n\t\t\t\t\tsinfo.setFirstname(usr.getProperty(UserConstants.FIRSTNAME, null));\n\t\t\t\t\tsinfo.setLastname(usr.getProperty(UserConstants.LASTNAME, null));\n\t\t\t\t\tsinfo.setFromIP(request.getRemoteAddr());\n\t\t\t\t\tsinfo.setFromFQN(request.getRemoteAddr());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress[] iaddr = InetAddress.getAllByName(request.getRemoteAddr());\n\t\t\t\t\t\tif (iaddr.length > 0) sinfo.setFromFQN(iaddr[0].getHostName());\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t // ok, already set IP as FQDN\n\t\t\t\t\t}\n\t\t\t\t\tsinfo.setAuthProvider(BaseSecurityModule.getDefaultAuthProviderIdentifier());\n\t\t\t\t\tsinfo.setUserAgent(request.getHeader(\"User-Agent\"));\n\t\t\t\t\tsinfo.setSecure(request.isSecure());\n\t\t\t\t\tsinfo.setWebDAV(true);\n\t\t\t\t\tsinfo.setWebModeFromUreq(null);\n\t\t\t\t\t// set session info for this session\n\t\t\t\t\tusess.setSessionInfo(sinfo);\n\t\t\t\t\t//\n\t\t\t\t\tusess.signOn();\n\t\t\t\t\treturn usess;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static synchronized Credentials authenticate(String userName, String password){\n\t\t\tConnection connection;\n\t\t \tCredentials credentials=null;\n\t\t \t\n\t\t \tPreparedStatement statement=null;\n\t\t\tString preparedSQL = \"SELECT * FROM Credential WHERE Email = ? and Pass = ?\";\n\t\t\t\n\t\t try{\n\t\t \tconnection=DBConnector.getConnection();\n\t\t \tstatement = connection.prepareStatement(preparedSQL);\n\t\t \tstatement.setString(1, userName);\n\t\t \tstatement.setString(2, password);\n\t\t\t\tResultSet rs = statement.executeQuery();\n\t\t\t\tif(rs.next()){\n\t\t\t\t\tcredentials = new Credentials();\n\t\t\t\t\tcredentials.setCredID(rs.getInt(1));\n\t\t\t\t\tcredentials.setUserID(rs.getInt(2));\n\t\t\t\t\tcredentials.setEmail(rs.getString(3));\n\t\t\t\t\tcredentials.setPass(rs.getString(4));\n\t\t\t\t\tcredentials.setRole(rs.getString(5));\n\t\t\t\t\tcredentials.setValid(rs.getInt(6));\n\t\t\t\t\tcredentials.setRegKey(rs.getString(7));\n\t\t\t\t}\t\n\t\t\t\trs.close();\t\t\n\t\t\t\tstatement.close();\n\t\t\t\tconnection.close();\n\t\t\t\t\n\t\t\t}catch (SQLException ex){\n\t\t\t\t\tSystem.out.println(\"Error: \" + ex);\n\t\t\t\t\tSystem.out.println(\"Query: \" + statement.toString());\n\t\t\t\t\tcredentials = null;\n\t\t\t\t}\t\n\t\t\treturn credentials;\n\t}",
"private void authenticate(String username, String password) throws Exception {\n\t\tboolean autenticated = false;\n\t\tEntityManagerFactory factory = Persistence.createEntityManagerFactory(\"ForumApp\");\n\t\tEntityManager em = factory.createEntityManager();\n\n\t\tTypedQuery<User> q = em.createQuery(\"SELECT u FROM User u WHERE u.username = '\" + username + \"'\", User.class);\n\t\tUser user = q.getSingleResult();\n\n\t\tif (user != null) {\n\n\t\t\tif (user.getPassword().equals(password)) {\n\t\t\t\tautenticated = true;\n\t\t\t}\n\t\t}\n\n\t\t// Close the entity manager\n\t\tem.close();\n\t\tfactory.close();\n\n\t\t// Throw an Exception if the credentials are invalid\n\t\tif (!autenticated) {\n\t\t\tthrow new Exception();\n\t\t}\n\t}",
"public void authenticateUser() {\n\n String username = viewUsername.getText().toString();\n String password = viewPassword.getText().toString();\n\n Timber.v(\"authenticateUser called username: \" + username);\n activity.getOnboardingViewModel().authenticateUser(username, password);\n }",
"private void authenticate( String loging, String sysLoging,String password,String sys_password) throws Exception {\n \n if(!loging.equals(sysLoging) || !(sys_password.equals(password) )){\n Exception e = new Exception();\n throw e;\n }\n\n }",
"void login(String email, String password) throws InvalidCredentialsException, IOException;",
"protected boolean doAuthenticate(String password, String challenge)\r\n {\r\n return digest(MD5, challenge).equals(password);\r\n }",
"User authenticate(String headerToken) throws AuthenticationException;",
"public void authenticateUser(String username, String password) {\n\n // Need to validate credentials\n // For now just authenticate the user\n\n AuthenticateUserPayload payload = new\n AuthenticateUserPayload(username, password);\n\n Timber.v(\"authenticateUser called username: \" + username);\n Observable<AuthenticateUserResponse> respObserv = ApiUtility.getApiService().authenticateUser(payload);\n respObserv.subscribeOn(Schedulers.computation())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Observer<AuthenticateUserResponse>() {\n @Override\n public void onSubscribe(@NonNull Disposable d) { }\n\n @Override\n public void onNext(@NonNull AuthenticateUserResponse authenticateUserResponse) {\n Timber.v(\"on Next() called \" + authenticateUserResponse.getMessage());\n authUserResponseObservable.onNext(authenticateUserResponse);\n }\n\n @Override\n public void onError(@NonNull Throwable e) {\n Timber.v(\"on Error() called message: \" + e.getMessage());\n Timber.v(\"on Error() called cause: \" + e.getCause());\n authUserError(e);\n }\n\n @Override\n public void onComplete() { }\n });\n }",
"@Override\n public Authentication attemptAuthentication(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)\n throws AuthenticationException, IOException, ServletException {\n AccountCredentials credentials = new ObjectMapper().readValue(httpServletRequest.getInputStream(), AccountCredentials.class);\n UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(credentials.getUsername(), credentials.getPassword());\n return getAuthenticationManager().authenticate(token);\n }",
"@Override\n public Authentication authenticate(Authentication authentication) throws AuthenticationException {\n\n String id = authentication.getName();\n String password = authentication.getCredentials().toString();\n\n Optional<Employee> found = employeeService.get(id);\n if (found.isPresent()) {\n Employee employee = found.get();\n\n // Get employee's roles\n List authorities = getAuthorities(employee);\n\n // Check password\n String encodedPassword = employee.getPassword();\n if (encoder.matches(password, encodedPassword)) {\n // Return the valid authentication that will be stored in SecurityContext\n return new UsernamePasswordAuthenticationToken(\n id, encodedPassword, authorities);\n }\n }\n\n throw new BadCredentialsException(\"Invalid credentials\");\n }",
"LoginContext login(String username, String password) throws LoginException;",
"@Override\n\tpublic String authenticate(String username, String password) throws RemoteException\n\t{\n\t\tIterator<User> userIterator = this.users.iterator();\n\t\tUser user;\n\t\t//For every user in users\n\t\twhile (userIterator.hasNext())\n\t\t{\n\t\t\tuser = userIterator.next();\n\t\t\t//If this user's username matches the given username\n\t\t\tif (user.getUsername().equals(username))\n\t\t\t{\n\t\t\t\t//If this user's password matches the given password\n\t\t\t\tif (user.getPassword().equals(password))\n\t\t\t\t{\n\t\t\t\t\t//Generate a unique userToken\n\t\t\t\t\tString userToken = \"\";\n\t\t\t\t\tboolean duplicate = true;\n\t\t\t\t\twhile (duplicate)\n\t\t\t\t\t{\n\t\t\t\t\t\tuserToken = genUserToken();\n\t\t\t\t\t\tif (matchUser(userToken) == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tduplicate = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t//Give the userToken to the user and return it\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i = 0; i < users.size(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tuser = users.get(i);\n\t\t\t\t\t\tif(user.getUsername().equals(username))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tuser.setUserToken(userToken);\n\t\t\t\t\t\t\tServerStartup.refreshSaver();\n\t\t\t\t\t\t\treturn userToken;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tServerStartup.refreshSaver();\n\t\t\t\t\treturn userToken;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//If no username/password match was found, return null.\n\t\treturn null;\n\t}",
"@Override\n public boolean authenticated(final String username, final String password) {\n\n Claim claim;\n try {\n claim = credService.authenticate(new PasswordCredentialsWrapper(username, password));\n } catch (AuthenticationException e) {\n LOG.debug(\"Authentication failed for user '{}' : {}\", username, e);\n return false;\n }\n\n LOG.debug(\"Authentication result for user '{}' : {}\", username, claim.domain());\n return true;\n }",
"Boolean checkCredentials(ClientCredentialsData clientData) throws AuthenticationException;",
"private void login(String username,String password){\n\n }",
"@Override\n\t\t\tpublic boolean authenticate(String name, char[] password, String server) throws Exception {\n\t\t\t\treturn true;\n\t\t\t}",
"private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }",
"@Override\n public URLConnection authenticate(final URLConnection connection) throws IOException {\n String authorization = getConfiguration().getUsername() + \":\" + getConfiguration().getPassword();\n String encodedAuthorization = new String(Base64.encodeBase64(authorization.getBytes()));\n connection.setRequestProperty(\"Authorization\", \"Basic \" + encodedAuthorization);\n return connection;\n }",
"AuthenticationResponseDTO authenticateUser(String email, String password);",
"protected boolean authenticate() {\n \tif (mConfig == null) {\n \t\tmConfig = getConfig();\n \t}\n \tString keys[] = getKeys();\n \tif (keys != null) {\n\t mConfig = api.authenticateToken(keys[0], keys[1], mConfig);\n\t if (mConfig != null) {\n\t return true;\n\t }\n \t}\n \tshowToast(\"Failed user authentication for stored login tokens.\");\n \tclearKeys();\n \tsetLoggedIn(false);\n \treturn false;\n }",
"protected synchronized String authenticated() throws JSONException {\n JSONObject principal = new JSONObject()\n .put(FIELD_USERNAME, USER)\n .put(FIELD_PASSWORD, PASSWORD);\n if (token == null){ //Avoid authentication in each call\n token =\n given()\n .basePath(\"/\")\n .contentType(ContentType.JSON)\n .body(principal.toString())\n .when()\n .post(LOGIN)\n .then()\n .statusCode(200)\n .extract()\n .header(HEADER_AUTHORIZATION);\n\n }\n return token;\n }",
"public void authenticate(String plainPassword) {\n\t\tthis.plainPassword = plainPassword;\n\t\tauthenticate();\n\t}",
"public void authentication() throws AuthorizationException {\n\t\tclient = new RennClient(API_KEY, SECRET_KEY);\n\t\tclient.authorizeWithClientCredentials();\n\t}",
"public AuthCredentials(String scheme,String name,String password)\n {\n this.scheme = scheme;\n this.name = name;\n this.password = password;\n }",
"public abstract void login(String userName, String password) throws RemoteException;",
"CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);",
"private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }",
"public void login(String username, String password)\n \t\t\tthrows IllegalStateException, IOException, JHGDException {\n \t\tif (!connected) {\n \t\t\tthrow new IllegalStateException(\"Client not connected\");\n \t\t}\n \t\t// Set SSL if necessary\n \n \t\t// Reset the authentication flag.\n \t\tauthenticated = false;\n \n \t\t// Check received parameters\n \t\tif (username == null || username.isEmpty()) {\n \t\t\tthrow new JHGDException(\"Null or empty username\");\n \t\t}\n \t\tif (password == null) {\n \t\t\tthrow new JHGDException(\"Null password\");\n \t\t}\n \n \t\t// send the command: \"user|%s|%s\"\n \t\tsendLineCommand(\"user|\" + username + \"|\" + password);\n \n \t\tString returnMessage = (String) input.readLine();\n \t\t// check server response\n \t\tif (checkServerResponse(returnMessage) == HGDConsts.SUCCESS) {\n \t\t\t// set the flags\n \t\t\tthis.authenticated = true;\n \t\t\tthis.username = username;\n \t\t\tthis.password = password;\n \t\t} else {\n \t\t\tthrow new JHGDException(returnMessage.substring(returnMessage\n \t\t\t\t\t.indexOf('|') + 1));\n \t\t}\n \n \t}",
"public static String authenticate(final String username,\n final String password) throws IOException {\n\n String AUTH_URL = String.format(RestURI.LOGIN.getValue(), Server.getIp(), username, password);\n\n Request request = new Request.Builder()\n .url(AUTH_URL)\n .post(emptyBody)\n .build();\n\n try (Response response = getHttpClient().newCall(request).execute()) {\n return getResponseMessage(response);\n }\n }",
"void login(String user, String password);",
"public Person authenticateAndGetUser(String numCc, String password) throws RemoteException;",
"void authenticate() throws AuthenticationException {\n if (!isAuthenticated()) {\n throw new AuthenticationException(AuthenticationException.NOT_ENOUGH_INFO_FOR_AUTHENTICATION,\n \"The property 'AuthenticationType.Properties.ACCESS_TOKEN' must be specified, see Java doc for \" +\n \"AuthenticationService#setAuthenticationProperty(String, Object). \" +\n \"You can find more information here: \" +\n \"https://asana.com/developers/documentation/getting-started/auth#personal-access-token\");\n }\n }",
"public void propagateCredentials( User user, String password );",
"public AuthenticationResult authenticateByName(String username) {\n\t\tthis.username = username;\n\t\tpassword = passwordDefault;\n\t\treturn authenticateByName(username, password);\n\t}",
"boolean isValidCredential(String username, String password);",
"public Boolean authentication(String username, String password) \n\t{\n\t\n\t switch (username) {\n\t case \"FS_UTO_CoE_Sreenivas\":\n\t \t\t\tif (year<=2018)\n\t \t\t\tpassorfail=password.equals(\"q2m!x:dCk6FaG$Ec\");\n\t \t\t\t\tbreak;\n\t// case \"FS_BAN_ANZ_DIGITAL_GANESH\": \n\t//\t\t \t\t\tpassorfail=password.equals(\"q`r^8{De,Sn*!KU_\");\n\t//\t\t \t\t\t\tbreak;\t\t \t\t\t\t\n\t default: \n\t\t\t\t\t\t\tpassorfail = false; \n\t\t\t\t\t\t\tbreak; \t\t \n\t\t}\n\t\treturn passorfail;\n\n\t}",
"public void auth(View view) {\n\n // get UI inputs\n login = (EditText) findViewById(R.id.login);\n password = (EditText) findViewById(R.id.password);\n result = (TextView)findViewById(R.id.result);\n\n // change inputs to strings\n txtLogin = login.getText().toString();\n txtPass = password.getText().toString();\n\n new Thread(){\n @Override\n public void run() { // thread to not disturb the UI thread\n\n URL url = null;\n try {\n url = new URL(\"https://httpbin.org/basic-auth/bob/sympa\");\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n // adding auth headers\n String userAndPassword = txtLogin+\":\"+txtPass; // text values from text fields\n// Log.i(\"USR\", txtLogin);\n// Log.i(\"PWD\", txtPass);\n String basicAuth = \"Basic \"+ Base64.encodeToString(userAndPassword.getBytes(), Base64.NO_WRAP);\n urlConnection.setRequestProperty(\"Authorization\", basicAuth);\n\n try {\n // read the returned HTML\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n String s = readStream(in);\n Log.i(\"JFL\", s);\n\n jsonObject = new JSONObject(s); // storing the returned html in JSON form for easy access\n\n boolean res = jsonObject.getBoolean(\"authenticated\");\n// String usr = jsonObject.getString(\"user\");\n runOnUiThread(new Runnable() { // safe way to access the UI thread\n @Override\n public void run() {\n result.setText(\"\"+res);\n }\n });\n\n } catch (JSONException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }.start();\n\n }",
"private static void processAuthentication(HttpPost method, String username, String password) {\n if (username != null && username.trim().length() > 0) {\n method.setHeader(\"Authorization\", \"Basic \" + Base64.encode(\n (username + \":\" + password).getBytes()));\n }\n }",
"@PostMapping(Constants.URI_API_AUTH)\n\tpublic ResponseEntity<?> authenticateUser(@RequestParam(required=true) String username,\n\t\t\t\t\t\t\t\t\t\t\t @RequestParam(required=true) String password){\n\t\t\n\t\tLOG.debug(\"API Authenticate User: User '\" + username + \"'\");\n\t\t\n\t\tAuthenticationToken authToken = new AuthenticationToken(userService.authenticateUser(username, password));\n\t\t\n\t\treturn ResponseEntity.ok(authToken);\n\t}",
"public static void run_auth(String pass)\r\n\t{\r\n\t\tpassword = pass;\r\n\t\t\r\n\t\t// Call hash function to encrypt the input password\r\n\t\ttry \r\n\t\t{\r\n\t\t\thash = hash_password(password);\r\n\t\t\tSystem.out.println(\"Hashed password: \" + hash);\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"There was an error hashing the input password...\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Call query function to retrieve hash from the DB\r\n\t\ttry \r\n\t\t{\r\n\t\t\tquery_hash = query_hash();\r\n\t\t\tSystem.out.println(\"Queried hash: \" + query_hash);\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"There was an error querying the database...\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public HomePage loginValidCredentials (String email, String password){\n\n insertCredentials(email, password);\n submitInformation();\n\n return new HomePage(driver);\n }",
"boolean authNeeded();",
"@PreAuthorize(\"permitAll()\")\n @RequestMapping(\n value = \"/users/auth\",\n method = RequestMethod.POST\n )\n public ResponseEntity<AuthResponse> authenticate(@RequestParam(value = \"username\") String username, @RequestParam(value = \"password\") String password) {\n Authentication authentication = authenticationManager.authenticate(\n new UsernamePasswordAuthenticationToken(username, password)\n );\n\n SecurityContextHolder.getContext().setAuthentication(authentication);\n final UserDetails userDetails = userDetailsService.loadUserByUsername(username);\n final String token = tokenUtils.generateToken(userDetails);\n\n return ResponseEntity.ok(new AuthResponse(token));\n }",
"private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}",
"Boolean checkCredentials(String username, String password) throws\n SQLException, UserNotFoundException;",
"public BasicAuthenticationCredentials(String userName, String password) {\n this.userName = userName;\n this.password = password;\n }",
"@ApiOperation(value = \"Authenticate as a user\",\n response = AuthenticatedUser.class, responseContainer = \"The authenticated user details\",\n notes = \"User must be registered\")\n\n @ApiResponses(value = {\n @ApiResponse(code=200, message = \"The corresponding authenticated user details\",\n response = AuthenticatedUser.class, responseHeaders = {\n }),\n @ApiResponse(code = 400, message = \"Bad request\"),\n @ApiResponse(code = 401, message = \"Unauthorized since you are not authorized user\"),\n @ApiResponse(code = 403, message = \"Forbidden since you are not authorized to perform such action\"),\n @ApiResponse(code = 500, message = \"Internal Server Error\")\n })\n @Validated\n /**\n * This is the login API function '/auth/login'\n * @param authenticationRequest The {@link AuthenticationRequest} contains the new user data\n * @return The {@link ResponseEntity}\n */\n @PostMapping(\"/login\")\n public ResponseEntity login(@ApiParam(value = \"Login credentials\", required = true) @RequestBody AuthenticationRequest credentials)\n {\n AuthenticatedUser authenticatedUser = this.authenticatedUserService.login(credentials);\n\n if (authenticatedUser != null)\n {\n return ResponseEntity.ok(authenticatedUser);\n }\n\n return new ResponseEntity<>(\"Invalid credentials\",HttpStatus.UNAUTHORIZED);\n }",
"public boolean authenticateUser(String userName,String password) throws ToDoListDAOException{\r\n\t\t\r\n\t\t User user = getUserByUserName(userName); \r\n\t\t System.out.println(userName + \" \" + password);\r\n\t if(user!=null && user.getUserName().equals(userName) && user.getPassword().equals(password)){\r\n\t return true;\r\n\t }else{\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t}",
"@Override\n public Authentication attemptAuthentication(HttpServletRequest req,\n HttpServletResponse res) throws AuthenticationException {\n log.info(\"Attempting authentication\");\n try {\n LoginRequest creds = new ObjectMapper()\n .readValue(req.getInputStream(), LoginRequest.class);\n\n return getAuthenticationManager().authenticate(\n new UsernamePasswordAuthenticationToken(\n creds.getUsername(),\n creds.getPassword(),\n new ArrayList<>())\n );\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public boolean authenticate(String username, String password, HttpServletRequest request){\n try {\n MySQLService sql = new MySQLService();\n String digest = DigestUtils.md5Hex(password);\n boolean isMatched = sql.checkMatch(username, digest);\n System.out.println(isMatched);\n if (isMatched) {\n request.getSession().setAttribute(\"username\", username);\n return true;\n } else {\n return false;\n }\n }catch (Exception e){\n System.out.println(e);\n\n }\n return false;\n }",
"public static void authenticate(String email, String password) {\n\t\tboolean authentic = Security.authenticate(email, password);\n\t\tvalidation.isTrue(\"loggedIn\", authentic)\n\t\t\t.message(\"Email and Passwords do not match\");\n\t if (authentic) {\n\t \tApplication.index();\n\t } else {\n\t \t// has errors\n\t\t params.flash(); \n\t \tvalidation.keep();\n\t \tApplication.index();\n\t }\n\t}",
"public Identity authenticate(String login, String pwd){\r\n\t\t\t\r\n\t\t\r\n\t\tSpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);\r\n\t\tSession session = sf.openSession();\r\n\t\tList<Identity> ids = new ArrayList<Identity>();\r\n\t\tTransaction t = session.beginTransaction();\r\n\t\tQuery query = session.createQuery(\"FROM Identity AS identity WHERE identity.displayName = :login\");\r\n\t\t//transaction - forces changes in cache to be updated to dbs\r\n\t\tquery.setParameter(\"login\", login);\r\n\t\tids = query.list();\r\n\t\tt.commit();\r\n\t\tsession.close();\r\n\t\t\r\n\t\tif(ids.isEmpty())\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t//there should be only one identity to a single displayname!\r\n\t\tfor(Identity id : ids)\r\n\t\t{\r\n\t\t\tPasswordEndecryptor.getInst();\r\n\t\t\t// hashed password decryption and authentication\r\n\t\t\tif(PasswordEndecryptor.checkPwd(pwd, id.getPassword()))\r\n\t\t\t{\r\n\t\t\t\tLOGGER.debug(\"Authentication should be succesfull!\");\r\n\t\t\t\treturn id;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\tLOGGER.debug(\"Authentication should NOT be succesfull!\");\r\n\t\treturn null;\r\n\t}",
"public boolean authenticate(String id, String password, String type) {\r\n\t\tmethodname = \"authenticate\" ;\r\n\t\tlogger.info(\"ENTRY---> methodname : \"+methodname);\r\n\t\t\r\n\t\tboolean flag = authDao.authenticate(id,password,type) ;\r\n\t\t\r\n\t\tlogger.info(\"EXIT---> methodname : \"+methodname);\r\n\t\treturn flag;\r\n\t}",
"@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }",
"public void authenticate() {\n JSONObject jsonRequest = new JSONObject();\n try {\n jsonRequest.put(\"action\", \"authenticate\");\n jsonRequest.put(\"label\", \"label\");\n JSONObject dataObject = new JSONObject();\n dataObject.put(\"device_token\", CMAppGlobals.TOKEN);\n jsonRequest.put(\"data\", dataObject);\n\n if(CMAppGlobals.DEBUG) Logger.i(TAG, \":: AuthWsManager.authenticate : jsonRequest : \" + jsonRequest);\n\n // send JSON data\n WSManager.getInstance().con(mContext).sendJSONData(jsonRequest);\n\n\n } catch (JSONException e) {\n\n mContext.onWsFailure(e);\n }\n\n }",
"public User login(Credentials creds) throws InvalidCredentialsException, MultipleLoginException, UserInactiveException {\r\n//\t\tLogManager.getLogger().info( \"Current sessions: \" + irpSessionRepository.count() );\r\n//\t\tLogManager.getLogger().info( \"Current Locks: \" + irpLockRepository.count() );\r\n\r\n \tString md5password = passwordManager.hashMC( creds.getPassword() );\r\n\t\tString schema = dhh.getSchema();\r\n\r\n//\t\ttry {\r\n//\t\t\tInteger uc = getDataSource().queryForObject(\"select usercode from \" + schema + \".USERACCOUNT where username = ? and password = ?\", Integer.class, creds.getUsername(), md5password);\r\n//\t\t\tAppSession is = irpSessionRepository.find( uc );\r\n//\r\n//\t\t\tif ( is == null ) {\r\n//\t\t\t\tApplicationParameter ap = apr.findParam(ApplicationParameterType.GENERAL, 1, 6); // EVALUATOR param\r\n//\t\t\t\tUser u = userRepository.find( uc );\r\n//\r\n//\t\t\t\tif ( ap.getParameterValueInt() == 0 ) {\r\n//\t\t\t\t\tif ( u.getUserAccount().hasRole( 7 ) ) {\r\n//\t\t\t\t\t\t// Evaluators should not login!\r\n//\t\t\t\t\t\tLogManager.getLogger().warn(\"Evaluator Cannot login. Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\tthrow new UserInactiveException( creds );\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif ( u.getPosition() > 0 &&\r\n//\t\t\t\t\t\t\t( u.getUserAccount().hasRole( 3 ) || u.getUserAccount().hasRole( 4 ) || u.getUserAccount().hasRole( 5 ) )) {\r\n//\t\t\t\t\t\tLogManager.getLogger().warn(\"Branch User Cannot login. Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\tthrow new UserInactiveException( creds );\r\n//\t\t\t\t\t}\r\n//\t\t\t\t} else {\r\n//\t\t\t\t\tif ( ap.getFailCode() != 1 ) {\r\n//\t\t\t\t\t\tif ( u.getPosition() > 0 &&\r\n//\t\t\t\t\t\t\t\t( u.getUserAccount().hasRole( 3 ) || u.getUserAccount().hasRole( 4 ) || u.getUserAccount().hasRole( 5 ) )) {\r\n//\t\t\t\t\t\t\tLogManager.getLogger().warn(\"Branch User Cannot login. Branches in Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\t\tthrow new UserInactiveException( creds );\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\tirpSessionRepository.create(creds.getFromIp(), uc);\r\n//\t\t\t\tu.getUserAccount().setLastlogin( new Date() );\r\n//\t\t\t\tuserAccountRepository.persist( u.getUserAccount() );\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"AUTHENTICATION_SUCCEEDED\", null, null, null, null);\r\n//\t\t\t\treturn u;\r\n//\t\t\t} else {\r\n//\t\t\t\tthrow new MultipleLoginException();\r\n//\t\t\t}\r\n//\t\t} catch (Exception e) {\r\n//\t\t\tif ( e instanceof UserInactiveException) {\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"USER_INACTIVE\", null, null, null, null);\r\n//\t\t\t\tthrow e;\r\n//\t\t\t}\r\n//\t\t\tif ( e instanceof MultipleLoginException) {\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"ALREADY_LOGGED_IN\", null, null, null, null);\r\n//\t\t\t\tthrow e;\r\n//\t\t\t}\r\n//\t\t\tdhh.logLogin(creds.getUsername(), \"AUTHENTICATION_FAILED\", null, null, null, null);\r\n//\t\t\tthrow new InvalidCredentialsException(creds);\r\n//\t\t}\r\n\t\treturn null;\r\n\t}",
"User login(String email, String password) throws AuthenticationException;",
"@POST\n\t@Path(\"/login\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic LoginTicket login(LoginCredentials loginCredentials){\n\t\tout.println(\"Username: \" + loginCredentials.username + \", Password: \" + loginCredentials.password);\n\t\t\n\t\tDBLoginCredentials dbLoginCredentials = loginDbInteractor.get(loginCredentials.username);\n\t\t\n\t\ttry{\n\t\t\tout.println(\"DB Username: \" + dbLoginCredentials.getUsername() + \", DB Password: \" + dbLoginCredentials.getPassword() + \", DB Salt: \" + dbLoginCredentials.getSalt());\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tboolean match = false;\n\t\t\n\t\tif(dbLoginCredentials != null){\n\t\t\tmatch = passwordHelper.checkIfMatch(loginCredentials.password, dbLoginCredentials.getSalt(), \n\t\t\t\t\tdbLoginCredentials.getPassword());\n\t\t}\n\t\t\n\t\tif(match){\n\t\t\treturn new LoginTicket(\"valid_ticket_data\", 60);\n\t\t} else {\n\t\t\treturn new LoginTicket(\"INVALID\", 0);\n\t\t}\t\n\t}",
"@Override\n\tpublic boolean authenticate(final String name, final String password) {\n\t\treturn StringUtils.isNotBlank(name) && StringUtils.isNotBlank(password) && findByIdNoCache(name) != null;\n\t}",
"private Boolean authorize() {\n\n return Session.getInstance().login(user.getText(), password.getText());\n }",
"public AuthenticationResult authenticateByName(String username, String password) {\n\t\taccessToken = null;\n\t\tAuthenticationRequest authRequest = this.setCredentials();\n\t\tAuthenticationResult authResult = restTemplate.postForObject(embyUrl +\"/\"+ EmbyUrlConstants.AUTH_BY_NAME, authRequest, AuthenticationResult.class);\n\t\t\n\t\t// set access token from result for subsequent calls\n\t\taccessToken = authResult.getAccessToken();\n\t\treturn authResult; \n\t}",
"public Boolean authenticate(String username, String password) {\n try {\n Authentication authentication = authenticationManager.authenticate(\n new UsernamePasswordAuthenticationToken(\n username,\n password\n )\n );\n\n SecurityContextHolder.getContext().setAuthentication(authentication);\n return true;\n } catch (BadCredentialsException e) {\n return false;\n }\n }"
] | [
"0.7575561",
"0.7498229",
"0.7381019",
"0.7239572",
"0.7120658",
"0.70740193",
"0.6872896",
"0.6857232",
"0.68255216",
"0.6775876",
"0.67446715",
"0.6742014",
"0.6730225",
"0.6723617",
"0.6722027",
"0.6707477",
"0.66759163",
"0.66592294",
"0.66322",
"0.6597099",
"0.6554186",
"0.6519203",
"0.6516541",
"0.6514771",
"0.65135676",
"0.6510969",
"0.64906806",
"0.64721584",
"0.6471264",
"0.6469571",
"0.64543766",
"0.6451825",
"0.64419174",
"0.64152545",
"0.6412397",
"0.64031595",
"0.638376",
"0.6363356",
"0.63560766",
"0.6346613",
"0.6318663",
"0.6314372",
"0.63095164",
"0.6290387",
"0.62694776",
"0.6257988",
"0.6251445",
"0.6250942",
"0.6241971",
"0.621772",
"0.61857873",
"0.61719334",
"0.6163572",
"0.6124826",
"0.6106722",
"0.60975116",
"0.6089724",
"0.6088154",
"0.6065817",
"0.6034849",
"0.6029392",
"0.6014805",
"0.60056704",
"0.59822065",
"0.5973752",
"0.597242",
"0.59642655",
"0.59624535",
"0.5954313",
"0.594964",
"0.59393317",
"0.59199077",
"0.5915318",
"0.590386",
"0.58896255",
"0.58772767",
"0.58723235",
"0.5870678",
"0.5867588",
"0.58628917",
"0.5858036",
"0.58519995",
"0.5833698",
"0.5830462",
"0.5829456",
"0.5804106",
"0.58036435",
"0.58021665",
"0.57973856",
"0.57946116",
"0.5792858",
"0.57911724",
"0.5780707",
"0.57790667",
"0.5772467",
"0.57672507",
"0.5753529",
"0.5750508",
"0.57493764",
"0.57471573"
] | 0.8210606 | 0 |
Get markup advice to include in the login screen | public String getLoginAdvice(LoginCredentials credentials); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}",
"public String toLogin() {\r\n\t\treturn \"/login.xhtml\";\r\n\t}",
"public interface LoginDataProviders extends BaseDataProvider {\n\n String ALREADY_HAVE_PASSWORD = \"Already have a password?\";\n String FIRST_TIME_HERE = \"First time here? Need a password?\";\n String ERROR_PASSWORD_FIELD = \"//label[@class='error'][@for='trainee-login-name']\";\n String ERROR_RECRUIT_ID_FIELD = \"//label[@class='error'][@for='trainee-login-id']\";\n String firstTimeHereLink = TRAINEE_FIRS_LOGIN_FORM + FOLLOWING_SIBLING_P + ROLE_SWITCHER_LINK;\n String alreadyHavePasswordLink = TRAINEE_LOGIN_FORM + FOLLOWING_SIBLING_P + ROLE_SWITCHER_LINK;\n String RECRUIT_ID_FIELD = TRAINEE_LOGIN_FORM + FOLLOWING_SIBLING_DIV + TRAINEE_RECRUIT_ID_FIELD;\n String TRAINEE_PASSWORD_FIELD = TRAINEE_LOGIN_FORM + FOLLOWING_SIBLING_DIV + TRAINEE_LOGIN_NAME_FIELD;\n String TRAINEE_LOGIN_BUTTON = TRAINEE_LOGIN_FORM + FOLLOWING_SIBLING_DIV + LOGIN_BUTTON;\n\n}",
"protected String getLoginPage() {\r\n return loginPage;\r\n }",
"@Override\r\n\tpublic void login_interviewer() {\n\t\trender(\"interviewer/login.jsp\");\r\n\t}",
"public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}",
"public abstract boolean showLogin();",
"@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}",
"public loginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public interface LoginView extends BaseMvpView {\n /**\n * 显示登陆的结果\n * @param result\n */\n void showResult(String result);\n\n /**\n * 获取界面上用户名的值\n * @return\n */\n String getUsername();\n /**\n * 获取界面上密码的值\n */\n String getPassword();\n}",
"@Override\n public void showAuthScreen() {\n }",
"public interface LoginView {\n void showApp(String name);\n void displayLoginError(String message);\n void displayRecoverPassSuccess();\n void displayRecoverPassFailure();\n\n}",
"public interface LoginView {\n\n void session(Context context);\n\n void loadHalaman(Intent intent);\n\n void notifMe(String message);\n\n}",
"protected String loginIdentifyString() {\r\n return \"hao\";\r\n }",
"@Then(\"I want to login successfully\")\n\tpublic void output() {\n\t\tact.gethomepage().verifyLoggedUser();\n\n\t\t//String username = linkWelcome.getText();\n\t\t//String login = \"Welcome Admin\";\n\t\t//if (username.equals(login)) {\n\t\t\t//System.out.println(\"User name is correct\");\n\t\t//} else {\n\t\t\t//System.out.println(\"Username is not correct\");\n\n\t\t}",
"public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}",
"@Override\r\n\tpublic void ShowLogin(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e(\"ShowLogin\");\r\n\t\tsuper.ShowLogin(_in_context, _in_data);\r\n\t\tthis.youkuLogin();\r\n\t}",
"public boolean hasLoginAdvice();",
"public interface LoginView {\n String getLoginUsername();\n String getLoginPassword();\n void shakeUsername();\n void shakePassword();\n void loginSuccess(String message);\n void loginFailed(String message);\n}",
"@And(\"user clicks on Login\")\n public void userClicksOnLogin() {\n homePage.clickOnLogin();\n\n }",
"public String retourPageAuthentification() {\r\n\t\tdefaultVue.setPassword(null);\r\n\t\t// Retour à la page d'authentification\r\n\t\treturn \"LoginPassword\";\r\n\t}",
"@RequestMapping(method= RequestMethod.GET, value=\"/staff/login\")\n protected static String getLoginTemplate() {\n return \"staff-login\";\n }",
"public LoginPage() {\r\n\t\t\t\r\n\t\t\t//Initialize webElements.\r\n\t\t\tPageFactory.initElements(driver, this);\r\n\t\t}",
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t}",
"protected void login() {\n\t\t\r\n\t}",
"public interface ILoginView {\n void clear();// 清空文本框的方法\n int checkInfo(String username,String pass);// 检查用户输入的合法性\n void showProgress(int visibility);// 是否显示登录进度\n void setEnable(boolean flag);\n}",
"private void loadLogin(){\n }",
"private Component createLogin() {\n CustomLayout custom = new CustomLayout(\"../../sampler/layouts/examplecustomlayout\");\n\n // Create components and bind them to the location tags\n // in the custom layout.\n username = new TextField();\n custom.addComponent(username, \"username\");\n\n password = new PasswordField();\n custom.addComponent(password, \"password\");\n\n Button ok = new Button(\"Login\");\n custom.addComponent(ok, \"okbutton\");\n\n // Add login listener\n ok.addListener(this);\n\n return custom;\n\n }",
"public interface ILoginView extends BaseView {\n String getUserName();\n String getPassWord();\n void onLoginResult(User user);\n void firstLogin(boolean isFirst);\n void savePwd(boolean isSaved);\n void autoLogin(boolean isAuto);\n\n boolean autoLoginChecked();\n boolean remeberPwdChecked();\n\n}",
"private void setLoginInformation()\n {\n // Set up the login form.\n mIPView_ = (EditText) findViewById( R.id.IP );\n mPortView_ = (EditText) findViewById( R.id.password );\n\n // Set the intial display\n if ( rememberLoginIsSet_ )\n {\n if ( properties_.containsKey( getString( R.string.saved_IP ) ) )\n {\n mIP_ =\n properties_\n .getProperty( getString( R.string.saved_IP ) );\n }\n\n if ( properties_.containsKey( getString( R.string.saved_Port ) ) )\n {\n mPort_ =\n properties_\n .getProperty( getString( R.string.saved_Port ) );\n }\n }\n\n // Set the values to whatever the load settings or default are\n mIPView_.setText( mIP_ );\n mPortView_.setText( mPort_ );\n\n mPortView_\n .setOnEditorActionListener( new TextView.OnEditorActionListener()\n {\n @Override\n public boolean onEditorAction( TextView textView, int id,\n KeyEvent keyEvent )\n {\n if ( id == R.id.login || id == EditorInfo.IME_NULL )\n {\n attemptLogin();\n return true;\n }\n return false;\n }\n } );\n\n mLoginFormView = findViewById( R.id.login_form );\n mLoginStatusView = findViewById( R.id.login_status );\n mLoginStatusMessageView =\n (TextView) findViewById( R.id.login_status_message );\n }",
"public static void login() {\n\t\trender();\n\t}",
"private String navigateAfterLoginAttemp()\r\n {\r\n Identity identity = this.getIdentity();\r\n\r\n if (identity == null) {\r\n return \"/\";\r\n }\r\n if (identity instanceof Pilot) {\r\n return \"/pilot/index.xhtml\";\r\n }\r\n if (identity instanceof General) {\r\n return \"/general/index.xhtml\";\r\n }\r\n if (identity instanceof SystemAdministrator) {\r\n return \"/admin/index.xhtml\";\r\n }\r\n throw new IllegalStateException(\"Identita \" + identity\r\n + \" nie je ziadneho z typov, pre ktory dokazem 'navigovat'!\");\r\n }",
"public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"@Test\n\tpublic void checkLoginPage() {\n\n\t\t// Locate the logo on the page\n\t\tWebElement logo = driver.findElement(By.xpath(\"(//a/img)[1]\"));\n\t\tString logoSrc = logo.getAttribute(\"src\");\n\n\t\t// Locate the heading of the page\n\t\tString heading = driver.findElement(By.className(\"auth-header\"))\n\t\t\t\t.getText();\n\n\t\t// Locate the Username related fields\n\t\tString usernameLabel = driver.findElement(By.xpath(\"(//label)[1]\"))\n\t\t\t\t.getText();\n\t\tWebElement usernameIcon = driver\n\t\t\t\t.findElement(By.className(\"os-icon-user-male-circle\"));\n\t\tWebElement usernameTextField = driver.findElement(By.id(\"username\"));\n\t\tString placeholderText = usernameTextField.getAttribute(\"placeholder\");\n\n\t\t// Locate the Password related fields\n\t\tString passwordLabel = driver.findElement(By.xpath(\"(//label)[2]\"))\n\t\t\t\t.getText();\n\t\tWebElement passwordIcon = driver\n\t\t\t\t.findElement(By.className(\"os-icon-fingerprint\"));\n\t\tWebElement passwordTextField = driver.findElement(By.id(\"password\"));\n\t\tString placeholderPassword = passwordTextField\n\t\t\t\t.getAttribute(\"placeholder\");\n\n\t\t// Locate the Sign in button\n\t\tWebElement signInButton = driver.findElement(By.id(\"log-in\"));\n\t\tString signInButtonText = signInButton.getText();\n\n\t\t// Locate the Remember me checkbox and label\n\t\tWebElement rememberMeCheckbox = driver\n\t\t\t\t.findElement(By.className(\"form-check-input\"));\n\t\tString rememberMeText = driver\n\t\t\t\t.findElement(By.className(\"form-check-label\")).getText();\n\n\t\t// Locate the social media icons\n\t\tWebElement twitterIcon = driver.findElement(By.xpath(\"(//a/img)[2]\"));\n\t\tString twitterSrc = twitterIcon.getAttribute(\"src\");\n\n\t\tWebElement facebookIcon = driver.findElement(By.xpath(\"(//a/img)[3]\"));\n\t\tString facebookSrc = facebookIcon.getAttribute(\"src\");\n\n\t\tWebElement linkedInIcon = driver.findElement(By.xpath(\"(//a/img)[4]\"));\n\t\tString linkedInSrc = linkedInIcon.getAttribute(\"src\");\n\n\t\t// Assert that the logo is displayed\n\t\tAssert.assertTrue(logo.isDisplayed());\n\t\tAssert.assertEquals(logoSrc,\n\t\t\t\t\"https://demo.applitools.com/img/logo-big.png\");\n\n\t\t// Add assertions for all elements displayed on the Login for,\n\t\tAssert.assertEquals(heading, \"Login Form\");\n\t\tAssert.assertEquals(usernameLabel, \"Username\");\n\t\tAssert.assertTrue(usernameIcon.isDisplayed());\n\t\tAssert.assertTrue(usernameTextField.isDisplayed());\n\t\tAssert.assertEquals(placeholderText, \"Enter your username\");\n\n\t\tAssert.assertEquals(passwordLabel, \"Password\");\n\t\tAssert.assertTrue(passwordIcon.isDisplayed());\n\t\tAssert.assertTrue(passwordTextField.isDisplayed());\n\t\tAssert.assertEquals(placeholderPassword, \"Enter your password\");\n\n\t\tAssert.assertTrue(signInButton.isDisplayed());\n\t\tAssert.assertEquals(signInButtonText, \"Log In\");\n\n\t\tAssert.assertTrue(rememberMeCheckbox.isDisplayed());\n\t\tAssert.assertFalse(rememberMeCheckbox.isSelected());\n\t\tAssert.assertEquals(rememberMeText, \"Remember Me\");\n\n\t\tAssert.assertTrue(twitterIcon.isDisplayed());\n\t\tAssert.assertEquals(twitterSrc,\n\t\t\t\t\"https://demo.applitools.com/img/social-icons/twitter.png\");\n\n\t\tAssert.assertTrue(facebookIcon.isDisplayed());\n\t\tAssert.assertEquals(facebookSrc,\n\t\t\t\t\"https://demo.applitools.com/img/social-icons/facebook.png\");\n\n\t\tAssert.assertTrue(linkedInIcon.isDisplayed());\n\t\tAssert.assertEquals(linkedInSrc,\n\t\t\t\t\"https://demo.applitools.com/img/social-icons/linkedin.png\");\n\t}",
"@Override\n\tpublic void goToLogin() {\n\t\t\n\t}",
"@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\n\t}",
"private String getLoginPage() {\n\t\tif (loginPage == null) {\n\t\t\tloginPage = Application.getLoginPage(context);\n\t\t}\n\n\t\treturn loginPage;\n\t}",
"@Given(\"^user is on the login page$\")\n public void userIsOnTheLoginPage() throws Throwable {\n }",
"@Then(\"^Browser display Sign In page$\")\n public void browser_display_Sign_In_page() throws Throwable {\n sign.browserDisplaySignIn();\n\n\n }",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }",
"public interface ILoginView {\n void hidePro();\n void showPro();\n String getUserName();\n String getPsd();\n void cancel();\n void onSoccess(UserBean u);\n void onErroe(Exception e);\n}",
"public interface LoginPresenter {\n\n\n /**\n *\n * @param username\n * @param password\n */\n void login(String username, String password);\n}",
"public interface ILoginView {\n /**\n * goto Net Activity\n *\n * @param context\n */\n void gotoNetActivity(Context context);\n\n /**\n * goto Main activity\n *\n * @param context\n */\n void gotoMainActivity(Context context);\n\n /**\n * goto Regist activity\n *\n * @param context\n */\n void gotRegistActivity(Context context);\n\n /**\n * login failed,show msg\n */\n void showLoginError(Context context);\n\n /**\n * show progeress\n *\n * @param b\n */\n void showProgress(boolean b);\n\n\n}",
"@Override\r\n\tpublic void login() {\n\r\n\t}",
"public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }",
"public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}",
"@Override\n public void showSignInScreen() {\n Toast.makeText(this, \"Taking user to the sign in screen\", Toast.LENGTH_SHORT).show();\n }",
"private String extractSecurityAnswer() {\n return SwingUtil.extract(securityAnswerJTextField, Boolean.TRUE);\n }",
"@Test(description = \"Verify Login page elements\")\n @Issue(\"EZ-8885\")\n void verifyTextElementsOnLoginPage() {\n LoginPage loginPage = new LoginPage(BaseUrl.loginPageBaseUrl());\n loginPage.open().getPageLogoLink();\n loginPage.getSectionTitle();\n loginPage.getTitleRelatedToFields();\n\n\n SoftAssertions softly = new SoftAssertions();\n softly.assertThat(loginPage.getPageLogoLink()).isEqualTo(\"https://hotline.ua/public/i/logo-v2.svg\");\n softly.assertThat(loginPage.getSectionTitle()).isEqualTo(\"Вход\");\n softly.assertThat(loginPage.getTitleRelatedToFields()).isEqualTo(\"Заполните поля\");\n softly.assertThat(getBrowserConsoleErrors()).isFalse();\n softly.assertAll();\n }",
"public void enterLogin (String login) {\n actionsWithOurElements.enterTextInToElement(inputLogin, login);\n }",
"void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }",
"public interface LoginView {\n\n void showLoading();\n void hideLoading();\n\n void showSuccessMsg(User user);\n\n void showErrorMsg(String msg);\n\n String getName();\n String getPassword();\n\n\n\n void clearName();\n void clearPassword();\n}",
"public LoginPOJO() {\n\n\t\tPageFactory.initElements(driver, this);\t\n\t}",
"@Override\r\n\tpublic void ShowLogin(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e( \"ShowLogin\");\r\n\t\tsuper.ShowLogin(_in_context, _in_data);\r\n\t\tif(HMPay.isLogined()){\r\n\t\t\tTypeSDKNotify_haima notify = new TypeSDKNotify_haima();\r\n \t\tnotify.sendToken(token, uid);\r\n\t\t} else {\r\n\t\t\tthis.haimaLogin();\r\n\t\t}\r\n\t\t\r\n\t}",
"private MarkupContainer createLoginFragment() {\r\n return new Fragment(CONTENT_VIEW, LOGIN_FRAGMENT, this)\r\n .add(new LoginPanel(PART_LOGIN_VIEW, LoginPanel.NextPage.CART))\r\n .add(new RegisterPanel(PART_REGISTER_VIEW, RegisterPanel.NextPage.CART))\r\n .add(new GuestPanel(PART_GUEST_VIEW));\r\n }",
"@Override\r\n\tpublic void login_student() {\n\t\trender(\"student/login.jsp\");\r\n\t}",
"@Override\n public void showLoginView() {\n calledMethods.add(\"showLoginView\");\n }",
"@RequestMapping(\"/login\")\n\tpublic String login() {\n\t\tconfig.output();\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tif (auth instanceof AnonymousAuthenticationToken) {\n\t\t\treturn \"login\";\n\t\t} else {\n\t\t\treturn \"home\"; \n\t\t}\n\t}",
"Login.Req getLoginReq();",
"private void setCredentialView() {\n //get user information\n String name = currentUser.getDisplayName();\n String email = currentUser.getEmail();\n Uri photoUrl = currentUser.getPhotoUrl();\n\n //set text in header in navigation view\n userNameHandler.setText(name);\n emailHandler.setText(email);\n\n //Picasso turns photoUrl to bitmap\n //then changes the pic in header in navigation view\n Picasso.get().load(photoUrl).into(imgHandler);\n }",
"public String toLogin() {\r\n\t\treturn \"/login.jsf\";\r\n\t}",
"private void updateUiForLoginState() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n Toast.makeText(this, \"Logged\", Toast.LENGTH_SHORT).show();\n Note note = new Note();\n note.setTitle(\"My test note number two\");\n String content = \n NoteUtils.NOTE_PREFIX +\n \"<p>This note was uploaded from Android. It contains an image.</p>\" +\n NoteUtils.NOTE_SUFFIX;\n note.setContent(content);\n \n NoteAttributes attr = new NoteAttributes();\n //this makes it read only\n attr.setContentClass(\"halusky\");\n note.setAttributes(attr);\n \n Notebook notebook = new Notebook();\n notebook.setName(\"Halusky\" + System.currentTimeMillis());\n \n // Create the note on the server. The returned Note object\n // will contain server-generated attributes such as the note's\n // unique ID (GUID), the Resource's GUID, and the creation and update time.\n try {\n Notebook createNotebook = ConnectionUtils.getSessionInstance().createNoteStore().createNotebook(ConnectionUtils.getSessionInstance().getAuthToken(), notebook);\n note.setNotebookGuid(createNotebook.getGuid());\n Note createdNote = ConnectionUtils.getSessionInstance().createNoteStore().createNote(ConnectionUtils.getSessionInstance().getAuthToken(), note);\n } catch (TTransportException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (EDAMUserException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (EDAMSystemException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (EDAMNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (TException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n } else {\n Toast.makeText(this, \"=( not logged\", Toast.LENGTH_SHORT).show();\n }\n }",
"public String loginAction() throws Exception {\n\t\t\t\t\n\t return \"builder\";\n\t }",
"public interface ILoginView{\n\n String getUserName();\n String getUserPwd();\n void loginSuccessInfo(UserBean userBean);\n void loginFailInfo();\n}",
"public Optional<Pair<String,String>> showLogin( final Pair<String,String> initialUserInfo, final Callback<Pair<String,String>, Void> authenticator ) {\n \t\n \tfinal CustomTextField txUserName = (CustomTextField) TextFields.createClearableTextField();\n \ttxUserName.setLeft(new ImageView( DialogResources.getImage(\"login.user.icon\")) ); //$NON-NLS-1$\n \t\n \tfinal CustomPasswordField txPassword = (CustomPasswordField) TextFields.createClearablePasswordField();\n \ttxPassword.setLeft(new ImageView( DialogResources.getImage(\"login.password.icon\"))); //$NON-NLS-1$\n\t\t\n\t\tfinal Label lbMessage= new Label(\"\"); //$NON-NLS-1$\n\t\tlbMessage.getStyleClass().addAll(\"message-banner\"); //$NON-NLS-1$\n\t\tlbMessage.setVisible(false);\n\t\tlbMessage.setManaged(false);\n\t\t\n\t\tfinal VBox content = new VBox(10);\n\t\tcontent.getChildren().add(new Label(\"User name\"));\n\t\tcontent.getChildren().add(txUserName);\n\t\tcontent.getChildren().add(txPassword);\n\t\t\n\t\tfinal Action actionLogin = new DialogAction(\"Connect\", null, false, false, true) { //$NON-NLS-1$\n\t\t\t{\n\t\t\t\tButtonBar.setType(this, ButtonType.OK_DONE);\n\t\t\t\tsetEventHandler(this::handleAction);\n\t\t\t}\n\t\t\t\n\t\t\tprotected void handleAction(ActionEvent ae) {\n\t\t\t\tDialog dlg = (Dialog) ae.getSource();\n\t\t\t\ttry {\n\t\t\t\t\tif ( authenticator != null ) {\n\t\t\t\t\t\tauthenticator.call(new Pair<>(txUserName.getText(), txPassword.getText()));\n\t\t\t\t\t}\n\t\t\t\t\tlbMessage.setVisible(false);\n\t\t\t\t\tlbMessage.setManaged(false);\n\t\t\t\t\tdlg.hide();\n\t\t\t\t\tdlg.setResult(this);\n\t\t\t\t} catch( Throwable ex ) {\n\t\t\t\t\tlbMessage.setVisible(true);\n\t\t\t\t\tlbMessage.setManaged(true);\n\t\t\t\t\tlbMessage.setText(ex.getMessage());\n\t\t\t\t\tdlg.sizeToScene();\n\t\t\t\t\tdlg.shake();\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override public String toString() {\n\t\t\t\treturn \"LOGIN\"; //$NON-NLS-1$\n\t\t\t};\n\t\t};\n\t\t\n\t\tfinal Dialog dlg = buildDialog(Type.LOGIN);\n dlg.setContent(content);\n \n dlg.setResizable(false);\n\t\tdlg.setIconifiable(false);\n\t\tif ( dlg.getGraphic() == null ) { \n\t\t\tdlg.setGraphic( new ImageView( DialogResources.getImage(\"login.icon\"))); //$NON-NLS-1$\n\t\t}\n\t\tdlg.getActions().setAll(actionLogin, ACTION_CANCEL);\n\t\tfinal String userNameCation = getString(\"login.dlg.user.caption\"); //$NON-NLS-1$\n\t\tfinal String passwordCaption = getString(\"login.dlg.pswd.caption\"); //$NON-NLS-1$\n\t\ttxUserName.setPromptText(userNameCation);\n\t\ttxUserName.setText( initialUserInfo.getKey());\n\t\ttxPassword.setPromptText(passwordCaption);\n\t\ttxPassword.setText(new String(initialUserInfo.getValue()));\n\n\t\tfinal ValidationSupport validationSupport = new ValidationSupport();\n\t\tPlatform.runLater(new Runnable()\n\t\t{\n\t\t@Override\n\t\tpublic void run()\n\t\t{\n\t\t\tString requiredFormat = \"'%s' is required\"; //$NON-NLS-1$\n\t\t\tvalidationSupport.registerValidator(txUserName, Validator.createEmptyValidator( String.format( requiredFormat, userNameCation )));\n\t\t\tactionLogin.disabledProperty().bind(validationSupport.invalidProperty());\n\t\t\ttxUserName.requestFocus();\t\t\t\n\t\t}});\n\n\t\tdlg.sizeToScene();\n \treturn Optional.ofNullable( \n \t\t\tdlg.show() == actionLogin? \n \t\t\t\t\tnew Pair<>(txUserName.getText(), txPassword.getText()): \n \t\t\t\t\tnull);\n }",
"public static void main(String[] args) {\n WebDriver driver=new FirefoxDriver();\n driver.manage().window().maximize();\n String tagName=\"\";\n \n driver.get(\"http://soccer.inheritxserver.net/site/login-page\");\n tagName=driver.findElement(By.id(\"loginform-username\")).getTagName();\n System.out.println(tagName);\n \n driver.close();\n System.exit(0);\n \n\t}",
"@Then(\"^I can login using my details$\")\n\tpublic void i_can_login_using_my_details() {\n\t \n\t}",
"public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }",
"public MainView() {\r\n LoginOverlay login = new LoginOverlay();\r\n login.setOpened(true);\r\n LoginI18n i18n = LoginI18n.createDefault();\r\n i18n.setHeader(new LoginI18n.Header());\r\n i18n.getHeader().setTitle(\"Webvision\");\r\n i18n.getHeader().setDescription(\"Please login, if you don't have an account you will be redirected to finish registration.\");\r\n i18n.getForm().setUsername(\"Email\");\r\n i18n.getForm().setPassword(\"Password\");\r\n login.setI18n(i18n);\r\n login.addLoginListener(event -> {\r\n String email = event.getUsername();\r\n User user = userService.findByEmail(email);\r\n if (user == null) {\r\n login.close();\r\n UI.getCurrent().navigate(RegistrationView.ROUTE);\r\n } else {\r\n String password = event.getPassword();\r\n boolean isAuthenticated = password.equals(user.getPassword());\r\n if (isAuthenticated) {\r\n CurrentUser.setCurrentUser(user);\r\n login.close();\r\n UI.getCurrent().navigate(HomeView.ROUTE);\r\n }\r\n login.setError(true);\r\n }\r\n });\r\n add(login);\r\n }",
"public Loginpage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public void LoginButton() {\n\t\t\r\n\t}",
"public interface LoginView {\n\n void showProgress();\n void hideProgress();\n\n void setErrorUser();\n void setErrorPassword();\n\n void navidateToHome(String preferencia, String sesion );\n\n void showErrorService(String error);\n}",
"public String getLogin() {\n\t\treturn login.getText();\n\t}",
"public void LogIn() {\n\t\t\r\n\t}",
"private void showLoginScreen()\n {\n logIngEditText.setVisibility(View.VISIBLE);\n passwordEditText.setVisibility(View.VISIBLE);\n loginButton.setVisibility(View.VISIBLE);\n textViewLabel.setVisibility(View.VISIBLE);\n }",
"public interface LoginView {\n void enableInputs();\n void disableInputs();\n void showProgressBar();\n void hideProgressBar();\n\n //registro\n void handleSignUp();\n void handleSignIn();\n\n //sesion exitosa\n void navigateToMainScreen();\n void loginError( String error);\n\n //registro\n void newUserSuccess();\n void newUserError(String error);\n}",
"@Test\n\tpublic void login(){\n\t\tloginPage.login(data.readData(\"email\"), data.readData(\"password\"));\n\t\tAssert.assertEquals(isPresent(locateElement(By.id(home.homeLogo))),true,\"user not got logged in successfully\");\n\t}",
"private JPanel adminLoginPanels() {\n JPanel admin = new JPanel();\n JPanel usernamePanel = new JPanel();\n usernamePanel.add(new JLabel(\"Username:\"));\n usernamePanel.add(Box.createHorizontalStrut(15));\n usernamePanel.add(username);\n usernamePanel.add(Box.createHorizontalStrut(15));\n JPanel pwPanel = new JPanel();\n pwPanel.add(new JLabel(\"Password:\"));\n pwPanel.add(Box.createHorizontalStrut(15));\n pwPanel.add(password);\n admin.add(usernamePanel);\n admin.add(pwPanel);\n return admin;\n }",
"public interface AbsLoginPresenter {\n void doLogin(String pUserAcc , String pUserPwd); //pUserAcc 用户账号 ,pUserPwd 用户密码\n void doForgetPwd(); //忘记密码\n\n}",
"@Test\r\n public void DisplayCurrentUserAfterLogIn() {\n String username = ParseUser.getCurrentUser().getUsername();\r\n onView(withText(\"Welcome, \" + username)).check(ViewAssertions.matches(isDisplayed()));\r\n }",
"public String getLogin(){\r\n return login;\r\n }",
"private void loggedInUser() {\n\t\t\n\t}",
"public interface LoginViewInterface {\n}",
"@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }",
"public String validateLoginPageTitile(){\n return driver.getTitle();//qani vor gettitley stringa get berum menq\n }",
"@Override\n public void show()\n {\n boolean loginOK; // true if good user info was entered\n // multithreaded code does not execute properly in IDEs; true if IDE run detected\n boolean runningFromIDE = false;\n\n do // continue login process while user chooses to stay in login menu\n {\n loginOK = false;\n while(!loginOK) // do this while no good login info acquired, or user choose to bail.\n {\n System.out.println(splashStrings.LOGIN); // SPLASH WELCOME\n\n String userName = GET.getString(\"Indtast venligst bruger navn:\\n\\t|> \");\n\n char[] password;\n\n if(!runningFromIDE) // getPassword does not work in IDE\n {\n password = PasswordField.getPassword(System.in, \"Indtast venligst password:\\n\\t|> \");\n\n if(password == null)\n {\n // getPassword returns a null array reference, if no chars were captured, thus this.\n runningFromIDE = true;\n\n System.out.println(\"MELDING:\\nDet ser ud til at du kører programmet fra en IDE:\\t\" +\n \"Password masking slås fra.\" +\n \"\\nKør shorttest.jar, for at opnå den fulde bruger-oplevelse.\\n\");\n\n continue;\n }\n\n loginOK = checkCredentials(userName, new String(password));\n\n } else // option is chosen if IDE-execution detected\n {\n String passw = GET.getString(\"Indtast venligst password:\\n\\t|> \");\n loginOK = checkCredentials(userName, passw);\n }\n\n if(!loginOK) // if user input were no good, and ONLY if info were no good\n {\n System.out.println(\"De indtastede informationer fandtes ikke i systemet.\");\n if(GET.getConfirmation(\"Vil du prøve igen?\\n\\tja / nej\\n\\t|> \", \"nej\", \"ja\"))\n {\n System.out.println(\"Du valgte ikke at prøve igen, login afsluttes.\");\n break;\n }\n }\n }\n\n if(loginOK)\n {\n System.out.println(\"Login var en success. Fortsætter til første menu.\\n\");\n menuLoggedInto.show();\n }\n\n // when user returns from main menu, they get to choose if they want to log in again\n } while(GET.getConfirmation(\"Skal en anden logge ind?\\n\\t ja / nej\\n\\t|> \", \"ja\", \"nej\"));\n }",
"private LogIn() {}",
"public LoginPage openLoginPage() {\n\t\twebDriver.get(authorUrl);\n\t\tbobcatWait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOfElementLocated(By.id(\"login-box\")));\n\t\treturn this;\n\t}",
"public interface ILoginPresenter {\n public boolean login(String url, User user);\n public void setPhoto(String url, ImageView mImageViewPhoto);\n public void controlImagviewLoadOrNot(int scrollSate);\n public void setAdapter(ListView mlistView);\n}",
"public ReceptionistSingIn() {\n initComponents();\n setVisible(true);\n setResizable(false);\n setTitle(\"Receptionist Sign In\");\n setLocationRelativeTo(null);\n }",
"public String applicationLogin(){\n\t\treturn \"/dblogin.jsp\";\n\t}",
"public String getLogin () {\n return login;\n }",
"@Override\r\n\tpublic void login_admin() {\n\t\trender(\"admin/login.jsp\");\r\n\t}",
"private void login(){\n displayPane(loginP);\n }",
"@AutoGenerated\r\n\tprivate Panel buildPnlLogin() {\n\t\tpnlLogin = new Panel();\r\n\t\tpnlLogin.setImmediate(false);\r\n\t\tpnlLogin.setWidth(\"-1px\");\r\n\t\tpnlLogin.setHeight(\"500px\");\r\n\t\t\r\n\t\t// layoutLogin\r\n\t\tlayoutLogin = buildLayoutLogin();\r\n\t\tpnlLogin.setContent(layoutLogin);\r\n\t\t\r\n\t\treturn pnlLogin;\r\n\t}",
"public interface LoginProvider {\n\n /**\n * Log in the user given the username and password, and returns a login context.\n *\n * @param username the username\n * @param password the password\n * @return the login context\n * @throws LoginException if the user cannot be logged in\n */\n LoginContext login(String username, String password) throws LoginException;\n\n}",
"public LoginPage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t}"
] | [
"0.61686397",
"0.6139349",
"0.60108286",
"0.588537",
"0.58247113",
"0.5690155",
"0.5686569",
"0.5657941",
"0.563745",
"0.5616823",
"0.5565706",
"0.55616784",
"0.55531603",
"0.55499756",
"0.5538451",
"0.5529941",
"0.54889077",
"0.5478562",
"0.5453337",
"0.5437033",
"0.5434285",
"0.5397781",
"0.5394766",
"0.5389523",
"0.5386598",
"0.5375409",
"0.5370594",
"0.537037",
"0.5363151",
"0.53561366",
"0.53549325",
"0.53433055",
"0.5339309",
"0.53325284",
"0.53325284",
"0.5332183",
"0.5321395",
"0.5318254",
"0.53159386",
"0.5295806",
"0.5294824",
"0.5290784",
"0.528927",
"0.5288563",
"0.5270896",
"0.52670914",
"0.5257318",
"0.5257292",
"0.5255728",
"0.5227371",
"0.52249134",
"0.5215239",
"0.5214179",
"0.521008",
"0.5208625",
"0.52074105",
"0.5204486",
"0.5192346",
"0.5188975",
"0.51879674",
"0.5187159",
"0.5184307",
"0.5176745",
"0.51712745",
"0.5163048",
"0.51547414",
"0.5147161",
"0.5146678",
"0.51439494",
"0.51392573",
"0.51388776",
"0.5133274",
"0.5132002",
"0.5130252",
"0.5129139",
"0.51281923",
"0.51255566",
"0.51233166",
"0.51015043",
"0.50982106",
"0.5096497",
"0.50948745",
"0.5092364",
"0.5068768",
"0.50631183",
"0.5061687",
"0.5060571",
"0.50573444",
"0.5054137",
"0.50535625",
"0.5053386",
"0.5049897",
"0.50497156",
"0.5048425",
"0.50455254",
"0.5041409",
"0.50373405",
"0.5037312",
"0.50336426",
"0.501925"
] | 0.5776795 | 5 |
Get a render engine possibly based on the request | LoginRenderEngine getRenderEngine(String context, HttpServletRequest request); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected ITemplateEngine getTemplateEngine( HttpServletRequest request )\n {\n String templateEngineId = getTemplateEngineId( request );\n if ( StringUtils.isNotEmpty( templateEngineId ) )\n {\n return TemplateEngineInitializerRegistry.getRegistry().getTemplateEngine( templateEngineId );\n }\n return TemplateEngineRegistry.getRegistry().getDefaultTemplateEngine();\n }",
"public TemplateEngine getEngine( String name );",
"void addRenderEngine(String context, LoginRenderEngine vengine);",
"public Render getRender(String view) {\n\t\treturn mainRenderFactory.getRender(view);\n\t}",
"public String getEngine() {\n return this.engine;\n }",
"protected ITemplateEngine getTemplateEngine( String reportId, HttpServletRequest request )\n {\n return getTemplateEngine( request );\n }",
"@Override\n public RenderKit getRenderKit(String renderKitId) {\n return cdiManager.getInstance(RenderKit.class, new ServeRenderKitIdLiteral(renderKitId));\n }",
"String getRendererType();",
"public int getRenderType()\r\n {\r\n return mod_FCBetterThanWolves.iCustomPlatformRenderID;\r\n }",
"protected String getTemplateEngineId( HttpServletRequest request )\n {\n return (String) request.getParameter( TEMPLATE_ENGINE_ID_HTTP_PARAM );\n }",
"public interface IMainRendererFactory {\n\t\n\t/**\n\t * Return the render.\n\t * @param view the view for this render.\n\t */\n\tRenderer getRenderer(String view);\n\t\n\t/**\n\t * The extension of the view.\n\t * <p>\n\t * It must start with dot char \".\"\n\t * Example: \".html\" or \".ftl\"\n\t * </p>\n\t */\n\tString getViewExtension();\n}",
"java.lang.String getRenderer();",
"private String getMode(Resource renderletDef) {\n\t\tIterator<Triple> renderletModeIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingMode, null);\n\t\tif (renderletModeIter.hasNext()) {\n\t\t\tTypedLiteral renderletMode = (TypedLiteral) renderletModeIter.next().getObject();\n\t\t\treturn LiteralFactory.getInstance().createObject(String.class,\n\t\t\t\t\trenderletMode);\n\t\t}\n\t\treturn null;\n\t}",
"public RendererBean findRenderer(\r\n String componentFamily,\r\n String rendererType)\r\n {\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n return _renderers.get(compositeKey);\r\n }",
"public final String getScriptEngine() {\n return properties.get(SCRIPT_ENGINE_PROPERTY);\n }",
"@Override\n public abstract String getRendererType();",
"private TracingEngine getEngine() {\n try {\n return engine.get(\"\", reloadEngine());\n } catch (final ExecutionException e) {\n return new NoopTracingEngine();\n }\n }",
"RecommendationRenderType getRenderType();",
"public static Engine getEngine(){\n Engine engine = null;\n try {\n engine = mapper.readValue(new File(Constants.ENGINE_FILE_PATH), Engine.class);\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n return engine;\n }",
"RenderTool getRenderTool();",
"@SideOnly(Side.CLIENT)\n IBlockRenderingHandler getRenderer();",
"void removeRenderEngine(String context, LoginRenderEngine vengine);",
"public Engine getEngine() {\n return engine;\n }",
"void updateRenderEngine() {\n if (renderEngine == null)\n renderEngine = this.game.p;\n }",
"public Renderer getRenderer()\n\t{\n\t\treturn getObject().getRenderer();\n\t}",
"public Collection<TemplateEngine> getEngines();",
"public static IRenderHandler getRendererFor(String option, IRenderHandler subRenderer) {\n\t\tfor(ISkyRenderType type : INSTANCE.rendererTypes)\n\t\t\tif(type.getName().equals(option))\n\t\t\t\treturn type.createSkyRenderer(subRenderer);\n\t\treturn null;\n\t}",
"private UriRef getRenderingSpecification(Resource renderletDef) {\n\t\tIterator<Triple> renderSpecIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingSpecification, null);\n\t\tif (renderSpecIter.hasNext()) {\n\t\t\treturn (UriRef) renderSpecIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"public static TraceViewRenderer findRenderer(final String klass) {\n return null;\n }",
"@SuppressWarnings(\"unchecked\")\r\n protected OwPreviewRenderer getPreviewRenderer(List<String> mimeTypes) throws OwException\r\n {\r\n OwPreviewRenderer prevRenderer = null;\r\n for (String mime : mimeTypes)\r\n {\r\n prevRenderer = this.cachedRenderer.get(mime);\r\n }\r\n if (prevRenderer == null)\r\n {\r\n OwXMLUtil rendererConfig = findMatchingRendererConfig(mimeTypes);\r\n Map<String, String> parameters = new HashMap<String, String>();\r\n if (rendererConfig != null)\r\n {\r\n prevRenderer = createPreviewRenderer(rendererConfig.getSafeStringAttributeValue(AT_CLASS, null));\r\n List<OwXMLUtil> parameterUtils = rendererConfig.getSafeUtilList(EL_CONFIGURATION, EL_PARAMERTER);\r\n for (OwXMLUtil parameter : parameterUtils)\r\n {\r\n String name = parameter.getSafeStringAttributeValue(AT_NAME, null);\r\n String value = parameter.getSafeStringAttributeValue(AT_VALUE, null);\r\n if (name != null && value != null)\r\n {\r\n parameters.put(name, value);\r\n }\r\n else\r\n {\r\n throw new OwConfigurationException(\"Renderer configuration problem, parameter name [\" + name + \"] and/or value [\" + value + \"].\");\r\n }\r\n }\r\n }\r\n else\r\n {\r\n boolean hasConfiguration = hasPreviewConfiguration(mimeTypes);\r\n\r\n if (!hasConfiguration)\r\n {\r\n prevRenderer = getSimpleConfigurationPreviewRanderer(mimeTypes, parameters);\r\n }\r\n\r\n else\r\n {\r\n prevRenderer = null;\r\n }\r\n }\r\n\r\n if (prevRenderer != null)\r\n {\r\n cachedConfig.put(prevRenderer.getClass().getCanonicalName(), parameters);\r\n for (String mime : mimeTypes)\r\n {\r\n cachedRenderer.put(mime, prevRenderer);\r\n }\r\n }\r\n }\r\n return prevRenderer;\r\n }",
"public int getRenderType()\n {\n return 2;\n }",
"@Override\n\tpublic TemplateEngine getTemplateEngine() {\n\t\treturn null;\n\t}",
"@Test\n public void testRenderEngines() throws IOException {\n testRenderEngine(freemarkerRenderEngine, \"fixed\", TEXT);\n testRenderEngine(freemarkerRenderEngine, \"simple\", TEXT);\n testRenderEngine(freemarkerRenderEngine, \"list\", TEXT);\n\n }",
"protected ImageRenderer createRenderer() {\n\t\tImageRendererFactory rendFactory = new ConcreteImageRendererFactory();\n\t\t// ImageRenderer renderer = rendFactory.createDynamicImageRenderer();\n\t\treturn rendFactory.createStaticImageRenderer();\n\t}",
"public TemplateEngine getTemplateEngine() {\n return queryCreator;\n }",
"public static GlyphLayout get(LayoutEngineFactory paramLayoutEngineFactory)\n/* */ {\n/* 184 */ if (paramLayoutEngineFactory == null) {\n/* 185 */ paramLayoutEngineFactory = SunLayoutEngine.instance();\n/* */ }\n/* 187 */ GlyphLayout localGlyphLayout = null;\n/* 188 */ synchronized (GlyphLayout.class) {\n/* 189 */ if (cache != null) {\n/* 190 */ localGlyphLayout = cache;\n/* 191 */ cache = null;\n/* */ }\n/* */ }\n/* 194 */ if (localGlyphLayout == null) {\n/* 195 */ localGlyphLayout = new GlyphLayout();\n/* */ }\n/* 197 */ localGlyphLayout._lef = paramLayoutEngineFactory;\n/* 198 */ return localGlyphLayout;\n/* */ }",
"public static VolumeViewRenderer findRenderer(final String klass) throws Exception {\r\n // Get the extension registry.\r\n IExtensionRegistry registry = Platform.getExtensionRegistry();\r\n // Find all the config elements for the renderer extension point.\r\n IConfigurationElement[] rendererConfigs = registry\r\n .getConfigurationElementsFor(\"org.geocraft.ui.volumeviewer.renderer\");\r\n for (IConfigurationElement rendererConfig : rendererConfigs) {\r\n if (rendererConfig.getAttribute(\"class\").equals(klass)) {\r\n return createRenderer(rendererConfig);\r\n }\r\n }\r\n\r\n return null;\r\n }",
"public int getRenderType() {\n\t\treturn -1;\n\t}",
"public int getRenderType() {\n\t\treturn 18;\n\t}",
"public int getRenderType()\n\t\t{\n\t\t\treturn -1;\n\t\t}",
"RenderingContext getContext();",
"public static ProcessEngine getProcessEngine(String processEngineName) {\n if (!isInitialized()) {\n init();\n }\n return processEngines.get(processEngineName);\n }",
"public InspectionValueRenderer getRenderer(Class<?> type) {\r\n return renderers == null ? null : renderers.get(type);\r\n }",
"@NativeType(\"bgfx_renderer_type_t\")\n public static int bgfx_get_renderer_type() {\n long __functionAddress = Functions.get_renderer_type;\n return invokeI(__functionAddress);\n }",
"public abstract String getDefaultRenderKitId();",
"public GameEngine getEngine() {\n\t\treturn engine;\n\t}",
"private UriRef getRenderRdfType(Resource renderletDef) {\n\t\tIterator<Triple> renderedTypeIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderedType, null);\n\n\t\tif (renderedTypeIter.hasNext()) {\n\t\t\treturn (UriRef) renderedTypeIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"public void setRenderHost(String renderHost);",
"@SuppressWarnings(\"unchecked\")\r\n protected OwXMLUtil findMatchingRendererConfig(List<String> mimeType_p) throws OwConfigurationException\r\n {\r\n List<OwXMLUtil> viewers = getConfiguration().getSafeUtilList(EL_VIEWER);\r\n OwXMLUtil anyContentViewer = null;\r\n for (OwXMLUtil viewer : viewers)\r\n {\r\n List<OwXMLUtil> filterMimes = viewer.getSafeUtilList(EL_FILTER, EL_MIME);\r\n for (OwXMLUtil filter : filterMimes)\r\n {\r\n String mimeType = filter.getSafeStringAttributeValue(AT_TYPE, null);\r\n if (mimeType != null)\r\n {\r\n if (ANY_CONTENT_TYPE.equals(mimeType))\r\n {\r\n anyContentViewer = viewer;\r\n }\r\n if (mimeType_p.contains(mimeType))\r\n {\r\n return viewer;\r\n }\r\n }\r\n }\r\n }\r\n return anyContentViewer;\r\n }",
"protected abstract ProxyRenderer getProxyRendererImpl();",
"public String getEngineName() {\n return engineName;\n }",
"public GLRenderer getRenderer()\n\t{\n\t\treturn renderer;\n\t}",
"public static Object getComponentInstance(String name, HttpServletRequest request) {\r\n\t\tServletContext sc = request.getSession().getServletContext();\r\n\t\tContainerWrapper containerWrapper = scf.findContainer(new ServletContextWrapper(sc));\r\n\t\tif (!containerWrapper.isStart()) {\r\n\t\t\tDebug.logError(\"JdonFramework not yet started, please try later \", module);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn containerWrapper.lookup(name);\r\n\t}",
"public PSRenderingMode getRenderingMode() {\n return this.renderingMode;\n }",
"public int getRenderType()\n {\n return 40;\n }",
"public String getRenderKitId()\n {\n return _renderKitId;\n }",
"public String getRenderKitId()\r\n {\r\n return _renderKitId;\r\n }",
"public void setEngine(String engine) {\n this.engine = engine;\n }",
"ServeTagProcessor getImplementation(String viewId);",
"protected String getEngineInformation()\n {\n List<String> engineInfo = new ArrayList<String>();\n\n // Step through each engine factory\n for (ScriptEngineFactory factory : scriptFactories)\n {\n // Get the engine language name\n String name = factory.getLanguageName();\n\n // Check if the name begins with \"ECMA\"\n if (name.toLowerCase().startsWith(\"ecma\"))\n {\n // Use \"JavaScript\" in place of \"ECMAScript\"\n name = \"JavaScript\";\n }\n // Not JavaScript\n else\n {\n // Capitalize the first letter of the engine name\n name = Character.toString(name.charAt(0)).toUpperCase()\n + name.substring(1);\n }\n\n // Add the information for this engine to the list\n engineInfo.add(CcddUtilities.colorHTMLText(name + \": \",\n ModifiableColorInfo.SPECIAL_LABEL_TEXT.getColor())\n + factory.getLanguageVersion()\n + \" (\"\n + factory.getEngineName()\n + \" \"\n + factory.getEngineVersion()\n + \")\");\n }\n\n // Sort the engines in alphabetical order\n Collections.sort(engineInfo);\n\n String engineOutput = \"\";\n\n // Step through each engine's information\n for (String engine : engineInfo)\n {\n // Append the information to the output string\n engineOutput += \"<br>   \"\n + engine;\n }\n\n // Check if no engines exist\n if (engineOutput.isEmpty())\n {\n // Set the string to indicate no engines are available\n engineOutput = \"none\";\n }\n\n return engineOutput;\n }",
"public static VelocityEngine getVelocityEngine(){\n if(velocityEngine == null)\n init();\n return velocityEngine;\n }",
"public static HttpServletResponse getHttpServletResponse() {\n try {\n HttpServletResponse response = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getResponse();\n return response;\n } catch (NoClassDefFoundError e) {\n // ignore if servlet request class is not available\n return null;\n } catch (IllegalStateException e) {\n // ignore if servlet request is not available, e.g. when triggered from a deadline\n return null;\n }\n }",
"public static RhinoServlet getServlet(Context cx) {\r\n Object o = cx.getThreadLocal(\"rhinoServer\");\r\n if (o==null || !(o instanceof RhinoServlet)) return null;\r\n return (RhinoServlet)o;\r\n }",
"public static IRenderer createRenderer(final IConfigurationElement configElement) {\n return null;\n }",
"protected abstract ToolbarEngine getInstanceOfToolbar();",
"public RS274GCodeRenderer getRendererByGCodeProvider(Integer idGCodeProvider) throws GkException{\n\t\tfor (RS274GCodeRenderer renderer : cacheRenderer.get()) {\n\t\t\tif(ObjectUtils.equals(idGCodeProvider, renderer.getIdGCodeProvider())){\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t}\n\t\tthrow new GkTechnicalException(\"Renderer for GCodeProvider with internal id [\"+idGCodeProvider+\"] does not exist\");\n\t}",
"public static Engine getInstance() {\n if (engineInstance == null) {\n synchronized (Engine.class) {\n if (engineInstance == null) {\n engineInstance = new Engine();\n }\n }\n }\n return engineInstance;\n }",
"public native void loadRenderer(final String renderer);",
"protected abstract ViewPreparer getPreparer(String name, WebApplicationContext context) throws TilesException;",
"public static synchronized JavaRenderer getInstance()\n {\n if(_instance == null)\n _instance = new JavaRenderer();\n\n return _instance;\n }",
"public TemplateAvailabilityProvider getProvider(String view, ApplicationContext applicationContext)\n/* */ {\n/* 118 */ Assert.notNull(applicationContext, \"ApplicationContext must not be null\");\n/* 119 */ return getProvider(view, applicationContext.getEnvironment(), applicationContext\n/* 120 */ .getClassLoader(), applicationContext);\n/* */ }",
"public ESEngine addESEngine() {\n\t\treturn new ESUFOEngine(); // Specific to regular UFO\n\t}",
"void setRendererType(String rendererType);",
"private MustacheFactory getFactory()\n {\n MustacheFactory factory;\n\n if (Stage.DEVELOPMENT == Stage.current())\n {\n\n // disable caching for development\n factory = new ServletMustacheFactory(servletContext);\n }\n else\n {\n factory = this.factory;\n }\n\n return factory;\n }",
"public static final ReasonerFrontend getInstance() {\r\n return INSTANCE;\r\n }",
"public String getCompiler();",
"public interface TemplateEngineService {\n\n /**\n * Get the EngineFactory for the template engine name given.\n * \n * @param name\n * of the TemplateEngine to be retrieved.\n * @return TemplateEngine for the given engine name or null for an unknown\n * engine name.\n */\n public TemplateEngine getEngine( String name );\n\n /**\n * Gets the collection with all available template engines.\n * \n * @return A collection of available template engines. If there are no\n * template engines availabel the collection will be empty.\n */\n public Collection<TemplateEngine> getEngines();\n\n /**\n * Convenience method that immediately creates a Template based on the actual\n * template file/reader. To accomplish this the TemplateEngine is determined\n * by the contents of the template file/reader. That particular template\n * engine is used to create the Template.\n * \n * TODO: describe shebang\n * \n * @param reader\n * The reader to be used for the Template\n * @return A valid Template object for the given reader.\n * @throws IOException\n * when using the reader fails\n * @throws TemplateCompilationException\n * when compiling the template fails.\n * @throws MissingShebangException\n * when the template lacks a shebang.\n * @throws UnknownEngineException\n * when the shebang refers to an engine that is not known to the\n * engine factory.\n */\n public Template getTemplate( Reader reader ) throws IOException, TemplateCompilationException,\n MissingShebangException, UnknownEngineException;\n\n}",
"public interface ViewManagerResolver {\n ViewManager getViewManager(String str);\n\n List<String> getViewManagerNames();\n }",
"public interface IWebEngine {\n\n /**\n * Executes the specified JavaScript Command\n *\n * @param command The command to execute\n * @return The object returned by the script (if any).\n */\n public Object executeScript(String command);\n\n /**\n * Gets a worked which will be notified when a web page has finished\n * loading.\n *\n * @return The worker\n */\n public Worker<Void> getLoadWorker();\n\n /**\n * Loads the specified URL\n *\n * @param url The URL to load in the engine.\n */\n public void load(String url);\n\n}",
"public FxRequest.Browser getBrowser() {\n return FxJsfUtils.getRequest().getBrowser();\n }",
"public RequestAction geRequestHandler(String request){\n RequestAction requestHandler =requestHandlerMap.get(request);\n if(requestHandler ==null)\n return requestHandlerMap.get(\"notSupported\");\n return requestHandler;\n }",
"@Override\n public Object getRenderer()\n {\n return null;\n }",
"String getBrowser();",
"@Override\n\tpublic String render(RenderRequest renderRequest, RenderResponse renderResponse, String template)\n\t\t\tthrows Exception {\n\t\tif(template.equals(TEMPLATE_FULL_CONTENT)) {\n\t\t\trenderRequest.setAttribute(\"sdr_dataset\", _dataset);\n\t\t\t// /html/[PORTLET_PATH]/[VIEW PAGE].jsp\n\t\t\treturn \"/assetPage/dataset\";\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String render()\r\n/* 24: */ {\r\n/* 25:51 */ if (!this.init_flag)\r\n/* 26: */ {\r\n/* 27:52 */ this.init_flag = true;\r\n/* 28:53 */ return \"\";\r\n/* 29: */ }\r\n/* 30: */ try\r\n/* 31: */ {\r\n/* 32:56 */ ConnectorResultSet res = this.sql.get_variants(this.request);\r\n/* 33:57 */ return render_set(res);\r\n/* 34: */ }\r\n/* 35: */ catch (ConnectorOperationException e) {}\r\n/* 36:59 */ return \"\";\r\n/* 37: */ }",
"@Override\n public SearchEngine getSearchEngine() throws DataAccessException {\n SearchEngine searchEngine = super.getSearchEngine();\n if (searchEngine == null && hasIdentification()) {\n String query = \"select search_engine from pride_identification where identification_id=?\";\n Comparable identId = CollectionUtils.getElement(getIdentificationIds(), 0);\n String seStr = jdbcTemplate.queryForObject(query, String.class, identId);\n searchEngine = new SearchEngine(seStr);\n\n // get search engine types\n Map<Comparable, ParamGroup> params = (Map<Comparable, ParamGroup>) getCache().get(CacheCategory.PEPTIDE_TO_PARAM);\n if (params != null && !params.isEmpty()) {\n Collection<ParamGroup> paramGroups = params.values();\n ParamGroup paramGroup = CollectionUtils.getElement(paramGroups, 0);\n searchEngine.setSearchEngineTypes(DataAccessUtilities.getSearchEngineTypes(paramGroup));\n }\n getCache().store(CacheCategory.SEARCH_ENGINE_TYPE, searchEngine);\n }\n\n return searchEngine;\n }",
"public static String render(Request request, Map<String, Object> model, String templatePath) {\n //model.put(\"currentUser\", getSessionCurrentUser(request));\n //model.put(\"WebPath\", Path.Web.class); // Access application URLs from templates\n return strictVelocityEngine().render(new ModelAndView(model, templatePath));\n }",
"IGraphEngine getGraphEngine();",
"public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}",
"RenderStack getRenderStack();",
"public static String getContext(HttpServletRequest request) {\n\t\tString context = request.getParameter(CONTEXT_KEY);\n\t\tif (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {\n\t\t\tcontext = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();\n\t\t}\n\t\t// If no or invalid context, display a list of available WebApps\n\t\tif (context == null || Server.getInstance().getApplication(context) == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn context;\n\t\t}\n\t}",
"public StrategyEnginesView getRealView() {\r\n return mRealView;\r\n }",
"public VelocityEngine getEngine() {\n\t\treturn this.engine;\n\t}",
"public void setEngine(Engine engine);",
"@SuppressWarnings({\"unchecked\"})\n public static DRendererContext getRendererContext() {\n final DRendererContext rdrCtx = RDR_CTX_PROVIDER.acquire();\n if (DO_MONITORS) {\n rdrCtx.stats.mon_pre_getAATileGenerator.start();\n }\n return rdrCtx;\n }",
"FeedRenderingPool getRenderingPool() {\n return feedPool;\n }",
"public Parser getParser(String mimeType) {\n return parsers.get(mimeType);\n }",
"@Override\n\tpublic int getRenderType()\n\t{\n\t\treturn -1;\n\t}",
"public interface Renderer {\n public void render();\n}",
"public void registerRenderer() {}"
] | [
"0.70554453",
"0.65560466",
"0.6175558",
"0.6040514",
"0.6037702",
"0.5989828",
"0.5966765",
"0.5965634",
"0.5755103",
"0.5752732",
"0.57128954",
"0.56576854",
"0.5605472",
"0.5597473",
"0.55953395",
"0.5520046",
"0.5512907",
"0.54826915",
"0.548079",
"0.5457483",
"0.5436629",
"0.5431397",
"0.54290056",
"0.54135",
"0.5403948",
"0.54022014",
"0.535955",
"0.53594226",
"0.53066754",
"0.53025275",
"0.5258284",
"0.5245535",
"0.52126074",
"0.5154094",
"0.51533484",
"0.51371753",
"0.51343584",
"0.51306516",
"0.5126509",
"0.510069",
"0.5073992",
"0.50697845",
"0.50672585",
"0.5057862",
"0.5053022",
"0.50486857",
"0.5039352",
"0.50260943",
"0.4948195",
"0.49456456",
"0.49386412",
"0.4930827",
"0.49121282",
"0.49033484",
"0.4884975",
"0.48825395",
"0.4868422",
"0.48655242",
"0.48438883",
"0.48361203",
"0.48329824",
"0.48280832",
"0.4821782",
"0.4786448",
"0.4778194",
"0.4744616",
"0.47365966",
"0.47351396",
"0.4732759",
"0.47314793",
"0.47227502",
"0.4700799",
"0.46982828",
"0.4694081",
"0.46860322",
"0.4676236",
"0.4674622",
"0.4670816",
"0.46696103",
"0.46570796",
"0.46556",
"0.4654686",
"0.46538517",
"0.46406224",
"0.4633265",
"0.4625317",
"0.4623807",
"0.4616753",
"0.4613712",
"0.46090788",
"0.46065313",
"0.45970467",
"0.45954624",
"0.45899108",
"0.45862913",
"0.45776483",
"0.45705295",
"0.45655707",
"0.4565213",
"0.4561776"
] | 0.73900056 | 0 |
Indicate whether the service has any markup advice to include in the login screen | public boolean hasLoginAdvice(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasLoginRequest();",
"public boolean shouldLogIn() {\n // Check if the page requires a login\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return true;\n }\n HashMap inputParameters = (HashMap) session.getAttribute(\"_inputs\");\n String command = (String) inputParameters.get(\"command\");\n if (_unrestrictedPages.contains(\"*\") ||\n _unrestrictedPages.contains(command) ||\n (command != null && command.startsWith(\"_\"))) {\n return false;\n }\n \n // Check if the user is logged in\n return !getBoolProperty(getSessionId());\n }",
"private void checkIfAtLogin(){\n checkIfIdDisplayed(R.id.login_main_view);\n checkIfIdDisplayed(R.id.username_text_input);\n checkIfIdDisplayed(R.id.password_text_input);\n checkIfIdDisplayed(R.id.login_button);\n }",
"boolean hasLoginResponse();",
"public abstract boolean isLoginRequired();",
"public boolean verifyPageLoad() {\n\t\tboolean result = lnkLoginButton.isDisplayed();\n\t\tLog.info(\"Home Page Loaded Successfully\");\n\t\treturn result;\n\t}",
"public abstract boolean showLogin();",
"public boolean isAt(){\n\t\tWaitExtensions.waitForPageToLoad(10);\n\t\treturn loginButton.isDisplayed();\n\t\t\n\t}",
"@Given(\"^user is on the login page$\")\n public void userIsOnTheLoginPage() throws Throwable {\n }",
"boolean hasLoginPack();",
"boolean hasLogin();",
"boolean hasLogin();",
"@Override\n\tpublic boolean isLogin() {\n\t\treturn false;\n\t}",
"public boolean isLoginRequired() {\n return loginRequired;\n }",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }",
"@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}",
"boolean hasLoginapiavgrtt();",
"@Flaky\n @Test\n public void checkServicePage() {\n assertEquals(getWebDriver().getTitle(), MAIN_DRIVER_TITLE);\n\n //2. Perform login\n servicePage.login(cfg.login(), cfg.password());\n\n //3. Assert User name in the left-top side of screen that user is loggined\n servicePage.checkUserNameTitle();\n\n\n }",
"@Given(\"^User is on Login Page$\")\n\tpublic void userIsOnLoginPage() throws Throwable {\n\t\tassertTrue(isElementPresent(driver, By.id(\"new_user\")));\n\t}",
"public boolean validateSignin() {\n\t\tString titleExpected = PageTitleConstant.SIGN_IN_PAGE;\n\n\t\tboolean result = validatePageTitle(titleExpected);\n\t\tif (result) {\n\n\t\t\tstoreVerificationResults(true, \"Page Title displayed\");\n\n\t\t} else {\n\n\t\t\tstoreVerificationResults(false, \"Page Title not displayed\");\n\n\t\t}\n\n\t\treturn result;\n\t}",
"boolean hasLoginapifailhitcount();",
"public boolean hasLogin() {\n return login_ != null;\n }",
"@Step(\"Verify that right user is signed in\")\n public boolean isSignedIn() {\n if (!(Driver.driver.getCurrentUrl().equals(url))) open();\n WebElement email = Driver.driver.findElement(By.id(\"email\"));\n return email.getAttribute(\"value\").equals(SignUpPage.getEmail());\n }",
"public boolean onLoginRequired(LoginReason reason) {\n //default implementation is a no-op\n return false;\n }",
"public boolean isAuthenticationRequired() {\n\t\treturn true;\n\t}",
"@And(\"user clicks on Login\")\n public void userClicksOnLogin() {\n homePage.clickOnLogin();\n\n }",
"@Override\n\tprotected void checkLoginRequired() {\n\t\treturn;\n\t}",
"private boolean isLoggedInUser(){\n return true;\n }",
"public boolean hasLogin() {\n return loginBuilder_ != null || login_ != null;\n }",
"public boolean VerifyOrderConfirmation_MyStoreSection() {\n\t\t\tboolean flag = false;\n\t\t\t\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyMyStoreSection\", \"MyStoreSectionIsDisplayed\");\n\t\t }else{extentLogs.fail(\"VerifyMyStoreSection\", \"MyStoreSectionIsNotDisplayed\");}\n\t\t\t\n\t\t\treturn flag;\n\t\t}",
"public static boolean loginErrorMsgVisible(){\n\n boolean elementFound =\n BrowserUtil.checkVisibilityOfElement(By.xpath(\"//span[. ='Invalid Login or Password.']\"),2);\n return elementFound ;\n }",
"@Override\n\tpublic boolean hasLoginForm() {\n\t\tList<HtmlForm> listOfForms=this.page.getForms();\n\t\tif(listOfForms==null){\n\t\t\treturn false;\n\t\t}\n\t\tif(listOfForms.isEmpty()){\n\t\t\treturn false;\n\t\t}\n\t\tIterator<HtmlForm> formsIterator=listOfForms.iterator();\n\t\twhile(formsIterator.hasNext()){\n\t\t\tHtmlForm form=formsIterator.next();\n\t\t\tif(isLoginForm(form)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean isLoginAvailable();",
"Boolean isLogIn();",
"@Override\n\t\t\t\t\t\tpublic void loginStatua(boolean isLogin) {\n\t\t\t\t\t\t\tif (isLogin) {\n\t\t\t\t\t\t\t\tanalyzingConditions();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void loginStatua(boolean isLogin) {\n\t\t\t\t\t\t\tif (isLogin) {\n\t\t\t\t\t\t\t\tanalyzingConditions();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void loginStatua(boolean isLogin) {\n\t\t\t\t\t\t\tif (isLogin) {\n\t\t\t\t\t\t\t\tanalyzingConditions();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"public abstract boolean isLoggedIn();",
"@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}",
"final public boolean requiresAuthentication()\r\n {\r\n return requires_AUT;\r\n }",
"boolean hasHasInstitutionHomePage();",
"boolean hasLoginapisuccessfulhitcount();",
"@Test(priority = 1)\n\tprotected void landingpageVerification() {\n\t\tAssert.assertEquals(spincoLandingPage.isLogoDisplayed(),true);\n\t\tspincoLandingPage.clickLoginRegister();\n\t}",
"boolean hasLoggedIn();",
"@Given(\"^The user is in the login page$\")\n\tpublic void the_user_is_in_the_login_page() throws Throwable {\n\t\tChrome_Driver();\n\t\tlpw =new Login_Page_WebElements();\n\t\tlpw.open_orange_hrm();\n\t}",
"@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}",
"@Given(\"User is on the HomePage\")\r\n\tpublic void user_is_on_the_home_page() \r\n\t{\n\t driver.get(\"https://lkmdemoaut.accenture.com/TestMeApp/fetchcat.htm\");\r\n\t driver.findElement(By.linkText(\"SignIn\")).click();\r\n\t \r\n\t WebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name(\"userName\"))));\r\n\t \r\n\t driver.findElement(By.id(\"userName\")).sendKeys(\"Lalitha\");\r\n\t driver.findElement(By.id(\"password\")).sendKeys(\"password123\");\r\n\t driver.findElement(By.name(\"Login\")).click();\r\n\t}",
"public boolean verifyHomePageDisplayed(){\r\n\t\tWebDriver driver = SeleniumDriver.getInstance().getWebDriver();\r\n\t\tWebElement body;\r\n\t\ttry{\r\n\t\t\tbody = driver.findElement(By.tagName(\"body\"));\r\n\t\t\tif(body.getAttribute(\"class\").contains(\"home page\")){\r\n\t\t\t\tmyAssert.setGblPassFailMessage(\"pass\", \"UpTake home page is displayed\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tmyAssert.setGblPassFailMessage(\"fail\", \"UpTake home page is not displayed\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t return true;\r\n\t}",
"@Then(\"^homepage is visible$\")\n\tpublic void homepage_is_visible() throws Throwable {\n\t\tString verify = driver.findElement(By.xpath(\"//marquee[@class='heading3']\")).getText();\n\t\tAssert.assertEquals(verify, \"Welcome To Customer's Page of Guru99 Bank\", \"Error in loading!\");\n\t}",
"private boolean isUserExplicitlyLoggedIn() {\n // User is explicitly logged in, if his securityStatus is more than or equal to security status login.\n String securityStatusPropertyName = getStorePropertyManager().getSecurityStatusPropertyName();\n int securityStatus = ((Integer) getProfile().getPropertyValue(securityStatusPropertyName)).intValue();\n return securityStatus >= getStorePropertyManager().getSecurityStatusLogin();\n }",
"private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}",
"@Given(\"^User is on netbanking landing page$\")\r\n public void user_is_on_netbanking_landing_page() throws Throwable {\n System.out.println(\"Navigated to Login URL\");\r\n }",
"@Override\n\tpublic boolean isLoggedIn() {\n\t\treturn false;\n\t}",
"@Given(\"User is on Services page\")\n\tpublic static void user_is_on_services_page() {\n\t\ttry {\n\t\t\tclick(\"services\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void verifyUserIsOnHomepage()\n {\n asserttextmessage(getTextFromElement(_welcomeTileText),expected,\"user on home page\");\n\n }",
"public void verifyFalseLogin() {\n alertElement.waitForState().present(30);\n alertElement.assertContains().text(\"Please Enter a Valid User ID\");\n }",
"@Then(\"^I can login using my details$\")\n\tpublic void i_can_login_using_my_details() {\n\t \n\t}",
"@Test\r\n public void DisplayCurrentUserAfterLogIn() {\n String username = ParseUser.getCurrentUser().getUsername();\r\n onView(withText(\"Welcome, \" + username)).check(ViewAssertions.matches(isDisplayed()));\r\n }",
"boolean hasLoginapihitcount();",
"public boolean hasLoginPack() {\n return packCase_ == 2;\n }",
"public boolean isSetLogin() {\n return this.login != null;\n }",
"public boolean isSetLogin() {\n return this.login != null;\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 static boolean shouldLogin() {\n if (AppPreference.getInstance().getUserLoggedIn() == null ) {\n //|| deltaActive > Constant.SESSION_EXIPRED_TIME) {\n return true;\n }\n\n return false;\n }",
"public abstract boolean isLoggedIn(String url);",
"@Test\n\tpublic void login(){\n\t\tloginPage.login(data.readData(\"email\"), data.readData(\"password\"));\n\t\tAssert.assertEquals(isPresent(locateElement(By.id(home.homeLogo))),true,\"user not got logged in successfully\");\n\t}",
"public boolean isUserLoggedIn();",
"@Then(\"^user check is logged in$\")\n public void check_user_logged(){\n log.info(\"try to check if user is logged in\");\n String linkSignOut = pageLogin.getLinkSignOut().getText();\n Assert.assertTrue(linkSignOut.equals(\"Sign out\"), \"There is no visible link sign out\");\n String linkUserName = pageLogin.getLinkUserFullname().getText();\n Assert.assertTrue(linkUserName.equals(\"Antoni Giez\"));\n log.info(\"user is logged in, username - \" + linkUserName);\n }",
"@Given(\"user is on login page\")\n\tpublic void user_is_on_login_page() {\n\t\tSystem.out.println(\"user is on login page\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://opensource-demo.orangehrmlive.com/index.php/auth/validateCredentials\");\n\t \n\t}",
"public boolean hasLoginPack() {\n return packCase_ == 2;\n }",
"public abstract void onFirstUserVisible();",
"public boolean isAuthRequired() {\n\t\treturn false;\n\t}",
"public boolean isServicesDiSplayed() {\r\n\t\treturn isDisplayed(servicesTextLocator);\r\n\t}",
"@Then(\"I want to login successfully\")\n\tpublic void output() {\n\t\tact.gethomepage().verifyLoggedUser();\n\n\t\t//String username = linkWelcome.getText();\n\t\t//String login = \"Welcome Admin\";\n\t\t//if (username.equals(login)) {\n\t\t\t//System.out.println(\"User name is correct\");\n\t\t//} else {\n\t\t\t//System.out.println(\"Username is not correct\");\n\n\t\t}",
"@Override\n protected boolean isAppropriate() {\n return true; // always show\n }",
"boolean hasSessionTemplate();",
"@NotNull\n boolean isTrustedWholeLand();",
"@Test\n @Issue(\"EZ-8885\")\n void verifyGeneralElementsOnLoginPage() {\n LoginPage loginPage = new LoginPage(BaseUrl.loginPageBaseUrl());\n loginPage.open().getStatusLoginFields();\n LoginPage.getButtonsStatus();\n\n SoftAssertions softly = new SoftAssertions();\n softly.assertThat(loginPage.getStatusLoginFields()).isTrue();\n softly.assertThat(LoginPage.getButtonsStatus()).isTrue();\n softly.assertThat(getBrowserConsoleErrors()).isFalse();\n softly.assertAll();\n\n }",
"@Then(\"^'Login and password are required' message should be displayed$\")\n public void loginAndPasswordAreRequiredMessageShouldBeDisplayed() throws Throwable {\n }",
"boolean authNeeded();",
"protected boolean loginRequiredForPage(RequestContext context, HttpServletRequest request, Page page)\r\n {\r\n boolean login = false;\r\n User user = context.getUser();\r\n switch (page.getAuthentication())\r\n {\r\n case guest:\r\n {\r\n login = (user == null);\r\n break;\r\n }\r\n \r\n case user:\r\n {\r\n login = (user == null || AuthenticationUtil.isGuest(user.getId()));\r\n break;\r\n }\r\n \r\n case admin:\r\n {\r\n login = (user == null || !user.isAdmin());\r\n if (login)\r\n {\r\n // special case for admin - need to clear user context before\r\n // we can login again to \"upgrade\" our user authentication level\r\n AuthenticationUtil.clearUserContext(request);\r\n }\r\n break;\r\n }\r\n }\r\n return login;\r\n }",
"public boolean emailisdisplayed() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(email);\r\n\t\t\t\tflag = element.isDisplayed();\r\n\t\t\t\tAssert.assertTrue(flag, \"Email is is not dispalyed and enabled\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Email Id NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\treturn flag;\r\n\t\t\t\r\n\t\t}",
"private boolean isConsumerHomePage() throws Exception {\n\n\t\tif (wh.isElementPresent(HomePageUI.verifyHomepage, 3) || \n\t\t\t\twh.isElementPresent(HomePageUI.verifyHomepage1, 3)) {\n\n\t\t\treturn true;\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public void showAuthScreen() {\n }",
"public boolean validatePageElements() {\n boolean nameCheck = name.isDisplayed() && name.isEnabled();\n boolean emailCheck = email.isDisplayed() && email.isEnabled();\n boolean passwordCheck = password.isDisplayed() && password.isEnabled();\n boolean signupGoogleCheck = signupGoogle.isDisplayed() && signupGoogle.isEnabled();\n boolean signupSlackCheck = signupSlack.isDisplayed() && signupSlack.isEnabled();\n boolean signupOutlookCheck = signupOutlook.isDisplayed() && signupOutlook.isEnabled();\n boolean signupAppleCheck = signupApple.isDisplayed() && signupApple.isEnabled();\n boolean signupFacebookCheck = signupFacebook.isDisplayed() && signupFacebook.isEnabled();\n boolean logoCheck = miroLogo.isDisplayed();\n\n return nameCheck && emailCheck && passwordCheck && signupGoogleCheck && signupSlackCheck && signupOutlookCheck && signupAppleCheck && signupFacebookCheck && logoCheck;\n\n }",
"@Override\n public <T extends IRequestableComponent> boolean isInstantiationAuthorized(Class<T> componentClass) {\n if (!ISecured.class.isAssignableFrom(componentClass)) {\n return true; \n }\n\n // Deny all others\n if (!((B4WebSession) Session.get()).isSignedIn()) {\n throw new RestartResponseAtInterceptPageException(LoginPage.class);\n }\n \n return true;\n }",
"boolean isAuthenticated();",
"@Then(\"^Browser display Sign In page$\")\n public void browser_display_Sign_In_page() throws Throwable {\n sign.browserDisplaySignIn();\n\n\n }",
"public boolean veirfyUserOnSummerDressesPage(){\n WebElement page = driver.findElement(By.cssSelector(\"div[class='cat_desc']\"));\n boolean pageStatus = page.isDisplayed();\n return pageStatus;\n }",
"@Then(\"^user is navigated to Login Page$\")\r\n public void user_is_navigated_to_Login_Page() throws Throwable {\n throw new PendingException();\r\n }",
"@When(\"^user should cliks the Login Button in login page$\")\n\tpublic void user_should_cliks_the_Login_Button_in_login_page() throws Throwable {\n\t\telementClick(pa.getAp().getLoginclick());\n\t \n\t}",
"boolean hasHasHelmet();",
"@Override\n public boolean isAuthenticated() {\n return !person.isGuest();\n }",
"public boolean isLogin() {\n // Mengembalikan nilai boolean degan mengambil data dari pref KEY_IS_LOGIN\n return preference.getBoolean(Constants.KEY_IS_LOGIN, false);\n }",
"@Given(\"^user is on Application landing page$\")\r\n public void user_is_on_Application_landing_page() throws Throwable {\n throw new PendingException();\r\n }",
"boolean hasAuth();",
"public boolean isAuthorised(SessionObjectDTO sessionDTO) {\n\t\ttry {\n\t\t\tIUserService service = (IUserService) BusinessServiceLocator.locate(IUserService.class);\n\t\t\tsessionDTO = (SessionObjectDTO) session.get(\"sessionDTO\");\n\t\t\tservice.getAuthorisations(userDetailsDTO, sessionDTO.getRoleId());\n\t\t\tservice.getAuthorisedPagesForUser(sessionDTO.getRoleId(), sessionDTO.getUserId(), userDetailsDTO);\n\t \tif(userDetailsDTO.getAuthorisedPagesList() != null && userDetailsDTO.getAuthorisedPagesList().contains((LinMobileConstants.APP_VIEWS[2]).split(LinMobileConstants.ARRAY_SPLITTER)[1].trim())) {\n\t \t\tsessionDTO.setPageName((LinMobileConstants.APP_VIEWS[2]).split(LinMobileConstants.ARRAY_SPLITTER)[1].trim());\n\t \t\treturn true;\n\t \t}\n\t \t}\n\t\tcatch (Exception e) {\n\t\t\t\n\t\t\tlog.severe(\"Exception in execution of isAuthorised : \" + e.getMessage());\n\t\t}\n\t\treturn false;\n\t}"
] | [
"0.63053775",
"0.6252177",
"0.6229708",
"0.62280923",
"0.62246054",
"0.6126651",
"0.60499",
"0.60484266",
"0.600344",
"0.6002446",
"0.59484535",
"0.59484535",
"0.5923742",
"0.5865247",
"0.5818042",
"0.5818042",
"0.58005047",
"0.5733631",
"0.57242864",
"0.5706476",
"0.5704023",
"0.57005787",
"0.56909335",
"0.56904525",
"0.5680182",
"0.56727725",
"0.5664218",
"0.5648091",
"0.56476045",
"0.5646999",
"0.5644419",
"0.56381494",
"0.5636705",
"0.56335604",
"0.56332695",
"0.5629535",
"0.5623188",
"0.5623188",
"0.5623188",
"0.56218076",
"0.5613488",
"0.55961543",
"0.5582837",
"0.5580676",
"0.5543412",
"0.55231065",
"0.5515674",
"0.5511195",
"0.54999703",
"0.54953396",
"0.54915756",
"0.5491137",
"0.5482208",
"0.54709053",
"0.5451247",
"0.5432825",
"0.5424383",
"0.54112214",
"0.5396323",
"0.5392632",
"0.5390903",
"0.5387488",
"0.5377426",
"0.5377426",
"0.5373206",
"0.5373206",
"0.5371048",
"0.53669083",
"0.5365737",
"0.53607476",
"0.53562546",
"0.5353343",
"0.5349683",
"0.5349338",
"0.53457093",
"0.5343473",
"0.53398174",
"0.5337365",
"0.5336051",
"0.5330299",
"0.53229034",
"0.53060216",
"0.5304467",
"0.52948636",
"0.5288915",
"0.52823937",
"0.52822185",
"0.5273695",
"0.52711934",
"0.5268563",
"0.5251647",
"0.5249242",
"0.52469766",
"0.52462554",
"0.52462333",
"0.5243661",
"0.5242779",
"0.5233336",
"0.52327245",
"0.522861"
] | 0.73287356 | 0 |
Add a render engine to the available render engines. | void addRenderEngine(String context, LoginRenderEngine vengine); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void registerRenderer() {}",
"public void registerRenderer() {}",
"public void setEngine(Engine engine);",
"void updateRenderEngine() {\n if (renderEngine == null)\n renderEngine = this.game.p;\n }",
"public void addRenderer(\r\n RendererBean renderer)\r\n {\r\n String componentFamily = renderer.getComponentFamily();\r\n String rendererType = renderer.getRendererType();\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n _renderers.put(compositeKey, renderer);\r\n\r\n FacesConfigBean owner = getOwner();\r\n if (owner != null)\r\n renderer.attach(owner);\r\n }",
"public void registerRenders() {\n }",
"public void setEngine(String engine) {\n this.engine = engine;\n }",
"static void addRenderer(Renderer renderer)\n {\n renderers.add(renderer);\n Collections.sort(renderers);\n }",
"public void setRenderHost(String renderHost);",
"public void registerRenderers() {\n\n\t}",
"public void setEngine(Engine engine) {\n this.engine = engine;\n }",
"public static void registerRendererType(ISkyRenderType rendererType) {\n\t\tINSTANCE.rendererTypes.add(rendererType);\n\t}",
"public static void add() {\n\t\trender();\n\t}",
"@Test\n public void testRenderEngines() throws IOException {\n testRenderEngine(freemarkerRenderEngine, \"fixed\", TEXT);\n testRenderEngine(freemarkerRenderEngine, \"simple\", TEXT);\n testRenderEngine(freemarkerRenderEngine, \"list\", TEXT);\n\n }",
"void removeRenderEngine(String context, LoginRenderEngine vengine);",
"public ESEngine addESEngine() {\n\t\treturn new ESUFOEngine(); // Specific to regular UFO\n\t}",
"public void addProvider(EvaluatorProvider provider) {\n\t\tregistry.add(provider);\n\t}",
"public void initializeEngines() {\n\t\tfor (int i=0; i < _engineNumber; i++) {\n\t\t\tengineList.add(new Engine(\"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t}\n\t}",
"public void setRenderManager(RenderManager renderManager) {\r\n this.renderManager = renderManager;\r\n renderManager.getOnDemandRenderer(SessionRenderer.ALL_SESSIONS).add(this);\r\n }",
"void setRendererType(String rendererType);",
"@Test\n\tpublic void addEngine_Test() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime \n\t\t\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\tgui.addEngine();\t\n\t\t}\n\t}",
"@Override\n\tpublic void hasEngine() {\n\t\t\n\t}",
"public abstract void render(Renderer renderer);",
"public void markStationary(FireEngine engine) {\n stationaryEngines.add(engine);\n }",
"LoginRenderEngine getRenderEngine(String context, HttpServletRequest request);",
"public void registerRenderInformation() {\n\t}",
"public void createRenderer(Integer idGCodeProvider) throws GkException{\n\t\tgetRS274NGCService().getGCodeProvider(idGCodeProvider);\n\t\tRS274GCodeRenderer renderer = new RS274GCodeRenderer(idGCodeProvider, gcodeContextProvider, fourAxisControllerAdapter);\n\t\trenderer.setIdGCodeProvider(idGCodeProvider);\n\t\texecutionService.addExecutionListener(renderer);\n\t\tthis.cacheRenderer.add(renderer);\n\t\tActivator.getJoglViewerService().addRenderer(renderer);\n\t}",
"public static void registerRenders() {\n for(Block block : modBlocks)\n BlockHelper.registerRender(block);\n }",
"void setEngine(ImpotEngine engine) {\n this.engine = engine;\n }",
"public Collection<TemplateEngine> getEngines();",
"private void renderEngine() {\r\n GL11.glDisable(GL11.GL_LIGHTING);\r\n\r\n GL11.glEnable(GL11.GL_BLEND);\r\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);\r\n\r\n shotTexture.bind();\r\n engine.render();\r\n\r\n GL11.glDisable(GL11.GL_BLEND);\r\n }",
"@Override\n public void enrichRenderQueue(RenderQueue renderQueue) {\n }",
"static public void register () { QueryEngineRegistry.addFactory( factory ); }",
"public final void setRenderer(String renderer){\n if(!renderer.equals(PApplet.JAVA2D) & !renderer.equals(PApplet.P2D) & !renderer.equals(PApplet.OPENGL))\n throw new RuntimeException(\"Renderer must be JAVA2D, P2D or OPENGL\");\n \n _renderer = renderer;\n }",
"public final void setGameEngine(GameEngine engine) {\n this.engine = engine;\n }",
"public native void loadRenderer(final String renderer);",
"@Provides\n\tMap<String, EnrichmentEngine> getEnrichmentEngines(Injector injector) throws IOException {\n\n\t\tMap<String, EnrichmentEngine> engineMap = new HashMap<>();\n\t\tEnrichmentEngine e = (EnrichmentEngine) injector.getInstance(HypergeometricEnrichmentEngine.class);\n\t\tengineMap.put(e.getShortName(), e);\n\n\t\treturn engineMap;\n\t}",
"protected void addSymbolToRenderer(Symbol symbol) {\n Symbol.Renderer renderer = getSymbolRenderer();\r\n if (renderer != null) {\r\n logger.fine(Bundle.info_adding_symbol_to_renderer(symbol.getName()));\r\n renderer.addSymbol(symbol);\r\n }\r\n // Queue symbols while waiting for a renderer to show up.\r\n else {\r\n logger.warning(Bundle.err_symbol_renderer_not_found(symbol.getName()));\r\n pendingAdds.add(symbol);\r\n }\r\n }",
"public GoogleAnalyticsTracker addExtender(Extender extender) {\n extenders.add(extender);\n return this;\n }",
"public void registerTileEntitySpecalRenderer(/* PlaceHolder */) {\n\t}",
"public void initializeEngines(AircraftEnum aircraftName) {\n\t\t\n\t\tswitch(aircraftName) {\n\t\tcase ATR72:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOPROP;\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\",8.6100, 4.0500, 1.3200, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\",8.6100, -4.0500, 1.3200, _theAircraft));\n\t\t\tbreak;\n\t\tcase B747_100B:\n\t\t\t_engineNumber = 4;\n\t\t\t_engineType = EngineTypeEnum.TURBOFAN;\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 23.770, 11.820, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 31.693, 21.951, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 23.770, -11.820, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 31.693, -21.951, -2.462, _theAircraft));\n\t\t\t\t\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase AGILE_DC1:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOFAN;\n//\t\t\tfor (int i=0; i < _engineNumber; i++) {\n//\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\", 12.891, 4.869, -1.782, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\", 12.891, -4.869, -1.782, _theAircraft));\n//\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase IRON:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOPROP;\n//\t\t\tfor (int i=0; i < _engineNumber; i++) {\n//\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\", 31.22, 4.4375, 1.65, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\", 31.22, -4.4375, 1.65, _theAircraft));\n//\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"public interface Renderer {\n public void render();\n}",
"public void engineOn(){\n engine = true;\n }",
"public void setTemplateEngine(TemplateEngine engine) {\n queryCreator = engine;\n registerTemplate();\n resetCache();\n }",
"protected void setUpRenderKit() throws Exception\n {\n RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder\n .getFactory(FactoryFinder.RENDER_KIT_FACTORY);\n renderKit = new MockRenderKit();\n renderKitFactory.addRenderKit(RenderKitFactory.HTML_BASIC_RENDER_KIT,\n renderKit);\n }",
"public void setExtends(final SQLEngine engine) {\r\n _extends = engine;\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n protected OwPreviewRenderer getPreviewRenderer(List<String> mimeTypes) throws OwException\r\n {\r\n OwPreviewRenderer prevRenderer = null;\r\n for (String mime : mimeTypes)\r\n {\r\n prevRenderer = this.cachedRenderer.get(mime);\r\n }\r\n if (prevRenderer == null)\r\n {\r\n OwXMLUtil rendererConfig = findMatchingRendererConfig(mimeTypes);\r\n Map<String, String> parameters = new HashMap<String, String>();\r\n if (rendererConfig != null)\r\n {\r\n prevRenderer = createPreviewRenderer(rendererConfig.getSafeStringAttributeValue(AT_CLASS, null));\r\n List<OwXMLUtil> parameterUtils = rendererConfig.getSafeUtilList(EL_CONFIGURATION, EL_PARAMERTER);\r\n for (OwXMLUtil parameter : parameterUtils)\r\n {\r\n String name = parameter.getSafeStringAttributeValue(AT_NAME, null);\r\n String value = parameter.getSafeStringAttributeValue(AT_VALUE, null);\r\n if (name != null && value != null)\r\n {\r\n parameters.put(name, value);\r\n }\r\n else\r\n {\r\n throw new OwConfigurationException(\"Renderer configuration problem, parameter name [\" + name + \"] and/or value [\" + value + \"].\");\r\n }\r\n }\r\n }\r\n else\r\n {\r\n boolean hasConfiguration = hasPreviewConfiguration(mimeTypes);\r\n\r\n if (!hasConfiguration)\r\n {\r\n prevRenderer = getSimpleConfigurationPreviewRanderer(mimeTypes, parameters);\r\n }\r\n\r\n else\r\n {\r\n prevRenderer = null;\r\n }\r\n }\r\n\r\n if (prevRenderer != null)\r\n {\r\n cachedConfig.put(prevRenderer.getClass().getCanonicalName(), parameters);\r\n for (String mime : mimeTypes)\r\n {\r\n cachedRenderer.put(mime, prevRenderer);\r\n }\r\n }\r\n }\r\n return prevRenderer;\r\n }",
"public void setEngine(Engine e) {\n engine = e;\n if (e.engineValid) {\n setOriginalWalkMP(calculateWalk());\n }\n }",
"void render(Object rendererTool);",
"public void addCamera(Camera cam) \r\n\t{ \r\n\t\tCameraSet.addElement(cam);\r\n\t\tcam.setRenderer(this);\r\n\t}",
"public void registerRenderInformation()\n\t{\n\t //unused server side. -- see ClientProxy for implementation\n\t}",
"public interface IMainRendererFactory {\n\t\n\t/**\n\t * Return the render.\n\t * @param view the view for this render.\n\t */\n\tRenderer getRenderer(String view);\n\t\n\t/**\n\t * The extension of the view.\n\t * <p>\n\t * It must start with dot char \".\"\n\t * Example: \".html\" or \".ftl\"\n\t * </p>\n\t */\n\tString getViewExtension();\n}",
"public void add(ELResolver elResolver) {\n/* 75 */ if (elResolver == null) {\n/* 76 */ throw new NullPointerException();\n/* */ }\n/* */ \n/* 79 */ if (this.size >= this.elResolvers.length) {\n/* 80 */ ELResolver[] newResolvers = new ELResolver[this.size * 2];\n/* 81 */ System.arraycopy(this.elResolvers, 0, newResolvers, 0, this.size);\n/* 82 */ this.elResolvers = newResolvers;\n/* */ } \n/* */ \n/* 85 */ this.elResolvers[this.size++] = elResolver;\n/* */ }",
"public String getEngine() {\n return this.engine;\n }",
"@Override\r\n\tpublic void configEngine(Engine me) {\n\r\n\t}",
"void addFramework(FrameworkContext fw) {\n bundleHandler.addFramework(fw);\n synchronized (wrapMap) {\n if (debug == null) {\n debug = fw.debug;\n }\n framework.add(fw);\n }\n }",
"protected void attach(\r\n FacesConfigBean owner)\r\n {\r\n super.attach(owner);\r\n Iterator<RendererBean> renderers = renderers();\r\n while (renderers.hasNext())\r\n {\r\n RendererBean renderer = renderers.next();\r\n renderer.attach(owner);\r\n }\r\n }",
"public TemplateEngine getEngine( String name );",
"public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name) { throw new RuntimeException(\"Stub!\"); }",
"public void addProvider() {\n\t\tproviderDatabase.addProvider();\n\t\t\n\t}",
"<T extends EventDetector> void addEventDetector(T detector);",
"@Override\n public void initEngine() {\n \n }",
"@Override\n public void initEngine() {\n \n }",
"public void renderOccurred (RendererEvent e) {\n updateWidgets();\n }",
"public static void addInterpreter(LanguageInterpreterDescriptor interpreter) {\r\n\t\tINTERPRETERS.add(interpreter);\r\n\t}",
"@Override\n public RenderKit getRenderKit(String renderKitId) {\n return cdiManager.getInstance(RenderKit.class, new ServeRenderKitIdLiteral(renderKitId));\n }",
"public void addPlatform( String resultsDir , String libraryDir , String plotName ) {\n Platform p = new Platform();\n p.resultsDir = resultsDir;\n p.libraryDir = libraryDir;\n p.plotName = plotName;\n\n platforms.add(p);\n }",
"static public void registerWithVideoIO() { // add FFMPeg video types, if\n\t\t\t\t\t\t\t\t\t\t\t\t// available\n\t\ttry {\n\t\t\tVideoIO.addVideoEngine(new FFMPegVideoType());\n\t\t\t// register all supported audio/video types with ffmpeg\n\t\t\tav_register_all();\n\t\t\t// add common video types shared with QuickTime\n\t\t\tfor (String ext : VideoIO.VIDEO_EXTENSIONS) { // {\"mov\", \"avi\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"mp4\"}\n\t\t\t\tVideoFileFilter filter = new VideoFileFilter(ext,\n\t\t\t\t\t\tnew String[] { ext });\n\t\t\t\tFFMPegVideoType ffmpegType = new FFMPegVideoType(filter);\n\t\t\t\tVideoIO.addVideoType(ffmpegType);\n\t\t\t\tResourceLoader.addExtractExtension(ext);\n\t\t\t}\n\t\t\t// add additional ffmpeg types\n\t\t\t// FLV\n\t\t\tVideoFileFilter filter = new VideoFileFilter(\n\t\t\t\t\t\"flv\", new String[] { \"flv\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tVideoIO.addVideoType(new FFMPegVideoType(filter));\n\t\t\tResourceLoader.addExtractExtension(\"flv\"); //$NON-NLS-1$\n\t\t\t// 3GP\n\t\t\tfilter = new VideoFileFilter(\"3gp\", new String[] { \"3gp\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tFFMPegVideoType vidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"3gp\"); //$NON-NLS-1$\n\t\t\t// WMV\n\t\t\tfilter = new VideoFileFilter(\"asf\", new String[] { \"wmv\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tVideoIO.addVideoType(new FFMPegVideoType(filter));\n\t\t\tResourceLoader.addExtractExtension(\"wmv\"); //$NON-NLS-1$\n\t\t\t// DV\n\t\t\tfilter = new VideoFileFilter(\"dv\", new String[] { \"dv\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"dv\"); //$NON-NLS-1$\n\t\t\t// MTS\n\t\t\tfilter = new VideoFileFilter(\"mts\", new String[] { \"mts\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"mts\"); //$NON-NLS-1$\n\t\t\t// M2TS\n\t\t\tfilter = new VideoFileFilter(\"m2ts\", new String[] { \"m2ts\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"m2ts\"); //$NON-NLS-1$\n\t\t\t// MPG\n\t\t\tfilter = new VideoFileFilter(\"mpg\", new String[] { \"mpg\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"mpg\"); //$NON-NLS-1$\n\t\t\t// MOD\n\t\t\tfilter = new VideoFileFilter(\"mod\", new String[] { \"mod\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"mod\"); //$NON-NLS-1$\n\t\t\t// OGG\n\t\t\tfilter = new VideoFileFilter(\"ogg\", new String[] { \"ogg\", \"ogv\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"mod\"); //$NON-NLS-1$\n\t\t\tfilter = new VideoFileFilter(\"webm\", new String[] {\"webm\"}); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"webm\"); //$NON-NLS-1$\n\t\t} catch (Exception ex) { // ffmpeg not working\n\t\t\tOSPLog.config(\"ffmpeg exception: \" + ex.toString()); //$NON-NLS-1$\n\t\t} catch (Error er) { // ffmpeg not working\n\t\t\tOSPLog.config(\"ffmpeg error: \" + er.toString()); //$NON-NLS-1$\n\t\t}\n\t}",
"public void setRenderer(WorldDisplayRenderer renderer) {\n this.renderer = renderer;\n }",
"public interface Renderer\n {\n public void init();\n public int[] getConfigSpec();\n public void sizeChanged(GL10 gl, int width, int height);\n public boolean drawFrame(GL10 gl);\n }",
"public void addEvaluatorDefinition(EvaluatorDefinition def) {\r\n this.evaluatorRegistry.addEvaluatorDefinition( def );\r\n }",
"public void start(EglBase.Context renderEGLContext) {\n initPeerConnectFactory(renderEGLContext);\n }",
"public void setEngineId(String engineId)\n {\n this.engineId = engineId;\n }",
"void dynamicRendering();",
"public void setEndogenousEngine(EnvironmentEndogenousEngine engine) {\n\t\tthis.endogenousEngine = engine;\n\t}",
"public void addFamilies() {\n GraphicsEnvironment env =\n GraphicsEnvironment.getLocalGraphicsEnvironment();\n family_list = env.getAvailableFontFamilyNames(); /*FAULT:: family_list = new String[10]; */\n for (int i = 0; i < family_list.length; i++) {\n families.addItem(family_list[i]);\n }\n\n\n\n }",
"public void registerTileEntitySpecialRenderer()\n {\n }",
"@Override\r\n\tpublic String setEngineType() {\n\t\treturn null;\r\n\t}",
"public void render(GameContainer gc, GameManager gm, Renderer r) {\n }",
"public void setTurboEngine(Engine engine) {\n System.out.println(\"Car.setEngine\");\n this.engine = engine;\n }",
"public static void addAlgorithmProvider(final IAlgorithmProvider provider) {\n\n //providers are added at the beginning of the array, because models and scripts might depend on them\n m_AlgorithmProviders.add(0, provider);\n\n }",
"public void addDriver(Driver driver) {\n drivers.put(driver);\n }",
"static void addViewport(Viewport viewport) { viewports.add(viewport); }",
"static void removeRenderer(Renderer renderer) { renderers.remove(renderer); }",
"@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}",
"public static Map<String, ProcessEngine> getProcessEngines() {\n return processEngines;\n }",
"@Override\n\tpublic void acceptEngineVisitor(\n\t\t\tEngineVisitor engineInterfaceVisitor) {\n\t\t\n\t\tengineInterfaceVisitor.visit(this);\n\n\t}",
"public void addTheme(Theme theme){\n themes.add(theme);\n }",
"public void queueEvent(Runnable r) {\n renderqueue.add(r);\n }",
"private void setupRenderer() {\n mSurfaceView.setEGLContextClientVersion(2);\n mRenderer = new WiFiAugmentedRealityRenderer(this,\n new WiFiAugmentedRealityRenderer.RenderCallback() {\n private double lastRenderedTimeStamp;\n\n @Override\n public void preRender() {\n // This is the work that you would do on your main OpenGL render thread.\n\n try {\n // Synchronize against concurrently disconnecting the service triggered\n // from the UI thread.\n synchronized (WiFiAugmentedRealityActivity.this) {\n // We need to be careful to not run any Tango-dependent code in the\n // OpenGL thread unless we know the Tango service to be properly\n // set-up and connected.\n if (!mIsConnected) {\n return;\n }\n\n // Connect the Tango SDK to the OpenGL texture ID where we are\n // going to render the camera.\n // NOTE: This must be done after both the texture is generated\n // and the Tango service is connected.\n if (mConnectedTextureIdGlThread != mRenderer.getTextureId()) {\n mTango.connectTextureId(\n TangoCameraIntrinsics.TANGO_CAMERA_COLOR,\n mRenderer.getTextureId());\n mConnectedTextureIdGlThread = mRenderer.getTextureId();\n Log.d(TAG, \"connected to texture id: \" +\n mRenderer.getTextureId());\n\n // Set-up scene camera projection to match RGB camera intrinsics\n mRenderer.setProjectionMatrix(\n projectionMatrixFromCameraIntrinsics(mIntrinsics));\n }\n // If there is a new RGB camera frame available, update the texture\n // and scene camera pose.\n if (mIsFrameAvailableTangoThread.compareAndSet(true, false)) {\n // {@code mRgbTimestampGlThread} contains the exact timestamp at\n // which the rendered RGB frame was acquired.\n mRgbTimestampGlThread =\n mTango.updateTexture(TangoCameraIntrinsics.\n TANGO_CAMERA_COLOR);\n\n // Get the transform from color camera to Start of Service\n // at the timestamp of the RGB image in OpenGL coordinates.\n //\n // When drift correction mode is enabled in config file, we need\n // to query the device with respect to Area Description pose in\n // order to use the drift corrected pose.\n //\n // Note that if you don't want to use the drift corrected pose,\n // the normal device with respect to start of service pose is\n // still available.\n TangoSupport.TangoMatrixTransformData transform =\n TangoSupport.getMatrixTransformAtTime(\n mRgbTimestampGlThread,\n TangoPoseData\n .COORDINATE_FRAME_AREA_DESCRIPTION,\n TangoPoseData.COORDINATE_FRAME_CAMERA_COLOR,\n TangoSupport.TANGO_SUPPORT_ENGINE_OPENGL,\n TangoSupport.TANGO_SUPPORT_ENGINE_OPENGL,\n 0);\n if (transform.statusCode == TangoPoseData.POSE_VALID) {\n\n mRenderer.updateViewMatrix(transform.matrix);\n double deltaTime = mRgbTimestampGlThread\n - lastRenderedTimeStamp;\n lastRenderedTimeStamp = mRgbTimestampGlThread;\n }\n// } else {\n// // When the pose status is not valid, it indicates tracking\n// // has been lost. In this case, we simply stop rendering.\n// //\n// // This is also the place to display UI to suggest the user\n// // walk to recover tracking.\n// Log.w(TAG, \"Could not get a valid transform at time \" +\n// mRgbTimestampGlThread);\n// }\n }\n }\n // Avoid crashing the application due to unhandled exceptions\n } catch (TangoErrorException e) {\n Log.e(TAG, \"Tango API call error within the OpenGL render thread\", e);\n } catch (Throwable t) {\n Log.e(TAG, \"Exception on the OpenGL thread\", t);\n }\n }\n });\n\n // Set the starting position and orientation of the Earth and Moon respect the OpenGL frame.\n Matrix.setIdentityM(mOpenGLTEarthMoonCenter, 0);\n Matrix.translateM(mOpenGLTEarthMoonCenter, 0, 0, 0, -1f);\n Matrix.setIdentityM(mEarthMoonCenterTEarth, 0);\n Matrix.setIdentityM(mEarthMoonCenterTMoonRotation, 0);\n Matrix.setIdentityM(mEarthMoonCenterTTranslation, 0);\n Matrix.translateM(mEarthMoonCenterTTranslation, 0, 0.5f, 0, 0);\n\n mSurfaceView.setRenderer(mRenderer);\n }",
"@Override\n public void setRenderer(Object arg0)\n {\n \n }",
"public void addSoftware(Software software){\n products.add (software);\n }",
"public void add(String name, FileHandle font) {\n if (contains(name)) {\n return;\n }\n generators.put(name, new FreeTypeFontGenerator(font));\n }",
"private void processRenderFunction() {\n if (!hasInterface(processingEnv, component.asType(), HasRender.class)) {\n return;\n }\n\n componentExposedTypeBuilder.addMethod(MethodSpec\n .methodBuilder(\"vg$render\")\n .addModifiers(Modifier.PUBLIC)\n .addAnnotation(JsMethod.class)\n .returns(VNode.class)\n .addParameter(CreateElementFunction.class, \"createElementFunction\")\n .addStatement(\"return super.render(new $T(createElementFunction))\", VNodeBuilder.class)\n .build());\n\n addMethodToProto(\"vg$render\");\n\n // Register the render method\n optionsBuilder.addStatement(\"options.addHookMethod($S, p.$L)\", \"render\", \"vg$render\");\n }",
"public int getEngines() {\n return engines;\n }",
"@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n Log.d(LOGTAG, \"GLRenderer.onSurfaceCreated\");\n\n initRendering();\n\n vuforiaAppSession.onSurfaceCreated();\n }",
"public static boolean recordSearchEngineTypeAfterChoice() {\n if (!isSearchEnginePossiblyDifferent()) return false;\n\n @SearchEngineType\n int previousSearchEngineType = getPreviousSearchEngineType();\n @SearchEngineType\n int currentSearchEngineType = getDefaultSearchEngineType();\n boolean didChangeEngine = previousSearchEngineType != currentSearchEngineType;\n if (didChangeEngine) {\n RecordHistogram.recordEnumeratedHistogram(\n \"Android.SearchEngineChoice.ChosenSearchEngine\", currentSearchEngineType,\n SearchEngineType.SEARCH_ENGINE_MAX);\n }\n removePreviousSearchEngineType();\n return didChangeEngine;\n }",
"@Override\n\t\tpublic Engine onLoadEngine() {\n\t\t\tToast.makeText(this, \"Touch the screen to add objects.\", Toast.LENGTH_LONG).show();\n\t\t\tfinal Camera camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);\n\t\t\tfinal EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), camera);\n\t\t\tengineOptions.getTouchOptions().setRunOnUpdateThread(true);\n\t\t\treturn new Engine(engineOptions);\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n public void register()\n {\n this.phpProcessor.registerProcessorExtension(this);\n \n // Register the node type if specified\n if (this.nodeType != null)\n {\n try\n {\n QName type = QName.createQName(this.nodeType);\n Class clazz = Class.forName(this.extensionClass); \n this.nodeFactory.addNodeType(type, clazz);\n }\n catch (ClassNotFoundException exception)\n {\n throw new PHPProcessorException(\"Unable to load node type (\" + this.extensionClass + \")\", exception);\n }\n }\n }",
"public RenderingEngine(Application application)\n\t{\n\t\tthis.application = application;\n\t\t\n\t\tclearColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);\n\t\toverlayBrightness = 1.0f;\n\t\t\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t\t\n\t\tglEnable(GL_TEXTURE_2D);\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\n\t\tglEnable(GL_BLEND);\n\t}"
] | [
"0.6079093",
"0.6079093",
"0.58512604",
"0.58507854",
"0.5748265",
"0.5714103",
"0.5650579",
"0.55841935",
"0.5580882",
"0.557505",
"0.5560359",
"0.5437436",
"0.54160285",
"0.53886306",
"0.53276044",
"0.52756053",
"0.52687013",
"0.52597934",
"0.521597",
"0.51511717",
"0.51163906",
"0.5090143",
"0.50753564",
"0.49828938",
"0.49812528",
"0.49599367",
"0.4958799",
"0.4954659",
"0.49374315",
"0.4928801",
"0.49165633",
"0.4883504",
"0.4847433",
"0.4832059",
"0.48254696",
"0.47189477",
"0.47098646",
"0.46977788",
"0.46863446",
"0.4682734",
"0.46620536",
"0.46511278",
"0.46285722",
"0.46228933",
"0.46204385",
"0.46181774",
"0.45966262",
"0.45829248",
"0.45757517",
"0.4571921",
"0.45668295",
"0.4563402",
"0.45497042",
"0.45485488",
"0.4527693",
"0.45182532",
"0.45050144",
"0.4501842",
"0.44975653",
"0.44920123",
"0.44852608",
"0.4478758",
"0.4478758",
"0.4463585",
"0.4462113",
"0.44605872",
"0.44603714",
"0.4455238",
"0.4436357",
"0.44354925",
"0.4426811",
"0.44059274",
"0.4403477",
"0.43953124",
"0.4393237",
"0.43850255",
"0.4379936",
"0.4377825",
"0.43698406",
"0.43663147",
"0.4363664",
"0.43550774",
"0.43533182",
"0.43524224",
"0.43380544",
"0.4335812",
"0.43355614",
"0.4334507",
"0.43122244",
"0.4311044",
"0.43096942",
"0.43071914",
"0.42959565",
"0.42934263",
"0.42904922",
"0.4279418",
"0.42643762",
"0.42628562",
"0.42589384",
"0.42551538"
] | 0.7244118 | 0 |
Remove a render engine from the avaialble render engines | void removeRenderEngine(String context, LoginRenderEngine vengine); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void removeRenderer(Renderer renderer) { renderers.remove(renderer); }",
"public void removeRenderer(Integer idGCodeProvider) throws GkException{\n\t\tRS274GCodeRenderer renderer = getRendererByGCodeProvider(idGCodeProvider);\n\t\texecutionService.removeExecutionListener(renderer);\n\t\tcacheRenderer.remove(renderer);\n\t\trenderer.destroy();\n\t}",
"public void destroy() {\n renderer.destroy();\n }",
"@Override\n protected void onDestroy() {\n engine = null;\n\n super.onDestroy();\n }",
"public void engineOff(){\n engine = false;\n }",
"public final InvokeScriptedProcessor removeScriptEngine() {\n properties.remove(SCRIPT_ENGINE_PROPERTY);\n return this;\n }",
"void unsetSurfaceRefs();",
"public void unRender() {\n\t\tif (this.isPlaying) {\n\t\t\ttry {\n\t\t\t\tthis.mMediaPlayer.stop();\n\t\t\t\tLog.w(\"AUDIO PLAYER\", \"should have just stopped\");\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void unregister(ProcessEngine processEngine) {\n processEngines.remove(processEngine.getName());\n }",
"protected void destroy() {\n final RenderObject me = this;\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n GameRenderer.s_instance.removeRenderObject(me);\n }\n });\n }",
"@VisibleForTesting\n static void removePreviousSearchEngineType() {\n SharedPreferencesManager.getInstance().removeKey(\n ChromePreferenceKeys.SEARCH_ENGINE_CHOICE_DEFAULT_TYPE_BEFORE);\n }",
"void updateRenderEngine() {\n if (renderEngine == null)\n renderEngine = this.game.p;\n }",
"public void remove(String name) {\n FreeTypeFontGenerator generator = generators.remove(name);\n if (generator != null) {\n generator.dispose();\n }\n Map<Integer, BitmapFont> fonts = bitmapFonts.remove(name);\n if (fonts != null) {\n for (BitmapFont font : fonts.values()) {\n font.dispose();\n }\n }\n }",
"public void destroy() {\n\t\tfor (ANodeAttributeRenderer attributeRenderer : attributeRenderers) {\n\t\t\tattributeRenderer.unregisterPickingListeners();\n\t\t}\n\t}",
"private void leaveRenderGroups() {\r\n if (onePageDataModel.page != null) {\r\n for (CustomerBean uiCustomerBean : uiCustomerBeans) {\r\n renderManager.getOnDemandRenderer(uiCustomerBean.getCustomer().getCustomernumber().toString()).remove(this);\r\n }\r\n }\r\n }",
"public void setEngineOff();",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n strategyWebview.removeAllViews();\n strategyWebview.destroy();\n }",
"@Override\n protected void unregisterVisuals() {\n Map visualPartMap = this.getViewer().getVisualPartMap();\n visualPartMap.remove(getFigure().getLabel());\n visualPartMap.remove(getFigure().getCheckBox());\n super.unregisterVisuals();\n }",
"void removeExistingGlue() {\r\n\t\tfor (int i = outputStream.size() - 1; i >= 0; i--) {\r\n\t\t\tRTObject c = outputStream.get(i);\r\n\t\t\tif (c instanceof Glue) {\r\n\t\t\t\toutputStream.remove(i);\r\n\t\t\t} else if (c instanceof ControlCommand) { // e.g.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// BeginString\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\toutputStreamDirty();\r\n\t}",
"private void unbindTexturedModel() {\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL20.glDisableVertexAttribArray(1);\n\t\tGL20.glDisableVertexAttribArray(2);\n\t\t\t\t\n\t\t// Then also have to unbind the VAO, instead of putting a ID in, we just put in 0\n\t\tGL30.glBindVertexArray(0);\n\t}",
"@Override\n\tpublic void removeRenderingExceptionListener(RenderingExceptionListener listener) {\n\n\t}",
"void removeFramework(FrameworkContext fw) {\n bundleHandler.removeFramework(fw);\n synchronized (wrapMap) {\n for (Iterator<Map.Entry<String, URLStreamHandlerWrapper>> i = wrapMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry<String, URLStreamHandlerWrapper> e = i.next();\n if ((e.getValue()).removeFramework(fw)) {\n i.remove();\n }\n }\n framework.remove(fw);\n if (debug == fw.debug) {\n if (framework.isEmpty()) {\n debug = null;\n } else {\n debug = framework.get(0).debug;\n }\n }\n }\n }",
"private void unbindGameTerrain(){\r\n\t\t//Disable the vertex position attribute from VAO\r\n\t\tGL20.glDisableVertexAttribArray(0);\r\n\t\t//Disable the texture coordinate attribute from VAO\r\n\t\tGL20.glDisableVertexAttribArray(1);\r\n\t\t//Disable the normal coordinate attribute from VAO\r\n\t\tGL20.glDisableVertexAttribArray(2);\r\n\t\t//Unbind\r\n\t\tGL30.glBindVertexArray(0);\r\n\t}",
"@Override\n public void cleanup(GL2 gl)\n {\n for(int i = 0; i < 6; i++)\n {\n Integer t_id = (Integer)textureIdMap[i].remove(gl);\n if(t_id != null)\n {\n int tex_id_tmp[] = { t_id.intValue() };\n gl.glDeleteTextures(1, tex_id_tmp, 0);\n }\n }\n }",
"@Override\n\t\tpublic void onDestroy() {\n\t\t\tsuper.onDestroy();\n\t\t\tmEngin.stop_engine();\n\t\t}",
"void removePreviewGenerator(PreviewGenerator generator) {\n synchronized (previewGenerators) {\n previewGenerators.remove(generator);\n }\n }",
"public void removeChangeListener(ChangeListener stackEngineListener);",
"protected void unhookViewers() {\n\t}",
"public void destroy() {\n World.getInstance().getTracked().remove(this); // unregister self from World\n }",
"protected void uninstallComponents() {\n }",
"Form removeDefaultRendererForElementClass(Class<? extends Element> clazz);",
"@Override\n public Object getRenderer()\n {\n return null;\n }",
"public synchronized static void destroy() {\n if (isInitialized()) {\n Map<String, ProcessEngine> engines = new HashMap<String, ProcessEngine>(processEngines);\n processEngines = new HashMap<String, ProcessEngine>();\n\n for (String processEngineName : engines.keySet()) {\n ProcessEngine processEngine = engines.get(processEngineName);\n try {\n processEngine.close();\n } catch (Exception e) {\n log.error(\"exception while closing {}\", (processEngineName == null ? \"the default process engine\" : \"process engine \" + processEngineName), e);\n }\n }\n\n processEngineInfosByName.clear();\n processEngineInfosByResourceUrl.clear();\n processEngineInfos.clear();\n\n setInitialized(false);\n }\n }",
"private void removeVisualization() {\n\t\tif(this.visualization != null) {\n\t\t\tthis.visualization.dispose();\n\t\t}\n\t}",
"public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }",
"protected void uninstallComponents() {\n\t}",
"public void renderOccluder(boolean renderWithLight);",
"public void onDestroy(Context context) {\n runtimeComponentMap.remove(context);\n\n ViewInspectorToolbar toolbarInstance = toolbarMap.get(context);\n if (toolbarInstance != null) windowManager.removeViewImmediate(toolbarInstance);\n }",
"public synchronized void removeRendererListener (MauiApplication aMauiApplication,\n\t\t\t\t\t\t\t\t\t\t\t\t\t I_RendererListener aRendererListener)\n\t{\n\t\tString theApplicationName = (aMauiApplication == null ? \"null\" :\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taMauiApplication.getApplicationAddress ());\n\t\tVector theListeners = (Vector) rendererListeners.get (theApplicationName);\n\t\tif (theListeners != null)\n\t\t{\t\n\t\t\ttheListeners.remove (aRendererListener);\n\t\t\tif (theListeners.size () == 0)\n\t\t\t{\n\t\t\t\trendererListeners.remove (theApplicationName);\n\t\t\t}\n\t\t}\n\t}",
"public void unbind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);}",
"public void removeAllScreens() {\n Gdx.app.log(\"TowerDefence::removeAllScreens()\", \"--\");\n if (screensArray != null) {\n// for(Screen screen : screensArray) {\n// screen.dispose(); // Дич ебаная. с этими скринами у нас точно какие то проблемы...\n// }\n screensArray.clear();\n// int size = screensArray.size;\n// if (size > 0) {\n// for (int i = size - 1; i >= 0; i--) {\n// Screen screen = screensArray.get(i);\n// if (screen != null) {\n//// screen.hide();\n// screensArray.removeIndex(size - 1);\n// }\n// }\n// }\n }\n }",
"public void dispose() {\r\n // Remove from existing Customer render groups.\r\n leaveRenderGroups();\r\n }",
"void addRenderEngine(String context, LoginRenderEngine vengine);",
"private void endRender() {\n //Restore state by unbinding everything\n glDisableVertexAttribArray(0);\n glDisableVertexAttribArray(1);\n glDisableVertexAttribArray(2);\n glDisableVertexAttribArray(3);\n glDisableVertexAttribArray(4);\n glBindVertexArray(0);\n\n glBindTexture(GL_TEXTURE_2D, 0);\n }",
"public static void stopCaching() {\n\t\t/*\n\t\t * remove existing cache. Also, null implies that they are not be cached\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = null;\n\t\t\t}\n\t\t}\n\t}",
"public void remove() {\r\n // rather than going through replace(), just reinitialize the StyledText,\r\n // letting the old data structures fall on the floor\r\n fCharBuffer = new CharBuffer();\r\n fStyleBuffer = new StyleBuffer(this, AttributeMap.EMPTY_ATTRIBUTE_MAP);\r\n fParagraphBuffer = new ParagraphBuffer(fCharBuffer);\r\n fTimeStamp += 1;\r\n fDamagedRange[0] = fDamagedRange[1] = 0;\r\n }",
"public void cleanup(Entity e)\n {\n\t\tif(my_mesh != null)\n\t\t{\n\t\t\tRenderManagerCallback rc = new RenderManagerCallback()\n\t\t\t{\n\t\t\t\tpublic void onSuccess()\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(\"Removing from world\");\n\t\t\t\t\tmy_geom.removeFromParent();\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tRenderManager.addCallback(rc);\n\t\t}\n }",
"public void removeProvider(EvaluatorProvider provider) {\n\t\tregistry.remove(provider);\n\t}",
"public void unbind()\n {\n glBindTexture(GL_TEXTURE_2D, 0);\n }",
"public void removePalette(Palette palette);",
"public void destroyOpenGL(Drawable[] drawables) {\n GL20.glDisableVertexAttribArray(0);\n\n for (Drawable drawable : drawables) {\n // Delete the VBO\n GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, 0);\n GL15.glDeleteBuffers(drawable.getVertexBufferObjectId());\n\n GL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, 0);\n GL15.glDeleteBuffers(drawable.getVertexIndexBufferObjectId());\n\n // Delete the VAO\n GL30.glBindVertexArray(0);\n GL30.glDeleteVertexArrays(drawable.getOpenGLVaoId());\n }\n\n Display.destroy();\n }",
"public void clearEngineCrits() {\n for (int i = 0; i < locations(); i++) {\n removeCriticals(i, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_ENGINE));\n }\n }",
"@Override\n\tpublic void removeSurface(final int id) {\n\t\tmRendererTask.removeSurface(id);\n\t}",
"public void unbind()\n {\n glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, this.ID);\n }",
"public void unloadGameTextures()\r\n {\n }",
"public void cleanUp(){\n glDeleteTextures(ID);\n }",
"public void clear(String name) {\n/* 95 */ this.texturesLinear.remove(name);\n/* 96 */ this.texturesNearest.remove(name);\n/* */ }",
"public synchronized void clear() {\n synchronized (this.factories) {\n for (Map.Entry<String, CachedAnnotator> entry : new HashSet<>(this.factories.entrySet())) {\n // Unmount the annotator\n Optional.ofNullable(entry.getValue()).flatMap(ann -> Optional.ofNullable(ann.annotator.getIfDefined())).ifPresent(Annotator::unmount);\n // Remove the annotator\n this.factories.remove(entry.getKey());\n }\n }\n }",
"@Override\n protected void onDestroy() {\n DataUpdater.unregisterDataUpdateListener(DataUpdater.DATA_UPDATE_TYPE_AREAE_XZ, this);\n DataUpdater.unregisterDataUpdateListener(DataUpdater.DATA_UPDATE_TYPE_AREAE_BUS, this);\n DataUpdater.unregisterDataUpdateListener(DataUpdater.DATA_UPDATE_TYPE_BIGCATES, this);\n\n super.onDestroy();\n }",
"public void resetPlugin(){\n\t\tpriorj.getTechniques().clear();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tgeneralServices.getCallbackApi().removeReplayOpsPopupMenuItem(\n\t\t\t\tshowSc2ConverterForPatternMiningItemHandler);\n\t}",
"private void uninstall()\r\n {\r\n // do not listen to any other key strokes\r\n editor.getViewer().removeVerifyKeyListener(this);\r\n\r\n editor.getViewer().getTextWidget().removeFocusListener(this);\r\n\r\n editor.setStatusMessage(\"\");\r\n }",
"void unsetInstallmentType();",
"@Override\n\tpublic void destroy(GL2 gl) {\n\t\t\n\t}",
"@Override\n\tpublic void destroy(GL2 gl) {\n\t\t\n\t}",
"private void renderEngine() {\r\n GL11.glDisable(GL11.GL_LIGHTING);\r\n\r\n GL11.glEnable(GL11.GL_BLEND);\r\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);\r\n\r\n shotTexture.bind();\r\n engine.render();\r\n\r\n GL11.glDisable(GL11.GL_BLEND);\r\n }",
"public void supprimerHacker() {\n if (hacker != null) {\n g.getChildren().remove(hacker);\n\n }\n }",
"public void stopEngine(){\r\n isEngineRunning = false;\r\n System.out.println(\"[i] Engine is no longer running.\");\r\n }",
"protected void delete()\t{\n\t\tglUseProgram(0);\n\t\t\n\t\tglDetachShader(programID, vShaderID);\n\t\tglDetachShader(programID, fShaderID);\n\t\t\n\t\tglDeleteShader(vShaderID);\n\t\tglDeleteShader(fShaderID);\n\t\t\n\t\tglDeleteProgram(programID);\t\n\t}",
"public void removeRepresentations()\r\n\t{\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public void unexport() {\n String protocolKey = null;\n String ipPort = url.getServerPortStr();\n\n Exporter<T> exporter = (Exporter<T>) exporterMap.remove(protocolKey);\n\n if (exporter != null) {\n exporter.destroy();\n }\n ProviderMessageRouter requestRouter = ipPort2RequestRouter.get(ipPort);\n\n if (requestRouter != null) {\n requestRouter.removeProvider(provider);\n }\n }",
"private void destroyDisplayEditOverlay() {\n\t}",
"void removeComponents()\n {\n JPanel panel = Simulator.getInstance().getPanel(1);\n JLayeredPane jl = (JLayeredPane)panel.getComponent(0);\n Component[] comps = jl.getComponentsInLayer(JLayeredPane.PALETTE_LAYER.intValue());\n int size = comps.length;\n int i=0;\n while(i<size)\n {\n jl.remove(comps[i]);\n i++;\n } \n }",
"public void removeWizard() {\n\t\tyellowWizard = null;\n\t\tplayer.getHintIconsManager().removeAll();\n\t\tplayer.WizardUsed = true;\n\t}",
"public void removeTechnique(Integer typeOfTechnique){\n\t\tpriorj.removeTechnique(typeOfTechnique);\n\t}",
"public static void removeCurrentThreadLib() {\n\t\tcommonLibs.remove();\n\t}",
"protected void remove() {\n injectors.remove();\n }",
"public void cleanUp(){\n for(ShaderProgram sp : shaderlist){\n sp.cleanup();\n }\n }",
"private void removeProvider(MarketDataProvider inProvider)\n {\n activeProvidersByName.remove(inProvider.getProviderName());\n providersByPriority.remove(inProvider);\n }",
"public void onDestroy() {\n LinearLayout linearLayout = this.f15166b;\n if (linearLayout != null) {\n linearLayout.removeAllViews();\n }\n WebView webView = this.f15167c;\n if (webView != null) {\n webView.destroy();\n this.f15167c = null;\n }\n super.onDestroy();\n }",
"private void removeRemoteVideo() {\n if (mRemoteView != null) {\n mRemoteContainer.removeView(mRemoteView);\n }\n mRemoteView = null;\n }",
"public void release() {\n if (mEglDisplay != null && mEglSurface != null && mEglContext != null) {\n EGL14.eglMakeCurrent(this.mEglDisplay, this.mEglSurface, this.mEglSurface, this.mEglContext);\n EGL14.eglDestroySurface(mEglDisplay, mEglSurface);\n EGL14.eglDestroyContext(mEglDisplay, mEglContext);\n EGL14.eglTerminate(mEglDisplay);\n }\n EGL14.eglMakeCurrent(mEglDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);\n }",
"public void onDestroy() {\n WhiteListActivity.super.onDestroy();\n try {\n getLoaderManager().destroyLoader(100);\n getContentResolver().unregisterContentObserver(this.j);\n } catch (Exception e2) {\n Log.e(\"WhiteListActivity\", e2.toString());\n }\n }",
"public void removePanel() \n\t{\n\t\tgame.remove(this);\n\t}",
"public void removeAllFightsystems()\r\n {\n\r\n }",
"@Override\n public void removeGameApp(Handle<GameAppContext> that) \n {\n manager.removeGameApp(that);\n }",
"public void destroy() {\r\n\t\tsuper.destroy();\r\n\t\tBirtEngine.destroyBirtEngine();\r\n\t}",
"public void destroy(){\n\t\tIterator toolIterator = tools.iterator();\n\t\twhile(toolIterator.hasNext()){\n\t\t\tToolBridge tb = (ToolBridge) toolIterator.next();\n\t\t\ttb.terminate();\n\t\t}\n\n\t\tmultiplexingClientServer.stopRunning();\n\t}",
"public void removeScript() {\n scriptHistory = null;\n }",
"public final void destroy(){\n stop();\n LIBRARY.CLEyeDestroyCamera(camera_);\n camera_ = null;\n PS3_LIST_.remove(this);\n }",
"public void unregisterAdapters(IAdapterFactory factory);",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif (web != null) {\r\n\t\t\tweb.clearCache(true);\r\n\t\t\tweb.clearDisappearingChildren();\r\n\t\t\tweb.clearFormData();\r\n\t\t\tweb.clearHistory();\r\n\t\t\tweb.clearMatches();\r\n\t\t\tweb.clearSslPreferences();\r\n\t\t\tweb.clearView();\r\n\t\t}\r\n\t}",
"static void removeViewport(Viewport viewport) { viewports.remove(viewport); }",
"public static void clearRegistry() {\r\n\t\tINTERPRETERS.clear();\r\n\t}",
"public void dispose() {\n // System.out.println(\"NctextuiPaletteWindow dispose me, isEditorVisible=\"+\n // isEditorVisible);\n if (!isEditorVisible) {\n\t \tNctextuiResource.unregisterMouseHandler();\n\t \treturn;\n } else {\n\t \tsuper.dispose();\n\n\t \tNatlCntrsEditor editor = NctextuiResource.getMapEditor();\n\t \t\n if (editor != null) {\n for (IRenderableDisplay display : UiUtil\n .getDisplaysFromContainer(editor)) {\n // System.out.println(\"display \" + display.toString());\n for (ResourcePair rp : display.getDescriptor()\n .getResourceList()) {\n if (rp.getResource() instanceof NctextuiResource) {\n NctextuiResource rsc = (NctextuiResource) rp\n .getResource();\n\t \t\t\t\t\trsc.unload();\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t \tnctextuiPaletteWindow = null;\n\n\t \t/*\n\t \t * remove the workbench part listener\n\t \t */\n\t \tpage.removePartListener(this);\n\t }\n\n \t}",
"protected void dispose()\n {\n TextureLoader.disposeTextures();\n TileRender.dispose();\n EntityRender.dispose();\n ItemRender.dispose();\n fontRender.dispose();\n background_render.dispose();\n target_render.dispose();\n box_render.dispose();\n Shader.disposeAll();\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n if (mFloatLayout != null) {\n mWindowManager.removeView(mFloatLayout);\n }\n tearDownMediaProjection();\n Log.i(TAG, \"application destroy\");\n }",
"public void onDestroy() {\n WebUtils.m12979b((LollipopFixedWebView) mo19852a(R.id.web));\n super.onDestroy();\n }",
"@Override\npublic void remove(VirtualContainer parent, VirtualComponent component) {\n\t\n}",
"public void destroy() {\n Iterator it = components.iterator();\n while (it.hasNext()) {\n PortletComponent comp = (PortletComponent) it.next();\n comp.destroy();\n }\n }"
] | [
"0.74333805",
"0.6418853",
"0.6268817",
"0.6040739",
"0.5987999",
"0.59618783",
"0.5955641",
"0.5889864",
"0.5803404",
"0.5766176",
"0.5760306",
"0.5751501",
"0.57469904",
"0.57305837",
"0.5729722",
"0.5597547",
"0.55933404",
"0.5567263",
"0.55480236",
"0.55008507",
"0.5445145",
"0.5439576",
"0.5413764",
"0.54075044",
"0.5406075",
"0.540473",
"0.53967535",
"0.5387117",
"0.5370908",
"0.5370846",
"0.53505015",
"0.53357244",
"0.53305954",
"0.53295296",
"0.53246045",
"0.53166896",
"0.5283058",
"0.52738875",
"0.5264956",
"0.5253472",
"0.52462304",
"0.52450174",
"0.5222751",
"0.51953536",
"0.51822114",
"0.5181182",
"0.51637745",
"0.5156857",
"0.5133143",
"0.51324195",
"0.5132098",
"0.5128671",
"0.5119769",
"0.5110833",
"0.5106605",
"0.51061076",
"0.5103582",
"0.5103258",
"0.5098895",
"0.5092684",
"0.5089544",
"0.5088191",
"0.5080019",
"0.5075735",
"0.5075735",
"0.5071716",
"0.50702506",
"0.5068892",
"0.5059458",
"0.5059326",
"0.5050161",
"0.504799",
"0.50456935",
"0.5045585",
"0.50377977",
"0.50344115",
"0.5032035",
"0.5031744",
"0.5025841",
"0.5022367",
"0.5017687",
"0.50087607",
"0.50046027",
"0.49968025",
"0.49967206",
"0.49937966",
"0.49826604",
"0.4978353",
"0.49737903",
"0.4972684",
"0.4971086",
"0.49708247",
"0.49694625",
"0.49653983",
"0.49563566",
"0.495352",
"0.49445286",
"0.49389526",
"0.49363256",
"0.49333024"
] | 0.79954106 | 0 |
Reference to the name of a particular user through userID | @Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
mDatabaseUserReference.child(userID).child("name").setValue(username);
// Reference to the IMAGE of a particular user through userID
// Can't pass imageUri
// Get reference to the image stored in Firebase
String downloadUrl = taskSnapshot.getDownloadUrl().toString();
mDatabaseUserReference.child(userID).child("image").setValue(downloadUrl);
// Redirect user back to MainActivity
Intent mainIntent = new Intent(
SetupActivity.this, MainActivity.class
);
startActivity(mainIntent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUserName(int userId);",
"String getUserName(String userId);",
"@Override\n\tpublic String getRealNameByUserId(String userId) {\n\t\tMap<String,Object> map = new HashMap<String, Object>();\n\t\t//Map<String,Object> reqs = new HashMap<String, Object>();\n\t\tmap.put(\"userId\", userId);\n\t\tString sql = \"select * from tp_users where userId=:userId\";\n\t\t//reqs =joaSimpleDao.retrieve(\"tp_users\",map);\n\t\tList<Map<String, Object>> list = joaSimpleDao.queryForList(sql, map);\n\t\treturn list.get(0).get(\"realName\").toString();\n\t}",
"@Override\n\tpublic String nameFind(String user_id) {\n\t\treturn mapper.nameFind(user_id);\n\t}",
"@Override\r\n\tpublic String getFullname(String userId) {\n\t\tif (conn == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tString name = null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT username FROM users WHERE user_id = ? \";\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, userId);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tname = rs.getString(\"username\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn name;\r\n\t}",
"java.lang.String getUserIdOne();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public String getNameByUserId(String userId) {\n\t\treturn service.getNameByUserId(userId);\n\t}",
"public String getUserDisplayName(String userId) {\n return \"Artichoke, Arty\";\n }",
"public String getName() {\n return user.getName();\n }",
"public String getName(int id) {\n\t\tOptional<Contacto> contact = currentUser.getContacts().stream().filter(c -> c.getUserId() == id).findFirst();\n\t\tif (contact.isPresent())\n\t\t\treturn contact.get().getName();\n\t\treturn userCatalog.getUser(id).getName();\n\t}",
"@Override\n\tpublic String getUserNameByUserId(String userId) {\n\t\tMap<String,Object> map = new HashMap<String, Object>();\n\t\tmap.put(\"userId\", userId);\n\t\tString sql = \"select *from tp_users where userId=:userId\";\n\t\tList<Map<String, Object>> list = joaSimpleDao.queryForList(sql, map);\n\t\treturn list.get(0).get(\"userName\").toString();\n\t\t\n\t}",
"@AutoEscape\n\tpublic String getUser_name();",
"public void onGetName(String user,String name);",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _second.getUserName();\n\t}",
"public User getUser(String name);",
"public User getUser(String name);",
"String getUserId();",
"String getUserId();",
"public String getUser_name() {\n return user_name;\n }",
"public String getName(){\n return username;\n\t}",
"public String getNameoftheFriend(String userID){\n\n\t\tif(friendsList.getEntry(userID)!=null){\n\n\t\t\treturn friendsList.getEntry(userID).getName();\n\t\t}\n\t\treturn null;\n\t}",
"public String getName() {\n return (String) getObject(\"username\");\n }",
"public Object userName() {\n return this.userName;\n }",
"String getUserName();",
"String getUserName();",
"public String getName(long id) throws IASException, DBException {\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tconn = factory.getConnection();\n\t\t\tps = conn\n\t\t\t\t\t.prepareStatement(\"SELECT firstName, lastName FROM users WHERE id=?\");\n\t\t\tps.setLong(1, id);\n\t\t\tResultSet rs;\n\t\t\trs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tString result = rs.getString(\"firstname\") + \" \"\n\t\t\t\t\t\t+ rs.getString(\"lastname\");\n\t\t\t\trs.close();\n\t\t\t\tps.close();\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\trs.close();\n\t\t\t\tps.close();\n\t\t\t\tthrow new IASException(\"User does not exist\");\n\t\t\t}\n\n\t\t} catch (SQLException | NamingException e) {\n\t\t\tthrow new DBException(e);\n\t\t} finally {\n\t\t\tDBUtil.closeConnection(conn, ps);\n\t\t}\n\t}",
"public String getName() {\r\n\t\treturn this.userName;\r\n\t}",
"public User getSpecificUser(String username);",
"java.lang.String getUser();",
"public User getUserByName(String username);",
"public User getUserByName(String username);",
"public java.lang.String getUserID() {\n return userID;\n }",
"public void setUser_name(String user_name);",
"public String getUserID() {\r\n return userID;\r\n }",
"@Override\n public String getUserName() {\n return name;\n }",
"public String fetchNameFromId(long id){\n String response = zendeskAPI.makeGetRequest(USER_REQUEST + id + \".json\");\n return JSONParser.parseUserStringForName(response);\n }",
"public static String getUserName(long requestorId)\n\t {\n\t String fullName = StringPool.BLANK;\n\t try\n\t {\n\t User user = UserLocalServiceUtil.getUserById(requestorId);\n\t fullName = user.getFirstName() + StringPool.SPACE + user.getLastName();\n\t } catch (PortalException e)\n\t {\n\t LOGGER.error(\"Failed to find user details...\" + e.getMessage());\n\t } catch (SystemException e)\n\t {\n\t LOGGER.error(\"User not exist....\" + e.getMessage());\n\t }\n\t return fullName;\n\t }",
"@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}",
"@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}",
"public void readUsername(String id){\n databaseReference = FirebaseDatabase.getInstance().getReference(\"Users/\"+ id +\"/username\");\n databaseReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String database_username = dataSnapshot.getValue().toString();\n username.setText(database_username);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Toast.makeText(getActivity(), \"Unable to retrieve username\", Toast.LENGTH_SHORT);\n }\n });\n }",
"public java.lang.String getUserID() {\r\n return userID;\r\n }",
"public User search_userinfo(String user_name);",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"public java.lang.String getUserID() {\n return userID;\n }",
"@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }",
"public String getUserID() {\n return userID;\n }",
"public String showNameUser(){\n String nameUsertoSong = \"\";\n for(int i = 0; i<MAX_USER; i++){\n if(user[i] != null){\n nameUsertoSong += \"[\"+(i+1)+\"]\"+user[i].getUserName()+\"\\n\";\n }\n }\n return nameUsertoSong;\n }",
"public String getUserId(){return userID;}",
"public String getUserId() {\r\n\t\treturn this.userid.getText();\r\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();",
"public void setUserID(java.lang.String value) {\n this.userID = value;\n }",
"public String getUserName(){\n\t\treturn this.userName;\n\t}",
"@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _paper.getUserName();\n\t}",
"public User getUser(String userName);",
"public User getUserByUserName(String userName);",
"public String getName() {\r\n\t\treturn username;\r\n\t}",
"public int search_userid(String user_name);",
"public String getUserID();",
"public String getName() {\n\t\treturn this.username;\n\t}",
"public String getUserName(String userId) throws Exception {\n\t\tString userName = \"\";\n\t\tElement empEL = getUserInfo(userId);\n\t\tif (empEL != null) {\n\t\t\tuserName = empEL.getAttributeValue(\"userName\");\n\t\t}\n\t\treturn userName;\n\t}",
"public User details(String user);",
"public static String getBiblioUser() {\n\t\treturn \"user\";\n\t}",
"public String getUserName();",
"public User whoIsTheUser(String name){\n boolean space5 = false;\n User userPrivate = null;\n for(int i = 0; i<MAX_USER && !space5; i++){\n userPrivate = user[i];\n if(userPrivate.getUserName().equals(name)){\n space5 = true;\n }\n }\n return userPrivate;\n }",
"@Override\n public String toString() {\n return \"ID: \" + userID + \" Name: \" + name;\n }",
"@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}",
"People getObjUser();",
"public java.lang.String getUserid() {\n return userid;\n }",
"public String getUserRealName() {\r\n return userRealName;\r\n }",
"public String getUserName() {\n\t \t return userName; \n\t}",
"public User getUserByUserName(String username);",
"@Override\n public String getUserID() {\n return user_id;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName()\n {\n return userName;\n }",
"public String userNameIndex(int index){\n index = index-1;\n String userName1 = \"\";\n userName1 = user[index].getUserName();\n return userName1;\n }",
"public int getUserID()\n {\n return userID;\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 }",
"String getUser();",
"String getUser();",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }"
] | [
"0.7556332",
"0.75550115",
"0.74310535",
"0.73496485",
"0.7143594",
"0.70481074",
"0.696089",
"0.696089",
"0.696089",
"0.68896",
"0.68626916",
"0.6826401",
"0.67660886",
"0.6745454",
"0.67442477",
"0.6743004",
"0.6729762",
"0.6729762",
"0.6729762",
"0.6699829",
"0.6656908",
"0.6656908",
"0.66454196",
"0.66454196",
"0.663789",
"0.660774",
"0.65989435",
"0.6560736",
"0.6554282",
"0.6506107",
"0.6506107",
"0.6495308",
"0.6495188",
"0.64712644",
"0.64593434",
"0.6457914",
"0.6457914",
"0.6456415",
"0.6448353",
"0.6445728",
"0.64441466",
"0.6414586",
"0.64077705",
"0.64024276",
"0.64024276",
"0.63864315",
"0.638602",
"0.6382341",
"0.6377026",
"0.6377026",
"0.6377026",
"0.6356901",
"0.6345933",
"0.63437945",
"0.6333006",
"0.632979",
"0.63277173",
"0.63120246",
"0.63120246",
"0.63120246",
"0.63120246",
"0.63120246",
"0.63120246",
"0.63120246",
"0.63120246",
"0.63120246",
"0.62998474",
"0.6288198",
"0.62797856",
"0.6278873",
"0.62774485",
"0.6275892",
"0.62730336",
"0.6269565",
"0.62688535",
"0.626314",
"0.625664",
"0.62473166",
"0.6245077",
"0.6242752",
"0.6240275",
"0.6237227",
"0.62344",
"0.6232316",
"0.62310356",
"0.6228972",
"0.6228464",
"0.6227177",
"0.62239826",
"0.6217327",
"0.6212362",
"0.62078387",
"0.6202593",
"0.6202593",
"0.6202593",
"0.6202593",
"0.6199279",
"0.6199279",
"0.61979157",
"0.61979157",
"0.61979157"
] | 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();
jButton2 = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
mentorusername = new javax.swing.JTextField();
mentorpassword = new javax.swing.JPasswordField();
jLabel2 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setResizable(false);
jPanel1.setLayout(null);
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/studentprogresstracking/newback.button.jpg"))); // NOI18N
jButton2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jPanel1.add(jButton2);
jButton2.setBounds(20, 20, 90, 50);
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/studentprogresstracking/mentor_login_label.jpg"))); // NOI18N
jPanel1.add(jLabel3);
jLabel3.setBounds(290, 20, 350, 130);
jPanel2.setBackground(new java.awt.Color(0, 0, 0));
jLabel1.setFont(new java.awt.Font("Liberation Sans", 1, 24)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("USERNAME");
jLabel2.setFont(new java.awt.Font("Liberation Sans", 1, 24)); // NOI18N
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("PASSWORD");
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/studentprogresstracking/8212240_orig.png"))); // NOI18N
jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(176, 176, 176)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap(16, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(10, 10, 10)
.addComponent(mentorusername, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(20, 20, 20)
.addComponent(mentorpassword, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(14, 14, 14))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addGap(17, 17, 17)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mentorusername, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(35, 35, 35)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mentorpassword, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel1.add(jPanel2);
jPanel2.setBounds(250, 220, 420, 230);
jLabel4.setFont(new java.awt.Font("DejaVu Sans", 1, 12)); // NOI18N
jLabel4.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setText("(Your e-mail)");
jPanel1.add(jLabel4);
jLabel4.setBounds(690, 250, 100, 16);
jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/studentprogresstracking/w5.jpg"))); // NOI18N
jPanel1.add(jLabel5);
jLabel5.setBounds(0, 0, 920, 520);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE)
);
pack();
setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public 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 kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public 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 EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\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 JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\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 Carrera() {\n initComponents();\n }",
"public POS1() {\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.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.69452274",
"0.6942602",
"0.6935845",
"0.6931919",
"0.6928187",
"0.6925288",
"0.69251484",
"0.69117147",
"0.6911646",
"0.6892842",
"0.68927234",
"0.6891408",
"0.68907607",
"0.68894386",
"0.68836755",
"0.688209",
"0.6881168",
"0.68787616",
"0.68757504",
"0.68741524",
"0.68721044",
"0.685922",
"0.68570775",
"0.6855737",
"0.6855207",
"0.68546575",
"0.6853559",
"0.6852262",
"0.6852262",
"0.68443567",
"0.6837038",
"0.6836797",
"0.68291426",
"0.6828922",
"0.68269444",
"0.6824652",
"0.682331",
"0.68175536",
"0.68167555",
"0.6810103",
"0.6809546",
"0.68085015",
"0.68083894",
"0.6807979",
"0.68027437",
"0.67950374",
"0.67937446",
"0.67921823",
"0.67911226",
"0.67900467",
"0.6788873",
"0.67881",
"0.6781613",
"0.67669237",
"0.67660683",
"0.6765841",
"0.6756988",
"0.675558",
"0.6752552",
"0.6752146",
"0.6742482",
"0.67395985",
"0.673791",
"0.6736197",
"0.6733452",
"0.67277217",
"0.6726687",
"0.67204696",
"0.67168",
"0.6714824",
"0.6714823",
"0.6708782",
"0.67071444",
"0.670462",
"0.67010295",
"0.67004406",
"0.6699407",
"0.6698219",
"0.669522",
"0.66916007",
"0.6689694"
] | 0.0 | -1 |
Returns true if given hex is clickable and has a highlight and callback attached. | public boolean isClickable(Hex hex) {
for (ClickableHighlightRequest request : requests) {
for (Hex rhex : request.getRegion()) {
if (rhex.equals(hex)) return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isHighlighted();",
"protected boolean hexClicked(Point hex, MouseEvent e)\n {\n int whichTool = tools.selectedTool();\n LinkedList\t\thexes = new LinkedList();\n Point\t\t\tthisHex;\n \n // Add all the affected hexes to our LinkedList\n for (int i = 0; i <= tools.selectedBrushSize(); i++)\n {\n for (int j = 0; j < BrushToolOptions.brushHexSizes[i]; j++)\n {\n thisHex = new Point((int) (hex.getX() + BrushToolOptions.brushX[i][j]),\n (int) (hex.getY() + BrushToolOptions.brushY[hex.getX() % 2 == 1 ? 1 : 0][i][j]));\n \n if (map.validHex(thisHex))\n hexes.add(thisHex);\n }\n }\n \n // Now send it off to see which tool deals with it\n if (tools.selectedTool() == ToolPalette.SELECTIVE_UNDO_TOOL ||\n (e.getModifiers() & InputEvent.BUTTON2_MASK) == InputEvent.BUTTON2_MASK ||\n (e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK)\n {\n return selectiveUndoClicked(hex);\n }\n else if (tools.selectedTool() == ToolPalette.PAINT_TOOL)\n {\n if (prefs.paintType == ToolManager.TERRAIN_ONLY)\n return terrainToolClicked(hexes.listIterator(0));\n else if (prefs.paintType == ToolManager.ELEVATION_ONLY)\n return elevationToolClicked(hexes.listIterator(0));\n else\n return bothToolClicked(hexes.listIterator(0), false);\n }\n else if (tools.selectedTool() == ToolPalette.SELECT_TOOL)\n {\n return selectToolClicked(hexes.listIterator(0), e); \n }\n else if (tools.selectedTool() == ToolPalette.ERASE_TOOL)\n {\n return bothToolClicked(hexes.listIterator(0), true);\t\t// Erase\n }\n \n return false;\n }",
"public boolean containsHex(Hex hex) {\n\t\tif (this.getRectangle().contains(hex.getColumn(), hex.getRow())) {\r\n if (this.getRectangle().getX() + this.getRectangle().getWidth() == hex.getColumn() + 1) {\r\n \tif (hex.getRow() % 2 == 1) {\r\n \t\treturn true;\r\n \t} else {\r\n \t\treturn false;\r\n \t}\r\n }\r\n return true;\r\n }\r\n\t\t\r\n\t\t// For FA games run through all the additional hexes in the list\r\n\t\tif (this.points!=null) {\r\n\t\t\tfor (int i=0; i<this.points.size();i=i+2) {\r\n\t\t\t\tif (this.points.get(i)==hex.getColumn()) {\r\n\t\t\t\t\tif (this.points.get(i+1)==hex.getRow()) {\r\n\t\t\t\t\t\treturn true;\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 false;\r\n\t\t\r\n\t}",
"public boolean isMouseClicked() {\n\t\treturn input.isMouseClicked();\n\t}",
"private boolean hexes() {\r\n return OPT(GO() && hex() && hexes());\r\n }",
"public boolean isHex()\n {\n return hex;\n }",
"private boolean checkColor(boolean walkingHere) {\n\t\tint x = getMouse().getPosition().x,\n\t\t\ty = getMouse().getPosition().y + 1,\n\t\t\ti = 0;\n\t\t\n\t\tdo {\n\t\t\tsleep(10);\n\t\t\tc = getColorPicker().colorAt(x, y);\n\t\t\tif (c.getRed() == 255 && c.getGreen() == 0 && c.getBlue() == 0) {\n\t\t\t\tdebug(\"Interact color check: \"+(walkingHere ? \"failure\" : \"success\")+\" (red)!\");\n\t\t\t\treturn walkingHere ? false : true;\n\t\t\t}\n\t\t\tif (c.getRed() == 255 && c.getGreen() == 255 && c.getBlue() == 0) {\n\t\t\t\twarning(\"Interact color check: \"+(!walkingHere ? \"failure\" : \"success\")+\" (yellow)!\");\n\t\t\t\treturn walkingHere ? true : false;\n\t\t\t}\n\t\t} while (i++ < 50);\n\t\t\n\t\t// Default to true, as no color we want was found!\n\t\twarning(\"Interact color check: defaulted\");\n\t\treturn true;\n\t}",
"public boolean isClickable() {\n/* 899 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private boolean hex() {\r\n return ALT(GO() && decimal() || OK() && SET(\"ABCDEFabcdef\"));\r\n }",
"public boolean validate(final String hex){\n\t\tmatcher = pattern.matcher(hex);\n\t\treturn matcher.matches();\n\t}",
"private static boolean isHex(char c) {\n\t\tboolean result = false;\n\t\tif (Character.isDigit(c)) {\n\t\t\tresult = true;\n\t\t}\n\t\telse if (c == 'a' || c == 'b' || c == 'c' || c == 'd' || c == 'e' || c == 'f') {\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}",
"boolean hasClickView();",
"private static boolean isHex(char p_char) {\n return (p_char <= 'f' && (fgLookupTable[p_char] & ASCII_HEX_CHARACTERS) != 0);\n }",
"public boolean isContextClickable() {\n/* 1178 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public static boolean clickElement(WebElement element) {\n\n\t\tboolean status;\n\n\t\ttry {\n\t\t\thighlight(element);\n\t\t\telement.click();\n\t\t\tstatus = true;\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\tstatus = false;\n\t\t}\n\n\t\treturn status;\n\t}",
"public boolean isHovered();",
"public boolean isClicked(int mouseX, int mouseY) {\t\t\t\t\n\t\t\n\t\tif(mouseX >= x && mouseX < (x + 64)) {\n\t\t\tif(mouseY >= y && mouseY < (y + 64)) {\n\t\t\t\tSystem.out.println(\"Clicked tile at \" + x + \", \" + y);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"static boolean isHex( byte octect ) {\n return( hexNumberTable[octect] != -1 );\n }",
"private\n static\n boolean\n isHexChar( char ch )\n {\n return ( ch >= '0' && ch <= '9' ) ||\n ( ch >= 'a' && ch <= 'f' ) ||\n ( ch >= 'A' && ch <= 'F' );\n }",
"public boolean IsFirstCellGreenAfterClick() {\n return IsCellGreenAfterClick(firstCell);\n }",
"public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }",
"public boolean isBinaryExpositionSelected();",
"boolean canPlaceRobber(HexLocation hexLoc);",
"private boolean checkIfHighlighted() {\n int i = 0;\n for (Node node : routeList) {\n if (node.getXPixels() != getHighlightGroup().getChildren().get(i).getTranslateX() ||\n node.getYPixels() != getHighlightGroup().getChildren().get(i).getTranslateY()) {\n return false;\n }\n i++;\n }\n return true;\n }",
"public static boolean validate( final String hex ) {\n\t\tpattern = Pattern.compile( EMAIL_PATTERN );\n\t\tmatcher = pattern.matcher( hex );\n\t\treturn matcher.matches();\n\n\t}",
"public boolean isMouseClicked(){\n\t\treturn mouseClick;\n\t}",
"public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}",
"boolean isAutoFeedbackColors(Action action);",
"boolean hasBbgSymbol();",
"public boolean wasClicked(int mouseX, int mouseY) {\n\t\t// If this is the blank piece, we leave immediately\n\t\t// because it can't be swapped\n\t\tif(num == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Checks to see if the user's click location is within the \n\t\t// square location of this Piece\n\t\tif(mouseX > x && mouseX < (x + size) && mouseY > y && mouseY < (y + size)) {\n\t\t\treturn true;\n\t\t} \n\t\t\n\t\treturn false;\n\t}",
"public final boolean isHyperlink() {\n return hyperlink != null;\n }",
"private static boolean hasSelectionListener( Text text ) {\n Button defButton = text.getShell().getDefaultButton();\n // TODO [rst] On GTK, the SelectionListener is also off when the default\n // button is invisible or disabled. Check with Windows and repair.\n boolean hasDefaultButton = defButton != null && defButton.isVisible();\n return !hasDefaultButton && SelectionEvent.hasListener( text );\n }",
"@Override\n\tboolean isClicked(double x, double y) {\n\n\t\tif (segment.ptLineDist(x, y) < 10 && segment.ptLineDist(x, y) > -10) {\n\t\t\tthis.setColor(Color.BLUE);\n\t\t\tAssignment.frame.repaint();\n\t\t\treturn true;\n\t\t} else {\n\t\t\tthis.setColor(Color.BLACK);\n\t\t\tAssignment.frame.repaint();\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean colorIsTooltip(final Color c)\n {\n return c.getRed() > 200 && c.getGreen() > 200 && c.getBlue() < 50;\n }",
"private boolean m32689a(TextView textView, CharSequence charSequence) {\n return C4187x.m14340E(this.f24562b) && this.f24562b.isEnabled() && (this.f24570j != this.f24569i || textView == null || !TextUtils.equals(textView.getText(), charSequence));\n }",
"private void hexToggle() {\n\t\tJPanel content = (JPanel) frame.getContentPane();\n\t\tJPanel innerContent = (JPanel) content.getComponents()[1];\n\t\tComponent[] com = innerContent.getComponents();\n\n\t\tfor (Component button : com) {\n\t\t\tif (button instanceof JButton) {\n\t\t\t\tJButton hexButton = (JButton) button;\n\t\t\t\tif (hexButton.getText().matches(\"[A-F]\")) {\n\n\t\t\t\t\tif (hexButton.isVisible()) {\n\t\t\t\t\t\thexButton.setVisible(false);\n\t\t\t\t\t} else\n\t\t\t\t\t\thexButton.setVisible(true);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean hit(int x, int y) {\n if (x >= arrow_orange_right_left && x <= (arrow_orange_right_left + arrow_orange_right_width) &&\n y >= arrow_orange_right_top && y <= (arrow_orange_right_top + arrow_orange_right_height)) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isClicked() {\n\t\treturn clicked;\n\t}",
"public boolean isClicked() { return clicked; }",
"public boolean mouseClicked(MouseEvent e)\r\n {\r\n double x = e.getX();\r\n double y = e.getY();\r\n \r\n //find if coordinates are in a \"button\"\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n if (towerButtons[i].contains(x,y))\r\n {\r\n display.setUnit(dummyList.get(i));\r\n selectedIndex = i;\r\n }\r\n }\r\n \r\n //within bounds\r\n if ((new Rectangle2D.Double(initX, 0, width, height)).contains(x,y))\r\n return true;\r\n return false;\r\n }",
"private boolean shouldBeHighlighted(Object annotationType) {\n \t\treturn contains(annotationType, fAllowedHighlightAnnotationTypes, fConfiguredHighlightAnnotationTypes);\n \t}",
"public static void main(String[] args) {\n\t\tPattern p = Pattern.compile(\"^0x[0-9a-fA-F]{1,10}\");\n\t\t// Next we create matcher, that will be check our String by Pattern\n\t\tMatcher m_1 = p.matcher(\"0x12423\");\n\t\tMatcher m_2 = p.matcher(\"23\");\n\t\t// Run checker\n\t\tboolean match_1 = m_1.matches();\n\t\tboolean match_2 = m_2.matches();\n\t\tSystem.out.println(\"0x12423 is HEX notation: \" + match_1);\n\t\tSystem.out.println(\"23 is HEX notation: \" + match_2);\n\t}",
"void onCheck(Chess.Color inCheckColor);",
"public boolean isHighlighted() {\n\t\treturn highlighted;\n\t}",
"public final boolean mouseWouldHit(final TMouseEvent mouse) {\n\n if (!enabled) {\n return false;\n }\n\n if ((mouse.getAbsoluteX() >= getAbsoluteX())\n && (mouse.getAbsoluteX() < getAbsoluteX() + width)\n && (mouse.getAbsoluteY() >= getAbsoluteY())\n && (mouse.getAbsoluteY() < getAbsoluteY() + height)\n ) {\n return true;\n }\n return false;\n }",
"boolean hasIcon();",
"boolean hasIcon();",
"public boolean acceptsMouse() \n{\n // If hover shape, return false\n if(RMShapeUtils.getHoverShape()==this) return false;\n \n // Return true if there is a URL, Hover or MouseListener\n return getURL()!=null || getHover()!=null || getListenerCount(RMShapeMouseListener.class)>0;\n}",
"public boolean isQuickPrayerOn() {\n\t\treturn methods.interfaces.getComponent(Game.INTERFACE_PRAYER_ORB, 2).getBackgroundColor() == 782;\n\t}",
"public void isElementClickable(WebElement elem) {\n try {\n driverWait.until(ExpectedConditions.elementToBeClickable(elem));\n System.out.println(\"Element is clickable\");\n } catch (Exception e) {\n Assert.fail(\"The element isn't clickable\");\n }\n }",
"public boolean isClickEnabled(int id)\n {\n return id < clicks.length && id >= 0 && clicks[id];\n }",
"boolean getButtonRelease(Buttons but);",
"public boolean isAccessibilityFocused() {\n/* 853 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"boolean iconClicked(IIcon icon, int dx, int dy);",
"public boolean isClicked(int x, int y) {\n boolean in_flag = false ;\n int i ;\n int j=0 ;\n for (i=1; i<4; i++) {\n j=i-1 ;\n if ((((ypoints[i] <= y) && (y < ypoints[j])) || ((ypoints[j] <= y) && (y < ypoints[i]))) \n && (x < (xpoints[j] - xpoints[i]) * (y - ypoints[i]) / (ypoints[j] - ypoints[i]) + xpoints[i])) {\n in_flag = !in_flag ;\n }\n } // end for\n return in_flag ;\n //System.out.println(\"IN_FLAG=\"+in_flag+VIDStr(100)) ;\n /*\n int dx = x - pos.x ;\n int dy = y - pos.y ;\n double dist = Math.sqrt(dx*dx+dy*dy) ;\n if (dist<=length) {\n return true ;\n } else {\n return false ; \n }\n */\n }",
"boolean hasEvent();",
"public boolean isHighlighted() {\r\n\t\treturn view.isHighlighted();\r\n\t}",
"@Override\n\tpublic boolean isClickable() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isClickable() {\n\t\treturn false;\n\t}",
"public final boolean isClickable() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).isClickable()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).isClickable();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).isClickable()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).isClickable();\n }\n }",
"boolean _mousePressed(MouseEvent ev) {\n\t\treturn false;\n\t}",
"public static boolean is_hex(BigInteger bi, BigInteger[] hexes)\n {\n\tint i = START;\n\twhile(!hexes[i].equals(bi0) && !hexes[i].equals(bi))\n\t ++i;\n\tif(hexes[i].equals(bi))\n\t return true;\n\treturn false;\n }",
"boolean hasFingerPrint();",
"public boolean containsClick(int x, int y) {\n\t\tRectangle checkBox = new Rectangle(column * CELL_WIDTH, row * CELL_HEIGHT, CELL_WIDTH, CELL_HEIGHT);\n\t\treturn (checkBox.contains(x, y));\n\t}",
"@Test\n\tpublic void demoqaLinkIsClickable() {\n\t\tassertTrue(ServicesLogic.demoqaLinkIsClickable());\n\t}",
"public boolean isHighlight() {\r\n\t\treturn _highlight;\r\n\t}",
"boolean hasPerformAt();",
"public boolean getHighlight();",
"public boolean tileHighlighted(float xTile, float yTile)\r\n/* 222: */ {\r\n/* 223:246 */ return (tileInBounds(xTile, yTile)) && \r\n/* 224:247 */ (this.highlight[((int)xTile)][((int)yTile)] != 0);\r\n/* 225: */ }",
"protected boolean isAHit( int code )\n\t{\n\treturn true;\n\t}",
"public boolean isSetColor() {\n return this.color != null;\n }",
"Boolean isTouchable();",
"boolean wasHit();",
"public boolean isSetColor() {\r\n return this.color != null;\r\n }",
"private static boolean isElementClickable(WebDriver driver,\n\t\t\tWebElement element) {\n\t\ttry {\n\t\t\tlogger.info(\"Checking if Element is Clickable\");\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,\n\t\t\t\t\tInteger.parseInt(getConfigValues(\"timeOutInSeconds\")));\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(element));\n\t\t\treturn true;\n\t\t} catch (NoSuchElementException e) {\n\t\t\tlogger.info(\"Some thing wrong with Element \" + e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isHighlighted() {\n return _isHighlighted;\n }",
"public boolean validateEmail(final String hex) {\n pattern = Pattern.compile(EMAIL_PATTERN);\n matcher = pattern.matcher(hex);\n return matcher.matches();\n }",
"public boolean clickedInside( int x, int y ) {\n\t\tif ( x > this.x ) {\n\t\t\tif ( y > this.y ) {\n\t\t\t\tif ( x < ( this.x + this.width ) ) {\n\t\t\t\t\tif ( y < ( this.y + this.height ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean iamDigging();",
"public static boolean isHovered(int mouseX, int mouseY, int x, int y, int width, int height) {\n return mouseX >= x && mouseY >= y && mouseX < x + width && mouseY < y + height;\n }",
"boolean isDrawInterior(DrawContext dc, Object shape);",
"public boolean mo858g() {\n OnMenuItemClickListener onMenuItemClickListener = this.f622q;\n if (onMenuItemClickListener != null && onMenuItemClickListener.onMenuItemClick(this)) {\n return true;\n }\n C0132g gVar = this.f619n;\n if (gVar.mo783a(gVar, (MenuItem) this)) {\n return true;\n }\n Runnable runnable = this.f621p;\n if (runnable != null) {\n runnable.run();\n return true;\n }\n if (this.f612g != null) {\n try {\n this.f619n.mo810e().startActivity(this.f612g);\n return true;\n } catch (ActivityNotFoundException e) {\n Log.e(\"MenuItemImpl\", \"Can't find activity to handle intent; ignoring\", e);\n }\n }\n C4124b bVar = this.f602B;\n if (bVar == null || !bVar.mo959e()) {\n return false;\n }\n return true;\n }",
"public boolean isFullyExplored();",
"private boolean onTap(float rawX, float rawY) {\n OcrGraphic graphic = mGraphicOverlay.getGraphicAtLocation(rawX, rawY);\n TextBlock text = null;\n if (graphic != null) {\n text = graphic.getTextBlock();\n if (text != null && text.getValue() != null) {\n Intent data = new Intent();\n data.putExtra(TextBlockObject, text.getValue());\n setResult(CommonStatusCodes.SUCCESS, data);\n finish();\n }\n else {\n Log.d(TAG, \"text data is null\");\n }\n }\n else {\n Log.d(TAG,\"no text detected\");\n }\n return text != null;\n }",
"public boolean isFocused() {\n/* 807 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@SuppressWarnings(\"deprecation\")\n protected boolean isDragPossible(MouseEvent e) {\n JTextComponent c = (JTextComponent)e.getSource();\n if (c.isEnabled()) {\n Caret caret = c.getCaret();\n int dot = caret.getDot();\n int mark = caret.getMark();\n if (dot != mark) {\n Point p = new Point(e.getX(), e.getY());\n int pos = c.viewToModel(p);\n\n int p0 = Math.min(dot, mark);\n int p1 = Math.max(dot, mark);\n if ((pos >= p0) && (pos < p1)) {\n return true;\n }\n }\n }\n return false;\n }",
"public boolean mouseClicked(gb gui, int mousex, int mousey, int button) {\n/* 233 */ if (button == 0)\n/* 234 */ return transferRect(gui, false); \n/* 235 */ if (button == 1) {\n/* 236 */ return transferRect(gui, true);\n/* */ }\n/* 238 */ return false;\n/* */ }",
"private boolean checkInstructionHandler(CodeAtt attribute) {\n //todo\n return false;\n }",
"@RestrictTo(RestrictTo.Scope.LIBRARY)\n public boolean isSliceViewClickable() {\n return mOnClickListener != null\n || (mListContent != null && mListContent.getShortcut(getContext()) != null);\n }",
"void highlightCheckSquare(boolean highlight, Button button, int row, int column, CenterPiece piece);",
"private void assertStreamItemViewHasOnClickListener() {\n assertFalse(\"listener should have not been invoked yet\", mListener.clicked);\n mView.performClick();\n assertTrue(\"listener should have been invoked\", mListener.clicked);\n }",
"public boolean selectiveUndoClicked(Point h)\n {\n LinkedList\t\t\t\tlastChangedHexes;\n ListIterator\t\t\tit, lastIt;\n ChangedMUXHex\t\t\tchangedHex;\n \n if (!canUndo())\n return false;\t\t\t\t// Nothing to do\n \n // Check to see if we have any data on this hex in any of our undos\n // have to go /backwards/ in the Undoable changes.. the last item is the most recent\n it = undoableChanges.listIterator(undoableChanges.size());\n \n while (it.hasPrevious())\n {\n lastChangedHexes = (LinkedList) it.previous();\n \n // Now iterate through the hexes changed in this change (order doesn't matter here, each hex appears only once)\n lastIt = lastChangedHexes.listIterator();\n \n while (lastIt.hasNext())\n {\n changedHex = (ChangedMUXHex) lastIt.next();\n if (changedHex.getLocation().getX() == h.getX() &&\n changedHex.getLocation().getY() == h.getY())\n {\n // Match!\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n // We've found our match, so let's get out of this nasty looping\n return false;\n }\n } \n }\n \n // Always return false\n return false;\n }",
"boolean isMarkedIndicator();",
"@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}",
"boolean currentNodeRequiresClickInWebKit(){\r\n \tif( _currentFocusNode == null ){\r\n \t\treturn false;\r\n \t} \t\r\n if( DeviceInfo.isBlackBerry6() ){\r\n if( _currentFocusNode instanceof HTMLInputElement ){\r\n String type = ( ( HTMLInputElement ) _currentFocusNode ).getType();\r\n return REQUIRE_CLICK_INPUT_TYPES.indexOf( type ) > 0;\r\n }\r\n } \r\n return false;\r\n }",
"public boolean isLongClickable() {\n/* 922 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean getCorrectFuncion(){\n\t\tif(this.getBackground().equals(Color.RED))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"void isHexadecimal(String stringhex){\n \t\tif(stringhex.charAt(2) == '0') {\n \t\t\t// on skip 0x0.\n \t\t\tbeginZeroHex(stringhex.substring(4));\n \t\t}\n \t\telse {\n \t\t\tbeginNonZeroHex(stringhex.substring(2));\n \t\t}\n \t}",
"private static boolean isFullHex(Position p, int side) {\n int x = p.getX();\n int y = p.getY();\n // ensure the left bottom corner is in range\n if (x >= 0 && x <= WIDTH && y >= 0 && y <= HEIGHT) {\n // ensure the right bottom corner is in range\n return ((x + 3 * side - 2) <= WIDTH) && (y + side * 2 <= HEIGHT);\n }\n return false;\n }"
] | [
"0.6364588",
"0.6335907",
"0.61364365",
"0.5764568",
"0.57623893",
"0.564852",
"0.561754",
"0.55826503",
"0.5565043",
"0.55497855",
"0.5538192",
"0.5535941",
"0.5506868",
"0.54889375",
"0.5479708",
"0.5470898",
"0.54502827",
"0.53900325",
"0.53851974",
"0.533804",
"0.5329689",
"0.5315223",
"0.5295863",
"0.5287503",
"0.52730876",
"0.5241516",
"0.524111",
"0.52347314",
"0.5180908",
"0.51763797",
"0.5160235",
"0.5138993",
"0.5131589",
"0.50882864",
"0.50595444",
"0.50592667",
"0.50588304",
"0.50410604",
"0.50372356",
"0.5028618",
"0.5020382",
"0.5017599",
"0.50111157",
"0.49963343",
"0.49948302",
"0.49736533",
"0.49736533",
"0.49671605",
"0.4963898",
"0.49464232",
"0.49434325",
"0.49402472",
"0.49339798",
"0.49266422",
"0.49205136",
"0.49194413",
"0.49190325",
"0.49160877",
"0.49160877",
"0.4904787",
"0.49043083",
"0.49011427",
"0.48907942",
"0.48871052",
"0.4886822",
"0.48860922",
"0.48860547",
"0.48811844",
"0.48796326",
"0.48713934",
"0.4866131",
"0.48521075",
"0.48496395",
"0.4849446",
"0.48405758",
"0.48373014",
"0.48274595",
"0.48244566",
"0.4823492",
"0.4819353",
"0.48103037",
"0.48055634",
"0.4802148",
"0.47841966",
"0.47838038",
"0.478267",
"0.4781766",
"0.47791782",
"0.4776743",
"0.47753602",
"0.476281",
"0.47496164",
"0.4746483",
"0.4740696",
"0.47378638",
"0.47328162",
"0.4720053",
"0.47199783",
"0.47128463",
"0.4707367"
] | 0.76112396 | 0 |
Shows the shadow at given tile. | private void showShadow(Tile tile) {
hoveredHex = tile.hex;
hoverShadow.transform.setParent(tile.transform);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void showTownMapScreen(LandMapTile tile, Constants.Dir dir) {\n townMapScreen.setupTown(tile, dir);\n showScreen(townMapScreen);\n }",
"public void display() {\n shadow.display();\r\n strokeWeight(strokeWeight);\r\n fill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }",
"public void addShadow() {\n startShadow();\n }",
"private void drawTile(int i, int j, Tile tile) {\n\t\tRectangle rect = new Rectangle(175*i+50,j*175+25,175, 175);\r\n\t\ttilesDrawn.add(rect);\r\n\t}",
"@Override\r\n\tpublic void renderShadow(float[] vpMatrix) {\n\t\t\r\n\t}",
"public void drawTile() {\n\n }",
"public void showShadow(boolean z, boolean z2) {\n if (z && this.shadowView.getTag() == null) {\n return;\n }\n if (z || this.shadowView.getTag() == null) {\n AnimatorSet animatorSet = this.shadowAnimator;\n int i = null;\n if (animatorSet != null) {\n animatorSet.cancel();\n this.shadowAnimator = null;\n }\n View view = this.shadowView;\n if (!z) {\n i = 1;\n }\n view.setTag(i);\n float f = 1.0f;\n if (z2) {\n AnimatorSet animatorSet2 = new AnimatorSet();\n this.shadowAnimator = animatorSet2;\n Animator[] animatorArr = new Animator[1];\n View view2 = this.shadowView;\n Property property = View.ALPHA;\n float[] fArr = new float[1];\n if (!z) {\n f = 0.0f;\n }\n fArr[0] = f;\n animatorArr[0] = ObjectAnimator.ofFloat(view2, property, fArr);\n animatorSet2.playTogether(animatorArr);\n this.shadowAnimator.setDuration(200);\n this.shadowAnimator.setInterpolator(CubicBezierInterpolator.EASE_OUT);\n this.shadowAnimator.addListener(new AnimatorListenerAdapter() {\n public void onAnimationEnd(Animator animator) {\n AnimatorSet unused = SearchField.this.shadowAnimator = null;\n }\n });\n this.shadowAnimator.start();\n return;\n }\n View view3 = this.shadowView;\n if (!z) {\n f = 0.0f;\n }\n view3.setAlpha(f);\n }\n }",
"public boolean tileSand(float xTile, float yTile)\r\n/* 217: */ {\r\n/* 218:241 */ return (tileInBounds(xTile, yTile)) && (this.sand[((int)xTile)][((int)yTile)] != 0);\r\n/* 219: */ }",
"private void drawTile(Color base, Color light, Color dark, int x, int y, Graphics g) {\n\t\tg.setColor(base);\n\t\tg.fillRect(x, y, TILE_SIZE, TILE_SIZE);\n\t}",
"void setTile(Tile tile) {\n _tile = tile;\n }",
"public void setTile(Tile tile) {\n\t\tthis.tile = tile;\n\t}",
"private void drawTile(TileType type, int x, int y, Graphics g) {\n\t\t//Fill the entire tile with the base color.\n\t\tg.setColor(type.getBaseColor());\n\t\tg.fillRect(x, y, TILE_SIZE, TILE_SIZE);\n\t\t//Fill the bottom and right edges of the tile with the dark shading color.\n\t\tg.setColor(type.getDarkColor());\n\t\tg.fillRect(x, y + TILE_SIZE - SHADE_WIDTH, TILE_SIZE, SHADE_WIDTH);\n\t\tg.fillRect(x + TILE_SIZE - SHADE_WIDTH, y, SHADE_WIDTH, TILE_SIZE);\n\t\t\n\n\t\tg.setColor(type.getLightColor());\n\t\tfor(int i = 0; i < SHADE_WIDTH; i++) {\n\t\t\tg.drawLine(x, y + i, x + TILE_SIZE - i - 1, y + i);\n\t\t\tg.drawLine(x + i, y, x + i, y + TILE_SIZE - i - 1);\n\t\t}\n\t}",
"private void drawThumbShadow(float screenCoord, Canvas canvas) {\n mThumbShadowMatrix.setTranslate(screenCoord + mThumbShadowXOffset, mTextOffset + mThumbHalfHeight + mThumbShadowYOffset);\n mTranslatedThumbShadowPath.set(mThumbShadowPath);\n mTranslatedThumbShadowPath.transform(mThumbShadowMatrix);\n canvas.drawPath(mTranslatedThumbShadowPath, shadowPaint);\n }",
"public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}",
"public void renderTileEntityAt(TileEntity var1, double var2, double var4, double var6, float var8) {}",
"public void render(T tileEntity, double x, double y, double z, IBlockState state, World world, BufferBuilder buffer);",
"public static void showUnitTile(Unit unit, Color color) {\r\n\t\tint posX = unit.getTilePosition().getX();\r\n\t\tint posY = unit.getTilePosition().getY();\r\n\t\tint tileSizeX = 1;\r\n\t\tint tileSizeY = 1;\r\n\r\n\t\t// Show building sizes accordingly\r\n\t\tif (unit.getType().isBuilding()) {\r\n\t\t\ttileSizeX = unit.getType().tileWidth();\r\n\t\t\ttileSizeY = unit.getType().tileHeight();\r\n\t\t}\r\n\r\n\t\tdrawTile(posX, posY, tileSizeX, tileSizeY, color);\r\n\t}",
"private void revealTiles() {\n\n for (int i = 0; i < minefield.getRows(); i++) {\n for (int j = 0; j < minefield.getCols(); j++) {\n if (minefield.getMinefield()[i][j].isRevealed()\n && !minefield.getMinefield()[i][j].isMined()) {\n tileLabel[i][j].setText(\"<html><b>\" + minefield.getMinefield()[i][j].getMinedNeighbours() + \"</html></b>\");\n tile[i][j].setBackground(new Color(208, 237, 243));\n switch (tileLabel[i][j].getText()) {\n case \"<html><b>0</html></b>\":\n tileLabel[i][j].setText(\"\");\n break;\n case \"<html><b>1</html></b>\":\n tileLabel[i][j].setForeground(Color.blue);\n break;\n case \"<html><b>2</html></b>\":\n tileLabel[i][j].setForeground(new Color(0, 100, 0));\n break;\n case \"<html><b>3</html></b>\":\n tileLabel[i][j].setForeground(Color.red);\n break;\n case \"<html><b>4</html></b>\":\n tileLabel[i][j].setForeground(new Color(75, 0, 130));\n break;\n case \"<html><b>5</html></b>\":\n tileLabel[i][j].setForeground(new Color(130, 0, 0));\n break;\n case \"<html><b>6</html></b>\":\n tileLabel[i][j].setForeground(new Color(0, 153, 153));\n break;\n case \"<html><b>7</html></b>\":\n tileLabel[i][j].setForeground(Color.black);\n break;\n case \"<html><b>8</html></b>\":\n tileLabel[i][j].setForeground(Color.darkGray);\n break;\n }\n }\n }\n }\n frame.repaint();\n }",
"public void tiles()\n{\n if(m.getActiveManager() != 0)\n {\n m.hideButtonsOfManager(1);\n m.hideButtonsOfManager(2);\n m.showButtonsOfManager(0);\n m.activateManager(0);\n m.getTileManager().getActiveTile().setShowHover(true);\n }\n}",
"public void drawPreviewHover()\n {\n int previewNumber = mouseToPreviewTile();\n if (previewNumber >= 0)\n {\n for (int i = 0; i < previewHover.length; i++)\n {\n previewHover[i] = false;\n }\n previewHover[previewNumber] = true;\n hoverTile = previewNumber;\n } else\n {\n for (int i = 0; i < previewHover.length; i++)\n {\n previewHover[i] = false;\n }\n hoverTile = -1;\n }\n }",
"public final native void setShadow(Shadow shadow) /*-{\n\t\tthis.setShadow({\n color: shadow.@net.edzard.kinetic.Shadow::getColour()().@net.edzard.kinetic.Colour::toString()(),\n blur: shadow.@net.edzard.kinetic.Shadow::getBlur()(),\n offset: [shadow.@net.edzard.kinetic.Shadow::getOffset()().@net.edzard.kinetic.Vector2d::x, \n \t\t shadow.@net.edzard.kinetic.Shadow::getOffset()().@net.edzard.kinetic.Vector2d::y],\n alpha: shadow.@net.edzard.kinetic.Shadow::getAlpha()()\n });\n\t}-*/;",
"public void displayTiles() {\n System.out.println(\"\\n Tiles of this game : \");\n String phrase = \"No army deployed on this tile !\";\n for (Tile tile : this.board.getAllTiles()) {\n if (!tile.isEmpty()) {\n System.out.print(\" { Type tile : \" + tile.getCharacter() + \", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY() + \", State : Occuped, Player : \" + tile.getPlayer().getName() + \", Army : \" + tile.getPersonnage().getName() + \", Army size : \" +((Army) tile.getPersonnage()).getArmySize() + \"}\\n\");\n } else {\n System.out.print(\" { Type tile : \" + tile.getCharacter() +\", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY()+ \", State : \"+ phrase + \" }\\n\");\n }\n }\n }",
"public void renderTile(int xp, int yp, Tile tile) {\n\t\txp -= xOffset; //subtracting the Offset accounts for player movement. This also somehow reverses the inversion of the controls. Understand why we are subtracting as opposed to adding.\n\t\typ -= yOffset;\n\t\tfor (int y = 0; y < tile.sprite.SIZE; y++) {\n\t\t\tint ya = y + yp; // ya refers to absolute position. y is the rendering thing moving from left to right. yp is the offset. The reason for needing an absolute position is that this method only renders a single tile\n\t\t\tfor (int x = 0; x < tile.sprite.SIZE; x++) {\n\t\t\t\tint xa = x + xp;\n\t\t\t\tif (xa < -tile.sprite.SIZE || xa >= width || ya < 0 || ya >= height) break; //width and height refer to the screen width and height. this if statement insures that only tiles on the screen are rendered! There are 4 bounds representing top, bottom, left and right. the far left bound isn't zero because...see andrew ton.\n\t\t\t\t//\"xa < -tile.sprite.SIZE\" insures that we get an extra tile on the far left so rendering is smooth.\n\t\t\t\tif (xa < 0) xa = 0; //we set xa equal to zero if \"xa < 0\" in case we are on the border. It ONLY solves the arrayindexoutofbounds error. doesnt have affect rendering\n\t\t\t\tpixels[xa + ya * width] = tile.sprite.pixels[x + y * tile.sprite.SIZE];\n\t\t\t}\n\t\t}\n\t}",
"public void draw(TETile te) {\n world[position.x][position.y] = te;\n }",
"public void setShadow(float xOffset, float yOffset, Colour c) {\n shadow = new Box(x + xOffset, y + yOffset, w, h, 0, c);\r\n }",
"public static void render(Graphics g, Tile tile, Point pxCenterPoint, float value) {\n Point topLeft = new Point(pxCenterPoint.x - (tile.getImage().getWidth() / 2), pxCenterPoint.y - (tile.getImage().getHeight() / 2));\n if (value >= 0) {\n\n\n if (tile.getType() == \"Mountain\") {\n\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 19 + 21, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 19 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n\n } else if (tile.getType() == \"Water\" || tile.getType() == \"Grass\" || tile.getType() == \"Running\") {\n //\n //System.out.println(topLeft.y);\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n } else {\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n }\n if (tile.hasAreaEffect()) {\n areaEffectRenderer.render(g, tile.getAreaEffect(), topLeft);\n }\n\n if (tile.hasItem()) {\n for (Item item : tile.getItems()) {\n itemRenderer.render(g, item, topLeft);\n }\n }\n }\n }",
"public void actualShowWorldChest(){\n\t\tElement el = nifty.getScreen(\"hud\").findElementByName(\"WorldChest\");\n\t\tel.show();\n\t\tfor(Item it : screenManager.getInventoryManager().getOpenWorldChest()){\n\t\t\tif(it.getInventoryPosition() != null){\n\t\t\t\tElement toHide = nifty.getScreen(\"hud\").findElementByName(\"hoverstats-\"+it.getId());\n\t\t\t\tif(toHide!=null){\n\t\t\t\t\ttoHide.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void render(Screen screen, Level level, int x, int y) {\n\t\twRandom.setSeed((tickCount + (x / 2 - y) * 4311) / 10 * 54_687_121L + x * 3_271_612L + y * 3_412_987_161L );\n\t\t\n\t\tint col = Color.get(005, 005, 115, 115); // main color of water\n\t\tint transitionColor1 = Color.get(3, 005, level.dirtColor - 111, level.dirtColor); // transition color with dirt\n\t\tint transitionColor2 = Color.get(3, 005, level.sandColor - 110, level.sandColor); // transition color with sand\n\n\t\tboolean u = !level.getTile(x, y - 1).connectsToWater; // Checks if the tile above can NOT connect to water\n\t\tboolean d = !level.getTile(x, y + 1).connectsToWater; // Checks if the tile below can NOT connect to water\n\t\tboolean l = !level.getTile(x - 1, y).connectsToWater; // Checks if the tile to the left can NOT connect to water\n\t\tboolean r = !level.getTile(x + 1, y).connectsToWater; // Checks if the tile to the right can NOT connect to water\n\n\t\tboolean su = u && level.getTile(x, y - 1).connectsToSand; // Checks u, and sees if the tile above can connect to sand\n\t\tboolean sd = d && level.getTile(x, y + 1).connectsToSand; // Checks d, and sees if the tile down can connect to sand \n\t\tboolean sl = l && level.getTile(x - 1, y).connectsToSand; // Checks l, and sees if the tile to the left can connect to sand \n\t\tboolean sr = r && level.getTile(x + 1, y).connectsToSand; // Checks r, and sees if the tile to the right can connect to sand \n\t\t\n\t\tif (!u && !l) { // if the tile to the left, and the tile above can connect to water...\n\t\t\tscreen.render(x * 16 + 0, y * 16 + 0, wRandom.nextInt(4), col, wRandom.nextInt(4)); // renders the top-left part of the tile\n\t\t} else\n\t\t\t/* Renders the the top-left part with a corner depending on if the tile is grass or sand */\n\t\t\tscreen.render(x * 16 + 0, y * 16 + 0, (l ? 14 : 15) + (u ? 0 : 1) * 32, (su || sl) ? transitionColor2 : transitionColor1, 0);\n\n\t\tif (!u && !r) { // if the tile to the right, and the tile above can connect to water...\n\t\t\tscreen.render(x * 16 + 8, y * 16 + 0, wRandom.nextInt(4), col, wRandom.nextInt(4)); // renders the top-right part of the tile\n\t\t} else\n\t\t\t/* Renders the the top-right part with a corner depending on if the tile is grass or sand */\n\t\t\tscreen.render(x * 16 + 8, y * 16 + 0, (r ? 16 : 15) + (u ? 0 : 1) * 32, (su || sr) ? transitionColor2 : transitionColor1, 0);\n\n\t\tif (!d && !l) { // if the tile to the left, and the tile below can connect to water...\n\t\t\tscreen.render(x * 16 + 0, y * 16 + 8, wRandom.nextInt(4), col, wRandom.nextInt(4)); // renders the bottom-left part of the tile\n\t\t} else\n\t\t\t/* Renders the the top-right part with a corner depending on if the tile is grass or sand */\n\t\t\tscreen.render(x * 16 + 0, y * 16 + 8, (l ? 14 : 15) + (d ? 2 : 1) * 32, (sd || sl) ? transitionColor2 : transitionColor1, 0);\n\t\t\n\t\tif (!d && !r) { // if the tile to the right, and the tile below can connect to water...\n\t\t\tscreen.render(x * 16 + 8, y * 16 + 8, wRandom.nextInt(4), col, wRandom.nextInt(4)); // renders the bottom-right part of the tile\n\t\t} else\n\t\t\t/* Renders the the top-right part with a corner depending on if the tile is grass or sand */\n\t\t\tscreen.render(x * 16 + 8, y * 16 + 8, (r ? 16 : 15) + (d ? 2 : 1) * 32, (sd || sr) ? transitionColor2 : transitionColor1, 0);\n\t}",
"public void renderTileManager()\n {\n background(background);\n tiles[activeTile].drawGrid();\n tiles[activeTile].drawCellHover();\n createPreview(tiles[activeTile]);\n drawPreviewHover();\n drawPreviews();\n }",
"public void push(View tile) {\n }",
"@Override\n\tpublic void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float tick) {\n\t\tif (tileentity instanceof TileEntityArtifactCase) {\n\t\t\tGL11.glPushMatrix();\t\t\t\t// Save the current matrix to not interfere with rendering\n\t GL11.glDisable(GL11.GL_LIGHTING);\t// Disable special lighting\n\t \n\t\t\tTileEntityArtifactCase te = (TileEntityArtifactCase) tileentity;\n\t\t\tif (((TileEntityArtifactCase) tileentity).getStackInSlot(0) != null) {\n EntityItem artifactEntity = new EntityItem(tileentity.worldObj);\n artifactEntity.setEntityItemStack(te.getStackInSlot(0));\t\t// Set the itemstack to render\n float scale = 1.5F;\t\t\t\t\t\t\t\t\t\t\t\t// Make item larger to fill out the case\n GL11.glTranslatef((float) x + 0.5F, (float) y + 0.35F, (float) z + 0.5F); // Center the item in the case\n GL11.glScalef(scale, scale, scale);\t\t\t\t\t\t\t\t// Apply scale transform\n customRenderItem.doRenderItem(artifactEntity, 0, 0, 0, 0, 0);\t// Render the artifact\n\t\t\t}\n\t\t}\n\t\tGL11.glPopMatrix();\t\t\t\t\t// Return to the saved matrix\n GL11.glEnable(GL11.GL_LIGHTING);\t// Re-enable special lighting\n\t}",
"public void renderTile(float offsetX, float offsetY, Graphics g) {\n\t\tthis.translate(-1.0f * offsetX, -1.0f * offsetY);\n\t\tthis.render(g);\n\t\tthis.translate(offsetX, offsetY);\n\t}",
"private void assignTileColor() {\n boolean isLightTile = ((tileCoordinate + tileCoordinate / 8) % 2 == 0);\n setBackground(isLightTile ? LIGHT_TILE_COLOR : DARK_TILE_COLOR);\n }",
"@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\tif ( !input ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileVisible = true;\r\n\t\ttileX = arg0.getX() / 36;\r\n\t\ttileY = arg0.getY() / 36;\r\n\t\trepaint();\r\n\t}",
"private void revealAround() {\n if (xTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile - 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile - 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile - 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile - 1][yTile].setRevealed(true);\n }\n }\n if (yTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile][yTile - 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile - 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile - 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile - 1].setRevealed(true);\n }\n }\n if (xTile + 1 < Parameters.NUM_X_TILES && !References.GetMainTileActorMap()[xTile + 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile + 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile + 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile + 1][yTile].setRevealed(true);\n }\n }\n if (yTile + 1 < Parameters.NUM_Y_TILES && !References.GetMainTileActorMap()[xTile][yTile + 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile + 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile + 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile + 1].setRevealed(true);\n }\n }\n }",
"public void mousePressed()\n{\n if (m.getTileManager().getActiveTile()!=null)\n {\n if (m.getTileManager().getActiveTile().isHover())\n {\n if(!m.getTileManager().getBrushMode())\n m.getTileManager().getActiveTile().drawCell();\n else\n m.getTileManager().getActiveTile().drawCellWithBrush(m.getTileManager().getIsBlack());\n }\n }\n if (m.getTileManager().getHoverIndex()!=-1)\n {\n m.getTileManager().setActiveTile(m.getTileManager().getHoverIndex());\n }\n}",
"public void TileClicked(MouseEvent e) {\n\t\tButton button;\n\t\tif(game.isDone()) {\n\t\t\treturn;\n\t\t}\n\t\tbutton = ((Button)e.getSource());\n\t\t//getting coordinates from button clicked, and tile model from that location\n\t\tString[] coordString = new String[2];\n\t\tcoordString = button.getId().split(\" . \");\n\t\tint x = Integer.parseInt(coordString[0]);\n\t\tint y = Integer.parseInt(coordString[1]);\n\t\tTile currTile = game.getTile(x, y);\n\t\t\n\t\t\n\t\tif(game.getRounds() == 0) {\n\t\t\tgame.placeBombs(x, y);\n\t\t\t// For testing.\n\t\t\t//System.out.println(game);\n\t\t\tstartTimer();\n\t\t}\n\t\t\n\t\tgame.incRounds();\n\t\t\n\t\t//in case the tile is already revealed\n\t\tif(currTile.isShown()) {\n\t\t\tflagSolver(x,y);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint tileMarker = currTile.getMarker();\n\t\t//for changing markers between blank, flag, and question mark\n\t\tif(e.getButton() == MouseButton.SECONDARY) {\n\t\t\tswitch(tileMarker) {\n\t\t\tcase 0:\n\t\t\t\tgame.incFlagCounter(1);\n\t\t\t\tImageView flag = new ImageView(new Image(\"public/images/\"+selectedTheme+\"/flag.png\"));\n\t\t\t\tflag.setFitHeight(30);\n\t\t\t\tflag.setFitWidth(30);\n\t\t\t\tbutton.setGraphic(flag);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tgame.incFlagCounter(-1);\n\t\t\t\tImageView qMark = new ImageView(new Image(\"public/images/\"+selectedTheme+\"/qMark.png\"));\n\t\t\t\tqMark.setFitHeight(20);\n\t\t\t\tqMark.setFitWidth(20);\n\t\t\t\tbutton.setGraphic(qMark);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbutton.setGraphic(null);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbombLabel.setText(\"Flag: \" + game.getFlagCounter() + \"/\" + game.getNumOfBombs());\n\t\t\tcurrTile.incMarker();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Calls unmarkedTile if the tile does not have a flag or question mark\n\t\tif (tileMarker == 0) {\n\t\t\tunmarkedTile(x, y, false);\n\t\t}\n\t}",
"public static BasicThumbnail getShadow(int thickness) {\n\t\tint[] i = new int[thickness];\n\t\tfor(int a = 0; a<i.length; a++) {\n\t\t\ti[a] = 6;\n\t\t}\n\t\treturn new BasicThumbnail(new Layer[] {\n\t\t\tnew Shadow(i, thickness, thickness*2 ),\n\t\t\tnew Image()\n\t\t}, 0);\n\t}",
"public void showTurtle(int toShow) \n\t{\n\t\tmyTurtle.setVisibility(toShow);\n\t\tupdateTurtleOnView();\n\t}",
"public synchronized void draw()\n\t{\n\t\t// First update the lighting of the world\n\t\t//int x = avatar.getX();\n\t\t//int y = avatar.getY();\t\t\n\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].draw(x, y);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = monsters.size() - 1; i >=0; i--)\n\t\t{\n\t\t\tMonster monster = monsters.get(i);\n\t\t\tint x = monster.getX();\n\t\t\tint y = monster.getY();\n\t\t\t\n\t\t\t// Check if the monster has been killed\n\t\t\tif (monster.getHitPoints() <= 0)\n\t\t\t{\n\t\t\t\tmonsters.remove(i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (tiles[x][y].getLit())\n\t\t\t\t\tmonster.draw();\n\t\t\t}\n\t\t}\t\t\n\t\tavatar.draw();\n\t}",
"public static DirectionalLightShadowFilter addShadow(DirectionalLight light)\n\t{\n\n DirectionalLightShadowFilter dlsf = new DirectionalLightShadowFilter(GVars_Soul_Model.app.getAssetManager(), SHADOWMAP_SIZE, 1);\n dlsf.setLight(light);\n dlsf.setLambda(0.55f);\n dlsf.setShadowIntensity(1.0f);\n dlsf.setEdgeFilteringMode(EdgeFilteringMode.Nearest);\n dlsf.setEnabled(true);\n\n volatileFPP.addFilter(dlsf);\n\n //GVars_Soul_Model.app.getViewPort().addProcessor(volatileFPP);\n \n return dlsf ;\n\t}",
"public void func_192841_a(TileEntity te, double x, double y, double z, float partialTicks, int destroyStage, float alpha) {\n/* 109 */ super.func_192841_a(te, x, y, z, partialTicks, destroyStage, alpha);\n/* 110 */ renderTileEntityAt((TileGolemBuilder)te, x, y, z, partialTicks, destroyStage);\n/* */ }",
"protected void doMoreLight() {\r\n\t\talpha = Math.min(1f, alpha + 0.05f);;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}",
"private void generateBorder() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tif (x == 0 || y == 0 || x == width - 1 || y == height - 1) {\n\t\t\t\t\ttiles[x + y * width] = Tile.darkGrass;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void renderShadowMap() {\n GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fboId[0]);\n GLES20.glViewport(0, 0, mShadowMapWidth,\n mShadowMapHeight);\n // Clear color and buffers\n GLES20.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);\n GLES20.glClear(GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);\n // Start using the shader\n GLES20.glUseProgram(mDepthMapProgram);\n float[] tempResultMatrix = new float[16];\n // Calculate matrices for standing objects\n // View matrix * Model matrix value is stored\n Matrix.multiplyMM(mLightMvpMatrix_staticShapes, 0, mLightViewMatrix, 0, mModelMatrix, 0);\n // Model * view * projection matrix stored and copied for use at rendering from camera point of view\n Matrix.multiplyMM(tempResultMatrix, 0, mLightProjectionMatrix, 0, mLightMvpMatrix_staticShapes, 0);\n System.arraycopy(tempResultMatrix, 0, mLightMvpMatrix_staticShapes, 0, 16);\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandleShadow, 1, false, mLightMvpMatrix_staticShapes, 0);\n // Render all stationary shapes on scene\n\n mDrawPlane.setDraw(mPositionHandleShadow, 0, 0, 0, true);\n mDrawPlane.draw();\n\n // Calculate matrices for moving objects\n // Rotate the model matrix with current rotation matrix\n Matrix.multiplyMM(tempResultMatrix, 0, mModelMatrix, 0, mCubeRotation, 0);\n // View matrix * Model matrix value is stored\n Matrix.multiplyMM(mLightMvpMatrix_dynamicShapes, 0, mLightViewMatrix, 0, tempResultMatrix, 0);\n // Model * view * projection matrix stored and copied for use at rendering from camera point of view\n Matrix.multiplyMM(tempResultMatrix, 0, mLightProjectionMatrix, 0, mLightMvpMatrix_dynamicShapes, 0);\n System.arraycopy(tempResultMatrix, 0, mLightMvpMatrix_dynamicShapes, 0, 16);\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandleShadow, 1, false, mLightMvpMatrix_dynamicShapes, 0);\n // Render all moving shapes on scene\n mDrawObj.setDraw(mPositionHandleShadow,0,0,0,true);\n }",
"public void toggleShipAtTile(int tile) {\r\n if (placedShips < 4 || hasShip(tile)) {\r\n if (hasShip(tile)) {\r\n placedShips -= 1;\r\n } else {\r\n placedShips += 1;\r\n }\r\n tiles[tile] = tiles[tile] ^ 1;\r\n }\r\n }",
"protected void setToolTipText(Tile tile) {\n\t\tif(!peek && hidden) { tile.setToolTipText(\"concealed tile\"); }\n\t\telse {\n\t\t\tString addendum = \"\";\n\t\t\tif(playerpanel.getPlayer().getType()==Player.HUMAN) { addendum = \" - click to discard during your turn\"; }\n\t\t\ttile.setToolTipText(tile.getTileName()+ addendum); }}",
"public void render(WorldTile tile) {\n\t\t//check if the region is generated before rendering, don't render if it's not generated\n\t\tAABB area = hiresModelManager.getTileRegion(tile);\n\t\tif (!tile.getWorld().isAreaGenerated(area)) return;\n\n\t\tHiresModel hiresModel = hiresModelManager.render(tile);\n\t\tlowresModelManager.render(hiresModel);\n\t}",
"public void onTileEntry(Tile tile) {}",
"void drawGrass()\n {\n \tPaint color = canvas.getFill();\n \tcanvas.setFill(Color.GREEN);\n \tcanvas.fillRect(0, mainCanvas.getHeight()-30, mainCanvas.getWidth(), 30);\n \tcanvas.setFill(color);\n }",
"public void render() {\r\n\t\tif ((this instanceof Turtles && ((Turtles) this).isAboveWater()) || !(this instanceof Turtles)) {\r\n\t\t\timage.drawCentered(xCoordinate, yCoordinate);\r\n\t\t}\r\n\t}",
"@Override\n public void drawTile(GraphicsContext gc, double dx, double dy) {\n gc.drawImage(tile, dx, dy, 64, 64);\n }",
"public void highlightTile(float xTile, float yTile, int color)\r\n/* 236: */ {\r\n/* 237:262 */ if (tileInBounds(xTile, yTile)) {\r\n/* 238:264 */ this.highlight[((int)xTile)][((int)yTile)] = color;\r\n/* 239: */ }\r\n/* 240: */ }",
"public void printTiles() {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n System.out.println(\"//\");\n System.out.println(\"ROW: \" + tiles[i][k].getRow());\n System.out.println(\"COL: \" + tiles[i][k].getColumn());\n System.out.println(\"TER: \" + tiles[i][k].getTerrain().getName());\n }\n }\n }",
"protected void doDark() {\r\n\t\talpha = 0.5f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}",
"@Override\n public void show(String title, int blockSize, int x, int y) {\n setBlockSize(blockSize);\n TileWorldPanel tileWorldPanel = new TileWorldPanel(this, blockSize);\n\n // create a JFrame\n JFrame frame = new JFrame();\n frame.setTitle(title);\n\n // Add the panel to the frame\n frame.add(tileWorldPanel);\n frame.setSize(tileWorldPanel.getWidth() + X_BORDER, tileWorldPanel.getHeight() + Y_BORDER);\n frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n frame.setLocation(x, y);\n\n // Show the frame\n frame.setVisible(true);\n }",
"@Override\n\tpublic void show () {\n overWorld = new Sprite(new TextureRegion(new Texture(Gdx.files.internal(\"Screens/overworldscreen.png\"))));\n overWorld.setPosition(0, 0);\n batch = new SpriteBatch();\n batch.getProjectionMatrix().setToOrtho2D(0, 0, 320, 340);\n\n // Creates the indicator and sets it to the position of the first grid item.\n indicator = new MapIndicator(screen.miscAtlases.get(2));\n // Creates the icon of Daur that indicates his position.\n icon = new DaurIcon(screen.miscAtlases.get(2));\n // Sets the mask position to zero, as this screen does not lie on the coordinate plane of any tiled map.\n screen.mask.setPosition(0, 0);\n screen.mask.setSize(320, 340);\n Gdx.input.setInputProcessor(inputProcessor);\n\n // Creates all relevant text.\n createText();\n // Sets numX and numY to the position of Daur on the map.\n numX = storage.cellX;\n numY = storage.cellY;\n indicator.setPosition(numX * 20, numY * 20 + 19);\n // Sets the icon to the center of this cell.\n icon.setPosition(numX * 20 + 10 - icon.getWidth() / 2, numY * 20 + 29 - icon.getHeight() / 2);\n // Creates all the gray squares necessary.\n createGraySquares();\n }",
"public void drawTile(Tile t, int x, int y, int cellSize, PGraphics pdf)\n {\n for(int i = 0; i < t.getW(); i++)\n {\n for(int j = 0; j < t.getH(); j++)\n {\n if(t.getPattern()[i][j])\n pdf.rect(x+i*cellSize, y+j*cellSize, cellSize*1.1f, cellSize*1.1f);\n }\n }\n }",
"protected void doLessLight() {\r\n\t\talpha = Math.max(0, alpha - 0.05f);\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}",
"protected abstract void setTile( int tile, int x, int y );",
"private void floodFill(Tile tile) {\r\n // Check that this tile is non clicked to prevent infinite loops\r\n if (tile.clickable()) {\r\n // Show contents and set as clicked\r\n tile.setVisibleType(tile.getType());\r\n updateClearedTiles();\r\n\r\n int row = tile.getRow();\r\n int col = tile.getCol();\r\n\r\n if (tiles[row][col] == 0) {\r\n for (int rowCheck = -1; rowCheck <= 1; rowCheck++) {\r\n for (int colCheck = -1; colCheck <= 1; colCheck++) {\r\n int tempRow = row+rowCheck;\r\n int tempCol = col+colCheck;\r\n if (tileExistAndNotMine(tempRow, tempCol)) {\r\n Tile current = tileList.get(tempRow * BOARD_MAX_WIDTH + tempCol);\r\n System.out.println(current);\r\n floodFill(current);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }",
"void reveal(int position) {\n MineTile currTile = getTile(position);\n if (currTile.getNumber() == 0) {\n currTile.reveal();\n for (Tile tileT : getSurround(position)) {\n MineTile tile = (MineTile) tileT;\n if (tile.isObscured() && !tile.isFlagged()) {\n tile.reveal();\n if (tile.getNumber() == 0) {\n reveal(tile.getPosition());\n }\n }\n }\n } else {\n currTile.reveal();\n }\n\n setChanged();\n notifyObservers();\n }",
"private void setupShadow()\n {\n int maximumPortNumber = Math.max(module_.getInputs().size(), module_.getOutputs().size());\n shadow_ = new BufferedImage(200 + 1 + 20, maximumPortNumber * 20 + 30 + 1 + 20, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = (Graphics2D) shadow_.getGraphics();\n g.setBackground(Color.white);\n g.setColor(new Color(0.0f, 0.0f, 0.0f, 0.3f));\n g.fillRoundRect(3, 3, 200, maximumPortNumber * 20 + 30, 20, 20);\n g.setColor(Color.white);\n // Convolve the shadow image using a median kernel\n int kSize = 5;\n float[] data = new float[kSize * kSize];\n float value = (float) (1. / (float) (kSize * kSize));\n for (int i = 0; i < data.length; i++)\n {\n data[i] = value;\n }\n op_ = new ConvolveOp(new Kernel(kSize, kSize, data));\n }",
"FlowPanel(Terrain terrain,Water2 water) {\n\t\tflood = water;\n\t\tland=terrain;\n\t}",
"public boolean tileGrass(float xTile, float yTile)\r\n/* 212: */ {\r\n/* 213:236 */ return (tileInBounds(xTile, yTile)) && (this.grass[((int)xTile)][((int)yTile)] != 0);\r\n/* 214: */ }",
"public SandTile(float x, float y) {\n\t\tsuper(x, y, ImageLibrary.get(\"sand_tile\"));\n\t}",
"private void revealTile(Tile currTile, Button btn) {\n\t\tif (currTile != null && btn != null) {\n\t\t\tgame.showTile(currTile);\n\t\t\tbtn.getStyleClass().add(\"bombs-\" + currTile.getAdjBombs());\n\t\t\tbtn.getStyleClass().add(\"shown\");\n\t\t\tbtn.setGraphic(null);\n\t\t\tif (currTile.getAdjBombs() != 0) {\n\t\t\t\tbtn.setText(\"\" + currTile.getAdjBombs());\t\n\t\t\t}\n\t\t}\n\t}",
"public FireTile() {\n super();\n setUtility(5);\n }",
"public String getTileHTML(String tileColour){\n return \"<td height=\\\"50\\\" width=\\\"50\\\" style=\\\"background-color:\"+tileColour+\";\\\"><img src=\\\"../../../../../resources/detective.png\\\" height=\\\"50\\\" width=\\\"50\\\"></td>\\n\";\n }",
"public BlackTile(float posX, float posY, float posZ, float height, float width) {\n super(new Box3D(posX, posY, posZ, height, width, 1f));\n this.setTexture(\"black_tile\");\n this.canWalkOver = true;\n }",
"@Override\n\tpublic void show() {\n\t\tcontainer = new Table();\n//\t\tcontainer.background(skin.getDrawable(\"darkenWorld\"));\n\t\tcontainer.setSize(width, height);\n\t\t\n\t\tdarken = new Image(skin.getDrawable(\"darkenWorld\"));\n\t\tdarken.setSize(width, height);\n\t\t\n\t\ttimer.start();\n\t\t\n\t\ttrainingBag = new TrainingBag(width, height);\n\t\t\n\t\tBitmapFont font = new BitmapFont(Gdx.files.internal(\"fontSmall-export.fnt\"),\n\t\t Gdx.files.internal(\"fontSmall-export.png\"), false);\n\t\t\n\t\t\n\t\tLabelStyle labelStyle = new LabelStyle();\n\t\tlabelStyle.font = font;\n\t\t\n\t\ttimeLeft = new Label(timeString + \" 20\", labelStyle);\n\t\ttimeLeft.setPosition(width - timeLeft.getWidth(), height - timeLeft.getHeight());\n\t\t\n\t\thits = new Label(hitsString + \"0\" + amountString, labelStyle);\n\t\thits.setPosition(0, height - timeLeft.getHeight());\n\t\t\n\t\t\n\t\tcontainer.row();\n\t\tcontainer.add(trainingBag);\n\t\t\n\t\tgroup.addActor(darken);\n\t\tgroup.addActor(container);\n\t\tgroup.addActor(timeLeft);\n\t\tgroup.addActor(hits);\n\t}",
"public void show(int i){\n if (i == 0){\n this.showmap();\n } else \n this.showfigure();\n }",
"public void printMap(){\n\n for (Tile [] tile_row : this.layout)\n {\n for (Tile tile : tile_row)\n {\n if (tile.isShelf()){\n System.out.print(\" R \");\n }\n else if (tile.isDP()){\n System.out.print(\" D \");\n }\n\n else {\n System.out.print(\" * \");\n }\n\n }\n System.out.println();\n }\n\n }",
"public void show() {\r\n\t\tif (getSpawnLocation() == null)\r\n\t\t\treturn;\r\n\r\n\t\tif (!checkItem()) {\r\n\t\t\titem \t= getWorld().dropItem(getSpawnLocation(), getItemStack());\r\n\t\t\titem.setVelocity(new Vector(0, 0.1, 0));\r\n\t\t\titem.setPickupDelay(1000);\r\n\t\t\t\r\n\t\t}\r\n\t\tisVisible \t= true;\r\n\t}",
"public Vector3i checkWhite(float x, float y, float tex, int tileHeight)\n {\n\n try\n {\n\n int offset_x = (int) Math.rint(x * mm_scale + mm_scale / 2.0f) + (int) (tex * 64 * 16);\n int offset_y = (int) Math.rint(y * mm_scale + mm_scale / 2.0f) + tileHeight * (mm_scale / 8);\n\n if (offset_x >= 0 && offset_y >= 0)\n {\n Color c = new Color(mousemap.getRGB(offset_x, offset_y));\n return new Vector3i(c.getRed(), c.getGreen(), c.getBlue());\n }\n\n return new Vector3i(255, 255, 255);\n\n }\n catch(Exception ignored)\n {\n return new Vector3i(255, 255, 255);\n }\n }",
"public void createPreview(Tile t)\n {\n \n boolean[][] pattern = t.getPattern();\n PImage preview = createImage(pattern.length, pattern[0].length, RGB);\n\n for (int i = 0; i < pattern.length; i++)\n {\n for (int j = 0; j < pattern[0].length; j++)\n {\n int loc = i + j * pattern.length;\n if (pattern[i][j])\n preview.pixels[loc] = color(0);\n else\n preview.pixels[loc] = color(255);\n }\n }\n preview.resize(100, 0);\n previews[t.getTileLevel()] = resizeToFit(preview, 100, 100);\n }",
"public static void renderChest(Block var0, int var1, float var2)\n\t {\n\t logic.metadata = var1;\n\t TileEntityRenderer.instance.renderTileEntityAt(logic, 0.0D, 0.0D, 0.0D, 0.0F);\n\t }",
"@Override\n\t public void onProvideShadowMetrics (Point size, Point touch){\n\t // Defines local variables\n\t int width;\n\t\t\t\tint height;\n\n\t // Sets the width of the shadow to half the width of the original View\n\t width = getView().getWidth() / 2;\n\n\t // Sets the height of the shadow to half the height of the original View\n\t height = getView().getHeight() / 2;\n\n\t // The drag shadow is a ColorDrawable. This sets its dimensions to be the same as the\n\t // Canvas that the system will provide. As a result, the drag shadow will fill the\n\t // Canvas.\n\t shadow.setBounds(0, 0, width, height);\n\n\t // Sets the size parameter's width and height values. These get back to the system\n\t // through the size parameter.\n\t size.set(width, height);\n\n\t // Sets the touch point's position to be in the middle of the drag shadow\n\t touch.set(width / 2, height / 2);\n\t }",
"public boolean isRevealed(int tile) {\r\n return (tiles[tile] & 2) != 0;\r\n }",
"void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void drawTileVH(Tile t, int x, int y, int cellSize, PGraphics pdf)\n {\n for(int i = 0; i < t.getW(); i++)\n {\n for(int j = 0; j < t.getH(); j++)\n {\n if(t.getPattern()[t.getW()-1-i][t.getH()-1-j])\n pdf.rect(x+i*cellSize, y+j*cellSize, cellSize*1.1f, cellSize*1.1f);\n }\n }\n }",
"public void render(List<Terrain> terrains, Matrix4f toShadowSpace){\n shader.loadToShadowMapMatrix(toShadowSpace);\n for(Terrain terrain:terrains){\n prepareTerrain((terrain));\n loadModelMatrix(terrain);\n glDrawElements(GL_TRIANGLES, terrain.getModel().getVertexCount(), GL_UNSIGNED_INT, 0);\n\n unbindTexturedModel();\n }\n }",
"public void drawCell()\n {\n // if mouse is not inside tile area dont draw anything\n if(showHover)\n {\n noStroke();\n \n rect(firstCellPosition[0]+hover[0]*cellSize,firstCellPosition[1]+hover[1]*cellSize,cellSize-1,cellSize-1);\n \n if(brushSize == 1)\n {\n if(!pattern[hover[0]][hover[1]])\n {\n pattern[hover[0]][hover[1]] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]][hover[1]] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+hover[0]*cellSize,firstCellPosition[1]+hover[1]*cellSize,cellSize-1,cellSize-1);\n }\n if(brushSize == 2)\n {\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 2; j++)\n {\n if(hover[0]+i < xCells && hover[1]+j < yCells)\n {\n if(!pattern[hover[0]+i][hover[1]+j])\n {\n pattern[hover[0]+i][hover[1]+j] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]+i][hover[1]+j] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+(hover[0]+i)*cellSize,firstCellPosition[1]+(hover[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n if(brushSize == 3)\n {\n for(int i = -1; i < 2; i++)\n {\n for(int j = -1; j < 2; j++)\n {\n if(hover[0]+i < xCells && hover[1]+j < yCells &&\n hover[0]+i >= 0 && hover[1]+j >= 0 )\n {\n if(!pattern[hover[0]+i][hover[1]+j])\n {\n pattern[hover[0]+i][hover[1]+j] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]+i][hover[1]+j] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+(hover[0]+i)*cellSize,firstCellPosition[1]+(hover[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n }\n }",
"@LargeTest\n public void testShadows() {\n TestAction ta = new TestAction(TestName.SHADOWS);\n runTest(ta, TestName.SHADOWS.name());\n }",
"public boolean tileHighlighted(float xTile, float yTile)\r\n/* 222: */ {\r\n/* 223:246 */ return (tileInBounds(xTile, yTile)) && \r\n/* 224:247 */ (this.highlight[((int)xTile)][((int)yTile)] != 0);\r\n/* 225: */ }",
"public void setTileX(int x) {\n\t\ttileX = x;\n\t}",
"public void draw_Tunnel_Tile(boolean b) {\n if (b) {\n mazeEditor.mazeDrawMode = DRAW_TUNNEL_TILE;\n\n Tog1.setState(false); \n Tog2.setState(false); \n Tog3.setState(false); \n Tog5.setState(false);\n Tog6.setState(false);\n Tog7.setState(false);\n }\n }",
"public Tile getTile() { return tile; }",
"public void drawCellHover()\n {\n int[] cell = mouseToCell();\n \n // if mouse is not inside tile area dont highlight anything\n if(showHover)\n {\n setHover(cell[0],cell[1]);\n fill(0,255,0,100);\n noStroke();\n \n if(brushSize == 1)\n {\n rect(firstCellPosition[0]+cell[0]*cellSize,firstCellPosition[1]+cell[1]*cellSize,cellSize-1,cellSize-1);\n }\n \n if(brushSize == 2)\n {\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 2; j++)\n {\n if(cell[0]+i < xCells && cell[1]+j < yCells)\n {\n rect(firstCellPosition[0]+(cell[0]+i)*cellSize,firstCellPosition[1]+(cell[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n \n if(brushSize == 3)\n {\n for(int i = -1; i < 2; i++)\n {\n for(int j = -1; j < 2; j++)\n {\n if(cell[0]+i < xCells && cell[1]+j < yCells &&\n cell[0]+i >= 0 && cell[1]+j >= 0 )\n {\n rect(firstCellPosition[0]+(cell[0]+i)*cellSize,firstCellPosition[1]+(cell[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n }\n }",
"public void setTile(final int x, final int y, final int z, final Tile newTile) {\r\n\t\t// Will anything actually happen?\r\n\t\tif (!isValidDraw(x, y, z, newTile)) {\r\n\t\t\t// No, so just bomb out\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Remember the old tile for a sec..\r\n\t\tTile oldTile = map.getTile(x, y, z);\r\n\t\toldTile.onCleared(this, x, y);\r\n\r\n\t\t// Draw onto the map\r\n\t\tmap.setTile(x, y, z, newTile);\r\n\t\tnewTile.onDrawn(this, x, y);\r\n\r\n\t\t// Calculate tile rules if the map changed on layer 0\r\n\t\tif (z == 0 && groupChanged(newTile.getGroup(), oldTile.getGroup())) {\r\n\t\t\t// Recursively start twiddling neighbours\r\n\t\t\trecalculateNeighbours(x, y);\r\n\t\t}\r\n\r\n\t\t// Calculate visibility\r\n\t\tcalcVis(x, y);\r\n\t\tcalcVis(x + 1, y);\r\n\t\tcalcVis(x + 1, y + 1);\r\n\t\tcalcVis(x, y + 1);\r\n\t\tcalcVis(x - 1, y + 1);\r\n\t\tcalcVis(x - 1, y);\r\n\t\tcalcVis(x - 1, y - 1);\r\n\t\tcalcVis(x, y - 1);\r\n\t\tcalcVis(x + 1, y - 1);\r\n\r\n\t\tif (listener != null) {\r\n\t\t\tlistener.onChanged(x, y);\r\n\t\t}\r\n\t}",
"public void drawStringWithShadow(String text, float x, float y, int color) {\n/* 36 */ drawString(text, x, y, color, true);\n/* */ }",
"public void setShadowColor(int color){\r\n this.shadow.setColor(color);\r\n }",
"public void highlightTile() {\n\t\tclearHighlightTile();\n\t\trectangle.setStrokeType(StrokeType.INSIDE);\n\t\trectangle.setStrokeWidth(2.0);\n\t\trectangle.setStroke(Color.RED);\n\t}",
"public void renderChest(Block block, int i, float f) {\n\t\tif(block==null) return; // prevent null pointer exceptions\n\t\t\n\t\tif(block instanceof BlockColoniesChest){\n\t\t\tTileEntityRenderer.instance.renderTileEntityAt(((BlockColoniesChest) block).getChestType(), 0.0D, 0.0D, 0.0D, 0.0F);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// otherwise render other game and mod chests\n\t\tsuper.renderChest(block,i,f); // should only be called as a last resort\n\t}",
"public void renderTiles(Screen screen, int xOffset, int yOffset) {\n\t\tif (xOffset < 0) xOffset = 0;\n\t\tif (xOffset > ((width << 3) - screen.width)) xOffset = ((width << 3) - screen.width);\n\t\tif (yOffset < 0) yOffset = 0;\n\t\tif (yOffset > ((height << 3) - screen.height)) yOffset = ((height) - screen.height);\n\t\t\n\t\tscreen.setOffset(xOffset, yOffset);\n\t\t\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tgetTile(x, y).render(screen, this, x << 3, y << 3);\n\t\t\t}\n\t\t}\n\t}",
"public void addTile(Tile tile) {\n ownedTiles.add(tile);\n }",
"@Test\n public void testTftile() {\n TfTile tile = new TfTile(1);\n assertEquals(R.drawable.tftile_01, tile.getBackground());\n assertEquals(1, tile.getId());\n tile.setId(11);\n assertEquals(R.drawable.tftile_11, tile.getBackground());\n }",
"public boolean tileFence(float xTile, float yTile)\r\n/* 202: */ {\r\n/* 203:226 */ return (tileInBounds(xTile, yTile)) && (this.door[((int)xTile)][((int)yTile)] != 0);\r\n/* 204: */ }",
"public Tile getTile() {\n return _tile;\n }",
"public void setScreenSpaceContactShadows(@EntityInstance int i, boolean enabled) {\n nSetScreenSpaceContactShadows(mNativeObject, i, enabled);\n }"
] | [
"0.6002332",
"0.5833643",
"0.5683152",
"0.5618825",
"0.56183475",
"0.55764645",
"0.5449408",
"0.54362863",
"0.543007",
"0.54243636",
"0.53172034",
"0.5312905",
"0.51996094",
"0.51622546",
"0.514792",
"0.5146119",
"0.513557",
"0.51318437",
"0.51066965",
"0.5090544",
"0.5089572",
"0.50882024",
"0.5086282",
"0.5064311",
"0.5058264",
"0.5026983",
"0.50170463",
"0.5016954",
"0.49836087",
"0.49734807",
"0.49730432",
"0.49401066",
"0.49097404",
"0.49083725",
"0.4903082",
"0.4880373",
"0.4878972",
"0.4878447",
"0.48776987",
"0.48764586",
"0.48718777",
"0.48714727",
"0.48707083",
"0.4859673",
"0.48581442",
"0.4832127",
"0.483092",
"0.48290968",
"0.4825555",
"0.48181766",
"0.48100534",
"0.48074022",
"0.47966805",
"0.4796419",
"0.47914746",
"0.47822246",
"0.47769088",
"0.47754255",
"0.4762616",
"0.47442785",
"0.47223032",
"0.4720288",
"0.47144997",
"0.47125995",
"0.47074026",
"0.47050312",
"0.47035012",
"0.47019657",
"0.47003973",
"0.4698756",
"0.4690807",
"0.46891853",
"0.4674686",
"0.4668037",
"0.46591538",
"0.46550998",
"0.46527314",
"0.4651013",
"0.46489862",
"0.46485704",
"0.46400446",
"0.46352628",
"0.4635221",
"0.46290132",
"0.461368",
"0.46019307",
"0.4584444",
"0.45806587",
"0.45724514",
"0.4566512",
"0.45606774",
"0.45587254",
"0.4556421",
"0.455161",
"0.45503554",
"0.45476988",
"0.453858",
"0.45378527",
"0.45334324",
"0.4531315"
] | 0.8404985 | 0 |
Creates a new instance of LoginBean | public LoginBean() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public loginBean() {\n }",
"public LoginBean() {\r\n \r\n \r\n }",
"public LoginFormBean() {\r\n \r\n }",
"public LoginActionBean() {\n\t\tthis(new ByNameHibernateRecordFetcherFactory(null).newInstance(new ReaderConstraint(\n\t\t\tUser.class)));\n\t}",
"public ExternalLoginManagedBean() {\n login = false;\n }",
"public ChangePasswordBean() {\n }",
"public UIUserLogginMangementBean() {\n }",
"@Override\r\n\tpublic UserBean createUserBean()\r\n\t{\r\n\t\treturn new UserManagedBean();\r\n\t}",
"public UserBean() {\n }",
"public UserBean() {\n }",
"public Login() {\n\n }",
"public Login() {\n }",
"public UsuariosBean() {\n }",
"public LoginPOJO() {\n\n\t\tPageFactory.initElements(driver, this);\t\n\t}",
"public Login() {\n usuario = new Usuario2();\n }",
"public static Login getInstance(){\n if (login==null){\n login=new Login();\n }\n return login;\n }",
"public LoginController() {\r\n }",
"public userBean() {\r\n }",
"public LoginController() {\r\n\r\n }",
"public Login() {\n inicializarUsuarios();\n }",
"public Login() {\n socio = new Socio();\n empleado = new Personal();\n }",
"public ControladorLogin() { }",
"public RegisterUserBean() {\n this.account.setGender(Boolean.TRUE);\n this.roleID = 5;\n }",
"public CrudBean() {\n }",
"public MainSessionBean() {\r\n init();\r\n }",
"public AccountManagerBean() {\n account = new Account();\n staff = new Staff();\n student = new Student();\n role = new Role();\n }",
"public UsuarioBean Login(String email_usuario, String pwd_usuario){\n UsuarioBean bean = null;\n MiConexion con = new MiConexion(contexto, null, null, 1);\n SQLiteDatabase sql = con.getReadableDatabase();\n Cursor cur = sql.rawQuery(\"SELECT * FROM Tb_Usuario where email_usuario=? and pwd_usuario=?\",\n new String[]{email_usuario, pwd_usuario});\n\n if(cur.moveToNext()){\n bean = new UsuarioBean();\n bean.setId_cargo(cur.getString(0));\n bean.setNom_usuario(cur.getString(1));\n bean.setApe_usuario(cur.getString(2));\n bean.setTip_usuario(cur.getString(3));\n bean.setEmail_usuario( cur.getString(4));\n bean.setPwd_usuario(cur.getString(5));\n bean.setId_cargo(cur.getString(6));\n\n }\n return bean;\n }",
"private UserBean buildUserBean(HttpServletRequest request) {\n\t\tAccount account = UserManager.getCurrentUser(request.getSession());\n \t\n \tUserBean userBean = new UserBean();\n \tuserBean.setFirstName(account.getGivenName());\n \tuserBean.setLastName(account.getSurname());\n \tString phoneNumber = \"\";\n \tif (account.getCustomData().get(\"phoneNumber\") != null) {\n \t\tphoneNumber = account.getCustomData().get(\"phoneNumber\").toString();\n \t}\n \tuserBean.setPhoneNumber(phoneNumber);\n \tString phoneCarrier = \"\";\n \tif (account.getCustomData().get(\"phoneCarrier\") != null) {\n \t\tphoneCarrier = account.getCustomData().get(\"phoneCarrier\").toString();\n \t}\n \tuserBean.setPhoneCarrier(phoneCarrier);\n \tString uniqueId = \"\";\n \tif (account.getCustomData().get(\"uniqueId\") != null) {\n \t\tuniqueId = account.getCustomData().get(\"uniqueId\").toString();\n \t}\n \tuserBean.setUniqueId(uniqueId);\n \t\n \treturn userBean;\n\t}",
"@Override\r\n\tpublic LoginBean verifyUserLogin(String uname, String pass) {\r\n\t\tLoginBean loginBean= new LoginBean();\r\n\t\tString sql = \"select userId,userName,password from Login where userName = ? and password=? \";\r\n\t\t loginBean= template.queryForObject(sql,\r\n\t\t\t\t\tnew Object[] { uname, pass },\r\n\t\t\t\t\tnew BeanPropertyRowMapper<LoginBean>(LoginBean.class));\r\n\t\t return loginBean;\r\n\t\t\r\n\t}",
"public LoginManager() {\r\n }",
"public Login()\r\n\t{\r\n\t\tthis.name=name;\r\n\t\tthis.dob=dob;\r\n\t\tthis.nationality=nationality;\r\n\t\tthis.location=location;\r\n\t\tthis.phno=phno;\r\n\t\tthis.gender=gender;\r\n\t\tthis.jobtype=jobtype;\r\n\t\tthis.experience=experience;\r\n\t\tthis.salary=salary;\r\n\t\t\r\n\t\tthis.uname=uname;\r\n\t\tthis.password=password;\r\n\t\t\r\n\t\tthis.notification=notification;\r\n\t}",
"public Login() {\r\n\t\tinitialize();\r\n\t}",
"public editarUsuarioBean() {\r\n }",
"public ListUserBean(){\n \n }",
"public LoginController(LoginForm form) {this.loginForm = form;}",
"public Login() {\n\t\tsuper();\n\t}",
"public RegistroBean() {\r\n }",
"public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }",
"public interface LoginDao {\n\n int login(LoginBean loginBean);\n}",
"public Login() {\n initComponents();\n \n }",
"public ProfiledApplicationBean() {}",
"public EmployeeLoginController() {\n }",
"public TestManageBean() {\n }",
"public ServiciosLogin() {\r\n }",
"@Override\n protected ShowbaseUserBean createUserBean(Member userEntity) {\n return new ShowbaseUserBean(userEntity);\n }",
"public void login( UserLoginBean loginBean ) {\n UserDAO userDao = UserDAO.getInstance();\n UserBean bean = userDao.findByLoginPassword(loginBean.getLogin(), loginBean.getPassword());\n System.out.println(bean);\n if (bean != null) {\n SessionUtil.setUserBean(bean);\n userCounter.addUserConnected();\n ControllerUtils.redirectTo(\"activities\");\n }\n else {\n SessionUtil.clearSession();\n ControllerUtils.addMessage(FacesMessage.SEVERITY_WARN, \"Connexion échouée\");\n }\n }",
"public Login() {\n initComponents();\n this.setTitle(\"Login\");\n this.setLocationRelativeTo(null);\n this.pack();\n // Asignanado objecto\n adminUsers = new usuarioAdmin();\n \n // No hay inicializacion de usuarios\n sys.us[0] = new Usuario();\n sys.us[0].setId(\"admin\");\n sys.us[0].setNombre(\"admin\");\n sys.us[0].setApellido(\"admin\");\n sys.us[0].setUser(\"admin\");\n sys.us[0].setPassword(\"admin\");\n sys.us[0].setRol(\"admin\");\n }",
"public CustomerLogin() {\n super();\n }",
"public static LoginFragment newInstance() {\n LoginFragment fragment = new LoginFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public void createUtilisateur(UtilisateurBean u) {\n\t}",
"public LoginPageController() {\n\t}",
"public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }",
"public LoginModel() {\n }",
"public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }",
"public ChatBean() {\r\n }",
"public static LoginFragment getInstance() {\n LoginFragment fragment = new LoginFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public LogIn() {\n \n }",
"private Widget createLoginPanel(final IViewContext<ICommonClientServiceAsync> viewContext)\n {\n DockPanel loginPanel = new DockPanel();\n // WORKAROUND The mechanism behind the autofill support does not work in testing\n if (!GWTUtils.isTesting())\n {\n final LoginPanelAutofill loginWidget = LoginPanelAutofill.get(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n } else\n {\n final LoginWidget loginWidget = new LoginWidget(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n }\n return loginPanel;\n }",
"public PersonLoginController() {\n }",
"public PeopleBean() {\n\n }",
"public LoginPage() {\n }",
"public NewJSFManagedBean() {\n }",
"public static LoginFragment newInstance() {\n return new LoginFragment();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public LoginPanel(Controller theController) {\n\t\tsuper();\n\t\tmyController = theController;\n\t\tusername = new JTextField();\n\t\tpassword = new JPasswordField();\n\t\tsubmit = new JButton(\"Login\");\n\t\tcreate();\n\t}",
"public UserLoginDAOImpl() {\r\n\r\n }",
"public Login() {\n initComponents();\n \n }",
"public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }",
"public login() {\r\n\t\tsuper();\r\n\t}",
"Login() { \n }",
"public Bean() {\n\t}",
"public Login() \n {\n super();\n create();\n this.setVisible(true);\n initComponents();\n }",
"@Override\r\n\tprotected void criarNovoBean() {\r\n\t\tcurrentBean = new MarcaOsEntity();\r\n\t}",
"public User(String login) {\n this.login = login;\n }",
"public SampleBean() {\n }",
"private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"johnDoe@gmail.com\", \"1234\");\n }\n }",
"public void setBeanLogin(BeanLogin beanLogin) {\n\t\tthis.beanLogin = beanLogin;\n\t}",
"public User logInUser(final String login, final String password);",
"public ClasseBean() {\r\n }",
"public ClasseBean() {\r\n }",
"public AdminLogin() {\n initComponents();\n }",
"public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"admin@gibmit.ch\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}",
"public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }",
"private LoginRepository(LoginDataSource dataSource) {\r\n this.dataSource = dataSource;\r\n }",
"public ClienteBean() {\n }"
] | [
"0.79463995",
"0.78893423",
"0.73518366",
"0.67654103",
"0.65356725",
"0.6477261",
"0.6362951",
"0.63498324",
"0.6270335",
"0.6270335",
"0.6254965",
"0.62027246",
"0.6183065",
"0.61760646",
"0.6149468",
"0.6116354",
"0.60935503",
"0.60899353",
"0.60864687",
"0.6080295",
"0.5972035",
"0.59394336",
"0.59364235",
"0.5908724",
"0.588677",
"0.58744854",
"0.5855258",
"0.58232677",
"0.5822542",
"0.58113736",
"0.580718",
"0.58039397",
"0.57991207",
"0.5794492",
"0.57762444",
"0.5754276",
"0.57298",
"0.5719957",
"0.57179046",
"0.56864274",
"0.56796026",
"0.5678197",
"0.56517476",
"0.56450725",
"0.5635887",
"0.5631811",
"0.56303996",
"0.56261533",
"0.56239974",
"0.5621492",
"0.56046146",
"0.56043273",
"0.5583139",
"0.5577434",
"0.5573396",
"0.55721736",
"0.5570011",
"0.55662286",
"0.5557382",
"0.5544419",
"0.5533864",
"0.5527672",
"0.5503453",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.54935503",
"0.5483652",
"0.54597354",
"0.54524803",
"0.54511195",
"0.54347485",
"0.5422969",
"0.54157126",
"0.5393843",
"0.53772694",
"0.5372447",
"0.5364848",
"0.5361399",
"0.53593844",
"0.53461105",
"0.53461105",
"0.53417903",
"0.53330165",
"0.53100085",
"0.5308241",
"0.53077626"
] | 0.80461526 | 0 |
Constructor for Favorites page | public Favorites_Adapter(Context context, ArrayList<POJOStoreInfo> FavouriteStoreDetails,String classname,String pageflag){
FavoritesInflater = LayoutInflater.from(context);
this.FavoritesContext = context;
this.mFavouriteStoreList = FavouriteStoreDetails;
imageLoader=new ImageLoader(context);
this.mClassName=classname;
this.mPageFlag=pageflag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FavoriteFragment() {\n }",
"private void initListFavorite() {\n favoritesList = mApiService.getFavorites();\n mRecyclerView.setAdapter(new MyNeighbourRecyclerViewAdapter(favoritesList, this));\n }",
"public Profile(String username, String password) {\n favorites = new ArrayList();\n this.username = username;\n this.password = password;\n }",
"private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }",
"FavoriteQuestions() {\n list = SharedPrefs.getFavList();\n }",
"public AfficherFavorits() {\r\n \r\n initComponents();\r\n \r\n }",
"public FavoriteAdapter(Map<Cocktail, String> cocktails, Context c) {\n this.map_favorites = cocktails;\n this.mDataSet = getStringArrFromMap();\n this.map_View_Favs = new HashMap<>();\n this.context = c;\n }",
"@RequestMapping(\"/favorites\")\n public String favorites(Model model) {\n // TODO: Get list of all GIFs marked as favorite\n List<Gif> faves = new ArrayList<>();\n\n model.addAttribute(\"gifs\", faves);\n model.addAttribute(\"username\", \"Chris Ramacciotti\"); // Static username\n return \"gif/favorites\";\n }",
"public FavoriteAdapter(ArrayList<String> myDataset) { // 초기 데이터형태\n //mContext = myContext;\n mDataset = myDataset;\n }",
"public FavoriteSongAdapter(ArrayList<Song> mListSongAdapter, MainActivity context) {\n this.mainActivity = context;\n this.mListFavoriteSongAdapter = mListSongAdapter;\n this.mInflater = LayoutInflater.from(context);\n }",
"@Override\r\n public void onFavoriteClicked() {\r\n fragFav = new FragmentFavoritesList();\r\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\r\n // Replace whatever is in the fragment_container view with this fragment,\r\n // and add the transaction to the back stack so the user can navigate back\r\n if (getResources().getBoolean(R.bool.isTablet)) {\r\n transaction.add(R.id.listFrag_tab,fragFav, \"FragmentFavoritesList\");\r\n }else {\r\n transaction.add(R.id.activity_main_smart, fragFav, \"FragmentFavoritesList\");\r\n }\r\n transaction.addToBackStack(null);\r\n // Commit the transaction\r\n transaction.commit();\r\n }",
"void favoriteView();",
"public FavoritesDB (Context context) {\n mFavDBHelper = new FavoriteDBHelper(context, DB_NAME, null, DB_VERSION);\n mFavSQLiteDB = mFavDBHelper.getWritableDatabase();\n mDBAccountString = context.getString(R.string.fav_db_account);\n mDBTitleString = context.getString(R.string.fav_db_title);\n mDBDescString = context.getString(R.string.fav_db_description);\n mDBURLString = context.getString(R.string.fav_db_url);\n }",
"private void setupFavoritesListView() {\n ListView listFavorites = (ListView) findViewById(R.id.list_favorites);\n try{\n PlayerDatabaseHelper PlayerDatabaseHelper = new PlayerDatabaseHelper(this);\n db = PlayerDatabaseHelper.getReadableDatabase();\n\n favoritesCursor = db.rawQuery(\"WITH sel_Players(P_id) As (Select player_id FROM SELECTION, USER WHERE NAME = ? AND _id = user_id) SELECT _id, NAME FROM PLAYER, sel_Players WHERE P_id = _id\", new String[] {User.getUName()});\n\n CursorAdapter favoriteAdapter =\n new SimpleCursorAdapter(TopLevelActivity.this,\n android.R.layout.simple_list_item_1,\n favoritesCursor,\n new String[]{\"NAME\"},\n new int[]{android.R.id.text1}, 0);\n listFavorites.setAdapter(favoriteAdapter);\n db.close();\n } catch(SQLiteException e) {\n Toast toast = Toast.makeText(this, \"Database unavailable\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n listFavorites.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> listView, View v, int position, long id) {\n Intent intent = new Intent(TopLevelActivity.this, forward.class);\n intent.putExtra(forward.EXTRA_PLAYERID, (int)id);\n startActivity(intent);\n }\n });\n }",
"public FavouriteRecyclerViewAdapter(Context context, ArrayList<Blog> blogArrayList) {\n this.context = context;\n this.blogArrayList = blogArrayList;\n }",
"@Override\n public void onResume() {\n super.onResume();\n initListFavorite();\n }",
"public FeedPage() {\n }",
"public void setUpFavouriteIcon() {\n if (isUserOwner()) {\n view.hideFavouriteIcon();\n } else if (currentAdvertIsFavourite()) {\n view.setIsAFavouriteIcon();\n } else {\n view.setIsNotAFavouriteIcon();\n }\n }",
"public void setFavorite(boolean favorite) {\n this.favorite = favorite;\n }",
"private void addToFavorites() {\n\n favoriteBool = true;\n preferencesConfig.writeAddFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Added to favorites.\", Toast.LENGTH_SHORT).show();\n\n }",
"public void showFavorites() {\n System.out.println(\"Mina favoriter: \" + myFavorites.size());\n for (int i = 0; i < myFavorites.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myFavorites.get(i).getTitle() +\n \"\\nRegissör: \" + myFavorites.get(i).getDirector() + \" | \" +\n \"Genre: \" + myFavorites.get(i).getGenre() + \" | \" +\n \"År: \" + myFavorites.get(i).getYear() + \" | \" +\n \"Längd: \" + myFavorites.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myFavorites.get(i).getRating());\n }\n }",
"@Override\n public void onClick(View view) {\n Intent mainlistIntent = new Intent(FavoriteActivity.this, FavoriteActivity.class);\n startActivity(mainlistIntent);\n }",
"public void setFavorite(boolean favorite) {\n isFavorite = favorite;\n }",
"private void getAllFavorite(){\n\n\n MainViewModel viewModel = ViewModelProviders.of(this).get(MainViewModel.class);\n viewModel.getFavorite().observe(this, new Observer<List<FavoriteEntry>>() {\n @Override\n public void onChanged(@Nullable List<FavoriteEntry> imageEntries) {\n List<Movie> movies = new ArrayList<>();\n for (FavoriteEntry entry : imageEntries){\n Movie movie = new Movie();\n movie.setId(entry.getMovieid());\n movie.setOverview(entry.getOverview());\n movie.setOriginalTitle(entry.getTitle());\n movie.setPosterPath(entry.getPosterpath());\n movie.setVoteAverage(entry.getUserrating());\n movie.setReleaseDate(entry.getReleasedate());\n movies.add(movie);\n }\n\n adapter.setMovies(movies);\n }\n });\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tSharedPreferences pres = this.getSharedPreferences(\"parameters\",\r\n\t\t\t\tContext.MODE_PRIVATE);\r\n\t\tString sina_access_token = pres.getString(\"sina_access_token\", \"\");\r\n\t\tString sina_access_secret = pres.getString(\"sina_access_secret\", \"\");\r\n\t\tIntent intent = getIntent();\r\n\t\tString weiBoID = intent.getStringExtra(\"weiBoID\");\r\n\r\n\t\t// http://api.t.sina.com.cn/favorites/create.json\r\n\t\turl = \"http://api.t.sina.com.cn/favorites/create.json\";\r\n//\t\tOauthUtils.getInstance().initSinaData();\r\n//\t\tjsonData = new Weibo().addfavorite(url, httpMethod, sina_access_token,\r\n//\t\t\t\tsina_access_secret, weiBoID, null);\r\n\t\ttry {\r\n\t\t\tjsonObj = new JSONObject(jsonData);\r\n\t\t} catch (JSONException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif (jsonObj.getString(\"id\").equals(weiBoID)) {\r\n\t\t\t\tsign = \"收藏成功!\";\r\n\t\t\t} else {\r\n\t\t\t\tsign = \"收藏失败!\";\r\n\t\t\t}\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tToast.makeText(FavoriteListActivity.this, sign, Toast.LENGTH_SHORT).show();\r\n\t\tfinish();\r\n\r\n\t}",
"public FishListAdapter (Context context) {\n\n super(context, R.layout.faqlist);//calls the superclass constructor\n list = new ArrayList<Fish>();//initalize the list as Fish\n Log.d(\"Adapter\", \"constructor\");\n }",
"private void initFavoriteButtonUI() {\n if (mNeighbour.isFavorite())\n mFavoriteBtn.setImageResource(R.drawable.ic_star_yellow_24dp);\n else\n mFavoriteBtn.setImageResource(R.drawable.ic_star_grey_24dp);\n }",
"public UserFavoriteDbHelper(Context context){\n super(context, DATABASE_NAME, null, DATABASE_VERSION );\n }",
"@RequestMapping(\"/favorites\")\n public String favorites(ModelMap modelMap) {\n List<Gif> gifs = gifRepo.findFavorites();\n modelMap.put(\"gifs\", gifs);\n return \"favorites\";\n }",
"public CF_ViewHolder(View itemView) {\n super(itemView);\n name = itemView.findViewById(R.id.name);\n likes = itemView.findViewById(R.id.likes);\n\n LL = itemView.findViewById(R.id.LL);\n\n C1 = itemView.findViewById(R.id.color1);\n C2 = itemView.findViewById(R.id.color2);\n C3 = itemView.findViewById(R.id.color3);\n\n fav = itemView.findViewById(R.id.fav);\n pallteby = itemView.findViewById(R.id.plateby);\n\n// fav.setOnClickListener(new View.OnClickListener() {\n// @Override\n// public void onClick(View v) {\n// if (!loved) {\n// String token;\n// SharedPreferences prefs = context.getSharedPreferences(Config.MY_PREFS_NAME, MODE_PRIVATE);\n// token = prefs.getString(\"token\", null);\n//\n// if (token == null) { //if user is signed in only then make him like the product\n// Toast.makeText(context, \"You need to sign in.\", Toast.LENGTH_SHORT).show();\n//\n// } else {\n// fav.setImageResource(context.getResources().getIdentifier(R.mipmap.favorite_selected + \"\", \"drawable\", context.getPackageName()));\n// loved = true;\n// loveCall(\"loved\", PID);\n// }\n//\n//\n// }\n// if (loved) {\n// fav.setImageResource(R.mipmap.top_favourite);\n// loved = false;\n// loveCall(\"not_loved\", PID);\n// }\n// }\n// });\n\n }",
"public void bind(FavoriteList favoriteList) {\n\n this.favoriteList = favoriteList;\n title.setText(favoriteList.getTitle());\n releaseDate.setText(favoriteList.getReleaseDate());\n\n title.setText(favoriteList.getTitle());\n rating.setText(String.valueOf(favoriteList.getRating()));\n\n if(favoriteList.getPosterPath()==null){\n Glide.with(itemView)\n .load(R.drawable.empty)\n .apply(RequestOptions.placeholderOf(R.color.colorAccent))\n .into(poster);\n }else{\n Glide.with(itemView)\n .load(IMAGE_URL + favoriteList.getPosterPath())\n .apply(RequestOptions.placeholderOf(R.color.colorAccent))\n .into(poster);\n }\n\n }",
"public FavoriteDBHelper(Context context, String name,\n SQLiteDatabase.CursorFactory factory, int version) {\n super(context, name, factory, version);\n mContext = context;\n create_FavDB_SQL = context.getString(R.string.create_FavDB_SQL);\n drop_FavDB_SQL = context.getString(R.string.drop_FavDB_SQL);\n\n }",
"public static FavoritePhotosFragment newInstance() {\n return new FavoritePhotosFragment();\n }",
"public void toggleFavorites()\n {\n this.showFavorites = !this.showFavorites;\n this.setupMorphs(Morphing.get(this.mc.thePlayer));\n }",
"@Override\n public void onFavouriteClick(int position) {\n int id = newLest2.get(position).getId();\n Bundle bundle = new Bundle();\n bundle.putInt(\"id\", id);\n bundle.putString(\"name\", newLest2.get(position).getName_en());\n bundle.putString(\"url\", newLest2.get(position).getImage());\n Navigation.findNavController(view).navigate(R.id.action_homeFragment_to_showItemInCategories, bundle);\n\n }",
"public final void resetFavorites() {\n Favorites favorites = Favorites.INSTANCE;\n favorites.clear();\n favorites.load(this.persistenceWrapper.readFavorites());\n }",
"public Foodf () {\n\t\tpreferences = new ArrayList<String>();\n\t}",
"public void saveFavorite(){\n //make sure movie is NOT already a favorite\n if(!mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is a new favorite, favorite movie list status has changed\n mFavoriteChanged = true;\n\n //set movie item favorite status as true\n mMovie.setFavorite(true);\n\n //save movie to favorite database table\n mMovieValet.saveFavorite(mMovie);\n\n //add movie to favorite movie list buffer\n mMovieStaff.addFavorite(mMovie);\n }\n\n //check if movie list type is display a favorite list and if the device is a tablet\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mIsTablet){\n //both yes, get favorite movies to update poster fragment\n getMovieList(PosterHelper.NAME_ID_FAVORITE);\n }\n }",
"public Home () {\n\t\t\n\t\tthis.isActiveListing = true;\n\t}",
"public void setToFavorite(boolean favorite) {\n this.isFavorite = favorite;\n }",
"private void populateFavoritesSections() {\n \tif (mUserProfile.userFavoriteAlbums != null && !Utils.isListEmpty(mUserProfile.userFavoriteAlbums.albums)) {\n \t\tmContainerFavoriteAlbums.setVisibility(View.VISIBLE);\n \t\t\n \t\tUserFavoriteAlbums userFavoriteAlbums = mUserProfile.userFavoriteAlbums;\n \t\tmTextFavoriteFavoriteAlbumsValue.setText(Integer.toString(userFavoriteAlbums.albumCount));\n \t\t\n \t\tStack<ImageView> favoriteAlbumsImages = new Stack<ImageView>();\n \t\tfavoriteAlbumsImages.add(mTextFavoriteFavoriteAlbum3);\n \t\tfavoriteAlbumsImages.add(mTextFavoriteFavoriteAlbum2);\n \t\tfavoriteAlbumsImages.add(mTextFavoriteFavoriteAlbum1);\n\n \t\tImageView albumImage = null;\n \t\t\n \t\tfor (MediaItem mediaItem : userFavoriteAlbums.albums) {\n \t\t\tif (favoriteAlbumsImages.isEmpty())\n \t\t\t\tbreak;\n \t\t\t\n \t\t\talbumImage = favoriteAlbumsImages.pop();\n \t\t\t\n \t\t\t//mImageFetcher.loadImage(mediaItem.getImageUrl(), albumImage);\n \t\t\t\n \t\t\tPicasso.with(getActivity()).cancelRequest(albumImage);\n \t\t\tif(getActivity() != null && mediaItem.getImageUrl() != null){\n \t\t\t\tPicasso.with(getActivity()).load(mediaItem.getImageUrl()).into(albumImage);\t\n \t\t\t}\n\t\t\t}\n \t\t\n \t} else {\n \t\tmContainerFavoriteAlbums.setVisibility(View.GONE);\n \t}\n \t\n \t// populates the favorite songs.\n \tif (mUserProfile.userFavoriteSongs != null && !Utils.isListEmpty(mUserProfile.userFavoriteSongs.songs)) {\n \t\tmContainerFavoriteSongs.setVisibility(View.VISIBLE);\n \t\t\n \t\tUserFavoriteSongs userFavoriteSongs = mUserProfile.userFavoriteSongs;\n \t\tmTextFavoriteSongsValue.setText(Integer.toString(userFavoriteSongs.songsCount));\n \t\t\n \t\tStack<TextView> favoriteSongsNames = new Stack<TextView>();\n \t\tfavoriteSongsNames.add(mTextFavoriteSong3Name);\n \t\tfavoriteSongsNames.add(mTextFavoriteSong2Name);\n \t\tfavoriteSongsNames.add(mTextFavoriteSong1Name);\n\n \t\tTextView songName = null;\n \t\t\n \t\tfor (MediaItem mediaItem : userFavoriteSongs.songs) {\n \t\t\tif (favoriteSongsNames.isEmpty())\n \t\t\t\tbreak;\n \t\t\t\n \t\t\tsongName = favoriteSongsNames.pop();\n \t\t\tsongName.setText(mediaItem.getTitle());\n\t\t\t}\n \t\t\n \t} else {\n \t\tmContainerFavoriteSongs.setVisibility(View.GONE);\n \t}\n \t\n \t// populates the favorite playlists.\n \tif (mUserProfile.userFavoritePlaylists != null && !Utils.isListEmpty(mUserProfile.userFavoritePlaylists.playlists)) {\n \t\tmContainerFavoritePlaylists.setVisibility(View.VISIBLE);\n \t\t\n \t\tUserFavoritePlaylists userFavoritePlaylists = mUserProfile.userFavoritePlaylists;\n \t\tmTextFavoritePlaylistValue.setText(Integer.toString(userFavoritePlaylists.playlistCount));\n \t\t\n \t\tStack<TextView> favoritePlaylistsNames = new Stack<TextView>();\n \t\tfavoritePlaylistsNames.add(mTextFavoritePlaylist3Name);\n \t\tfavoritePlaylistsNames.add(mTextFavoritePlaylist2Name);\n \t\tfavoritePlaylistsNames.add(mTextFavoritePlaylist1Name);\n\n \t\tTextView playlistsName = null;\n \t\t\n \t\tfor (MediaItem mediaItem : userFavoritePlaylists.playlists) {\n \t\t\tif (favoritePlaylistsNames.isEmpty())\n \t\t\t\tbreak;\n \t\t\t\n \t\t\tplaylistsName = favoritePlaylistsNames.pop();\n \t\t\tplaylistsName.setText(mediaItem.getTitle());\n\t\t\t}\n \t\t\n \t} else {\n \t\tmContainerFavoritePlaylists.setVisibility(View.GONE);\n \t}\n \t\n \t// populates the favorite videos.\n \tif (mUserProfile.userFavoriteVideos != null && !Utils.isListEmpty(mUserProfile.userFavoriteVideos.videos)) {\n \t\tmContainerFavoriteVideos.setVisibility(View.VISIBLE);\n \t\t\n \t\tUserFavoriteVideos userFavoriteVideos = mUserProfile.userFavoriteVideos;\n \t\tmTextFavoriteVideosValue.setText(Integer.toString(userFavoriteVideos.videoCount));\n \t\t\n \t\tStack<ImageView> favoriteVideosImages = new Stack<ImageView>();\n \t\tfavoriteVideosImages.add(mTextFavoriteVideo3);\n \t\tfavoriteVideosImages.add(mTextFavoriteVideo2);\n \t\tfavoriteVideosImages.add(mTextFavoriteVideo1);\n\n \t\tImageView videoImage = null;\n \t\t\n \t\tfor (MediaItem mediaItem : userFavoriteVideos.videos) {\n \t\t\tif (favoriteVideosImages.isEmpty())\n \t\t\t\tbreak;\n \t\t\t\n \t\t\tvideoImage = favoriteVideosImages.pop();\n \t\t\t\n \t\t\t//mImageFetcher.loadImage(mediaItem.getImageUrl(), videoImage);\n \t\t\t\n \t\t\tPicasso.with(getActivity()).cancelRequest(videoImage);\n \t\t\tif(getActivity() != null && !TextUtils.isEmpty(mediaItem.getImageUrl())){\n \t\t\t\tPicasso.with(getActivity()).load(mediaItem.getImageUrl()).into(videoImage); \t\t\t\t\n \t\t\t}\n\t\t\t}\n \t\t\n \t} else {\n \t\tmContainerFavoriteVideos.setVisibility(View.GONE);\n \t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_favorite:\n ItemFavoriteUrl db = new ItemFavoriteUrl(webView.getTitle(), webView.getUrl());\n db.save();\n adapter.notifyDataSetChanged();\n //adapter.add(ItemFavoriteUrl.findById(ItemFavoriteUrl.class, ItemFavoriteUrl.count(ItemFavoriteUrl.class)));\n Toast.makeText(MainActivity.this, R.string.favorite_saved, Toast.LENGTH_SHORT).show();\n /*for (int i=0; i<ItemFavoriteUrl.count(ItemFavoriteUrl.class); i++) {\n db = ItemFavoriteUrl.find\n Log.d(\"db\", db.url);\n }*/\n Log.d(\"count\", adapter.getCount() + \"\");\n break;\n\n case R.id.action_clear:\n ItemFavoriteUrl.deleteAll(ItemFavoriteUrl.class);\n adapter.notifyDataSetChanged();\n Toast.makeText(MainActivity.this, R.string.clear, Toast.LENGTH_SHORT).show();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public RecentItem() {\n }",
"public Profile()\n {\n\n friendslist = new ArrayList<>();\n }",
"public PlaylistFragment() {\n }",
"public void favouriteUser() {\r\n\t\tif(favourited) {\r\n\t\t\tcurrentUser.unfavouriteUser(userToView.getUserID());\r\n\t\t\tfavouriteButton.setText(\"Favourite\");\r\n\t\t\tfavourited = false;\r\n\t\t} else if(currentUser.getUserID() != userToView.getUserID()){\r\n\t\t\tcurrentUser.favouriteUser(userToView.getUserID());\r\n\t\t\tfavouriteButton.setText(\"Unfavourite\");\r\n\t\t\tfavourited = true;\r\n\t\t} else {\r\n\t\t\tCONSTANTS.makeAlertWindow(\"warning\",\"You can not favorite yourself!\");\r\n\t\t}\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_fav, container, false);\n recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);\n recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n fList = new ArrayList<>();\n\n adapter = new FavAdapter(fList, getActivity().getApplicationContext());\n recyclerView.setAdapter(adapter);\n\n fList.addAll(Fav.listAll(Fav.class));\n adapter.notifyDataSetChanged();\n\n\n return view;\n }",
"@Override\n\tpublic boolean isFavorite() {\n\t\treturn this.isFavorite;\n\t}",
"@Override\n public void onClick(View view) {\n isFavorite = !isFavorite;\n\n if (isFavorite) {\n Toast.makeText(ShowTeacherActivity.this,\n getString(R.string.message_teacher_add_to_favorites), Toast.LENGTH_SHORT)\n .show();\n presenter.saveFavorite(ShowTeacherActivity.this, teacher);\n ibFavorite.setImageResource(R.drawable.ic_favorite_full);\n } else {\n Toast.makeText(ShowTeacherActivity.this,\n getString(R.string.message_teacher_delete_from_favorites), Toast.LENGTH_SHORT)\n .show();\n presenter.deleteFavorite(ShowTeacherActivity.this, teacher.getId());\n ibFavorite.setImageResource(R.drawable.ic_favorite_border);\n }\n }",
"public boolean isFavorite() {\n return isFavorite;\n }",
"public boolean isFavorite() {\n return isFavorite;\n }",
"@Override\n public void onClick(View view) {\n\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n\n if (favorited) {\n unFavorite(mangaID, user);\n } else {\n favorite(mangaID, mangaDetails.getTitle(), user);\n }\n\n }",
"private void getFavData() {\n favouriteViewModel.getFavouritePostData().observe(this, result -> {\n if (result != null) {\n if (result.status == Status.SUCCESS) {\n if (this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n favouriteViewModel.setLoadingState(false);\n itemViewModel.setItemDetailObj(itemViewModel.itemId, itemViewModel.historyFlag, loginUserId);\n }\n\n } else if (result.status == Status.ERROR) {\n if (this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n favouriteViewModel.setLoadingState(false);\n }\n }\n }\n });\n }",
"public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }",
"public void setFavortieid(Integer favortieid) {\n this.favortieid = favortieid;\n }",
"public Fish() {\r\n\t}",
"public FlyerFeaturedItem() {}",
"public FrequentFragment() {\n }",
"public MusicPlayer() {\n\t\t// initialize all instance variables\n\t\tplaylist = new BinaryHeapA(new Song[0]);\n\t\tfavoritelist = new BinaryHeapA(new Song[0]);\n\t\tisPlaylist = true;\n\t\tsortOrder = 0;\n\t\tisPlaying = false;\n\t\tcurrentSongIndex = 0;\n\t\trepeat = true;\n\t\tshuffle = false;\n\t\tshuffleOrder = new ArrayList<Song>();\n\t\tshuffleSongIndex = -1;\n\t}",
"@RequestMapping(value = \"home\", method = RequestMethod.GET)\n public String home(Model model, HttpServletRequest request){\n IronUser user = (IronUser)request.getSession().getAttribute(\"user\");\n\n Long usrId = user.getId();\n\n // get users favorites\n Set<Movie> favs = userRepository.findOne(usrId).getFavs();\n\n\n // put them in a model\n model.addAttribute(\"favs\", favs);\n\n // send them to the dam\n return \"home\";\n }",
"public void onFavButtonClicked(View view) {\n isFav = !isFav;\n toggleButtonText(isFav);\n \n // Update DB\n new OperateWithDBMovieAsyncTask().execute(isFav ? ADD_MOVIE : REMOVE_MOVIE);\n }",
"public void backToPosters(){\n //check if favorite list is going to be displayed or if favorite list has changed\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mFavoriteChanged){\n //refresh favorite list\n showMovieList(mMovieStaff.getMovies(PosterHelper.NAME_ID_FAVORITE),\n PosterHelper.NAME_ID_FAVORITE);\n }\n }",
"public Comprador() {\n // initialise instance variables\n super(1,\"\",\"\",\"\",\"\",\"\"); //super(email, nome, password, dataNascimento, morada)\n favoritos = new ArrayList<String>();\n }",
"public void onLoadMenuMyFavoritesSelected();",
"public static FavoritFilterList newInstance(int userID) {\n\t\tBundle args = new Bundle();\n\n\t\targs.putInt(\"userID\", userID);\n\n\t\tFavoritFilterList list = new FavoritFilterList();\n\t\tlist.setArguments(args);\n\n\t\treturn list;\n\t}",
"@Override\n public void onClick(View view) {\n Intent playlistIntent = new Intent(FavoriteActivity.this, PlaylistActivity.class);\n startActivity(playlistIntent);\n }",
"public FileListFragment() {\n }",
"public FavoriteSeller(@Nullable String str, @Nullable String str2, @Nullable Image image, @NotNull String str3, @Nullable Boolean bool, boolean z, @Nullable Boolean bool2, @NotNull DeepLink deepLink2, @Nullable List<? extends SerpElement> list, @Nullable Boolean bool3) {\n Intrinsics.checkNotNullParameter(str3, \"userKey\");\n Intrinsics.checkNotNullParameter(deepLink2, \"deepLink\");\n this.name = str;\n this.description = str2;\n this.avatar = image;\n this.userKey = str3;\n this.isShop = bool;\n this.isDisabled = z;\n this.isNotificationsActivated = bool2;\n this.deepLink = deepLink2;\n this.items = list;\n this.hasNewItems = bool3;\n }",
"@Override\n public void onClick(View v) {\n FavouriteDatabase fd = new FavouriteDatabase();\n fd.addToFavouritesList(catID);\n Toast.makeText(getContext(), \"Added to your Favourites\", Toast.LENGTH_SHORT).show();\n }",
"public HomePageAdapter(FragmentManager fm) {\n super(fm);\n this.fm = fm;\n }",
"public AdapterProfFrontPage(FragmentManager fm) {\n super(fm);\n }",
"private Films() {\n\t\tsuper(\"films\");\n\t}",
"public void saveAsMyFavorite(View v){\n\n MyFavoriteLocations myFavoriteLocation=new MyFavoriteLocations();\n myFavoriteLocation.setMyFavoriteLocations(new Locations(1,titleText, address, descriptionText, budgetText, lt, ln, \"df\"));\n\n myFavoriteLocation.save();\n }",
"private static Achievement createFavoriteAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"favorite_none\");\n picturesPaths.add(\"favorite_bronze\");\n picturesPaths.add(\"favorite_silver\");\n picturesPaths.add(\"favorite_diamond\");\n\n ArrayList<String> picturesLabels = new ArrayList<>();\n picturesLabels.add(\"No favorite\");\n picturesLabels.add(\"Curious Chef\");\n picturesLabels.add(\"Local Chef\");\n picturesLabels.add(\"Library Chef\");\n\n ArrayList<Integer> levelSteps = new ArrayList<>();\n levelSteps.add(1);\n levelSteps.add(10);\n levelSteps.add(50);\n\n Function<User, Integer> getUserNbFavorites = u -> u.getFavourites().size();\n\n return new Achievement(\"favorite\", STANDARD_NB_LEVELS, picturesPaths, picturesLabels, levelSteps, getUserNbFavorites);\n }",
"@Override\n public void onFavoriteDatabaseChanged() {\n //setCategoryCount(FileCategory.Favorite, mFavoriteList.getCount());\n }",
"public Twitter() {\n followees = new HashMap<>();\n tweetList = new ArrayList<>();\n }",
"public RestaurantsListFragment() {\n }",
"public void setFavSite(final String favSite){\n\t\tthis.favSite = favSite;\n\t}",
"public void setFavTitle(final String favTitle){\n\t\tthis.favTitle = favTitle;\n\t}",
"public Recent() {\n }",
"public FpLista() {\r\n\t\t\r\n\t}",
"public ShoppingListItem() {}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_favorites, null);\n initUi(view);\n setListener();\n callingServiceFavorites();\n return view;\n }",
"private BookmarkStore() {\n }",
"@Override\n\t\tpublic void onFavorite(User arg0, User arg1, Status arg2) {\n\t\t\t\n\t\t}",
"public void clickFavoritesLink()\n\t{\n \telementUtils.performElementClick(wbFavoritesLink);\n\t}",
"@Override\n\tpublic void getFavorit(int idUser) {\n\t\t\n\t}",
"public void addToFavorites() {\n\n // Create new content values object\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_ID, sMovie.getMovieId());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_TITLE, sMovie.getMovieTitle());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_ORIGINAL_TITLE, sMovie.getMovieOriginalTitle());\n contentValues.put(FavMovieEntry.COLUMN_POSTER_PATH, sMovie.getPoster());\n contentValues.put(FavMovieEntry.COLUMN_BACKDROP_PATH, sMovie.getMovieBackdrop());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_RELEASE_DATE, sMovie.getReleaseDate());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_RATING, sMovie.getVoteAverage());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_SYNOPSIS, sMovie.getPlotSynopsis());\n\n try {\n mCurrentMovieUri = getContentResolver().insert(FavMovieEntry.CONTENT_URI,\n contentValues);\n } catch (IllegalArgumentException e) {\n mCurrentMovieUri = null;\n Log.v(LOG_TAG, e.toString());\n }\n\n if (mCurrentMovieUri != null) {\n isAddedToFavorites();\n }\n\n }",
"@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\n\t\t//get profile data from database\n\t\tProfile profile = ProfileDAO.searchProfile(String.valueOf(friendsID));\n\t\t//get privacy reference data from database\n\t\tProfilePrivacy profilePrivacy = ProfileDAO.searchProfilePrivacy(String.valueOf(friendsID));\n\t\t//display username\n\t\tusername.setText(profile.getUsername());\n\t\t\n\t\t//other data from friend's profile\n\t\tif(profilePrivacy.getFirstName()) firstName.setText(profile.getFirstName());\n\t\telse firstName.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getLastName()) lastName.setText(profile.getLastName());\n\t\telse lastName.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getEmail()) email.setText(profile.getEmail());\n\t\telse email.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getBirthday()) birthday.setText(profile.getBirthday());\n\t\telse birthday.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getPhoneNumber()) phone.setText(profile.getPhoneNumber());\n\t\telse phone.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getOccupation()) occupation.setText(profile.getOccupation());\n\t\telse occupation.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getSchool()) school.setText(profile.getSchool());\n\t\telse school.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getStatus()) status.setText(profile.getStatus());\n\t\telse status.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getPosts()) showPosts();\n\t\telse postsList.getItems().add(new Text(\"User chose not to display posts.\"));\n\t}",
"@Override\n\tpublic void onCreate(final Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tthis.datasource = super.getDatasource();\n\t\tthis.context = super.getContext();\n\n\t\tthis.setContentView(R.layout.add_or_edit_favorite);\n\n\t\t// get values of calling activity\n\t\tfinal int selectedFavoriteId = this.getIntent().getIntExtra(DBConstants.COL_FAVORITE_ID, -1);\n\t\tfinal String selectedFavoriteName = this.getIntent().getStringExtra(DBConstants.COL_FAVORITE_NAME);\n\n\t\t// set the title to match the activity\n\t\tthis.textViewTitle = (TextView) this.findViewById(R.id.titleAddFavorite);\n\t\tthis.textViewTitle.setText(R.string.title_edit_name_favoritelist);\n\n\t\tthis.editTextFavoriteName = (EditText) this.findViewById(R.id.editTextNameAddFavoritelist);\n\t\tthis.editTextFavoriteName.setText(selectedFavoriteName);\n\t\tthis.editTextFavoriteName.addTextChangedListener(super.getTextWatcher(R.id.editTextNameAddFavoritelist));\n\n\t\tthis.buttonEditFavorite = (Button) this.findViewById(R.id.buttonConfirmAddFavoritelist);\n\t\tthis.buttonEditFavorite.setText(R.string.button_text_save);\n\n\t\tthis.buttonEditFavorite.setOnClickListener(new OnClickListener() {\n\n\t\t\tpublic void onClick(final View v) {\n\t\t\t\tif (EditFavoriteActivity.super.setErrorOnEmptyEditTexts(editTextIds)) {\n\n\t\t\t\t\t// check whether there is already a favoritelist with this\n\t\t\t\t\t// name\n\t\t\t\t\tfinal Favorite alreadyExistingFavorite = EditFavoriteActivity.this.datasource\n\t\t\t\t\t\t\t.getFavoriteByName(EditFavoriteActivity.this.editTextFavoriteName.getText().toString());\n\n\t\t\t\t\tif (alreadyExistingFavorite == null) {\n\n\t\t\t\t\t\tfinal Favorite favoriteToUpdate = new Favorite();\n\t\t\t\t\t\tfavoriteToUpdate.setId(selectedFavoriteId);\n\t\t\t\t\t\tfavoriteToUpdate.setName(EditFavoriteActivity.this.editTextFavoriteName.getText().toString());\n\n\t\t\t\t\t\tEditFavoriteActivity.this.datasource.updateFavorite(favoriteToUpdate);\n\t\t\t\t\t\tEditFavoriteActivity.this.finish();\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(EditFavoriteActivity.this.context,\n\t\t\t\t\t\t\t\tEditFavoriteActivity.this.getString(R.string.msg_favorite_already_exists), Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void setUpViewModel() {\n final FavoriteViewModel viewModel = ViewModelProviders.of(this).get(FavoriteViewModel.class);\n viewModel.getFavorites().observe(this, new Observer<List<NoteEntry>>() {\n @Override\n public void onChanged(@Nullable List<NoteEntry> noteEntries) {\n mAdapter.setNotes(noteEntries);\n toggleEmptyView(noteEntries);\n }\n });\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_wallpaper, container, false);\n folderTitle = view.findViewById(R.id.folder_title);\n isFavorite = view.findViewById(R.id.is_favorite);\n wallpaperGrid = view.findViewById(R.id.grid_view);\n addWallpaperButton = view.findViewById(R.id.add_wallpaper);\n\n //We take arguments passed to the fragment and set wallpaperDirectory Object for this fragment\n //and set title to whatever wallpaper Directory title is\n wallpaperDirectory = new WallpaperDirectory();\n wallpaperDirectory.Title = getArguments().getString(FOLDER_TITLE);\n wallpaperDirectory.PreviewUrl = getArguments().getString(FOLDER_PREVIEW);\n folderTitle.setText(wallpaperDirectory.Title);\n\n //we get sharedPreference Object for both settings and favorites\n sharedPreferences =getActivity().getSharedPreferences(PrefsKeys.SETTINGS,Context.MODE_PRIVATE);\n SharedPreferences favPreferences = getActivity().getSharedPreferences(PrefsKeys.FAVORITES,Context.MODE_PRIVATE);\n\n //we check if current folder is favorited then we set isFavorite to checked\n\n isFavorite.setChecked(favPreferences.contains(wallpaperDirectory.Title));\n isFavorite.setOnCheckedChangeListener((buttonView, isChecked) -> {\n isFavorite.setEnabled(false);\n //we update the value whether or not isFavorite is checked\n if(isChecked){\n favPreferences.edit().putString(wallpaperDirectory.Title,wallpaperDirectory.PreviewUrl).apply();\n }else{\n favPreferences.edit().remove(wallpaperDirectory.Title).apply();\n }\n isFavorite.setEnabled(true);\n });\n return view;\n }",
"@Override\n\tpublic void setFavorite(boolean value) {\n\t\tthis.isFavorite = value;\n\t}",
"private void init(Context context, AttributeSet attrs) {\n mButtonSize = Utils.dpToPx(48, getResources());\n mPadding = Utils.dpToPx(DEFAULT_PADDING, getResources());\n mFavorite = DEFAULT_FAVORITE;\n mAnimateFavorite = DEFAULT_ANIMATE_FAVORITE;\n mAnimateUnfavorite = DEFAULT_ANIMATE_UNFAVORITE;\n mFavoriteResource = FAVORITE_STAR_BLACK;\n mNotFavoriteResource = FAVORITE_STAR_BORDER_BLACK;\n mRotationDuration = DEFAULT_ROTATION_DURATION;\n mRotationAngle = DEFAULT_ROTATION_ANGLE;\n mBounceDuration = DEFAULT_BOUNCE_DURATION;\n mColor = STYLE_BLACK;\n mType = STYLE_STAR;\n if (!isInEditMode()) {\n if (attrs != null) {\n initAttributes(context, attrs);\n }\n setOnClickListener(new OnClickListener() {\n @Override public void onClick(View v) {\n toggleFavorite();\n }\n });\n }\n if (mFavorite) {\n setImageResource(mFavoriteResource);\n } else {\n setImageResource(mNotFavoriteResource);\n }\n setPadding(mPadding, mPadding, mPadding, mPadding);\n }",
"public static void findFavourites() {\n DataManager.currentFavouritesList.clear();\n\n for (int i = 0; i < DataManager.fullFavouritesList.size(); i++) {\n Attraction attraction = DataManager.findAttractionByName(DataManager.fullFavouritesList.get(i));\n\n if (attraction != null) {\n DataManager.currentFavouritesList.add(attraction);\n }\n }\n\n FavouritesListFragment.backgroundLayout.setVisibility(DataManager.currentFavouritesList.size() == 0 ? View.VISIBLE : View.INVISIBLE);\n\n AttractionsListFragment.attractionsAdapter.notifyDataSetChanged();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_fav) {\n FavoritesDataSource dataSource = new FavoritesDataSource(getBaseContext());\n dataSource.open();\n if(isFav){\n //remove from favorites\n dataSource.deleteFromFavorites(placeid);\n item.setIcon(R.drawable.ic_heart_outline_white);\n Toast.makeText(getBaseContext(),placeName+\" was removed from favorites\",Toast.LENGTH_SHORT).show();\n isFav = false;\n }else{\n //add to favorites\n Place place = new Place(placeid,placeName,address,true,picURL);\n dataSource.addToFavorites(place);\n item.setIcon(R.drawable.ic_heart_fill_white);\n Toast.makeText(getBaseContext(),placeName+\" was added to favorites\",Toast.LENGTH_SHORT).show();\n isFav = true;\n }\n dataSource.close();\n return true;\n }else if(id == R.id.action_share){\n //open twitter url\n String tweetParams = \"text=\"+ URLEncoder.encode(\"Check out \"+placeName+\" located at \"+address+\". Website \")+\"&url=\"+URLEncoder.encode(tweetURL)+\"&hashtags=TravelAndEntertainmentSearch\";\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://twitter.com/intent/tweet?\"+tweetParams));\n startActivity(browserIntent);\n return true;\n }else if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public static void main(String[] args) {\n Favorites f = new Favorites();\n f.putFavorite(String.class, \"Java\");\n f.putFavorite(Integer.class, 0xcafebabe);\n f.putFavorite(Class.class, Favorites.class);\n\n String favoriteString = f.getFavorite(String.class);\n int favoriteInteger = f.getFavorite(Integer.class);\n Class<?> favoriteClass = f.getFavorite(Class.class);\n System.out.printf(\"%s %x %s%n\", favoriteString, favoriteInteger,\n favoriteClass.getName());\n\t}",
"public ArrayList<String> loadFavorites() {\n\n\t\tSAVE_FILE = FAVORITE_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}",
"@Override\n\tpublic void addFavorit(FavorisImpl newfavorit) {\n\t\t\n\t}",
"public Account(int id, String google_id, String name, int tokens, String imageURL, Timestamp lastConnected, ArrayList<Story> favorites){\n super(id, google_id, name, tokens, imageURL, lastConnected, favorites);\n signIn();\n }"
] | [
"0.72284704",
"0.67564994",
"0.66796637",
"0.6607118",
"0.6434753",
"0.6430092",
"0.64004797",
"0.61623424",
"0.61597484",
"0.61531526",
"0.61416036",
"0.6128898",
"0.60575044",
"0.6036238",
"0.59008265",
"0.5842841",
"0.578553",
"0.5769363",
"0.57092655",
"0.5695374",
"0.5656873",
"0.5652251",
"0.56105745",
"0.55895895",
"0.55656075",
"0.5543221",
"0.5532233",
"0.5528555",
"0.5491998",
"0.54851615",
"0.5481344",
"0.54800195",
"0.5478229",
"0.54710174",
"0.54527205",
"0.5444959",
"0.5438425",
"0.54319286",
"0.54233855",
"0.5423129",
"0.53950804",
"0.5387152",
"0.5380306",
"0.537499",
"0.5373011",
"0.5365843",
"0.53641933",
"0.5354175",
"0.5339145",
"0.53387356",
"0.53387356",
"0.5336291",
"0.53295386",
"0.53237903",
"0.5318736",
"0.53138584",
"0.5307659",
"0.5307033",
"0.5295781",
"0.52912503",
"0.528809",
"0.5286539",
"0.5275773",
"0.5274278",
"0.527092",
"0.5266759",
"0.5262897",
"0.5258608",
"0.5248666",
"0.5246454",
"0.5239406",
"0.52360356",
"0.52317387",
"0.52275",
"0.52269864",
"0.52167505",
"0.52166796",
"0.52093655",
"0.52022976",
"0.51878375",
"0.51866573",
"0.5185727",
"0.51839626",
"0.51799756",
"0.51771164",
"0.51702744",
"0.5166157",
"0.5165105",
"0.5163865",
"0.5163675",
"0.51593226",
"0.51590717",
"0.51540685",
"0.5138509",
"0.51377416",
"0.5129113",
"0.5122643",
"0.5121475",
"0.5120865",
"0.51177084"
] | 0.71366787 | 1 |
Uniform weights should be the same as the unparameterized basic RWR | @Test
public void testUniformRWR() {
log.debug("Test logging");
int maxT = 10;
AnnotatedGraph<String> g = brGraphs.get(0);
TreeMap<String,Double> startVec = new TreeMap<String,Double>();
startVec.put("r0",1.0);
Map<String,Double> baseLineVec = myRWR(startVec,g,maxT);
TreeMap<String,Double>uniformWeightVec = new TreeMap<String,Double>();
uniformWeightVec.put("fromb",1.0);
uniformWeightVec.put("tob",1.0);
uniformWeightVec.put("fromr",1.0);
uniformWeightVec.put("tor",1.0);
uniformWeightVec.put("restart",1.0);
Map<String,Double> newVec = srw.rwrUsingFeatures(g, startVec, uniformWeightVec);
equalScores(baseLineVec,newVec);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setWeightsUniformly(RandomDataImpl rnd, double eInit) {\n\t\tfor (int i = 0; i < weights.length; i++) {\t\t\n\t\t\tweights[i] = rnd.nextUniform(-eInit, eInit);\n\t\t}\n\t}",
"public void setWeights(float[] w) {\n _w1D = w;\n _weights = true;\n }",
"public void initWeights(){\r\n Random rand = new Random();\r\n double e = Math.sqrt(6.0/(wordSize*windowSize+hiddenSize));\r\n \r\n W = SimpleMatrix.random(hiddenSize, windowSize*wordSize, -e, e, rand);\r\n b1 = new SimpleMatrix(hiddenSize, 1);\r\n b1.zero();\r\n \r\n //U = SimpleMatrix.random(hiddenSize, 1, -0.1, 0.1, rand);\r\n U = new SimpleMatrix(hiddenSize, 1);\r\n U.zero();\r\n b2 = 0.0;\r\n \r\n C = C/(W.getNumElements()+U.getNumElements());\r\n \t}",
"WeightedRandomSampling(double[] w){\n int len = w.length;\n aggregatedW = new double[len];\n counts = new int[len];\n double temp = 0;\n\n for(int i=0; i<len; i++){\n aggregatedW[i] = temp;\n //System.out.println(aggregatedW[i]);\n temp+= w[i];\n }\n }",
"public void updateWeights() {\n\t\t\n\t}",
"public void setWeight(int w){\n\t\tweight = w;\n\t}",
"public void setWeight(int w) {\n\t\tweight = w;\n\t}",
"@Override\n\t\tpublic int get_weights() {\n\t\t\treturn weight;\n\t\t}",
"public void setWeight(double w){\n weight = w;\n }",
"public void setWeights(double[] w) {\n\t\t\tweights = w;\n\t\t}",
"private void initialiseWeights() {\n\n threshold = -1+2*Math.random();\n thresholdDiff = 0;\n\n for(int i = 0; i < weight.length; i++) {\n weight[i]= -1+2*Math.random();\n weightDiff[i] = 0;\n }\n\n }",
"protected void initializeUniformWeight() {\n\n if(CrashProperties.fitnessFunctions.length == 2){\n for (int n = 0; n < populationSize; n++) {\n double a = 1.0 * n / (populationSize - 1);\n lambda[n][0] = a;\n lambda[n][1] = 1 - (a);\n }\n }else {\n for (int n = 0; n < populationSize; n++) {\n double a = 1.0 * n / (populationSize - 1);\n lambda[n][0] = a;\n lambda[n][1] = (1 - (a))/2;\n lambda[n][2] = (1 - (a))/2;\n }\n }\n\n }",
"public void setWeight(float w) {\n weight = w;\n }",
"public void update_weight() {\n this.weights = this.updatedWeights;\n }",
"public void initWeights(){\n setNextLayer(network.getNextLayer(layerNumber));\n //determine the number of neurons in the next layer\n int neuronNextLayer = next.neuronCount;\n //create arrays for backpopagation learning\n createArr();\n //set the weightThreshold\n weightThreshold = new double[neuronCount+1][neuronNextLayer];\n //System.out.println(\"weightThreshold row:\"+weightThreshold.length+\" col:\"+weightThreshold[0].length);\n //randomize all the elements. range is between -.5 and .5\n for(int i=0; i<weightThreshold.length; i++){\n for(int j=0; j<weightThreshold[i].length; j++){\n weightThreshold[i][j] = getRandomNumber();\n }\n }\n }",
"public void setWeights(float[][] w) {\n _w2D = w;\n _weights = true;\n }",
"@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }",
"public Vec getRawWeight();",
"public void testSetWeight()\n {\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>();\n assertEquals(WeightedKernel.DEFAULT_WEIGHT, instance.getWeight());\n \n double weight = RANDOM.nextDouble();\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 0.0;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 4.7;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n boolean exceptionThrown = false;\n try\n {\n instance.setWeight(-1.0);\n }\n catch ( IllegalArgumentException ex )\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n \n }",
"public static int getWeightedRand(int[] weights) {\n double total = 0;\n for(int weight : weights) {\n total += (double)weight;\n }\n\n double rand = Math.random() * total;\n for(int i = 0; i < weights.length; i++) {\n if (rand < (double)weights[i]) return i;\n rand -= (double)weights[i];\n }\n\n return 0; //Should never be called.\n }",
"public void setWeights(Weight[] weights) {\n this.weights = weights;\n }",
"protected abstract void updateWeightsSpecific(double ni);",
"public int weight ();",
"@Test\n\tpublic void testGetWeights() throws GeoTessException, IOException\n\t{\n\t\tdouble[] u = VectorGeo.getVectorDegrees(20., 90.);\n\n\t\t// construct raypth: unit vectors and radii.\n\t\tArrayList<double[]> v = new ArrayList<double[]>();\n\n\t\t// add a bunch of points along a great circle path at \n\t\t// a constant radius.\n\t\tv.clear();\n\t\tdouble[][] gc = VectorUnit.getGreatCircle(u, Math.PI/2);\n\n\t\tdouble angle = PI/6;\n\t\tdouble radius = 5350;\n\t\tint n = 100;\n\t\t\n\t\tdouble[] r = new double[n];\n\t\tArrays.fill(r, radius);\n\n\t\tdouble len = angle /(n-1.);\n\t\tfor (int i=0; i<n; ++i)\n\t\t\tv.add(VectorUnit.getGreatCirclePoint(gc, i* len));\n\n\t\t// get weights from the model.\n\t\tHashMap<Integer, Double> w = new HashMap<Integer, Double>(2*n);\n\t\t\t\t\n\t\tmodel.getWeights(v, r, null, InterpolatorType.LINEAR, InterpolatorType.LINEAR, w);\n\n\t\tdouble sum=0;\n\t\tfor (Map.Entry<Integer, Double> e : w.entrySet())\n\t\t\tsum += e.getValue();\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\t// print out the weights, the locations of the points.\n\t\tbuf.append(\"\\nPt Index weight layer lat lon depth\\n\");\n\t\tfor (Map.Entry<Integer, Double> e : w.entrySet())\n\t\t\tbuf.append(String.format(\"%6d %10.4f %3d %s%n\", e.getKey(), e.getValue(), \n\t\t\t\t\tmodel.getPointMap().getLayerIndex(e.getKey()),\n\t\t\t\t\tmodel.getPointMap().toString(e.getKey())));\n\n\t\t// compute the length of the great circle path in km.\n\t\tbuf.append(String.format(\"%nActual length of great circle path = %1.4f km%n%n\", angle*radius));\n\n\t\t// sum of the weights should equal length of great circle path.\n\t\tbuf.append(String.format(\"Size = %d Sum weights = %1.4f km%n\", w.size(), sum));\n\n\t\tassertEquals(buf.toString(), sum, angle*radius, 0.01);\n\n\t}",
"protected void updateWeights() {\n\t\tvisualization.updateWeights();\n\t}",
"private double generateWeight(String model) {\n\t\tif (model.equals(\"compact\")) {\n\t\t\treturn (double) Math.round((1500 + (2000 - 1500) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t} else if (model.equals(\"intermediate\")) {\n\t\t\treturn (double) Math.round((2000 + (2500 - 2000) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t} else {\n\t\t\treturn (double) Math.round((2500 + (4000 - 2500) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t}\n\t}",
"@Test\n public void testWeightedConsistency() {\n\n // See if this statistic computes weighted statistics\n // If not, skip this test\n UnivariateStatistic statistic = getUnivariateStatistic();\n if (!(statistic instanceof WeightedEvaluation)) {\n return;\n }\n\n // Create arrays of values and corresponding integral weights\n // and longer array with values repeated according to the weights\n final int len = 10; // length of values array\n final double mu = 0; // mean of test data\n final double sigma = 5; // std dev of test data\n double[] values = new double[len];\n double[] weights = new double[len];\n\n // Fill weights array with random int values between 1 and 5\n int[] intWeights = new int[len];\n final DiscreteDistribution.Sampler weightDist =\n UniformDiscreteDistribution.of(1, 5).createSampler(RandomSource.WELL_512_A.create(234878544L));\n for (int i = 0; i < len; i++) {\n intWeights[i] = weightDist.sample();\n weights[i] = intWeights[i];\n }\n\n // Fill values array with random data from N(mu, sigma)\n // and fill valuesList with values from values array with\n // values[i] repeated weights[i] times, each i\n final ContinuousDistribution.Sampler valueDist =\n NormalDistribution.of(mu, sigma).createSampler(RandomSource.WELL_512_A.create(64925784252L));\n List<Double> valuesList = new ArrayList<>();\n for (int i = 0; i < len; i++) {\n double value = valueDist.sample();\n values[i] = value;\n for (int j = 0; j < intWeights[i]; j++) {\n valuesList.add(Double.valueOf(value));\n }\n }\n\n // Dump valuesList into repeatedValues array\n int sumWeights = valuesList.size();\n double[] repeatedValues = new double[sumWeights];\n for (int i = 0; i < sumWeights; i++) {\n repeatedValues[i] = valuesList.get(i);\n }\n\n // Compare result of weighted statistic computation with direct computation\n // on array of repeated values\n WeightedEvaluation weightedStatistic = (WeightedEvaluation) statistic;\n TestUtils.assertRelativelyEquals(statistic.evaluate(repeatedValues),\n weightedStatistic.evaluate(values, weights, 0, values.length),\n 10E-12);\n\n // Check consistency of weighted evaluation methods\n Assert.assertEquals(weightedStatistic.evaluate(values, weights, 0, values.length),\n weightedStatistic.evaluate(values, weights), Double.MIN_VALUE);\n }",
"public static float[] initializeWeights(int numWeights){\n\t\tfloat[] weights = new float[numWeights];\n\t\tfor (int i = 0; i < weights.length; i++) {\n\t\t\tweights[i] = (float)(randomGenerator.nextInt(100)/ 100.0 + 0.5);\n\t\t}\n\n\t\treturn weights;\n\t}",
"public WeightingModel(){}",
"@Override\n\tpublic double weight() {\n\t\treturn 1.0;\n\t}",
"public void setWeight(double weight) {\r\n this.weight = weight;\r\n }",
"@Override\n\tpublic void setWeight(final double weight) {\n\n\t}",
"public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}",
"public void setWeight(double weight) {\n this.weight = weight;\n }",
"public void correctWeights() {\n double tmp;\n\n for(int i = 0; i < inputs; ++i) {\n //temporary store old value\n tmp = weights[i];\n // correct weight's value using MOMENTUM parameter\n weights[i] += changes[i] + MOMENTUM * (weights[i] - exWeights[i]);\n //store old value in class member\n exWeights[i] = tmp;\n // clear corrections value\n changes[i] = 0.0;\n }\n\n // const input weight correction if const input is enabled\n if (enableConstAddend) {\n // temporary store old value\n tmp = weights[inputs];\n // change weight's value using MOMENTUM parameter\n weights[inputs] += changes[inputs] + MOMENTUM * (weights[inputs] - exWeights[inputs]);\n // store old value\n exWeights[inputs] = tmp;\n // clear value of calculated change\n changes[inputs] = 0.0;\n }\n }",
"public void setNewWeights(boolean clearWeights) {\n Random randomEngine = new Random();\n if (clearWeights) {\n for (int i = 0; i <= inputs; ++i) {\n weights[i] = 0.0;\n exWeights[i] = 0.0;\n changes[i] = 0.0;\n }\n }\n else {\n for (int i = 0; i <= inputs; ++i) {\n weights[i] = randomEngine.nextDouble() - 0.5;\n exWeights[i] = 0.0;\n changes[i] = 0.0;\n }\n }\n }",
"@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}",
"public double getWeight(){\n\t\treturn this._weight;\n\t}",
"protected void mutateWeights() {\n\t\t// TODO: Change the way weight mutation works\n\t\tif (Braincraft.gatherStats) {\n\t\t\tArrayList<Integer> mutatedgenes = new ArrayList<Integer>();\n\t\t\tfor (Gene g : genes.values()) {\n\t\t\t\tif (Braincraft.randomChance(population.perWeightMutationRate)) {\n\t\t\t\t\tg.weight = Braincraft.randomWeight();\n\t\t\t\t\tmutatedgenes.add(g.innovation);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString output = \"weight mutation \" + ID;\n\t\t\tfor (Integer i : mutatedgenes) {\n\t\t\t\toutput += \" \" + i;\n\t\t\t}\n\t\t\tBraincraft.genetics.add(output);\n\t\t} else {\n\t\t\tfor (Gene g : genes.values()) {\n\t\t\t\tif (Braincraft.randomChance(population.perWeightMutationRate))\n\t\t\t\t\tg.weight = Braincraft.randomWeight();\n\t\t\t}\n\t\t}\n\t\t// TODO: Report weight mutations to stats\n\t}",
"public void setWeight(Double weight) {\n this.weight = weight;\n }",
"private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }",
"private void setWeight(float weight){\n this.weight = weight;\n }",
"public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}",
"public void setWeight(double weight){\n\t\tthis._weight = weight;\n\t}",
"public float getWeight();",
"@Override\r\n\tpublic double Weight() {\n\t\treturn Weight;\r\n\t}",
"public void adjustWeightsTest() {\n\t\tboolean[] tempCorrectArray = new boolean[numInstances()];\n\t\tfor (int i = 0; i < tempCorrectArray.length / 2; i++) {\n\t\t\ttempCorrectArray[i] = true;\n\t\t} // Of for i\n\n\t\tdouble tempWeightedError = 0.3;\n\n\t\tadjustWeights(tempCorrectArray, tempWeightedError);\n\n\t\tSystem.out.println(\"After adjusting\");\n\n\t\tSystem.out.println(toString());\n\t}",
"public Solution(int[] w) {\n // get a Random instance\n random = new Random();\n\n // fulfill weightPrefixSum array\n int len = w.length;\n weightPrefixSum = new int[len];\n weightPrefixSum[0] = w[0];\n for(int i = 1; i < w.length; i++){\n weightPrefixSum[i] = weightPrefixSum[i-1] + w[i];\n }\n }",
"public ButlerWeights getWeights() {\n\treturn currentWeights;\n }",
"public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}",
"public ConditionTargetWeight(int weight)\n\t{\n\t\t_weight = weight;\n\t}",
"public void setWeight(final double pWeight){this.aWeight = pWeight;}",
"public abstract double getWeight ();",
"public void setWeight(Integer weight) {\n this.weight = weight;\n }",
"int getWeight();",
"int getWeight();",
"public void setWeights(double ACC, double ARM, double EVA, double HP, double INT,\n\t\t\tdouble LCK, double MAG, double MRE, double STR, double SP)\n\t{\n\t\tthis.statWeights = new double[10];\n\t\tstatWeights[0] = ACC;\n\t\tstatWeights[1] = ARM;\n\t\tstatWeights[2] = EVA;\n\t\tstatWeights[3] = HP;\n\t\tstatWeights[4] = INT;\n\t\tstatWeights[5] = LCK;\n\t\tstatWeights[6] = MAG;\n\t\tstatWeights[7] = MRE;\n\t\tstatWeights[8] = STR;\n\t\tstatWeights[9] = SP;\n\t}",
"public void setWeight(final int weight) {\n this.weight = weight;\n }",
"public Weight[] getWeights() {\n return weights;\n }",
"public double getWeight() {\n\t\treturn weight; \n\t\t}",
"int Weight();",
"private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }",
"public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}",
"public Weight getWeight();",
"public double getWeight(){\n\t\treturn weight;\n\t}",
"public void setWeight(String weight) {\n this.weight = weight;\n }",
"double getWeight(V v, V w);",
"public static void main(String[] args) throws Exception {\n\t\t// double[] w = evolveWeights();\n\t\t// printWeights(w);\n\t\tdouble[] myweights = { -2.21466955153828, -0.07474857363573262, -1.1749783341411326, 0.16397829193498464,\n\t\t\t\t0.07131629649717008, 1.61328716208057, -2.641459977820003, -2.189110351161901, -0.20970779418672014,\n\t\t\t\t1.4439418468883647, -0.2184717560493591, -1.5078991641372075, -0.4975766167697391, -0.02410194533351991,\n\t\t\t\t-1.528121086508629, 0.4893670827264642, 0.24474596975099, -0.33381774735153213, -2.0197364115373686,\n\t\t\t\t-2.285127694998558, -1.6102939758132773, -1.5170275119464784, 2.839569745070095, -2.2196308724273552,\n\t\t\t\t-0.0212824892080149, 0.014455462339448166, -0.8294873147131405, -4.008294779402316, -1.6636632454217084,\n\t\t\t\t-1.9129203960517205, 0.25183900782052027, -3.9328447788262255, 1.7493959642027366, 0.4956568965253274,\n\t\t\t\t-0.07060668503545968, -1.0647141555175716, -2.5621340861527404, -0.5646708616200512,\n\t\t\t\t-3.3199764295441483, -0.7423376302286884, -2.0759415442240625, 1.8468059487043376, 1.8301868662020766,\n\t\t\t\t0.3265136721962445, 0.2963634372088102, -1.570986722570204, 0.030502603573360328, 1.4024108876313992,\n\t\t\t\t-0.14772072123156077, 1.4790013912446605, -0.19399829641453603, 0.025796871304820657,\n\t\t\t\t-1.7353744443081178, -0.7774882870945194, -0.8864079092655823, 0.01860475661039064,\n\t\t\t\t-0.38816929845666215, 5.433590999656766, -0.7039983033363961, 1.1052189890385327, -0.6337678641299205,\n\t\t\t\t2.577846157879395, -1.6954645339963452, -3.3151515029911014, -0.5905535947937579, -3.208862197909249,\n\t\t\t\t0.3533810265008289, -0.014479467387126133, -0.4997747691476975, 0.17895696721499255, 0.7889684353058366,\n\t\t\t\t0.6640692831578959, -1.7362432877961986, 2.4182626823702855, 1.2843792391756987, 1.9815093968825601,\n\t\t\t\t-0.30220651427285306, 0.7436105113169372, 1.0680163086014036, 1.7517072771957438, 1.2282614956016236,\n\t\t\t\t-4.1695808227962035, 0.5978930687432595, -1.5020444810097677, 1.2212439971243139, -3.2648411343496164,\n\t\t\t\t0.6909710728147561, -1.3070485527971965, -2.028589199427193, -1.2316367055137034, -1.1776549704837918,\n\t\t\t\t3.0932207527724955, 0.09163042597406289, 0.14951497594494684, 3.4362942167755, -0.5107751983055535,\n\t\t\t\t1.4777997649386783, -1.6160308476702507, -0.7331259806111848, 2.6279925296341906, -1.7722891199616801,\n\t\t\t\t-2.632229462809496, 0.44428581550083274, 1.6278865636527509, -0.0329347232073198, -2.918867540199039,\n\t\t\t\t0.9628195606239641, -2.156481296002708, -1.056790342242603, -2.2556629595171356, -0.9553204054731589,\n\t\t\t\t2.413880737785754, -0.9992245987211152, 0.9108199628723169, -1.134380039817171, -1.0116006672645148,\n\t\t\t\t-0.5854694644938652, -3.8446665938925046, 3.232988970599319, -0.05839122943338931, -0.12200406901238987,\n\t\t\t\t-1.1970864247655226, -1.7736651076674108, 3.2042060881784344, -0.06681900340608203, 0.6095617884784129,\n\t\t\t\t2.6621135698954426, -1.9808653269739094, 2.4179303951852247, -0.1020298670663256, 0.8455422105561868,\n\t\t\t\t-0.6172016676389036, 1.5106799954170962, 0.22045980127688758, -0.32315411146978057, 0.3521551186665719,\n\t\t\t\t-1.376041285561516, -0.5007424056636434, 1.361180226793381, 0.5485767449283305, 0.4822090152603501,\n\t\t\t\t0.0035720899920257954, 0.20198792489462591, 2.9637620623310696, 0.746515676821096, 1.33314607227669,\n\t\t\t\t1.7880569950236676, 0.24310824088346455, -0.7720019287108711, 0.2770938718675544, -0.002821079170251539,\n\t\t\t\t0.6432076089386127, -2.080883646553964, -2.2316867814270336, -0.8152503328954235, 0.07666991930368347,\n\t\t\t\t0.7994585307407924, 4.040588645491936, 3.293290177485252, -0.6587327188020271, -0.2608808875988929,\n\t\t\t\t0.9747677475984142, 2.398983410951306, -0.6437438305433649, 0.02124428359002813, 1.5585328640214078,\n\t\t\t\t-0.301679640295372, -1.6053388324773985, 0.24993532845039462, 0.24408970961912746, 2.425260721978244,\n\t\t\t\t-0.8068206244484942, 0.05105476442114232, 0.6059510612060248, -3.2193288600922187, -3.631848243294158,\n\t\t\t\t1.4240768232681529, -1.7707952765701727, 1.2344743497386608, 2.4338900468729023, 0.43014199440688067,\n\t\t\t\t0.20816791679939328, 1.4989715392344287, 0.13455171261820276, 1.0621048796860084, 0.9728863685939746,\n\t\t\t\t-3.9871305903296723, 0.6897219833391851, -1.098819235411824, -0.5984492289686463, -2.303924190561265,\n\t\t\t\t1.1193184751481047, -1.0328499504466768, -0.8910211970908617, 0.9946509861991504, -0.6898892448411882,\n\t\t\t\t-0.43356416305497014, 0.054783696872076626, 0.233434394673659, 3.225842335938765, 3.297560597443148,\n\t\t\t\t-0.9815414837749732, -1.5241431138614758, 0.2003787279485732, -0.6881136445150136, 3.4238717049813934,\n\t\t\t\t0.003453173792474847, -0.8061218778816472, -0.4402066310426072, -1.636723071030285, 3.163218840903199,\n\t\t\t\t0.5100537731772297, -1.103269998723354, -0.7879470972745664, -2.236992460857296, -2.1393375184180212,\n\t\t\t\t-1.1548394915305815, -2.280645418548106, 0.6909647906413796, -0.8314321184642959, -3.2122142779955563,\n\t\t\t\t0.37452253354430365, -0.7849739993770579, 0.3504279749557794, -1.0540725377016087, 0.041950910604904586,\n\t\t\t\t0.8784481358277388, -0.14974538330350365, 1.559727397979539, -0.6605219061003249, 3.622853835751025,\n\t\t\t\t1.7401420193245865, 1.220309981802207, -0.22257446946377682, -0.7746021595685124, -1.117421721755124,\n\t\t\t\t-0.9138705765688842, 0.14610649511784396, -0.7526008992175952, 0.10653763536360544,\n\t\t\t\t-0.06514332909119891, -0.2097381331142011, -1.0529132828316619, 2.1798628015621757, -0.3091083139673463,\n\t\t\t\t0.8577372690910885, 1.6985927086198869, 0.4634835727447051, 0.03566063568597455, -0.13895025188806187,\n\t\t\t\t0.8498827214996195, -0.9091546683669671, 1.3826935600107073, -0.8152255589205574, 1.7274291860876136,\n\t\t\t\t0.786497013333733, 1.6227793753957989, 0.7876476663994035, 2.157300684833067, -0.09447665526454312,\n\t\t\t\t-2.11514518468542, -1.089786880457046, -0.1570647222609598, 0.743643370603463, -0.4237412616449528,\n\t\t\t\t2.38254290787229, 5.305775057877128, 1.8737860414844345, -1.8325132176577972, 2.5427149426139777,\n\t\t\t\t0.6923303547353667, -1.1867898040888405, 2.584322135207721, 1.9779450607594122, -0.8178488064297246,\n\t\t\t\t1.9581575076866673, -0.2412475645390626, 1.2870350743909154, 0.2570224449276464, -4.092909749196866,\n\t\t\t\t3.898874605498058, -0.16220823886347796, 0.2634423746472414, -2.5921511819647276, -0.29329004951913773,\n\t\t\t\t-3.485083266813694, 3.5670785842138093, 0.7244265147251102, -0.0029356664095335516, 1.4901040035846655,\n\t\t\t\t2.8999162174147775 };\n\n\t\tController.doBattle(new ReflexAgent(), new NeuralAgent(myweights));\n\t\t// System.out.print(win_Collection[]);\n\t}",
"public Weight( int[] init )\n {\n // Construct the array the same length\n // as that referenced by init.\n data = new int[init.length];\n\n // Copy values from the\n // input data to data.\n for ( int j = 0; j < init.length; j++ )\n {\n data[j] = init[j];\n }\n }",
"public static float getRandomWeight() {\n\t\tfloat weight = (float)(Math.random()*17+3);\n\t\treturn weight;\n\t}",
"public int getWeight();",
"public int weight(){\n\t\treturn this.weight;\n\t}",
"@Override\n\tpublic void additionalWeightWork() {\n\t\t\n\t}",
"public SpaceWeights(int weight)\n {\n earthWeight = weight;\n }",
"@Override\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}",
"public void setWeight (java.lang.Double weight) {\r\n\t\tthis.weight = weight;\r\n\t}",
"public double getWeight() {\n \treturn this.trainWeight;\n }",
"public double getWeight(){return this.aWeight;}",
"@Override\n\tpublic double getInternalWeight(int nodeIndex) {\n\t\treturn this.inWeights[nodeIndex];\n\t}",
"public int weight() {\n \treturn weight;\n }",
"public static double regularizeEntropyWeight(double weight, double bias) {\n\n return bias + (1-bias)*weight;\n }",
"public double getWeight() {\n\t\treturn weight;\n\t}",
"public double getWeight() {\n return 0;\n }",
"private void computeWeights(double w_m) {\n\t\t// Initialise\n\t\tdouble m = Math.floor(lambda);\n\t\tif (!flag) return;\n\t\t\n\t\t// Down\n\t\tint j = (int) m;\n\t\twhile (j > leftTruncation) {\n\t\t\tweights[j-1-leftTruncation] = (j / lambda) * weights[j-leftTruncation];\n\t\t\tj = j - 1;\n\t\t}\n\t\t\n\t\t// Up\n\t\tif (lambda >= 400) {\n\t\t\tj = (int) m;\n\t\t\twhile (j < rightTruncation) {\n\t\t\t\tweights[j+1-leftTruncation] = (lambda / (j+1)) * weights[j-leftTruncation];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\t} else {\n\t\t\t// Special\n\t\t\tif (rightTruncation > 600) {\n\t\t\t\tflag = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tj = (int) m;\n\t\t\twhile (j < rightTruncation) {\n\t\t\t\tdouble q = lambda / (j + 1);\n\t\t\t\tif (weights[j-leftTruncation] > (underflow / q)) {\n\t\t\t\t\tweights[j+1-leftTruncation] = q * weights[j-leftTruncation];\n\t\t\t\t\tj = j + 1;\n\t\t\t\t} else {\n\t\t\t\t\trightTruncation = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Compute W\n\t\ttotalWeight = 0;\n\t\tint s = leftTruncation;\n\t\tint t = rightTruncation;\n\t\twhile (s < t) {\n\t\t\tif (weights[s-leftTruncation] <= weights[t-leftTruncation]) {\n\t\t\t\ttotalWeight += weights[s-leftTruncation];\n\t\t\t\ts = s + 1;\n\t\t\t} else {\n\t\t\t\ttotalWeight += weights[t-leftTruncation];\n\t\t\t\tt = t - 1;\n\t\t\t}\n\t\t}\n\t\ttotalWeight += weights[s-leftTruncation];\n\t\t\n\t}",
"abstract Double getWeight(int i, int j);",
"public double getWeight() {\r\n return weight;\r\n }",
"public double getWeight() {\r\n return weight;\r\n }",
"public Matrix getWeight() {\n return weights;\n }",
"protected void findWeights( double learning_rate, int iterations )\n\t{\n\t\tdouble sum, error, o, delta;\n\t\tint n = this.class_data.attribute_data.size();\n\t\tAttribute temp;\n\n\t\tfor ( int i = 0; i < iterations; i++ )\n\t\t{\n\t\t\tsum = 0;\n\t\t\tfor ( int j = 0; j < this.attribute_list.size(); j++ )\n\t\t\t{\n\t\t\t\ttemp = this.attribute_list.get( j );\n\t\t\t\tsum += temp.attribute_data.get( i % n ) * temp.getWeigth();\t\t//Sum of wi * xi\n\t\t\t}\n\n\t\t\to = getSigmoidValue( sum );\t\t\t\t\t\t\t\t\t\t//Get the value from sigmoid function\n\t\t\terror = this.class_data.attribute_data.get( i % n ) - o;\t\t//Find out the error\n\t\t\tdelta = learning_rate * error * o * (1.0 - o);\t\t\t\t\t//Delta w\n\n\t\t\tfor ( int j = 0; j < this.attribute_list.size(); j++ )\n\t\t\t\tthis.attribute_list.get( j ).incrementWeigth( delta, i % n );\t\t//Update weights\n\t\t}\n\t}",
"public double getWeight(){\n return weight;\n }",
"public double getWeight()\n\t{\n\t\t//metodo precisa retornar alguma coisa\n\t\treturn 0.0;\n\t}",
"private int randomWeight()\n {\n return dice.nextInt(1000000);\n }",
"@Override\r\n\tpublic double getWeight() {\n\t\treturn 0;\r\n\t}",
"private double bound(int i, double weight, double value, int[] items) {\n\t\tint item, wi;\n\t\tassert weight - k < EPS; // Because of when bound is called in fill\n\t\tfor (int j = n - 1; j >= 0; j--) {\n\t\t\titem = items[j];\n\t\t\tif (item <= i)\n\t\t\t\tcontinue;\n\t\t\twi = w[item];\n\t\t\tif (wi < k - weight) {\n\t\t\t\tweight += wi;\n\t\t\t\tvalue += v[item];\n\t\t\t}\n\t\t\telse return value + ((double) (k - weight) / wi) * v[item];\n\t\t}\n\t\treturn value;\n\t}",
"public void setLitWeightRatio(double ratio) { this.exec = this.exec.withProperty(\"sm.improve.lwr\", ratio); }",
"public ArrayList<ArrayList<Tensor<?>>> getWeights() {\n ArrayList<Tensor<?>> w1 = (ArrayList<Tensor<?>>) sess.runner().fetch(\"Variable:0\").run();\n ArrayList<Tensor<?>> b1 = (ArrayList<Tensor<?>>) sess.runner().fetch(\"Variable_1:0\").run();\n ArrayList<Tensor<?>> w2 = (ArrayList<Tensor<?>>) sess.runner().fetch(\"Variable_2:0\").run();\n ArrayList<Tensor<?>> b2 = (ArrayList<Tensor<?>>) sess.runner().fetch(\"Variable_3:0\").run();\n ArrayList<ArrayList<Tensor<?>>> ls = new ArrayList<>();\n ls.add(w1);\n ls.add(b1);\n ls.add(w2);\n ls.add(b2);\n return ls;\n }",
"public int getWeight() {\n\t\treturn _weight;\n\t}",
"public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }",
"public LearningBoardEvaluator(int numWeights) {\n super(numWeights);\n }",
"public java.lang.Double getWeight () {\r\n\t\treturn weight;\r\n\t}"
] | [
"0.68011206",
"0.66114897",
"0.6562694",
"0.64543724",
"0.6448448",
"0.63767195",
"0.63720155",
"0.63495463",
"0.6346072",
"0.63140905",
"0.6310233",
"0.62901336",
"0.6266119",
"0.6265715",
"0.62525946",
"0.6243307",
"0.62184024",
"0.61482084",
"0.6143787",
"0.609",
"0.60384214",
"0.60222644",
"0.5991184",
"0.59582305",
"0.5943354",
"0.5916426",
"0.5856889",
"0.5856569",
"0.5856243",
"0.58548856",
"0.5836595",
"0.58249867",
"0.5810561",
"0.58057207",
"0.5801628",
"0.57967734",
"0.5784377",
"0.5784228",
"0.57828945",
"0.5780351",
"0.5775889",
"0.5760107",
"0.5758058",
"0.5755857",
"0.5754342",
"0.5748078",
"0.57453537",
"0.5725364",
"0.57183695",
"0.5710156",
"0.5708559",
"0.57042146",
"0.5698979",
"0.5688826",
"0.567684",
"0.567684",
"0.5675836",
"0.56677103",
"0.5652827",
"0.56468374",
"0.56459546",
"0.56374556",
"0.56354266",
"0.561195",
"0.5609444",
"0.5607088",
"0.56013495",
"0.5595588",
"0.5590779",
"0.55758864",
"0.5567026",
"0.5545053",
"0.5544778",
"0.55426425",
"0.55290383",
"0.55257046",
"0.5521429",
"0.5507479",
"0.55039155",
"0.5501354",
"0.5496485",
"0.5494489",
"0.54903936",
"0.54858065",
"0.5478252",
"0.5475831",
"0.5475831",
"0.5475591",
"0.5474281",
"0.54668725",
"0.54545856",
"0.5450131",
"0.5445746",
"0.54419684",
"0.54364467",
"0.54295146",
"0.54292476",
"0.5425865",
"0.5424708",
"0.541864"
] | 0.74902624 | 0 |
Creates the menu and load already registered providers. | public AutoAnswerMenu()
{
super(GuiActivator.getResources()
.getI18NString("service.gui.AUTO_ANSWER"));
loadSkin();
registerMenuItems(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}",
"public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance().getGUILog().showMessage(\"Show a popup the proper\n\t\t// way !\");\n\n\t\t// final ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\n\t\t// final MDAction action = new ExampleAction();\n\t\t// Adding action to main menu\n\t\t// manager.addMainMenuConfigurator(new MainMenuConfigurator(action));\n\t\t// Adding action to main toolbar\n\t\t// manager.addMainToolbarConfigurator(new MainToolbarConfigurator(action));\n\n\t\t// pluginDir = getDescriptor().getPluginDirectory().getPath();\n\n\t\t// Creating submenu in the MagicDraw main menu\n\t\t// ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\t\t// manager.addMainMenuConfigurator(new\n\t\t// MainMenuConfigurator(getSubmenuActions()));\n\n\t\t/**\n\t\t * @Todo: load project options (@see myplugin.generator.options.ProjectOptions)\n\t\t * from ProjectOptions.xml and take ejb generator options\n\t\t */\n\n\t\t// for test purpose only:\n\t\t// GeneratorOptions ejbOptions = new GeneratorOptions(\"c:/temp\", \"ejbclass\",\n\t\t// \"templates\", \"{0}.java\", true, \"ejb\");\n\t\t// ProjectOptions.getProjectOptions().getGeneratorOptions().put(\"EJBGenerator\",\n\t\t// ejbOptions);\n\n\t\t// ejbOptions.setTemplateDir(pluginDir + File.separator +\n\t\t// ejbOptions.getTemplateDir()); //apsolutna putanja\n\t}",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }",
"@Override\r\n\tprotected MenuManager createMenuManager() {\r\n\t\tMenuManager menuManager = new MenuManager(\"menu\");\r\n\t\treturn menuManager;\r\n\t}",
"@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}",
"public void initMenu(){\n\t}",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"public MenuService() {\n\t\tnew DisplayMenu();\n\t}",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }",
"private void initializeContextMenus() {\n\t\tinitializeMenuForListView();\n\t\tinitializeMenuForPairsListView();\n\t}",
"private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }",
"public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivator.bundleContext\n .addServiceListener(protocolProviderListener);\n }\n\n for (ProtocolProviderFactory providerFactory : GuiActivator\n .getProtocolProviderFactories().values())\n {\n for (AccountID accountID : providerFactory.getRegisteredAccounts())\n {\n ServiceReference<ProtocolProviderService> serRef\n = providerFactory.getProviderForAccount(accountID);\n ProtocolProviderService protocolProvider\n = GuiActivator.bundleContext.getService(serRef);\n\n addAccountInternal(protocolProvider, parentMenu);\n }\n }\n\n // if we are in disabled menu mode and we have only one item\n // change its name (like global auto answer)\n if( ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }",
"private MenuManager() {\r\n\r\n\t\t\tmenubar = new Menu(shell, SWT.BAR);\r\n\t\t\tshell.setMenuBar(menubar);\r\n\t\t}",
"public void createmenu(){\n\n\n Context context = getApplicationContext();\n menuadpater = new MenuAdapter(context);\n\n MENULIST.setAdapter(menuadpater);\n\n\n }",
"public Menu createToolsMenu();",
"private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}",
"protected void createMenuForGCodeProvider(IMenuManager contextMenu, final IGCodeProvider content) throws GkException {\r\n\t\t// Submenu for a specific user\r\n MenuManager subMenu = new ModifierSubMenu(rs274Service, rs274WorkspaceService, content.getId());\r\n \r\n\r\n contextMenu.add(new AddExecutionQueueAction(rs274Service, executionService, gcodeValidationService, content.getId()));\r\n contextMenu.add(new Separator());\r\n contextMenu.add(new ReloadGCodeProviderAction(rs274Service, content.getId()));\r\n // contextMenu.add(new ExternalEditAction(rs274Service, workspaceService, content.getId()));\r\n contextMenu.add(subMenu);\r\n if(CollectionUtils.isNotEmpty(lstGCodeProviderContributionItem)){\r\n \tcontextMenu.add(new Separator());\r\n\t for (IGCodeProviderContributionItem contributionItem : lstGCodeProviderContributionItem) {\r\n\t \tcontextMenu.add(contributionItem.getItem(content));\r\n\t\t\t}\r\n }\r\n contextMenu.add(new Separator());\r\n contextMenu.add(new DeleteGCodeProviderAction(rs274Service, content.getId()));\r\n\t}",
"private void makeThirdPartyMenu() {\r\n\t\tJMenu thirdPartyMnu = new JMenu(\"Terceros\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Clientes\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenu customerMnu = new JMenu(\"Clientes\");\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarClientes\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Cliente\");\r\n\t\t\t\taddItem.setMnemonic('c');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo cliente\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddCustomer(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tcustomerMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Clientes\",\r\n\t\t\t\t\timageLoader.getImage(\"customer.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'l',\r\n\t\t\t\t\t\"Ver el listado de clientes\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F8, 0), Customer.class);\r\n\t\t\tcustomerMnu.add(menuItem);\r\n\r\n\t\t\tcustomerMnu.setMnemonic('c');\r\n\t\t\tthirdPartyMnu.add(customerMnu);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Proveedores\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenu customerMnu = new JMenu(\"Proveedores\");\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarProveedores\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Proveedor\");\r\n\t\t\t\taddItem.setMnemonic('p');\r\n\t\t\t\taddItem\r\n\t\t\t\t\t\t.setToolTipText(\"Agregar rapidamente un nuevo proveedor\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddProvider(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tcustomerMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Proveedores\",\r\n\t\t\t\t\timageLoader.getImage(\"provider.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'l',\r\n\t\t\t\t\t\"Ver el listado de proveedores\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F9, 0), Provider.class);\r\n\t\t\tcustomerMnu.add(menuItem);\r\n\r\n\t\t\tcustomerMnu.setMnemonic('p');\r\n\t\t\tthirdPartyMnu.add(customerMnu);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tthirdPartyMnu.setMnemonic('t');\r\n\t\t\tadd(thirdPartyMnu);\r\n\t\t}\r\n\t}",
"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 }",
"ReturnCode createMenus(MmtConfig cfg, String menuJson);",
"IMenuFactory getMenuFactory();",
"private MenuBar setupMenu () {\n MenuBar mb = new MenuBar ();\n Menu fileMenu = new Menu (\"File\");\n openXn = makeMenuItem (\"Open Connection\", OPEN_CONNECTION);\n closeXn = makeMenuItem (\"Close Connection\", CLOSE_CONNECTION);\n closeXn.setEnabled (false);\n MenuItem exit = makeMenuItem (\"Exit\", EXIT_APPLICATION);\n fileMenu.add (openXn);\n fileMenu.add (closeXn);\n fileMenu.addSeparator ();\n fileMenu.add (exit);\n\n Menu twMenu = new Menu (\"Tw\");\n getWksp = makeMenuItem (\"Get Workspace\", GET_WORKSPACE);\n getWksp.setEnabled (false);\n twMenu.add (getWksp);\n\n mb.add (fileMenu);\n mb.add (twMenu);\n return mb;\n }",
"private void createMenusNow()\n {\n JMenu debugMenu = myToolbox.getUIRegistry().getMenuBarRegistry().getMenu(MenuBarRegistry.MAIN_MENU_BAR,\n MenuBarRegistry.DEBUG_MENU);\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Print Summary\", e -> printSummary()));\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Tag Data Type\", e -> tagDataType()));\n }",
"public void insertPluginMenu(java.awt.MenuItem mi);",
"@Override\r\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\r\n\t\tmenu.clear();\r\n\t\tinflater.inflate(R.menu.browsecourse, menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.loader, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.service_provider_home, menu);\n return true;\n }",
"public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }",
"public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }",
"public void generateMenu(){\n\t\tmenuBar = new JMenuBar();\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tJMenu tools = new JMenu(\"Tools\");\n\t\tJMenu help = new JMenu(\"Help\");\n\n\t\tJMenuItem open = new JMenuItem(\"Open \");\n\t\tJMenuItem save = new JMenuItem(\"Save \");\n\t\tJMenuItem exit = new JMenuItem(\"Exit \");\n\t\tJMenuItem preferences = new JMenuItem(\"Preferences \");\n\t\tJMenuItem about = new JMenuItem(\"About \");\n\n\n\t\tfile.add(open);\n\t\tfile.add(save);\n\t\tfile.addSeparator();\n\t\tfile.add(exit);\n\t\ttools.add(preferences);\n\t\thelp.add(about);\n\n\t\tmenuBar.add(file);\n\t\tmenuBar.add(tools);\n\t\tmenuBar.add(help);\n\t}",
"public void init() {\n menus.values().forEach(ToolbarSubMenuMenu::init);\n }",
"public void createMenus()\n {\n EventQueueUtilities.runOnEDT(this::createMenusNow);\n }",
"private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_driver, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.supplier_home_page, menu);\n\t\treturn true;\n\t}",
"public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.alinone_arrange_order, menu);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.stock_picking_options, menu);\n }",
"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}",
"protected void createMenus(Activity activity, boolean isEntryPoint){\n \t\t\n \t\t//myTts = new TextToSpeechBeta(this, ttsInitListener);\n \t\t\n \t\tthis.isEntryPoint = isEntryPoint;\n \t\tthis.activity = activity;\n \t\t\n \t\tApplicationData applicationData = SplashActivity.getApplicationData();\n \t\tActiveMenus activeMenus = applicationData.getMenu();\n \t\t\n \t\t//TOP MENU\n \t\tif(activeMenus.getTopMenu() != null){\n \t\t\tRelativeLayout topLayout = (RelativeLayout) findViewById(R.id.topLayout);\n \t\t\tcreateCurrentMenu(topLayout, activeMenus.getTopMenu());\n \t\t}\n \t\t\n \t\t//BOTTOM MENU\n \t\tRelativeLayout bottomLayout = (RelativeLayout) findViewById(R.id.bottomLayout);\t\n \t\tif(activeMenus.getBottomMenu() != null){\n \t\t\tcreateCurrentMenu(bottomLayout, activeMenus.getBottomMenu());\n \t\t}else{\n \t\t\tbottomLayout.setVisibility(0);\n \t\t}\n \t\t\n \t\t//CONTEXT MENU\n \t\tif(activeMenus.getContextMenu() != null){\n \t\t\tthis.contextMenuXmlFileName = activeMenus.getContextMenu();\n \t\t}\n \t\t\n \t\t//SIDE MENU\n \t\tif(activeMenus.getSideMenu() != null){\n \t\t\tinitializeSideMenuList(activeMenus.getSideMenu());\n \t\t}\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n getMenuInflater().inflate(R.menu.diary, menu);\n\n try\n {\n constructUserInterface();\n }\n catch (Exception exp)\n {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.storage_test, menu);\n\t\treturn true;\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n MenuItem languageItem = menu.findItem(R.id.toolbar_ic_language);\n MenuItem currencyItem = menu.findItem(R.id.toolbar_ic_currency);\n MenuItem profileItem = menu.findItem(R.id.toolbar_edit_profile);\n MenuItem searchItem = menu.findItem(R.id.toolbar_ic_search);\n MenuItem cartItem = menu.findItem(R.id.toolbar_ic_cart);\n profileItem.setVisible(false);\n languageItem.setVisible(false);\n currencyItem.setVisible(false);\n searchItem.setVisible(false);\n cartItem.setVisible(false);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.pieces, menu);\n\t\treturn true;\n\t}",
"private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}",
"public void createMenu() {\n\t\tmenuBar.add(createGameMenuColumn());\n\t\tmenuBar.add(createTestsMenuColumn());\n\t\tmenuBar.add(createCheatsMenuColumn());\n\n\t\tparentMainView.setJMenuBar(menuBar);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_screen_list_student, menu);\n\n }",
"private void initializeMenuForPairsListView() {\n\t\tMenuItem deleteItem = new MenuItem(labels.get(Labels.PROP_INFO_REMOVE_MENU));\n\t\tdeleteItem.setOnAction(event ->\n\t\t\t\tremoveSelectedAction()\n\t\t);\n\t\tpairsListView.setContextMenu(new ContextMenu(deleteItem));\n\t}",
"protected abstract void addMenuOptions();",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.create_family, menu);\n\t\treturn true;\n\t}",
"public void\n\tinitializeContextMenu()\n\t{\n\t\tMenuManager menuManager \n\t\t\t= new MenuManager();\n\t\tMenu menu \n\t\t\t= menuManager.createContextMenu(\n\t\t\t\tthis.snapshot_tree_viewer.getTree()\n\t\t\t);\n\t\t// Set the MenuManager\n\t\tthis.snapshot_tree_viewer.getTree().setMenu(menu);\n\t\tgetSite().registerContextMenu(\n\t\t\tmenuManager, \n\t\t\tthis.snapshot_tree_viewer\n\t\t);\n\t\t\n\t\t// Make the selection available\n\t\tgetSite().setSelectionProvider(\n\t\t\tthis.snapshot_tree_viewer\n\t\t);\n\t}",
"@Override\n\tprotected MenuManager createMenuManager() {\n\t\treturn null;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (entryPoint != null) {\n switch (entryPoint.getStringExtra(SOURCE)) {\n case MainActivity.ACTIVITY_NAME:\n getMenuInflater().inflate(R.menu.save_edit_profile, menu);\n break;\n case LoginActivity.ACTIVITY_NAME:\n getMenuInflater().inflate(R.menu.register, menu);\n break;\n }\n\n }\n return super.onCreateOptionsMenu(menu);\n }",
"private void setupMenu() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tJMenuItem conn = new JMenuItem(connectAction);\n\t\tJMenuItem exit = new JMenuItem(\"退出\");\n\t\texit.addActionListener(new AbstractAction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\texit();\n\t\t\t}\n\t\t});\n\t\tJMenu file = new JMenu(\"客户端\");\n\t\tfile.add(conn);\n\t\tmenuBar.add(file);\n\t\tsetJMenuBar(menuBar);\n\t}",
"private void initializeMenuForListView() {\n\t\tMenuItem sItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_S_MENU));\n\t\tsItem.setOnAction(event ->\n\t\t\taddSAction()\n\t\t);\n\t\t\n\t\tMenuItem scItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_SC_MENU));\n\t\tscItem.setOnAction(event ->\n\t\t\t\taddScAction()\n\t\t);\n\t\t\n\t\tContextMenu menu = new ContextMenu(sItem, scItem);\n\t\tfirstListView.setContextMenu(menu);\n\t\tsecondListView.setContextMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.pregistermenu, menu);\r\n\t\treturn true;\r\n\t}",
"protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}",
"public AbstractMenu(MenuLoader menuLoader) \r\n\t{}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_course, menu);\n\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}",
"private void initRootMenuCustomers() {\n\t\tthis.menuBar = new MenuBar();\n\n\t\t// create entries for the menu bar\n\t\tMenu menuFile = new Menu(\"Datei\");\n\t\tMenu menuEdit = new Menu(\"Bearbeiten\");\n\t\tMenu menuCreate = new Menu(\"Erstellen\");\n\t\tMenu menuHelp = new Menu(\"Hilfe\");\n\n\t\t// create entries for menuFile\n\t\t// TODO: setOnAction handling\n\t\tMenuItem save = new MenuItem(\"Kundendatei in Datei speichern\");\n\t\tMenuItem saveas = new MenuItem(\"Kundendatei Speichern unter...\");\n\t\tMenuItem load = new MenuItem(\"Kundendatei Laden...\");\n\t\tMenuItem exit = new MenuItem(\"Beenden\");\n\t\texit.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmenuFile.getItems().addAll(save, saveas, load, new SeparatorMenuItem(), exit);\n\n\t\t// TODO: setOnAction handling\n\t\tMenuItem newCustomer = new MenuItem(\"Neuen Kunden anlegen\");\n\t\tnewCustomer.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tshowNewCustomerView(false, null);\n\t\t\t}\n\t\t});\n\n\t\t// TODO: Implement this\n\t\tMenuItem edit = new MenuItem(\"Kundendaten bearbeiten\");\n\t\tedit.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t){\n\t\t\t\tif (overviewCtrl.getActCustomer() != null){\n\t\t\t\t\tshowNewCustomerView(true, overviewCtrl.getActCustomer());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tMenuItem delete = new MenuItem(\"Kundendaten löschen\");\n\t\tdelete.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tif (overviewCtrl.getActCustomer() != null) {\n\t\t\t\t\tdeleteCustomer(overviewCtrl.getActCustomer());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tmenuEdit.getItems().addAll(newCustomer, edit, delete);\n\n\t\t// create entries for menuCreate\n\t\t// TODO: setOnAction handling\n\t\tMenuItem invoice = new MenuItem(\"Rechnung\");\n\t\tinvoice.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tif (GUIMain.this.overviewCtrl.getActCustomer() == null) {\n\t\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\t\talert.setTitle(\"Fehler\");\n\t\t\t\t\talert.setHeaderText(\"Kein Kunde gewählt\");\n\t\t\t\t\talert.setContentText(\"Bitte wählen sie vor dem Erstellen einer Rechnung einen Kunden aus, \"\n\t\t\t\t\t\t\t+ \"an welchen die Rechnung gestellt werden soll.\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t} else {\n\t\t\t\t\tshowNewInvoiceView();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// TODO: Implement this\n\t\tMenuItem offer = new MenuItem(\"Angebot\");\n\n\t\t// TODO: Implement this\n\t\tMenuItem reminder = new MenuItem(\"Zahlungserinnerung\");\n\n\t\tmenuCreate.getItems().addAll(invoice, offer, reminder);\n\n\t\t// create entries for menuHelp\n\t\t// TODO: setOnAction handling\n\t\tMenuItem help = new MenuItem(\"Hilfe\");\n\t\tMenuItem about = new MenuItem(\"Über\");\n\t\tmenuHelp.getItems().addAll(help, about);\n\n\t\tmenuBar.getMenus().addAll(menuFile, menuEdit, menuCreate, menuHelp);\n\n\t\tthis.root.setTop(menuBar);\n\t}",
"private void initialize() {\r\n //this.setVisible(true);\r\n \r\n\t // added pre-set popup menu here\r\n// this.add(getPopupFindMenu());\r\n this.add(getPopupDeleteMenu());\r\n this.add(getPopupPurgeMenu());\r\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\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 void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"public Menu createViewMenu();",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adapters, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\n provider = (ShareActionProvider) MenuItemCompat.getActionProvider((MenuItem) menu.findItem(R.id.share));\n return super.onCreateOptionsMenu(menu);\n }",
"private void setUpMenu() {\n\t\tresideMenu = new ResideMenu(this);\n\t\tresideMenu.setBackground(R.drawable.menu_background);\n\t\tresideMenu.attachToActivity(this);\n\t\tresideMenu.setMenuListener(menuListener);\n\t\t// valid scale factor is between 0.0f and 1.0f. leftmenu'width is\n\t\t// 150dip.\n\t\tresideMenu.setScaleValue(0.6f);\n\n\t\t// create menu items;\n\t\titemGame = new ResideMenuItem(this, R.drawable.icon_game,\n\t\t\t\tgetResources().getString(R.string.strGame));\n\t\titemBook = new ResideMenuItem(this, R.drawable.icon_book,\n\t\t\t\tgetResources().getString(R.string.strBook));\n\t\titemNews = new ResideMenuItem(this, R.drawable.icon_news,\n\t\t\t\tgetResources().getString(R.string.strNews));\n\t\t// itemSettings = new ResideMenuItem(this, R.drawable.icon_setting,\n\t\t// getResources().getString(R.string.strSetting));\n\t\titemLogin = new ResideMenuItem(this, R.drawable.icon_share,\n\t\t\t\tgetResources().getString(R.string.strShare));\n\t\titemBookPDF = new ResideMenuItem(this, R.drawable.icon_bookpdf,\n\t\t\t\tgetResources().getString(R.string.strBookPDF));\n\t\titemMore = new ResideMenuItem(this, R.drawable.icon_more,\n\t\t\t\tgetResources().getString(R.string.strMore));\n\n\t\titemGame.setOnClickListener(this);\n\t\titemBook.setOnClickListener(this);\n\t\titemNews.setOnClickListener(this);\n\t\t// itemSettings.setOnClickListener(this);\n\t\titemBookPDF.setOnClickListener(this);\n\t\titemMore.setOnClickListener(this);\n\t\titemLogin.setOnClickListener(this);\n\n\t\tresideMenu.addMenuItem(itemBookPDF, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemBook, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemNews, ResideMenu.DIRECTION_LEFT);\n\t\t// resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n\n\t\tresideMenu.addMenuItem(itemGame, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemLogin, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemMore, ResideMenu.DIRECTION_RIGHT);\n\n\t\t// You can disable a direction by setting ->\n\t\t// resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n\t\tfindViewById(R.id.title_bar_left_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tfindViewById(R.id.title_bar_right_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"private void voltarMenu() {\n\t\tmenu = new TelaMenu();\r\n\t\tmenu.setVisible(true);\r\n\t\tthis.dispose();\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"public void refreshMenu() {\n ObservableList list = FXCollections.observableArrayList();\n FileParser_Interface[] parsers = {new FileParser_DHCPnetworks(), new FileParser_RouterVlanNetwork(), new FileParser_SwitchConfigs(), new FileParser_VlanTagsOther()};\n list.addAll(Arrays.asList(parsers));\n this.setItems(list);\n //this.getSelectionModel().selectFirst(); // causes NullPointerExceptions when used, thou are warned\n this.setConverter(new ParserConverter());\n }",
"private void createMenuForGCodeRepository(IMenuManager contextMenu) {\r\n\t\tcontextMenu.add(new AddAllGCodeInQueueAction(executionService, rs274Service));\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.my_gatherings, menu);\n\t\t\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_name, menu);\n\t\treturn true;\n\t}",
"@Test\n public void testMenuFactoryCreate() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n assertEquals(1, menuController.getMenu().size());\n }",
"public void createMenu() {\n deleteMenuGroupError = false;\n createMenuGroupError = true;\n if (menu.createMenu()) {\n updateMenuError = false;\n deleteMenuError = false;\n createMenuError = true;\n } else {\n createMenuError = false;\n }\n }",
"private void createContextMenu() {\n\t\tMenuManager menuMgr = new MenuManager();\n\t\tmenuMgr.setRemoveAllWhenShown(true);\n\t\tmenuMgr.addMenuListener(new IMenuListener() {\n\t\t\tpublic void menuAboutToShow(IMenuManager mgr) {\n\t\t\t\tfillContextMenuMethodsTableViewer(mgr);\n\t\t\t}\n\n\t\t});\n\t\t// Create menu for methodsTableViewer\n\t\tMenu menu = menuMgr.createContextMenu(tableViewerLeft.getControl());\n\t\ttableViewerLeft.getControl().setMenu(menu);\n\n\t\t// Register menu for extension.\n\t\tgetSite().registerContextMenu(menuMgr, tableViewerLeft);\n\n\t\t// Create menu manager for methodsTableViewer for callsTableViewer\n\t\tMenuManager menuMgr1 = new MenuManager();\n\t\tmenuMgr1.setRemoveAllWhenShown(true);\n\t\tmenuMgr1.addMenuListener(new IMenuListener() {\n\t\t\tpublic void menuAboutToShow(IMenuManager mgr) {\n\t\t\t\tfillContextMenuCallsTableViewer(mgr);\n\t\t\t}\n\n\t\t});\n\t\t// Create menu for callsTableViewer\n\t\tMenu menu1 = menuMgr1.createContextMenu(tableViewerRight.getControl());\n\t\ttableViewerRight.getControl().setMenu(menu1);\n\n\t\t// Register menu for extension.\n\t\tgetSite().registerContextMenu(menuMgr1, tableViewerRight);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_driver, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.loading, menu);\n\t\treturn true;\n\t}",
"private void setupMenuItems() {\n\t\taboutMenu.setOnAction(event -> {\n\t\t\tAnchorPane root;\n\t\t\ttry {\n\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"about.fxml\"));\n\n\t\t\t\tStage stage = new Stage();\n\t\t\t\tstage.setScene(new Scene(root));\n\t\t\t\tstage.setTitle(\"About\");\n\t\t\t\tstage.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Error loading About Window - \" + e.getMessage());\n\t\t\t}\n\t\t});\n\n\t\texitMenu.setOnAction(event -> {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPlatform.exit();\n\t\t\t\t\tlog.debug(\"Window closed\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tloadMenu.setOnAction(event -> loadFile(true));\n\n\t\tsaveMenu.setOnAction(event -> Main.serializeItems());\n\n\t\tgroupByMenu.setOnAction(event -> {\n\t\t\tOptional<String> sortOption = Alerter.getChoiceDialog(\"Sorting\", null, \"Select how you want to group: \");\n\t\t\tsortOption.ifPresent(letter -> groupItems(letter));\n\t\t});\n\n\t\tupdateAllMenu.setOnAction(event -> {\n\t\t\tnew Thread(new Task<Void>() {\n\t\t\t\t@Override\n\t\t\t\tprotected Void call() throws Exception {\n\t\t\t\t\tlog.debug(\"UpdateAll Thread Triggered\");\n\n\t\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\t\tupdateItem(b);\n\t\t\t\t\t});\n\n\t\t\t\t\tupdateList();\n\t\t\t\t\tMain.serializeItems();\n\n\t\t\t\t\tlog.debug(\"UpdateAll Thread terminated successfully\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}).start();\n\t\t});\n\n\t\tupdateMenu.setOnAction(event -> {\n\t\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\t\t\t\tupdateItem(itemBox);\n\t\t\t} else {\n\t\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"No Item selected\", null,\n\t\t\t\t\t\t\"Please select the Item you want to update!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\tlog.debug(\"Info Popup triggered, No item selected\");\n\t\t\t}\n\t\t});\n\n\t\tdeleteMenu.setOnAction(event -> {\n\t\t\tItemBox rem = itemsMap.remove(listView.getSelectionModel().getSelectedItem().getGtin());\n\t\t\tlog.info(\"Item: \" + rem.getName() + \" removed\");\n\t\t\tupdateList();\n\t\t});\n\n\t\trepeatMenu.setOnAction(event -> {\n\t\t\tif (lastCommand != null) {\n\t\t\t\tString[] props = lastCommand.split(\" \");\n\t\t\t\tlog.info(\"Repeat called with: \" + lastCommand);\n\n\t\t\t\tswitch (props[0]) {\n\t\t\t\tcase \"ADD\":\n\t\t\t\t\taddItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RM\":\n\t\t\t\t\tremoveItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tprintMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.OVERVIEW);\n\t\t});\n\n\t\tprintShoppingMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.SHOPPING);\n\t\t});\n\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}",
"void createMenus(Container cp) {\r\n createMenu4Shape(cp);\r\n createMenu4Color(cp);\r\n createMenu4Filled(cp);\r\n createButtons(cp);\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.menu_principal, menu);\n \t//Fin del menu\n \treturn true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.regioni, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.registro, menu);\r\n\t\treturn true;\r\n\t}",
"private void loadMenu() {\n theView.getGamePanel().removeAll();\n Menu menu = new Menu(theView);\n menu.revalidate();\n menu.repaint();\n theView.getGamePanel().add(menu);\n menu.requestFocusInWindow();\n theView.setVisible(true);\n }",
"MenuBar setMenu() {\r\n\t\t// initially set up the file chooser to look for cfg files in current directory\r\n\t\tMenuBar menuBar = new MenuBar(); // create main menu\r\n\r\n\t\tMenu mFile = new Menu(\"File\"); // add File main menu\r\n\t\tMenuItem mExit = new MenuItem(\"Exit\"); // whose sub menu has Exit\r\n\t\tmExit.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\tpublic void handle(ActionEvent t) { // action on exit\r\n\t\t\t\ttimer.stop(); // stop timer\r\n\t\t\t\tSystem.exit(0); // exit program\r\n\t\t\t}\r\n\t\t});\r\n\t\tmFile.getItems().addAll(mExit); // add load, save and exit to File menu\r\n\r\n\t\tMenu mHelp = new Menu(\"Help\"); // create Help menu\r\n\t\tMenuItem mAbout = new MenuItem(\"About\"); // add Welcome sub menu item\r\n\t\tmAbout.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent actionEvent) {\r\n\t\t\t\tshowAbout(); // whose action is to give welcome message\r\n\t\t\t}\r\n\t\t});\r\n\t\tmHelp.getItems().addAll(mAbout); // add Welcome and About to Run main item\r\n\r\n\t\tmenuBar.getMenus().addAll(mFile, mHelp); // set main menu with File, Config, Run, Help\r\n\t\treturn menuBar; // return the menu\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.toolbar_menu, menu);\n\n // Locate MenuItem with ShareActionProvider\n MenuItem item = menu.findItem(R.id.menu_item_share);\n\n // Fetch and store ShareActionProvider\n shareActionProvider = (ShareActionProvider) MenuItemCompat.getActionProvider(item);\n\n // Return true to display menu\n return true;\n }",
"@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\n\t\thome = new MenuItem(\"Home Page\");\n\t\thome.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.CREDENTIALS);\n\n\t\t\t}\n\t\t}); \n\n\t\t\n\t\tnewuser = new MenuItem(\"New User\");\n\t\tnewuser.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"Calling New User window\");\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.NEWUSER);\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t\texit = new MenuItem(\"Exit Application\");\n\t\texit.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"quitting\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}); \n\n\t\t\n\t\tMain.getItems().add(home);\n\t\n\t\tMain.getItems().add(newuser);\n\n\t\tMain.getItems().add(exit);\n\t\t\n\n\t\t//---------------------------- Actions Menu Drop down --------------------------------\n\n\t\thistory = new MenuItem(\"View History\");\n\t\thistory.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) { \t\n\t\t\t\t// open the default web browser for the HTML page\n\t\t\t\ttry {\n\t\t\t\t\tURL webURL = new URL(\"http://webdevelopmentdev.azurewebsites.net/\");\n\t\t\t\t\tDesktop.getDesktop().browse(webURL.toURI());\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} catch (URISyntaxException 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\n\t\tActions.getItems().add(history);\n\n\t\tbrowser = new MenuItem(\"View Browser\");\n\t\tbrowser.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"Inside the browser\");\n\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.BROWSER);\n\t\t\t}\n\t\t}); \n\n\t\tActions.getItems().add(browser);\n\t\tbrowser.setDisable(true);\n\t\t\n\t\tissue = new MenuItem(\"Report Issue\");\n\t\tissue.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.ISSUE);\n\t\t\t}\n\t\t}); \n\n\t\tActions.getItems().add(issue);\n\n\t\tStartConnection();\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.popmovies_menu, menu);\n\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tsetListenerForMenuItems(menu);\n\t\treturn true;\n\t}"
] | [
"0.66962564",
"0.65952164",
"0.6505404",
"0.63526756",
"0.6267206",
"0.62666225",
"0.6247558",
"0.6239467",
"0.6215153",
"0.6213961",
"0.61934495",
"0.6183891",
"0.6153334",
"0.6099423",
"0.60942876",
"0.60857785",
"0.60761374",
"0.605075",
"0.6048744",
"0.6022227",
"0.60208935",
"0.60147196",
"0.5999754",
"0.59976053",
"0.5979183",
"0.59736574",
"0.596492",
"0.5964201",
"0.5946198",
"0.59409547",
"0.593681",
"0.5930586",
"0.5922965",
"0.5919003",
"0.59074134",
"0.5898286",
"0.58967197",
"0.5886808",
"0.5882433",
"0.5877998",
"0.5877651",
"0.5873006",
"0.587265",
"0.58702993",
"0.58661544",
"0.5861363",
"0.58593994",
"0.58448976",
"0.58438903",
"0.5843153",
"0.58355975",
"0.58316076",
"0.58294195",
"0.58282197",
"0.58272755",
"0.5822381",
"0.58166045",
"0.5812564",
"0.58121884",
"0.58113056",
"0.5809362",
"0.58030087",
"0.5802557",
"0.580192",
"0.58017784",
"0.5799917",
"0.57959914",
"0.57945764",
"0.57932925",
"0.578113",
"0.57720625",
"0.577109",
"0.576795",
"0.57649326",
"0.57615876",
"0.57614034",
"0.57467896",
"0.5742657",
"0.5731216",
"0.5729813",
"0.5724709",
"0.57237715",
"0.5719393",
"0.57166976",
"0.5714644",
"0.57140285",
"0.57138216",
"0.57098603",
"0.57046676",
"0.57046676",
"0.57046676",
"0.57032585",
"0.5697974",
"0.5696089",
"0.56957597",
"0.5693271",
"0.5684747",
"0.56826264",
"0.5681869",
"0.5681042",
"0.5678177"
] | 0.0 | -1 |
Registers all menu items. | public static void registerMenuItems(SIPCommMenu parentMenu)
{
if(protocolProviderListener == null)
{
protocolProviderListener = new ProtocolProviderListener(parentMenu);
GuiActivator.bundleContext
.addServiceListener(protocolProviderListener);
}
for (ProtocolProviderFactory providerFactory : GuiActivator
.getProtocolProviderFactories().values())
{
for (AccountID accountID : providerFactory.getRegisteredAccounts())
{
ServiceReference<ProtocolProviderService> serRef
= providerFactory.getProviderForAccount(accountID);
ProtocolProviderService protocolProvider
= GuiActivator.bundleContext.getService(serRef);
addAccountInternal(protocolProvider, parentMenu);
}
}
// if we are in disabled menu mode and we have only one item
// change its name (like global auto answer)
if( ConfigurationUtils.isAutoAnswerDisableSubmenu()
&& getAutoAnswerItemCount(parentMenu) == 1)
{
updateItem(getAutoAnswerItem(parentMenu, 0), true);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void registerExtendMenuItem(){\n for(int i = 0; i < itemStrings.length; i++){\n inputMenu.registerExtendMenuItem(itemStrings[i], itemdrawables[i], itemIds[i], extendMenuItemClickListener);\n }\n }",
"public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}",
"void addAll(JMenuBar menu, JMenuItem... items) {\r\n\t\tfor (JMenuItem mi : items) {\r\n\t\t\tif (mi != null) {\r\n\t\t\t\tmenu.add(mi);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void addAll(JMenu menu, JMenuItem... items) {\r\n\t\tfor (JMenuItem mi : items) {\r\n\t\t\tif (mi != null) {\r\n\t\t\t\tmenu.add(mi);\r\n\t\t\t} else {\r\n\t\t\t\tmenu.addSeparator();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void init() {\n menus.values().forEach(ToolbarSubMenuMenu::init);\n }",
"public void init() {\n\t\tsuper.init();\n\n\t\tsetName(NAME);\n\n\t\tmoveUpMenuItem = new JMenuItem(MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setName(NAME_MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setEnabled(true);\n\t\tmoveUpMenuItem.addActionListener(moveUpAction);\n\t\tmoveUpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_UP,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tmoveDownMenuItem = new JMenuItem(MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setName(NAME_MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setEnabled(true);\n\t\tmoveDownMenuItem.addActionListener(moveDownAction);\n\t\tmoveDownMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DOWN, ActionEvent.ALT_MASK));\n\n\t\tdeleteMenuItem = new JMenuItem(MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setName(NAME_MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setEnabled(true);\n\t\tdeleteMenuItem.addActionListener(deleteAction);\n\t\tdeleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DELETE, 0));\n\n\t\taddMenuItem = new JMenuItem(MENU_ITEM_ADD);\n\t\taddMenuItem.setName(NAME_MENU_ITEM_ADD);\n\t\taddMenuItem.setEnabled(true);\n\t\taddMenuItem.addActionListener(addAction);\n\t\taddMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\teditMenuItem = new JMenuItem(MENU_ITEM_EDIT);\n\t\teditMenuItem.setName(NAME_MENU_ITEM_EDIT);\n\t\teditMenuItem.setEnabled(true);\n\t\teditMenuItem.addActionListener(editAction);\n\t\teditMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tsendMidiMenuItem = new JMenuItem(MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setName(NAME_MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setEnabled(false);\n\t\tsendMidiMenuItem.addActionListener(sendMidiAction);\n\t\tsendMidiMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,\n\t\t\t\tActionEvent.ALT_MASK));\n\t}",
"private void setIconsMenus() {\n ImageIcon iconNew = new javax.swing.ImageIcon(getClass().getResource(\"/image/novo.png\"));\n ImageIcon iconSearch = new javax.swing.ImageIcon(getClass().getResource(\"/image/procurar.19px.png\"));\n\n JMenuItem[] miNew = new JMenuItem[]{miModuloNovo, miIrradiacaoGlobalMesNovo, miInversorNovo,\n miProjetoNovo, miUsuarioNovo, miNovoCliente, miFornecedorNovo, miEPNovo};\n for (JMenuItem mi : miNew) {\n mi.setIcon(iconNew);\n mi.setMnemonic(KeyEvent.VK_N);\n }\n\n JMenuItem[] miSearch = new JMenuItem[]{miModuloPesquisar, miIrradiacaoGlobalMesPesquisar, miInversorPesquisar,\n miProjetoPesquisar, miUsuarioPesquisar, miPesquisarCliente, miFornecedorPesquisar, miEPPesquisar};\n for (JMenuItem mi : miSearch) {\n mi.setIcon(iconSearch);\n mi.setMnemonic(KeyEvent.VK_P);\n }\n }",
"private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }",
"private void updateMenus()\n {\n m_KernelMenu.updateMenu();\n m_AgentMenu.updateMenu();\n }",
"public void updateMenus() {\n\t\tSystem.out.println(\"BarGraphDisplayer.updateMenus\");\n\t\tCommandRegistrar.gRegistrar.checkAction(\"barGraph\");\n\t\tCommandRegistrar.gRegistrar.enableAction(\"viewOptions\");\n\t}",
"public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}",
"protected abstract void addMenuOptions();",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"private void addMenuItems() {\n PopupMenu popup = new PopupMenu();\n MenuItem defaultItem = new MenuItem(\"Exit\");\n \n defaultItem.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n System.out.println(\"Exiting...\");\n System.exit(0);\n }\n });\n \n popup.add(defaultItem);\n \n this.trayicon.setPopupMenu(popup);\n }",
"public void initMenu(){\n\t}",
"@SubscribeEvent\n\tpublic static void registerItems(RegistryEvent.Register<Item> event) {\n\t\tevent.getRegistry().register(new ItemBase(\"health_kit_regen\").setCreativeTab(HealthHungerTweaks.sidedProxy.creativeTab));\n\t\tevent.getRegistry().register(new ItemBase(\"cloth_bandage\").setCreativeTab(HealthHungerTweaks.sidedProxy.creativeTab));\n\t\tevent.getRegistry().register(new ItemBase(\"refined_ointment\").setCreativeTab(HealthHungerTweaks.sidedProxy.creativeTab));\n\t\tevent.getRegistry().register(new ItemBase(\"medical_tools\").setCreativeTab(HealthHungerTweaks.sidedProxy.creativeTab));\n\t\t\t\t\n\t}",
"public void register()\n {\n menu.registerDisplay();\n chooseRole();\n }",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"void addSampleModelMenus(Iterable<? extends JMenu> menus)\r\n {\r\n ActionListener actionListener = getSampleModelsMenuActionListener();\r\n for (JMenu menu : menus)\r\n {\r\n attachActionListener(menu, actionListener);\r\n menuBar.add(menu);\r\n }\r\n }",
"private void updateMenuItems()\r\n\t {\r\n\t\t setListAdapter(new ArrayAdapter<String>(this,\r\n\t\t android.R.layout.simple_list_item_1, home_menu));\r\n\t\t \t \r\n\t }",
"private void initializeContextMenus() {\n\t\tinitializeMenuForListView();\n\t\tinitializeMenuForPairsListView();\n\t}",
"void setMenuItem(MenuItem menuItem);",
"private void addMenuListeners()\n\t{\n\t\texit.addActionListener (new menuListener());\n\t\treadme.addActionListener (new menuListener());\n\t\tabout.addActionListener (new menuListener());\n\t\tsettings.addActionListener (new menuListener());\n\t}",
"private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\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}",
"public void addMenu(Menu menu) {\r\n\t\titems.add(menu);\r\n\t}",
"private void setupMenuItems() {\n\t\taboutMenu.setOnAction(event -> {\n\t\t\tAnchorPane root;\n\t\t\ttry {\n\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"about.fxml\"));\n\n\t\t\t\tStage stage = new Stage();\n\t\t\t\tstage.setScene(new Scene(root));\n\t\t\t\tstage.setTitle(\"About\");\n\t\t\t\tstage.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Error loading About Window - \" + e.getMessage());\n\t\t\t}\n\t\t});\n\n\t\texitMenu.setOnAction(event -> {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPlatform.exit();\n\t\t\t\t\tlog.debug(\"Window closed\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tloadMenu.setOnAction(event -> loadFile(true));\n\n\t\tsaveMenu.setOnAction(event -> Main.serializeItems());\n\n\t\tgroupByMenu.setOnAction(event -> {\n\t\t\tOptional<String> sortOption = Alerter.getChoiceDialog(\"Sorting\", null, \"Select how you want to group: \");\n\t\t\tsortOption.ifPresent(letter -> groupItems(letter));\n\t\t});\n\n\t\tupdateAllMenu.setOnAction(event -> {\n\t\t\tnew Thread(new Task<Void>() {\n\t\t\t\t@Override\n\t\t\t\tprotected Void call() throws Exception {\n\t\t\t\t\tlog.debug(\"UpdateAll Thread Triggered\");\n\n\t\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\t\tupdateItem(b);\n\t\t\t\t\t});\n\n\t\t\t\t\tupdateList();\n\t\t\t\t\tMain.serializeItems();\n\n\t\t\t\t\tlog.debug(\"UpdateAll Thread terminated successfully\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}).start();\n\t\t});\n\n\t\tupdateMenu.setOnAction(event -> {\n\t\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\t\t\t\tupdateItem(itemBox);\n\t\t\t} else {\n\t\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"No Item selected\", null,\n\t\t\t\t\t\t\"Please select the Item you want to update!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\tlog.debug(\"Info Popup triggered, No item selected\");\n\t\t\t}\n\t\t});\n\n\t\tdeleteMenu.setOnAction(event -> {\n\t\t\tItemBox rem = itemsMap.remove(listView.getSelectionModel().getSelectedItem().getGtin());\n\t\t\tlog.info(\"Item: \" + rem.getName() + \" removed\");\n\t\t\tupdateList();\n\t\t});\n\n\t\trepeatMenu.setOnAction(event -> {\n\t\t\tif (lastCommand != null) {\n\t\t\t\tString[] props = lastCommand.split(\" \");\n\t\t\t\tlog.info(\"Repeat called with: \" + lastCommand);\n\n\t\t\t\tswitch (props[0]) {\n\t\t\t\tcase \"ADD\":\n\t\t\t\t\taddItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RM\":\n\t\t\t\t\tremoveItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tprintMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.OVERVIEW);\n\t\t});\n\n\t\tprintShoppingMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.SHOPPING);\n\t\t});\n\n\t}",
"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 menuSetup(){\r\n menu.add(menuItemSave);\r\n menu.add(menuItemLoad);\r\n menu.add(menuItemRestart);\r\n menuBar.add(menu); \r\n topPanel.add(menuBar);\r\n bottomPanel.add(message);\r\n \r\n this.setLayout(new BorderLayout());\r\n this.add(topPanel, BorderLayout.NORTH);\r\n this.add(middlePanel, BorderLayout.CENTER);\r\n this.add(bottomPanel, BorderLayout.SOUTH);\r\n \r\n }",
"public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }",
"private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }",
"private void initMenuBar() {\r\n\t\t// file menu\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\r\n\t\tadd(fileMenu);\r\n\r\n\t\tJMenuItem fileNewMenuItem = new JMenuItem(new NewAction(parent, main));\r\n\t\tfileNewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileNewMenuItem);\r\n\t\tJMenuItem fileOpenMenuItem = new JMenuItem(new OpenAction(parent, main));\r\n\t\tfileOpenMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileOpenMenuItem);\r\n\r\n\t\tJMenuItem fileSaveMenuItem = new JMenuItem(new SaveAction(main));\r\n\t\tfileSaveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveMenuItem);\r\n\t\tJMenuItem fileSaveAsMenuItem = new JMenuItem(new SaveAsAction(main));\r\n\t\tfileSaveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveAsMenuItem);\r\n\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.addSeparator();\r\n\r\n\t\tJMenuItem exitMenuItem = new JMenuItem(new ExitAction(main));\r\n\t\texitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(exitMenuItem);\r\n\r\n\t\t// tools menu\r\n\t\tJMenu toolsMenu = new JMenu(\"Application\");\r\n\t\ttoolsMenu.setMnemonic(KeyEvent.VK_A);\r\n\t\tadd(toolsMenu);\r\n\r\n\t\tJMenuItem defineCategoryMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineCategoryAction());\r\n\t\tdefineCategoryMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_C, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineCategoryMenuItem);\r\n\t\tJMenuItem defineBehaviorNetworkMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineBehaviorNetworkAction());\r\n\t\tdefineBehaviorNetworkMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_B, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineBehaviorNetworkMenuItem);\r\n\t\tJMenuItem startSimulationMenuItem = new JMenuItem(\r\n\t\t\t\tnew StartSimulationAction(main));\r\n\t\tstartSimulationMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_E, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(startSimulationMenuItem);\r\n\r\n\t\t// help menu\r\n\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\r\n\t\tadd(helpMenu);\r\n\r\n\t\tJMenuItem helpMenuItem = new JMenuItem(new HelpAction(parent));\r\n\t\thelpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\thelpMenu.add(helpMenuItem);\r\n\r\n\t\t// JCheckBoxMenuItem clock = new JCheckBoxMenuItem(new\r\n\t\t// ScheduleSaveAction(parent));\r\n\t\t// helpMenu.add(clock);\r\n\t\thelpMenu.addSeparator();\r\n\t\tJMenuItem showMemItem = new JMenuItem(new ShowMemAction(parent));\r\n\t\thelpMenu.add(showMemItem);\r\n\r\n\t\tJMenuItem aboutMenuItem = new JMenuItem(new AboutAction(parent));\r\n\t\thelpMenu.add(aboutMenuItem);\r\n\t}",
"public static void initMenuBars()\n\t{\n\t\tmenuBar = new JMenuBar();\n\n\t\t//Build the first menu.\n\t\tmenu = new JMenu(\"Options\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(menu);\n\n\t\t//a group of JMenuItems\n\t\tmenuItem = new JMenuItem(\"Quit\",\n\t\t KeyEvent.VK_T);\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmenuItem.getAccessibleContext().setAccessibleDescription(\n\t\t \"This doesn't really do anything\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Both text and icon\",\n\t\t new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_B);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_D);\n\t\tmenu.add(menuItem);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\tButtonGroup group = new ButtonGroup();\n\t\trbMenuItem = new JRadioButtonMenuItem(\"A radio button menu item\");\n\t\trbMenuItem.setSelected(true);\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_R);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\trbMenuItem = new JRadioButtonMenuItem(\"Another one\");\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_O);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\t//a group of check box menu items\n\t\tmenu.addSeparator();\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"A check box menu item\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_C);\n\t\tmenu.add(cbMenuItem);\n\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"Another one\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_H);\n\t\tmenu.add(cbMenuItem);\n\n\t\t//a submenu\n\t\tmenu.addSeparator();\n\t\tsubmenu = new JMenu(\"A submenu\");\n\t\tsubmenu.setMnemonic(KeyEvent.VK_S);\n\n\t\tmenuItem = new JMenuItem(\"An item in the submenu\");\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_2, ActionEvent.ALT_MASK));\n\t\tsubmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Another item\");\n\t\tsubmenu.add(menuItem);\n\t\tmenu.add(submenu);\n\n\t\t//Build second menu in the menu bar.\n\t\tmenu = new JMenu(\"Another Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_N);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"This menu does nothing\");\n\t\tmenuBar.add(menu);\n\t}",
"private void setUpMenu() {\n\t\tresideMenu = new ResideMenu(this);\n\t\tresideMenu.setBackground(R.drawable.menu_background);\n\t\tresideMenu.attachToActivity(this);\n\t\tresideMenu.setMenuListener(menuListener);\n\t\t// valid scale factor is between 0.0f and 1.0f. leftmenu'width is\n\t\t// 150dip.\n\t\tresideMenu.setScaleValue(0.6f);\n\n\t\t// create menu items;\n\t\titemGame = new ResideMenuItem(this, R.drawable.icon_game,\n\t\t\t\tgetResources().getString(R.string.strGame));\n\t\titemBook = new ResideMenuItem(this, R.drawable.icon_book,\n\t\t\t\tgetResources().getString(R.string.strBook));\n\t\titemNews = new ResideMenuItem(this, R.drawable.icon_news,\n\t\t\t\tgetResources().getString(R.string.strNews));\n\t\t// itemSettings = new ResideMenuItem(this, R.drawable.icon_setting,\n\t\t// getResources().getString(R.string.strSetting));\n\t\titemLogin = new ResideMenuItem(this, R.drawable.icon_share,\n\t\t\t\tgetResources().getString(R.string.strShare));\n\t\titemBookPDF = new ResideMenuItem(this, R.drawable.icon_bookpdf,\n\t\t\t\tgetResources().getString(R.string.strBookPDF));\n\t\titemMore = new ResideMenuItem(this, R.drawable.icon_more,\n\t\t\t\tgetResources().getString(R.string.strMore));\n\n\t\titemGame.setOnClickListener(this);\n\t\titemBook.setOnClickListener(this);\n\t\titemNews.setOnClickListener(this);\n\t\t// itemSettings.setOnClickListener(this);\n\t\titemBookPDF.setOnClickListener(this);\n\t\titemMore.setOnClickListener(this);\n\t\titemLogin.setOnClickListener(this);\n\n\t\tresideMenu.addMenuItem(itemBookPDF, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemBook, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemNews, ResideMenu.DIRECTION_LEFT);\n\t\t// resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n\n\t\tresideMenu.addMenuItem(itemGame, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemLogin, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemMore, ResideMenu.DIRECTION_RIGHT);\n\n\t\t// You can disable a direction by setting ->\n\t\t// resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n\t\tfindViewById(R.id.title_bar_left_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tfindViewById(R.id.title_bar_right_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"private void registerMainMenu() {\n\t\ttry {\n//\t\t\tif (FMLCommonHandler.instance().getSide().isClient())\n//\t\t\t\tnet.aetherteam.mainmenu_api.MainMenuAPI.registerMenu(\"TurretMod3Menu\", sanandreasp.mods.TurretMod3.client.gui.mainMenu.MainMenuTM3.class);\n\t\t} catch (Exception e) {\n\t\t\tFMLLog.log(TM3ModRegistry.modID, Level.INFO, \"kingbdogz' Main Menu API not found. Skipping Main Menu registration!\");\n\t\t} catch (NoClassDefFoundError error) {\n\t\t\tFMLLog.log(TM3ModRegistry.modID, Level.INFO, \"kingbdogz' Main Menu API not found. Skipping Main Menu registration!\");\n\t\t}\n\t}",
"private void setupMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t// Build the first menu.\n\t\tJMenu menu = new JMenu(Messages.getString(\"Gui.File\")); //$NON-NLS-1$\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenuBar.add(menu);\n\n\t\t// a group of JMenuItems\n\t\tJMenuItem menuItem = new JMenuItem(openAction);\n\t\tmenu.add(menuItem);\n\n\t\t// menuItem = new JMenuItem(openHttpAction);\n\t\t// menu.add(menuItem);\n\n\t\t/*\n\t\t * menuItem = new JMenuItem(crudAction); menu.add(menuItem);\n\t\t */\n\n\t\tmenuItem = new JMenuItem(showLoggingFrameAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(quitAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuBar.add(menu);\n\n\t\tJMenu optionMenu = new JMenu(Messages.getString(\"Gui.Options\")); //$NON-NLS-1$\n\t\tmenuItem = new JCheckBoxMenuItem(baselineModeAction);\n\t\toptionMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(toggleButtonsAction);\n\t\toptionMenu.add(menuItem);\n\n\t\tmenuBar.add(optionMenu);\n\t\tJMenu buttonMenu = new JMenu(Messages.getString(\"Gui.Buttons\")); //$NON-NLS-1$\n\t\tmenuItem = new JMenuItem(wrongAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(attendingAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(independentAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(verbalAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(modelingAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(noAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuBar.add(buttonMenu);\n\t\tframe.setJMenuBar(menuBar);\n\n\t\tframe.pack();\n\n\t\tframe.setVisible(true);\n\t}",
"public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\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}",
"private void updateMenu() {\n if(customMenu || !menuDirty) {\n return;\n }\n \n // otherwise, reset up the menu.\n menuDirty = false;\n menu.removeAll();\n Icon emptyIcon = null; \n for(Action action : actions) {\n if(action.getValue(Action.SMALL_ICON) != null) {\n emptyIcon = new EmptyIcon(16, 16);\n break;\n }\n }\n \n selectedComponent = null;\n selectedLabel = null;\n \n for (Action action : actions) {\n \n // We create the label ourselves (instead of using JMenuItem),\n // because JMenuItem adds lots of bulky insets.\n\n ActionLabel menuItem = new ActionLabel(action);\n JComponent panel = wrapItemForSelection(menuItem);\n \n if (action != selectedAction) {\n panel.setOpaque(false);\n menuItem.setForeground(UIManager.getColor(\"MenuItem.foreground\"));\n } else {\n selectedComponent = panel;\n selectedLabel = menuItem;\n selectedComponent.setOpaque(true);\n selectedLabel.setForeground(UIManager.getColor(\"MenuItem.selectionForeground\"));\n }\n \n if(menuItem.getIcon() == null) {\n menuItem.setIcon(emptyIcon);\n }\n attachListeners(menuItem);\n decorateMenuComponent(menuItem);\n menuItem.setBorder(BorderFactory.createEmptyBorder(0, 6, 2, 6));\n\n menu.add(panel);\n }\n \n if (getText() == null) {\n menu.add(Box.createHorizontalStrut(getWidth()-4));\n } \n \n for(MenuCreationListener listener : menuCreationListeners) {\n listener.menuCreated(this, menu);\n }\n }",
"@SubscribeEvent\n public static void onRegisterItems(RegistryEvent.Register<Item> event) {\n event.getRegistry().registerAll(\n setup(new CoffeeMachineItem(ModBlocks.COFFEE_MACHINE,\n new Item.Properties().group(ModItemGroups.MOD_ITEM_GROUP)),\n \"coffee_machine\")\n );\n }",
"public void addSubMenus() {\n configMenu.remove(colorMI);\r\n configMenu.remove(sizeMI);\r\n\r\n // set color and size as JMenu\r\n colorMenu = new JMenu(\"Color\");\r\n sizeMenu = new JMenu(\"Size\");\r\n\r\n // set new JMenuItem\r\n redColor = new JMenuItem(\"Red\");\r\n greenColor = new JMenuItem(\"Green\");\r\n blueColor = new JMenuItem(\"Blue\");\r\n sixteenSize = new JMenuItem(\"16\");\r\n twentySize = new JMenuItem(\"20\");\r\n twentyfourSize = new JMenuItem(\"24\");\r\n\r\n // add menu item to menu\r\n colorMenu.add(redColor);\r\n colorMenu.add(greenColor);\r\n colorMenu.add(blueColor);\r\n sizeMenu.add(sixteenSize);\r\n sizeMenu.add(twentySize);\r\n sizeMenu.add(twentyfourSize);\r\n\r\n // add menu\r\n configMenu.add(colorMenu);\r\n configMenu.add(sizeMenu);\r\n }",
"public void list_of_menu_items() {\n\t\tdriver.findElement(open_menu_link).click();\n\t}",
"public void setLocalizedLanguageMenuItems() {\n\t\tif (!userMenuButton.getText().equals(\"\")) {\n\t\t\tloggedinuser.setText(bundle.getString(\"mVloggedin\"));\n\t\t\tmenu1.setText(bundle.getString(\"mVmenu1\"));\n\t\t\tmenu2.setText(bundle.getString(\"mVmenu2\"));\n\t\t}\n\t}",
"public void add(String nameItem)\n\t{\n\t\tmenu.add(nameItem);\n\t}",
"public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"public void clearMenuItems() {\n menuItemNames.clear();\n menuItemPrices.clear();\n }",
"private void setItemMenu() {\n choices = new ArrayList<>();\n \n choices.add(Command.INFO);\n if (item.isUsable()) {\n choices.add(Command.USE);\n }\n if (item.isEquipped()) {\n choices.add(Command.UNEQUIP);\n } else {\n if (item.isEquipable()) {\n choices.add(Command.EQUIP);\n }\n }\n \n if (item.isActive()) {\n choices.add(Command.UNACTIVE);\n } else {\n if (item.isActivable()) {\n choices.add(Command.ACTIVE);\n }\n }\n if (item.isDropable()) {\n choices.add(Command.DROP);\n }\n if (item.isPlaceable()) {\n choices.add(Command.PLACE);\n }\n choices.add(Command.DESTROY);\n choices.add(Command.CLOSE);\n \n this.height = choices.size() * hItemBox + hGap * 2;\n }",
"private void addGlobalHandlers(MMenu menu) {\n\t\tMUIElement trimmedWindow = modelService.find(\n\t\t\t\tEditorIdentities.MAIN_WINDOW_ID, application);\n\n\t\tif (trimmedWindow instanceof MTrimmedWindow) {\n\t\t\tif (editingDomainContribution != null) {\n\t\t\t\teditingDomainContribution.addGlobalHandlers(\n\t\t\t\t\t\t(MTrimmedWindow) trimmedWindow, menu);\n\t\t\t}\n\t\t\tSystem.out.println(\"Adding EMF Editor global handlers\");\n\t\t\tmenu.getChildren().addAll(\n\t\t\t\t\thelpMeWith.locateGlobalHandlers(\n\t\t\t\t\t\t\tEditorIdentities.GLOBAL_HANDLERS,\n\t\t\t\t\t\t\t(MTrimmedWindow) trimmedWindow));\n\t\t}\n\t}",
"private void createMenuForGCodeRepository(IMenuManager contextMenu) {\r\n\t\tcontextMenu.add(new AddAllGCodeInQueueAction(executionService, rs274Service));\r\n\t}",
"private void addMenuChildren( MenuManager menuParent, List<XulComponent> children ) {\n for ( Element comp : children ) {\n\n // TODO\n /*\n * for (XulComponent compInner : ((SwtMenupopup) comp).getChildNodes()) { if(compInner instanceof XulMenu){\n * MenuItem item = new MenuItem(menuParent, SWT.CASCADE); Menu flyout = new Menu(shell, SWT.DROP_DOWN);\n * item.setMenu(flyout); addMenuChildren(flyout, compInner.getChildNodes()); } else {\n * \n * \n * \n * } }\n */\n }\n }",
"public Menus() {\n initComponents();\n }",
"@Override\n @SideOnly(Side.CLIENT)\n public void registerIcons(final IconRegister register) {\n itemIcon = register.registerIcon(TextureHelper.getTextureFromName(this.getUnlocalizedName(), Locations.TEXTURE + \"tools/\"));\n }",
"private void loadItemsMaps()\n {\n _icons=new HashMap<String,List<Item>>(); \n _names=new HashMap<String,List<Item>>(); \n List<Item> items=ItemsManager.getInstance().getAllItems();\n for(Item item : items)\n {\n String icon=item.getIcon();\n if (icon!=null)\n {\n registerMapping(_icons,icon,item);\n String mainIconId=icon.substring(0,icon.indexOf('-'));\n registerMapping(_icons,mainIconId,item);\n String name=item.getName();\n registerMapping(_names,name,item);\n }\n }\n }",
"private void bind() \r\n\t{\r\n\t\tsuper.menuPut(\"list\", newJMenu(\"List\", 'L'));\r\n\t\tsuper.menuPut(\"list/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionNew(x));\r\n\t\tsuper.menuPut(\"list/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionLoad(x));\r\n\t\tsuper.menuPut(\"list/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionSave(x));\r\n\t\tsuper.menuPut(\"list/***1\", \"\");\r\n\t\tsuper.menuPut(\"list/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionAdd(x));\r\n\t\tsuper.menuPut(\"list/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionRemove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"tree\", newJMenu(\"Tree\", 'T'));\r\n\t\tsuper.menuPut(\"tree/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK), x -> menuEdit.actionNew(x));\r\n\t\tsuper.menuPut(\"tree/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK), x -> menuEdit.actionLoad(x));\r\n\t\tsuper.menuPut(\"tree/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK), x -> menuEdit.actionSave(x));\r\n\t\tsuper.menuPut(\"tree/***1\", \"\");\r\n\t\tsuper.menuPut(\"tree/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK), x -> menuEdit.actionAdd(x));\r\n\t\tsuper.menuPut(\"tree/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK), x -> menuEdit.actionRemove(x));\r\n\t\tsuper.menuPut(\"tree/move\", newJMenuItem(\"Move\", 'V', KeyEvent.VK_6, ActionEvent.SHIFT_MASK), x -> menuEdit.actionMove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"graph\", newJMenu(\"Graph\", 'G'));\r\n\t\tsuper.menuPut(\"graph/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.CTRL_MASK), x -> menuHelp.actionNew(x));\r\n\t\tsuper.menuPut(\"graph/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.CTRL_MASK), x -> menuHelp.actionOpen(x));\r\n\t\tsuper.menuPut(\"graph/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.CTRL_MASK), x -> menuHelp.actionSave(x));\r\n\t\tsuper.menuPut(\"graph/***1\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-node\", newJMenuItem(\"Add node\", 'A', KeyEvent.VK_4, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddNode(x));\r\n\t\tsuper.menuPut(\"graph/remove-node\", newJMenuItem(\"Remove node\", 'R', KeyEvent.VK_5, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveNode(x));\r\n\t\tsuper.menuPut(\"graph/move-node\", newJMenuItem(\"Move node\", 'V', KeyEvent.VK_6, ActionEvent.CTRL_MASK), x -> menuHelp.actionMoveNode(x));\r\n\t\tsuper.menuPut(\"graph/***2\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-link\", newJMenuItem(\"Add link\", 'D', KeyEvent.VK_7, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddLink(x));\r\n\t\tsuper.menuPut(\"graph/remove-link\", newJMenuItem(\"Remove link\", 'L', KeyEvent.VK_8, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveLink(x));\r\n\t\t\r\n\t\tsuper.menuDump();\t\t\r\n\t}",
"protected void fillMenuBar(IMenuManager menuBar){\n\t\tIWorkbenchWindow window = getActionBarConfigurer().getWindowConfigurer().getWindow();\n\t\tmenuBar.add(createFileMenu(window));\n\t\tmenuBar.add(createEditMenu());\n\t\tmenuBar.add(ToolsBoxFonctions.createToolBoxMenu(window));\n\t\tmenuBar.add(createHelpMenu(window));\n\t}",
"public void initializeMenuBarLocalization() {\n\t\tmenuSettings.setText(bundle.getString(\"mVSettings\"));\n\t\tmenuItemPreferences.setText(bundle.getString(\"mVPreferences\"));\n\t\tuserSettings.setText(bundle.getString(\"mVUsersettings\"));\n\t\tloginoption.setText(bundle.getString(\"mVLogin\"));\n\t\tmenuHelp.setText(bundle.getString(\"mVHelp\"));\n\t\tmenuItemAbout.setText(bundle.getString(\"mVAbout\"));\n\t\tmenuItemUserguide.setText(bundle.getString(\"mVUserguide\"));\n\t\tmenuLanguage.setText(bundle.getString(\"mVLanguage\"));\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n itemIdMSCSM = menu.findItem(R.id.action_registration);\n itemAutoReg = menu.findItem(R.id.action_auto_reg);\n itemExit = menu.findItem(R.id.action_exit);\n itemRegister = menu.findItem(R.id.action_register);\n if (registered) {\n itemIdMSCSM.setVisible(false);\n itemAutoReg.setVisible(false);\n itemExit.setVisible(false);\n } else {\n itemIdMSCSM.setVisible(true);\n itemAutoReg.setVisible(true);\n itemExit.setVisible(true);\n }\n return true;\n }",
"public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"protected void getEditMenuItems(List items, boolean forMenuBar) {\n ObjectListener listener = new ObjectListener(\"\") {\n public void actionPerformed(ActionEvent ae, Object obj) {\n stationTableName = ((NamedStationTable) obj).getFullName();\n stationIdx = 0;\n setStations();\n }\n };\n List stationTables = getControlContext().getLocationList();\n items.add(\n GuiUtils.makeMenu(\n \"Set Locations\",\n NamedStationTable.makeMenuItems(stationTables, listener)));\n \n super.getEditMenuItems(items, forMenuBar);\n }",
"private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}",
"public BookItemMenu addItems ( Item... items ) {\n\t\tfinal int count = addItemsNotFull ( items );\n\t\tif ( ( items.length - count ) > 0 ) { // if there is no added items\n\t\t\tint pages_amount = getPagesAmount ( ( items.length - count ) , getPagesSize ( ) , getButtonsBarSize ( ) );\n\t\t\tthis.pages = Arrays.copyOfRange ( this.pages , 0 , this.pages.length + pages_amount );\n\t\t\tfor ( int i = 0; i < pages.length; i++ ) {\n\t\t\t\tif ( pages[ i ] == null ) {\n\t\t\t\t\tpages[ i ] = new BookPageItemMenu ( this );\n\t\t\t\t\tpages[ i ].setPageNumber ( i );\n\t\t\t\t\t\n\t\t\t\t\t// here we're registering listener of the new page.\n\t\t\t\t\tif ( getHandler ( ) != null ) {\n\t\t\t\t\t\tpages[ i ].registerListener ( getHandler ( ).getPlugin ( ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\taddItemsNotFull ( Arrays.copyOfRange ( items , count , items.length ) );\n\t\t}\n\t\treturn this;\n\t}",
"public static void updateMainMenu() {\n instance.updateMenu();\n }",
"public void add(MenuItem item) {\n this.items.add(item);\n }",
"private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_register, menu);\r\n return true;\r\n }",
"private void createMenusNow()\n {\n JMenu debugMenu = myToolbox.getUIRegistry().getMenuBarRegistry().getMenu(MenuBarRegistry.MAIN_MENU_BAR,\n MenuBarRegistry.DEBUG_MENU);\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Print Summary\", e -> printSummary()));\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Tag Data Type\", e -> tagDataType()));\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.register, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.register, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.register, menu);\n\t\treturn true;\n\t}",
"public void \n updateMenus()\n {\n UIMaster master = UIMaster.getInstance();\n UICache cache = master.getUICache(pChannel);\n try {\n String tname = cache.getCachedDefaultToolsetName();\n master.updateEditorPluginField(pChannel, tname, pField);\n }\n catch(PipelineException ex) {\n master.showErrorDialog(ex);\n }\n }",
"public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem);\n\t}",
"private void setUpMenu() {\n resideMenu = new ResideMenu(this);\n\n resideMenu.setBackground(R.drawable.menu_background);\n resideMenu.attachToActivity(this);\n resideMenu.setMenuListener(menuListener);\n resideMenu.setScaleValue(0.6f);\n\n // create menu items;\n itemHome = new ResideMenuItem(this, R.drawable.icon_profile, \"Home\");\n itemSerre = new ResideMenuItem(this, R.drawable.serre, \"GreenHouse\");\n itemControl = new ResideMenuItem(this, R.drawable.ctrl, \"Control\");\n itemTable = new ResideMenuItem(this, R.drawable.database, \"Parametre\");\n\n // itemProfile = new ResideMenuItem(this, R.drawable.user, \"Profile\");\n // itemSettings = new ResideMenuItem(this, R.drawable.stat_n, \"Statistique\");\n itemPicture = new ResideMenuItem(this, R.drawable.cam, \"Picture\");\n itemLog = new ResideMenuItem(this, R.drawable.log, \"Log file \");\n\n itemLogout = new ResideMenuItem(this, R.drawable.logout, \"Logout\");\n\n\n\n itemHome.setOnClickListener(this);\n itemSerre.setOnClickListener(this);\n itemControl.setOnClickListener(this);\n itemTable.setOnClickListener(this);\n\n// itemProfile.setOnClickListener(this);\n // itemSettings.setOnClickListener(this);\n itemLogout.setOnClickListener(this);\n itemPicture.setOnClickListener(this);\n itemLog.setOnClickListener(this);\n\n\n resideMenu.addMenuItem(itemHome, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemSerre, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemControl, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemTable, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemLog, ResideMenu.DIRECTION_LEFT);\n\n\n // resideMenu.addMenuItem(itemProfile, ResideMenu.DIRECTION_RIGHT);\n // resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n resideMenu.addMenuItem(itemPicture, ResideMenu.DIRECTION_RIGHT);\n\n resideMenu.addMenuItem(itemLogout, ResideMenu.DIRECTION_RIGHT);\n\n // You can disable a direction by setting ->\n // resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n findViewById(R.id.title_bar_left_menu).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n resideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n }\n });\n findViewById(R.id.title_bar_right_menu).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n resideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n }\n });\n }",
"private static void registerItems() {\r\n\t\tItems.registerItem(ItemWoodHammer);\r\n\t\tItems.registerItem(ItemStoneHammer);\r\n\t\t//Items.registerItem(ItemIronHammer);\r\n\t\t//Items.registerItem(ItemGoldHammer);\r\n\t\tItems.registerItem(ItemDiamondHammer);\r\n\t\tItems.registerItem(ItemDirtHammer);\r\n\t\tItems.registerItem(ItemGlassHammer);\r\n\t\tItems.registerItem(ItemSandHammer);\r\n\t\t//Items.registerItem(ItemCactusHammer);\r\n\t\t//Items.registerItem(ItemGravelHammer);\r\n\t\t//Items.registerItem(ItemWoolHammer_white);\r\n\t\tItems.registerItem(ItemEmeraldHammer);\r\n\t\tItems.registerItem(ItemGrassHammer);\r\n\t\t//Items.registerItem(ItemObsidianHammer);\r\n\t\t//Items.registerItem(ItemGlowstoneHammer);\r\n\t\t//Items.registerItem(ItemRedstoneHammer);\r\n\t\t//Items.registerItem(ItemLapizHammer);\r\n\t\t//Items.registerItem(ItemNetherackHammer);\r\n\t\t//Items.registerItem(ItemSoulSandHammer);\r\n\t\tItems.registerItem(ItemCoalHammer);\r\n\t\tItems.registerItem(ItemCharcoalHammer);\r\n\t\t//Items.registerItem(ItemEndstoneHammer);\r\n\t\tItems.registerItem(ItemBoneHammer);\r\n\t\t//Items.registerItem(ItemSpongeHammer);\r\n\t\t//Items.registerItem(ItemBrickHammer);\r\n\t\t//Items.registerItem(ItemSugarHammer);\r\n\t\t//Items.registerItem(ItemSlimeHammer);\r\n\t\t//Items.registerItem(ItemMelonHammer);\r\n\t\t//Items.registerItem(ItemPumpkinHammer);\r\n\t\t//Items.registerItem(ItemPotatoHammer);\r\n\t\t//Items.registerItem(ItemCarrotHammer);\r\n\t\tItems.registerItem(ItemAppleHammer);\r\n\t\t//Items.registerItem(ItemIceHammer);\r\n\t\t//Items.registerItem(ItemPackedIceHammer);\r\n\t\t//Items.registerItem(ItemSnowHammer);\r\n\t\t//Items.registerItem(ItemCakeHammer);\r\n\t\t//Items.registerItem(ItemDragonEggHammer);\r\n\t\t//Items.registerItem(ItemTntHammer);\r\n\t\t//Items.registerItem(ItemBedrockHammer);\r\n\r\n\r\n\t\t/*\r\n\t\t * Hammers Using Ores from other mods\r\n\t\t * **NOTE: REQUIRES Other mods to craft these hammers**\r\n\t\t */\r\n\t\tItems.registerItem(ItemCopperHammer);\r\n\t\tItems.registerItem(ItemBronzeHammer);\r\n\t\tItems.registerItem(ItemSilverHammer);\r\n\t\tItems.registerItem(ItemTungstenHammer);\r\n\t\tItems.registerItem(ItemRubyHammer);\r\n\t\tItems.registerItem(ItemTinHammer);\r\n\t\tItems.registerItem(ItemJadeHammer);\r\n\t\tItems.registerItem(ItemAmethystHammer);\r\n\t\tItems.registerItem(ItemGraphiteHammer);\r\n\t\tItems.registerItem(ItemCitrineHammer);\r\n\t\tItems.registerItem(ItemPierreHammer);\r\n\t\tItems.registerItem(ItemSapphireHammer);\r\n\t\tItems.registerItem(ItemOnyxHammer);\r\n\t\tItems.registerItem(ItemNikoliteHammer);\r\n\t\tItems.registerItem(ItemSilicaHammer);\r\n\t\tItems.registerItem(ItemCinnabarHammer);\r\n\t\tItems.registerItem(ItemAmberBearingStoneHammer);\r\n\t\tItems.registerItem(ItemFerrousHammer);\r\n\t\tItems.registerItem(ItemAdaminiteHammer);\r\n\t\tItems.registerItem(ItemShinyHammer);\r\n\t\tItems.registerItem(ItemXychoriumHammer);\r\n\t\tItems.registerItem(ItemUraniumHammer);\r\n\t\tItems.registerItem(ItemTitaniumHammer);\r\n\t\tItems.registerItem(ItemBloodStoneHammer);\r\n\t\tItems.registerItem(ItemRustedHammer);\r\n\t\tItems.registerItem(ItemRositeHammer);\r\n\t\tItems.registerItem(ItemLimoniteHammer);\r\n\t\tItems.registerItem(ItemMithrilHammer);\r\n\t\tItems.registerItem(ItemPrometheumHammer);\r\n\t\tItems.registerItem(ItemHepatizonHammer);\r\n\t\tItems.registerItem(ItemPoopHammer);\r\n\t\tItems.registerItem(ItemAngmallenHammer);\r\n\t\tItems.registerItem(ItemManganeseHammer);\r\n\t\tItems.registerItem(ItemSearedBrickHammer);\r\n\t\tItems.registerItem(ItemElectrumHammer);\r\n\t\tItems.registerItem(ItemPigIronHammer);\r\n\t\tItems.registerItem(ItemArditeHammer);\r\n\t\tItems.registerItem(ItemAlumiteHammer);\r\n\t\tItems.registerItem(ItemCobaltHammer);\r\n\t\tItems.registerItem(ItemManyullynHammer);\r\n\t\tItems.registerItem(ItemOureclaseHammer);\r\n\t\tItems.registerItem(ItemHaderothHammer);\r\n\t\tItems.registerItem(ItemInfuscoliumHammer);\r\n\t\tItems.registerItem(ItemRubberHammer);\r\n\t\tItems.registerItem(ItemDesichalkosHammer);\r\n\t\tItems.registerItem(ItemMeutoiteHammer);\r\n\t\tItems.registerItem(ItemEximiteHammer);\r\n\t\tItems.registerItem(ItemMidasiumHammer);\r\n\t\tItems.registerItem(ItemSanguiniteHammer);\r\n\t\tItems.registerItem(ItemInolashiteHammer);\r\n\t\tItems.registerItem(ItemVulcaniteHammer);\r\n\t\tItems.registerItem(ItemLemuriteHammer);\r\n\t\tItems.registerItem(ItemAmordrineHammer);\r\n\t\tItems.registerItem(ItemCeruclaseHammer);\r\n\t\tItems.registerItem(ItemKalendriteHammer);\r\n\t\tItems.registerItem(ItemVyroxeresHammer);\r\n\t\tItems.registerItem(ItemCarmotHammer);\r\n\t\tItems.registerItem(ItemTartariteHammer);\r\n\t\tItems.registerItem(ItemAtlarusHammer);\r\n\t\tItems.registerItem(ItemAstralHammer);\r\n\t\tItems.registerItem(ItemCelenegilHammer);\r\n\t\tItems.registerItem(ItemAredriteHammer);\r\n\t\tItems.registerItem(ItemOrichalcumHammer);\r\n\t\r\n\t\t/*\r\n\t\t * Hammers For YouTubers\r\n\t\t */\r\n\t\tItems.registerItem(ItemPatHammer);\r\n\t\tItems.registerItem(ItemJenHammer);\r\n\t\tItems.registerItem(ItemDanTDMHammer);\r\n\t\tItems.registerItem(ItemxJSQHammer);\r\n\t\tItems.registerItem(ItemSkyTheKidRSHammer);\r\n\t\tItems.registerItem(ItemThackAttack_MCHammer);\r\n\t\tItems.registerItem(Item_MrGregor_Hammer);\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For Twitch Streamers\r\n\t\t */\r\n\t\tItems.registerItem(ItemDeeAxelJayHammer);\r\n\t\tItems.registerItem(ItemincapablegamerHammer);\r\n\t\t\r\n\t\t/*\r\n\t\t * Community Hammers\r\n\t\t */\r\n\t\tItems.registerItem(ItemCryingObsidainHammer);\r\n\t\t//Items.registerItem(ItemMythicalHammer);\r\n\t\tItems.registerItem(ItemToasterHammer);\r\n\t\t\r\n\t\t/*\r\n\t\t * Special Hammers\r\n\t\t */\r\n\t\tItems.registerItem(ItemRainbowHammer);\r\n\t\tItems.registerItem(ItemMissingTextureHammer);\r\n\t}",
"private void registerActions() {\n // File menu :\n new NewAction();\n new LoadOIFitsAction();\n new LoadFitsImageAction();\n\n new ExportOIFitsAction();\n new ExportFitsImageAction();\n\n // Edit menu :\n new DeleteSelectionAction();\n\n // Processing menu :\n new RunAction();\n new ResampleImageAction();\n\n // Interop menu :\n // Send OIFits (SAMP) :\n new SendOIFitsAction();\n // Send Fits (SAMP) :\n new SendFitsAction();\n }",
"@Test\n public void testMenu() {\n MAIN_MENU[] menusDefined = MAIN_MENU.values();\n\n // get menu items\n List<String> menuList = rootPage.menu().items();\n _logger.debug(\"Menu items:{}\", menuList);\n // check the count\n Assert.assertEquals(menuList.size(), menusDefined.length, \"Number of menus test\");\n // check the names\n for (String item : menuList) {\n Assert.assertNotNull(MAIN_MENU.fromText(item), \"Checking menu: \" + item);\n }\n // check the navigation\n for (MAIN_MENU item : menusDefined) {\n _logger.debug(\"Testing menu:[{}]\", item.getText());\n rootPage.menu().select(item.getText());\n Assert.assertEquals(item.getText(), rootPage.menu().selected());\n }\n }",
"protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}",
"public void insertPluginMenu(java.awt.MenuItem mi);",
"public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }",
"void initAitalk() {\n\t\tAsr.JniBeginLexicon(\"menu\", false);\n \tfor(int i = 0; i < mAiStrings.length; i++){\n \t\tAsr.JniAddLexiconItem(mAiStrings[i], i);\n \t}\n \tAsr.JniEndLexicon();\n \tmMsgHandler.sendEmptyMessage(MSG_HANDLE_START_REG);\n }",
"public void getMenuItems(){ \n\t\tParseUser user = ParseUser.getCurrentUser();\n\t\tmenu = user.getParseObject(\"menu\");\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"Item\");\n\t\tquery.whereEqualTo(\"menu\", menu);\n\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\t\t\tpublic void done(List<ParseObject> menuItems, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tlistMenuItems(menuItems);\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void initMenu()\n {\n bar = new JMenuBar();\n fileMenu = new JMenu(\"File\");\n crawlerMenu = new JMenu(\"Crawler\"); \n aboutMenu = new JMenu(\"About\");\n \n bar.add(fileMenu);\n bar.add(crawlerMenu);\n bar.add(aboutMenu);\n \n exit = new JMenuItem(\"Exit\");\n preferences = new JMenuItem(\"Preferences\");\n author = new JMenuItem(\"Author\");\n startCrawlerItem = new JMenuItem(\"Start\");\n stopCrawlerItem = new JMenuItem(\"Stop\");\n newIndexItem = new JMenuItem(\"New index\");\n openIndexItem = new JMenuItem(\"Open index\");\n \n stopCrawlerItem.setEnabled(false);\n \n fileMenu.add(newIndexItem);\n fileMenu.add(openIndexItem);\n fileMenu.add(exit);\n aboutMenu.add(author);\n crawlerMenu.add(startCrawlerItem);\n crawlerMenu.add(stopCrawlerItem);\n crawlerMenu.add(preferences);\n \n author.addActionListener(this);\n preferences.addActionListener(this);\n exit.addActionListener(this);\n startCrawlerItem.addActionListener(this);\n stopCrawlerItem.addActionListener(this);\n newIndexItem.addActionListener(this);\n openIndexItem.addActionListener(this);\n \n frame.setJMenuBar(bar);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n getMenuInflater().inflate(R.menu.menu_register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_register, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_register, menu);\n return true;\n }",
"public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }",
"public void refreshMenu() {\n\t\tthis.Menu.setSize(this.Menu.getWidth(), this.Items.size() * (this.textSize + 4) + 4);\r\n\t\tthis.Menu.Camera.setPosition(0, 0);\r\n\t\tthis.anchorX();\r\n\t\tthis.anchorY();\r\n\t\t//println(\"----------\");\r\n\t\tthis.Menu.reposition((int) menuAnchor.x, (int) menuAnchor.y);\r\n\r\n\t\tfor (uTextButton t : this.Items) {\r\n\t\t\tt.setPosition(t.getX(), (this.Items.indexOf(t) * t.getHeight()));\r\n\t\t}\r\n\r\n\t}",
"private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}",
"protected void fillMenu(MenuBar menuBar) {\n\t\tMenu fileMenu = new Menu(\"Файл\");\n\t\n\t\tMenuItem loginMenuItem = new MenuItem(\"Сменить пользователя\");\n\t\tloginMenuItem.setOnAction(actionEvent -> main.logout());\n\t\n\t\tMenuItem exitMenuItem = new MenuItem(\"Выход (выключить планшет)\");\n\t\texitMenuItem.setOnAction(actionEvent -> main.requestShutdown());\n\t\texitMenuItem.setAccelerator(KeyCombination.keyCombination(\"Alt+F4\"));\n\t\n\t\n\t\tfileMenu.getItems().addAll( loginMenuItem,\n\t\t\t\tnew SeparatorMenuItem(), exitMenuItem);\n\t\n\t\n\t\n\t\tMenu navMenu = new Menu(\"Навигация\");\n\t\n\t\tMenuItem navHomeMap = new MenuItem(\"На общую карту\");\n\t\t//navHomeMap.setOnAction(actionEvent -> setMapData(bigMapData));\n\t\tnavHomeMap.setOnAction(actionEvent -> setMapData(main.ml.getRootMap()));\n\t\n\t\tMenu navMaps = new Menu(\"Карты\");\n\t\t//navMaps.setOnAction(actionEvent -> setMapData(bigMapData));\n\t\tmain.ml.fillMapsMenu( navMaps, this );\n\t\n\t\tMenuItem navOverview = new MenuItem(\"Обзор\");\n\t\tnavOverview.setOnAction(actionEvent -> setOverviewScale());\n\t\n\t\tnavMenu.getItems().addAll( navHomeMap, navMaps, new SeparatorMenuItem(), navOverview );\n\t\n\t\t\n\t\t\n\t\tMenu dataMenu = new Menu(\"Данные\");\n\t\n\t\tServerUnitType.forEach(t -> {\n\t\t\tMenuItem dataItem = new MenuItem(t.getDisplayName());\n\t\t\tdataItem.setOnAction(actionEvent -> new EntityListWindow(t, main.rc, main.sc));\n\t\n\t\t\tdataMenu.getItems().add(dataItem);\t\t\t\n\t\t});\n\t\t\n\t\t//dataMenu.Menu debugMenu = new Menu(\"Debug\");\n\t\t//MenuItem d1 = new MenuItem(\"На общую карту\");\n\t\t//d1.setOnAction(actionEvent -> setMapData(main.ml.getRootMap()));\n\t\n\t\t\n\t\t/*\n\t Menu webMenu = new Menu(\"Web\");\n\t CheckMenuItem htmlMenuItem = new CheckMenuItem(\"HTML\");\n\t htmlMenuItem.setSelected(true);\n\t webMenu.getItems().add(htmlMenuItem);\n\t\n\t CheckMenuItem cssMenuItem = new CheckMenuItem(\"CSS\");\n\t cssMenuItem.setSelected(true);\n\t webMenu.getItems().add(cssMenuItem);\n\t\n\t Menu sqlMenu = new Menu(\"SQL\");\n\t ToggleGroup tGroup = new ToggleGroup();\n\t RadioMenuItem mysqlItem = new RadioMenuItem(\"MySQL\");\n\t mysqlItem.setToggleGroup(tGroup);\n\t\n\t RadioMenuItem oracleItem = new RadioMenuItem(\"Oracle\");\n\t oracleItem.setToggleGroup(tGroup);\n\t oracleItem.setSelected(true);\n\t\n\t sqlMenu.getItems().addAll(mysqlItem, oracleItem,\n\t new SeparatorMenuItem());\n\t\n\t Menu tutorialManeu = new Menu(\"Tutorial\");\n\t tutorialManeu.getItems().addAll(\n\t new CheckMenuItem(\"Java\"),\n\t new CheckMenuItem(\"JavaFX\"),\n\t new CheckMenuItem(\"Swing\"));\n\t\n\t sqlMenu.getItems().add(tutorialManeu);\n\t\t */\n\t\n\t\tMenu aboutMenu = new Menu(\"О системе\");\n\t\n\t\tMenuItem version = new MenuItem(\"Версия\");\n\t\tversion.setOnAction(actionEvent -> showAbout());\n\t\n\t\tMenuItem aboutDz = new MenuItem(\"Digital Zone\");\n\t\taboutDz.setOnAction(actionEvent -> main.getHostServices().showDocument(Defs.HOME_URL));\n\t\n\t\tMenuItem aboutVita = new MenuItem(\"VitaSoft\");\n\t\taboutVita.setOnAction(actionEvent -> main.getHostServices().showDocument(\"vtsft.ru\"));\n\t\n\t\taboutMenu.getItems().addAll( version, new SeparatorMenuItem(), aboutDz, aboutVita );\n\t\n\t\t// --------------- Menu bar\n\t\n\t\t//menuBar.getMenus().addAll(fileMenu, webMenu, sqlMenu);\n\t\tmenuBar.getMenus().addAll(fileMenu, navMenu, dataMenu, aboutMenu );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.out_register, menu);\r\n\t\treturn true;\r\n\t}",
"public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance().getGUILog().showMessage(\"Show a popup the proper\n\t\t// way !\");\n\n\t\t// final ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\n\t\t// final MDAction action = new ExampleAction();\n\t\t// Adding action to main menu\n\t\t// manager.addMainMenuConfigurator(new MainMenuConfigurator(action));\n\t\t// Adding action to main toolbar\n\t\t// manager.addMainToolbarConfigurator(new MainToolbarConfigurator(action));\n\n\t\t// pluginDir = getDescriptor().getPluginDirectory().getPath();\n\n\t\t// Creating submenu in the MagicDraw main menu\n\t\t// ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\t\t// manager.addMainMenuConfigurator(new\n\t\t// MainMenuConfigurator(getSubmenuActions()));\n\n\t\t/**\n\t\t * @Todo: load project options (@see myplugin.generator.options.ProjectOptions)\n\t\t * from ProjectOptions.xml and take ejb generator options\n\t\t */\n\n\t\t// for test purpose only:\n\t\t// GeneratorOptions ejbOptions = new GeneratorOptions(\"c:/temp\", \"ejbclass\",\n\t\t// \"templates\", \"{0}.java\", true, \"ejb\");\n\t\t// ProjectOptions.getProjectOptions().getGeneratorOptions().put(\"EJBGenerator\",\n\t\t// ejbOptions);\n\n\t\t// ejbOptions.setTemplateDir(pluginDir + File.separator +\n\t\t// ejbOptions.getTemplateDir()); //apsolutna putanja\n\t}",
"public static void setUpMenuItems( JMenu Menuu , JDataTree tree , \n IObserver IOBs ){\n \n int nSavedFiles = SharedData.getintProperty( \"NSavedFiles\",\"\"+NSavedFiles);\n if(nSavedFiles <=0)\n return;\n Preferences pref = null;\n try{\n pref = Preferences.userNodeForPackage( \n Class.forName( \"DataSetTools.retriever.Retriever\" ) );\n }catch( Exception s1 ){\n JOptionPane.showMessageDialog( null , \n \"No Preferences \" + s1 );\n return;\n }\n \n \n \n boolean shortMange = SharedData.getbooleanProperty(\"ShortSavedFileName\",\"false\");\n if( nSavedFiles > 0)\n Menuu.addSeparator();\n \n for( int i = 0 ; i < nSavedFiles ; i++ ){\n\n String filname = pref.get( \"File\" + i , NO_SUCH_FILE );\n \n if( (filname != NO_SUCH_FILE) &&( (new File(filname)).exists()) ){\n\n JMenuItem jmi = new JMenuItem( Mangle( filname,shortMange ) );\n Menuu.add( jmi );\n MyActionListener actList =new MyActionListener( tree , filname , \n IOBs ) ;\n jmi.addActionListener(actList );\n }\n }\n \n }",
"private void initRootMenuCustomers() {\n\t\tthis.menuBar = new MenuBar();\n\n\t\t// create entries for the menu bar\n\t\tMenu menuFile = new Menu(\"Datei\");\n\t\tMenu menuEdit = new Menu(\"Bearbeiten\");\n\t\tMenu menuCreate = new Menu(\"Erstellen\");\n\t\tMenu menuHelp = new Menu(\"Hilfe\");\n\n\t\t// create entries for menuFile\n\t\t// TODO: setOnAction handling\n\t\tMenuItem save = new MenuItem(\"Kundendatei in Datei speichern\");\n\t\tMenuItem saveas = new MenuItem(\"Kundendatei Speichern unter...\");\n\t\tMenuItem load = new MenuItem(\"Kundendatei Laden...\");\n\t\tMenuItem exit = new MenuItem(\"Beenden\");\n\t\texit.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmenuFile.getItems().addAll(save, saveas, load, new SeparatorMenuItem(), exit);\n\n\t\t// TODO: setOnAction handling\n\t\tMenuItem newCustomer = new MenuItem(\"Neuen Kunden anlegen\");\n\t\tnewCustomer.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tshowNewCustomerView(false, null);\n\t\t\t}\n\t\t});\n\n\t\t// TODO: Implement this\n\t\tMenuItem edit = new MenuItem(\"Kundendaten bearbeiten\");\n\t\tedit.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t){\n\t\t\t\tif (overviewCtrl.getActCustomer() != null){\n\t\t\t\t\tshowNewCustomerView(true, overviewCtrl.getActCustomer());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tMenuItem delete = new MenuItem(\"Kundendaten löschen\");\n\t\tdelete.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tif (overviewCtrl.getActCustomer() != null) {\n\t\t\t\t\tdeleteCustomer(overviewCtrl.getActCustomer());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tmenuEdit.getItems().addAll(newCustomer, edit, delete);\n\n\t\t// create entries for menuCreate\n\t\t// TODO: setOnAction handling\n\t\tMenuItem invoice = new MenuItem(\"Rechnung\");\n\t\tinvoice.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tif (GUIMain.this.overviewCtrl.getActCustomer() == null) {\n\t\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\t\talert.setTitle(\"Fehler\");\n\t\t\t\t\talert.setHeaderText(\"Kein Kunde gewählt\");\n\t\t\t\t\talert.setContentText(\"Bitte wählen sie vor dem Erstellen einer Rechnung einen Kunden aus, \"\n\t\t\t\t\t\t\t+ \"an welchen die Rechnung gestellt werden soll.\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t} else {\n\t\t\t\t\tshowNewInvoiceView();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// TODO: Implement this\n\t\tMenuItem offer = new MenuItem(\"Angebot\");\n\n\t\t// TODO: Implement this\n\t\tMenuItem reminder = new MenuItem(\"Zahlungserinnerung\");\n\n\t\tmenuCreate.getItems().addAll(invoice, offer, reminder);\n\n\t\t// create entries for menuHelp\n\t\t// TODO: setOnAction handling\n\t\tMenuItem help = new MenuItem(\"Hilfe\");\n\t\tMenuItem about = new MenuItem(\"Über\");\n\t\tmenuHelp.getItems().addAll(help, about);\n\n\t\tmenuBar.getMenus().addAll(menuFile, menuEdit, menuCreate, menuHelp);\n\n\t\tthis.root.setTop(menuBar);\n\t}"
] | [
"0.7233226",
"0.6816049",
"0.64931786",
"0.62875503",
"0.62498415",
"0.62137425",
"0.61147714",
"0.6095786",
"0.6094562",
"0.60895425",
"0.6083763",
"0.6075153",
"0.60549796",
"0.60358596",
"0.6029716",
"0.60162914",
"0.5967459",
"0.5965404",
"0.59482676",
"0.59424114",
"0.5937072",
"0.59259975",
"0.59139735",
"0.58905226",
"0.58768725",
"0.5867398",
"0.5861823",
"0.5860493",
"0.58273894",
"0.581301",
"0.5808698",
"0.57919943",
"0.57901955",
"0.5753188",
"0.5747134",
"0.5739254",
"0.57289577",
"0.5695236",
"0.56821775",
"0.5679644",
"0.5676659",
"0.5663261",
"0.56557316",
"0.564451",
"0.5628302",
"0.56256616",
"0.5623343",
"0.5622014",
"0.5621264",
"0.56203735",
"0.5614021",
"0.55923706",
"0.55829376",
"0.55808246",
"0.557043",
"0.5568703",
"0.5567222",
"0.55641997",
"0.55533963",
"0.5552921",
"0.55494595",
"0.5549235",
"0.5545338",
"0.55443436",
"0.5540708",
"0.55364996",
"0.553543",
"0.55342466",
"0.55342466",
"0.55342466",
"0.55323577",
"0.5520269",
"0.5518305",
"0.55139345",
"0.5506002",
"0.549406",
"0.54802084",
"0.547646",
"0.54764396",
"0.5461238",
"0.5455407",
"0.5453085",
"0.5448233",
"0.5448233",
"0.5438248",
"0.54381895",
"0.54381895",
"0.54381895",
"0.54381895",
"0.54381895",
"0.54381895",
"0.54381895",
"0.5437169",
"0.5421042",
"0.5420648",
"0.54193234",
"0.54163086",
"0.54156965",
"0.54073995",
"0.54056746"
] | 0.63891095 | 3 |
Count number of Auto answer menu items. | public static int getAutoAnswerItemCount(SIPCommMenu menu)
{
int count = 0;
for(int i = 0; i < menu.getItemCount(); i++)
{
if(menu.getItem(i) instanceof AutoAnswerMenuItem)
count++;
}
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumOfMenuItems(){\n return numOfMenuItems;\n }",
"public void numberOfChoices() {\n\t\tcommon.waitForElement(mcqChoices, 60);\n\t\tchoicesinMCQ = mcqChoices.getText();\n\t\tarr = choicesinMCQ.split(\"\\\\W+\");\n\t\tnumberOfChoicesinMCQ = arr[3];\n\t\tlastOption = numberOfChoicesinMCQ.charAt(0);\n\t\tint a = 1;\n\t\tfor (char x = firstOption; x < lastOption; x++) {\n\t\t\tfirstOption += 1;\n\t\t\ta += 1;\n\t\t}\n\t\tfor (choice = 0; choice < a; choice++) {\n\t\t\tcommon.waitForElement(mcqChoices, 60);\n\t\t\tanswerChoice.get(choice).click();\n\t\t}\n\t\tchoice = 0;\n\t\ta = 1;\n\t\tfirstOption = 'A';\n\t}",
"public void count() \r\n\t{\r\n\t\tcountItemsLabel.setText(String.valueOf(listView.getSelectionModel().getSelectedItems().size()));\r\n\t}",
"int getOptionsCount();",
"int getOptionsCount();",
"int getOptionsCount();",
"int countByExample(MenuInfoExample example);",
"int getItemsCount();",
"int getItemsCount();",
"int getNumItems();",
"int getNewlyAvailableQuestsCount();",
"int getActionsCount();",
"int getActionsCount();",
"public int size() {\n return menuItems.size();\n }",
"int getQuestCount();",
"public Integer getAnswerCount() {\n return answerCount;\n }",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}",
"int getNumberOfAllQuestions();",
"public int getCount() {\n return app.getItems().length;\n }",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn App.getInstance().getSettlements().size();\n\t\t}",
"int getNumberOfQuestions();",
"private void countSelections(){\n\t\tfor(Student student: students){\n\t\t\tArrayList<Character> studentAnswers = student.getAnswers();\n\t\t\tSystem.out.print(\"student: \"+student.toString() + \"\\n\");\n\t\t\tfor(Character answer: studentAnswers){\n\t\t\t\tint timesSelected = selections.get(q.getPossibleAnswers().indexOf(answer));\n\t\t\t\tselections.set(q.getPossibleAnswers().indexOf(answer), timesSelected+1);\n\t\t\t}\n\t\t}\n\t}",
"public int getCount() {\n return questionList.size();\n }",
"int getCommandCount();",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public int getAutoEventCount()\n {\n return _autoEventList.size();\n }",
"int getAchieveInfoCount();",
"@Override\n public int getItemCount() {\n if (menu != null)\n return menu.size();\n else return 0;\n }",
"int getAchievementsCount();",
"default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }",
"public int showMenu() {\n\t\tSystem.out.print(\"\\n--- 학생 관리 프로그램 ---\\n\");\n\t\tSystem.out.println(\"1. 학생 정보 등록\");\n\t\tSystem.out.println(\"2. 전체 학생 정보\");\n\t\tSystem.out.println(\"3. 학생 정보 출력(1명)\");\n\t\tSystem.out.println(\"4. 학생 정보 수정\");\n\t\tSystem.out.println(\"5. 학생 정보 삭제\");\n\t\tSystem.out.print(\"선택 > \");\n\t\tint itemp = sc.nextInt();\n\t\treturn itemp;\n\t}",
"Integer getNumQuestions();",
"int getItemCount();",
"int getItemCount();",
"int getItemCount();",
"public static int getCount(){\n\t\treturn countFor;\n\t}",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn answers.size();\n\t\t}",
"int countByExample(PensionRoleMenuExample example);",
"private int getSelectedCount() {\r\n\t int count = 0;\r\n\t for (int i = 0; i < _selectedList.size(); ++i) {\r\n\t count += _selectedList.get(i) ? 1 : 0;\r\n\t }\r\n\t return count;\r\n\t}",
"public int getItemCount() {\n checkWidget();\n return OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n }",
"@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}",
"public static int getCount() {\n\t\treturn count;\n\t}",
"int getPickupsCount();",
"public int getNumQuestions() {\n\t\treturn noOfQuestions;\n\t}",
"public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }",
"public Integer getInterestedInItemsCount();",
"public int numberOfQuestions() {\n\t\treturn getQuestions().size();\n\t}",
"@Override\n public int getItemCount() {\n return answers.size();\n }",
"@Override\n\tpublic int countIndex() {\n\t\treturn logoMapper.selectCountLogo()+headbannerMapper.selecCountHB()+succefulMapper.selecCountSucc()+solutionMapper.selecCountSolu();\n\t}",
"int getNumKeys();",
"int getAoisCount();",
"long getRecipesCount();",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"int getQueryItemsCount();",
"int getContentsCount();",
"public void setNumOfMenuItems(int _numOfMenuItems){\n numOfMenuItems = _numOfMenuItems;\n }",
"private void countAnswers(){\n\t\tfor(Student student: students){\n\t\t\tif(isCorrectAnswer(student.getAnswers())){\n\t\t\t\tcorrectAnswers+=1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twrongAnswers+=1;\n\t\t\t}\n\t\t}\n\t}",
"int getPurchasableOffersCount();",
"@Override\n\tpublic Integer findCount(Tmenu t) throws Exception {\n\t\treturn menuMapper.findCount(t);\n\t}",
"public int getItemsCount() {\n return items_.size();\n }",
"public int getItemsCount() {\n return items_.size();\n }",
"public int getItemsCount() {\n if (itemsBuilder_ == null) {\n return items_.size();\n } else {\n return itemsBuilder_.getCount();\n }\n }",
"@SuppressWarnings(\"MissingOverride\")\n default int getSelectedItemsCount() {\n int iMin = getMinSelectionIndex();\n int iMax = getMaxSelectionIndex();\n int count = 0;\n\n for (int i = iMin; i <= iMax; i++) {\n if (isSelectedIndex(i)) {\n count++;\n }\n }\n return count;\n }",
"public int numberOfQuestions() { \n\t\ttry {\n\t\t\treturn myQuestions.getNumberOfQuestions();\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn 0; \n\t\t} \n\t}",
"@Override\n\tpublic int countExam() {\n\t\treturn 0;\n\t}",
"@Test\n @Then(\"Count items displayed\")\n public void s12_CountItems(){\n try {\n WebElement pageloaded = (new WebDriverWait(driver, 5)).until(ExpectedConditions.elementToBeClickable(By.cssSelector((\"button[name='Показать ещё']\"))));\n }\n catch (Exception e){\n }\n List<WebElement> totalLinks = driver.findElementsByLinkText(\"Отложить\");\n int totalLinkSize = totalLinks.size();\n System.out.println(\"Step12 PASSED, Total items displayed: \" + totalLinkSize);\n }",
"public int size()\r\n {\r\n return nItems;\r\n }",
"int getAcksCount();",
"int getAcksCount();",
"public int getQuestionCount() {\r\n\t\treturn this.question.size();\r\n\t}",
"public int size() {\n return nItems;\n }",
"public int getAdvisorCount();",
"int getListCount();",
"@Override\n\t\tpublic int getCount() {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn questions.size();\n\t\t}",
"public static int getCount() {\n return count;\n }",
"@Override\r\n\tpublic int getMenCount() {\n\t\treturn 5;\r\n\t}",
"public int getCount() {\n \t\tint total = 0;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getCount() + 1;\n \t\treturn total;\n \t}",
"public int getItemsCount() {\n return items_.size();\n }",
"public int getCount() {\r\n\t\treturn count;\r\n\t}",
"public int getCount() {\r\n\t\treturn count;\r\n\t}",
"int getIdsCount();",
"int getNoticeListCount();",
"public int getCount () {\n return numsBaby;\n }",
"public int size() {\n return numItems;\n }",
"public static int getCount() {\n return count;\n }",
"public static int getCount() {\n return count;\n }",
"public static int getCount() {\n return count;\n }",
"public int getCount() {\n return count_;\n }",
"@Override\n\tpublic int getCsclPollsChoicesCount() {\n\t\treturn csclPollsChoicePersistence.countAll();\n\t}",
"@Override\n\t\t\tpublic int getCount(){\n\t\t\t\treturn menus.size();\n\t\t\t}",
"public int getItemCount();",
"@Override\n\tpublic int getCount() {\n\t\t return menuItems.size();\n\t}",
"public int getItemCount() {\n if (itemBuilder_ == null) {\n return item_.size();\n } else {\n return itemBuilder_.getCount();\n }\n }",
"public int size(){\n return numItems;\n }",
"public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}",
"@Override\n public int getRowCount() {\n if (menuItems.size() > 0) {\n return menuItems.size() + 2;\n } else {\n return menuItems.size();\n }\n }",
"public int getNewlyAvailableQuestsCount() {\n if (newlyAvailableQuestsBuilder_ == null) {\n return newlyAvailableQuests_.size();\n } else {\n return newlyAvailableQuestsBuilder_.getCount();\n }\n }",
"public int getQuestCount() {\n if (questBuilder_ == null) {\n return quest_.size();\n } else {\n return questBuilder_.getCount();\n }\n }"
] | [
"0.71848017",
"0.69195026",
"0.67689866",
"0.6759577",
"0.6759577",
"0.6759577",
"0.6751791",
"0.67471415",
"0.67471415",
"0.6678787",
"0.66531813",
"0.65955603",
"0.65955603",
"0.65892154",
"0.65218717",
"0.64898235",
"0.64690423",
"0.6403483",
"0.63663226",
"0.6364526",
"0.63521",
"0.63418293",
"0.62998074",
"0.628499",
"0.6249415",
"0.6249415",
"0.6249415",
"0.6241493",
"0.6230734",
"0.62257373",
"0.6223453",
"0.6212684",
"0.6198871",
"0.61872905",
"0.61853",
"0.61853",
"0.61853",
"0.6180717",
"0.6160464",
"0.6144751",
"0.613827",
"0.6137754",
"0.6132298",
"0.6110474",
"0.61016566",
"0.6099635",
"0.6086663",
"0.60848695",
"0.6083385",
"0.60642403",
"0.6062719",
"0.60610175",
"0.6061008",
"0.6060545",
"0.60521525",
"0.60507536",
"0.6035601",
"0.6022824",
"0.60182595",
"0.6018079",
"0.60116225",
"0.6006593",
"0.6006593",
"0.6004659",
"0.6004413",
"0.60014296",
"0.6000141",
"0.59995025",
"0.5995765",
"0.59863865",
"0.59863865",
"0.5980253",
"0.5970336",
"0.5970241",
"0.59677655",
"0.596605",
"0.59584796",
"0.5951446",
"0.59328055",
"0.5921338",
"0.59189516",
"0.59189516",
"0.5912846",
"0.590984",
"0.5897936",
"0.5890977",
"0.5890308",
"0.5890308",
"0.5890308",
"0.5889862",
"0.5886979",
"0.5884345",
"0.58828497",
"0.58734995",
"0.58608085",
"0.58563733",
"0.5851839",
"0.5847946",
"0.5847587",
"0.5840588"
] | 0.8080705 | 0 |
Return auto answer menu item at index. | public static AutoAnswerMenuItem getAutoAnswerItem(SIPCommMenu menu,
int index)
{
int currentIx = 0;
for(int i = 0; i < menu.getItemCount(); i++)
{
if(menu.getItem(i) instanceof AutoAnswerMenuItem)
{
if(currentIx == index)
return (AutoAnswerMenuItem)menu.getItem(i);
currentIx++;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAnswer(int index){\n return answerList.get(index);\n }",
"public String getQuestion(int index){\n return questionList.get(index);\n }",
"int getItem(int index);",
"private HelpTopic getItem(int index) {\n return index < 0 ? null : history.get(index);\n }",
"public String getChoice(int index, int num) {\n String choice0 = prespanishera_multiplechoice[index][num-1];\n return choice0;\n }",
"public ActionReply itemAt(int i){\n return (ActionReply) replies.elementAt(i);\n }",
"void onExamAnswerClick(int index);",
"java.lang.String getCommand(int index);",
"@Override\n\tpublic Menu getItem(int arg0) {\n\t\treturn arrayList.get(arg0);\n\t}",
"public String getSelectedAnswer() {\n\t\tList<Integer> selected = getSelectedIndexes();\n\t\treturn this.value.get(selected.get(0));\n\t}",
"public static int getMenuChoice() {\n String line;\n int option = -1;\n\n System.out.print(\">\");\n if (Menus.reader.hasNext()) {\n line = Menus.reader.nextLine().strip();\n\n try {\n option = Integer.parseInt(line);\n } catch (NumberFormatException e) {\n option = -1;\n }\n }\n\n return option;\n }",
"public DictionaryCommand get(int index) throws IndexOutOfBoundsException;",
"com.rpg.framework.database.Protocol.Quest getQuest(int index);",
"@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn questions.get(arg0);\n\t\t}",
"@Nullable String pickItem();",
"public int getAnsweredQuestions(int index){\n\t\treturn _answeredQuestions[index];\n\n\t}",
"public Action getAction(int index) { return actions.get(index); }",
"public MenuItem findItem(int id);",
"public String itemAt(int index) {\n int counter = 1;\n LinkedList i = this;\n\n while (i.next != null && counter < index) {\n i = i.next;\n counter++;\n }\n return i.name;\n }",
"public com.rpg.framework.database.Protocol.Quest getQuest(int index) {\n return quest_.get(index);\n }",
"public String getChoice1(int a){\n String choice0 = choices[a][0];\n return choice0;\n }",
"protected Option getOption(int index){\n\t\treturn options.get(index);\n\t}",
"public void setAnswer(int index, String answer){\n answerList.set(index, answer);\n }",
"public com.rpg.framework.database.Protocol.Quest getQuest(int index) {\n if (questBuilder_ == null) {\n return quest_.get(index);\n } else {\n return questBuilder_.getMessage(index);\n }\n }",
"private ActionMenuItem findItemWithShortcut(int keyCode, KeyEvent event) {\n final boolean qwerty = mIsQwerty;\n final ArrayList<ActionMenuItem> items = mItems;\n final int itemCount = items.size();\n\n for (int i = 0; i < itemCount; i++) {\n ActionMenuItem item = items.get(i);\n final char shortcut = qwerty ? item.getAlphabeticShortcut() :\n item.getNumericShortcut();\n if (keyCode == shortcut) {\n return item;\n }\n }\n return null;\n }",
"public String getQuestion(int a) {\n String question = textQuestions[a];\n return question;\n }",
"@Click(R.id.bt_answer1)\n void clickAnswer1() {\n selectedAnswer = questionList.get(questionProgress - 1).getAnswers().get(0);\n showResult();\n }",
"private static int HQmenu() {\n\t\tlogger.info(\"Entering HQmenu method -->\");\n\t\tint choice = 0;\n\t\tboolean ok;\n\t\tdo {\n\t\t\tok = true;\n\t\t\tSystem.out.println(\"Money Service HQ\");\n\t\t\tSystem.out.println(\"----------------\");\n\t\t\tSystem.out.println(\"What would you like to do?\");\n\t\t\tSystem.out.println(\"1 - Register a new exchange office\");\n\t\t\tSystem.out.println(\"2 - Get statistics for registered offices\");\n\t\t\tSystem.out.println(\"0 - Exit the HQ application\");\n\n\t\t\tSystem.out.print(\"Enter your choice: \");\n\t\t\tString userChoice = CLIHelper.input.next();\n\n\t\t\ttry {\n\t\t\t\tchoice = Integer.parseInt(userChoice);\n\t\t\t}catch(NumberFormatException e) {\n\t\t\t\tlogger.log(Level.WARNING, \"choice: \" + choice + \" made exception! \" + e);\n\t\t\t\tSystem.out.format(\"Your choice %s is not accepted!\\n\", userChoice);\n\t\t\t\tok = false;\n\t\t\t}\n\t\t}while(!ok);\n\n\t\tlogger.info(\"Exiting HQmenu method <--\");\n\t\treturn choice;\n\t}",
"public int getSelectedAnswer(int questionNumber) {\n return selectedAnswers[questionNumber-1];\n }",
"public void userFlightChoice(int index);",
"public String clickLink(int _index) {\n String item_ = getItems().get(_index).getName();\n return tryRedirectIt(item_);\n// getForms().put(CST_ITEM, item_);\n// Item it_ = data_.getItem(item_);\n// return switchItem(it_);\n }",
"public int showMenu() {\n\t\tSystem.out.print(\"\\n--- 학생 관리 프로그램 ---\\n\");\n\t\tSystem.out.println(\"1. 학생 정보 등록\");\n\t\tSystem.out.println(\"2. 전체 학생 정보\");\n\t\tSystem.out.println(\"3. 학생 정보 출력(1명)\");\n\t\tSystem.out.println(\"4. 학생 정보 수정\");\n\t\tSystem.out.println(\"5. 학생 정보 삭제\");\n\t\tSystem.out.print(\"선택 > \");\n\t\tint itemp = sc.nextInt();\n\t\treturn itemp;\n\t}",
"public SurveyQuestion getQuestion (int idx)\n {\n if (idx >= 0 && idx < questions.size()) {\n return questions.get(idx);\n }\n return null;\n }",
"@Override\n public String ask(String question) {\n return answers[position++];\n }",
"public static int getMenu() {\n\t\tSystem.out.println(\"Choose Options from menu:\");\n\t\tint option = scanner.nextInt();\n\n\t\treturn option;\n\t}",
"@Override\n public long getItemId(int index) {\n return index;\n }",
"public int getItem(int index) {\n return item_.getInt(index);\n }",
"UmsMenu getItem(Long id);",
"ReadOnlyMenuManager getMenuManager(int index);",
"public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }",
"public HelpTopic getCurrentItem() {\n return position < 0 ? null : getItem(position);\n }",
"public E get(int index) {\r\n return items.get(index);\r\n }",
"public String get(int index){\n\t\treturn list.get(index);\n\t}",
"@Override\n public Object getItem(int arg0) {\n return title[arg0];\n }",
"public abstract int getMenu();",
"public int getItem(int index) {\n return item_.getInt(index);\n }",
"public Answer randomAnswer()\n\t{\n\t\tRandom random = new Random();\n\t\tint num = random.nextInt(answers.length);\n\t\treturn answers[num];\n\t}",
"public Text getByIndex(int index){\r\n\t\tif (index >=0 && index < thisDialog.size()){\r\n\t\t\treturn thisDialog.get(index);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public int displayMenuAndGetUserSelection(){\n view.promptInt(\"1. Create a Character\");\n view.promptInt(\"2. Update a Character\");\n view.promptInt(\"3. Display all Characters\");\n view.promptInt(\"4. Search for a Character\");\n view.promptInt(\"5. Delete a Character\");\n view.promptInt(\"6. Exit\");\n return view.promptInt(\"Select from one of the above choices\");\n }",
"@Override\n\tpublic Advertisement selectAdvertisement(Integer index) {\n\t\treturn adman.getAd(index);\n\t}",
"public Item getItem(int itemIndex){\n\t\treturn inventoryItems[itemIndex];\n\t}",
"public GradedItem get(int index) {\n\t\treturn this.gradedItems.get(index);\n\t}",
"public int getProductIndex(String choice) {\n\t\tString name = \"\";\n\t\tint x = 0;\n\t\tif(products.size() > 0) {\n\t\t\twhile(x < alphabet.length()) {\n\t\t\t\tif(choice.equals(alphabet.substring(x,x+1))) {\n\t\t\t\t\tname = products.get(x).name;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx++;\t\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}",
"public Item get(int index) {\n int track = nextFirst; //It does not modify nextFirst\n track = moveForward(track, index + 1);\n return items[track];\n }",
"public QuestionModel getNextQuestion() {\n\t\tindex++;\n\t\treturn questionList.get(index % questionList.size());\n\t}",
"public Tip getItem(int arg0) {\n return mList.get(arg0);\n }",
"public BPTreeNodeItem getItem(int index);",
"protected void setChoice(int index) {\n\t\tchoiceOption = getOption(index);\n\t}",
"public Object get(int index)\n {\n return items[index];\n }",
"public String getCorrectAnswer(int a){\n String answer = correctAnswers[a];\n return answer;\n }",
"public Object get(int index) {\n Node answer = first;\n for (int i = 0; i < index; i++) {\n answer = answer.next;\n }\n return answer.data;\n }",
"private int getMenuSelection() {\n return view.printMenuAndGetSelection();\n }",
"Item getItem(int index) {\r\n return new Item(this, index);\r\n }",
"int index();",
"public int index();",
"public String get(int index){\n return words.get(index);\n }",
"public T getByIndex(int index) {\n\n return this.myList[index];\n }",
"public String getAnswerByNumber(int n) {\n return this.answers.get(n);\n }",
"public int getCurrentChoice() {\n return currentChoice;\n }",
"public void selectWeaponFromInventory(int weaponIndex) {\n }",
"public int getSelectedIndex() {\r\n\t\t\treturn idx;\r\n\t\t}",
"public String getChoice2(int a){\n String choice1 = choices[a][1];\n return choice1;\n }",
"public Item get(int index) {\r\n\t\treturn catalog.get(index);\r\n\t}",
"Object opt(int index) {\n return (index < 0 || index >= this.length()) ? null : this.myArrayList.get(index);\n }",
"public T returnItem(int i) {\n return a[i];\n }",
"public native MenuItem getSelectedItem();",
"@Override\n public Object get(int index) {\n switch (index) {\n case 0:\n return this.options;\n\n default:\n throw new IndexOutOfBoundsException(\"Invalid index specified.\");\n }\n }",
"public Object getItem(int position) {\n return mChoiceItems[position];\n }",
"public Item get(int index) {\n StuffNode ptr = sentinel;\n int ind = 0;\n if ((index + 1 > this.size()) || this.isEmpty() ) {\n return null;\n }\n while (ind <= index) {\n ptr = ptr.next;\n ind += 1;\n }\n return ptr.item;\n }",
"int promptOption(IMenu menu);",
"public int getChoice() {\n\t\treturn choice;\n\t}",
"public native int getSelectedIndex();",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n if (menuItems.get(i).getMenuIndex() == 1){\n addBaby();\n }\n else {\n onBackPressed();\n }\n }",
"public String getWord(int index){\n\t\treturn (String)list.get(index);\n\t}",
"public Character getItem(int index) {\n return this.characterList.get(index);\n }",
"public String getQuestions(int a){\n String question = questions[a];\n return question;\n }",
"public Category chooseCategory(int index) {\n return categories.get(index-1);\n }",
"public String getNextAnswer() {\r\n\t\t// Condition for getting the exact possible answers for the current question.\r\n\t\tif (counterAns < possibleAnswers.size()) {\r\n\t\t\tnextAnswer = possibleAnswers.get(counterAns).getPossibleAnswer();\r\n\t\t\t// Incrementing the counter with one, so next time the method is called it will\r\n\t\t\t// get the exact answers for the following question.\r\n\t\t\tcounterAns++;\r\n\t\t}\r\n\t\treturn nextAnswer;\r\n\t}",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t\tLog.d(\"oOIS\", \"item=\"+item.getItemId());\r\n\t // Handle item selection\r\n\t switch (item.getItemId()) {\r\n\t // Load questions from one of the books\r\n\t \tcase R.id.book1:\r\n\t \t\tbookNbrIx = 1;\r\n\t \t\tnew ReadQuestions().execute(BookFNs[1]); // read the first book\r\n\t \t\tthisQues = 0; // reset\r\n\t \t\treturn true;\r\n\t \tcase R.id.book2:\r\n\t \t\tbookNbrIx = 2;\r\n\t \t\tnew ReadQuestions().execute(BookFNs[2]); // read the second book\r\n\t \t\tthisQues = 0; // reset\r\n\t \t\treturn true;\r\n\t \tcase R.id.book3:\r\n\t \t\tbookNbrIx = 3;\r\n\t \t\tnew ReadQuestions().execute(BookFNs[3]); // read the third book\r\n\t \t\tthisQues = 0;\r\n\t \t\treturn true;\r\n\t \t\t\r\n\t \tcase R.id.tofirstques:\r\n\t \t\tthisQues = 0;\r\n\t \t\tnextQuestion(0);\r\n\t \t\tshowQuesAndAnswers();\r\n\t \t\treturn true;\r\n\t \t\t\r\n\t \tcase R.id.gotoquestion:\r\n\t \tAlertDialog.Builder alert = new AlertDialog.Builder(this);\r\n\t \talert.setTitle(\"Go to question\");\r\n\t \talert.setMessage(\"Enter number of question to go to:\");\r\n\r\n\t \t// Set an EditText view to get user input \r\n\t \tfinal EditText input = new EditText(this);\r\n\t \tinput.setInputType(android.text.InputType.TYPE_CLASS_NUMBER); // numbers only\r\n\t \talert.setView(input);\r\n\r\n\t \talert.setPositiveButton(\"Go to question\", new DialogInterface.OnClickListener() {\r\n\t\t \tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n\t\t \t String fndStr = input.getText().toString();\r\n\t\t \t if(fndStr == null || fndStr.length() == 0)\r\n\t\t \t\t return;\t\t// exit if user quit\r\n\t\t \t // Position to the desired question\r\n//\t \t showMsg(\"go to question:\"+fndStr);\r\n\t \t for(int i=0; i < theQuestions.size(); i++) {\r\n\t \t if(theQuestions.get(i).quesNbr.equals(fndStr)) {\r\n\t \t thisQues = i; // set the global to this record\r\n\t \t nextQuestion(0);\r\n\t \t showQuesAndAnswers();\r\n\t \t return;\r\n\t \t }\r\n\t \t } // end for(i)\r\n\r\n\t \t showMsg(\"Question: \"+ fndStr + \" not found.\");\r\n\t \t }\r\n\t \t});\r\n\r\n\t \talert.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n\t \t public void onClick(DialogInterface dialog, int whichButton) {\r\n\t \t // Canceled.\r\n\t \t }\r\n\t \t});\r\n\r\n\t \talert.show();\r\n\r\n\t \t\treturn true;\r\n\t \t\t\r\n\t case R.id.randomize:\r\n\t \t// toggle setting\r\n\t \trandomizeDisplay = !item.isChecked();\r\n\t \tif(item.isChecked())\r\n\t \t\titem.setChecked(false);\r\n\t \telse\r\n\t \t\titem.setChecked(true);\r\n\t \treturn true;\r\n\t \t\r\n\t \t// Save book number and question number \r\n\t case R.id.save_position:\r\n//\t \tshowMsg(\"Saveing bkNbr=\"+bookNbrIx +\" and ques nbr=\"+thisQues);\r\n\t SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\r\n\t SharedPreferences.Editor editor = settings.edit();\r\n\t editor.putInt(BookNbr_B, bookNbrIx);\r\n\t editor.putInt(QuesNbr_B, thisQues);\r\n\r\n\t // Commit the edits!\r\n\t editor.commit();\r\n\t \treturn true;\r\n\t \t\r\n\t \t// Resume at saved book and question\r\n\t case R.id.resume:\r\n\t \tSharedPreferences settingsR = getSharedPreferences(PREFS_NAME, 0);\r\n\t int bookNbr = settingsR.getInt(BookNbr_B, 1);\r\n\t thisQues = settingsR.getInt(QuesNbr_B, 0);\r\n\t if(bookNbr != bookNbrIx) {\r\n\t \tbookNbrIx = bookNbr; // set new book and go read it\r\n\t \tnew ReadQuestions().execute(BookFNs[bookNbrIx]); // read the required book\t\r\n\t }\r\n\t showQuesAndAnswers();\r\n\t \treturn true;\r\n\t \t\r\n\t case R.id.about:\r\n\t showMsg(\"Norm's Coast Guard questions\\n\"\r\n\t \t\t+ Version\r\n\t \t\t+ \"email: radder@hotmail.com\");\r\n\t return true;\r\n\t \r\n\t case R.id.exit:\r\n\t \tfinish();\r\n\t \treturn true;\r\n\t \t\r\n\t default:\r\n\t return super.onOptionsItemSelected(item);\r\n\t } // end select()\r\n\t}",
"public static int menu()\n {\n \n int choix;\n System.out.println(\"MENU PRINCIPAL\");\n System.out.println(\"--------------\");\n System.out.println(\"1. Operation sur les membres\");\n System.out.println(\"2. Operation sur les taches\");\n System.out.println(\"3. Assignation de tache\");\n System.out.println(\"4. Rechercher les taches assigne a un membre\");\n System.out.println(\"5. Rechercher les taches en fonction de leur status\");\n System.out.println(\"6. Afficher la liste des taches assignees\");\n System.out.println(\"7. Sortir\");\n System.out.println(\"--------------\");\n System.out.print(\"votre choix : \");\n choix = Keyboard.getEntier();\n System.out.println();\n return choix;\n }",
"io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);",
"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 }",
"static int getIndexSelected() {\n return indexSelected;\n }",
"@Override\n\t\tpublic Object getItem(int index) {\n\t\t\treturn itemList.get(index);\n\t\t}",
"public String get(int index) {\n\n return solutionVector[index];\n }",
"int getIndex(){\r\n\t\treturn index;\r\n\t}",
"public int getItemIndex() {\n return this.itemIndex;\n }",
"public int get(int index);",
"public int getSelectedIndex() {\n return dialPosition;\n }",
"private String getSelectedString() {\n\t\treturn menuItem[selectedIndex];\r\n\t}"
] | [
"0.7102154",
"0.6458532",
"0.61829996",
"0.61470205",
"0.60854864",
"0.5982238",
"0.5958784",
"0.5935207",
"0.59075683",
"0.59059054",
"0.5852263",
"0.5843803",
"0.5823967",
"0.58121353",
"0.578826",
"0.5742569",
"0.5716899",
"0.5661296",
"0.5655474",
"0.56553197",
"0.56414074",
"0.5606649",
"0.55833924",
"0.5560212",
"0.55554354",
"0.5547046",
"0.55366963",
"0.5530719",
"0.55018663",
"0.5501787",
"0.5500258",
"0.5499395",
"0.5480001",
"0.5466615",
"0.5454101",
"0.5429877",
"0.542359",
"0.540066",
"0.5393765",
"0.53928447",
"0.5392486",
"0.5372705",
"0.5370706",
"0.5370627",
"0.53619915",
"0.5361459",
"0.53599447",
"0.53458464",
"0.5335909",
"0.5334934",
"0.53267974",
"0.53230715",
"0.5314027",
"0.5309781",
"0.53032964",
"0.5303101",
"0.52997744",
"0.528747",
"0.52793866",
"0.5277585",
"0.52775526",
"0.527547",
"0.5270507",
"0.5269814",
"0.5268801",
"0.52676606",
"0.5260946",
"0.52550536",
"0.5254457",
"0.5246903",
"0.524404",
"0.52408415",
"0.5240041",
"0.52390236",
"0.52386755",
"0.52367854",
"0.52348286",
"0.52342075",
"0.52318126",
"0.5230175",
"0.5225806",
"0.5225151",
"0.5222421",
"0.52084994",
"0.5208239",
"0.52071595",
"0.5206073",
"0.5205097",
"0.520256",
"0.51877046",
"0.5187209",
"0.5186767",
"0.5183728",
"0.51826215",
"0.5180394",
"0.5168993",
"0.5164638",
"0.51643014",
"0.51639694",
"0.51503927"
] | 0.7848439 | 0 |
Adds a menu item for the account given by protocolProvider. | private static void addAccount(
final ProtocolProviderService protocolProvider,
final SIPCommMenu parentMenu)
{
if(!SwingUtilities.isEventDispatchThread())
{
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
addAccount(protocolProvider, parentMenu);
}
});
return;
}
// the initial number of autoanswer menu items
int initialCount = getAutoAnswerItemCount(parentMenu);
addAccountInternal(protocolProvider, parentMenu);
// current count
int itemsCount = getAutoAnswerItemCount(parentMenu);
// if menu is disabled for autoanswer and we have added an item
if(ConfigurationUtils.isAutoAnswerDisableSubmenu()
&& itemsCount != initialCount)
{
// if initial count was 1, lets change provider name to the
// protocol one (the first one have like global name)
if(initialCount == 1)
{
for(int i = 0; i < parentMenu.getItemCount(); i++)
{
JMenuItem item = parentMenu.getItem(i);
if(item instanceof AutoAnswerMenuItem)
{
updateItem((AutoAnswerMenuItem)item, false);
}
}
}
else if(initialCount == 0)
{
// this is the first item set its name like global one
updateItem(getAutoAnswerItem(parentMenu, 0), true);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void addAccountInternal(\n ProtocolProviderService protocolProvider,\n SIPCommMenu parentMenu)\n {\n OperationSetBasicAutoAnswer opSet = protocolProvider\n .getOperationSet(OperationSetBasicAutoAnswer.class);\n\n if(opSet == null)\n {\n return;\n }\n\n if (protocolProvider.getAccountID().isHidden())\n return;\n\n AutoAnswerMenuItem providerMenu =\n new AutoAnswerMenuItem(protocolProvider, parentMenu);\n\n int lastAutoAnswerIx = 0;\n boolean isMenuAdded = false;\n AccountID accountId = protocolProvider.getAccountID();\n // If we already have other accounts.\n for(int i = 0; i < parentMenu.getItemCount(); i++)\n {\n JMenuItem c = parentMenu.getItem(i);\n if (!(c instanceof AutoAnswerMenuItem))\n continue;\n\n AutoAnswerMenuItem menu = (AutoAnswerMenuItem) c;\n int menuIndex = parentMenu.getPopupMenu().getComponentIndex(menu);\n\n lastAutoAnswerIx = menuIndex;\n\n AccountID menuAccountID = menu.getProtocolProvider().getAccountID();\n\n int protocolCompare = accountId.getProtocolDisplayName().compareTo(\n menuAccountID.getProtocolDisplayName());\n\n // If the new account protocol name is before the name of the menu\n // we insert the new account before the given menu.\n if (protocolCompare < 0)\n {\n parentMenu.insert(providerMenu, menuIndex);\n isMenuAdded = true;\n break;\n }\n else if (protocolCompare == 0)\n {\n // If we have the same protocol name, we check the account name.\n if (accountId.getDisplayName()\n .compareTo(menuAccountID.getDisplayName()) < 0)\n {\n parentMenu.insert(providerMenu, menuIndex);\n isMenuAdded = true;\n break;\n }\n }\n }\n\n if (!isMenuAdded)\n {\n // add it after last auto answer menu found\n if(lastAutoAnswerIx != 0)\n parentMenu.insert(providerMenu, lastAutoAnswerIx);\n else\n {\n // as no items\n // lets find the first separator and add it after it\n // the place is between the separators\n int lastMenuItemIx = 0;\n for(int i = 0; i < parentMenu.getMenuComponentCount(); i++)\n {\n if(parentMenu.getMenuComponent(i) instanceof JSeparator)\n {\n parentMenu.insert(providerMenu, lastMenuItemIx + 1);\n isMenuAdded = true;\n break;\n }\n else\n lastMenuItemIx++;\n }\n\n if(!isMenuAdded)\n parentMenu.add(providerMenu);\n }\n }\n }",
"MenuItem addItem(String title, Command callback);",
"public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivator.bundleContext\n .addServiceListener(protocolProviderListener);\n }\n\n for (ProtocolProviderFactory providerFactory : GuiActivator\n .getProtocolProviderFactories().values())\n {\n for (AccountID accountID : providerFactory.getRegisteredAccounts())\n {\n ServiceReference<ProtocolProviderService> serRef\n = providerFactory.getProviderForAccount(accountID);\n ProtocolProviderService protocolProvider\n = GuiActivator.bundleContext.getService(serRef);\n\n addAccountInternal(protocolProvider, parentMenu);\n }\n }\n\n // if we are in disabled menu mode and we have only one item\n // change its name (like global auto answer)\n if( ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }",
"public void add(String nameItem)\n\t{\n\t\tmenu.add(nameItem);\n\t}",
"public native void addSubItem(MenuItem item);",
"public void insertPluginMenu(java.awt.MenuItem mi);",
"AutoAnswerMenuItem(ProtocolProviderService provider,\n SIPCommMenu parentMenu)\n {\n this(provider,\n getItemDisplayName(provider),\n getIconForProvider(provider, null, parentMenu),\n parentMenu);\n }",
"protected abstract void addMenuOptions();",
"protected void addMenuOption(MenuOption option, Object param) {\n\t\tthis.layout.addItem(option, param);\n\t}",
"@Override\n public void addMenu(Items cartItemToBeAdded) {\n Items menuItem = cartItemToBeAdded.getItemOriginalReference();\n menuItem.setItemQuantity(menuItem.getItemQuantity() + 1);\n mCartAdapter.addToCart(cartItemToBeAdded);\n updateCartMenu();\n }",
"public MenuItem add(CharSequence title);",
"public void addExtraMenuItem(String name, boolean limitOne, ActionListener callback) {\n JMenuItem item=new JMenuItem(name);\n item.addActionListener(callback);\n //if (!extraAdded) this.add(new javax.swing.JSeparator());\n this.add(item); \n if (limitOne) limitedToOne.add(item);\n extraAdded=true;\n }",
"protected void addMenuOption(MenuOption option) {\n\t\tthis.layout.addItem(option);\n\t}",
"public void add(MenuItem item) {\n this.items.add(item);\n }",
"void changeMenuItemName(String itemName, byte type, String msgPlus);",
"public void addMenu(Menu menu) {\r\n\t\titems.add(menu);\r\n\t}",
"public void addItem(Menu subMenu, Class<?> appClass) {\n\t\tMenuItem item = new MenuItem(Messages.getMessages().getString(\"app_\"+appClass.getSimpleName()));\n\t\tsubMenu.getItems().add(item);\n\t\titem.setOnAction(mainApp.new AppStarter(appClass, subMenu.getText()));\n\t}",
"public void addPromoItem(){\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\ttry {\r\n\t\t\tint i = 0;\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"----------------------------------------------\");\r\n\t\t\twhile (RestaurantApp.globalMenuManager.getSizeOfMenu()!=i && RestaurantApp.globalMenuManager.getMenuItem(i).Type != type.PROMO){\r\n\t\t\t\tSystem.out.println((i+1)+\". \");\r\n\t\t\t\tRestaurantApp.globalMenuManager.getMenuItem(i).print();\r\n\t\t\t\tSystem.out.println(\"----------------------------------------------\");\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t//RestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\t\tSystem.out.println(\"Which item would you like to add?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif(menuIndex <= 0 || menuIndex >i){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+i);\r\n\t\t\t}\r\n\t\t\tthis.promo.add(RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1)); //add the index - 1 menuItem to promoPackage\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"program exiting...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n //add MenuItem(s) to ActionBar using Java code\n MenuItem menuItem_Purchase = menu.add(0, 1, Menu.NONE, \"Next\");\n MenuItemCompat.setShowAsAction(menuItem_Purchase,\n MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);\n\n //Log.d(\"recon\", savedSite.toString());\n return true;\n }",
"public void add(MenuComponent menuComponent) {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void add(MenuComponent menuComponent) {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"private void addAccount(ProtocolProviderService protocolProvider)\n {\n OperationSetPresence presence = (OperationSetPresence)\n protocolProvider.getOperationSet(OperationSetPresence.class);\n \n if (presence == null)\n {\n StatusSimpleSelector simpleSelector = \n new StatusSimpleSelector(parentSystray, protocolProvider);\n \n this.accountSelectors.put( protocolProvider.getAccountID(),\n simpleSelector);\n this.add(simpleSelector);\n }\n else\n {\n StatusSelector statusSelector = \n new StatusSelector( parentSystray,\n protocolProvider,\n presence);\n \n this.accountSelectors.put( protocolProvider.getAccountID(),\n statusSelector);\n this.add(statusSelector);\n \n presence.addProviderPresenceStatusListener(\n new SystrayProviderPresenceStatusListener());\n }\n }",
"protected void createMenuForGCodeProvider(IMenuManager contextMenu, final IGCodeProvider content) throws GkException {\r\n\t\t// Submenu for a specific user\r\n MenuManager subMenu = new ModifierSubMenu(rs274Service, rs274WorkspaceService, content.getId());\r\n \r\n\r\n contextMenu.add(new AddExecutionQueueAction(rs274Service, executionService, gcodeValidationService, content.getId()));\r\n contextMenu.add(new Separator());\r\n contextMenu.add(new ReloadGCodeProviderAction(rs274Service, content.getId()));\r\n // contextMenu.add(new ExternalEditAction(rs274Service, workspaceService, content.getId()));\r\n contextMenu.add(subMenu);\r\n if(CollectionUtils.isNotEmpty(lstGCodeProviderContributionItem)){\r\n \tcontextMenu.add(new Separator());\r\n\t for (IGCodeProviderContributionItem contributionItem : lstGCodeProviderContributionItem) {\r\n\t \tcontextMenu.add(contributionItem.getItem(content));\r\n\t\t\t}\r\n }\r\n contextMenu.add(new Separator());\r\n contextMenu.add(new DeleteGCodeProviderAction(rs274Service, content.getId()));\r\n\t}",
"public JMenu addMenuItem (String texte, JMenu menu) {\n return addMenuItem (texte,menu,\"\");\n }",
"public static void removeAccount(\n final ProtocolProviderService protocolProvider,\n final SIPCommMenu parentMenu)\n {\n if(!SwingUtilities.isEventDispatchThread())\n {\n SwingUtilities.invokeLater(new Runnable()\n {\n public void run()\n {\n removeAccount(protocolProvider, parentMenu);\n }\n });\n return;\n }\n\n for(int i = 0; i < parentMenu.getItemCount(); i++)\n {\n JMenuItem c = parentMenu.getItem(i);\n\n if (!(c instanceof AutoAnswerMenuItem))\n continue;\n\n AutoAnswerMenuItem menu = (AutoAnswerMenuItem) c;\n\n AccountID menuAccountID = menu.getProtocolProvider().getAccountID();\n\n if(menuAccountID.equals(protocolProvider.getAccountID()))\n {\n parentMenu.remove(menu);\n menu.clear();\n break;\n }\n }\n\n // if menu is disabled for auto answer and we have left with one\n // item set its name like a global one\n if(ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tmenu.add(0,ADD_INGREDIENT_DIALOG,0,R.string.add).setIcon(R.drawable.ic_menu_add);\n\t\treturn true;\t\n\t}",
"void add(String prompt, UIMenuAction action);",
"public static void addItem(final JMenu menu, final Action a) {\n\t\tfinal JMenuItem item = new JMenuItem(a);\n\t\titem.setAccelerator((KeyStroke) a.getValue(Action.ACCELERATOR_KEY));\n\t\tmenu.add(item);\n\t}",
"void addSubMenu(String key, String message, Menu<T> subMenu);",
"void setMenuItem(MenuItem menuItem);",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_account, menu);\n return true;\n }",
"public void addMenuItem(MenuItem newMenuItem){\n databaseGargoyle.createConnection();\n databaseGargoyle.executeUpdateOnDatabase(\"INSERT INTO MENUITEM VALUES (\" +\n \"'\" + newMenuItem.getFoodName() + \"', \" +\n \"'\" + newMenuItem.getDescription() + \"', \" +\n \"\" + newMenuItem.getStockAvailable() + \", \" +\n \"\" + newMenuItem.getCalories() + \", \" +\n \"'\" + newMenuItem.getVegan() + \"', \" +\n \"'\" + newMenuItem.getDiabetic() + \"', \" +\n \"'\" + newMenuItem.getGluttenFree() + \"', \" +\n \"\" + newMenuItem.getPrice() + \")\");\n databaseGargoyle.destroyConnection();\n }",
"@Override\n public void addMenuBalance() {\n mMenuBalanceRepository.addMenuBalance(new Callback<MenuBalance>() {\n @Override\n public void onSuccess(MenuBalance data) {\n mView.addMenuBalanceSuccess(data);\n }\n\n @Override\n public void onFailed(String errorMsg) {\n mView.addMenuBalanceFailure(errorMsg);\n }\n });\n }",
"void addMenu(V object);",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (navItemIndex == 0) {\n getMenuInflater().inflate(R.menu.add_channel, menu);\n }\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n menu.removeItem(R.id.action_search);\n MenuItem item = menu.add(\"Add New Address\");\n item.setIcon(R.drawable.add_plus_button);\n MenuItemCompat.setShowAsAction(item, MenuItemCompat.SHOW_AS_ACTION_ALWAYS);\n\n }",
"private void makeThirdPartyMenu() {\r\n\t\tJMenu thirdPartyMnu = new JMenu(\"Terceros\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Clientes\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenu customerMnu = new JMenu(\"Clientes\");\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarClientes\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Cliente\");\r\n\t\t\t\taddItem.setMnemonic('c');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo cliente\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddCustomer(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tcustomerMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Clientes\",\r\n\t\t\t\t\timageLoader.getImage(\"customer.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'l',\r\n\t\t\t\t\t\"Ver el listado de clientes\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F8, 0), Customer.class);\r\n\t\t\tcustomerMnu.add(menuItem);\r\n\r\n\t\t\tcustomerMnu.setMnemonic('c');\r\n\t\t\tthirdPartyMnu.add(customerMnu);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Proveedores\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenu customerMnu = new JMenu(\"Proveedores\");\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarProveedores\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Proveedor\");\r\n\t\t\t\taddItem.setMnemonic('p');\r\n\t\t\t\taddItem\r\n\t\t\t\t\t\t.setToolTipText(\"Agregar rapidamente un nuevo proveedor\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddProvider(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tcustomerMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Proveedores\",\r\n\t\t\t\t\timageLoader.getImage(\"provider.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'l',\r\n\t\t\t\t\t\"Ver el listado de proveedores\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F9, 0), Provider.class);\r\n\t\t\tcustomerMnu.add(menuItem);\r\n\r\n\t\t\tcustomerMnu.setMnemonic('p');\r\n\t\t\tthirdPartyMnu.add(customerMnu);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tthirdPartyMnu.setMnemonic('t');\r\n\t\t\tadd(thirdPartyMnu);\r\n\t\t}\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.add_item, menu);\n return true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_item, menu);\r\n\t\treturn true;\r\n\t}",
"private void addSaveAsMenuItem(Menu menu) {\n\t\tfinal MenuItem menuItem = new MenuItem(menu, SWT.Activate);\n\t\tmenuItem.setText(E4WorkbenchCommandConstants.PERSPECTIVES_SAVE_AS$_NAME);\n\n\t\t// TODO: Integrate into help system\n\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent event) {\n\t\t\t\tfinal ParameterizedCommand command = commandService\n\t\t\t\t\t\t.createCommand(E4WorkbenchCommandConstants.PERSPECTIVES_SAVE_AS, Collections.EMPTY_MAP);\n\t\t\t\thandlerService.executeHandler(command);\n\t\t\t}\n\t\t});\n\t}",
"public MenuItem add(int titleRes);",
"public void addMenuItem(String name, Double price) {\n menuItemNames.add(name);\n menuItemPrices.add(price);\n }",
"private void addMenuElement(float posx, float posy, int height) {\r\n\t\tlayout.addComponent(menu);\r\n\t\tresetMenuPosition(posx, posy, height);\r\n\t}",
"private void createMenuForGCodeRepository(IMenuManager contextMenu) {\r\n\t\tcontextMenu.add(new AddAllGCodeInQueueAction(executionService, rs274Service));\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_add_channel) {\n Toast.makeText(getApplicationContext(), \"ADD CHANNEL!\", Toast.LENGTH_LONG).show();\n AlertDialogueBox dialogueBox = new AlertDialogueBox(this);\n dialogueBox.getAlertDialogueBox();\n\n return true;\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 == R.id.action_settings4){\n\n //adding new Block\n addNewBlock();\n\n }\n return super.onOptionsItemSelected(item);\n }",
"<T> void addInstallItem(CallbackItem<T> callbackItem);",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_new_claim, menu);\n\t\treturn true;\n\t}",
"public JMenu addMenuItem (String texte, JMenu menu,String toolTipText) {\n JMenuItem item = new JMenuItem(texte);\n item.addActionListener(this);\n menu.add(item);\n menu.addSeparator();\n item.setToolTipText(toolTipText);\n return menu;\n }",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"CatalogItem addCatalogItem(CatalogItem catalogItem);",
"public void addMenu(ToolbarSubMenuMenu menu, int hotkey, String identifier, String iconName) {\n Actor thisMenu = this;\n createButton(identifier, iconName, hotkey, new ChangeListener() {\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n GameMvc.instance().getView().mainUiStage.toolbar.hideSubMenus(thisMenu);\n menu.show();\n }\n }, true);\n menus.put(identifier, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.account_button, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add__item, menu);\n return true;\n }",
"public Menu addMenu(String displayname) {\r\n\r\n\t\t\tMenuItem menubaritem = new MenuItem(menubar, SWT.CASCADE);\r\n\t\t\tmenubaritem.setText(displayname);\r\n\r\n\t\t\tMenu menu = new Menu(shell, SWT.DROP_DOWN);\r\n\t\t\tmenubaritem.setMenu(menu);\r\n\r\n\t\t\tString name = displayname.replace(\"&\", \"\").toLowerCase();\r\n\t\t\tmenus.put(name, menu);\r\n\r\n\t\t\treturn menu;\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_add){\n Intent intent = new Intent(this, NewTransactionActivity.class);\n startActivity(intent);\n } else if (id == R.id.new_account){\n startActivity(new Intent(this, NewAccountActivity.class));\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_new_profile, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\n\t\t// add menu item to add expense category\n\t\tmenu.add(0, ADD_EXPENSE_ID, 0, R.string.view_expenses_add_expense);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_name, menu);\n\t\treturn true;\n\t}",
"public void add(Extension extension) {\n this.add(new SubMenuItem(extension));\n }",
"private void giveSubjectMenuItem(@NotNull Player player) {\n YamlConfiguration config = SettingsManager.getInstance().getConfig();\n YamlConfiguration messages = SettingsManager.getInstance().getMessages();\n\n int slot = config.getInt(\"subject-gui.slot\");\n ItemStack item = player.getInventory().getItem(slot);\n\n if (item != null && item.getType() != Material.AIR) {\n Main.getInstance().getLogger().warning(\n \"Subject gui item overrides a different item. This other item will not be visible. Please \" +\n \"change the slots in the config.yml file to fix this.\"\n );\n }\n\n Material material = SettingsManager.getInstance().getMaterial(\"subject-gui.item.id\", Material.BARRIER);\n\n player.getInventory().setItem(\n slot,\n new ItemBuilder(player, material)\n .setDisplayName(MessageManager.translate(messages.getString(\"subject-gui.item.name\"),\n player))\n .setLore(MessageManager.translate(messages.getStringList(\"subject-gui.item.lores\"),\n player))\n .addContext(\"arena\", ArenaDataType.getInstance(), this.transitionSystem)\n .setClickEvent(ClickEvent.SUBJECT_GUI_CLICK)\n .build()\n );\n }",
"public void addMenuItem(String fileName,\n\t\t\tCFComponentMenuItemListener listener) {\n\t\tCFComponentMenuItem menuItem = new CFComponentMenuItem(fileName,\n\t\t\t\tlistener, this.getOwner()\n\t\t\t\t\t\t.getCFScene());\n\t\tthis.menuItems.add(menuItem);\n\t\tthis.getOwner().addChild(menuItem);\n\t\tmenuItem.reposition(new Vector3D(getOwner().getPosition().x, getOwner()\n\t\t\t\t.getPosition().y));\n\t}",
"public void attachWSMenuEntry(final JMenu wsmenu,\n final AlignFrame alignFrame)\n {\n final JMenu enfinServiceMenu = new JMenu(\"Envision 2\");\n wsmenu.add(enfinServiceMenu);\n enfinServiceMenu.setEnabled(false);\n wsmenu.addMenuListener(new MenuListener()\n {\n // this listener remembers when the menu was first selected, and\n // doesn't rebuild the session list until it has been cleared and\n // reselected again.\n boolean refresh = true;\n\n public void menuCanceled(MenuEvent e)\n {\n refresh = true;\n }\n\n public void menuDeselected(MenuEvent e)\n {\n refresh = true;\n }\n\n public void menuSelected(MenuEvent e)\n {\n if (refresh && !isRunning())\n {\n new Thread(new Runnable()\n {\n public void run()\n {\n try\n {\n buildGroupLinkMenu(enfinServiceMenu, alignFrame);\n } catch (OutOfMemoryError ex)\n {\n Cache.log\n .error(\"Out of memory when calculating the Envision2 links.\",\n ex);\n enfinServiceMenu.setEnabled(false);\n }\n }\n }).start();\n refresh = false;\n }\n }\n });\n\n }",
"private void addItemToDrawer() {\n\t\tmLDrawerItem.add(new DrawerItem(\"Control\", R.drawable.ic_control));\n\t\tmLDrawerItem.add(new DrawerItem(\"Setting\", R.drawable.ic_setting));\n\t\tmLDrawerItem.add(new DrawerItem(\"Feedback\", R.drawable.ic_feedback));\n\t\tmLDrawerItem.add(new DrawerItem(\"Help\", R.drawable.ic_help));\n\t\tmLDrawerItem.add(new DrawerItem(\"About\", R.drawable.ic_about));\n\n\t}",
"private void createCardsEditingItem()\n {\n cardsEditing = new JMenuItem(\"Zobrazení a úprava karet\");\n cardsEditing.setMnemonic('Z');\n cardsEditing.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e)\n {\n cards.setVisible(true);\n }\n });\n add(cardsEditing);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n menu.add(0, MENU_ITEM_ADD_TERM, 100, getString(R.string.Add));\n menu.findItem(MENU_ITEM_ADD_TERM).setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tsuper.onOptionsItemSelected(item);\n\t\tswitch(item.getItemId()) {\n\t\tcase ADD_INGREDIENT_DIALOG:\n\t\t\taddIngredient.performClick();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_new, menu);\r\n\t\treturn true;\r\n\t}",
"protected void addEditMenuItems (JMenu edit)\n {\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_place, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_add_widget) {\n\n selectWidget();\n\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 == R.id.action_find) {\n findOffice();\n }else if(id == R.id.action_add){\n addNewUser();\n }else if(id == R.id.action_create_group){\n createGroup();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private MenuBar.MenuItem createMenuItem(View vista, String menuAddress, Resource menuIcon) {\n MenuBar.MenuItem menuItem;\n MenuCommand cmd = new MenuCommand(menuBar, vista);\n menuItem = menuBar.addItem(menuAddress, menuIcon, cmd);\n menuItem.setStyleName(AMenuBar.MENU_DISABILITATO);\n\n return menuItem;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_addSafezone) {\n Intent intent = new Intent(this, ActivitySafezoneEditMap.class);\n intent.putExtra(ActivityListSensors.varMacAddressOfDevice, macAddress);\n startActivity(intent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.menu_add_circle, menu);\n // user not provider can just log out\n if(flugAdd == false) {\n menu.findItem(R.id.ic_add_circle_).setVisible(false);\n }\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\n provider = (ShareActionProvider) MenuItemCompat.getActionProvider((MenuItem) menu.findItem(R.id.share));\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_adress, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.ex_002_manu_main, menu);\n\n MenuItem shareItem = menu.findItem(R.id.share);\n /** Getting the actionprovider associated with the menu ex_005_item whose id is share */\n mShareActionProvider = (ShareActionProvider) MenuItemCompat.getActionProvider(shareItem);\n Log.d(\"data\", data + \" Options menu\");\n\n Intent intent = getDefaultShareIntent();\n /** Setting a share intent */\n mShareActionProvider.setShareIntent(intent);\n\n return super.onCreateOptionsMenu(menu);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.add_contact) {\n Intent intent = new Intent(this, AddActivity.class);\n startActivity(intent);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetSupportMenuInflater().inflate(R.menu.activity_offer_add, menu);\n\n\t\treturn true;\n\t}",
"public void register()\n {\n menu.registerDisplay();\n chooseRole();\n }",
"@Override\n public boolean onCreateOptionsMenu(final Menu menu) {\n getMenuInflater().inflate(R.menu.menu_deadlines_add_new_item, menu);\n return true;\n }",
"private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }",
"@Override\n\t\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\t\tint id = item.getItemId();\n\t\t\t\t\tIntent i;\n\t\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\t\tcase R.id.menu_add_new_list:\n\t\t\t\t\t\tif (task.getString(\"user_id\", null) != null) {\n\t\t\t\t\t\t\ti = new Intent(getBaseContext(), MyMap.class);\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(MyMap.this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase R.id.menu_dashboard:\n\t\t\t\t\t\tif (task.getString(\"user_id\", null) != null) {\n\t\t\t\t\t\t\ti = new Intent(MyMap.this, dashboard_main.class);\n\t\t\t\t\t\t\ti.putExtra(\"edit\", \"12344\");\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(MyMap.this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase R.id.menu_login:\n\t\t\t\t\t\tif (bedMenuItem.getTitle().equals(\"Logout\")) {\n\t\t\t\t\t\t\tSharedPreferences.Editor editor = getSharedPreferences(\"user\", MODE_PRIVATE).edit();\n\t\t\t\t\t\t\teditor.clear();\n\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\tbedMenuItem.setTitle(\"Login/Register\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tIntent i_user = new Intent(getBaseContext(), user_login.class);\n\t\t\t\t\t\t\tstartActivity(i_user);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.expense_add_new, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.add_new_entry, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main,menu);\n super.onCreateOptionsMenu(menu);\n\n menu.add(1, SALIR, 0, R.string.menu_salir);\n return true;\n }",
"@OptionsItem(R.id.add_icon)\n void menuAddButton() {\n Intent intent = new Intent(this, FoodWizardPagerActivity.class);\n startActivity(intent);\n finish(); // kill the current activity\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\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.add) {\n\n Intent i = new Intent(getApplicationContext(), NoteActivity.class);\n startActivity(i);\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuItem item = menu.add(0,1,0, \"exit\");\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(0, ABOUT, 2, R.string.hsmart_about);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.add, menu);\n\n return true;\n }",
"public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }",
"@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (entryPoint != null) {\n switch (entryPoint.getStringExtra(SOURCE)) {\n case MainActivity.ACTIVITY_NAME:\n getMenuInflater().inflate(R.menu.save_edit_profile, menu);\n break;\n case LoginActivity.ACTIVITY_NAME:\n getMenuInflater().inflate(R.menu.register, menu);\n break;\n }\n\n }\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_player, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add, menu);\n return true;\n }"
] | [
"0.72194886",
"0.6587967",
"0.64619887",
"0.6430065",
"0.62478554",
"0.62165314",
"0.6180759",
"0.61762685",
"0.6108966",
"0.60473484",
"0.60325557",
"0.60172045",
"0.5960659",
"0.5868492",
"0.58473766",
"0.5830599",
"0.5820234",
"0.5794879",
"0.57606703",
"0.57456857",
"0.57456857",
"0.5723534",
"0.5716458",
"0.57027966",
"0.5670281",
"0.5669187",
"0.56576574",
"0.5625615",
"0.56064445",
"0.5599235",
"0.5594887",
"0.55627924",
"0.5518039",
"0.5512257",
"0.5498268",
"0.54872817",
"0.5485542",
"0.54838544",
"0.5464514",
"0.5462963",
"0.5458111",
"0.54474056",
"0.5428775",
"0.54256725",
"0.542559",
"0.54212373",
"0.54211617",
"0.5416108",
"0.5407539",
"0.5397305",
"0.5396653",
"0.53961337",
"0.53944343",
"0.53925854",
"0.53863436",
"0.53719926",
"0.5348344",
"0.5341633",
"0.5341196",
"0.53398377",
"0.5315558",
"0.53085566",
"0.5307018",
"0.53027683",
"0.5271572",
"0.5269358",
"0.52551556",
"0.52509475",
"0.5244356",
"0.5231564",
"0.52284425",
"0.52171385",
"0.5196707",
"0.5196363",
"0.5196026",
"0.51943403",
"0.51899207",
"0.51887876",
"0.51856685",
"0.5184935",
"0.51835304",
"0.51745594",
"0.51727676",
"0.51724964",
"0.5170809",
"0.5170382",
"0.5169237",
"0.51617956",
"0.5160075",
"0.5157935",
"0.51555705",
"0.515528",
"0.51523155",
"0.5150319",
"0.5147223",
"0.5145981",
"0.5141582",
"0.5141437",
"0.514121",
"0.514121"
] | 0.7227807 | 0 |
Updates item text and icon. | private static void updateItem(AutoAnswerMenuItem item, boolean isGlobal)
{
if(item == null)
return;
if(isGlobal)
{
item.setText(GuiActivator.getResources().getI18NString(
"service.gui.AUTO_ANSWER"));
item.setIcon(new ImageIcon(
getIconForProvider(item.getProtocolProvider(),
ImageLoader.getImage(ImageLoader.CALL_16x16_ICON),
item)));
}
else
{
item.setText(
AutoAnswerMenuItem.getItemDisplayName(
item.getProtocolProvider()));
item.setIcon(new ImageIcon(
getIconForProvider(
item.getProtocolProvider(),
null,
item)));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void updateItem(T item, boolean empty) {\n\n // Do the normal Cell.updateItem() things\n super.updateItem(item, empty);\n\n // If the item in question exists, use its name as text instead\n if (item != null) {\n setText(item.getName());\n }\n }",
"void updateItem(E itemElementView);",
"public void updateIcons() {\n String info = \"\";\n if (Main.mainProject.getCurrentCase().isLeaf()) {\n info += ((TestCase) Main.mainProject.getCurrentCase().getParent()).getName() + \"\\n\";\n info += Main.mainProject.getCurrentCase().getName() + \"\\n\";\n info += Main.mainProject.getCurrentCase().getConclusion().toString();\n }\n infoTextArea.setText(info);\n Main.mainProject.getCurrentCase().setChecked(true);\n TreePath path = projectTree.getSelectionPath();\n this.updateTreeModel();\n projectTree.setSelectionPath(path);\n projectTree.scrollPathToVisible(path);\n }",
"private void updateItemDisplay(){\n String[] columnNames = new String[model.getColumns()];\n for(int i = 0; i<columnNames.length; i++){\n columnNames[i] = String.valueOf(i);\n }\n view.updateItemsDisplay(model.itemMapTo2DArray(model.getVendMacItemMap()), columnNames);\n }",
"private void updateNames() {\n //Get all pack indexes.\t\t\n List<AItemPack<?>> packItems = PackParser.getAllItemsForPack(currentItem.definition.packID, true);\n int currentItemIndex = packItems.indexOf(currentItem);\n\n //Loop forwards in our pack to find the next item in that pack.\n nextSubItem = null;\n if (currentItemIndex < packItems.size()) {\n for (int i = currentItemIndex + 1; i < packItems.size() && nextSubItem == null; ++i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n nextSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //Loop backwards in our pack to find the prev item in that pack.\n prevSubItem = null;\n if (currentItemIndex > 0) {\n for (int i = currentItemIndex - 1; i >= 0 && prevSubItem == null; --i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n prevSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //All item bits are now set and updated. Update info labels and item icons.\n partName.text = currentItem.getItemName();\n\n //Parse crafting items and set icon items.\n //Check all possible recipes, since some might be for other mods or versions.\n String errorMessage = \"\";\n do {\n materials = PackMaterialComponent.parseFromJSON(currentItem, recipeIndex, false, true, false, false);\n if (materials == null) {\n if (++recipeIndex == currentItem.subDefinition.extraMaterialLists.size()) {\n recipeIndex = 0;\n }\n errorMessage += PackMaterialComponent.lastErrorMessage + \"\\n\";\n if (recipeIndex == 0) {\n InterfaceManager.coreInterface.logError(errorMessage);\n break;\n }\n }\n } while (materials == null);\n\n //Set model render properties.\n modelRender.modelLocation = currentItem.definition.getModelLocation(currentItem.subDefinition);\n modelRender.textureLocation = currentItem.definition.getTextureLocation(currentItem.subDefinition);\n }",
"@Override\r\n protected void updateItem(Device item, boolean empty) {\n super.updateItem(item, empty);\r\n if (empty) {\r\n this.setText(null);\r\n this.setGraphic(null);\r\n } else {\r\n Device value = this.getTreeItem().getValue();\r\n if (value.getId().equals(\"0\")) {\r\n this.setText(value.getName());\r\n } else {\r\n String ctrlModel = Util.getCtrlModelName(value.getCtrlModel());\r\n this.setText(value.getName() + \" (\" + ctrlModel + \")\");\r\n }\r\n }\r\n }",
"@Override\n public void updateItem(FileTree item, boolean empty) {\n super.updateItem(item, empty);\n\n if (empty) {\n setText(null);\n setGraphic(null);\n } else {\n if (isEditing()) {\n if (text_field != null) {\n text_field.setText(getString());\n }\n setText(null);\n setGraphic(text_field);\n } else {\n setText(getString());\n setGraphic(getTreeItem().getGraphic());\n }\n }\n }",
"public void updateItem(Item item) {\n\t\taddItem(item);\n\t}",
"B itemIcon(ITEM item, Resource icon);",
"void onItemModify(int position, String str);",
"private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}",
"@Override\n\tpublic void modifyItem(Object toUpdated) {}",
"public void doChangeItemDescription(ActionEvent actionEvent) {\n // find the item that the user is clicking\n // do setDescription()\n }",
"public void bind(String item) {\n tvItem.setText(item);\n }",
"@Override\n public void updateItem(P_CK t) {\n \n }",
"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 updateTextButtons() {\n CrewMember crewMember = department.getCrewMember();\n repair.setText(\"Click to repair your ship for \"+getHealCost()+ \" gold!\");\n upgrade.setText(\"Click to upgrade \" + crewMember.getName() + \" for \"+crewMember.getUpgradeCost()+\" gold!\");\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu_save:\n String text = mText.getText().toString();\n String titleText = title.getText().toString();\n updateRecipe(text, titleText);\n \n break;\n case R.id.menu_delete:\n deleteRecipe();\n break;\n case R.id.menu_revert:\n cancelRecipe();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"private void updateUi(final BoxItem sharedItem){\n if (!checkIfHasRequiredFields(sharedItem)){\n refreshShareItemInfo();\n return;\n }\n if (getMainItem().getId().equals(sharedItem.getId())) {\n setMainItem(sharedItem);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n setupUi();\n }\n });\n }\n }",
"void updateItem(IDAOSession session, Item item);",
"@Override\n protected void populateItem(final ListItem<String> item) {\n AjaxFallbackLink link = new AjaxFallbackLink(\"link\") {\n\n @Override\n public void onClick(AjaxRequestTarget target) {\n onSlidebarClick(target, item.getModelObject());\n }\n\n };\n Section section = sectionManager.getSection(item.getModelObject());\n link.add(new TransparentWebMarkupContainer(\"icon\").add(AttributeModifier.append(\"class\", \"fa-\" + section.getIcon())));\n\n String key = \"Section.\" + section.getTitle() + \".name\";\n String title = new StringResourceModel(key, null).getString();\n// link.add(new Label(\"label\", title).setRenderBodyOnly(true));\n link.add(new Label(\"label\", title));\n\n item.setOutputMarkupId(true);\n item.add(link);\n\n item.add(new AttributeAppender(\"class\", \"active\") {\n\n @Override\n public boolean isEnabled(Component component) {\n return sectionManager.getSelectedSectionId().equals(item.getModelObject());\n }\n\n }.setSeparator(\" \"));\n }",
"@Override\n public void onClick(View view) {\n quantityText.setText(String.valueOf(Integer.parseInt(quantityText.getText().toString()) + 1));\n Uri currentItemUri = ContentUris.withAppendedId(MenuItemsContract.MenuItemsEntry.CONTENT_URI, id);\n ContentValues values = new ContentValues();\n values.put(MenuItemsContract.MenuItemsEntry.COLUMN_ITEM_QUANTITY,Integer.parseInt(quantityText.getText().toString()));\n context.getContentResolver().update(currentItemUri,values,null,null);\n }",
"protected abstract void editItem();",
"public void update(Observable o, Object arg) {\n SpAvEditState fsm = (SpAvEditState) o;\n\n if (fsm.getState() == SpAvEditState.EDITED) {\n setFont(EDITED_FONT);\n } else {\n setFont(DEFAULT_FONT);\n }\n\n // See if there's a new title\n String title = _spItem.getTitle();\n if (getText() != title) {\n setText(title);\n }\n }",
"public ActionUpdate(String text, ImageIcon icon)\n\t{\n\t\tsuper(text, icon);\n\t\tputValue(SHORT_DESCRIPTION, AquaWorld.texts\n\t\t\t\t.getString(\"actionUpdateDatabbaseText\"));\n\t}",
"private void setModifiedAndUpdateIcon() {\n document.setModified(true);\n updateTabIcon(document);\n }",
"public void setActionItemInfoText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_actionItemInfo_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_actionItemInfo_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_actionItemInfo_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setActionItemInfoText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"@Override\n protected void updateItem(Podcast podcast, boolean empty) {\n boolean wasEmpty = isEmpty();\n super.updateItem(podcast, empty);\n\n //Stores the podcast so it can be used later\n this.podcast = podcast;\n\n //Will be used to monitor settings to display icons etc.\n final ChangeListener<Boolean> changeListener =(observableValue, oldValue, newValue) -> {\n if(model.DEBUG)\n System.out.println(\"[\"+getClass().getName()+\"] The observableValue has \" + \"changed: oldValue = \" + oldValue + \", newValue = \" + newValue);\n };\n //if empty || null hides the libcell components\n if (empty || podcast == null) {\n podCastTitle.setVisible(false);\n podcastDuration.setVisible(false);\n podcastPubDate.setVisible(false);\n podcastDuration.setVisible(false);\n HBox temp = new HBox();\n temp.setPrefHeight(55.0);\n setGraphic(temp);\n } else {\n\n //Checks if the file is downloaded to the directory\n if(!this.podcast.isDownloaded()){\n queueBtn.setText(\"Download & Queue\");\n queueBtn.setWrapText(true);\n }\n\n //Fills in the information of the podcast into the cell\n podCastTitle.setVisible(true);\n podCastTitle.setText(podcast.getTitle());\n podcastCover.setImage(new Image(podcast.getImgPath()));\n podcastPubDate.setVisible(true);\n podcastPubDate.setText(\"Published: \"+podcast.getPubDate());\n podcastDuration.setVisible(true);\n podcastDuration.setText(podcast.getDuration());\n\n //Adds tooltip to remove button\n Tooltip.install(removeBtn, new Tooltip(\"Click for more options\"));\n\n //If this cell was just added, assign listeners\n //Only done once to prevent wasted resources\n if(wasEmpty != empty){\n this.podcast.hasNotesProperty().addListener(changeListener);\n this.podcast.isQueuedProperty().addListener(changeListener);\n queueBtn.disableProperty().bind(this.podcast.isQueuedProperty());\n viewNotes.disableProperty().bind(this.podcast.hasNotesProperty());\n }\n\n /*\n\n Following if statements adds tooltips based on properties\n of the podcast being displayed\n\n */\n if(podcast.hasNotes()){\n Tooltip.install(viewNotes, new Tooltip(\"View the notes for this podcast\"));\n }\n\n if(!podcast.isQueued()){\n Tooltip.install(queueBtn, new Tooltip(\"Add this podcast to your queue!\"));\n }\n\n setGraphic(container);\n }\n\n\n }",
"@Override\n\tpublic ThematicItem changeItem(ThematicItem item) {\n\t\treturn repository.changeItem(item);\n\t}",
"public TitleIconItem(){}",
"@Override\n public void refreshView(Context context, RecyclerView.ViewHolder holder) {\n ((ViewHolder) holder).id_text_test.setText(test);\n// mHolder.id_image_item_shown.setImageDrawable(\n// context.getResources().getDrawable(R.drawable.item_translation));\n }",
"public void updateComponents(){\n adapter.updateItems();\n }",
"private void updateContent() {\n if (product != null) {\n etProductName.setText(product.getName());\n etPrice.setText(product.getPrice().toString());\n }\n }",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tString res = jc.getSelectedItem().toString();\n\t\tjt.setText(res);\n\n\t}",
"public void setView(OddLotItem item) {\n\t\ttv_Symbol.setText(item.SYMBOL);\n\t\ttv_Quantity.setText(Common.formatAmount(item.QUANTITY));\n\t\ttv_Price.setText(Common.formatAmount(item.QUOTEPRICE));\n\t\ttv_Tax.setText(Common.formatAmount(item.TAXAMT));\n\t\ttv_Receive.setText(Common.formatAmount(item.AMOUNT));\n\t}",
"void changeMenuItemName(String itemName, byte type, String msgPlus);",
"public void editItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tString queryString = \"Update team1.GABES_ITEM Set ITEM_CATEGORY=?, DESCRIPTION=?, ITEM_NAME=?\";\n\t\tqueryString += \"Where ITEM_ID='\" + this.item_id + \"'\";\n\t\t/** Clears parameters and then sets new values */\n\t\tPreparedStatement p_stmt = con.prepareCall(queryString);\n\t\t/** Set new attribute values */\n\t\tp_stmt.clearParameters();\n\t\tp_stmt.setString(1, this.item_category);\n\t\tp_stmt.setString(2, this.description);\n\t\tp_stmt.setString(3, this.item_name);\n\t\t/* Executes the Prepared Statement query */\n\t\tp_stmt.executeQuery();\n\t\tp_stmt.close();\n\t}",
"private void updateInfoBarOnClick() {\n\t\tif (!selectedList.isEmpty()) {\n\t\t\tStringBuilder label = new StringBuilder(\"Se selecciono: \");\n\t\t\tfor (Render<? extends MovableDrawing> selectedDrawing : selectedList) {\n\t\t\t\tlabel.append(selectedDrawing.getFigure().toString()).append(\", \");\n\t\t\t}\n\t\t\tlabel.setLength(label.length() - 2);\n\t\t\tstatusPane.updateStatus(label.toString());\n\t\t} else {\n\t\t\tstatusPane.updateStatus(\"Ninguna figura encontrada\");\n\t\t}\n\t}",
"public void setimageitem(items item){\n ImageView item_icon = (ImageView) mView.findViewById(R.id.imageitem);\n //If the current weight is greater than half of the original weight, full Icon is displayed\n if(item.getCurrent_wieght() > item.getOriginal_weight()/2)\n item_icon.setImageResource(R.drawable.fullicon);\n //If the current weight is greater than quarter of the original weight, the half icon will be displayed\n else if (item.getCurrent_wieght() <= item.getOriginal_weight()/ 2 && item.getCurrent_wieght() > item.getOriginal_weight()/ 4)\n item_icon.setImageResource(R.drawable.halficon);\n //If the current weight is less than a quarter of the original weight\n // to suggest that the item is empty, a quarter icon will be displayed.\n else if(item.getCurrent_wieght() <= item.getOriginal_weight()/ 4 && item.getCurrent_wieght()> (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.quartericon);\n }\n //if the item is empty an alert icon will be displayed.\n else if(item.getCurrent_wieght()<= (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.alerticon);\n }\n }",
"public void update() {\r\n icon = new SimpleIcon(layout.tag, layout.color, DiagramElement.getGlobalFontRenderer());\r\n icon.setIsModule(component.getType() != TemplateComponent.TYPE_CHANNEL);\r\n icon.setFlagged(component.hasModel() && component.getModel().hasAnnotation(FLAG_MARK));\r\n int maxWidth = 3 * icon.getIconWidth();\r\n String[] words = layout.label.split(\" \");\r\n Vector<String> lines = new Vector<String>();\r\n int wordsConsumed = 0;\r\n while (wordsConsumed < words.length) {\r\n String line = \"\";\r\n int i;\r\n for (i = wordsConsumed; i < words.length; ++i) {\r\n line += words[i];\r\n if (getGlobalFontMetrics().stringWidth(line) > maxWidth) {\r\n break;\r\n }\r\n line += \" \";\r\n }\r\n if (i == words.length) // all left-over words fit\r\n {\r\n line = line.substring(0, line.length() - 1);\r\n lines.add(line);\r\n wordsConsumed = words.length;\r\n } else\r\n // some left-over words didn't fit\r\n {\r\n if (i == wordsConsumed) // the first left-over word was too long\r\n {\r\n lines.add(line);\r\n wordsConsumed++;\r\n } else\r\n // at least one left-over word fit\r\n {\r\n line = line.substring(0, line.lastIndexOf(\" \"));\r\n lines.add(line);\r\n wordsConsumed = i;\r\n }\r\n }\r\n }\r\n labelBox = new LabelBox(lines);\r\n int deltaX = -(labelBox.width / 2);\r\n int deltaY = icon.getIconHeight() / 2 + LABEL_SPACING;\r\n labelBox.x = layout.location.x + deltaX;\r\n labelBox.y = layout.location.y + deltaY;\r\n ports[0] = new Ellipse2D.Float(layout.location.x - icon.getIconWidth() / 2 - 2 * PORT_RADIUS - 1,\r\n layout.location.y - PORT_RADIUS, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[1] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS,\r\n layout.location.y - icon.getIconHeight() / 2 - 2 * PORT_RADIUS - 1, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[2] = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 2 + 1, layout.location.y - PORT_RADIUS,\r\n 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[3] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS, (int) labelBox.getMaxY() + 1, 2 * PORT_RADIUS,\r\n 2 * PORT_RADIUS);\r\n if (component.getType() == TemplateComponent.TYPE_CHANNEL) {\r\n supHalo = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 4,\r\n layout.location.y - icon.getIconHeight() / 4 - 2 * HALO_RADIUS, 2 * HALO_RADIUS, 2 * HALO_RADIUS);\r\n haloDX = -getGlobalFontMetrics().stringWidth(HALO_LABEL) / 2 + 1;\r\n haloDY = getGlobalFontMetrics().getAscent() / 2;\r\n }\r\n computeBounds();\r\n }",
"public void update(){\n label = tag.getSelectedItemPosition() == 0 ? \"all\" : mLabel[tag.getSelectedItemPosition()];\n Refresh();\n }",
"private void update(Object item) {\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tMethod applyItemProviderStyle = AdapterFactoryCellFactory.class.getDeclaredMethod(\r\n\t\t\t\t\t\t\t\"applyItemProviderStyle\", Object.class, Cell.class, AdapterFactory.class);\r\n\t\t\t\t\tapplyItemProviderStyle.setAccessible(true);\r\n\t\t\t\t\tapplyItemProviderStyle.invoke(PatchedAdapterFactoryTreeCellFactory.this, item, this,\r\n\t\t\t\t\t\t\tadapterFactory);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\r\n\t\t\t}",
"public Item appendToNode( Item node, String text, Image image, Style style ) {\r\n\t\tIconItem item = new IconItem( text, image);\r\n\t\tappendToNode( node, item, style );\r\n\t\treturn item;\r\n\t}",
"private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }",
"public void updateRoomItem(RoomItem item)\r\n\t{\r\n\t\ttheGridView.updateRoomItem(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(android.view.MenuItem item) {\n int id = item.getItemId();\n if (!editing) {\n item.setTitle(getResources().getString(R.string.done));\n editing = true;\n }else{\n item.setTitle(getResources().getString(R.string.edit));\n editing = false;\n }\n customAdapter.notifyDataSetChanged();\n return super.onOptionsItemSelected(item);\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 }",
"private void updateResourceText() {\n String resourceTextString=\"Available resources: \\n\";\n boolean none=true;\n for (Resource resource :resources.values()) {\n if (resource.getStock()>0) {\n resourceTextString+=resource.getName()+\": \"+resource.getStock()+\"\\n\";\n none=false;\n }\n }\n if (none) {resourceTextString=\"\";}\n resourceText.setText(resourceTextString);\n }",
"private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}",
"protected void setBalloonData(Item item, ViewGroup parent) {\n if (item.getTitle() != null) {\n title.setVisibility(VISIBLE);\n title.setText(item.getTitle());\n } else {\n title.setText(\"\");\n title.setVisibility(GONE);\n }\n if (item.getSnippet() != null) {\n snippet.setVisibility(VISIBLE);\n snippet.setText(item.getSnippet());\n } else {\n snippet.setText(\"\");\n snippet.setVisibility(GONE);\n }\n Bitmap bmp = FGActivity.getPictureThumb(\n Enum.valueOf(MARKER_TYPE.class, item.getUid()), item.getID());\n image.setImageBitmap(bmp);\n if (bmp == null) {\n image.setVisibility(GONE);\n } else {\n image.setVisibility(VISIBLE);\n }\n }",
"@Overwrite\n public void renderItemAndEffectIntoGUI(FontRenderer fontRenderer, TextureManager textureManager, final ItemStack final_item, int p_82406_4_, int p_82406_5_) {\n\n ItemStack itemStack = ItemUtils.changeRenderTarget(final_item);\n\n if (itemStack != null) {\n this.zLevel += 50.0F;\n\n try {\n if (!ForgeHooksClient.renderInventoryItem(this.field_147909_c, textureManager, itemStack, renderWithColor, zLevel, (float) p_82406_4_, (float) p_82406_5_)) {\n this.renderItemIntoGUI(fontRenderer, textureManager, itemStack, p_82406_4_, p_82406_5_, true);\n }\n } catch (Throwable throwable) {\n CrashReport crashreport = CrashReport.makeCrashReport(throwable, \"Rendering item\");\n CrashReportCategory crashreportcategory = crashreport.makeCategory(\"Item being rendered\");\n crashreportcategory.addCrashSection(\"Item Type\", String.valueOf(itemStack.getItem()));\n crashreportcategory.addCrashSection(\"Item Aux\", String.valueOf(itemStack.getItemDamage()));\n crashreportcategory.addCrashSection(\"Item NBT\", String.valueOf(itemStack.getTagCompound()));\n crashreportcategory.addCrashSection(\"Item Foil\", String.valueOf(itemStack.hasEffect()));\n throw new ReportedException(crashreport);\n }\n\n // Forge: Bugfix, Move this to a per-render pass, modders must handle themselves\n if (false && itemStack.hasEffect()) {\n GL11.glDepthFunc(GL11.GL_EQUAL);\n GL11.glDisable(GL11.GL_LIGHTING);\n GL11.glDepthMask(false);\n textureManager.bindTexture(RES_ITEM_GLINT);\n GL11.glEnable(GL11.GL_ALPHA_TEST);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glColor4f(0.5F, 0.25F, 0.8F, 1.0F);\n this.renderGlint(p_82406_4_ * 431278612 + p_82406_5_ * 32178161, p_82406_4_ - 2, p_82406_5_ - 2, 20, 20);\n OpenGlHelper.glBlendFunc(770, 771, 1, 0);\n GL11.glDepthMask(true);\n GL11.glEnable(GL11.GL_LIGHTING);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n }\n\n this.zLevel -= 50.0F;\n }\n }",
"void onEditItem(E itemElementView);",
"@Override\n\t\t\t\t\tpublic void update(float delta) {\n\t\t\t\t\t\tUpdateItem(delta);\n\t\t\t\t\t}",
"private void updateOverview() {\n\t\t\n\t\t//check if anything is selected\n\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\n\t\t\tnameLabel.setText(itemBox.getName());\n\t\t\tamountLabel.setText(String.valueOf(itemBox.getAmount()) + \"x\");\n\t\t\tgtinLabel.setText(itemBox.getGtin());\n\t\t\tcategoriesLabel.setText(itemBox.getCategoriesText(\"long\"));\n\t\t\tattributesLabel.setText(itemBox.getAttributes());\n\t\t\tlog.info(\"Overview set to \" + itemBox.getName());\n\t\t}\t\n\t}",
"public void updateLocationStringForItem(Item item) {\n if (item != null) {\n Item locationItem = item.getLocation();\n item.setLocationString(ItemDomainLocationController.generateLocatonHierarchyString(locationItem));\n }\n }",
"public void updateItem(Massage post, boolean empty) {\n super.updateItem(post, empty);\n if (post != null) {\n try {\n setGraphic(new MassageController(post).init());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public static void modifyItem(){\n System.out.print(\"Enter item name to modify: \");\n String itemToReplace = scanner.nextLine();\n System.out.print(\"Enter replacement item: \");\n String newItem = scanner.nextLine();\n groceryList.modifyGroceryItem(itemToReplace, newItem);\n }",
"@Override\r\n\t\t\t\t\tprotected void updateItem(Object arg0, boolean arg1) {\n\t\t\t\t\t\tsuper.updateItem(arg0, arg1);\r\n\t\t\t\t\t\tif (arg1) {\r\n\t\t\t\t\t\t\tsetGraphic(null);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\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\r\n\t\t\t\t\t\t\tsetGraphic(btn);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if (!empty) {\n setGraphic(cellButton);\n }\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 }",
"protected void updateCartInfoUI() {\n SharedPref.putCartitesmQty(getContext(), mCartInfo.getSummaryQty());\n this.updateCartTotal();\n// updateMenu();\n }",
"private void updateActionText() {\n getTemplatePresentation().setText(myIsExpanded ? myToCollapseText : myToExpandText);\n }",
"public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }",
"public void setData(Item i)\r\n\t{\r\n\t\ttheItem = i;\r\n\t}",
"@FXML\n\tpublic void useItem(ActionEvent event){\n\t\t\tString itemName=\"\";\n\t\t\titemName = itemselect.getText();\n\t\t\n\t\t\tif(itemName.equals(\"\")) {\t// Checks if selected item is blank\n\t\t\t\n\t\t\t\tevents.appendText(\"Select an item from the Inventory box before clicking this button!\\n\");\t\n\t\t\t\treturn;\n\t\t\t\n\t\t\t} else {\t// Begins getting item information\n\t\t\t\tItem i;\n\t\t\t\tint x;\n\t\t\t\ti=Item.getItem(ItemList, itemName);\t// Get item from the item list\n\t\t\t\t\n\t\t\t\tif(i == null) {\t// Check if the item isnt found in the item list\n\t\t\t\t\t\n\t\t\t\t\tevents.appendText(\"Item not Found!\\n\");\n\t\t\t\t\titemselect.setText(\"\");\n\t\t\t\t\titemStats.setText(\"\");\n\t\t\t\t} else {\t// Check what type of item was used\n\t\t\t\t\tif(i.getStat().equals(\"HP\")) {\n\t\t\t\t\t\tint y=p.getHP()+i.getChange();\n\t\t\t\t\t\tif(y>p.getMaxHP()) {\n\t\t\t\t\t\t\tp.setHP(p.getMaxHP());\n\t\t\t\t\t\t\tevents.appendText(\"Health Restored to Full!\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tp.setHP(y);\n\t\t\t\t\t\tevents.appendText(\"Health Restored by \" + i.getChange()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tcurrentHp.setText(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t\t}else if(i.getStat().equals(\"DMG\")) {\n\t\t\t\t\tp.setDMG(p.getDMG()+i.getChange());\n\t\t\t\t\tgdmg.setText(\"\"+p.getDMG());\n\t\t\t\t\tevents.appendText(\"Damage Increased by \" + i.getChange()+\"\\n\");\n\t\t\t\t}else {\n\t\t\t\t\tif(p.getEV()+i.getChange()>100) {\n\t\t\t\t\t\tevents.appendText(\"EV Increased by \" + (100-p.getEV())+\", Max Evasion is 100\\n\");\n\t\t\t\t\t\tp.setEV(100);\n\t\t\t\t\t\tgev.setText(\"\"+p.getEV());\n\t\t\t\t\t}else {\n\t\t\t\t\t\tp.setEV(p.getEV()+i.getChange());\n\t\t\t\t\t\tgev.setText(\"\"+p.getEV());\n\t\t\t\t\t\tevents.appendText(\"EV Increased by \" + i.getChange()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Remove the item from the inventory\n\t\t\t\tx=Inventory.indexOf(i);\n\t\t\t\tInventory.remove(x);\n\t\t\t\tinventoryList.getItems().remove(x);\n\t\t\t\titemselect.setText(\"\");\n\t\t\t\titemStats.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}",
"public void setEditedItem(Object item) {editedItem = item;}",
"private final void updateRecipe(String text, String title) {\n \trecipe.setTitle(title);\n \trecipe.setDescription(text);\n \trecipe.setType(typeSpinner.getSelectedItem().toString());\n \tif(recipe.getId()==null) {\n \t\tnew CreateRecipeTask().execute();\n \t} else {\n \t\tnew UpdateRecipeTask().execute();\n \t}\n }",
"@Override\n public void onClick(View v) {\n\n if (item.getId() != 1) {\n\n name.setText(item.getName());\n\n }\n\n if (item.getId() == 2) {\n\n // name.setText(item.getName());\n\n }\n\n }",
"@Override\n public void update(int newItemId) {\n List<Integer> list = new ArrayList<>(ItemProvider.getInstance().getAllItems().keySet());\n ItemListAdapter adapter = new ItemListAdapter(m_callback,\n android.R.layout.simple_list_item_1, android.R.id.text1, list);\n adapter.setSelectedItem(newItemId);\n m_itemList.setAdapter(adapter);\n m_itemId = newItemId;\n m_itemList.setSelection(newItemId);\n }",
"@Override\n\tprotected void updateItem(String item, boolean empty) {\n\t\t// 95 % of the cases you firstly should call the super.updateItem\n\t\t// If you don't call it, or it is called later, the behaviour of the cell maybe won't be as expected\n\t\tsuper.updateItem(item, empty);\n\t\tUser user = (User) getTableRow().getItem();\n\t\t// In the most of the cases you have to do the following check because you cannot ensure that the cell won't be\n\t\t// empty or the containing element is not null.\n\t\tif (empty || user == null) {\n\t\t\tsetText(null);\n\t\t\tsetGraphic(null);\n\t\t\tsetStyle(null);\n\t\t\treturn;\n\t\t}\n\n\t\t// Some random action that you can do with the cell.\n\t\tif (user.getId() % 3 == 0) {\n\t\t\tsetStyle(\"-fx-background-color: red\");\n\t\t} else if (user.getId() % 3 == 1) {\n\t\t\tsetStyle(\"-fx-background-color: green\");\n\t\t} else {\n\t\t\tsetStyle(\"-fx-background-color: blue\");\n\t\t}\n\t}",
"public void update() {\r\n\r\n // update attributes\r\n finishIcon.setColored(isDirty());\r\n cancelIcon.setColored(isDirty());\r\n finishButton.repaint();\r\n cancelButton.repaint();\r\n\r\n }",
"private void updateSpeedDialActionItems() {\r\n SpeedDialActionItem oldItem = findActionItem(R.id.event_fab_action_calendary_entry);\r\n int labelId = event.hasCalendarEntry() ? R.string.event_fab_remove_calendar_entry_label : R.string.event_fab_create_calendar_entry_label;\r\n SpeedDialActionItem.Builder builder = new SpeedDialActionItem.Builder(R.id.event_fab_action_calendary_entry, R.drawable.ic_calendar_today_24px)\r\n .setLabel(getString(labelId));\r\n\r\n speedDial.replaceActionItem(oldItem, builder.create());\r\n }",
"@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }",
"public void setItem(Item item) {\n this.item = item;\n }",
"void changeMenuItemName(String itemId, String itemName);",
"private void updateBaseIcon() {\n this.squareIcon.setDecoratedIcon( getSelectedBaseIcon() );\n this.radialIcon.setDecoratedIcon( getSelectedBaseIcon() );\n }",
"@Override\n public void cancelEdit() {\n super.cancelEdit();\n setText(getItem().toString());\n setGraphic(getTreeItem().getGraphic());\n }",
"private void updateReminderItemObject()\n {\n String title = viewTitle.getText().toString();\n boolean isRecurring = viewRecurringCheckbox.isChecked();\n String recurrenceNumString = viewRecurrenceNum.getText().toString();\n int recurrenceNum = Integer.parseInt(recurrenceNumString);\n String recurrenceInterval = viewRecurrenceSpinner.getSelectedItem().toString();\n String nextOccurrence = reminderItem.getNextOccurrence();\n String description = viewDescription.getText().toString();\n boolean isSnoozed = viewSnoozedCheckbox.isChecked();\n boolean isHibernating = viewHibernatingCheckbox.isChecked();\n\n reminderItem.setTitle(title);\n reminderItem.setRecurring(isRecurring);\n reminderItem.setRecurrenceNum(recurrenceNum);\n reminderItem.setRecurrenceInterval(recurrenceInterval);\n reminderItem.setNextOccurrence(nextOccurrence);\n reminderItem.setDescription(description);\n reminderItem.setSnoozed(isSnoozed);\n reminderItem.setHibernating(isHibernating);\n\n reminderItem.updateRecurrencePeriod();\n reminderItem.updateDaysAway(nextOccurrence);\n }",
"public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}",
"private void updateItemQuantityAndTotal(Item item){\r\n\t\tItem oldItem = items.get(item.getItemIdentifier());\r\n\t\toldItem.increaseQuantity(new Amount(1));\r\n\t\titems.put(oldItem.getItemIdentifier(), oldItem);\r\n\t\ttotal.updateTotal(item);\r\n\t}",
"public void editItem(int index, String newString) {\n itemArrayList.get(index);\n itemArrayList.set(index, newString);\n saveArrayList(itemArrayList, \"itemArrayList\");\n }",
"private void updateValue() {\n int type = -1;\n String name = null;\n Icon icon = null;\n if (rbProjectImages.isSelected()) {\n if (selectedFile != null) {\n name = FileUtil.getRelativePath(rootFolder, selectedFile);\n try {\n try {\n Image image = ImageIO.read(new File(selectedFile.getPath()));\n if (image != null) {\n icon = new ImageIcon(image);\n type = IconEditor.TYPE_FILE;\n } // no NbImageIcon will be created for invalid file\n } catch (IllegalArgumentException iaex) { // Issue 178906\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.INFO, null, iaex);\n icon = new ImageIcon(name);\n type = IconEditor.TYPE_FILE;\n }\n } catch (IOException ex) {\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.WARNING, null, ex);\n }\n }\n } else if (rbExternalImages.isSelected()) {\n if (selectedURL != null && !\"\".equals(selectedURL)) { // NOI18N\n type = IconEditor.TYPE_URL;\n name = selectedURL;\n try {\n try {\n Image image = ImageIO.read(new URL(selectedURL));\n if (image != null) {\n icon = new ImageIcon(image);\n type = IconEditor.TYPE_URL;\n }\n } catch (IllegalArgumentException iaex) { // Issue 178906\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.INFO, null, iaex);\n icon = new ImageIcon(new URL(selectedURL));\n }\n // for URL-based icon create NbImageIcon even if no icon can be loaded from the URL\n } catch (IOException ex) {\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.WARNING, null, ex);\n }\n }\n }\n\n ignoreSetValue = true;\n try {\n propertyEditor.setAsText(name);\n } finally {\n ignoreSetValue = false;\n }\n\n previewLabel.setIcon(icon);\n\n }",
"public void handleGetItemDetailsButtonAction(ActionEvent event) {\n String itemID = updateItemItemID.getText();\n try{\n //get the details from mgr\n HashMap itemInfo = updateMgr.getItemInfo(itemID);\n //display on the fields\n updateItemTitle.setText((String)itemInfo.get(Table.BOOK_TITLE));\n updateItemAuthor.setText((String)itemInfo.get(Table.BOOK_AUTHOR));\n updateItemDescription.setText((String)itemInfo.get(Table.BOOK_DESCRIPTION));\n updateItemPublishDate.setText(formatDateString((Calendar)itemInfo.get(Table.BOOK_DATE)));\n updateItemISBN.setText((String)itemInfo.get(Table.BOOK_ISBN));\n updateItemGenre.setText((String)itemInfo.get(Table.BOOK_GENRE));\n //enable item info pane\n updateItemInfoPane.setDisable(false);\n this.tempItemID = itemID;\n }\n catch(ItemNotFoundException | SQLException | ClassNotFoundException e){\n this.displayWarning(\"Error\", e.getMessage());\n } catch (Exception ex) {\n this.displayWarning(\"Error\", ex.getMessage());\n } \n }",
"static void encodeItemConfig(Formatter fmt, FacesContext context, UIComponent item, String text) {\n String icon = getItemIcon(context, item);\n String styleClass = (String)item.getAttributes().get(\"styleClass\");\n String disabledClass = (String)item.getAttributes().get(\"disabledClass\");\n String activeClass = (String)item.getAttributes().get(\"activeClass\");\n\n fmt.format(\"text:%s\", HtmlEncoder.enquote(text, '\\''));\n fmt.format(\",plugins:new Ext.ux.plugins.MenuItemPlugin()\");\n if (icon != null)\n fmt.format(\",icon:%s\", HtmlEncoder.enquote(icon, '\\''));\n if (HtmlRenderer.isDisabled(item))\n fmt.format(\",disabled:true\");\n if (styleClass != null)\n fmt.format(\",itemCls:'%s'\", styleClass);\n if (disabledClass != null)\n fmt.format(\",disabledClass:'%s'\", disabledClass);\n if (activeClass != null)\n fmt.format(\",activeClass:'%s'\", activeClass);\n }",
"private void updateUI() {\n Bite bite = BiteLab.get(getActivity()).getBite(mBiteId);\n\n mPlacementTextView.setText(bite.getPlacement());\n\n Calendar c = bite.getCalendar();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH)+1;\n int day = c.get(Calendar.DAY_OF_MONTH);\n mDateTextView.setText(getString(R.string.show_date, day, month, year));\n\n mDaysSinceBiteTextView.setText(getString(R.string.days_since_bite\n , bite.getDaysSinceBite()));\n\n mStageTextView.setText(getString(R.string.show_stage, bite.getStage()));\n }",
"private void bindContentDescription(Holder holder, int i) {\n TileQueryHelper.TileInfo tileInfo = (this.mAddedAdpater ? this.mTiles : this.mOtherTiles).get(i);\n if (tileInfo != null) {\n holder.mTileView.getIcon().setIsCustomTile(!tileInfo.isSystem);\n if (i > this.mEditIndex) {\n QSTile.State state = tileInfo.state;\n state.contentDescription = this.mContext.getString(C0021R$string.accessibility_qs_edit_add_tile_label, state.label);\n } else if (this.mAccessibilityMoving) {\n tileInfo.state.contentDescription = this.mContext.getString(C0021R$string.accessibility_qs_edit_position_label, Integer.valueOf(i + 1));\n } else {\n tileInfo.state.contentDescription = this.mContext.getString(C0021R$string.accessibility_qs_edit_tile_label, Integer.valueOf(i + 1), tileInfo.state.label);\n }\n tileInfo.state.state = 1;\n holder.mTileView.onStateChanged(tileInfo.state);\n }\n }",
"public void updateCurrentPlayer(String currentPlayer) {\n\t\titem.setText(1, currentPlayer);\n\t}",
"public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}",
"public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}",
"public void editItem(String name, String source, int position, String image, String id){\n PriceFinder pf = this.itm.getItem(position);\n this.itm.editItem(pf, pf.getPrice(), name, source, image);\n try {\n save();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n DecimalFormat f = new DecimalFormat(\"##.00\");\n\n this.itemTitle.setText(pf.getName());\n String op = String.valueOf(f.format(pf.getPrice()));\n\n this.oldPrice.setText(\"Initial price: $\" + op);\n this.newPrice.setText(\"Current Price: $\" + String.valueOf(f.format(pf.getNewPrice())));\n this.itemUrl.setText(this.itm.getItem(position).getUrl());\n diff.setText(\"Price change: \" +f.format(pf.calculatePrice())+\"%\");\n }",
"private void updateText(final String info, final String caller) {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\n\t\t\t\tinfoText.setText(info);\n\t\t\t\tcallerText.setText(caller);\n\t\t\t}\n\t\t});\n\t}",
"private void updateTitle() {\n\t\tAbstractFolderModel folderModel = FolderModelManager.getInstance().getCurrentModel();\n\t\tTextView titleTV = (TextView) findViewById(R.id.title);\n\t\ttitleTV.setText(folderModel.title());\n\n\t\t\t\t\n\t\tint imgCount=FolderModelManager.getInstance().getCurrentModel().files().length;\n\t\tint folderCount=FolderModelManager.getInstance().getCurrentModel().subfolders().length-1;\n\t\t\n\t\tStringBuilder sb=new StringBuilder(); \n\t\tif (imgCount>0){\n\t\t\tsb.append(Utility.getResourceString(R.string.IMAGE));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(imgCount);\n\t\t}\n\t\tsb.append(' ');\n\t\tif (folderCount>0){\n\t\t\tsb.append(Utility.getResourceString(R.string.SUBFOLDER));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(folderCount);\n\t\t}\n\t\t\n\t\tTextView titleRight = (TextView) findViewById(R.id.title_right);\n\t\ttitleRight.setText(sb);\n\t\tsb=null;\t\n\t}",
"protected void modify(int i) {\n\n\t\tvalue += i;\n\t\tlabel.setText(Integer.toString(value));\n\t\t\n\t}",
"public void setData(Item item) {\n layout.setVisibility(VISIBLE);\n setBalloonData(item, layout);\n }",
"public ModifyItem() {\n initComponents();\n }",
"public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}",
"private void updateLocation(String info)\n {\n popup.setText(info);\n\n listView.animate().alpha(0.3f).setDuration(1000);\n\n popup.setVisibility(View.VISIBLE);\n\n }",
"@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tint a=c1.getSelectedIndex();\r\n\t\tString b=c1.getItemAt(a).toString();\r\n\t\tl1.setText(\"\"+b);\r\n\t}",
"private void setInfo(ViewHolder holder, int position) {\n // the id for the two views is the position they are in the RecyclerView so whenever they are clicked I can just check the id of the view and pull the info at that position from adapter\n holder.menuTV.setId(position);\n holder.favTV.setId(position);\n\n // sets filename to selected view.\n String currentFile = sortedFilesArrList.get(position);\n StringBuilder filenameBuilder = new StringBuilder(currentFile);\n int indexOfExtension = filenameBuilder.indexOf(\".txt\"); // sometimes the adapter will not have the filenames with the .txt extension\n if (indexOfExtension > -1)\n filenameBuilder.delete(indexOfExtension, filenameBuilder.length());\n\n String formattedFilename = filenameBuilder.toString().replaceAll(\"_\", \" \");\n\n if (formattedFilename.length() > 3) { // user can name a file with a name shorter than 4 letters. This catches that exception\n switch (formattedFilename.substring(0, 4)) {\n case \"Temp\":\n holder.titleTV.setText(\"\");\n break;\n default:\n holder.titleTV.setText(formattedFilename);\n break;\n }\n } else\n holder.titleTV.setText(formattedFilename);\n\n\n Calendar calendar = Calendar.getInstance();\n\n // gets a calendar instance and changes views text to corresponding info.\n File file = new File(context.getFilesDir(), sortedFilesArrList.get(position));\n calendar.setTimeInMillis(file.lastModified());\n\n holder.timeTV.setText(MiscMethods.getLocalizedTime(calendar));\n\n // uses string builder to append info about the day of month.\n StringBuilder dayBuilder = new StringBuilder(String.format(locale, \"%1$td\", calendar));\n dayBuilder.append(\",\");\n holder.dayTV.setText(dayBuilder.toString());\n holder.monthTV.setText(String.format(locale, \"%1$tB\", calendar));\n\n\n // sets the faves view to the corresponding emoticon\n if (favArrList.get(position))\n holder.favTV.setText(\"★\");\n else\n holder.favTV.setText(\"☆\");\n\n\n setSummary(holder.summaryTV, currentFile);\n\n }",
"public void updateCaption(Paintable component, UIDL uidl) {\n }"
] | [
"0.6840694",
"0.6626623",
"0.6375203",
"0.6364305",
"0.6335272",
"0.6299317",
"0.6282981",
"0.6153384",
"0.61399734",
"0.60164046",
"0.59791136",
"0.59661984",
"0.59558445",
"0.5939963",
"0.5924246",
"0.58004904",
"0.57813036",
"0.5771306",
"0.5767226",
"0.57547665",
"0.57525736",
"0.57463497",
"0.5741689",
"0.57354885",
"0.5704376",
"0.5701635",
"0.56917137",
"0.5678733",
"0.5667644",
"0.56633246",
"0.56593966",
"0.5653423",
"0.5633465",
"0.5614848",
"0.5614647",
"0.56034863",
"0.56033385",
"0.56014335",
"0.55973834",
"0.559488",
"0.55906105",
"0.55900735",
"0.55853415",
"0.55600864",
"0.5554029",
"0.55404913",
"0.5536131",
"0.5525481",
"0.5524652",
"0.5512145",
"0.5507469",
"0.5504792",
"0.5503604",
"0.5490388",
"0.5480698",
"0.5478904",
"0.5476573",
"0.54736733",
"0.54621994",
"0.54421663",
"0.5441318",
"0.5441253",
"0.54404336",
"0.54397345",
"0.5422228",
"0.54214185",
"0.54120904",
"0.5410759",
"0.54087216",
"0.5408399",
"0.5407279",
"0.5402644",
"0.5387033",
"0.5382146",
"0.5382003",
"0.53748095",
"0.5374627",
"0.5362824",
"0.53600246",
"0.53591216",
"0.5356037",
"0.5355431",
"0.5354643",
"0.53506565",
"0.53505313",
"0.53445846",
"0.5342087",
"0.53412735",
"0.53411394",
"0.5327021",
"0.5325684",
"0.53179294",
"0.53119",
"0.53053",
"0.5304428",
"0.5295021",
"0.52893364",
"0.5288207",
"0.52881265",
"0.5287501"
] | 0.67626023 | 1 |
Adds a menu item for the account given by protocolProvider. | private static void addAccountInternal(
ProtocolProviderService protocolProvider,
SIPCommMenu parentMenu)
{
OperationSetBasicAutoAnswer opSet = protocolProvider
.getOperationSet(OperationSetBasicAutoAnswer.class);
if(opSet == null)
{
return;
}
if (protocolProvider.getAccountID().isHidden())
return;
AutoAnswerMenuItem providerMenu =
new AutoAnswerMenuItem(protocolProvider, parentMenu);
int lastAutoAnswerIx = 0;
boolean isMenuAdded = false;
AccountID accountId = protocolProvider.getAccountID();
// If we already have other accounts.
for(int i = 0; i < parentMenu.getItemCount(); i++)
{
JMenuItem c = parentMenu.getItem(i);
if (!(c instanceof AutoAnswerMenuItem))
continue;
AutoAnswerMenuItem menu = (AutoAnswerMenuItem) c;
int menuIndex = parentMenu.getPopupMenu().getComponentIndex(menu);
lastAutoAnswerIx = menuIndex;
AccountID menuAccountID = menu.getProtocolProvider().getAccountID();
int protocolCompare = accountId.getProtocolDisplayName().compareTo(
menuAccountID.getProtocolDisplayName());
// If the new account protocol name is before the name of the menu
// we insert the new account before the given menu.
if (protocolCompare < 0)
{
parentMenu.insert(providerMenu, menuIndex);
isMenuAdded = true;
break;
}
else if (protocolCompare == 0)
{
// If we have the same protocol name, we check the account name.
if (accountId.getDisplayName()
.compareTo(menuAccountID.getDisplayName()) < 0)
{
parentMenu.insert(providerMenu, menuIndex);
isMenuAdded = true;
break;
}
}
}
if (!isMenuAdded)
{
// add it after last auto answer menu found
if(lastAutoAnswerIx != 0)
parentMenu.insert(providerMenu, lastAutoAnswerIx);
else
{
// as no items
// lets find the first separator and add it after it
// the place is between the separators
int lastMenuItemIx = 0;
for(int i = 0; i < parentMenu.getMenuComponentCount(); i++)
{
if(parentMenu.getMenuComponent(i) instanceof JSeparator)
{
parentMenu.insert(providerMenu, lastMenuItemIx + 1);
isMenuAdded = true;
break;
}
else
lastMenuItemIx++;
}
if(!isMenuAdded)
parentMenu.add(providerMenu);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void addAccount(\n final ProtocolProviderService protocolProvider,\n final SIPCommMenu parentMenu)\n {\n if(!SwingUtilities.isEventDispatchThread())\n {\n SwingUtilities.invokeLater(new Runnable()\n {\n public void run()\n {\n addAccount(protocolProvider, parentMenu);\n }\n });\n return;\n }\n\n // the initial number of autoanswer menu items\n int initialCount = getAutoAnswerItemCount(parentMenu);\n\n addAccountInternal(protocolProvider, parentMenu);\n\n // current count\n int itemsCount = getAutoAnswerItemCount(parentMenu);\n\n // if menu is disabled for autoanswer and we have added an item\n if(ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && itemsCount != initialCount)\n {\n // if initial count was 1, lets change provider name to the\n // protocol one (the first one have like global name)\n if(initialCount == 1)\n {\n for(int i = 0; i < parentMenu.getItemCount(); i++)\n {\n JMenuItem item = parentMenu.getItem(i);\n if(item instanceof AutoAnswerMenuItem)\n {\n updateItem((AutoAnswerMenuItem)item, false);\n }\n }\n }\n else if(initialCount == 0)\n {\n // this is the first item set its name like global one\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }\n }",
"MenuItem addItem(String title, Command callback);",
"public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivator.bundleContext\n .addServiceListener(protocolProviderListener);\n }\n\n for (ProtocolProviderFactory providerFactory : GuiActivator\n .getProtocolProviderFactories().values())\n {\n for (AccountID accountID : providerFactory.getRegisteredAccounts())\n {\n ServiceReference<ProtocolProviderService> serRef\n = providerFactory.getProviderForAccount(accountID);\n ProtocolProviderService protocolProvider\n = GuiActivator.bundleContext.getService(serRef);\n\n addAccountInternal(protocolProvider, parentMenu);\n }\n }\n\n // if we are in disabled menu mode and we have only one item\n // change its name (like global auto answer)\n if( ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }",
"public void add(String nameItem)\n\t{\n\t\tmenu.add(nameItem);\n\t}",
"public native void addSubItem(MenuItem item);",
"public void insertPluginMenu(java.awt.MenuItem mi);",
"AutoAnswerMenuItem(ProtocolProviderService provider,\n SIPCommMenu parentMenu)\n {\n this(provider,\n getItemDisplayName(provider),\n getIconForProvider(provider, null, parentMenu),\n parentMenu);\n }",
"protected abstract void addMenuOptions();",
"protected void addMenuOption(MenuOption option, Object param) {\n\t\tthis.layout.addItem(option, param);\n\t}",
"@Override\n public void addMenu(Items cartItemToBeAdded) {\n Items menuItem = cartItemToBeAdded.getItemOriginalReference();\n menuItem.setItemQuantity(menuItem.getItemQuantity() + 1);\n mCartAdapter.addToCart(cartItemToBeAdded);\n updateCartMenu();\n }",
"public MenuItem add(CharSequence title);",
"public void addExtraMenuItem(String name, boolean limitOne, ActionListener callback) {\n JMenuItem item=new JMenuItem(name);\n item.addActionListener(callback);\n //if (!extraAdded) this.add(new javax.swing.JSeparator());\n this.add(item); \n if (limitOne) limitedToOne.add(item);\n extraAdded=true;\n }",
"protected void addMenuOption(MenuOption option) {\n\t\tthis.layout.addItem(option);\n\t}",
"public void add(MenuItem item) {\n this.items.add(item);\n }",
"void changeMenuItemName(String itemName, byte type, String msgPlus);",
"public void addMenu(Menu menu) {\r\n\t\titems.add(menu);\r\n\t}",
"public void addItem(Menu subMenu, Class<?> appClass) {\n\t\tMenuItem item = new MenuItem(Messages.getMessages().getString(\"app_\"+appClass.getSimpleName()));\n\t\tsubMenu.getItems().add(item);\n\t\titem.setOnAction(mainApp.new AppStarter(appClass, subMenu.getText()));\n\t}",
"public void addPromoItem(){\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\ttry {\r\n\t\t\tint i = 0;\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"----------------------------------------------\");\r\n\t\t\twhile (RestaurantApp.globalMenuManager.getSizeOfMenu()!=i && RestaurantApp.globalMenuManager.getMenuItem(i).Type != type.PROMO){\r\n\t\t\t\tSystem.out.println((i+1)+\". \");\r\n\t\t\t\tRestaurantApp.globalMenuManager.getMenuItem(i).print();\r\n\t\t\t\tSystem.out.println(\"----------------------------------------------\");\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t//RestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\t\tSystem.out.println(\"Which item would you like to add?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif(menuIndex <= 0 || menuIndex >i){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+i);\r\n\t\t\t}\r\n\t\t\tthis.promo.add(RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1)); //add the index - 1 menuItem to promoPackage\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"program exiting...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n //add MenuItem(s) to ActionBar using Java code\n MenuItem menuItem_Purchase = menu.add(0, 1, Menu.NONE, \"Next\");\n MenuItemCompat.setShowAsAction(menuItem_Purchase,\n MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);\n\n //Log.d(\"recon\", savedSite.toString());\n return true;\n }",
"public void add(MenuComponent menuComponent) {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void add(MenuComponent menuComponent) {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"private void addAccount(ProtocolProviderService protocolProvider)\n {\n OperationSetPresence presence = (OperationSetPresence)\n protocolProvider.getOperationSet(OperationSetPresence.class);\n \n if (presence == null)\n {\n StatusSimpleSelector simpleSelector = \n new StatusSimpleSelector(parentSystray, protocolProvider);\n \n this.accountSelectors.put( protocolProvider.getAccountID(),\n simpleSelector);\n this.add(simpleSelector);\n }\n else\n {\n StatusSelector statusSelector = \n new StatusSelector( parentSystray,\n protocolProvider,\n presence);\n \n this.accountSelectors.put( protocolProvider.getAccountID(),\n statusSelector);\n this.add(statusSelector);\n \n presence.addProviderPresenceStatusListener(\n new SystrayProviderPresenceStatusListener());\n }\n }",
"protected void createMenuForGCodeProvider(IMenuManager contextMenu, final IGCodeProvider content) throws GkException {\r\n\t\t// Submenu for a specific user\r\n MenuManager subMenu = new ModifierSubMenu(rs274Service, rs274WorkspaceService, content.getId());\r\n \r\n\r\n contextMenu.add(new AddExecutionQueueAction(rs274Service, executionService, gcodeValidationService, content.getId()));\r\n contextMenu.add(new Separator());\r\n contextMenu.add(new ReloadGCodeProviderAction(rs274Service, content.getId()));\r\n // contextMenu.add(new ExternalEditAction(rs274Service, workspaceService, content.getId()));\r\n contextMenu.add(subMenu);\r\n if(CollectionUtils.isNotEmpty(lstGCodeProviderContributionItem)){\r\n \tcontextMenu.add(new Separator());\r\n\t for (IGCodeProviderContributionItem contributionItem : lstGCodeProviderContributionItem) {\r\n\t \tcontextMenu.add(contributionItem.getItem(content));\r\n\t\t\t}\r\n }\r\n contextMenu.add(new Separator());\r\n contextMenu.add(new DeleteGCodeProviderAction(rs274Service, content.getId()));\r\n\t}",
"public JMenu addMenuItem (String texte, JMenu menu) {\n return addMenuItem (texte,menu,\"\");\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tmenu.add(0,ADD_INGREDIENT_DIALOG,0,R.string.add).setIcon(R.drawable.ic_menu_add);\n\t\treturn true;\t\n\t}",
"public static void removeAccount(\n final ProtocolProviderService protocolProvider,\n final SIPCommMenu parentMenu)\n {\n if(!SwingUtilities.isEventDispatchThread())\n {\n SwingUtilities.invokeLater(new Runnable()\n {\n public void run()\n {\n removeAccount(protocolProvider, parentMenu);\n }\n });\n return;\n }\n\n for(int i = 0; i < parentMenu.getItemCount(); i++)\n {\n JMenuItem c = parentMenu.getItem(i);\n\n if (!(c instanceof AutoAnswerMenuItem))\n continue;\n\n AutoAnswerMenuItem menu = (AutoAnswerMenuItem) c;\n\n AccountID menuAccountID = menu.getProtocolProvider().getAccountID();\n\n if(menuAccountID.equals(protocolProvider.getAccountID()))\n {\n parentMenu.remove(menu);\n menu.clear();\n break;\n }\n }\n\n // if menu is disabled for auto answer and we have left with one\n // item set its name like a global one\n if(ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }",
"void add(String prompt, UIMenuAction action);",
"public static void addItem(final JMenu menu, final Action a) {\n\t\tfinal JMenuItem item = new JMenuItem(a);\n\t\titem.setAccelerator((KeyStroke) a.getValue(Action.ACCELERATOR_KEY));\n\t\tmenu.add(item);\n\t}",
"void addSubMenu(String key, String message, Menu<T> subMenu);",
"void setMenuItem(MenuItem menuItem);",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_account, menu);\n return true;\n }",
"public void addMenuItem(MenuItem newMenuItem){\n databaseGargoyle.createConnection();\n databaseGargoyle.executeUpdateOnDatabase(\"INSERT INTO MENUITEM VALUES (\" +\n \"'\" + newMenuItem.getFoodName() + \"', \" +\n \"'\" + newMenuItem.getDescription() + \"', \" +\n \"\" + newMenuItem.getStockAvailable() + \", \" +\n \"\" + newMenuItem.getCalories() + \", \" +\n \"'\" + newMenuItem.getVegan() + \"', \" +\n \"'\" + newMenuItem.getDiabetic() + \"', \" +\n \"'\" + newMenuItem.getGluttenFree() + \"', \" +\n \"\" + newMenuItem.getPrice() + \")\");\n databaseGargoyle.destroyConnection();\n }",
"@Override\n public void addMenuBalance() {\n mMenuBalanceRepository.addMenuBalance(new Callback<MenuBalance>() {\n @Override\n public void onSuccess(MenuBalance data) {\n mView.addMenuBalanceSuccess(data);\n }\n\n @Override\n public void onFailed(String errorMsg) {\n mView.addMenuBalanceFailure(errorMsg);\n }\n });\n }",
"void addMenu(V object);",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (navItemIndex == 0) {\n getMenuInflater().inflate(R.menu.add_channel, menu);\n }\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n menu.removeItem(R.id.action_search);\n MenuItem item = menu.add(\"Add New Address\");\n item.setIcon(R.drawable.add_plus_button);\n MenuItemCompat.setShowAsAction(item, MenuItemCompat.SHOW_AS_ACTION_ALWAYS);\n\n }",
"private void makeThirdPartyMenu() {\r\n\t\tJMenu thirdPartyMnu = new JMenu(\"Terceros\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Clientes\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenu customerMnu = new JMenu(\"Clientes\");\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarClientes\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Cliente\");\r\n\t\t\t\taddItem.setMnemonic('c');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo cliente\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddCustomer(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tcustomerMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Clientes\",\r\n\t\t\t\t\timageLoader.getImage(\"customer.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'l',\r\n\t\t\t\t\t\"Ver el listado de clientes\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F8, 0), Customer.class);\r\n\t\t\tcustomerMnu.add(menuItem);\r\n\r\n\t\t\tcustomerMnu.setMnemonic('c');\r\n\t\t\tthirdPartyMnu.add(customerMnu);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Proveedores\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenu customerMnu = new JMenu(\"Proveedores\");\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarProveedores\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Proveedor\");\r\n\t\t\t\taddItem.setMnemonic('p');\r\n\t\t\t\taddItem\r\n\t\t\t\t\t\t.setToolTipText(\"Agregar rapidamente un nuevo proveedor\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddProvider(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tcustomerMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Proveedores\",\r\n\t\t\t\t\timageLoader.getImage(\"provider.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'l',\r\n\t\t\t\t\t\"Ver el listado de proveedores\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F9, 0), Provider.class);\r\n\t\t\tcustomerMnu.add(menuItem);\r\n\r\n\t\t\tcustomerMnu.setMnemonic('p');\r\n\t\t\tthirdPartyMnu.add(customerMnu);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tthirdPartyMnu.setMnemonic('t');\r\n\t\t\tadd(thirdPartyMnu);\r\n\t\t}\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.add_item, menu);\n return true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_item, menu);\r\n\t\treturn true;\r\n\t}",
"private void addSaveAsMenuItem(Menu menu) {\n\t\tfinal MenuItem menuItem = new MenuItem(menu, SWT.Activate);\n\t\tmenuItem.setText(E4WorkbenchCommandConstants.PERSPECTIVES_SAVE_AS$_NAME);\n\n\t\t// TODO: Integrate into help system\n\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent event) {\n\t\t\t\tfinal ParameterizedCommand command = commandService\n\t\t\t\t\t\t.createCommand(E4WorkbenchCommandConstants.PERSPECTIVES_SAVE_AS, Collections.EMPTY_MAP);\n\t\t\t\thandlerService.executeHandler(command);\n\t\t\t}\n\t\t});\n\t}",
"public MenuItem add(int titleRes);",
"public void addMenuItem(String name, Double price) {\n menuItemNames.add(name);\n menuItemPrices.add(price);\n }",
"private void addMenuElement(float posx, float posy, int height) {\r\n\t\tlayout.addComponent(menu);\r\n\t\tresetMenuPosition(posx, posy, height);\r\n\t}",
"private void createMenuForGCodeRepository(IMenuManager contextMenu) {\r\n\t\tcontextMenu.add(new AddAllGCodeInQueueAction(executionService, rs274Service));\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_add_channel) {\n Toast.makeText(getApplicationContext(), \"ADD CHANNEL!\", Toast.LENGTH_LONG).show();\n AlertDialogueBox dialogueBox = new AlertDialogueBox(this);\n dialogueBox.getAlertDialogueBox();\n\n return true;\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 == R.id.action_settings4){\n\n //adding new Block\n addNewBlock();\n\n }\n return super.onOptionsItemSelected(item);\n }",
"<T> void addInstallItem(CallbackItem<T> callbackItem);",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_new_claim, menu);\n\t\treturn true;\n\t}",
"public JMenu addMenuItem (String texte, JMenu menu,String toolTipText) {\n JMenuItem item = new JMenuItem(texte);\n item.addActionListener(this);\n menu.add(item);\n menu.addSeparator();\n item.setToolTipText(toolTipText);\n return menu;\n }",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"CatalogItem addCatalogItem(CatalogItem catalogItem);",
"public void addMenu(ToolbarSubMenuMenu menu, int hotkey, String identifier, String iconName) {\n Actor thisMenu = this;\n createButton(identifier, iconName, hotkey, new ChangeListener() {\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n GameMvc.instance().getView().mainUiStage.toolbar.hideSubMenus(thisMenu);\n menu.show();\n }\n }, true);\n menus.put(identifier, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add__item, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.account_button, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"public Menu addMenu(String displayname) {\r\n\r\n\t\t\tMenuItem menubaritem = new MenuItem(menubar, SWT.CASCADE);\r\n\t\t\tmenubaritem.setText(displayname);\r\n\r\n\t\t\tMenu menu = new Menu(shell, SWT.DROP_DOWN);\r\n\t\t\tmenubaritem.setMenu(menu);\r\n\r\n\t\t\tString name = displayname.replace(\"&\", \"\").toLowerCase();\r\n\t\t\tmenus.put(name, menu);\r\n\r\n\t\t\treturn menu;\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_add){\n Intent intent = new Intent(this, NewTransactionActivity.class);\n startActivity(intent);\n } else if (id == R.id.new_account){\n startActivity(new Intent(this, NewAccountActivity.class));\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_new_profile, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\n\t\t// add menu item to add expense category\n\t\tmenu.add(0, ADD_EXPENSE_ID, 0, R.string.view_expenses_add_expense);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_name, menu);\n\t\treturn true;\n\t}",
"public void add(Extension extension) {\n this.add(new SubMenuItem(extension));\n }",
"private void giveSubjectMenuItem(@NotNull Player player) {\n YamlConfiguration config = SettingsManager.getInstance().getConfig();\n YamlConfiguration messages = SettingsManager.getInstance().getMessages();\n\n int slot = config.getInt(\"subject-gui.slot\");\n ItemStack item = player.getInventory().getItem(slot);\n\n if (item != null && item.getType() != Material.AIR) {\n Main.getInstance().getLogger().warning(\n \"Subject gui item overrides a different item. This other item will not be visible. Please \" +\n \"change the slots in the config.yml file to fix this.\"\n );\n }\n\n Material material = SettingsManager.getInstance().getMaterial(\"subject-gui.item.id\", Material.BARRIER);\n\n player.getInventory().setItem(\n slot,\n new ItemBuilder(player, material)\n .setDisplayName(MessageManager.translate(messages.getString(\"subject-gui.item.name\"),\n player))\n .setLore(MessageManager.translate(messages.getStringList(\"subject-gui.item.lores\"),\n player))\n .addContext(\"arena\", ArenaDataType.getInstance(), this.transitionSystem)\n .setClickEvent(ClickEvent.SUBJECT_GUI_CLICK)\n .build()\n );\n }",
"public void addMenuItem(String fileName,\n\t\t\tCFComponentMenuItemListener listener) {\n\t\tCFComponentMenuItem menuItem = new CFComponentMenuItem(fileName,\n\t\t\t\tlistener, this.getOwner()\n\t\t\t\t\t\t.getCFScene());\n\t\tthis.menuItems.add(menuItem);\n\t\tthis.getOwner().addChild(menuItem);\n\t\tmenuItem.reposition(new Vector3D(getOwner().getPosition().x, getOwner()\n\t\t\t\t.getPosition().y));\n\t}",
"public void attachWSMenuEntry(final JMenu wsmenu,\n final AlignFrame alignFrame)\n {\n final JMenu enfinServiceMenu = new JMenu(\"Envision 2\");\n wsmenu.add(enfinServiceMenu);\n enfinServiceMenu.setEnabled(false);\n wsmenu.addMenuListener(new MenuListener()\n {\n // this listener remembers when the menu was first selected, and\n // doesn't rebuild the session list until it has been cleared and\n // reselected again.\n boolean refresh = true;\n\n public void menuCanceled(MenuEvent e)\n {\n refresh = true;\n }\n\n public void menuDeselected(MenuEvent e)\n {\n refresh = true;\n }\n\n public void menuSelected(MenuEvent e)\n {\n if (refresh && !isRunning())\n {\n new Thread(new Runnable()\n {\n public void run()\n {\n try\n {\n buildGroupLinkMenu(enfinServiceMenu, alignFrame);\n } catch (OutOfMemoryError ex)\n {\n Cache.log\n .error(\"Out of memory when calculating the Envision2 links.\",\n ex);\n enfinServiceMenu.setEnabled(false);\n }\n }\n }).start();\n refresh = false;\n }\n }\n });\n\n }",
"private void addItemToDrawer() {\n\t\tmLDrawerItem.add(new DrawerItem(\"Control\", R.drawable.ic_control));\n\t\tmLDrawerItem.add(new DrawerItem(\"Setting\", R.drawable.ic_setting));\n\t\tmLDrawerItem.add(new DrawerItem(\"Feedback\", R.drawable.ic_feedback));\n\t\tmLDrawerItem.add(new DrawerItem(\"Help\", R.drawable.ic_help));\n\t\tmLDrawerItem.add(new DrawerItem(\"About\", R.drawable.ic_about));\n\n\t}",
"private void createCardsEditingItem()\n {\n cardsEditing = new JMenuItem(\"Zobrazení a úprava karet\");\n cardsEditing.setMnemonic('Z');\n cardsEditing.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e)\n {\n cards.setVisible(true);\n }\n });\n add(cardsEditing);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n menu.add(0, MENU_ITEM_ADD_TERM, 100, getString(R.string.Add));\n menu.findItem(MENU_ITEM_ADD_TERM).setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tsuper.onOptionsItemSelected(item);\n\t\tswitch(item.getItemId()) {\n\t\tcase ADD_INGREDIENT_DIALOG:\n\t\t\taddIngredient.performClick();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_new, menu);\r\n\t\treturn true;\r\n\t}",
"protected void addEditMenuItems (JMenu edit)\n {\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_place, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_add_widget) {\n\n selectWidget();\n\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 == R.id.action_find) {\n findOffice();\n }else if(id == R.id.action_add){\n addNewUser();\n }else if(id == R.id.action_create_group){\n createGroup();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private MenuBar.MenuItem createMenuItem(View vista, String menuAddress, Resource menuIcon) {\n MenuBar.MenuItem menuItem;\n MenuCommand cmd = new MenuCommand(menuBar, vista);\n menuItem = menuBar.addItem(menuAddress, menuIcon, cmd);\n menuItem.setStyleName(AMenuBar.MENU_DISABILITATO);\n\n return menuItem;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.menu_add_circle, menu);\n // user not provider can just log out\n if(flugAdd == false) {\n menu.findItem(R.id.ic_add_circle_).setVisible(false);\n }\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_addSafezone) {\n Intent intent = new Intent(this, ActivitySafezoneEditMap.class);\n intent.putExtra(ActivityListSensors.varMacAddressOfDevice, macAddress);\n startActivity(intent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\n provider = (ShareActionProvider) MenuItemCompat.getActionProvider((MenuItem) menu.findItem(R.id.share));\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_adress, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.ex_002_manu_main, menu);\n\n MenuItem shareItem = menu.findItem(R.id.share);\n /** Getting the actionprovider associated with the menu ex_005_item whose id is share */\n mShareActionProvider = (ShareActionProvider) MenuItemCompat.getActionProvider(shareItem);\n Log.d(\"data\", data + \" Options menu\");\n\n Intent intent = getDefaultShareIntent();\n /** Setting a share intent */\n mShareActionProvider.setShareIntent(intent);\n\n return super.onCreateOptionsMenu(menu);\n\n }",
"private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.add_contact) {\n Intent intent = new Intent(this, AddActivity.class);\n startActivity(intent);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetSupportMenuInflater().inflate(R.menu.activity_offer_add, menu);\n\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(final Menu menu) {\n getMenuInflater().inflate(R.menu.menu_deadlines_add_new_item, menu);\n return true;\n }",
"public void register()\n {\n menu.registerDisplay();\n chooseRole();\n }",
"private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.expense_add_new, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\t\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\t\tint id = item.getItemId();\n\t\t\t\t\tIntent i;\n\t\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\t\tcase R.id.menu_add_new_list:\n\t\t\t\t\t\tif (task.getString(\"user_id\", null) != null) {\n\t\t\t\t\t\t\ti = new Intent(getBaseContext(), MyMap.class);\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(MyMap.this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase R.id.menu_dashboard:\n\t\t\t\t\t\tif (task.getString(\"user_id\", null) != null) {\n\t\t\t\t\t\t\ti = new Intent(MyMap.this, dashboard_main.class);\n\t\t\t\t\t\t\ti.putExtra(\"edit\", \"12344\");\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(MyMap.this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase R.id.menu_login:\n\t\t\t\t\t\tif (bedMenuItem.getTitle().equals(\"Logout\")) {\n\t\t\t\t\t\t\tSharedPreferences.Editor editor = getSharedPreferences(\"user\", MODE_PRIVATE).edit();\n\t\t\t\t\t\t\teditor.clear();\n\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\tbedMenuItem.setTitle(\"Login/Register\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tIntent i_user = new Intent(getBaseContext(), user_login.class);\n\t\t\t\t\t\t\tstartActivity(i_user);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.add_new_entry, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main,menu);\n super.onCreateOptionsMenu(menu);\n\n menu.add(1, SALIR, 0, R.string.menu_salir);\n return true;\n }",
"@OptionsItem(R.id.add_icon)\n void menuAddButton() {\n Intent intent = new Intent(this, FoodWizardPagerActivity.class);\n startActivity(intent);\n finish(); // kill the current activity\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\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.add) {\n\n Intent i = new Intent(getApplicationContext(), NoteActivity.class);\n startActivity(i);\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuItem item = menu.add(0,1,0, \"exit\");\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(0, ABOUT, 2, R.string.hsmart_about);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.add, menu);\n\n return true;\n }",
"public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }",
"@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_player, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add, menu);\n return true;\n }"
] | [
"0.72268426",
"0.65891635",
"0.64622265",
"0.6431279",
"0.62487155",
"0.6216905",
"0.61812",
"0.6177041",
"0.61105776",
"0.60489833",
"0.60333806",
"0.6017864",
"0.59618604",
"0.58699983",
"0.5848248",
"0.5832289",
"0.5822023",
"0.57962435",
"0.576241",
"0.5746804",
"0.5746804",
"0.5721701",
"0.57166594",
"0.57040036",
"0.5670069",
"0.5669197",
"0.5657809",
"0.56263644",
"0.56065553",
"0.56000125",
"0.5594836",
"0.5565068",
"0.55179524",
"0.5512007",
"0.5499843",
"0.5488181",
"0.5485855",
"0.5485574",
"0.54663235",
"0.54628754",
"0.5459014",
"0.5448518",
"0.5429832",
"0.5426579",
"0.5426383",
"0.54228854",
"0.54212713",
"0.541716",
"0.5409131",
"0.53981113",
"0.53970397",
"0.5396819",
"0.5394259",
"0.53937644",
"0.538664",
"0.5372483",
"0.53492093",
"0.534315",
"0.53421986",
"0.5340341",
"0.5316448",
"0.5309072",
"0.530697",
"0.5304915",
"0.52721804",
"0.52709484",
"0.5256085",
"0.5252558",
"0.5245137",
"0.52328634",
"0.5229294",
"0.52180725",
"0.51971674",
"0.5196466",
"0.51960665",
"0.51953477",
"0.51906073",
"0.51897717",
"0.5186546",
"0.5186449",
"0.5185153",
"0.5174591",
"0.51742536",
"0.5173165",
"0.51717734",
"0.5171567",
"0.5170348",
"0.51635057",
"0.516091",
"0.51594263",
"0.5157191",
"0.5156443",
"0.51536024",
"0.5151791",
"0.5148512",
"0.5147022",
"0.51429194",
"0.51426977",
"0.51426977",
"0.51426977"
] | 0.7218131 | 1 |
Remove menu item for the account given by protocolProvider. | public static void removeAccount(
final ProtocolProviderService protocolProvider,
final SIPCommMenu parentMenu)
{
if(!SwingUtilities.isEventDispatchThread())
{
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
removeAccount(protocolProvider, parentMenu);
}
});
return;
}
for(int i = 0; i < parentMenu.getItemCount(); i++)
{
JMenuItem c = parentMenu.getItem(i);
if (!(c instanceof AutoAnswerMenuItem))
continue;
AutoAnswerMenuItem menu = (AutoAnswerMenuItem) c;
AccountID menuAccountID = menu.getProtocolProvider().getAccountID();
if(menuAccountID.equals(protocolProvider.getAccountID()))
{
parentMenu.remove(menu);
menu.clear();
break;
}
}
// if menu is disabled for auto answer and we have left with one
// item set its name like a global one
if(ConfigurationUtils.isAutoAnswerDisableSubmenu()
&& getAutoAnswerItemCount(parentMenu) == 1)
{
updateItem(getAutoAnswerItem(parentMenu, 0), true);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void removeAccount(ProtocolProviderService protocolProvider)\n {\n Component c = (Component) this.accountSelectors\n .get(protocolProvider.getAccountID());\n \n this.remove(c);\n }",
"void removeMenuItem(int itemId, String itemName);",
"<T> void removeInstallItem(CallbackItem<T> callbackItem);",
"<T> void removeUninstallItem(CallbackItem<T> callbackItem);",
"public void removeMenuItem(MenuItem oldMenuItem){\n databaseGargoyle.createConnection();\n databaseGargoyle.executeUpdateOnDatabase(\"DELETE FROM MENUITEM WHERE \" +\n \"FOODNAME = '\" + oldMenuItem.getFoodName() + \"'\");\n databaseGargoyle.destroyConnection();\n }",
"public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}",
"public void remove() {\n/* 1379 */ super.remove();\n/* 1380 */ this.inventoryMenu.removed(this);\n/* 1381 */ if (this.containerMenu != null) {\n/* 1382 */ this.containerMenu.removed(this);\n/* */ }\n/* */ }",
"public void removeItem() {\n if (this.size() == 0) {\n System.out.println(\"Empty List.\");\n return;\n }\n this.print();\n String code;\n System.out.println(\"Enter the code of removed item: \");\n code = sc.nextLine().toUpperCase();\n int pos = find(code);\n if (pos < 0) {\n System.out.println(\"This code does not exist.\");\n } else {\n this.remove(pos);\n System.out.println(\"The item \" + code + \" has been removed.\");\n\n }\n }",
"@Override\r\n\tpublic void removeItem(String absPath) throws VersionException,\r\n\t\t\tLockException, ConstraintViolationException, AccessDeniedException,\r\n\t\t\tRepositoryException {\n\t\t\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.desconectar) {\n pubnub.unsubscribe(CHANNEL);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"protected abstract void removeItem();",
"public void removeByRuleID(String serviceProviderCode, Long ruleID) throws AAException, RemoteException;",
"public abstract void removeUI(BaseConfigInstance pPCI);",
"public abstract void removeDisplayedItem(String key);",
"@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}",
"@Test\n public void testMenuFactoryRemove() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n menuController.removeMenuItem(1);\n assertEquals(0, menuController.getMenu().size());\n }",
"protected synchronized void removeRoleProvider(RoleProvider roleProvider) {\n logger.debug(\"Removing {} from the list of role providers\", roleProvider);\n roleProviders.remove(roleProvider);\n }",
"@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items cartItem = mCartAdapter.getmCartItemsList().get(index);\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(index);\n }\n// else {\n// mCartAdapter.getmCartItemsList().set(index, cartItem);\n// }\n item.setItemQuantity(item.getItemQuantity() - 1);\n updateCartMenu();\n } else { // Duplicate item available in cart\n Toast.makeText(OrderOnlineActivity.this, getResources().getString(R.string.multiple_customisation_error), Toast.LENGTH_LONG).show();\n }\n }",
"public void removeItem(int id);",
"public void removeChatTransport(ChatTransport chatTransport)\n {\n JCheckBoxMenuItem menuItem = transportMenuItems.get(chatTransport);\n this.menu.remove(menuItem);\n this.buttonGroup.remove(menuItem);\n this.transportMenuItems.remove(chatTransport);\n\n updateEnableStatus();\n }",
"private void removeProvider(MarketDataProvider inProvider)\n {\n activeProvidersByName.remove(inProvider.getProviderName());\n providersByPriority.remove(inProvider);\n }",
"private static MenuItem createRemoveLibraryMenuItem(SongManager model,\n DatabaseManager databaseManager,\n Item selectedItem) {\n MenuItem removeLibrary = new MenuItem(REMOVE_THIS_LIBRARY);\n\n removeLibrary.setOnAction((event) -> {\n if (selectedItem != null) {\n System.out.println(\"Remove library\");\n\n model.removeLibrary(selectedItem.getFile());\n String selectedItemPath = selectedItem.getFile().getAbsolutePath();\n\n if (model.getM_rightFolderSelected() != null) {\n String rightFolderPath = model.getM_rightFolderSelected().getAbsolutePath();\n boolean isLibraryInRight = rightFolderPath.equals(selectedItemPath) ||\n rightFolderPath.contains(selectedItemPath + File.separator);\n if (isLibraryInRight) {\n model.setM_rightFolderSelected(null);\n }\n }\n\n if (model.getM_selectedCenterFolder() != null) {\n String centerFolderPath = model.getM_selectedCenterFolder().getAbsolutePath();\n boolean isLibraryInCenter = centerFolderPath.equals(selectedItemPath) ||\n centerFolderPath.contains(selectedItemPath + File.separator);\n if (isLibraryInCenter) {\n System.out.println(\"SELECTED CENTER FOLDER REMOVED!!!\");\n model.setM_selectedCenterFolder(null);\n }\n }\n\n databaseManager.removeLibrary(\n selectedItemPath\n );\n FileActions libraryFileActions = new ConcreteFileActions(Action.REMOVE_FROM_VIEW, selectedItem.getFile());\n model.notifyLibraryObservers(libraryFileActions);\n }\n });\n\n return removeLibrary;\n }",
"@objid (\"8b62147f-883f-4514-ab5d-bf553972a3fc\")\n public static void removeMenu(final IModule module, MPart view) {\n for (IModuleAction action : module.getActions(ActionLocation.contextualpopup)) {\n deactivateAndRemoveHandler(ModuleCommandsRegistry.getCommand(module, action), view);\n }\n }",
"public String removeItem() {\n userFacade.printUsersCart(user);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n //user.getCart().remove(selectedItem);\n userFacade.removeFromCart(user, selectedItem);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n userFacade.printUsersCart(user);\n return \"\";\n }",
"public void removeItem(){\n\t\tthis.item = null;\n\t}",
"@Override\n public boolean onMenuItemClick(MenuItem item) {\n mPresenter.DelDownloadingApp(mAdapter.getItem(position).getUrl(),true)\n .compose(RxSchedulers.io_main()).subscribe();\n mAdapter.removeAt(position);\n return true;\n }",
"public void deleteItem() {\n\t\tIntent intent = new Intent(this, AlarmActivity.class);\n\t\tint alarmId = itemsAdapter.getSelectedItem().getId();\n\t\tLog.d(TAG, \"Cancelling Alarm with ID \" + alarmId); \n\t\tPendingIntent sender = PendingIntent.getBroadcast(this, alarmId, intent, 0);\n\t\tAlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n\t\talarmManager.cancel(sender);\n\t\t\n\t\titemsAdapter.remove(itemsAdapter.getSelectedPosition());\n\t\titemsAdapter.unsetSelectedPosition();\n\t\tgetActionBar().hide();\n\t}",
"void remove(RecordItemValidatorIF itemValidator);",
"void supprimerMenu(int numeroArticle);",
"public void deleteMenuItem() {\n\t\tviewMenu();\n\n\t\t//Clean arraylist so that you can neatly add data from saved file\n\t\tmm.clear();\n\t\t\n\t\tString delID;\n\n\t\tScanner delSC = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Menu ID to Delete : \");\n\t\tdelID = delSC.next();\n\t\t\n\t\ttry \n\t\t{\n\t\t\t// Get data contents from saved file\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n \n mm = (ArrayList<AlacarteMenu>) ois.readObject();\n mm.removeIf(menuItem -> menuItem.getMenuName().equals(delID.toUpperCase()));\n \n ois.close();\n fis.close();\n \n try {\n \tFileOutputStream fos = new FileOutputStream(\"menuData\");\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t\toos.writeObject(mm);\n\t\t\t\toos.close();\n\t\t\t\tfos.close();\n }\n catch (IOException e) {\n \t\t\tSystem.out.println(\"Error deleting menu item!\");\n \t\t\treturn;\n \t\t}\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\treturn;\n\t\t}\n\t\tcatch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"void remove(String installedAppId);",
"ReturnCode deleteMenus(MmtConfig cfg);",
"void removeApp(String bundleId);",
"public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}",
"public void removeItem(int position) {\n mPapers.remove(position);\n notifyItemRemoved(position);\n }",
"@Override\n public void removeChild( Element e ) {\n if ( e instanceof XulMenuitem ) {\n // System.out.println( \"removing menu item: \"+((XulMenuitem)e).getLabel() );\n }\n if ( e instanceof XulMenupopup ) {\n // System.out.println( \"removing menu popup: \"+((XulMenupopup)e).getId() );\n }\n if ( e instanceof XulMenu ) {\n // System.out.println( \"removing menu: \"+((XulMenu)e).getId() );\n }\n }",
"public void removeAlertByRuleID(String serviceProviderCode, Long ruleID) throws AAException, RemoteException;",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"public void uninstall(ISelectionProvider selectionProvider) {\n if (selectionProvider == null)\n return;\n \n if (selectionProvider instanceof IPostSelectionProvider) {\n IPostSelectionProvider provider= (IPostSelectionProvider) selectionProvider;\n provider.removePostSelectionChangedListener(this);\n } else {\n selectionProvider.removeSelectionChangedListener(this);\n }\n }",
"public void removeRefAlertRecipientByPK(String serviceProviderCode, Long recipientID) throws AAException,\r\n\t\t\tRemoteException;",
"public void remove() {\n getMainApplication().showConfirmationDialog(\n new ConfirmDialog.Listener() {\n public void onClose(ConfirmDialog dialog) {\n if (dialog.isConfirmed()) {\n Collection<T> selectedValues = getSelectedValues();\n removeConfirmed(CollectionsUtil.toArray(getType(), selectedValues));\n }\n }\n });\n }",
"public void removeItem(int itemToRemove){\n\t\tinventoryItems[itemToRemove] = null;\n\t}",
"private void addRemoveButton() {\n\t\tremoveButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tif (viewMode == 2) {\n\t\t\t\t\tuserData.removeByIndex(\"history\", list.getSelectedIndex());\n\t\t\t\t\tlistModel.removeElementAt(list.getSelectedIndex());\n\t\t\t\t} else if (viewMode == 3) {\n\t\t\t\t\tuserData.removeByIndex(\"bookmarks\", list.getSelectedIndex());\n\t\t\t\t\tlistModel.removeElementAt(list.getSelectedIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmenuBar.add(removeButton);\n\t\tmenuBar.revalidate();\n\t}",
"public Object removeItem (String key);",
"public void onRemoveAgendaItem() {\n AgendaItem agendaItem = outputAgendaItemsPreparation.getSelectionModel().getSelectedItem();\n\n if (agendaItem == null) {\n AlertHelper.showError(LanguageKey.ERROR_AGENDAITEM_NULL, null);\n return;\n }\n\n if (controller.removeAgendaItem(agendaItem)) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_AGENDAITEM_REMOVE, null);\n }",
"private void removeNonCaleydoMenuEntries() {\n \t\tIMenuManager menuManager = getWindowConfigurer().getActionBarConfigurer()\n \t\t\t\t.getMenuManager();\n \t\tfor (IContributionItem item : menuManager.getItems()) {\n \n \t\t\tif (!item.getId().contains(\"org.caleydo\")) {\n \t\t\t\tmenuManager.remove(item);\n \t\t\t}\n \t\t}\n \n \t\tif (DataDomainManager.get().getDataDomainByID(\"org.caleydo.datadomain.generic\") != null) {\n \n \t\t\tIActionBarConfigurer configurer = getWindowConfigurer().getActionBarConfigurer();\n \n \t\t\t// Delete unwanted menu items\n \t\t\tIContributionItem[] menuItems = configurer.getMenuManager().getItems();\n \t\t\tfor (int i = 0; i < menuItems.length; i++) {\n \t\t\t\tIContributionItem menuItem = menuItems[i];\n \t\t\t\tif (menuItem.getId().equals(\"org.caleydo.search.menu\")) {\n \t\t\t\t\tconfigurer.getMenuManager().remove(menuItem);\n \t\t\t\t}\n \t\t\t\telse if (menuItem.getId().equals(\"viewMenu\")) {\n \t\t\t\t\tIContributionItem itemToRemove = ((MenuManager) menuItem)\n \t\t\t\t\t\t\t.find(\"org.caleydo.core.command.openviews.remote\");\n \n \t\t\t\t\tif (itemToRemove != null)\n \t\t\t\t\t\titemToRemove.setVisible(false);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"public void remove(TradeItem newItem) {\n items.remove(newItem);\n }",
"public boolean delete(String username, int menuId);",
"String deleteProvider(String providerId) throws RepoxException;",
"private void removeItem() {\n viewList();\n System.out.println(\"Enter the priority of the item to remove: \\n\\tH -> high \\n\\tM -> medium \\n\\tL -> low\");\n char c = scanner.next().toUpperCase().charAt(0);\n System.out.println(\"Enter the number of the item you want to remove: \");\n System.out.println(\"Note: If you enter a higher number, items from the next categories will be deleted\");\n int removeIndex = scanner.nextInt();\n\n int h = toDoList.lastIndexOfCategory(Categories.HIGHPRIORITY);\n int m = toDoList.lastIndexOfCategory(Categories.MIDPRIORITY);\n\n if (c == 'H' && (toDoList.getItemAtIndex(1).getCategory() != Categories.HIGHPRIORITY || h + 1 > removeIndex)) {\n removeIndex = -1;\n } else if (c == 'M') {\n removeIndex = removeIndex + h + 1;\n } else if (c == 'L') {\n removeIndex = removeIndex + h + m + 1;\n }\n if (c == 'M' && h != 0 && toDoList.lastIndexOfCategory(Categories.MIDPRIORITY) == 0) {\n removeIndex = -1;\n } else if (c == 'L' && (h != 0 || m != 0) && toDoList.lastIndexOfCategory(Categories.LOWPRIORITY) == 0) {\n removeIndex = -1;\n }\n\n toDoList.remove(removeIndex);\n System.out.println(\"Updated to-do list:\");\n viewList();\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n \tswitch (item.getItemId()) {\r\n case R.id.menu_clear:\r\n getContentResolver().delete(BroadcastSchema.BroadcastTable.CONTENT_URI, null, null);\r\n \tbreak;\r\n case R.id.menu_exit:\r\n \tfinish();\r\n \tbreak;\r\n \tdefault:\r\n \t\treturn super.onOptionsItemSelected(item);\r\n \t}\r\n \t\r\n \treturn true;\r\n }",
"protected synchronized void removeUserProvider(UserProvider userProvider) {\n logger.debug(\"Removing {} from the list of user providers\", userProvider);\n roleProviders.remove(userProvider);\n }",
"@FXML\n\tpublic void removeRegistrationPair() {\n\t\tRegistrationPair selected = m_registrationState.getSelected();\n\t\tm_registrationState.removePair(selected);\n\t}",
"void removePushApplication(LoggedInUser account, PushApplication pushApp);",
"@Test\n public void testSetMenuFactoryRemoveSetMenuItem() {\n SetMenu setMenuController = setMenuFactory.getSetMenu();\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n ArrayList<MenuItem> menuItems = new ArrayList<>();\n menuItems.add(menuController.getMenuItem(1));\n setMenuController.addSetItem(\"Test Set\", 5.0, 1, menuItems);\n setMenuController.removeSetItem(1);\n assertEquals(0, setMenuController.getSetMenu().size());\n }",
"@Override\n\tpublic void removeOption(String option) {\n\n\t}",
"public void removePlayerPkmnInfoBox()\r\n {\r\n removeObject(playerPkmnInfoBox);\r\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n super.onPrepareOptionsMenu(menu);\n if (mCurrentPhoneUri == null) {\n //References the menu item\n MenuItem menuItem = menu.findItem(R.id.delete_phone_entry);\n menuItem.setVisible(false);\n }\n return true;\n }",
"@Override\n\tpublic void onDelete() {\n\t\tif (testSessionChangedHandler != null) {\n\t\t\ttestSessionChangedHandler.removeHandler();\n\t\t\ttestSessionChangedHandler = null;\n\t\t}\n\t\t// Release the acmi\n\t\tif (acmiSaveButton !=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiSaveButton))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiSaveButton);\n\t\t}\n\t\tif (acmiPromoteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiPromoteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiPromoteSite);\n\t\t}\n\t\tif (acmiDeleteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiDeleteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiDeleteSite);\n\t\t}\n\t\tif (acmiCreateSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiCreateSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiCreateSite);\n\t\t}\n\t}",
"public void removeProvider(TimelineProviderPanel panel) {\n int height = panel.getHeight();\n providersPanel.remove(panel);\n providersPanel.setSize(providersPanel.getWidth(), providersPanel.getHeight() - height);\n validate();\n }",
"public void closeMenu(Player p) {\n\t\tif (getInventory().getViewers().contains(p)) {\n\t\t\tgetInventory().getViewers().remove(p);\n\t\t\tp.closeInventory();\n\t\t}\n\t}",
"private void deleteItem()\n {\n System.out.println(\"Delete item with the ID: \");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n ctrl.deleteItem(id);\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\n }",
"public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}",
"int deleteByExample(MenuInfoExample example);",
"public boolean delete(int menuId);",
"public void removeMenuItem(int iId, String iName) {\n iMenu.removeMenuItem(iId, iName);\n }",
"public void removeElement(String selectedItem, final int position) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Remove \" + selectedItem + \"?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n masterItems.remove(position);\n Collections.sort(masterItems);\n storeArrayVal(masterItems, getApplicationContext());\n lv.setAdapter(adapter);\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"protected void removeButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\n\t\t// Get selected supply type\n\t\tSupply supply = null;\n\t\ttry {\n\t\t\tsupply = item.getSupply(supplyList.getSelectedIndex());\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Remove from item\n\t\ttry {\n\t\t\tmc.removeIngredient(item, supply);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}",
"private void removeJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeJMenuItemActionPerformed\n removeJButton.doClick();\n }",
"public static void removeOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Removing ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to remove the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\n\t\t\tdo {\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (listOfOrderedItems.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\tSystem.out.println(\"There is no ordered items!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (i = 0; i < listOfOrderedItems.size(); i++) {\n\t\t\t\t\torderedItem = (OrderedItem) listOfOrderedItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print(\"Select an ordered item to remove from order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\torderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(choice - 1);\n\n\t\t\t\t\tcheck = orderedItemManager.removeOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Ordered item removed from order successfully!\");\n\t\t\t\t\t\tlistOfOrderedItems.remove(orderedItem);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Failed to remove ordered item from order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of removing items************\");\n\t}",
"public static final void unlinkAccount(String provider) {\n\t\tif (provider == null || provider.trim().length() == 0) {\n\t\t\tflash.error(\"Wrong account provider\");\n\t\t\tuser();\n\t\t}\n\n\t\tUser user = getUser();\n\t\tif (user == null) {\n\t\t\tflash.error(\"Can not retrieve user\");\n\t\t\tindex();\n\t\t}\n\t\ttry {\n\t\t\tUserClient.removeAccount(getUser(), provider);\n\t\t\tflash.success(\"%s account unlinked\", provider);\n\t\t\treloadUser();\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Error while removing account : %s\", e.getMessage());\n\t\t}\n\t\tuser();\n\t}",
"@Override\r\n\tpublic boolean onContextItemSelected(MenuItem item) {\r\n\t\tAdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item\r\n\t\t\t\t.getMenuInfo();\r\n\t\tint menuItemId = item.getItemId();\r\n\t\t// check for selected option\r\n\t\tif (menuItemId == MENU_UNSUBSCRIBE) {\r\n\t\t\tfinal int position = info.position;\r\n\t\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\r\n\t\t\talertDialogBuilder.setTitle(\"Unsubscribe Channel\");\r\n\t\t\talertDialogBuilder\r\n\t\t\t\t\t.setMessage(\"Do you want to unsubscribe this channel?\")\r\n\t\t\t\t\t.setCancelable(false)\r\n\t\t\t\t\t.setPositiveButton(\"Ok\",\r\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint id){ \t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tChannelEntry entry = channels.get(position);\r\n\t\t\t\t\t\t\t\t\tChannelDao channelDao = new ChannelDao(getApplicationContext());\r\n\t\t\t\t\t\t\t\t\tchannelDao.deleteChannel(Integer.parseInt(entry.getId()));\r\n\t\t\t\t\t\t\t\t\tchannels.remove(position);\r\n\t\t\t\t\t\t\t\t\tgvChannel.invalidateViews();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\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.setNegativeButton(\"Cancel\",\r\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint id) {\r\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\tAlertDialog alertDialog = alertDialogBuilder.create();\r\n\t\t\talertDialog.show();\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"public void removeRefAlertMessageByPK(String serviceProviderCode, Long alertMessageID) throws AAException,\r\n\t\t\tRemoteException;",
"public X remove(MenuComponent component) {\n this.component.remove(component);\n return (X) this;\n }",
"String deleteProvider(String provID) throws RepoxException;",
"private void deleteJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteJMenuItemActionPerformed\n // TODO add your handling code here:\n int index = employeeJComboBox.getSelectedIndex();\n employeeJComboBox.removeItemAt(index);\n employees.remove(index);\n saveEmployee();\n clearAll();\n }",
"@Override\n public void removeGameApp(Handle<GameAppContext> that) \n {\n manager.removeGameApp(that);\n }",
"@Override\n\tpublic void destroy() {\n\t\tgeneralServices.getCallbackApi().removeReplayOpsPopupMenuItem(\n\t\t\t\tshowSc2ConverterForPatternMiningItemHandler);\n\t}",
"@Override\n\tpublic void removeItem(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Items here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id\n\t\t\tSystem.out.print(\"Enter Item Id to delete the item: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeItem(session,itemId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Items Exception: \" +e.getMessage());\n\t\t}\n\t}",
"@Test\r\n\tpublic void testRemoveItem() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"B\");\r\n\t\tassertEquals(test, vendMachine.removeItem(\"B\"));\r\n\t}",
"private static MenuItem createRemoveFromPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n int selectedSongIndex) {\n MenuItem removeFromPlaylist = new MenuItem(REMOVE_FROM_PLAYLIST);\n\n removeFromPlaylist.setOnAction((event) -> {\n Playlist selectedPlaylist = model.getM_selectedPlaylist();\n if (PromptUI.removeSongFromPlaylist(selectedPlaylist,\n selectedPlaylist.getSongByIndex(selectedSongIndex))) {\n boolean songToRemoveIsPlaying = (selectedSongIndex == selectedPlaylist.getM_currentSongIndex());\n\n selectedPlaylist.removeSong(selectedSongIndex);\n model.notifyPlaylistSongsObservers();\n\n if (!selectedPlaylist.isEmpty() && songToRemoveIsPlaying) {\n musicPlayerManager.playPlaylist(selectedPlaylist);\n }\n\n if (selectedPlaylist.isEmpty()) {\n musicPlayerManager.stopSong();\n musicPlayerManager.resetCurrentPlaylist();\n }\n }\n });\n\n return removeFromPlaylist;\n }",
"@Override\n public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) (item\n .getMenuInfo());\n confirmRemovePosition(info.position);\n return true;\n }",
"int deleteByPrimaryKey(String menuId);",
"public void deleteItem(PlatformLayerKey key) throws PlatformLayerClientException;",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tremoveItem(ItemPanel.this);\n\t\t\t\t}",
"public void removeWallet(Wallet wallet);",
"private void popupDelete() {\n\t\taufzugschacht.removeElement(this);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.uninstall) {\n Uri packageURI = Uri.parse(\"package:com.example.angine.Task\");\n Intent deleteIntent = new Intent(Intent.ACTION_DELETE, packageURI);\n startActivity(deleteIntent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"public void removeSelectedAction() {\n\t\tvar selectedItems = pairsListView.getSelectionModel().getSelectedItems();\n\t\tpairsListView.getItems().removeAll(selectedItems);\n\t}",
"@Override\r\n\tpublic void remove(int no) {\n\t\tsession.delete(\"enter.delete\", no);\r\n\t}",
"public void deleteItem(ActionEvent actionEvent) {\n // find the list that the item belongs in\n // removeItem() from its parenting list\n }",
"@Override\n\tpublic void itemRemove(final HomeItem item)\n\t{\n\t\tfileService().removeExcept(item.getReference(), null);\n\n\t\tsqlService().transact(new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\titemRemoveTx(item);\n\t\t\t}\n\t\t}, \"remove\");\n\t}",
"public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}",
"public void removeOrganMistake() {\n records.remove(selectedRecord);\n DonorReceiver account = accountManager.getAccountsByNHI(selectedRecord.getNhi()).get(selectedRecord.getNhi());\n TransplantWaitingList.removeOrganMistake(selectedRecord, accountManager);\n PageNav.loadNewPage(PageNav.TRANSPLANTLIST);\n }",
"@RequestMapping(value = \"remove\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void remove(HttpServletRequest httpRequest, @RequestParam String menuItemId\n ) throws IOException {\n DataToken dataToken = SecurityUtils.getDataToken(httpRequest);\n\n menuItemsRepository.delete(menuItemId);\n\n }",
"public void eliminar(Provincia provincia) throws BusinessErrorHelper;",
"int deleteByExample(PensionRoleMenuExample example);",
"private void deleteTodoMenu(User u) {\n\t\t\n\t}",
"public int deleteByPrimaryKey(Integer rolemenuId) throws SQLException {\r\n SysRoleMenu key = new SysRoleMenu();\r\n key.setRolemenuId(rolemenuId);\r\n int rows = sqlMapClient.delete(\"SYS_ROLE_MENU.ibatorgenerated_deleteByPrimaryKey\", key);\r\n return rows;\r\n }"
] | [
"0.6994609",
"0.68846726",
"0.61509174",
"0.6100023",
"0.6053029",
"0.60394585",
"0.5985198",
"0.5802081",
"0.5709053",
"0.5704449",
"0.5677756",
"0.5675624",
"0.5665343",
"0.56210625",
"0.5618312",
"0.56174684",
"0.56130904",
"0.5569753",
"0.55619556",
"0.5554812",
"0.55363697",
"0.5519429",
"0.5512247",
"0.5503322",
"0.54880255",
"0.5466922",
"0.5464399",
"0.54417986",
"0.54389143",
"0.54387486",
"0.54244316",
"0.5405658",
"0.5392177",
"0.5364578",
"0.5362598",
"0.5357724",
"0.5351362",
"0.53508854",
"0.5329261",
"0.53143525",
"0.53077656",
"0.5305044",
"0.5295007",
"0.5290626",
"0.5273968",
"0.52699137",
"0.52545696",
"0.525381",
"0.5246716",
"0.5243973",
"0.52406406",
"0.5233835",
"0.5229096",
"0.52240884",
"0.522095",
"0.521522",
"0.52114224",
"0.5201919",
"0.5194384",
"0.5191253",
"0.51907176",
"0.5188264",
"0.5180336",
"0.5177919",
"0.51715773",
"0.51696306",
"0.5168067",
"0.5166582",
"0.51636326",
"0.51559794",
"0.5150473",
"0.51489246",
"0.51483333",
"0.5140967",
"0.51372105",
"0.5136206",
"0.51293445",
"0.512819",
"0.5117067",
"0.5111323",
"0.510993",
"0.5106313",
"0.5105835",
"0.51039684",
"0.50994486",
"0.5097765",
"0.5097387",
"0.5097057",
"0.50900006",
"0.5081116",
"0.50808424",
"0.50805694",
"0.50775456",
"0.5077223",
"0.50759554",
"0.5075744",
"0.5067758",
"0.5062478",
"0.5054686",
"0.504925"
] | 0.7642089 | 0 |
Loads menu item icons. | public void loadSkin()
{
this.setIcon(new ImageIcon(
ImageLoader.getImage(ImageLoader.CALL_16x16_ICON)));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setIconsMenus() {\n ImageIcon iconNew = new javax.swing.ImageIcon(getClass().getResource(\"/image/novo.png\"));\n ImageIcon iconSearch = new javax.swing.ImageIcon(getClass().getResource(\"/image/procurar.19px.png\"));\n\n JMenuItem[] miNew = new JMenuItem[]{miModuloNovo, miIrradiacaoGlobalMesNovo, miInversorNovo,\n miProjetoNovo, miUsuarioNovo, miNovoCliente, miFornecedorNovo, miEPNovo};\n for (JMenuItem mi : miNew) {\n mi.setIcon(iconNew);\n mi.setMnemonic(KeyEvent.VK_N);\n }\n\n JMenuItem[] miSearch = new JMenuItem[]{miModuloPesquisar, miIrradiacaoGlobalMesPesquisar, miInversorPesquisar,\n miProjetoPesquisar, miUsuarioPesquisar, miPesquisarCliente, miFornecedorPesquisar, miEPPesquisar};\n for (JMenuItem mi : miSearch) {\n mi.setIcon(iconSearch);\n mi.setMnemonic(KeyEvent.VK_P);\n }\n }",
"Icon getMenuIcon();",
"private void loadItemsMaps()\n {\n _icons=new HashMap<String,List<Item>>(); \n _names=new HashMap<String,List<Item>>(); \n List<Item> items=ItemsManager.getInstance().getAllItems();\n for(Item item : items)\n {\n String icon=item.getIcon();\n if (icon!=null)\n {\n registerMapping(_icons,icon,item);\n String mainIconId=icon.substring(0,icon.indexOf('-'));\n registerMapping(_icons,mainIconId,item);\n String name=item.getName();\n registerMapping(_names,name,item);\n }\n }\n }",
"private static void loadIcons(Context context)\n\t{\n\t\tResources res = context.getResources();\n\t\tSONG_ICON = BitmapFactory.decodeResource(res, R.drawable.ic_tab_songs_selected);\n\t\tALBUM_ICON = BitmapFactory.decodeResource(res, R.drawable.ic_tab_albums_selected);\n\t\tARTIST_ICON = BitmapFactory.decodeResource(res, R.drawable.ic_tab_artists_selected);\n\t}",
"public void loadItemIcon() throws ApiException\n {\n itemIcon = ImageService.getInstance().getImage(String.valueOf(itemID), ImageTypes.ICON);\n }",
"@Override\n\tpublic List<Icon> getAllIcon() {\n\t\treturn this.menuDao.getAllIcon();\n\t}",
"private void initIcons() {\n \n \n addIcon(lblFondoRest, \"src/main/java/resource/fondo.png\");\n addIcon(lblCheckRest, \"src/main/java/resource/check.png\");\n \n }",
"private void initBaseIcons() {\n iconMonitor = new ImageIcon( getClass().getResource(\"/system.png\") );\n iconBattery = new ImageIcon( getClass().getResource(\"/klaptopdaemon.png\") );\n iconSearch = new ImageIcon( getClass().getResource(\"/xmag.png\") );\n iconJava = new ImageIcon( getClass().getResource(\"/java-icon.png\") );\n iconPrinter = new ImageIcon( getClass().getResource(\"/printer.png\") );\n iconRun = new ImageIcon( getClass().getResource(\"/run.png\") );\n }",
"public void initIcons(){\n\t \troot_iconsFileNames = new ArrayList<String>();\n\t root_iconsBitmaps = new ArrayList<Bitmap>(); \n \t\ttry{\n \t\t\tResources res = this.getResources();\n \t\t\tInputStream iconInputStream = res.openRawResource(R.raw.icons);\n \t\t\tZipInputStream zipStream = new ZipInputStream(iconInputStream);\n \t\t ZipEntry entry;\n\n \t\t while ((entry = zipStream.getNextEntry()) != null) {\n \t\t \t//file name may start with MACOSX. This is strange, ignore it.\n \t\t \tString fileName = entry.getName();\n \t\t \tif(fileName.length() > 1){\n\t \t\t \tif(fileName.contains(\".png\") && !entry.isDirectory()){\n\t \t\t \t\tif(!fileName.contains(\"MACOSX\")){ //OSX adds junk sometimes, ignore it\n\t \t\t \t\t\tfileName = fileName.replace(\"icons/\",\"\");\n\t \t\t \t\t\tBitmap iconBitmap = BitmapFactory.decodeStream(zipStream); \n\t \t\t \t\t\troot_iconsFileNames.add(fileName);\n\t \t\t \t\t\troot_iconsBitmaps.add(iconBitmap);\n\t \t\t \t\t\t//Log.i(\"ZZ\", \"loading bitmaps: \" + fileName); \n\t \t\t \t\t}\n\t \t\t \t} //macosx\n\t \t\t } // fileName\n \t\t }//end while\n \t\t \n \t\t //clean up\n \t\t if(zipStream != null){\n \t\t \tzipStream.close();\n \t\t }\n \t\t \n \t\t}catch(Exception ex){\n \t\t\t Log.i(\"ZZ\", \"getZippedIcon: \" + ex.toString()); \n \t\t}\t \n\t }",
"private void setIcons() {\r\n \t\r\n \tbackground = new ImageIcon(\"images/image_mainmenu.png\").getImage();\r\n \tstart = new ImageIcon(\"images/button_start.png\");\r\n \thowto = new ImageIcon(\"images/button_howtoplay.png\");\r\n \toptions = new ImageIcon(\"images/button_options.png\");\r\n \tlboards = new ImageIcon(\"images/button_lboards.png\");\r\n \texit = new ImageIcon(\"images/button_exit.png\");\t\r\n }",
"B itemIcon(ITEM item, Resource icon);",
"public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}",
"public static void loadItemTextures() {\n\t\tspriteTItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteRItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n boolean result = super.onCreateOptionsMenu(menu);\n menu.add(0, MENU_ADD_ID, 0, R.string.menu_category_add).setIcon(\n android.R.drawable.ic_menu_add);\n menu.add(0, MENU_VISUALIZE_ID, 0, R.string.menu_visualize)\n .setIcon(R.drawable.graph);\n menu.add(0, MENU_EDIT_ID, 0, R.string.menu_entry_edit).setIcon(\n android.R.drawable.ic_menu_edit);\n menu.add(0, MENU_PREFS_ID, 0, R.string.menu_app_prefs).setIcon(\n android.R.drawable.ic_menu_preferences);\n menu.add(0, MENU_HELP_ID, 0, R.string.menu_app_help).setIcon(\n android.R.drawable.ic_menu_help);\n return result;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n MenuItem menuItem = menu.findItem(R.id.action_notification);\n menuItem.setIcon(Converter.convertLayoutToImage(this, localStorage.getNotificationCount(), R.drawable.ic_baseline_notifications_24));\n return super.onCreateOptionsMenu(menu);\n }",
"static void loadCardIcons()\n {\n if(iconsLoaded == false)\n {\n //arrays for suits and ranks\n String[] suits = {\"C\", \"D\", \"H\", \"S\"};\n String[] ranks = {\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \n \"T\", \"A\", \"J\", \"Q\", \"K\", \"X\"};\n //load iconCards array\n for(int i = 0; i < suits.length; i++)\n {\n for(int k = 0; k < ranks.length; k++)\n {\n iconCards[i][k] = new ImageIcon(\"images/\" + ranks[k] + suits[i] + \".gif\");\n }\n }\n //set iconsLoaded to true\n iconsLoaded = true;\n }\n else //do nothing if icons have already been loaded\n {\n return;\n }\n }",
"private void setIcons(){\n\t\tfinal List<BufferedImage> icons = new ArrayList<BufferedImage>();\n\t\ttry {\n\t\t\ticons.add(ImageLoader.getBufferedImage(SMALL_ICON_PATH));\n\t\t\ticons.add(ImageLoader.getBufferedImage(BIG_ICON_PATH));\n\t\t} catch (IOException e) {\n\t\t\tmanager.handleException(e);\n\t\t}\n\t\tif(icons.size() > 0)\n\t\t\tsetIconImages(icons);\n\t}",
"protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n menu.getItem(0).setIcon(gameFragment.isFavorites()? R.drawable.ic_favorite: R.drawable.ic_favorite_border);\n\n return true;\n }",
"private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}",
"@Override\n @SideOnly(Side.CLIENT)\n public void registerIcons(final IconRegister register) {\n itemIcon = register.registerIcon(TextureHelper.getTextureFromName(this.getUnlocalizedName(), Locations.TEXTURE + \"tools/\"));\n }",
"private void readIcons(){\n\t\tString tag = \"\";\n\t\t\n\t\t//Handles tags that have no related icon\n\t\tImage unknownImg = null;\n\t\ttry {\n\t\t\tunknownImg = ImageIO.read(new File(ICON_FILE_PATH + \"Unknown.png\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\tfor(LinkedList<Node> list : targets){\n\t\t\tfor(Node node : list){\n\t\t\t\ttag = node.getTag();\n\t\t\t\tif(!iconMap.containsKey(tag)){\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tImage img = ImageIO.read(new File(ICON_FILE_PATH + tag + \".png\"));\n\t\t\t\t\t\ticonMap.put(tag, img);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\ticonMap.put(tag, unknownImg);\n\t\t\t\t\t\tSystem.err.println(tag + \" tag has no related icon\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Node node : nonTargetNodes){\n\t\t\ttag = node.getTag();\n\t\t\tif(!iconMap.containsKey(tag)){\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tImage img = ImageIO.read(new File(ICON_FILE_PATH + tag + \".png\"));\n\t\t\t\t\ticonMap.put(tag, img);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\ticonMap.put(tag, unknownImg);\n\t\t\t\t\tSystem.err.println(tag + \" tag has no related icon\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n setIconVisible(menu,true);\n return true;\n }",
"public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n MenuItem itemCart = menu.findItem(R.id.cart);\n icon = (LayerDrawable) itemCart.getIcon();\n return true;\n }",
"public void setupIcons() {\n try {\n tabLayout.getTabAt(0).setCustomView(getTabView(R.string.ic_user_black_bg, 0));\n tabLayout.getTabAt(1).setCustomView(getTabView(R.string.ic_hot_or_burn, 1));\n tabLayout.getTabAt(2).setCustomView(getTabView(R.string.ic_chat_1, 0));\n\n viewPager.addOnPageChangeListener(this);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }",
"private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }",
"public void cargarIconoX() {\r\n\t\tClassLoader cl = getClass().getClassLoader();\r\n\t\tURL url = cl.getResource(RUTA_ICONO_CERRAR);\r\n\t\tImageIcon imageIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(url));\r\n\t\tlblEmoticon.setIcon(imageIcon);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tmenu.add(0, MENU_TRANSLATE, 0, res.getText(R.string.translate))\n \t\t.setIcon(R.drawable.translate);\n menu.add(0, MENU_ROTATE, 0, res.getText(R.string.rotate))\n \t.setIcon(R.drawable.rotate);\n menu.add(0, MENU_SCALE, 0, res.getText(R.string.scale))\n \t.setIcon(R.drawable.scale); \n menu.add(0, MENU_SCREENSHOT, 0, res.getText(R.string.take_screenshot))\n \t\t.setIcon(R.drawable.screenshoticon);\n menu.add(0,MENU_INSTRUCTIONS,0,res.getText(R.string.instructions))\n .setIcon(R.drawable.help);\n return true;\n }",
"private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n //HOME = menu.findItem(android.R.id.home);\n //HOME.setIcon(new BitmapDrawable(toolBox.myPhoto));\n card = menu.getItem(0);\n star = menu.getItem(1);\n sett = menu.getItem(2);\n return super.onCreateOptionsMenu(menu);\n }",
"private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }",
"private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }",
"public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }",
"private void loadImage(String icon, String itemTypeLabel)\n {\n String url = MainActivity.IMAGE_URL + icon + \".png\";\n\n //we will replace this imageview with the correct one during switch\n ImageView ivCurrent = null;\n\n switch (itemTypeLabel)\n {\n case \"head\":\n ivCurrent = ivHead;\n break;\n case \"torso\":\n ivCurrent = ivChest;\n break;\n case \"feet\":\n ivCurrent = ivBoots;\n break;\n case \"hands\":\n ivCurrent = ivGloves;\n break;\n case \"shoulders\":\n ivCurrent = ivShoulders;\n break;\n case \"legs\":\n ivCurrent = ivLegs;\n break;\n case \"bracers\":\n ivCurrent = ivBracers;\n break;\n case \"mainHand\":\n ivCurrent = ivWeaponL;\n break;\n case \"offHand\":\n ivCurrent = ivWeaponR;\n break;\n case \"waist\":\n ivCurrent = ivBelt;\n break;\n case \"rightFinger\":\n ivCurrent = ivRingR;\n break;\n case \"leftFinger\":\n ivCurrent = ivRingL;\n break;\n case \"neck\":\n ivCurrent = ivAmulet;\n break;\n default:\n Toast.makeText(CharacterSheetActivity.this, \"Failed to find item type \" + itemTypeLabel, Toast.LENGTH_SHORT).show();\n }\n\n //load the images using their respective image URLs\n Picasso.with(CharacterSheetActivity.this).load(url).into(ivCurrent);\n }",
"private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_place_details, menu);\n MenuItem item = menu.findItem(R.id.action_fav);\n if (isFav)\n item.setIcon(R.drawable.ic_heart_fill_white);\n return true;\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"../Imagens/icon.png\")));\n }",
"public void iconSetup(){\r\n chessboard.addRedIcon(\"Assets/PlusR.png\");\r\n chessboard.addRedIcon(\"Assets/TriangleR.png\");\r\n chessboard.addRedIcon(\"Assets/ChevronR.png\");\r\n chessboard.addRedIcon(\"Assets/SunR.png\"); \r\n chessboard.addRedIcon(\"Assets/ArrowR.png\");\r\n \r\n chessboard.addBlueIcon(\"Assets/PlusB.png\");\r\n chessboard.addBlueIcon(\"Assets/TriangleB.png\");\r\n chessboard.addBlueIcon(\"Assets/ChevronB.png\");\r\n chessboard.addBlueIcon(\"Assets/SunB.png\");\r\n chessboard.addBlueIcon(\"Assets/ArrowB.png\");\r\n }",
"protected abstract void loadItemsInternal();",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }",
"private void reloadIconBaseDirs() {\n\t\t\n\t\t// Load dirs from XDG_DATA_DIRS\n\t\tString xdg_dir_env = System.getenv(\"XDG_DATA_DIRS\");\n\t\tif(xdg_dir_env != null && !xdg_dir_env.isEmpty()) {\n\t\t\tString[] xdg_dirs = xdg_dir_env.split(\":\");\n\t\t\tfor(String xdg_dir : xdg_dirs) {\n\t\t\t\taddDirToList(new File(xdg_dir, \"icons\"), iconBaseDirs);\n\t\t\t\taddDirToList(new File(xdg_dir, \"pixmaps\"), iconBaseDirs);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Load user's icon dir\n\t\taddDirToList(new File(System.getProperty(\"user.home\"), \".icons\"), iconBaseDirs);\n\t\taddDirToList(new File(System.getProperty(\"user.home\"), \".local/share/icons\"), iconBaseDirs);\n\t\t\n\t}",
"public List<Icon> getIcons(String token) throws RemoteException {\n return mainScreenProvider.getIcons(token);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (menu != null && menu.size() > 0) {\n for (int index = 0; index < menu.size(); index++) {\n Drawable newIcon = menu.getItem(index).getIcon();\n addColorFilter(newIcon);\n menu.getItem(index).setIcon(newIcon);\n }\n }\n return true;\n }",
"IconUris iconUris();",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n if (isFavorite) {\n menu.findItem(R.id.action_favorite).setIcon(R.drawable.favorite_checked);\n }\n return super.onPrepareOptionsMenu(menu);\n }",
"public void loadImages() {\n\t\tpigsty = new ImageIcon(\"images/property/pigsty.png\");\n\t}",
"public interface PluginIcons {\n\n Icon playFirst = IconLoader.getIcon(\"/icons/play_first.svg\", PluginIcons.class);\n Icon playPrevious = IconLoader.getIcon(\"/icons/play_back.svg\", PluginIcons.class);\n Icon play = IconLoader.getIcon(\"/icons/toolWindowRun.svg\", PluginIcons.class);\n Icon pause = IconLoader.getIcon(\"/icons/pause.svg\", PluginIcons.class);\n Icon playNext = IconLoader.getIcon(\"/icons/play_forward.svg\", PluginIcons.class);\n Icon playLast = IconLoader.getIcon(\"/icons/play_last.svg\", PluginIcons.class);\n Icon volume = IconLoader.getIcon(\"/icons/volume_up.svg\", PluginIcons.class);\n Icon volumeOff = IconLoader.getIcon(\"/icons/volume_off.svg\", PluginIcons.class);\n Icon autoPlayOff = IconLoader.getIcon(\"/icons/infinity.svg\", PluginIcons.class);\n Icon autoPlayOn = IconLoader.getIcon(\"/icons/infinity_on.svg\", PluginIcons.class);\n Icon showCodeOff = IconLoader.getIcon(\"/icons/showCode.svg\", PluginIcons.class);\n Icon showCodeOn = IconLoader.getIcon(\"/icons/showCode_on.svg\", PluginIcons.class);\n Icon jumpToCode = IconLoader.getIcon(\"/icons/stepOutCodeBlock.svg\", PluginIcons.class);\n Icon playCodecast = IconLoader.getIcon(\"/icons/play_codecast.svg\", PluginIcons.class);\n Icon refresh = IconLoader.getIcon(\"/icons/refresh.svg\", PluginIcons.class);\n}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n boolean isLight = true;\r\n\r\n menu.add(\"Refresh\")\r\n .setIcon(isLight ? R.drawable.ic_refresh_inverse : R.drawable.ic_refresh)\r\n .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);\r\n\r\n /*\r\n * menu.add(\"Search\").setIcon(isLight ? R.drawable.ic_search_inverse :\r\n * R.drawable.ic_search)\r\n * .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\r\n */\r\n menu.add(\"Save\").setIcon(isLight ? R.drawable.ic_compose_inverse : R.drawable.ic_compose)\r\n .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\r\n\r\n menu.add(\"Search\").setIcon(isLight ? R.drawable.ic_search_inverse : R.drawable.ic_search)\r\n .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\r\n\r\n menu.add(\"Refresh\")\r\n .setIcon(isLight ? R.drawable.ic_refresh_inverse : R.drawable.ic_refresh)\r\n .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\r\n\r\n return true;\r\n }",
"private static void loadCardIcons() {\n //If the images folder doesn't exist,\n if (!(new File(GUICard.iconFolderPath).exists())) {\n //Prompt the user for a valid image folder.\n JOptionPane.showMessageDialog(null, \"By deafult ../images/ is used to store card icon images, but ../images/ does not exist. Press OK to select the folder where card icon images are stored. Press cancel in the forthcoming dialog window to exit this program.\");\n JFileChooser chooser = new JFileChooser(\".\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n chooser.setMultiSelectionEnabled(false);\n chooser.showDialog(null, \"Select\");\n File selectedFile = chooser.getSelectedFile();\n //Exit the program if a valid image folder is not provided.\n if (selectedFile == null)\n System.exit(0);\n GUICard.iconFolderPath = selectedFile.getPath();\n System.out.println(iconFolderPath);\n }\n\n //Load each of the cards into the appropriate position in the iconCards array.\n for (int i = 0; i < Card.validCardValues.length; i++)\n for (int j = 0; j < VALID_SUITS.length; j++) {\n //If a card cannot be loaded, tell the user and exit the application.\n if (!new File(iconFolderPath + \"/\" + Card.validCardValues[i] + VALID_SUITS[j] + \".gif\").exists()) {\n JOptionPane.showMessageDialog(null, Card.validCardValues[i] + VALID_SUITS[j] + \".gif could not be found in the icon folder. Program execution will now stop.\");\n System.exit(0);\n }\n iconCards[i][j] = new ImageIcon(iconFolderPath + \"/\" + Card.validCardValues[i] + VALID_SUITS[j] + \".gif\");\n }\n //Load the back of the card icon.\n iconBack = new ImageIcon(iconFolderPath + \"/BK.gif\");\n GUICard.iconsLoaded = true; //Make sure this function is not called again.\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n MenuItem menuItem = menu.findItem(R.id.action_room_users);\n menuItem.setIcon(\n new IconicsDrawable(this, FontAwesome.Icon.faw_users).actionBar().color(Color.WHITE));\n\n return true;\n }",
"public TitleIconItem(){}",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"radarlogoIcon.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\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 }",
"private void initResources()\n {\n try\n {\n searchBackgroundImage = ImageIO.read(new File(IMAGES_DIR + \"logo.jpg\"));\n searchIcon = ImageIO.read(new File(IMAGES_DIR + \"search_icon.png\"));\n miniMenuAddImage = ImageIO.read(new File(IMAGES_DIR + \"addSmallIcon.png\"));\n miniMenuRemoveImage = ImageIO.read(new File(IMAGES_DIR + \"removeSmallIcon.png\"));\n updateMiniImage = ImageIO.read(new File(IMAGES_DIR + \"up.png\"));\n playButtonImage = ImageIO.read(new File(IMAGES_DIR + \"play_arrow.png\"));\n stopButtonImage = ImageIO.read(new File(IMAGES_DIR + \"stop_square.png\"));\n openFileImage = ImageIO.read(new File(IMAGES_DIR + \"open_icon.png\"));\n newFileImage = ImageIO.read(new File(IMAGES_DIR + \"new_file.png\"));\n settingsImage = ImageIO.read(new File(IMAGES_DIR + \"settings.png\"));\n spiderImage = ImageIO.read(new File(IMAGES_DIR + \"spider_icon.png\"));\n searchIconDark = ImageIO.read(new File(IMAGES_DIR + \"search_icon_dark.png\"));\n webIconImage = ImageIO.read(new File(IMAGES_DIR + \"web_icon.png\"));\n clipboardImage = ImageIO.read(new File(IMAGES_DIR + \"clipboard.png\"));\n colorIconImage = ImageIO.read(new File(IMAGES_DIR + \"color_icon.png\"));\n transitionSpinnerImage = IMAGES_DIR + \"loading.gif\";\n processingImage = IMAGES_DIR + \"processing.gif\";\n processingMiniImage = IMAGES_DIR + \"spinner.gif\";\n }\n \n catch(IOException e)\n {\n JOptionPane.showMessageDialog(null, \"[Error] Failed to load resource(s)\");\n }\n }",
"private void scanForIcons() {\n\t\t\ttry {\n\t\t\t\tFile graphicDir = new File(helpIconBase + File.separator);\n\t\t\t\tlist = filter(graphicDir.listFiles(), \"tip\", \".png\");\n\t\t\t} catch (NullPointerException npe) {\n\t\t\t\tSystem.err.println(npe);\n\t\t\t\tlist = null;\n\t\t\t}\n\t\t}",
"private static IconResource initIconResource() {\n\t\tIconResource iconResource = new IconResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\ticonResource.addResource(IconTypeAWMS.HOME.name(), iconPath + \"home.png\");\n\t\ticonResource.addResource(IconTypeAWMS.INPUT_ORDER.name(), iconPath + \"input-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.OUTPUT_ORDER.name(), iconPath + \"output-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.PLUS.name(), iconPath + \"plus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.MINUS.name(), iconPath + \"minus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.EDIT.name(), iconPath + \"edit.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CONFIRM.name(), iconPath + \"confirm.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CANCEL.name(), iconPath + \"cancel.png\");\n\t\ticonResource.addResource(IconTypeAWMS.USER.name(), iconPath + \"user.png\");\n\t\t\n\t\treturn iconResource;\n\t}",
"public HashMap<String,Image> getIcons(){\n\t\treturn iconMap;\n\t}",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"MainLogo.png\")));\n }",
"private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }",
"void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }",
"public void initializeMenuBarLocalization() {\n\t\tmenuSettings.setText(bundle.getString(\"mVSettings\"));\n\t\tmenuItemPreferences.setText(bundle.getString(\"mVPreferences\"));\n\t\tuserSettings.setText(bundle.getString(\"mVUsersettings\"));\n\t\tloginoption.setText(bundle.getString(\"mVLogin\"));\n\t\tmenuHelp.setText(bundle.getString(\"mVHelp\"));\n\t\tmenuItemAbout.setText(bundle.getString(\"mVAbout\"));\n\t\tmenuItemUserguide.setText(bundle.getString(\"mVUserguide\"));\n\t\tmenuLanguage.setText(bundle.getString(\"mVLanguage\"));\n\t}",
"public abstract String getIconPath();",
"private void setUpMenu() {\n\t\tresideMenu = new ResideMenu(this);\n\t\tresideMenu.setBackground(R.drawable.menu_background);\n\t\tresideMenu.attachToActivity(this);\n\t\tresideMenu.setMenuListener(menuListener);\n\t\t// valid scale factor is between 0.0f and 1.0f. leftmenu'width is\n\t\t// 150dip.\n\t\tresideMenu.setScaleValue(0.6f);\n\n\t\t// create menu items;\n\t\titemGame = new ResideMenuItem(this, R.drawable.icon_game,\n\t\t\t\tgetResources().getString(R.string.strGame));\n\t\titemBook = new ResideMenuItem(this, R.drawable.icon_book,\n\t\t\t\tgetResources().getString(R.string.strBook));\n\t\titemNews = new ResideMenuItem(this, R.drawable.icon_news,\n\t\t\t\tgetResources().getString(R.string.strNews));\n\t\t// itemSettings = new ResideMenuItem(this, R.drawable.icon_setting,\n\t\t// getResources().getString(R.string.strSetting));\n\t\titemLogin = new ResideMenuItem(this, R.drawable.icon_share,\n\t\t\t\tgetResources().getString(R.string.strShare));\n\t\titemBookPDF = new ResideMenuItem(this, R.drawable.icon_bookpdf,\n\t\t\t\tgetResources().getString(R.string.strBookPDF));\n\t\titemMore = new ResideMenuItem(this, R.drawable.icon_more,\n\t\t\t\tgetResources().getString(R.string.strMore));\n\n\t\titemGame.setOnClickListener(this);\n\t\titemBook.setOnClickListener(this);\n\t\titemNews.setOnClickListener(this);\n\t\t// itemSettings.setOnClickListener(this);\n\t\titemBookPDF.setOnClickListener(this);\n\t\titemMore.setOnClickListener(this);\n\t\titemLogin.setOnClickListener(this);\n\n\t\tresideMenu.addMenuItem(itemBookPDF, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemBook, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemNews, ResideMenu.DIRECTION_LEFT);\n\t\t// resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n\n\t\tresideMenu.addMenuItem(itemGame, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemLogin, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemMore, ResideMenu.DIRECTION_RIGHT);\n\n\t\t// You can disable a direction by setting ->\n\t\t// resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n\t\tfindViewById(R.id.title_bar_left_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tfindViewById(R.id.title_bar_right_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"protected void registerExtendMenuItem(){\n for(int i = 0; i < itemStrings.length; i++){\n inputMenu.registerExtendMenuItem(itemStrings[i], itemdrawables[i], itemIds[i], extendMenuItemClickListener);\n }\n }",
"@Override\n\tprotected void loadButton(Resources res) {\n\t\tif (which_menu_button == MB_SELECT_LEVEL) {\n\t\t\timage = BitmapFactory.decodeResource(res,R.drawable.mb_select_level);\n\t\t\tlocation.x = screen_width*3/4 - image.getWidth()/2;\n\t\t\tlocation.y = screen_height*5/6 - image.getHeight()/2;\n\t\t} else if (which_menu_button == MB_CONTINUE) {\n\t\t\timage = BitmapFactory.decodeResource(res,R.drawable.mb_continue);\n\t\t\tlocation.x = screen_width*1/2 - image.getWidth()/2;\n\t\t\tlocation.y = screen_height*5/6 - image.getHeight()/2;\n\t\t} else if (which_menu_button == MB_OPTIONS) {\n\t\t\timage = BitmapFactory.decodeResource(res,R.drawable.mb_options);\n\t\t\tlocation.x = screen_width*1/4 - image.getWidth()/2;\n\t\t\tlocation.y = screen_height*5/6 - image.getHeight()/2;\n\t\t} else if (which_menu_button == MB_BACK) {\n\t\t\timage = BitmapFactory.decodeResource(res,R.drawable.mb_back);\n\t\t\tlocation.x = screen_width*1/7 - image.getWidth()/2;\n\t\t\tlocation.y = screen_height*7/8 - image.getHeight()/2;\n\t\t} else if (which_menu_button == PAUSE_RESUME) {\n\t\t\timage = BitmapFactory.decodeResource(res,R.drawable.pause_resume);\n\t\t\tlocation.x = screen_width/2 - image.getWidth()/2;\n\t\t\tlocation.y = screen_height*1/3 - image.getHeight()/2;\n\t\t} else if (which_menu_button == PAUSE_SAVE_QUIT) {\n\t\t\timage = BitmapFactory.decodeResource(res,R.drawable.pause_save_quit);\n\t\t\tlocation.x = screen_width/2 - image.getWidth()/2;\n\t\t\tlocation.y = screen_height*2/3 - image.getHeight()/2;\t\t\n\t\t} else if (which_menu_button == PAUSE_QUIT) {\n\t\t\timage = BitmapFactory.decodeResource(res,R.drawable.pause_quit);\n\t\t\tlocation.x = 10;\n\t\t\tlocation.y = screen_height - image.getHeight() - 10;;\t\n\t\t}\n\t}",
"@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}",
"public void getMenuItems(){ \n\t\tParseUser user = ParseUser.getCurrentUser();\n\t\tmenu = user.getParseObject(\"menu\");\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"Item\");\n\t\tquery.whereEqualTo(\"menu\", menu);\n\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\t\t\tpublic void done(List<ParseObject> menuItems, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tlistMenuItems(menuItems);\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }",
"public void loadImages() {\n\t\tcowLeft1 = new ImageIcon(\"images/animal/cow1left.png\");\n\t\tcowLeft2 = new ImageIcon(\"images/animal/cow2left.png\");\n\t\tcowLeft3 = new ImageIcon(\"images/animal/cow1left.png\");\n\t\tcowRight1 = new ImageIcon(\"images/animal/cow1right.png\");\n\t\tcowRight2 = new ImageIcon(\"images/animal/cow2right.png\");\n\t\tcowRight3 = new ImageIcon(\"images/animal/cow1right.png\");\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}",
"protected Icon getArrowIcon ( final JMenu menu )\n {\n if ( menu.getParent () instanceof JPopupMenu )\n {\n if ( menu.isEnabled () )\n {\n return ltr ? arrowRightIcon : arrowLeftIcon;\n }\n else\n {\n return ltr ? ImageUtils.getDisabledCopy ( \"Menu.arrowRightIcon\", arrowRightIcon ) :\n ImageUtils.getDisabledCopy ( \"Menu.arrowLeftIcon\", arrowLeftIcon );\n }\n }\n else\n {\n return null;\n }\n }",
"private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }",
"public void initMenu(){\n\t}",
"public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\n\t}",
"private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n mItem = menu.findItem(R.id.main_actionbar_menu_notification);\n setNotificationIcon();\n return true;\n }",
"private void setUpMenu() {\n resideMenu = new ResideMenu(this);\n\n resideMenu.setBackground(R.drawable.menu_background);\n resideMenu.attachToActivity(this);\n resideMenu.setMenuListener(menuListener);\n resideMenu.setScaleValue(0.6f);\n\n // create menu items;\n itemHome = new ResideMenuItem(this, R.drawable.icon_profile, \"Home\");\n itemSerre = new ResideMenuItem(this, R.drawable.serre, \"GreenHouse\");\n itemControl = new ResideMenuItem(this, R.drawable.ctrl, \"Control\");\n itemTable = new ResideMenuItem(this, R.drawable.database, \"Parametre\");\n\n // itemProfile = new ResideMenuItem(this, R.drawable.user, \"Profile\");\n // itemSettings = new ResideMenuItem(this, R.drawable.stat_n, \"Statistique\");\n itemPicture = new ResideMenuItem(this, R.drawable.cam, \"Picture\");\n itemLog = new ResideMenuItem(this, R.drawable.log, \"Log file \");\n\n itemLogout = new ResideMenuItem(this, R.drawable.logout, \"Logout\");\n\n\n\n itemHome.setOnClickListener(this);\n itemSerre.setOnClickListener(this);\n itemControl.setOnClickListener(this);\n itemTable.setOnClickListener(this);\n\n// itemProfile.setOnClickListener(this);\n // itemSettings.setOnClickListener(this);\n itemLogout.setOnClickListener(this);\n itemPicture.setOnClickListener(this);\n itemLog.setOnClickListener(this);\n\n\n resideMenu.addMenuItem(itemHome, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemSerre, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemControl, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemTable, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemLog, ResideMenu.DIRECTION_LEFT);\n\n\n // resideMenu.addMenuItem(itemProfile, ResideMenu.DIRECTION_RIGHT);\n // resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n resideMenu.addMenuItem(itemPicture, ResideMenu.DIRECTION_RIGHT);\n\n resideMenu.addMenuItem(itemLogout, ResideMenu.DIRECTION_RIGHT);\n\n // You can disable a direction by setting ->\n // resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n findViewById(R.id.title_bar_left_menu).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n resideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n }\n });\n findViewById(R.id.title_bar_right_menu).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n resideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n }\n });\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }",
"private final Icon loadIcon(String iconpath) {\n\t\tIcon icon = null;\n\t\tClassLoader classLoader = Thread.currentThread()\n\t\t\t\t.getContextClassLoader();\n\t\tInputStream is = classLoader.getResourceAsStream(iconpath);\n\t\tif (is != null && is instanceof BufferedInputStream) {\n\t\t\tBufferedInputStream bis = (BufferedInputStream) is;\n\t\t\ttry {\n\t\t\t\tbyte[] iconData = new byte[bis.available()];\n\t\t\t\tbis.read(iconData);\n\t\t\t\ticon = new ImageIcon(iconData);\n\t\t\t\tbis.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// Log that icon cannot be loaded.\n\t\t\t\tlog.warn(\"Could not load icon: \" + iconpath);\n\t\t\t}\n\t\t} else {\n\t\t\t// Log that icon cannot be found.\n\t\t\tlog.warn(\"Could not find icon: \" + iconpath);\n\t\t}\n\t\treturn icon;\n\t}",
"public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.notificatin_menu, menu);\n\n // Get the notifications MenuItem and\n // its LayerDrawable (layer-list)\n MenuItem item = menu.findItem(R.id.notification);\n /* BitmapDrawable iconBitmap = (BitmapDrawable) item.getIcon();\n LayerDrawable iconLayer = new LayerDrawable(new Drawable[] { iconBitmap });*/\n //setBadgeCount(this, iconLayer, \"0\");\n icon = (LayerDrawable) item.getIcon();\n MenuItem item1 = menu.findItem(R.id.setting);\n item1.setVisible(false);\n\n // Update LayerDrawable's BadgeDrawable\n\n Utils.setBadgeCount(this, icon, String.valueOf(mNotificationsCount));\n\n return true;\n }",
"public String iconResource() {\n return \"/org/netbeans/core/resources/actions/addJarArchive.gif\"; // NOI18N\n }",
"public void init() {\n menus.values().forEach(ToolbarSubMenuMenu::init);\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }",
"private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}",
"private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }",
"private void loadAnimations() {\n loadImages(imagesFront, \"F\");\n loadImages(imagesLeft, \"L\");\n loadImages(imagesRight, \"R\");\n loadImages(imagesBack, \"B\");\n }",
"protected void addImageIcons(String key) {\n Image normal = ResourceManager.getImage(\"orderButton.normal.\" + key);\n Image highlighted = ResourceManager.getImage(\"orderButton.highlighted.\" + key);\n Image pressed = ResourceManager.getImage(\"orderButton.pressed.\" + key);\n Image disabled = ResourceManager.getImage(\"orderButton.disabled.\" + key);\n orderButtonImageCount = ((normal == null) ? 0 : 1)\n + ((highlighted == null) ? 0 : 1)\n + ((pressed == null) ? 0 : 1)\n + ((disabled == null) ? 0 : 1);\n if (hasOrderButtons()) {\n putValue(BUTTON_IMAGE, new ImageIcon(normal));\n putValue(BUTTON_ROLLOVER_IMAGE, new ImageIcon(highlighted));\n putValue(BUTTON_PRESSED_IMAGE, new ImageIcon(pressed));\n putValue(BUTTON_DISABLED_IMAGE, new ImageIcon(disabled));\n } else {\n logger.warning(\"Missing \" + (4-orderButtonImageCount)\n + \" orderButton images for \" + getId());\n }\n }",
"private void addMenuItems() {\n PopupMenu popup = new PopupMenu();\n MenuItem defaultItem = new MenuItem(\"Exit\");\n \n defaultItem.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n System.out.println(\"Exiting...\");\n System.exit(0);\n }\n });\n \n popup.add(defaultItem);\n \n this.trayicon.setPopupMenu(popup);\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\tpublic void loadImages() {\n\t\tsuper.setImage((new ImageIcon(\"pacpix/QuestionCandy.png\")).getImage());\t\n\t}",
"private void m16075b() {\n this.f13513b = (ImageView) getInflater().inflate(C0633g.abc_list_menu_item_icon, this, false);\n addView(this.f13513b, 0);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n MenuItem menuItem = menu.findItem(R.id.testAction);\n menuItem.setIcon(buildCounterDrawable(count, R.drawable.ic_notification));\n\n return true;\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\r\n MenuInflater inflater = getMenuInflater();\r\n getMenuInflater().inflate(R.menu.menu_main, menu);\r\n MenuItem mi = (MenuItem) menu.getItem(2);\r\n\r\n if (mSound == false)\r\n mi.setIcon(R.drawable.mute);\r\n else\r\n mi.setIcon(R.drawable.sound);\r\n return true;\r\n }",
"public void setIcon(Image i) {icon = i;}",
"private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }",
"private void initializeContextMenus() {\n\t\tinitializeMenuForListView();\n\t\tinitializeMenuForPairsListView();\n\t}"
] | [
"0.7066193",
"0.68931264",
"0.68900996",
"0.6693463",
"0.6635975",
"0.65678394",
"0.64856607",
"0.63316244",
"0.62814134",
"0.6258062",
"0.6246002",
"0.6228387",
"0.6221887",
"0.6195968",
"0.6138439",
"0.612946",
"0.61285394",
"0.6061562",
"0.59314096",
"0.58737785",
"0.583544",
"0.5822487",
"0.5807621",
"0.58063436",
"0.5769476",
"0.57420295",
"0.5736176",
"0.5711366",
"0.5698632",
"0.5693783",
"0.56784874",
"0.5672367",
"0.5671252",
"0.56699294",
"0.56601614",
"0.56211406",
"0.5611503",
"0.5610563",
"0.56059855",
"0.5604858",
"0.55998755",
"0.5594349",
"0.5583791",
"0.55784667",
"0.5578098",
"0.5560561",
"0.55591404",
"0.55484843",
"0.55408305",
"0.5536785",
"0.55322254",
"0.552554",
"0.55199504",
"0.55179244",
"0.5498525",
"0.5477447",
"0.54761434",
"0.54702324",
"0.54655015",
"0.54612243",
"0.54544777",
"0.5418532",
"0.5414841",
"0.5398394",
"0.53931063",
"0.53885067",
"0.5388066",
"0.5378505",
"0.5378159",
"0.5377027",
"0.5371116",
"0.5367098",
"0.5366558",
"0.5355885",
"0.53495824",
"0.5349361",
"0.5348563",
"0.534028",
"0.53402746",
"0.5337554",
"0.53338814",
"0.53334993",
"0.5332543",
"0.53296494",
"0.5328195",
"0.5326819",
"0.53225774",
"0.53200823",
"0.531233",
"0.53020597",
"0.53010654",
"0.5299214",
"0.5294836",
"0.52899325",
"0.5289423",
"0.52893484",
"0.5284964",
"0.5271372",
"0.5271294",
"0.52691925"
] | 0.53949434 | 64 |
Check whether any auto answer option is enabled for a protocol. | private static boolean isAutoAnswerEnabled(
ProtocolProviderService providerService)
{
OperationSetBasicAutoAnswer opset = providerService
.getOperationSet(OperationSetBasicAutoAnswer.class);
OperationSetAdvancedAutoAnswer opSetAdvanced = providerService
.getOperationSet(OperationSetAdvancedAutoAnswer.class);
if(opset == null)
return false;
if(opSetAdvanced != null)
{
if(opSetAdvanced.isAutoAnswerConditionSet())
{
return true;
}
if(StringUtils.isNotEmpty(opSetAdvanced.getCallForward()))
{
return true;
}
}
return opset.isAutoAnswerWithVideoSet()
|| opset.isAutoAnswerUnconditionalSet();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasProtocol();",
"public boolean isSetProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(PROTOCOL$0) != null;\n }\n }",
"public boolean hasProtocol() {\n return protocolBuilder_ != null || protocol_ != null;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkProtocol() {\n\t\tboolean flag = oTest.checkProtocol();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}",
"public boolean isSetAutoReply()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOREPLY$18) != 0;\n }\n }",
"public boolean getHintsEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"hints_switch\", true);\n }",
"@java.lang.Override\n public boolean hasProtocol() {\n return protocol_ != null;\n }",
"boolean hasSocketProtocol();",
"boolean hasAutomlActionRecognitionConfig();",
"boolean isSMSPromptEnabled();",
"boolean hasOptions();",
"boolean hasOptions();",
"boolean hasOptions();",
"boolean hasOptions();",
"boolean hasOptions();",
"boolean hasOptions();",
"private boolean isVoicemailAvailable() {\n boolean promptEnabled = Settings.System.getInt(getActivity().getContentResolver(),\n Settings.System.MULTI_SIM_VOICE_PROMPT, 0) == 1;\n Log.d(TAG, \"prompt enabled : \"+ promptEnabled);\n if (promptEnabled) {\n return hasVMNumber();\n } else {\n try {\n mSubscription = MSimTelephonyManager.getDefault().getPreferredVoiceSubscription();\n return (MSimTelephonyManager.getDefault().getVoiceMailNumber(mSubscription) != null);\n } catch (SecurityException se) {\n // Possibly no READ_PHONE_STATE privilege.\n Log.w(TAG, \"SecurityException is thrown. Maybe privilege isn't sufficient.\");\n }\n }\n return false;\n }",
"boolean hasInitialPromptFulfillment();",
"public boolean hasAUTORECEIPTAPPL() {\n return fieldSetFlags()[7];\n }",
"public boolean isValidProtocol() {\n\t\treturn (null != this.getSmtpProtocol()\n\t\t\t\t&& this.getSmtpProtocol().intValue() >= 0\n\t\t\t\t&& this.getSmtpProtocol().intValue() <= 2);\n\t}",
"boolean hasNetworkSettings();",
"boolean hasReply();",
"public boolean hasAnswers() {\n return fieldSetFlags()[20];\n }",
"public boolean isAutoConnect() {\n return agentConfig.getAutoConnect();\n }",
"Boolean getIsAnswered();",
"public boolean getAutoReply()\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(AUTOREPLY$18, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"boolean hasAutomatic();",
"public boolean hasCorrectAnswer() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"public static boolean isNetworkSettingsApkAvailable() {\n // check whether the target handler exist in system\n boolean isVendorNetworkSettingApkAvailable = false;\n IExtTelephony extTelephony = getIExtTelephony();\n try {\n if (extTelephony != null &&\n extTelephony.isVendorApkAvailable(\"com.qualcomm.qti.networksetting\")) {\n isVendorNetworkSettingApkAvailable = true;\n }\n } catch (RemoteException ex) {\n // could not connect to extphone service, launch the default activity\n log(\"couldn't connect to extphone service, launch the default activity\");\n }\n return isVendorNetworkSettingApkAvailable;\n }",
"boolean hasNetworkPolicyConfig();",
"@java.lang.Override\n public boolean hasCorrectAnswer() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"boolean hasDdzConfirmRule();",
"public boolean isSetAutoReplyTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOREPLYTRIGGEREDSEND$20) != 0;\n }\n }",
"public boolean sdp200AckEnabled();",
"public void verifyBusyeAutoresponseIsEnabled() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.busyAutoResponseCheckboxEnabled)).isDisplayed();\n\t}",
"public boolean isFromAuthoritative()\n {\n if ((this.flag & 0x0400) == 0)\n {\n // not from a authoritative server\n return false;\n }\n\n else return true;\n }",
"boolean hasIsAutoBet();",
"void verifyModesEnable(String mode);",
"public String prefsAutomaticallyCheck();",
"public boolean presenceCheck()\r\n\t{\r\n\t\treturn validateAnswer();\r\n\t}",
"private boolean hasAlreadyAnswered() {\n boolean hasAnswered = false;\n if(isGameMaster()) {\n try {\n if(mGameModel.getGameMaster().isDidPlayerAnswer()) {\n hasAnswered = true;\n }\n } catch (NullPointerException e) {\n\n }\n } else {\n try {\n if(mGameModel.getGameSlave().isDidPlayerAnswer()) {\n hasAnswered = true;\n }\n } catch (NullPointerException e) {\n\n }\n }\n return hasAnswered;\n }",
"boolean supportsConnects();",
"public boolean isBot() {\n//\t\treturn this.getUserIO().checkConnection();\n\t\treturn false;\n\t}",
"protected boolean alreadyAnswered(final AuthScheme scheme, final String host, final int port, final boolean proxy) {\n return answerMarks_.contains(buildKey(scheme, host, port, proxy));\n }",
"boolean isSending();",
"public boolean IsEnableOptionMenu() {\n if (this.f12125b.mo8885u()) {\n C2331d.m10114a((Activity) this, C2328a.ON_ERROR_NOW_PIC_CAPTURE, (Bundle) null);\n return false;\n } else if (!this.f12125b.mo8871g()) {\n return false;\n } else {\n if (!((Boolean) this.f12125b.f12207ad.mo3217b()).booleanValue()) {\n return false;\n }\n if (!C2274o.m9889M(this.f12125b.mo8842J()) && !C2274o.m9890N(this.f12125b.mo8842J())) {\n return true;\n }\n C2331d.m10114a((Activity) this, C2328a.ON_CANNOT_CHANGE_SETUP, (Bundle) null);\n return false;\n }\n }",
"boolean hasCorrectAnswer();",
"public boolean hasInitialPromptFulfillment() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean isSetAutoForwardTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTRIGGEREDSEND$16) != 0;\n }\n }",
"public boolean isAnswered() {\n\t\tfor (boolean b : this.checked) {\n\t\t\tif (b)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean checkEssentialConnects() {\r\n\t\treturn (animalsHash != null && questionChooser != null);\r\n\t}",
"boolean hasSendMessage();",
"@Override\n public boolean isPromptAnswered() {\n return ((mSelectedIndex >= 0 && mSelectedIndex < mChoices.size()) || (mSelectedIndex >= 0 && mSelectedIndex < mChoices\n .size() + mCustomChoices.size()));\n }",
"public boolean isEchoCancellerCalibrationRequired();",
"boolean hasCanIpForward();",
"public boolean isProtocolValid(String prot) {\n for (int i = 0; i < protocols.length; i++) {\n if (protocols[i].equals(prot)) {\n return true;\n }\n }\n // No match has been found\n return false;\n }",
"public void verifyOfflineAutoresponseIsEnabled() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.offlineAutoresponseCheckboxEnabled)).isDisplayed();\n\t}",
"private boolean m21868l() {\n String[] split;\n if (!m21858b(this.f16409k, \"android.permission.INTERNET\")) {\n return false;\n }\n String[] strArr = {\"/system/bin/netcfg\"};\n StringBuilder sb = new StringBuilder();\n try {\n ProcessBuilder processBuilder = new ProcessBuilder(strArr);\n processBuilder.directory(new File(\"/system/bin/\"));\n processBuilder.redirectErrorStream(true);\n InputStream inputStream = processBuilder.start().getInputStream();\n byte[] bArr = new byte[C1245d.f3947iP];\n while (inputStream.read(bArr) != -1) {\n sb.append(new String(bArr));\n }\n inputStream.close();\n } catch (Exception unused) {\n }\n String sb2 = sb.toString();\n if (TextUtils.isEmpty(sb2)) {\n return false;\n }\n for (String str : sb2.split(\"\\n\")) {\n if ((str.contains(\"wlan0\") || str.contains(\"tunl0\") || str.contains(\"eth0\")) && str.contains(\"10.0.2.15\")) {\n return true;\n }\n }\n return false;\n }",
"public static boolean hasAddon(String name) {\n\t\tif (!init) {\n\t\t\tinit();\n\t\t}\n\n\t\tfor (int i = 0; i < installedAddons.size(); i++) {\n\t\t\tProtocolDescriptor descriptor = installedAddons.get(i);\n\n\t\t\tif (((Standardprotocol)descriptor.getProtocol())\n\t\t\t\t\t.getName().equalsIgnoreCase(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isIPVoiceCallSupported() {\n\t\tLogger.i(TAG, \"isIPVoiceCallSupported value \" + ipVoiceCall);\n\t\treturn ipVoiceCall;\t\t\t\t\n\t}",
"boolean hasConfigConnectorConfig();",
"boolean hasDnsSettings();",
"@Override\r\n public boolean getDefaultAnswer() {\n return true;\r\n }",
"boolean hasResponsePort();",
"public boolean tunnelAvailable();",
"public boolean getAutoNegotiation() {\n return autoNegotiation;\n }",
"public boolean getAutoConnect() {\n return agentConfig.getAutoConnect();\n }",
"boolean hasResponseAddress();",
"public boolean isOptionnel() {\r\n\t\treturn optionnel;\r\n\t}",
"public boolean isShowAnswerBtnPresent() {\n\t\treturn isElementPresent(By.id(\"btn_answer_1-1\"));\n\t}",
"private boolean isVoipAvailable() {\n\t\tint IsInternetCallEnabled = android.provider.Settings.System.getInt(\n\t\t\t\tgetContentResolver(),\n\t\t\t\tandroid.provider.Settings.System.ENABLE_INTERNET_CALL, 0);\n\n\t\treturn (SipManager.isVoipSupported(getActivity()))\n\t\t\t\t&& (IsInternetCallEnabled != 0);\n\n\t}",
"protected abstract boolean isConfirmEnabled();",
"public boolean needsOption(Fw fw) {\n\t\treturn false;\n\t}",
"boolean hasForwardingParams();",
"boolean hasExplicitContentDetectionConfig();",
"boolean hasBitcoinAddress();",
"public boolean isInterfaceConfigured() {\n\t\treturn (imsProxyAddr != null) && (imsProxyAddr.length() > 0);\n\t}",
"public boolean isAutoTestOn(){\n\t\treturn doc.getElementsByTagName(\"test_switch\").item(0).getAttributes().getNamedItem(\"value\")\n\t\t\t\t\t\t.getNodeValue().equals(\"1\")?true:false;\n\t}",
"private boolean canRecognizeSpeechInput() {\n final Activity activity = getActivity();\n if (activity != null) {\n final List<ResolveInfo> activities = activity.getPackageManager()\n .queryIntentActivities(new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);\n\n if (activities.size() > 0) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n }",
"public AsyncResult<Boolean> isSupported() {\r\n EntityCapabilitiesManager entityCapabilitiesManager = xmppSession.getManager(EntityCapabilitiesManager.class);\r\n return entityCapabilitiesManager.discoverCapabilities(xmppSession.getDomain())\r\n .thenApply(infoNode -> infoNode.getFeatures().contains(OfflineMessage.NAMESPACE));\r\n }",
"public boolean isConnectable(){\n\t\tif((System.currentTimeMillis() - this.lastTry) > retryBackoff){\n\t\t\tthis.lastTry = System.currentTimeMillis();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean isTransmitting();",
"boolean isOmniProxyServer();",
"default boolean supports(final AuthenticationResponse response) {\n if (response != null) {\n LOGGER.debug(\"Authentication response [{}] is supported by password policy handling strategy [{}]\", response, getClass().getSimpleName());\n return true;\n }\n return false;\n }",
"boolean hasMode();",
"boolean hasConversation();",
"public boolean hasSocketProtocol() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"private static void readIsPracticeBot() {\n isPracticeBot = !practiceInput.get();\n }",
"public static boolean isValidProtocol(int a_protocol)\n\t{\n\t\treturn recognizeProtocol(a_protocol) != PROTOCOL_TYPE_UNKNOWN;\n\t}",
"boolean hasFeedback();",
"@TargetApi(Build.VERSION_CODES.M)\n @SuppressLint(\"MissingPermission\")\n private boolean isConnected_Q() {\n //Get ConnectivityManager.\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n //Check current network has Internet access.\n if (connectivityManager != null) {\n Network activeNetwork = connectivityManager.getActiveNetwork();\n if (activeNetwork == null) { //No default network is currently active.\n return false;\n }\n\n NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(activeNetwork);\n if (networkCapabilities != null && isConnectionValidated(networkCapabilities)) {\n return true;\n }\n }\n\n return false;\n }",
"private boolean FindKeyboard()\n\t{\n\t\tmBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\t\tif ((mBluetoothAdapter == null) || (mBluetoothAdapter.isEnabled() == false))\n\t\t{\n\t\t\tIntent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\tstartActivityForResult(intent, 0);\n\t\t}\n\t\t\n\t\tSet<BluetoothDevice> pairedDevice = mBluetoothAdapter.getBondedDevices();\n\t\tif (pairedDevice.size() > 0)\n\t\t{\n\t\t\tfor (BluetoothDevice device : pairedDevice)\n\t\t\t{\n\t\t\t\tif (device.getName().equals(\"Proxy\"))\n\t\t\t\t{\n\t\t\t\t\tmDevice = device;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (mDevice == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean findMatchProtocol(BooleanExpr expr, \n\t RoutingProtocol protocol, String indent) {\n\t //System.out.println(indent + \"BoolExpr: \" + expr);\n\t if (expr instanceof MatchProtocol) {\n MatchProtocol matchProto = (MatchProtocol)expr;\n if (matchProto.getProtocol().equals(protocol)) {\n return true;\n }\n\t } else if (expr instanceof Conjunction) {\n Conjunction conditions = (Conjunction)expr;\n for (BooleanExpr condition : conditions.getConjuncts()) {\n if (findMatchProtocol(condition, protocol, indent + \" \")) {\n return true;\n }\n }\n } else if (expr instanceof Disjunction) {\n Disjunction conditions = (Disjunction)expr;\n for (BooleanExpr condition : conditions.getDisjuncts()) {\n if (findMatchProtocol(condition, protocol, indent + \" \")) {\n return true;\n }\n }\n }\n\t return false;\n\t}",
"public boolean isAnyAudioPolicyRegistered() {\n return !registeredAudioPolicies.isEmpty();\n }",
"private boolean startApModeIfPossible() {\n if (canUseFeatureNow(Policy.Feature.WIFI_AP) && (mApIterations < WIFI_MAX_AP_COUNT)) {\n // we can use AP mode and we still didn't reach the max number of iteractions in AP mode\n mNetManager.createSavepoint();\n // switch to ap mode\n if (mNetManager.setApEnabled(true).or(false)) {\n // update beaconing state\n mWifiBeaconingState = WifiBeaconingState.AP_ENABLING;\n // stop sending beacons to neighbors, instead waits to receive them\n mBeaconingManager.stopWifiSender();\n // update number of ap mode iterations\n mApIterations++;\n return true;\n }\n Log.v(TAG, \"Could not switch to AP mode\");\n mNetManager.rollback();\n }\n return false;\n }",
"public boolean isPromptBeforeResetEnabled(){\n return promptBeforeResetEnabled;\n }",
"boolean hasSock();",
"boolean hasEnabled();",
"public static boolean supportsIrcDiscovery() {\n return PROTOCOL_VERSION <= 70000;\n }",
"public static boolean supportsIrcDiscovery() {\n return PROTOCOL_VERSION <= 70000;\n }"
] | [
"0.68189025",
"0.63825125",
"0.626645",
"0.6248739",
"0.61611336",
"0.6050192",
"0.5990155",
"0.59483886",
"0.59144974",
"0.5905012",
"0.58650076",
"0.58650076",
"0.58650076",
"0.58650076",
"0.58650076",
"0.58650076",
"0.58589673",
"0.5819276",
"0.58101827",
"0.58014995",
"0.57832485",
"0.57283807",
"0.5721994",
"0.571226",
"0.56984144",
"0.567315",
"0.5642594",
"0.562573",
"0.56221086",
"0.5594087",
"0.55679137",
"0.5564956",
"0.5554846",
"0.55438817",
"0.55416703",
"0.5537432",
"0.5485495",
"0.545642",
"0.54501814",
"0.54431564",
"0.54033285",
"0.53985506",
"0.539778",
"0.5396145",
"0.53936154",
"0.53628194",
"0.53491044",
"0.53422755",
"0.534113",
"0.5340909",
"0.5338469",
"0.5332501",
"0.533249",
"0.53310937",
"0.532678",
"0.5322298",
"0.5314087",
"0.5311435",
"0.5310626",
"0.53058326",
"0.53044236",
"0.527065",
"0.5260929",
"0.52598065",
"0.5254333",
"0.5241433",
"0.52407885",
"0.52377826",
"0.5236672",
"0.5228937",
"0.5227536",
"0.52265453",
"0.52185225",
"0.52142715",
"0.52100265",
"0.5207094",
"0.5201755",
"0.5199532",
"0.5198746",
"0.5196027",
"0.51933175",
"0.5186979",
"0.51859725",
"0.5184843",
"0.5181474",
"0.51794416",
"0.5177339",
"0.51750535",
"0.5174891",
"0.5172637",
"0.51711047",
"0.5170743",
"0.516641",
"0.51627624",
"0.5158537",
"0.5155933",
"0.515222",
"0.5149342",
"0.51490414",
"0.51490414"
] | 0.6982833 | 0 |
Returns the icon for the provider. | private static Image getIconForProvider(
ProtocolProviderService providerService,
Image customProviderImage,
ImageObserver imageObserver)
{
Image left
= isAutoAnswerEnabled(providerService)
? ImageLoader.getImage(ImageLoader.AUTO_ANSWER_CHECK)
: null;
if(customProviderImage == null)
{
byte[] bytes
= providerService.getProtocolIcon().getIcon(
ProtocolIcon.ICON_SIZE_16x16);
if (bytes != null)
customProviderImage = ImageUtils.getBytesInImage(bytes);
}
return
ImageUtils.getComposedImage(
left,
customProviderImage,
imageObserver);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"String getIcon();",
"String getIcon();",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }",
"public String getIconString() {\n return theIconStr;\n }",
"protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }",
"Icon getIcon();",
"public Icon getIcon();",
"String getIconFile();",
"public String getIconUrl() {\n return iconUrl;\n }",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"public ResourceLocation getIcon() {\n return icon;\n }",
"public URL getIcon()\r\n {\r\n\treturn icon;\r\n }",
"public URI getIconUri() {\n return this.iconUri;\n }",
"public String getIconUrl() {\r\n return iconUrl;\r\n }",
"public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}",
"public String getUserIcon() {\n return userIcon;\n }",
"public ImageDescriptor getIcon();",
"public abstract String getIconPath();",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }",
"public byte[] getIcon()\r\n {\r\n return icon;\r\n }",
"public abstract String typeIcon();",
"public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }",
"@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}",
"public FSIcon getIcon() {\n return icon;\n }",
"public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}",
"public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }",
"public String getIconURL()\n {\n return null; \n }",
"public abstract String getIconString();",
"Icon getIcon(URI activityType);",
"public AppIcon getAppIcon () ;",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }",
"public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}",
"public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"IconUris iconUris();",
"java.lang.String getCouponIconUrl();",
"public String getIconFileName() {\n return null;\n }",
"@NotNull\n SVGResource getIcon();",
"public String getAccessibleIconDescription();",
"@Override\n\tprotected String iconResourceName() {\n\t\treturn \"nkv550.png\";\n\t}",
"public AwesomeIcon icon() {\n\t\treturn icon;\n\t}",
"public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }",
"public Image getApplicationIcon() {\n return new javafx.scene.image.Image(this.getClass()\n .getResourceAsStream(DOCKICON));\n }",
"@Nullable\n final public String getIconImageUrl() {\n return mIconImageUrl;\n }",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new ServerIconDescriptor(\"servers\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"public Icon getIcon() {\n \t\treturn null;\n \t}",
"@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }",
"@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}",
"public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }",
"public Icon getIcon()\n {\n return getComponent().getIcon();\n }",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }",
"java.lang.String getGameIconUrl();",
"@Override\n\tpublic String getIconURI() {\n\t\treturn null;\n\t}",
"public abstract ImageDescriptor getIcon();",
"protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }",
"public Icon getIcon() {\n\t\treturn null;\n\t}",
"private BitmapDescriptor getMarkerIconFromDrawableForAdministration() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_administration);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }",
"com.google.protobuf.ByteString\n getIconBytes();",
"com.google.protobuf.ByteString\n getIconBytes();",
"public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}",
"public String getMessageIcon() {\n return messageIcon;\n }",
"public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Cagliero.png\"));\n return retValue;\n }",
"Icon createIcon();",
"public String getIconHandler()\n {\n return iconHandler;\n }",
"public static Image getSearchInfoImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_ICON));\n }",
"@Override\n\tpublic Icon getIcon(int width, int height) {\n\t\treturn null; // Use Display Name instead of an icon.\n\t}",
"public String getSummaryIcon() {\n\treturn this.icon;\n }",
"private BitmapDescriptor getMarkerIconFromDrawableForReligion() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_religion);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }",
"@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}",
"public EntityIcon getIcon() {\r\n return icon;\r\n }",
"public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }",
"public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }",
"@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"dataAdapters\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"private BitmapDescriptor getMarkerIconFromDrawableForEducation() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_education);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }",
"private BitmapDescriptor getMarkerIconFromDrawableForFood() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_food);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }",
"public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}",
"public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}",
"public String getSmenicon() {\n return smenicon;\n }",
"@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }",
"public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }",
"public abstract Drawable getIcon();",
"URL getIconURL(String iconId, IconSize medium);",
"@Override\n public Image getIconImage() {\n java.net.URL imgURL = MainWindowAlt.class.getResource(\"images/logo.gif\");\n if (imgURL != null) {\n return new ImageIcon(imgURL).getImage();\n } else {\n return null;\n }\n }"
] | [
"0.7281965",
"0.7281965",
"0.7263482",
"0.7213776",
"0.7213776",
"0.7115718",
"0.7115718",
"0.7115718",
"0.7115718",
"0.7056175",
"0.7056175",
"0.7040665",
"0.7040665",
"0.70120335",
"0.6975135",
"0.6840423",
"0.6828599",
"0.6824125",
"0.6815754",
"0.67339075",
"0.6733004",
"0.67228836",
"0.66991633",
"0.6694157",
"0.66920924",
"0.66164327",
"0.6610004",
"0.65990496",
"0.659752",
"0.6593003",
"0.6593003",
"0.6590628",
"0.6583574",
"0.65757585",
"0.65712446",
"0.65658057",
"0.65480345",
"0.654335",
"0.65415496",
"0.6536843",
"0.6531565",
"0.6526788",
"0.65229094",
"0.65131927",
"0.65131927",
"0.64740723",
"0.64554137",
"0.6451748",
"0.6449461",
"0.6430957",
"0.64265317",
"0.6424122",
"0.64108866",
"0.6390373",
"0.6371019",
"0.6366669",
"0.6354806",
"0.6322269",
"0.63190764",
"0.6318224",
"0.6314206",
"0.6309015",
"0.6304845",
"0.629701",
"0.6284516",
"0.62843126",
"0.6273795",
"0.62714577",
"0.62683135",
"0.6252848",
"0.6245381",
"0.6234782",
"0.6223731",
"0.6223525",
"0.6223525",
"0.62179464",
"0.62095875",
"0.6202604",
"0.61997885",
"0.6196155",
"0.6164017",
"0.61464393",
"0.61263126",
"0.6124002",
"0.6122455",
"0.6120577",
"0.61138767",
"0.6108842",
"0.6105282",
"0.60924035",
"0.60838294",
"0.60816044",
"0.60700506",
"0.60659754",
"0.60654056",
"0.6058032",
"0.6052793",
"0.60511196",
"0.6047475",
"0.6045509"
] | 0.657147 | 34 |
Implements the ServiceListener method. Verifies whether the passed event concerns a ProtocolProviderService and adds the corresponding UI controls in the menu. | public void serviceChanged(ServiceEvent event)
{
ServiceReference serviceRef = event.getServiceReference();
// if the event is caused by a bundle being stopped, we don't want to
// know
if (serviceRef.getBundle().getState() == Bundle.STOPPING)
{
return;
}
Object service = GuiActivator.bundleContext.getService(serviceRef);
// we don't care if the source service is not a protocol provider
if (!(service instanceof ProtocolProviderService))
{
return;
}
switch (event.getType())
{
case ServiceEvent.REGISTERED:
addAccount((ProtocolProviderService) service, parentMenu);
break;
case ServiceEvent.UNREGISTERING:
removeAccount((ProtocolProviderService) service, parentMenu);
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void serviceChanged(ServiceEvent event)\n {\n Object service = SystrayActivator.bundleContext\n .getService( event.getServiceReference());\n \n if (! (service instanceof ProtocolProviderService))\n return;\n \n ProtocolProviderService provider = (ProtocolProviderService)service;\n \n if (event.getType() == ServiceEvent.REGISTERED)\n addAccount(provider);\n \n if (event.getType() == ServiceEvent.UNREGISTERING)\n removeAccount(provider);\n }",
"public StatusMessageMenu(ProtocolProviderService protocolProvider,\n boolean swing)\n {\n super(swing);\n\n this.protocolProvider = protocolProvider;\n\n OperationSetPresence presenceOpSet\n = protocolProvider.getOperationSet(OperationSetPresence.class);\n if(presenceOpSet != null)\n {\n presenceOpSet.addProviderPresenceStatusListener(this);\n }\n }",
"@Override\n\tpublic void subTypeForServiceTypeAdded(ServiceEvent arg0) {\n\n\t}",
"@Override\r\n\tpublic void serviceInit(ServiceInitEvent event) {\r\n\t\tevent.getSource().addUIInitListener(uiEvent -> {\r\n\t\t\tfinal UI ui = uiEvent.getUI();\r\n\t\t\tui.addBeforeEnterListener(this::beforeEnter); // Vor dem Betreten von View wird beforeEnter-Methode\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ausgefuehrt\r\n\t\t});\r\n\t}",
"public static void addNewServices() {\n displayAddNewServicesMenu();\n processAddnewServicesMenu();\n }",
"private void handleProviderSelected() {\n \t\tint index = fProviderCombo.getSelectionIndex() - 1;\n \t\tif (index >= 0) {\n \t\t\tfProviderStack.topControl = fProviderControls.get(index);\n \t\t\tfSelectedProvider = fComboIndexToDescriptorMap.get(index);\n \t\t} else {\n \t\t\tfProviderStack.topControl = null;\n \t\t\tfSelectedProvider = null;\n \t\t}\n \t\tfProviderArea.layout();\n \t\tif (fSelectedProvider != null) {\n \t\t\tMBSCustomPageManager.addPageProperty(REMOTE_SYNC_WIZARD_PAGE_ID, SERVICE_PROVIDER_PROPERTY,\n \t\t\t\t\tfSelectedProvider.getParticipant());\n \t\t} else {\n \t\t\tMBSCustomPageManager.addPageProperty(REMOTE_SYNC_WIZARD_PAGE_ID, SERVICE_PROVIDER_PROPERTY, null);\n \t\t}\n \t}",
"@Override\r\n protected void addListener() {\r\n menuItem.addActionListener(new ManualJMenuItemClickHandler());\r\n }",
"public interface ProviderChangeListener\n{\n /**\n * The method is called by a ProtocolProvider implementation whenever a change in the presence\n * status of the corresponding provider had occurred.\n *\n * @param evt ProviderStatusChangeEvent the event describing the status change.\n */\n public void providerStatusChanged(ProviderStatusChangeEvent evt);\n}",
"public void onAdd(final ForwardEvent event) {\r\n\t\t// Get the values and validate the data\r\n\t\tfinal Textbox txtService = (Textbox) Path.getComponent(page, \"txtService\");\r\n\t\tfinal String serviceName = txtService.getValue().trim();\r\n\t\tfinal Doublebox txtCharge = (Doublebox) Path.getComponent(page, \"txtCharge\");\r\n\t\tfinal Checkbox chkHidden = (Checkbox) Path.getComponent(page, \"chkHidden\");\r\n\t\tLOGGER.debug(\"Adding new service: \" + txtService.getValue() + \"\\t\" + txtCharge.getValue());\r\n\t\tif (serviceName.length() <= 0 || txtCharge.getValue() == null) {\r\n\t\t\ttry {\r\n\t\t\t\tMessagebox.show(\"Enter the service name and charge\", \"Error in input\", Messagebox.OK, Messagebox.ERROR);\r\n\t\t\t} catch (final Exception e) {\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfinal IPaymentDAO paymentDAO = (IPaymentDAO) SpringUtil.getBean(\"paymentDAO\");\r\n\t\tif (paymentDAO.checkService(serviceName)) {\r\n\t\t\ttry {\r\n\t\t\t\tMessagebox.show(\"Service already exists\", \"Error in input\", Messagebox.OK, Messagebox.ERROR);\r\n\t\t\t} catch (final Exception e) {\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Create new service and save it\r\n\t\tfinal MasterService service = new MasterService();\r\n\t\tservice.setServiceName(txtService.getValue().trim());\r\n\t\tservice.setCharge(txtCharge.getValue());\r\n\t\tservice.setHidden(chkHidden.isChecked());\r\n\t\tpaymentDAO.addMasterService(service);\r\n\r\n\t\t// Add this new service to listmodel and invalidate the list\r\n\t\tfinal ListModelList services = (ListModelList) page.getAttribute(\"serviceslist\");\r\n\t\tservices.add(service);\r\n\t\tpage.setAttribute(\"serviceslist\", services);\r\n\t\tfinal Listbox lstservice = (Listbox) Path.getComponent(page, \"lstservice\");\r\n\t\tlstservice.setModel(services);\r\n\t\tlstservice.invalidate();\r\n\t\tLOGGER.debug(\"added service\");\r\n\t}",
"@Override\n public void sessionInit(SessionInitEvent event) throws ServiceException {\n VaadinSession session = event.getSession();\n\n final String DefaultUiProviderCanonicalName = DefaultUIProvider.class.getCanonicalName();\n\n for (UIProvider uiProvider : session.getUIProviders()) {\n // use canonical names as these may have been loaded with\n // different classloaders\n if (DefaultUiProviderCanonicalName.equals(uiProvider.getClass().getCanonicalName())) {\n session.removeUIProvider(uiProvider);\n }\n }\n\n //set the GuiceUIProvider\n session.addUIProvider(this.guiceUIProvider);\n }",
"private JPanel createPanelEditService() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Dirty-Listener erzeugen\n\t\tDocumentListener documentListener = new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\t\t};\n\t\tChangeListener changeListener = new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent event) {\n\t\t\t\tif (((AbstractButton) event.getSource()).getModel().isPressed()) {\n\t\t\t\t\tsetDirty(true);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getPanel(\"PanelEditService\");\n\t\tJLabel labelServiceAbbreviation = wf.getLabel(\"LabelServiceAbbreviation\");\n\t\tlabelServiceAbbreviation.setForeground(COLOR_INFLUENCE);\n\t\tserviceAbbreviation = wf.getTextField(\"FieldServiceAbbreviation\");\n\t\tserviceAbbreviation.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonClearService = wf.getButton(\"ButtonClearService\");\n\t\tbuttonClearService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedClearService(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelAdditionalInfo = wf.getLabel(\"LabelAdditionalInfo\");\n\t\tlabelAdditionalInfo.setForeground(COLOR_INFLUENCE);\n\t\tadditionalInfo = wf.getTextField(\"FieldAdditionalInfo\");\n\t\tadditionalInfo.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonRemoveService = wf.getButton(\"ButtonRemoveService\");\n\t\tbuttonRemoveService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedRemoveService(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLoginUrl = wf.getLabel(\"LabelLoginUrl\");\n\t\tloginUrl = wf.getTextField(\"FieldLoginUrl\");\n\t\tloginUrl.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonOpenUrl = wf.getButton(\"ButtonOpenUrl\");\n\t\tbuttonOpenUrl.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenUrlInBrowser(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLoginInfo = wf.getLabel(\"LabelLoginInfo\");\n\t\tloginInfo = wf.getTextField(\"FieldLoginInfo\");\n\t\tloginInfo.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonCopyLoginInfo = wf.getButton(\"ButtonCopyLoginInfo\");\n\t\tbuttonCopyLoginInfo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedCopyLoginInfo(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelAdditionalLoginInfo = wf.getLabel(\"LabelAdditionalLoginInfo\");\n\t\tadditionalLoginInfo = wf.getTextArea(\"FieldAdditionalLoginInfo\");\n\t\tadditionalLoginInfo.getDocument().addDocumentListener(documentListener);\n\t\tJScrollPane additionalLoginInfoScrollPane = wf.getScrollPane(\"ScrollPaneAdditionalLoginInfo\",\n\t\t\t\tadditionalLoginInfo);\n\t\tadditionalLoginInfoScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tJButton buttonOpenHelp = wf.getButton(\"ButtonOpenHelp\");\n\t\tbuttonOpenHelp.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenHelpInBrowser(me);\n\t\t\t}\n\t\t});\n\t\tJButton buttonOpenAbout = wf.getButton(\"ButtonOpenAbout\");\n\t\tbuttonOpenAbout.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenAbout(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelCount = wf.getLabel(\"LabelCount\");\n\t\tlabelCount.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelCount.setForeground(COLOR_INFLUENCE);\n\t\tJLabel labelStartIndex = wf.getLabel(\"LabelStartIndex\");\n\t\tlabelStartIndex.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelStartIndex.setForeground(COLOR_INFLUENCE);\n\t\tJLabel labelEndIndex = wf.getLabel(\"LabelEndIndex\");\n\t\tlabelEndIndex.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelEndIndex.setForeground(COLOR_INFLUENCE);\n\t\tuseSmallLetters = wf.getCheckBox(\"CheckBoxSmallLetters\");\n\t\tuseSmallLetters.addChangeListener(changeListener);\n\t\tuseSmallLetters.setForeground(COLOR_INFLUENCE);\n\t\tsmallLettersCount = wf.getIntegerField(\"FieldSmallLettersCount\");\n\t\tsmallLettersCount.getDocument().addDocumentListener(documentListener);\n\t\tsmallLettersStartIndex = wf.getIntegerField(\"FieldSmallLettersStartIndex\");\n\t\tsmallLettersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tsmallLettersEndIndex = wf.getIntegerField(\"FieldSmallLettersEndIndex\");\n\t\tsmallLettersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseCapitalLetters = wf.getCheckBox(\"CheckBoxCapitalLetters\");\n\t\tuseCapitalLetters.addChangeListener(changeListener);\n\t\tuseCapitalLetters.setForeground(COLOR_INFLUENCE);\n\t\tcapitalLettersCount = wf.getIntegerField(\"FieldCapitalLettersCount\");\n\t\tcapitalLettersCount.getDocument().addDocumentListener(documentListener);\n\t\tcapitalLettersStartIndex = wf.getIntegerField(\"FieldCapitalLettersStartIndex\");\n\t\tcapitalLettersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tcapitalLettersEndIndex = wf.getIntegerField(\"FieldCapitalLettersEndIndex\");\n\t\tcapitalLettersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseDigits = wf.getCheckBox(\"CheckBoxDigits\");\n\t\tuseDigits.addChangeListener(changeListener);\n\t\tuseDigits.setForeground(COLOR_INFLUENCE);\n\t\tdigitsCount = wf.getIntegerField(\"FieldDigitsCount\");\n\t\tdigitsCount.getDocument().addDocumentListener(documentListener);\n\t\tdigitsStartIndex = wf.getIntegerField(\"FieldDigitsStartIndex\");\n\t\tdigitsStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tdigitsEndIndex = wf.getIntegerField(\"FieldDigitsEndIndex\");\n\t\tdigitsEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseSpecialCharacters = wf.getCheckBox(\"CheckBoxSpecialCharacters\");\n\t\tuseSpecialCharacters.addChangeListener(changeListener);\n\t\tuseSpecialCharacters.setForeground(COLOR_INFLUENCE);\n\t\tspecialCharacters = wf.getTextField(\"FieldSpecialCharacters\");\n\t\tspecialCharacters.setForeground(COLOR_INFLUENCE);\n\t\tspecialCharactersCount = wf.getIntegerField(\"FieldSpecialCharactersCount\");\n\t\tspecialCharactersCount.getDocument().addDocumentListener(documentListener);\n\t\tspecialCharactersStartIndex = wf.getIntegerField(\"FieldSpecialCharactersStartIndex\");\n\t\tspecialCharactersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tspecialCharactersEndIndex = wf.getIntegerField(\"FieldSpecialCharactersEndIndex\");\n\t\tspecialCharactersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tlabelUseOldPassphrase = wf.getLabel(\"LabelUseOldPassphrase\");\n\t\tlabelUseOldPassphrase.setForeground(COLOR_WARNING);\n\t\tJLabel labelTotalCharacterCount = wf.getLabel(\"LabelTotalCharacterCount\");\n\t\tlabelTotalCharacterCount.setForeground(COLOR_INFLUENCE);\n\t\ttotalCharacterCount = wf.getIntegerField(\"FieldTotalCharacterCount\");\n\t\ttotalCharacterCount.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonCopyPassword = wf.getButton(\"ButtonCopyPassword\");\n\t\tbuttonCopyPassword.setForeground(COLOR_INFLUENCE);\n\t\tbuttonCopyPassword.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedCopyPassword(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelPassword = wf.getLabel(\"LabelPassword\");\n\t\tpassword = wf.getPasswordField(\"FieldPassword\");\n\t\tpassword.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonDisplayPassword = wf.getButton(\"ButtonDisplayPassword\");\n\t\tbuttonDisplayPassword.setForeground(COLOR_INFLUENCE);\n\t\tbuttonDisplayPassword.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedDisplayPassword(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelPasswordRepeated = wf.getLabel(\"LabelPasswordRepeated\");\n\t\tpasswordRepeated = wf.getPasswordField(\"FieldPasswordRepeated\");\n\t\tpasswordRepeated.getDocument().addDocumentListener(documentListener);\n\t\tmakePasswordVisible = wf.getCheckBox(\"CheckBoxMakePasswordVisible\");\n\t\tmakePasswordVisible.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent arg0) {\n\t\t\t\tif (makePasswordVisible.isSelected()) {\n\t\t\t\t\tpassword.setEchoChar((char) 0);\n\t\t\t\t\tpasswordRepeated.setEchoChar((char) 0);\n\t\t\t\t} else {\n\t\t\t\t\tpassword.setEchoChar('*');\n\t\t\t\t\tpasswordRepeated.setEchoChar('*');\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tbuttonStoreService = wf.getButton(\"ButtonStoreService\");\n\t\tbuttonStoreService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedStoreService(me);\n\t\t\t}\n\t\t});\n\t\tbuttonUseNewPassphrase = wf.getButton(\"ButtonUseNewPassphrase\");\n\t\tbuttonUseNewPassphrase.setForeground(COLOR_INFLUENCE);\n\t\tbuttonUseNewPassphrase.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedUseNewPassphrase(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLastUpdate = wf.getLabel(\"LabelLastUpdate\");\n\t\tlastUpdate = wf.getLabel(\"LabelLastUpdate\");\n\t\t// Widgets zufügen, erste Zeile\n\t\tint row = 0;\n\t\tpanel.add(labelServiceAbbreviation, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(serviceAbbreviation, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonClearService, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelAdditionalInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(additionalInfo, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonRemoveService, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLoginUrl, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(loginUrl, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonOpenUrl, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLoginInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(loginInfo, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonCopyLoginInfo, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelAdditionalLoginInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(additionalLoginInfoScrollPane,\n\t\t\t\tgbcf.getTableConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelCount, gbcf.getLabelConstraints(2, row));\n\t\tpanel.add(labelStartIndex, gbcf.getLabelConstraints(GridBagConstraints.RELATIVE, row));\n\t\tpanel.add(labelEndIndex, gbcf.getLabelConstraints(GridBagConstraints.RELATIVE, row));\n\t\t// Leerzeile zufügen, nächste Zeile\n\t\trow++;\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useSmallLetters, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(smallLettersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(smallLettersStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(smallLettersEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonOpenHelp, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useCapitalLetters, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(capitalLettersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(capitalLettersStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(capitalLettersEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonOpenAbout, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useDigits, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(digitsCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(digitsStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(digitsEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useSpecialCharacters, gbcf.getLabelConstraints(0, row, 1, 1));\n\t\tpanel.add(specialCharacters, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersStartIndex,\n\t\t\t\tgbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersEndIndex,\n\t\t\t\tgbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(labelUseOldPassphrase, gbcf.getLabelConstraints(6, row, 1, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelTotalCharacterCount, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(totalCharacterCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonCopyPassword, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelPassword, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(password, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonDisplayPassword, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelPasswordRepeated, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(passwordRepeated, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonStoreService, gbcf.getLabelConstraints(6, row));\n\t\tpanel.add(buttonUseNewPassphrase, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(makePasswordVisible, gbcf.getFieldConstraints(2, row, 4, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tGridBagConstraints emptyLineConstraints = gbcf.getLabelConstraints(0, row, 2, 1);\n\t\temptyLineConstraints.weighty = 0.1;\n\t\tpanel.add(new JLabel(\"\"), emptyLineConstraints);\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLastUpdate, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(lastUpdate, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\t// Panel zurückgeben\n\t\treturn panel;\n\t}",
"private void addListeners() {\n\n\t\tfinal ComponentsController serviceController = (ComponentsController) componentsService;\n\t\t/*\n\t\t * service controller listener:\n\t\t */\n\t\tfinal ChangeListener changeListener = new ChangeListener() {\n\t\t\tpublic void modelChanged(ChangeEvent ce) {\n\t\t\t\tPmsChangeEvent event = (PmsChangeEvent) ce;\n\t\t\t\tswitch (event.getType()) {\n\t\t\t\t\tcase PmsChangeEvent.UPDATE:\n\t\t\t\t\t\tonComponentUpdate((InheritedComponentInstanceSelDTO) event.getEventInfo());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PmsChangeEvent.IMPORT:\n\t\t\t\t\t\ttryGetComponents();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: // event not expected: nothing to do here.\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tserviceController.addChangeListener(changeListener);\n\t\t\n\t\t// remove listener from components controller when this panel is detached\n\t\taddListener(Events.Detach, new Listener<BaseEvent>() {\n\t\t\tpublic void handleEvent(BaseEvent be) {\n\t\t\t\tserviceController.removeChangeListener(changeListener);\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * Grid RowClick listener\n\t\t */\n\t\tgrid.addListener(Events.RowClick, new Listener<GridEvent<InheritedComponentInstanceSelModelData>>() {\n\t\t\tpublic void handleEvent(GridEvent<InheritedComponentInstanceSelModelData> ge) {\n\t\t\t\tInheritedComponentInstanceSelModelData model = grid.getSelectionModel().getSelectedItem();\n\t\t\t\tif (model != null) {\n\t\t\t\t\tenableDisableButtons(model);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString [] params = {H_Panel.getName(),H_Panel.getDesc()};\n\t\t\t\tservDisp.add(params);\t\t\n\t\t\t\t_MGR.setHeader(H_Panel.getName());\n\t\t\t\t_MGR.setDescr(H_Panel.getDesc());\n\t\t\t\t_MGR.loadTagsToProject();\n\t\t\t\t//_MGR.updateTagsInProjectPanels();\n\t\t\t\tSP_PManager_Widget.this.setVisible(false);\n\t\t\t}",
"@Override\n\tpublic void serviceTypeAdded(ServiceEvent arg0) {\n\t\tString type = arg0.getType();\n\t\tif (type.equals(TYPE)) {\n\t\t\tmJmDNS.addServiceListener(type, NetworkDiscovery.this);\n\t\t}\n\t}",
"protected void handleRemoteServiceSelected(IRemoteConnection conn) {\n \t\tfinal boolean enabled = fWidgetListener.isEnabled();\n \t\tfWidgetListener.disable();\n \n \t\tif (fRemoteCombo != null) {\n \t\t\t/*\n \t\t\t * If a connection was supplied, set its remote service provider in the combo\n \t\t\t */\n \t\t\tif (conn != null) {\n \t\t\t\tIRemoteServices services = conn.getRemoteServices();\n \t\t\t\tif (fRemoteServices != null) {\n \t\t\t\t\tfor (int index = 0; index < fRemoteServices.length; index++) {\n \t\t\t\t\t\tif (fRemoteServices[index].getId().equals(services.getId())) {\n \t\t\t\t\t\t\tfRemoteCombo.select(index + 1);\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * Get the currently selected service. If the service is the same, do nothing.\n \t\t\t */\n \t\t\tint selectionIndex = fRemoteCombo.getSelectionIndex();\n \t\t\tIRemoteServices selectedServices = null;\n \t\t\tif (fRemoteServices != null && fRemoteServices.length > 0 && selectionIndex > 0) {\n \t\t\t\tselectedServices = fRemoteServices[selectionIndex - 1];\n \t\t\t}\n \t\t\tif (selectedServices != null && fSelectedServices != null && selectedServices.getId().equals(fSelectedServices.getId())) {\n \t\t\t\tfWidgetListener.setEnabled(enabled);\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tfSelectedServices = selectedServices;\n \t\t}\n \n \t\tfConnectionCombo.removeAll();\n \n \t\tif (fSelectedServices == null) {\n \t\t\tfConnectionCombo.setEnabled(false);\n \t\t\tfNewConnectionButton.setEnabled(false);\n \t\t} else {\n \t\t\tfConnectionCombo.setEnabled(true);\n \t\t\t/*\n \t\t\t * Populate the connection combo and select the connection\n \t\t\t */\n \t\t\tIRemoteConnectionManager connectionManager = fSelectedServices.getConnectionManager();\n \t\t\tIRemoteConnection[] connections = connectionManager.getConnections();\n \t\t\tArrays.sort(connections, new Comparator<IRemoteConnection>() {\n \t\t\t\tpublic int compare(IRemoteConnection c1, IRemoteConnection c2) {\n \t\t\t\t\treturn c1.getName().compareToIgnoreCase(c2.getName());\n \t\t\t\t}\n \t\t\t});\n \t\t\tint offset = 0;\n \t\t\tint selected = 0;\n \t\t\tif (connections.length > 1) {\n \t\t\t\tfConnectionCombo.add(Messages.RemoteConnectionWidget_selectConnection);\n \t\t\t\toffset = 1;\n \t\t\t}\n \t\t\tfor (int i = 0; i < connections.length; i++) {\n \t\t\t\tfConnectionCombo.add(connections[i].getName());\n \t\t\t\tif (conn != null && connections[i].getName().equals(conn.getName())) {\n \t\t\t\t\tselected = i + offset;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (connections.length > 0) {\n \t\t\t\tfConnectionCombo.select(selected);\n\t\t\t\thandleConnectionSelected();\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * Enable 'new' button if new connections are supported\n \t\t\t */\n \t\t\tfNewConnectionButton.setEnabled(fSelectedServices.canCreateConnections());\n \t\t}\n \n \t\tfWidgetListener.setEnabled(enabled);\n \t}",
"void jEnableMenu_actionPerformed(ActionEvent e) {\n //need to check if this is already enabled\n \n DefaultMutableTreeNode node = (DefaultMutableTreeNode) jComponentTree.getLastSelectedPathComponent();\n if (node.getParent() != rootNode) { //when it's an instance\n PluginDescriptor value = (PluginDescriptor) ((EGTreeNode) node).getComponent();\n if (value.getID().equalsIgnoreCase(jLabel1.getText())) {\n if (value.isVisualPlugin()) { //add visual plugin to the selected area\n String visualArea = (String) jVisualAreaComboBox.getSelectedItem();\n if ((visualArea != null) && (!visualArea.equalsIgnoreCase(\"\")))\n GeawConfigObject.getGuiWindow().addToContainer(visualArea, ((VisualPlugin) value.getPlugin()).getComponent(), value.getLabel());\n PluginRegistry.addVisualAreaInfo(visualArea, (VisualPlugin) value.getPlugin());\n }\n //get interfaces\n ListModel ls = jBroadcastListenerList.getModel();\n for (int c = 0; c < ls.getSize(); c++) {\n ComponentInterface ci = (ComponentInterface) ls.getElementAt(c);\n if (ci.isActive()) {\n try {\n BroadcastEventRegistry.addEventListener(ci.getInterfaceClass(), ((AppEventListener) value.getPlugin()));\n } catch (AppEventListenerException ex) {\n ex.printStackTrace();\n \n } catch (ListenerEventMismatchException ex) {\n ex.printStackTrace();\n }\n }\n }\n /**\n * @todo add coupled ls, broadcastls etc\n */\n } else {\n JOptionPane.showMessageDialog(null, \"Parameters not set for the component.\");\n }\n }\n }",
"public void injectUIEvent(UI_EVENTS event) {\n handleEvent(event);\n }",
"public void onSaveService(final ForwardEvent event) {\r\n\t\t// Get the listitem from the event's target (button)\r\n\t\t// parent(hbox)->parent(listcell)->parent(listitem)\r\n\t\tfinal Listitem li = (Listitem) event.getOrigin().getTarget().getParent().getParent().getParent();\r\n\t\tfinal MasterService service = (MasterService) li.getValue();\r\n\r\n\t\t// save the service\r\n\t\tfinal IPaymentDAO paymentDAO = (IPaymentDAO) SpringUtil.getBean(\"paymentDAO\");\r\n\t\tpaymentDAO.addMasterService(service);\r\n\r\n\t\t// Get the listmodel and update this service in it\r\n\t\tfinal ListModelList services = (ListModelList) page.getAttribute(\"serviceslist\");\r\n\t\tint indx = getListIndex(service, services);\r\n\t\tservices.set(indx, service);\r\n\t\tpage.setAttribute(\"serviceslist\", services);\r\n\t\tfinal Listbox lstservice = (Listbox) Path.getComponent(page, \"lstservice\");\r\n\t\tlstservice.setModel(services);\r\n\t\tlstservice.invalidate();\r\n\t\tClients.evalJavaScript(\"$.jGrowl(\\\"Successfully Saved the service\\\", {life:2000});\");\r\n\t}",
"public interface OnProviderSelectedListener {\n public void onProviderSelected(Providers.EProviders provider);\n }",
"public interface OnLoadMenuItemOptionSelectedListener {\n\n\t/**\n\t * Invoked on the Play Now option was selected.\n\t * @param track to play now.\n\t */\n\tpublic void onLoadMenuTop10Selected(List<Track> topTenMediaItems);\n\t\n\t/**\n\t * Invoked on the Play Next option was selected.\n\t * @param track to play next.\n\t */\n\tpublic void onLoadMenuRadioSelected();\n\t\n\t/**\n\t * Invoked on the Add To Queue option was selected.\n\t * @param track to add the queue.\n\t */\n\tpublic void onLoadMenuMyPlaylistSelected();\n\t\n\t/**\n\t * Invoked on the Show Details option was selected.\n\t * @param track to show its details.\n\t */\n\tpublic void onLoadMenuMyFavoritesSelected();\n\t\n\t/**\n\t * Invoked on the Show Details option was selected.\n\t * @param track to show its details.\n\t */\n\tpublic void onLoadPlaylistFromDialogSelected(List<Track> tracks);\n\n}",
"public void providerStatusChanged(ProviderPresenceStatusChangeEvent evt)\n {\n ProtocolProviderService pps = evt.getProvider();\n \n StatusSelector selectorBox \n = (StatusSelector) accountSelectors.get(pps.getAccountID());\n \n if(selectorBox == null)\n return;\n \n selectorBox.updateStatus(evt.getNewStatus());\n }",
"@Override\n\tpublic void addListener(ILabelProviderListener ilabelproviderlistener) {\n\t\t\n\t}",
"public interface OnBaseUIListener {\n}",
"public void onPluginStart()\n\t{\n\t\tfor (Integer event : this.getNetworkCommands())\n\t\t\tCalicoEventHandler.getInstance().addListener(event.intValue(), this, CalicoEventHandler.ACTION_PERFORMER_LISTENER);\n\t\t\n\t\tCanvasStatusBar.addMenuButtonRightAligned(CreateCustomScrapButton.class);\n\t\t\n\t\t//Add an additional voice to the bubble menu\n\t\t//CGroup.registerPieMenuButton(SaveToPaletteButton.class);\n\t\t\n\t\t//Register to the events I am interested in from Calico's core events\n\t\t//Example: CalicoEventHandler.getInstance().addListener(NetworkCommand.VIEWING_SINGLE_CANVAS, this, CalicoEventHandler.PASSIVE_LISTENER);\n\n\t}",
"public interface FormPresenterListener {\n void moveToLoginScreen();\n void moveToRegisterScreen();\n void moveToMapScreen(LoggedInUser user);\n void setButtonState();\n void showValidationError(String fieldName, boolean valid);\n void fetchLogin(View view);\n void fetchRegistration(View view);\n}",
"public interface IListenerPresenter {\n void loadListen(Context context, boolean isFirst, String type, String page);\n\n void loadListen(Context context, boolean isFirst, String page);\n}",
"@Override\n\tpublic void addListener(ILabelProviderListener arg0) {\n\t\t\n\t}",
"public interface ProviderPresenceStatusListener extends java.util.EventListener\n{\n /**\n * The property name of PropertyChangeEvents announcing changes in our\n * status message.\n */\n public static final String STATUS_MESSAGE = \"StatusMessage\";\n\n /**\n * The method is called by a ProtocolProvider implementation whenever\n * a change in the presence status of the corresponding provider had\n * occurred.\n * @param evt ProviderStatusChangeEvent the event describing the status\n * change.\n */\n public void providerStatusChanged(ProviderPresenceStatusChangeEvent evt);\n\n /**\n * The method is called by a ProtocolProvider implementation whenever a\n * change in the status message of the corresponding provider has occurred\n * and has been confirmed by the server.\n *\n * @param evt a PropertyChangeEvent with a STATUS_MESSAGE property name,\n * containing the old and new status messages.\n */\n public void providerStatusMessageChanged(PropertyChangeEvent evt);\n}",
"private void addListeners()\n {\n // Enable LDAP Checkbox\n addDirtyListener( enableLdapCheckbox );\n addSelectionListener( enableLdapCheckbox, enableLdapCheckboxListener );\n\n // LDAP Port Text\n addDirtyListener( ldapPortText );\n addModifyListener( ldapPortText, ldapPortTextListener );\n\n // LDAP Address Text\n addDirtyListener( ldapAddressText );\n addModifyListener( ldapAddressText, ldapAddressTextListener );\n\n // LDAP nbThreads Text\n addDirtyListener( ldapNbThreadsText );\n addModifyListener( ldapNbThreadsText, ldapNbThreadsTextListener );\n\n // LDAP BackLogSize Text\n addDirtyListener( ldapBackLogSizeText );\n addModifyListener( ldapBackLogSizeText, ldapBackLogSizeTextListener );\n\n // Enable LDAPS Checkbox\n addDirtyListener( enableLdapsCheckbox );\n addSelectionListener( enableLdapsCheckbox, enableLdapsCheckboxListener );\n\n // LDAPS Address Text\n addDirtyListener( ldapsAddressText );\n addModifyListener( ldapsAddressText, ldapsAddressTextListener );\n\n // LDAPS Port Text\n addDirtyListener( ldapsPortText );\n addModifyListener( ldapsPortText, ldapsPortTextListener );\n\n // LDAPS nbThreads Text\n addDirtyListener( ldapsNbThreadsText );\n addModifyListener( ldapsNbThreadsText, ldapsNbThreadsTextListener );\n\n // LDAPS BackLogSize Text\n addDirtyListener( ldapsBackLogSizeText );\n addModifyListener( ldapsBackLogSizeText, ldapsBackLogSizeTextListener );\n \n // Enable wantClientAuth Checkbox\n addDirtyListener( wantClientAuthCheckbox );\n addSelectionListener( wantClientAuthCheckbox, wantClientAuthListener );\n\n // Enable needClientAuth Checkbox\n addDirtyListener( needClientAuthCheckbox );\n addSelectionListener( needClientAuthCheckbox, needClientAuthListener );\n\n // Auth Mechanisms Simple Checkbox\n addDirtyListener( authMechSimpleCheckbox );\n addSelectionListener( authMechSimpleCheckbox, authMechSimpleCheckboxListener );\n\n // Auth Mechanisms GSSAPI Checkbox\n addDirtyListener( authMechGssapiCheckbox );\n addSelectionListener( authMechGssapiCheckbox, authMechGssapiCheckboxListener );\n\n // Auth Mechanisms CRAM-MD5 Checkbox\n addDirtyListener( authMechCramMd5Checkbox );\n addSelectionListener( authMechCramMd5Checkbox, authMechCramMd5CheckboxListener );\n\n // Auth Mechanisms DIGEST-MD5 Checkbox\n addDirtyListener( authMechDigestMd5Checkbox );\n addSelectionListener( authMechDigestMd5Checkbox, authMechDigestMd5CheckboxListener );\n\n // Auth Mechanisms NTLM Checkbox\n addDirtyListener( authMechNtlmCheckbox );\n addSelectionListener( authMechNtlmCheckbox, authMechNtlmCheckboxListener );\n\n // Auth Mechanisms NTLM Text\n addDirtyListener( authMechNtlmText );\n addModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms GSS SPNEGO Checkbox\n addDirtyListener( authMechGssSpnegoCheckbox );\n addSelectionListener( authMechGssSpnegoCheckbox, authMechGssSpnegoCheckboxListener );\n addModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Auth Mechanisms GSS SPNEGO Text\n addDirtyListener( authMechGssSpnegoText );\n addModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Keystore File Text\n addDirtyListener( keystoreFileText );\n addModifyListener( keystoreFileText, keystoreFileTextListener );\n\n // Keystore File Browse Button\n addSelectionListener( keystoreFileBrowseButton, keystoreFileBrowseButtonSelectionListener );\n\n // Password Text\n addDirtyListener( keystorePasswordText );\n addModifyListener( keystorePasswordText, keystorePasswordTextListener );\n\n // Show Password Checkbox\n addSelectionListener( showPasswordCheckbox, showPasswordCheckboxSelectionListener );\n\n // SASL Host Text\n addDirtyListener( saslHostText );\n addModifyListener( saslHostText, saslHostTextListener );\n\n // SASL Principal Text\n addDirtyListener( saslPrincipalText );\n addModifyListener( saslPrincipalText, saslPrincipalTextListener );\n\n // SASL Seach Base Dn Text\n addDirtyListener( saslSearchBaseDnText );\n addModifyListener( saslSearchBaseDnText, saslSearchBaseDnTextListener );\n\n // SASL Realms Table Viewer\n addSelectionChangedListener( saslRealmsTableViewer, saslRealmsTableViewerSelectionChangedListener );\n addDoubleClickListener( saslRealmsTableViewer, saslRealmsTableViewerDoubleClickListener );\n addSelectionListener( editSaslRealmsButton, editSaslRealmsButtonListener );\n addSelectionListener( addSaslRealmsButton, addSaslRealmsButtonListener );\n addSelectionListener( deleteSaslRealmsButton, deleteSaslRealmsButtonListener );\n\n // Max Time Limit Text\n addDirtyListener( maxTimeLimitText );\n addModifyListener( maxTimeLimitText, maxTimeLimitTextListener );\n\n // Max Size Limit Text\n addDirtyListener( maxSizeLimitText );\n addModifyListener( maxSizeLimitText, maxSizeLimitTextListener );\n\n // Max PDU Size Text\n addDirtyListener( maxPduSizeText );\n addModifyListener( maxPduSizeText, maxPduSizeTextListener );\n\n // Enable TLS Checkbox\n addDirtyListener( enableTlsCheckbox );\n addSelectionListener( enableTlsCheckbox, enableTlsCheckboxListener );\n\n // Hashing Password Checkbox\n addDirtyListener( enableServerSidePasswordHashingCheckbox );\n addSelectionListener( enableServerSidePasswordHashingCheckbox, enableServerSidePasswordHashingCheckboxListener );\n\n // Hashing Method Combo Viewer\n addDirtyListener( hashingMethodComboViewer );\n addSelectionChangedListener( hashingMethodComboViewer, hashingMethodComboViewerListener );\n\n // Advanced SSL Cipher Suites\n ciphersSuiteTableViewer.addCheckStateListener( ciphersSuiteTableViewerListener );\n\n // Advanced SSL Enabled Protocols\n // Enable sslv3 Checkbox\n addDirtyListener( sslv3Checkbox );\n addSelectionListener( sslv3Checkbox, sslv3CheckboxListener );\n\n // Enable tlsv1 Checkbox\n addDirtyListener( tlsv1_0Checkbox );\n addSelectionListener( tlsv1_0Checkbox, tlsv1_0CheckboxListener );\n\n // Enable tlsv1.1 Checkbox\n addDirtyListener( tlsv1_1Checkbox );\n addSelectionListener( tlsv1_1Checkbox, tlsv1_1CheckboxListener );\n\n // Enable tlsv1.2 Checkbox\n addDirtyListener( tlsv1_2Checkbox );\n addSelectionListener( tlsv1_2Checkbox, tlsv1_2CheckboxListener );\n\n // Replication Pinger Sleep\n addDirtyListener( replicationPingerSleepText );\n addModifyListener( replicationPingerSleepText, replicationPingerSleepTextListener );\n\n // Disk Synchronization Delay\n addDirtyListener( diskSynchronizationDelayText );\n addModifyListener( diskSynchronizationDelayText, diskSynchronizationDelayTextListener );\n }",
"public void providerStatusChanged(ProviderStatusChangeEvent evt);",
"@Override\r\n\tpublic void addListener(ILabelProviderListener listener) {\n\t\t\r\n\t}",
"private void handleComponentOption(MouseEvent e) {\n System.out.println(\"pressed button!\");\n List<String> bothNames = Arrays.asList(componentOptions.getSelectedItem().toString().split(\" \"));\n String longName = bothNames.get(1);\n try {\n\n Class swingClass = Class.forName(longName.substring(1, longName.length() - 1));\n JComponent component;\n if (!modifyTextArea(swingClass)) {\n component = (JComponent) swingClass.newInstance();\n component.setBounds(0, 0, 400, 400);\n designPanel.add(component);\n } else {\n Constructor ctor = swingClass.getConstructor(String.class);\n component = (JComponent) ctor.newInstance(text.getText());\n component.setBounds(e.getX(), e.getY(), 200, 200);\n designPanel.add(component);\n }\n\n } catch (Exception ex) {\n System.err.println(\"Something went wrong!\");\n ex.printStackTrace();\n }\n }",
"public abstract void addServiceListener(PhiDiscoverListener listener);",
"public static void processAddnewServicesMenu() {\n switch (ScannerUtils.scanner.nextLine()) {\n case ADD_NEW_VILLA:\n addNewVilla();\n break;\n case ADD_NEW_HOUSE:\n addNewHouse();\n break;\n case ADD_NEW_ROOM:\n addNewRoom();\n break;\n case BACK_TO_MAIN_MENU:\n processMain();\n break;\n case EXIT:\n System.exit(0);\n break;\n default:\n System.out.println(\"Please select from 1 to 4\");\n returnAddNewServicesMenu();\n }\n }",
"public void serviceAdded(ServiceEvent event) {\n\t\t\tLog.e(\"z\", \"added serivce: \" + event);\n\t\t}",
"protected abstract void addMenuOptions();",
"@Override\r\n\tpublic void addListener(ILabelProviderListener listener) {\n\r\n\t}",
"@Override\r\n\tpublic void addListener(ILabelProviderListener listener) {\n\r\n\t}",
"public interface SettingsSelectedListener\t{\n\t}",
"public void addMySelectionListener(EventListener l);",
"public void addService() throws Throwable\r\n\t{\r\n\t\tselServicOpt.click();\r\n\t\tverifyService();\r\n\t\twdlib.waitForElement(getSelServiceBtn());\r\n\t\tselServiceBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ServicesPage\") , \"Services Page \");\r\n\t\tServicesPage svpage=new ServicesPage();\r\n\t\tsvpage.selectServices();\r\n\t\t\r\n\t}",
"@Override\n public void addListener(ILabelProviderListener listener) {\n \n }",
"public abstract void addListener(EventListener eventListener, String componentName);",
"@Override\n\tpublic void serviceAdded(ServiceEvent arg0) {\n\t\tServiceInfo serviceInfo = mJmDNS.getServiceInfo(arg0.getType(),\n\t\t\t\targ0.getName());\n\t\tif (onFoundListener != null) {\n\t\t\tonFoundListener.onFound(serviceInfo);\n\t\t}\n\t}",
"protected boolean shouldAddControlListener() {\n return true;\n }",
"public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t\tmBoundService = ((LocalService.LocalBinder) service).getService();\r\n\r\n\t\t\t// Wenn während des Setups der Service noch nicht fertig geladen\r\n\t\t\t// ist, wird solange Warte-Overlay angezeigt\r\n\t\t\t// Wenn der Service fertig ist wird das Overlay ausgeblendet\r\n\r\n\t\t\t// if (OverlayActivity.isCreated) {\r\n\t\t\t// OverlayActivity.getInstance().dismiss();\r\n\t\t\t// }\r\n\t\t\tSetupSearchDevicesFragment fragment = (SetupSearchDevicesFragment) getFragmentById(\"SetupSearchDevicesFragment\");\r\n\t\t\tif (fragment.isVisible()) {\r\n\t\t\t\tfragment.initViewBluetooth();\r\n\t\t\t}\r\n\r\n\t\t\t// Tell the user about this for our demo.\r\n\t\t\tLog.i(TAG, \"Service connected with app...\");\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service connected.\", Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\t// Verbinde mit gespeichertem Device (falls noch keine Verbindung\r\n\t\t\t// besteht)\r\n\t\t\tif (mSharedPrefs.getConnectivityType() == 1) { // BEI BT\r\n\r\n\t\t\t\tfinal ConnectionInterface connection = mBoundService.getConnection();\r\n\t\t\t\tif (connection != null) {\r\n\t\t\t\t\tif (!connection.isConnected()) {\r\n\r\n\t\t\t\t\t\t// OnConnectedListener\r\n\t\t\t\t\t\tconnection.setOnConnectedListener(new OnConnectedListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onConnectedListener(String deviceName) {\r\n\r\n\t\t\t\t\t\t\t\tconnection.registerDisconnectHandler();\r\n\r\n\t\t\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\t\t\t// HELLO Nachricht senden\r\n\t\t\t\t\t\t\t\t\tString msg = mContext.getString(R.string.BABYFON_MSG_CONNECTION_HELLO) + \";\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ mSharedPrefs.getHostAddress() + \";\" + mSharedPrefs.getPassword();\r\n\t\t\t\t\t\t\t\t\tconnection.sendMessage(msg);\r\n\r\n\t\t\t\t\t\t\t\t\tmSharedPrefs.setRemoteOnlineState(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\tif (mSharedPrefs.getRemoteAddress() != null) { // Gespeichertes Gerät\r\n\t\t\t\t\t\t\t\t// Verbinde\r\n\t\t\t\t\t\t\t\tmBoundService.connectTo(mSharedPrefs.getRemoteAddress());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (mSharedPrefs.getDeviceMode() == 0) { // BABY\r\n\t\t\t\t\t\t\t// Warte auf Verbindung\r\n\t\t\t\t\t\t\tmBoundService.startServer();\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\r\n\t\t}",
"@Override\n public void addListener(ILabelProviderListener listener) {\n\n }",
"public abstract void initUiAndListener();",
"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 }",
"public void addListener(ILabelProviderListener arg0) {\n\r\n\t}",
"public manageLecturersNewUI() {\n initComponents();\n loadLecturerData();\n loadSubjectsToComboBox();\n PanelMain.setBackground(Loading.getColorCode());\n PanelSub.setBackground(Loading.getColorCode());\n }",
"@Override\n\tpublic void addListener(ILabelProviderListener listener) {\n\n\t}",
"@Override\n\tpublic void addListener(ILabelProviderListener listener) {\n\n\t}",
"@Override\n\tpublic void addListener(ILabelProviderListener listener) {\n\n\t}",
"public interface EventPressMenu {\r\n public void OnClickMenu(String name);\r\n}",
"@Override\r\n\t\t\tpublic void componentAdded(ContainerEvent arg0){}",
"public interface OnEventControlListener {\r\n\tvoid onEvent(int eventType, View control, Object data);\r\n}",
"public void addListener(ILabelProviderListener arg0) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t}",
"@Override\n protected void blockSetupOKAction() {\n makeProtocolPanel(ProcessSelectComboBox.getSelectedIndex());\n\n CurrentStepProtocol = CurrentProcessList;\n super.notifyMicroBlockSetupListeners(this.CurrentStepProtocol);\n\n this.setVisible(false);\n }",
"interface PlatformServiceListener {\n\t\tpublic void onServiceAvailable(PlatformInit service);\n\t}",
"public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivator.bundleContext\n .addServiceListener(protocolProviderListener);\n }\n\n for (ProtocolProviderFactory providerFactory : GuiActivator\n .getProtocolProviderFactories().values())\n {\n for (AccountID accountID : providerFactory.getRegisteredAccounts())\n {\n ServiceReference<ProtocolProviderService> serRef\n = providerFactory.getProviderForAccount(accountID);\n ProtocolProviderService protocolProvider\n = GuiActivator.bundleContext.getService(serRef);\n\n addAccountInternal(protocolProvider, parentMenu);\n }\n }\n\n // if we are in disabled menu mode and we have only one item\n // change its name (like global auto answer)\n if( ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }",
"void configureButtonListener();",
"public void serviceAdded(ServiceDescription service) {\n System.out.println(\"service added\");\n current = service;\n //set up channel to communicate with server\n //multiple beds -> multiple channels\n channel = ManagedChannelBuilder.forAddress(service.getAddress(), service.getPort())\n .usePlaintext(true)\n .build();\n\n //To call service methods, we first need to create a stub, \n //a blocking/synchronous stub: this means that the RPC call waits for the server to respond, \n //and will either return a response or raise an exception.\n blockingStub = ProjectorGrpc.newBlockingStub(channel);\n\n activateProjector();\n //listInputs();\n\n }",
"@Override\r\n\t\tpublic void onServiceConnected(ComponentName className, IBinder service) {\n\t\t\ttry {\r\n\t\t\t\tmSpiderX = SpiderX.Stub.asInterface(service);\r\n\t\t\t\tif(mSpiderX != null && spiderCallback != null){\r\n\t\t\t\t\tmSpiderX.setSpiderCallBack(spiderCallback);\r\n\t\t\t\t}\r\n\t\t\t\tfor(EventBus handler:mEventBus){\r\n\t\t\t\t\thandler.onEvent(TYPE_SERVICEBINDER_SUCESS,\"\",\"\");\r\n\t\t\t\t}\r\n\t\t\t} catch (RemoteException e) {\r\n\t\t\t\tLog.d(TAG, \" \"+e);\r\n\t\t\t}\r\n\t\t}",
"public interface AddContractDialogListener {\n /**\n * Invoked when the user wants to add an existing contract of the specified type and\n * with the specified address.\n *\n * @param contractAddress\n * @param type\n */\n void onAddContract(String contractAddress, ContractType type);\n\n /**\n * Invoked when the user wants to create a new contract of the specified type.\n * @param type\n */\n void onCreateContract(ContractType type);\n }",
"@Override\n\tpublic synchronized void registerEventListeners() {\n\t\tif (eventListeners != null) // already called\n\t\t\treturn;\n\t\teventListeners = EventListenerManagers.wrap(this);\n\t\tSelectionUpdateListener selectionUpdateListener = new SelectionUpdateListener();\n\t\tselectionUpdateListener.setHandler(this);\n\t\teventListeners.register(SelectionUpdateEvent.class, selectionUpdateListener);\n\n\t\tSelectionCommandListener selectionCommandListener = new SelectionCommandListener();\n\t\tselectionCommandListener.setHandler(this);\n\t\t// selectionCommandListener.setDataDomainID(dataDomain.getDataDomainID());\n\t\teventListeners.register(SelectionCommandEvent.class, selectionCommandListener);\n\n\t\tsuper.registerEventListeners();\n\n\n\t}",
"private void addingComponentOptionsActionListener() {\n componentOptions.addActionListener(e -> {\n List<String> bothNames = Arrays.asList(componentOptions.getSelectedItem().toString().split(\" \"));\n String longName = bothNames.get(1);\n try {\n Class swingClass = Class.forName(longName.substring(1, longName.length() - 1));\n modifyTextArea(swingClass);\n } catch (ClassNotFoundException classNotFoundException) {\n System.err.println(\"Class not found due to error!\");\n classNotFoundException.printStackTrace();\n }\n });\n }",
"public void providerStatusMessageChanged(PropertyChangeEvent evt);",
"private void initMenuOptions(IUserAccount user, JPanel optionPanel) {\n\n String startNewTransactionButtonText = languageRB.getString(\"startNewTransactionButtonText\");\n String myItemsButtonText = languageRB.getString(\"myItemsButtonText\");\n String myTradesButtonText = languageRB.getString(\"myTradesButtonText\");\n String myAccountButtonText = languageRB.getString(\"myAccountButtonText\");\n String manageUserButtonText = languageRB.getString(\"manageUserButtonText\");\n String newMessagesButtonText = languageRB.getString(\"newMessagesButtonText\");\n String logOutButtonText = languageRB.getString(\"logOutButtonText\");\n\n JButton startNewTrans = new JButton(startNewTransactionButtonText);\n JButton myItems = new JButton(myItemsButtonText);\n JButton myTrades = new JButton(myTradesButtonText);\n JButton myAccount = new JButton(myAccountButtonText);\n JButton manageUser = new JButton(manageUserButtonText);\n JButton newMessages = new JButton(newMessagesButtonText);\n JButton logOut = new JButton(logOutButtonText);\n\n startNewTrans.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n SelectTradeType.MenuScreen(user, languageRB);\n menuFrame.setVisible(false);\n }\n });\n myItems.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n MyItemsMenu.MenuScreen(user, languageRB);\n menuFrame.setVisible(false);\n }\n });\n myTrades.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n MyTradesMenu.MenuScreen(user, languageRB);\n menuFrame.setVisible(false);\n }\n });\n myAccount.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n MyAccountMenu.MenuScreen(user, languageRB);\n menuFrame.setVisible(false);\n }\n });\n manageUser.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n ManageUserMenu.MenuScreen(user, languageRB);\n menuFrame.setVisible(false);\n }\n });\n newMessages.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n NewMessagesInterface.MenuScreen(user, languageRB);\n menuFrame.setVisible(false);\n }\n });\n logOut.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n new LoginMenu(languageRB);\n menuFrame.setVisible(false);\n }\n });\n\n if (!user.getStatus().equals(\"Guest\")) {\n uiNavigator.formatButtonSize(startNewTrans, optionPanel);\n uiNavigator.formatButtonSize(myTrades, optionPanel);\n uiNavigator.formatButtonSize(newMessages, optionPanel);\n }\n uiNavigator.formatButtonSize(myItems, optionPanel);\n uiNavigator.formatButtonSize(myAccount, optionPanel);\n if (user.getStatus().equals(\"Admin\")){\n uiNavigator.formatButtonSize(manageUser, optionPanel);\n }\n uiNavigator.formatButtonSize(logOut, optionPanel);\n }",
"public void pluginComponentAdded(PluginComponentEvent event)\n {\n PluginComponentFactory factory = event.getPluginComponentFactory();\n\n Component comp = (Component)factory.getPluginComponentInstance(\n ChatWindow.this).getComponent();\n\n // If this component has been already added, we have nothing more to do\n // here.\n if (comp.getParent() != null)\n return;\n\n if (factory.getContainer().equals(Container.CONTAINER_CHAT_WINDOW)\n || factory.getContainer().equals(\n Container.CONTAINER_CHAT_STATUS_BAR))\n {\n Object borderLayoutConstraints = UIServiceImpl\n .getBorderLayoutConstraintsFromContainer(\n factory.getConstraints());\n\n this.addPluginComponent(comp,\n factory.getContainer(),\n borderLayoutConstraints);\n }\n }",
"private static void addAccount(\n final ProtocolProviderService protocolProvider,\n final SIPCommMenu parentMenu)\n {\n if(!SwingUtilities.isEventDispatchThread())\n {\n SwingUtilities.invokeLater(new Runnable()\n {\n public void run()\n {\n addAccount(protocolProvider, parentMenu);\n }\n });\n return;\n }\n\n // the initial number of autoanswer menu items\n int initialCount = getAutoAnswerItemCount(parentMenu);\n\n addAccountInternal(protocolProvider, parentMenu);\n\n // current count\n int itemsCount = getAutoAnswerItemCount(parentMenu);\n\n // if menu is disabled for autoanswer and we have added an item\n if(ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && itemsCount != initialCount)\n {\n // if initial count was 1, lets change provider name to the\n // protocol one (the first one have like global name)\n if(initialCount == 1)\n {\n for(int i = 0; i < parentMenu.getItemCount(); i++)\n {\n JMenuItem item = parentMenu.getItem(i);\n if(item instanceof AutoAnswerMenuItem)\n {\n updateItem((AutoAnswerMenuItem)item, false);\n }\n }\n }\n else if(initialCount == 0)\n {\n // this is the first item set its name like global one\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }\n }",
"@Override\n\t\t\tpublic void onServiceConnected()\n\t\t\t{\n\t\t\t\tmPopupManager = popupManager;\n\t\t\t}",
"private void addComponentsToOptionsPanel(){\r\n\t\tBox box = Box.createVerticalBox();\r\n\t\tbox.add(new JLabel(\"Active Feature Type\",SwingConstants.LEFT));\r\n\t\tJPanel featuresPanel = new JPanel(new GridLayout(2, 2));\r\n\t\tfeaturesPanel.setBorder(BorderFactory.createLineBorder (Color.black, 1));\r\n\t\tfeaturesPanel.add(asCB);\r\n\t\tfeaturesPanel.add(new JLabel(\"\"));\r\n\t\tfeaturesPanel.add(bldngCB);\r\n\t\tfeaturesPanel.add(stuCB);\r\n\t\tbox.add(featuresPanel);\r\n\r\n\t\t//creating empty space\r\n\t\tbox.add(new JPanel());\r\n\t\t\r\n\t\tJLabel queryLabel = new JLabel(\"Query\",SwingConstants.LEFT);\r\n\t\tbox.add(queryLabel);\r\n\t\tJPanel queriesRB = new JPanel();\r\n\t\tqueriesRB.setLayout(new BoxLayout(queriesRB, BoxLayout.Y_AXIS));\r\n\t\tbuttonGroup = new ButtonGroup();\r\n\t\twholeRegion = new JRadioButton(\"Whole Region\");\r\n\t\twholeRegion.addItemListener(new ItemListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent arg0) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tpointQuery = new JRadioButton(\"Point Query\");\r\n\t\tpointQuery.addItemListener(new ItemListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent ie) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\tif(ie.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\tpointQuery.setSelected(true);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(\"Point Query\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tpointQuery.setSelected(false);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(null);\r\n\t\t\t\t\tsetPqX(-300);\r\n\t\t\t\t\tsetPqY(-300);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\trangeQuery = new JRadioButton(\"Range Query\");\r\n\t\trangeQuery.addItemListener(new ItemListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent ie) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\tif(ie.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\trangeQuery.setSelected(true);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(\"Range Query\");\r\n\t\t\t\t\tsetDrawPoly(true);\r\n\t\t\t\t}else{\r\n\t\t\t\t\trangeQuery.setSelected(false);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(null);\r\n\t\t\t\t\tgetPath().clear();\r\n\t\t\t\t}\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\tsurrStudent = new JRadioButton(\"Surrounding Student\");\r\n\t\tsurrStudent.addItemListener(new ItemListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent ie) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\tif(ie.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\tsurrStudent.setSelected(true);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(\"Surrounding Student\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tsurrStudent.setSelected(false);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(null);\r\n\t\t\t\t}\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\temerQuery = new JRadioButton(\"Emergency Query\");\r\n\t\temerQuery.addItemListener(new ItemListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent ie) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\tif(ie.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\temerQuery.setSelected(true);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(\"Emergency Query\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\temerQuery.setSelected(false);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(null);\r\n\t\t\t\t}\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tbuttonGroup.add(wholeRegion);\r\n\t\tbuttonGroup.add(pointQuery);\r\n\t\tbuttonGroup.add(rangeQuery);\r\n\t\tbuttonGroup.add(surrStudent);\r\n\t\tbuttonGroup.add(emerQuery);\r\n\t\tqueriesRB.add(wholeRegion);\r\n\t\tqueriesRB.add(pointQuery);\r\n\t\tqueriesRB.add(rangeQuery);\r\n\t\tqueriesRB.add(surrStudent);\r\n\t\tqueriesRB.add(emerQuery);\r\n\t\tqueriesRB.setBorder(BorderFactory.createLineBorder (Color.black, 1));\r\n\t\tbox.add(queriesRB);\r\n\t\t//creating empty space\r\n\t\tbox.add(new JPanel());\r\n\t\tJPanel buttonPanel = new JPanel();\r\n\t\tbuttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));\r\n\t\tsubmitButton = new JButton(\"Submit Query\");\r\n\t\tsubmitButton.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\r\n\t\t\t\tQuery query = new Query();\r\n\t\t\t\tquery.setAsFlag(asCB.isSelected());\r\n\t\t\t\tquery.setBuildingFlag(bldngCB.isSelected());\r\n\t\t\t\tquery.setStudentFlag(stuCB.isSelected());\r\n\t\t\t\tquery.setSubmitFlag(true);\r\n\t\t\t\tfor(Enumeration<AbstractButton> radButtons = buttonGroup.getElements(); radButtons.hasMoreElements();){\r\n\t\t\t\t\tAbstractButton ab = radButtons.nextElement();\r\n\t\t\t\t\tif(ab.isSelected()){\r\n\t\t\t\t\t\tquery.setSelectedQuery(ab.getText());\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\tsetQuery(query);\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonPanel.add(submitButton);\r\n\t\tbuttonPanel.setBorder(BorderFactory.createLineBorder (Color.black, 1));\r\n\t\tbox.add(buttonPanel);\r\n\t\toptionsPanel.add(box);\r\n\t}",
"public void insertPluginMenu(java.awt.MenuItem mi);",
"void jInterfaceList_mouseClicked(MouseEvent e) {\n PluginDescriptor[] plugins = PluginRegistry.getPlugins();\n DefaultListModel pluginlistmodel = new DefaultListModel();\n DefaultListModel assignedlistmodel = new DefaultListModel();\n String classname = (String) jInterfaceList.getSelectedValue();\n Class interfaceClass = null;\n try {\n interfaceClass = Class.forName(classname);\n } catch (ClassNotFoundException ex1) {\n ex1.printStackTrace();\n }\n for (int i = 0; i < plugins.length; i++) {\n try {\n if (Class.forName(\"org.geworkbench.engine.config.events.EventSource\").isAssignableFrom(plugins[i].getPlugin().getClass())) {\n \n AppEventListener[] aps = ((EventSource) plugins[i].getPlugin()).getListenersForEvent(interfaceClass);\n EGTreeNode node = (EGTreeNode) jComponentTree.getLastSelectedPathComponent();\n PluginDescriptor value = (PluginDescriptor) (node.getComponent());\n boolean hooked = false;\n if (aps != null) {\n for (int j = 0; j < aps.length; j++) {\n if (value.getPlugin().equals(aps[j])) {\n hooked = true;\n break;\n }\n }\n }\n if (hooked) {\n assignedlistmodel.addElement(plugins[i].getID());\n } else {\n pluginlistmodel.addElement(plugins[i].getID());\n }\n }\n } catch (AppEventListenerException ex2) {\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n }\n }\n jAssignedList.setModel(assignedlistmodel);\n jEventSourcesList.setModel(pluginlistmodel);\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tAddNotificationWizard wizard = new AddNotificationWizard(humanInteractions,notificationPage,domain,notficationViewer);\n\t\t\t\tWizardDialog wizardDialog = new WizardDialog(Display .getCurrent().getActiveShell(),wizard);\n\t\t\t\twizardDialog.create(); \n\t\t\t\twizardDialog.open();\n\t\t\t}",
"private Menu createServiceMenu() {\r\n\t\tMenu serviceMenu = new Menu(\"Service\");\r\n\r\n\t\tstartService = new MenuItem(\"Start\");\r\n\t\tstartService.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tlocalPeer.startService();\r\n\t\t\t}\r\n\t\t});\r\n\t\tserviceMenu.add(startService);\r\n\r\n\t\tstopService = new MenuItem(\"Stop\");\r\n\t\tstopService.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tlocalPeer.stopService();\r\n\t\t\t}\r\n\t\t});\r\n\t\tstopService.setEnabled(false);\r\n\t\tserviceMenu.add(stopService);\r\n\r\n\t\treturn serviceMenu;\r\n\t}",
"@MenuCallback(id=3)\n public void inputControlHasChanged(Object sender, EnumMenuItem item) {\n }",
"@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}",
"void installListeners() {\n\t\t\t// Listeners on this popup's table and scroll bar\n\t\t\tproposalTable.addListener(SWT.FocusOut, this);\n\t\t\tScrollBar scrollbar = proposalTable.getVerticalBar();\n\t\t\tif (scrollbar != null) {\n\t\t\t\tscrollbar.addListener(SWT.Selection, this);\n\t\t\t}\n\n\t\t\t// Listeners on this popup's shell\n\t\t\tgetShell().addListener(SWT.Deactivate, this);\n\t\t\tgetShell().addListener(SWT.Close, this);\n\n\t\t\t// Listeners on the target control\n\t\t\tcontrol.addListener(SWT.MouseDoubleClick, this);\n\t\t\tcontrol.addListener(SWT.MouseDown, this);\n\t\t\tcontrol.addListener(SWT.Dispose, this);\n\t\t\tcontrol.addListener(SWT.FocusOut, this);\n\t\t\t// Listeners on the target control's shell\n\t\t\tShell controlShell = control.getShell();\n\t\t\tcontrolShell.addListener(SWT.Move, this);\n\t\t\tcontrolShell.addListener(SWT.Resize, this);\n\t\t}",
"@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n GrcBoxBinder binder = (GrcBoxBinder) service;\n grcBoxCli = binder.getService();\n mBound = true;\n \t\t\n \t\tif(!grcBoxCli.isRegistered()){\n \t\t\tgrcBoxCli.register(getResources().getString(R.string.app_name));\n \t\t}\n\t\t\tfor(GrcBoxRule rule: pendingRules){\n\t\t\t\tnew NewRuleTask(\"\").execute(rule);\n\t\t\t}\n\t\t\tpendingRules.clear();\n }",
"@Override\n\tpublic void serviceRemoved(ServiceEvent arg0) {\n\n\t}",
"public interface ServicePresenceListener {\n\n\tvoid updateComponentServices(\n\t\t\tfinal ServiceProto.ComponentRef componentRef,\n\t\t\tfinal Multimap<ServiceProto.ServiceRef, String> services,\n\t\t\tfinal Multimap<ServiceProto.ServiceRef, Integer> serviceFlags);\n\n}",
"private void buildGroupLinkMenu(JMenu enfinServiceMenu,\n AlignFrame alignFrame)\n {\n if (running || !started)\n {\n return;\n }\n SequenceI[] seqs = alignFrame.getViewport().getSelectionAsNewSequence();\n SequenceGroup sg = alignFrame.getViewport().getSelectionGroup();\n if (sg == null)\n {\n // consider visible regions here/\n }\n enfinServiceMenu.removeAll();\n JMenu entries = buildGroupURLMenu(seqs, sg);\n if (entries != null)\n {\n for (int i = 0, iSize = entries.getMenuComponentCount(); i < iSize; i++)\n {\n // transfer - menu component is removed from entries automatically\n enfinServiceMenu.add(entries.getMenuComponent(0));\n }\n // entries.removeAll();\n enfinServiceMenu.setEnabled(true);\n }\n else\n {\n enfinServiceMenu.setEnabled(false);\n }\n }",
"@Override\n\tpublic void addOnMenuVisibilityListener(OnMenuVisibilityListener listener) {\n\t\t\n\t}",
"public void attachWSMenuEntry(final JMenu wsmenu,\n final AlignFrame alignFrame)\n {\n final JMenu enfinServiceMenu = new JMenu(\"Envision 2\");\n wsmenu.add(enfinServiceMenu);\n enfinServiceMenu.setEnabled(false);\n wsmenu.addMenuListener(new MenuListener()\n {\n // this listener remembers when the menu was first selected, and\n // doesn't rebuild the session list until it has been cleared and\n // reselected again.\n boolean refresh = true;\n\n public void menuCanceled(MenuEvent e)\n {\n refresh = true;\n }\n\n public void menuDeselected(MenuEvent e)\n {\n refresh = true;\n }\n\n public void menuSelected(MenuEvent e)\n {\n if (refresh && !isRunning())\n {\n new Thread(new Runnable()\n {\n public void run()\n {\n try\n {\n buildGroupLinkMenu(enfinServiceMenu, alignFrame);\n } catch (OutOfMemoryError ex)\n {\n Cache.log\n .error(\"Out of memory when calculating the Envision2 links.\",\n ex);\n enfinServiceMenu.setEnabled(false);\n }\n }\n }).start();\n refresh = false;\n }\n }\n });\n\n }",
"IProductSelectorListener getM_pslListener();",
"@Override\r\n\t\t\t\t\tpublic void addItemEventOccurred(AddItemEvent event) {\n\r\n\t\t\t\t\t}",
"@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}",
"public void widgetSelected(SelectionEvent e) {\n\t\t\t\tnew ShellEscribirMensaje(tabFolder.getShell(),bundle,vista,null,0,\"\",false,tabla);\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void addSelectionListener(SelectionListener l) {\n\t\tif (listeners == null) {\n\t\t\tlisteners = new ArrayList<>();\n\t\t}\n\t\tlisteners.add(l);\n\t}",
"@Override\n public void onCancel(DialogInterface dialog) {\n onProviderInstallerNotAvailable();\n }",
"private void registerListeners() {\n\t\t\n\t\t//Vertical coupler action listener\n\t\tvC.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//divide facet option FALSE\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//Edit button not enabled for couplers\n\t\t\t\tedit.setEnabled(false);\n\t\t\t\t//Extend button not enabled for couplers\n\t\t\t\textend.setEnabled(false);\n\t\t\t\t//Setting cursor icon configuration for vertical coupler\n\t\t\t\tbuttonAction(ValidOrientations.VERTICAL.getValue());\n\t\t\t\t//MType for couplers equals 1\n\t\t\t\tmType = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Semaphore vertical coupler option\n\t\t\t\tselectedHV = ValidOrientations.VERTICAL.getValue();\n\t\t\t\t//Semaphore level selected\n\t\t\t\tselectedLevel = ValidCouplerMullions.COUPLER.getValue();\n\n //Filter valid coupler verticals\n List<TypeCouplerMullion> validCouplers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.COUPLER.getValue(),\n ValidOrientations.VERTICAL.getValue());\n\n List<TypeCouplerMullion> validDividers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.DIVIDER.getValue(),\n ValidOrientations.VERTICAL.getValue());\n\n validCouplers.addAll(validDividers);\n\n //Init coupler types comboBox\n\t\t\t\tDefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validCouplers.toArray());\n couplerTypeC.setModel(comboBoxModel);\n\t\t\t\tcouplerTypeC.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\t//Remove components options which feature\n\t\t\t\twhichFeature.remove(couplerTypeC);\n\t\t\t\twhichFeature.remove(edit);\n\t\t\t\twhichFeature.remove(extend);\n\t\t\t\t\n\t\t\t\twhichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Horizontal coupler action listener\n\t\thC.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Semaphore divide facet option FALSE\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//Edit button disabled for horizontal coupler\n\t\t\t\tedit.setEnabled(false);\n\t\t\t\t//Extend button disabled for horizontal coupler\n\t\t\t\textend.setEnabled(false);\n\t\t\t\t//Semaphore level selected\n\t\t\t\tselectedLevel = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Setting cursor icon configuration for horizontal coupler\n\t\t\t\tbuttonAction(ValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t//MType for couplers equals 1\n\t\t\t\tmType = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Semaphore horizontal coupler option\n\t\t\t\tselectedHV = ValidOrientations.HORIZONTAL.getValue();\n\t\t\t\t\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validCouplers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.COUPLER.getValue(),\n\t\t\t\t\t\t\tValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t\n\t\t\t\t//Init coupler types comboBox\n\t\t\t\tDefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validCouplers.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\t//Remove components options which feature\n\t\t\t\twhichFeature.remove(couplerTypeC);\n\t\t\t\twhichFeature.remove(edit);\n\t\t\t\twhichFeature.remove(extend);\n\t\t\t\t\n\t\t\t\twhichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tvM.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//myParent.clearCMAlignEdit();\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//MType for mullions equals 2\n\t\t\t\tmType = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Vertical mullions position\n\t\t\t\tselectedHV = ValidOrientations.VERTICAL.getValue();\n\t\t\t\t//Level selected for mullions\n\t\t\t\tselectedLevel = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Edit button enabled for vertical mullions\n\t\t\t\tbuttonAction(ValidOrientations.VERTICAL.getValue());\n\t\t\t\t//Extends button enabled for vertical mullions\n\t\t\t\tenableDisableBySeries();\n\t\t\t\t\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validMullions = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.MULLION.getValue(),\n\t\t\t\t\t\t\tValidOrientations.VERTICAL.getValue());\n\t\t\t\t\n\t\t\t\t//Init mullion types comboBox\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validMullions.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\n whichFeature.remove(couplerTypeC);\n\n\t\t\t\twhichFeature.add(edit, new XYConstraints(132, 0, 24, 19));\n\t\t\t\twhichFeature.add(extend, new XYConstraints(156, 0, 24, 19));\n whichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\thM.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//myParent.clearCMAlignEdit();\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//MType for mullions equals 2\n\t\t\t\tmType = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Horizontal mullions position\n\t\t\t\tselectedHV = ValidOrientations.HORIZONTAL.getValue();\n\t\t\t\t//Selected level for mullions equals 2\n\t\t\t\tselectedLevel = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Edit panel enabled for mullions\n\t\t\t\tenableDisableBySeries();\n\t\t\t\tbuttonAction(ValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validMullions = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.MULLION.getValue(),\n\t\t\t\t\t\t\tValidOrientations.HORIZONTAL.getValue());\n\n //Init mullion types comboBox\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validMullions.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\n whichFeature.remove(couplerTypeC);\n\n\t\t\t\twhichFeature.add(edit, new XYConstraints(132, 0, 24, 19));\n\t\t\t\twhichFeature.add(extend, new XYConstraints(156, 0, 24, 19));\n whichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcancel.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Setting edit visible\n\t\t\t\tsetEditVisible(false, null);\n\t\t\t\t\n\t\t\t\tif (hM.isSelected() || vM.isSelected()) {\n\t\t\t\t\tenableDisableBySeries();\n\t\t\t\t} else if (hC.isSelected() || vC.isSelected()) {\n\t\t\t\t\tenableDisableBySeries();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Edit mullions action listener\n\t\tedit.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\textend.setSelected(false);\n\t\t\t\tedit.setSelected(true);\n\t\t\t\t\n\t\t\t\t//Call edit action event\n\t\t\t\tedit_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tpfCombo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcomboPF(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Coupler type comboBox listener\n\t\tthis.couplerTypeC.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcoupleTypeAction();\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.part.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif (part.isSelected()) {\n\t\t\t\t\tparts.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tparts.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !endTypeRB.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.extend.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\textend.setSelected(true);\n\t\t\t\tedit.setSelected(false);\n\t\t\t\tcont_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tendTypeLT.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (endTypeLT.isSelected()) {\n\t\t\t\t\tlCut.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tlCut.setEnabled(false);\n\t\t\t\t\tif (!part.isSelected() && !endTypeRB.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tendTypeRB.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (endTypeRB.isSelected()) {\n\t\t\t\t\trCut.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\trCut.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !part.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tpfFormL.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (pfFormL.isSelected()) {\n\t\t\t\t\tpfCombo.setEnabled(true);\n\t\t\t\t\toffsetLT.setEnabled(true);\n\t\t\t\t\toffsetRB.setEnabled(true);\n\t\t\t\t\tdeltaL.setEnabled(true);\n\t\t\t\t\tdeltaR.setEnabled(true);\n\t\t\t\t\toffsetL.setEnabled(true);\n\t\t\t\t\toffsetR.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tpfCombo.setEnabled(false);\n\t\t\t\t\toffsetLT.setEnabled(false);\n\t\t\t\t\toffsetRB.setEnabled(false);\n\t\t\t\t\tdeltaL.setEnabled(false);\n\t\t\t\t\tdeltaR.setEnabled(false);\n\t\t\t\t\toffsetL.setEnabled(false);\n\t\t\t\t\toffsetR.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !part.isSelected() && !part.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsetGo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tset_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t}",
"public static interface MenuCreationListener {\n public void menuCreated(LimeComboBox comboBox, JPopupMenu menu);\n }",
"@Override\n public void menuSelected(MenuEvent e) {\n \n }",
"public void providerStatusChanged(ProviderPresenceStatusChangeEvent evt);",
"@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}",
"public void actionPerformed(ActionEvent evt) {\n DialogManager.showMessage(null, \"Service Settings\", \"Not Implemented\");\n }",
"@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }",
"@Override\n\tpublic void addListener() {\n\t\t\n\t}"
] | [
"0.6281164",
"0.6073831",
"0.59160167",
"0.5786952",
"0.57254726",
"0.5652154",
"0.5582917",
"0.5523375",
"0.54359424",
"0.54140264",
"0.5394528",
"0.53598964",
"0.5354368",
"0.53330797",
"0.5307316",
"0.5303124",
"0.52982795",
"0.5280763",
"0.5265187",
"0.52465916",
"0.5235978",
"0.52242655",
"0.52076894",
"0.52009153",
"0.5191282",
"0.5185961",
"0.51465344",
"0.5140139",
"0.51228034",
"0.51111156",
"0.5103662",
"0.5100576",
"0.5100141",
"0.50886863",
"0.5078916",
"0.5078573",
"0.50747544",
"0.50747544",
"0.5073444",
"0.50658566",
"0.5065709",
"0.5060739",
"0.5046227",
"0.50419927",
"0.50346005",
"0.503446",
"0.5021412",
"0.5021297",
"0.5020192",
"0.50174886",
"0.50074095",
"0.4999502",
"0.4999502",
"0.4999502",
"0.4991318",
"0.49820834",
"0.49787274",
"0.49780956",
"0.49761868",
"0.49748507",
"0.495651",
"0.49450073",
"0.49447834",
"0.49391037",
"0.4932882",
"0.49289146",
"0.49236578",
"0.49123222",
"0.4903665",
"0.48931432",
"0.48913738",
"0.48888457",
"0.48860076",
"0.48852375",
"0.48822615",
"0.48775384",
"0.4869048",
"0.48645988",
"0.48644656",
"0.4862431",
"0.48598662",
"0.48576346",
"0.48570547",
"0.48563212",
"0.48545983",
"0.48425323",
"0.48272192",
"0.48258922",
"0.48163953",
"0.48156768",
"0.4812359",
"0.4811671",
"0.4808651",
"0.48063916",
"0.48000485",
"0.47993472",
"0.4792355",
"0.47922423",
"0.4790291",
"0.47902694"
] | 0.66084975 | 0 |
Init the menu item. | AutoAnswerMenuItem(ProtocolProviderService provider,
SIPCommMenu parentMenu)
{
this(provider,
getItemDisplayName(provider),
getIconForProvider(provider, null, parentMenu),
parentMenu);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initMenu(){\n\t}",
"public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}",
"public ItemMenu() {\n super(null, null);\n }",
"private void init() {\n StateManager.setState(new MenuState());\n }",
"public void init() {\n\t\tsuper.init();\n\n\t\tsetName(NAME);\n\n\t\tmoveUpMenuItem = new JMenuItem(MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setName(NAME_MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setEnabled(true);\n\t\tmoveUpMenuItem.addActionListener(moveUpAction);\n\t\tmoveUpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_UP,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tmoveDownMenuItem = new JMenuItem(MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setName(NAME_MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setEnabled(true);\n\t\tmoveDownMenuItem.addActionListener(moveDownAction);\n\t\tmoveDownMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DOWN, ActionEvent.ALT_MASK));\n\n\t\tdeleteMenuItem = new JMenuItem(MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setName(NAME_MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setEnabled(true);\n\t\tdeleteMenuItem.addActionListener(deleteAction);\n\t\tdeleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DELETE, 0));\n\n\t\taddMenuItem = new JMenuItem(MENU_ITEM_ADD);\n\t\taddMenuItem.setName(NAME_MENU_ITEM_ADD);\n\t\taddMenuItem.setEnabled(true);\n\t\taddMenuItem.addActionListener(addAction);\n\t\taddMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\teditMenuItem = new JMenuItem(MENU_ITEM_EDIT);\n\t\teditMenuItem.setName(NAME_MENU_ITEM_EDIT);\n\t\teditMenuItem.setEnabled(true);\n\t\teditMenuItem.addActionListener(editAction);\n\t\teditMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tsendMidiMenuItem = new JMenuItem(MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setName(NAME_MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setEnabled(false);\n\t\tsendMidiMenuItem.addActionListener(sendMidiAction);\n\t\tsendMidiMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,\n\t\t\t\tActionEvent.ALT_MASK));\n\t}",
"public startingMenu() {\r\n initComponents();\r\n }",
"private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }",
"public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance().getGUILog().showMessage(\"Show a popup the proper\n\t\t// way !\");\n\n\t\t// final ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\n\t\t// final MDAction action = new ExampleAction();\n\t\t// Adding action to main menu\n\t\t// manager.addMainMenuConfigurator(new MainMenuConfigurator(action));\n\t\t// Adding action to main toolbar\n\t\t// manager.addMainToolbarConfigurator(new MainToolbarConfigurator(action));\n\n\t\t// pluginDir = getDescriptor().getPluginDirectory().getPath();\n\n\t\t// Creating submenu in the MagicDraw main menu\n\t\t// ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\t\t// manager.addMainMenuConfigurator(new\n\t\t// MainMenuConfigurator(getSubmenuActions()));\n\n\t\t/**\n\t\t * @Todo: load project options (@see myplugin.generator.options.ProjectOptions)\n\t\t * from ProjectOptions.xml and take ejb generator options\n\t\t */\n\n\t\t// for test purpose only:\n\t\t// GeneratorOptions ejbOptions = new GeneratorOptions(\"c:/temp\", \"ejbclass\",\n\t\t// \"templates\", \"{0}.java\", true, \"ejb\");\n\t\t// ProjectOptions.getProjectOptions().getGeneratorOptions().put(\"EJBGenerator\",\n\t\t// ejbOptions);\n\n\t\t// ejbOptions.setTemplateDir(pluginDir + File.separator +\n\t\t// ejbOptions.getTemplateDir()); //apsolutna putanja\n\t}",
"private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}",
"private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }",
"public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"public menu() {\n initComponents();\n }",
"public menu() {\n initComponents();\n }",
"public void init() {\n\t\tmenuTimer.start();\n\t\tmainMenuAnimation = new Animation(100,Assets.mainMenu);\n\t}",
"private void initMenu()\n {\n bar = new JMenuBar();\n fileMenu = new JMenu(\"File\");\n crawlerMenu = new JMenu(\"Crawler\"); \n aboutMenu = new JMenu(\"About\");\n \n bar.add(fileMenu);\n bar.add(crawlerMenu);\n bar.add(aboutMenu);\n \n exit = new JMenuItem(\"Exit\");\n preferences = new JMenuItem(\"Preferences\");\n author = new JMenuItem(\"Author\");\n startCrawlerItem = new JMenuItem(\"Start\");\n stopCrawlerItem = new JMenuItem(\"Stop\");\n newIndexItem = new JMenuItem(\"New index\");\n openIndexItem = new JMenuItem(\"Open index\");\n \n stopCrawlerItem.setEnabled(false);\n \n fileMenu.add(newIndexItem);\n fileMenu.add(openIndexItem);\n fileMenu.add(exit);\n aboutMenu.add(author);\n crawlerMenu.add(startCrawlerItem);\n crawlerMenu.add(stopCrawlerItem);\n crawlerMenu.add(preferences);\n \n author.addActionListener(this);\n preferences.addActionListener(this);\n exit.addActionListener(this);\n startCrawlerItem.addActionListener(this);\n stopCrawlerItem.addActionListener(this);\n newIndexItem.addActionListener(this);\n openIndexItem.addActionListener(this);\n \n frame.setJMenuBar(bar);\n }",
"public Menu() {\n initComponents();\n }",
"public Menu() {\n initComponents();\n }",
"public Menu() {\n initComponents();\n }",
"public MainMenu() {\n super();\n }",
"public void aboutInit(MenuItem menuItem){\n Intent aboutUsIntent = new Intent(MainActivity.this, about.class);\n startActivity(aboutUsIntent);\n }",
"public MenuItem(){\n\n }",
"private void init()\n {\n btnUser.setOnAction(buttonHandler);\n btnHome.setOnAction(event -> changeScene(\"store/fxml/home/home.fxml\"));\n btnCategories.setOnAction(event -> changeScene(\"store/fxml/category/categories.fxml\"));\n btnTopApps.setOnAction(buttonHandler);\n btnPurchased.setOnAction(buttonHandler);\n btnMenu.setOnAction(buttonHandler);\n btnSearch.setOnAction(buttonHandler);\n btnFeatured.setOnAction(buttonHandler);\n\n itmLogout = new MenuItem(\"Logout\");\n itmAddApp = new MenuItem(\"Add app\");\n itmUsers = new MenuItem(\"Manage users\");\n itmCategories = new MenuItem(\"Manage categories\");\n\n itmAddApp.setOnAction(itemHandler);\n itmLogout.setOnAction(itemHandler);\n itmUsers.setOnAction(itemHandler);\n itmCategories.setOnAction(itemHandler);\n\n if (user.getId() != null)\n {\n btnMenu.setVisible(true);\n if (user.getAdmin())\n btnMenu.getItems().addAll(itmAddApp, itmCategories, itmUsers, itmLogout);\n else\n btnMenu.getItems().add(itmLogout);\n\n ImageView imageView = new ImageView(user.getPicture());\n imageView.setFitHeight(25);\n imageView.setFitWidth(25);\n\n btnUser.setText(user.getUsername());\n }\n else\n btnMenu.setVisible(false);\n }",
"public ActionMenuItem() {\n this(\"\");\n }",
"public MyMenu() {\n this(DSL.name(\"MY_MENU\"), null);\n }",
"public void init() {\n menus.values().forEach(ToolbarSubMenuMenu::init);\n }",
"public LibrarianMenu() {\n initComponents();\n }",
"public Menu() {\n\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // Repartos\n// initializeMainMenu();\n connectMainMenuClickActions();\n \n initFirstMenu();\n }",
"public MainMenu() {\n initComponents();\n }",
"public MainMenu() {\n initComponents();\n }",
"public MainMenu() {\n initComponents();\n }",
"public void initMenu() {\n\t\t\r\n\t\treturnToGame = new JButton(\"Return to Game\");\r\n\t\treturnToGame.setBounds(900, 900, 0, 0);\r\n\t\treturnToGame.setBackground(Color.BLACK);\r\n\t\treturnToGame.setForeground(Color.WHITE);\r\n\t\treturnToGame.setVisible(false);\r\n\t\treturnToGame.addActionListener(this);\r\n\t\t\r\n\t\treturnToStart = new JButton(\"Main Menu\");\r\n\t\treturnToStart.setBounds(900, 900, 0, 0);\r\n\t\treturnToStart.setBackground(Color.BLACK);\r\n\t\treturnToStart.setForeground(Color.WHITE);\r\n\t\treturnToStart.setVisible(false);\r\n\t\treturnToStart.addActionListener(this);\r\n\t\t\r\n\t\t//add(menubackground);\r\n\t\tadd(returnToGame);\r\n\t\tadd(returnToStart);\r\n\t}",
"public Menu() {\r\n\r\n }",
"public Menu()\n {\n \n }",
"private void initializeMenuForListView() {\n\t\tMenuItem sItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_S_MENU));\n\t\tsItem.setOnAction(event ->\n\t\t\taddSAction()\n\t\t);\n\t\t\n\t\tMenuItem scItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_SC_MENU));\n\t\tscItem.setOnAction(event ->\n\t\t\t\taddScAction()\n\t\t);\n\t\t\n\t\tContextMenu menu = new ContextMenu(sItem, scItem);\n\t\tfirstListView.setContextMenu(menu);\n\t\tsecondListView.setContextMenu(menu);\n\t}",
"protected void initialize() {\n\t\tthis.initializeFileMenu();\n\t\tthis.initializeEditMenu();\n\t\tthis.initializeNavigationMenu();\n\t\tthis.initializeHelpMenu();\n\t}",
"void setMenuItem(MenuItem menuItem);",
"public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\n\t}",
"public Menus() {\n initComponents();\n }",
"public void init()\n\t{\n\t\tadd(onloadItem = newOnloadItem(\"onload_item\"));\n\t\tadd(mouseoverItem = newMouseoverItem(\"mouseover_item\"));\n\t\tadd(onclickItem = newOnclickItem(\"onclick_item\"));\n\n\t\t// animation\n\t\tmouseoverItem.add(new YuiAnimation(OnEvent.mouseover, onloadItem)\n\t\t\t\t.addEffect(mouseoverEffect()));\n\t\tmouseoverItem.add(new YuiAnimation(OnEvent.mouseout, mouseoverItem)\n\t\t\t\t.addEffect(mouseoutEffect()));\n\n\t\t// this is the \"select\"\n\t\tonclickItem.add(new YuiAnimation(OnEvent.click, mouseoverItem, getElement(),\n\t\t\t\tgetSelectValue()).addEffect(onselectEffect()));\n\n\t\t// this is the \"unselect\"\n\t\tonclickItem.add(onunselectAnimation = new YuiAnimation(OnEvent.click, onclickItem,\n\t\t\t\tgetElement(), getUnselectValue()).addEffect(onunselectEffect()));\n\t}",
"private void initOption() {\r\n\t\tthis.option = new JMenu(\"Options\");\r\n\t\tthis.add(option);\r\n\t\tthis.initNewGame();\r\n\t\tthis.initNewServer();\r\n\t\tthis.initNewConnect();\r\n\t\tthis.initExitConnect();\r\n\t\tthis.initExitGame();\r\n\t}",
"public Menu() {\n mainMenuScene = createMainMenuScene();\n mainMenu();\n }",
"private void setItemMenu() {\n choices = new ArrayList<>();\n \n choices.add(Command.INFO);\n if (item.isUsable()) {\n choices.add(Command.USE);\n }\n if (item.isEquipped()) {\n choices.add(Command.UNEQUIP);\n } else {\n if (item.isEquipable()) {\n choices.add(Command.EQUIP);\n }\n }\n \n if (item.isActive()) {\n choices.add(Command.UNACTIVE);\n } else {\n if (item.isActivable()) {\n choices.add(Command.ACTIVE);\n }\n }\n if (item.isDropable()) {\n choices.add(Command.DROP);\n }\n if (item.isPlaceable()) {\n choices.add(Command.PLACE);\n }\n choices.add(Command.DESTROY);\n choices.add(Command.CLOSE);\n \n this.height = choices.size() * hItemBox + hGap * 2;\n }",
"private void init(String text)\n\t{\n\t\tthis.text = text;\n\n\t\tsetColor(ClassEntityView.getBasicColor());\n\t\tpopupMenu.addSeparator();\n\t\tfinal JMenuItem item = new JMenuItem(\"Delete commentary\", PersonalizedIcon.createImageIcon(Slyum.ICON_PATH + \"delete16.png\"));\n\t\titem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tdelete();\n\t\t\t}\n\t\t});\n\t\t\n\t\tparent.selectOnly(this);\n\t\tpopupMenu.add(item);\n\t}",
"public MenuTamu() {\n initComponents();\n \n }",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"public OptionsMenu() {\n initComponents();\n }",
"private void setUpMenu() {\n\t\tresideMenu = new ResideMenu(this);\n\t\tresideMenu.setBackground(R.drawable.menu_background);\n\t\tresideMenu.attachToActivity(this);\n\t\tresideMenu.setMenuListener(menuListener);\n\t\t// valid scale factor is between 0.0f and 1.0f. leftmenu'width is\n\t\t// 150dip.\n\t\tresideMenu.setScaleValue(0.6f);\n\n\t\t// create menu items;\n\t\titemGame = new ResideMenuItem(this, R.drawable.icon_game,\n\t\t\t\tgetResources().getString(R.string.strGame));\n\t\titemBook = new ResideMenuItem(this, R.drawable.icon_book,\n\t\t\t\tgetResources().getString(R.string.strBook));\n\t\titemNews = new ResideMenuItem(this, R.drawable.icon_news,\n\t\t\t\tgetResources().getString(R.string.strNews));\n\t\t// itemSettings = new ResideMenuItem(this, R.drawable.icon_setting,\n\t\t// getResources().getString(R.string.strSetting));\n\t\titemLogin = new ResideMenuItem(this, R.drawable.icon_share,\n\t\t\t\tgetResources().getString(R.string.strShare));\n\t\titemBookPDF = new ResideMenuItem(this, R.drawable.icon_bookpdf,\n\t\t\t\tgetResources().getString(R.string.strBookPDF));\n\t\titemMore = new ResideMenuItem(this, R.drawable.icon_more,\n\t\t\t\tgetResources().getString(R.string.strMore));\n\n\t\titemGame.setOnClickListener(this);\n\t\titemBook.setOnClickListener(this);\n\t\titemNews.setOnClickListener(this);\n\t\t// itemSettings.setOnClickListener(this);\n\t\titemBookPDF.setOnClickListener(this);\n\t\titemMore.setOnClickListener(this);\n\t\titemLogin.setOnClickListener(this);\n\n\t\tresideMenu.addMenuItem(itemBookPDF, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemBook, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemNews, ResideMenu.DIRECTION_LEFT);\n\t\t// resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n\n\t\tresideMenu.addMenuItem(itemGame, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemLogin, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemMore, ResideMenu.DIRECTION_RIGHT);\n\n\t\t// You can disable a direction by setting ->\n\t\t// resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n\t\tfindViewById(R.id.title_bar_left_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tfindViewById(R.id.title_bar_right_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"public Menu() {\n this(\"\");\n }",
"private void initializeMenuForPairsListView() {\n\t\tMenuItem deleteItem = new MenuItem(labels.get(Labels.PROP_INFO_REMOVE_MENU));\n\t\tdeleteItem.setOnAction(event ->\n\t\t\t\tremoveSelectedAction()\n\t\t);\n\t\tpairsListView.setContextMenu(new ContextMenu(deleteItem));\n\t}",
"public Menu() {\n }",
"public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }",
"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}",
"public void setMenuItem(MenuItem menuItem) {\n this.menuItem = menuItem;\n }",
"public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }",
"public SysMenu() {\n this(DSL.name(\"sys_menu\"), null);\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 PauseMenu() {\r\n\t\tinitialize();\r\n\t}",
"public Menu(Context context) {\r\n\t\tsuper(context);\r\n\t\tinit(context);\r\n\t\tthis.context = context;\r\n\t}",
"public MenuPrincipal() {\n initComponents();\n \n }",
"public Item() {\n\t\tmenu.add(new Item(\"Snickers\", 10, 1.50, \"1\"));\n\t\tmenu.add(new Item(\"Chips\", 10, .50, \"2\"));\n\t\tmenu.add(new Item(\"Coke\", 10, 1.75, \"3\"));\n\n\t}",
"protected void initializeNavigationMenu() {\n\t\tfinal JMenu navigationMenu = new JMenu(\"Navigation\");\n\t\tthis.add(navigationMenu);\n\t\t// Revert to Picked\n\t\tfinal JMenuItem revertPickedItem = new JMenuItem();\n\t\trevertPickedItem.setAction(this.commands\n\t\t\t\t.findById(GUICmdGraphRevert.DEFAULT_ID));\n\t\trevertPickedItem.setAccelerator(KeyStroke.getKeyStroke('R',\n\t\t\t\tInputEvent.ALT_DOWN_MASK));\n\t\tnavigationMenu.add(revertPickedItem);\n\t}",
"protected void initializeFileMenu() {\n\t\tfinal JMenu fileMenu = new JMenu(\"File\");\n\t\tthis.add(fileMenu);\n\t\t// Status\n\t\tfinal JMenuItem sysStatusItem = new JMenuItem();\n\t\tsysStatusItem.setAction(this.commands.findById(CmdStatus.DEFAULT_ID));\n\t\tsysStatusItem.setAccelerator(KeyStroke.getKeyStroke('S',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(sysStatusItem);\n\t\t// Log\n\t\tfinal JMenuItem sysLogItem = new JMenuItem();\n\t\tsysLogItem.setAction(this.commands.findById(CmdLog.DEFAULT_ID));\n\t\tsysLogItem.setAccelerator(KeyStroke.getKeyStroke('L',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(sysLogItem);\n\t\t// Separator\n\t\tfileMenu.add(new JSeparator());\n\t\t// Exit\n\t\tfinal JMenuItem exitItem = new JMenuItem(\"Exit\");\n\t\texitItem.setAction(this.commands.findById(CmdExit.DEFAULT_ID));\n\t\texitItem.setAccelerator(KeyStroke.getKeyStroke('Q',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(exitItem);\n\t}",
"private void initialize( )\n {\n this.setSize( 300, 200 );\n this.setLayout( new BorderLayout( ) );\n this.setBorder( BorderFactory.createTitledBorder( null, \"GnericMenu\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null ) );\n this.add( getJScrollPane( ), BorderLayout.CENTER );\n\n itemAddMenuItem.addActionListener( this );\n itemDelCategory.addActionListener( this );\n popupmenuCategory.add( itemAddMenuItem );\n popupmenuCategory.add( itemDelCategory );\n\n itemDel.addActionListener( this );\n popupmenuItem.add( itemDel );\n\n itemAddCategory.addActionListener( this );\n popupmenuMenu.add( itemAddCategory );\n }",
"public MenuBox(MenuItem item , boolean line){\n\n getChildren().addAll(item);\n }",
"private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }",
"public void init() {\n f = new MenuFrame(\"DEMO Menu\");\n int width = Integer.parseInt(getParameter(\"width\"));\n int height = Integer.parseInt(getParameter(\"height\"));\n \n setSize(new Dimension(width, height));\n \n f.setSize(width, height);\n f.setVisible(true);\n }",
"private void initializeMenu(){\n\t\troot = new TreeField(new TreeFieldCallback() {\n\t\t\t\n\t\t\tpublic void drawTreeItem(TreeField treeField, Graphics graphics, int node,\n\t\t\t\t\tint y, int width, int indent) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString text = treeField.getCookie(node).toString(); \n\t graphics.drawText(text, indent, y);\n\t\t\t}\n\t\t}, Field.FOCUSABLE){\n\t\t\tprotected boolean navigationClick(int status, int time) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(!isAnimating()){\n\t\t\t\t\tMenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode());\n\t\t\t\t\tif(menu.isChild()){\n\t\t\t\t\t\tonMenuSelected(menu);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\treturn super.navigationClick(status, time);\n\t\t\t}\n\t\t\t\n\t\t\tprotected boolean keyDown(int keycode, int time) {\n\t\t\t\tif(!isAnimating()){\n\t\t\t\t\tif(keycode == 655360){\n\t\t\t\t\t\tMenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode());\n\t\t\t\t\t\tif(menu.isChild()){\n\t\t\t\t\t\t\tonMenuSelected(menu);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\treturn super.keyDown(keycode, time);\n\t\t\t}\n\t\t};\n\t\troot.setDefaultExpanded(false);\n\n\t\t//home\n\t\tMenuModel home = new MenuModel(\"Home\", MenuModel.HOME, true);\n\t\thome.setId(root.addChildNode(0, home));\n\t\t\n\t\tint lastRootChildId = home.getId();\n\t\t\n\t\t//menu tree\n\t\tif(Singleton.getInstance().getMenuTree() != null){\n\t\t\tJSONArray menuTree = Singleton.getInstance().getMenuTree();\n\t\t\tif(menuTree.length() > 0){\n\t\t\t\tfor (int i = 0; i < menuTree.length(); i++) {\n\t\t\t\t\tif(!menuTree.isNull(i)){\n\t\t\t\t\t\tJSONObject node;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnode = menuTree.getJSONObject(i);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//root menu tree (pria, wanita)\n\t\t\t\t\t\t\tboolean isChild = false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString name = node.getString(\"name\");\n\t\t\t\t\t\t\tString url = node.getString(\"url\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tMenuModel treeNode = new MenuModel(\n\t\t\t\t\t\t\t\t\tname, url, MenuModel.JSON_TREE_NODE, isChild);\n\t\t\t\t\t\t\ttreeNode.setId(root.addSiblingNode(lastRootChildId, treeNode));\n\t\t\t\t\t\t\tlastRootChildId = treeNode.getId();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tif(!node.isNull(\"child\")){\n\t\t\t\t\t\t\t\t\tJSONArray childNodes = node.getJSONArray(\"child\");\n\t\t\t\t\t\t\t\t\tif(childNodes.length() > 0){\n\t\t\t\t\t\t\t\t\t\tfor (int j = childNodes.length() - 1; j >= 0; j--) {\n\t\t\t\t\t\t\t\t\t\t\tif(!childNodes.isNull(j)){\n\t\t\t\t\t\t\t\t\t\t\t\taddChildNode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttreeNode.getId(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchildNodes.getJSONObject(j));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif(Singleton.getInstance().getIsLogin()){\n\t\t\t//akun saya\n\t\t\tMenuModel myAccount = new MenuModel(\"Akun Saya\", MenuModel.MY_ACCOUNT, false);\n\t\t\tmyAccount.setId(root.addSiblingNode(lastRootChildId, myAccount));\n\t\t\t\n\t\t\tlastRootChildId = myAccount.getId();\n\t\t\t\n\t\t\t//akun saya->detail akun\n\t\t\tMenuModel profile = new MenuModel(\"Detail Akun\", MenuModel.PROFILE, true);\n\t\t\tprofile.setId(root.addChildNode(myAccount.getId(), profile));\n\t\t\t\n\t\t\t//akun saya->daftar pesanan\n\t\t\tMenuModel myOrderList = new MenuModel(\n\t\t\t\t\t\"Daftar Pesanan\", MenuModel.MY_ORDER, true);\n\t\t\tmyOrderList.setId(root.addSiblingNode(profile.getId(), myOrderList));\t\t\n\t\t\t\n\t\t\t//logout\n\t\t\tMenuModel logout = new MenuModel(\"Logout\", MenuModel.LOGOUT, true);\n\t\t\tlogout.setId(root.addSiblingNode(lastRootChildId, logout));\n\t\t\tlastRootChildId = logout.getId();\n\t\t} else{\n\t\t\t//login\n\t\t\tMenuModel login = new MenuModel(\"Login\", MenuModel.LOGIN, false);\n\t\t\tlogin.setId(root.addSiblingNode(lastRootChildId, login));\n\t\t\t\n\t\t\tlastRootChildId = login.getId();\n\t\t\t\n\t\t\t//login->login\n\t\t\tMenuModel loginMenu = new MenuModel(\"Login\", MenuModel.LOGIN_MENU, true);\n\t\t\tloginMenu.setId(root.addChildNode(login.getId(), loginMenu));\n\t\t\t\n\t\t\t//login->register\n\t\t\tMenuModel register = new MenuModel(\"Register\", MenuModel.REGISTER, true);\n\t\t\tregister.setId(root.addSiblingNode(loginMenu.getId(), register));\n\t\t}\n\t\t\n\t\tMenuUserModel menu = Singleton.getInstance().getMenu();\n\t\tif(menu != null){\n\t\t\t//sales\n\t\t\tif(menu.getMenuSalesOrder() || menu.isMenuSalesRetur()){\n\t\t\t\tMenuModel sales = new MenuModel(\"Sales\", MenuModel.SALES, false);\n\t\t\t\tsales.setId(root.addSiblingNode(lastRootChildId, sales));\n\t\t\t\tlastRootChildId = sales.getId();\n\t\t\t\t\n\t\t\t\t//sales retur\n\t\t\t\tif(menu.isMenuSalesRetur()){\n\t\t\t\t\tMenuModel salesRetur = new MenuModel(\n\t\t\t\t\t\t\t\"Sales Retur\", MenuModel.SALES_RETUR, true);\n\t\t\t\t\tsalesRetur.setId(root.addChildNode(sales.getId(), salesRetur));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//sales order\n\t\t\t\tif(menu.getMenuSalesOrder()){\n\t\t\t\t\tMenuModel salesOrder = new MenuModel(\n\t\t\t\t\t\t\t\"Sales Order\", MenuModel.SALES_ORDER, true);\n\t\t\t\t\tsalesOrder.setId(root.addChildNode(sales.getId(), salesOrder));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//cms product\n\t\t\tif(menu.getMenuCmsProduct() || menu.getMenuCmsProductGrosir()){\n\t\t\t\tMenuModel cmsProduct = new MenuModel(\n\t\t\t\t\t\t\"Produk\", MenuModel.CMS_PRODUCT, false);\n\t\t\t\tcmsProduct.setId(\n\t\t\t\t\t\troot.addSiblingNode(lastRootChildId, cmsProduct));\n\t\t\t\tlastRootChildId = cmsProduct.getId();\n\t\t\t\t\n\t\t\t\t//product retail\n\t\t\t\tif(menu.getMenuCmsProduct()){\n\t\t\t\t\tMenuModel productRetail = new MenuModel(\n\t\t\t\t\t\t\t\"Produk Retail\", MenuModel.CMS_PRODUCT_RETAIL, true);\n\t\t\t\t\tproductRetail.setId(\n\t\t\t\t\t\t\troot.addChildNode(cmsProduct.getId(), productRetail));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//product grosir\n\t\t\t\tif(menu.getMenuCmsProductGrosir()){\n\t\t\t\t\tMenuModel productGrosir = new MenuModel(\n\t\t\t\t\t\t\t\"Produk Grosir\", MenuModel.CMS_PRODUCT_GROSIR, true);\n\t\t\t\t\tproductGrosir.setId(\n\t\t\t\t\t\t\troot.addChildNode(cmsProduct.getId(), productGrosir));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//service\n\t\tMenuModel service = new MenuModel(\"Layanan\", MenuModel.SERVICE, false);\n\t\tservice.setId(root.addSiblingNode(lastRootChildId, service));\n\t\tlastRootChildId = service.getId();\n\t\tVector serviceList = Singleton.getInstance().getServices();\n\t\ttry {\n\t\t\tfor (int i = serviceList.size() -1; i >= 0; i--) {\n\t\t\t\tMenuFooterModel footer = (MenuFooterModel) serviceList.elementAt(i);\n\t\t\t\tMenuModel serviceMenu = new MenuModel(\n\t\t\t\t\t\tfooter.getCatTitle(), footer.getCatTautan(),\n\t\t\t\t\t\tMenuModel.SERVICE_MENU, true);\n\t\t\t\tserviceMenu.setId(root.addChildNode(service.getId(), serviceMenu));\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\t\n\t\t//about\n\t\tMenuModel about = new MenuModel(\"Tentang Y2\", MenuModel.ABOUT, false);\n\t\tabout.setId(root.addSiblingNode(service.getId(), about));\n\t\tlastRootChildId = service.getId();\n\t\tVector aboutList = Singleton.getInstance().getAbouts();\n\t\ttry {\n\t\t\tfor (int i = aboutList.size() -1; i >= 0; i--) {\n\t\t\t\tMenuFooterModel footer = (MenuFooterModel) aboutList.elementAt(i);\n\t\t\t\tMenuModel aboutMenu = new MenuModel(\n\t\t\t\t\t\tfooter.getCatTitle(), footer.getCatTautan(), \n\t\t\t\t\t\tMenuModel.SERVICE_MENU, true);\n\t\t\t\taboutMenu.setId(root.addChildNode(service.getId(), aboutMenu));\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\tcontainer.add(root);\n\t}",
"public void initMenuContext(){\n GralMenu menuCurve = getContextMenu();\n //menuCurve.addMenuItemGthread(\"pause\", \"pause\", null);\n menuCurve.addMenuItem(\"refresh\", actionPaintAll);\n menuCurve.addMenuItem(\"go\", actionGo);\n menuCurve.addMenuItem(\"show All\", actionShowAll);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"zoom in\", null);\n menuCurve.addMenuItem(\"zoomBetweenCursor\", \"zoom between Cursors\", actionZoomBetweenCursors);\n menuCurve.addMenuItem(\"zoomOut\", \"zoom out\", actionZoomOut);\n menuCurve.addMenuItem(\"cleanBuffer\", \"clean Buffer\", actionCleanBuffer);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"to left\", null);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"to right\", null);\n \n }",
"private void initialize() {\r\n //this.setVisible(true);\r\n \r\n\t // added pre-set popup menu here\r\n// this.add(getPopupFindMenu());\r\n this.add(getPopupDeleteMenu());\r\n this.add(getPopupPurgeMenu());\r\n\t}",
"void initAitalk() {\n\t\tAsr.JniBeginLexicon(\"menu\", false);\n \tfor(int i = 0; i < mAiStrings.length; i++){\n \t\tAsr.JniAddLexiconItem(mAiStrings[i], i);\n \t}\n \tAsr.JniEndLexicon();\n \tmMsgHandler.sendEmptyMessage(MSG_HANDLE_START_REG);\n }",
"@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\n\t\thome = new MenuItem(\"Home Page\");\n\t\thome.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.CREDENTIALS);\n\n\t\t\t}\n\t\t}); \n\n\t\t\n\t\tnewuser = new MenuItem(\"New User\");\n\t\tnewuser.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"Calling New User window\");\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.NEWUSER);\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t\texit = new MenuItem(\"Exit Application\");\n\t\texit.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"quitting\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}); \n\n\t\t\n\t\tMain.getItems().add(home);\n\t\n\t\tMain.getItems().add(newuser);\n\n\t\tMain.getItems().add(exit);\n\t\t\n\n\t\t//---------------------------- Actions Menu Drop down --------------------------------\n\n\t\thistory = new MenuItem(\"View History\");\n\t\thistory.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) { \t\n\t\t\t\t// open the default web browser for the HTML page\n\t\t\t\ttry {\n\t\t\t\t\tURL webURL = new URL(\"http://webdevelopmentdev.azurewebsites.net/\");\n\t\t\t\t\tDesktop.getDesktop().browse(webURL.toURI());\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} catch (URISyntaxException 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\n\t\tActions.getItems().add(history);\n\n\t\tbrowser = new MenuItem(\"View Browser\");\n\t\tbrowser.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"Inside the browser\");\n\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.BROWSER);\n\t\t\t}\n\t\t}); \n\n\t\tActions.getItems().add(browser);\n\t\tbrowser.setDisable(true);\n\t\t\n\t\tissue = new MenuItem(\"Report Issue\");\n\t\tissue.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.ISSUE);\n\t\t\t}\n\t\t}); \n\n\t\tActions.getItems().add(issue);\n\n\t\tStartConnection();\n\t}",
"public menuAddStasiun() {\n initComponents();\n }",
"public void setMenuItem(MenuItem menuItem) {\r\n\t\tthis.menuItem = menuItem;\r\n\t}",
"public void initPlayerMenu() {\n Font f = new Font(\"Helvetica\", Font.BOLD, 16);\n\n menuPanel = new JPanel();\n menuPanel.setPreferredSize(new Dimension(buttonWidth, buttonHeight));\n menuPanel.setLayout(null);\n\n menuBar = new JMenuBar();\n menuBar.setPreferredSize(new Dimension(buttonWidth, buttonHeight));\n menuBar.setBounds(0, 0, buttonWidth, buttonHeight);\n menuBar.setLayout(null);\n\n playerMenu = new JMenu();\n playerMenu.setText(\"Players\");\n playerMenu.setFont(f);\n playerMenu.setBounds(0, 0, buttonWidth, buttonHeight);\n playerMenu.setBackground(new Color(0xeaf1f7));\n playerMenu.setHorizontalTextPosition(SwingConstants.CENTER);\n playerMenu.setOpaque(true);\n playerMenu.setBorder(BorderFactory.createBevelBorder(0));\n\n menuBar.add(playerMenu);\n menuPanel.add(menuBar);\n }",
"private void initMenubar() {\r\n\t\tsetJMenuBar(new MenuBar(controller));\r\n\t}",
"public ActionMenuItem(String text) {\n this.text = text;\n }",
"public Menu2() {\n initComponents();\n }",
"private void initMenuBar() {\n\t\t// Menu Bar\n\t\tmenuBar = new JMenuBar();\n\t\tgameMenu = new JMenu(\"Boggle\");\n\t\tgameMenu.setMnemonic('B');\n\t\tmenuBar.add(gameMenu);\n\t\tthis.setJMenuBar(menuBar);\n\t\t\n\t\t// New Game\n\t\tnewGame = new JMenuItem(\"New Game\");\n\t\tnewGame.setMnemonic('N');\n\t\tnewGame.addActionListener(new NewGameListener());\n\t\tgameMenu.add(newGame);\n\t\t\n\t\t// Exit Game\n\t\texitGame = new JMenuItem(\"Exit Game\");\n\t\texitGame.setMnemonic('E');\n\t\texitGame.addActionListener(new ExitListener());\n\t\tgameMenu.add(exitGame);\n\t}",
"void setParent(IMenu menuItem);",
"public DialogViewListener(JPopupMenu initMenu, JMenuItem initItem) {\r\n super(initMenu, initItem);\r\n }",
"public MenuBangunRuang() {\n initComponents();\n }",
"private void initializeContextMenus() {\n\t\tinitializeMenuForListView();\n\t\tinitializeMenuForPairsListView();\n\t}",
"@FXML\n private void initialize() {\n \tassert getMainMenu() != null : \"fx:id=\\\"mainMenu\\\" was not injected: check your FXML file 'RootLayout.fxml'.\";\n \tmessages = Messages.getMessages();\n \tMenu settingsMenu = new Menu(messages.getString(\"menu_settings\"));\n \tMenu menuLanguage = new Menu(messages.getString(\"menu_language\"));\n \t\n \tfinal ToggleGroup groupLanguage = new ToggleGroup();\n \tfinal Entry<String, Locale>[] languages = new Entry [] {\n \t\t\tnew SimpleEntry<String, Locale>(\"English\", Messages.enLocale),\n \t\t\tnew SimpleEntry<String, Locale>(\"Slovak\", Messages.skLocale)\n \t};\n \tfor (Entry<String, Locale> language : languages) {\n \t RadioMenuItem itemEffect = new RadioMenuItem(language.getKey());\n \t itemEffect.setSelected((language.getValue()).equals(messages.getLocale()));\n \t itemEffect.setOnAction(handleLanguage(language.getValue()));\n \t itemEffect.setToggleGroup(groupLanguage);\n \t menuLanguage.getItems().add(itemEffect);\n \t}\n \t\n \tsettingsMenu.getItems().add(menuLanguage);\n \tsettingsMenu.getItems().add(new SeparatorMenuItem());\n \t\n \tMenuItem aboutItem = new MenuItem(messages.getString(\"menu_about\"));\n \taboutItem.setOnAction(handleAbout());\n\n \tsettingsMenu.getItems().add(aboutItem);\n \tgetMainMenu().getMenus().add(settingsMenu);\n \n }",
"private void initNodePopup() {\r\n nodeMenuItem = new MenuItem[3];\r\n nodeMenuItem[0] = new MenuItem(\"Select All\");\r\n nodeMenuItem[1] = new MenuItem(\"Edit Label\");\r\n nodeMenuItem[2] = new MenuItem(\"Properties\");\r\n\r\n nodePopupMenu = new PopupMenu();\r\n\r\n nodePopupMenu.add(nodeMenuItem[0]);\r\n nodePopupMenu.addSeparator();\r\n nodePopupMenu.add(nodeMenuItem[1]);\r\n nodePopupMenu.add(nodeMenuItem[2]);\r\n\r\n nodePopupMenu.addActionListener(this);\r\n\r\n this.add(nodePopupMenu);\r\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n User.setText(UserService.userStatic.getUsername());\n\n if (UserService.userStatic.getRole().equals(\"ROLE_ADMIN\")) {\n Role.setText(\"Administrateur\");\n menu_bar.getChildren().remove(nav_menu);\n menu_bar.getChildren().remove(nav_orders);\n menu_bar.getChildren().remove(nav_info_club);\n menu_bar.getChildren().remove(nav_recettes);\n }\n if (UserService.userStatic.getRole().equals(\"ROLE_RESPONSABLE\")) {\n Role.setText(\"Responsable Buvette\");\n menu_bar.getChildren().remove(nav_clubs);\n menu_bar.getChildren().remove(nav_docs);\n menu_bar.getChildren().remove(nav_revisions);\n menu_bar.getChildren().remove(nav_objetPerdus);\n menu_bar.getChildren().remove(nav_events);\n menu_bar.getChildren().remove(nav_info_club);\n menu_bar.getChildren().remove(nav_Professeur);\n menu_bar.getChildren().remove(nav_utilisateur);\n\n }\n\n try {\n if (UserService.userStatic.getRole().equals(\"ROLE_ADMIN\")) {\n clubs = FXMLLoader.load(getClass().getResource(\"/gui/BackOfficeClubFXML.fxml\"));\n setNode(clubs);\n currentselectedButton = nav_clubs;\n nav_clubs.setStyle(\" -fx-background-color: #ffffff;\\n\"\n + \" -fx-text-fill: #000000;\");\n }\n if (UserService.userStatic.getRole().equals(\"ROLE_RESPONSABLE\")) {\n menus = FXMLLoader.load(getClass().getResource(\"/gui/BackOfficeMenusFXML.fxml\"));\n\n setNode(menus);\n currentselectedButton = nav_menu;\n nav_clubs.setStyle(\" -fx-background-color: #ffffff;\\n\"\n + \" -fx-text-fill: #000000;\");\n }\n\n } catch (IOException ex) {\n Logger.getLogger(BackOfficeFXMLController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }",
"public MenuPanel() {\n initComponents();\n }",
"public Tela_Menu2() {\n initComponents();\n }",
"public AbstractMenu(MenuLoader menuLoader) \r\n\t{}",
"public Menu_Ingreso() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public Menu() {\n initComponents();\n setSize(822, 539);\n setLocationRelativeTo(this);\n setVisible(true);\n }",
"public MenuController() {\r\n\t \r\n\t }",
"public FrmMenu() {\n initComponents();\n }",
"public DropMainMenu() {\n initComponents();\n }",
"private void setupMenu() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tJMenuItem conn = new JMenuItem(connectAction);\n\t\tJMenuItem exit = new JMenuItem(\"退出\");\n\t\texit.addActionListener(new AbstractAction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\texit();\n\t\t\t}\n\t\t});\n\t\tJMenu file = new JMenu(\"客户端\");\n\t\tfile.add(conn);\n\t\tmenuBar.add(file);\n\t\tsetJMenuBar(menuBar);\n\t}",
"public void initialize() {\r\n btShowUsers.setVisible(false);\r\n menu_principal.setShowTransitionFactory(v -> new FadeInLeftBigTransition(v));\r\n menu_principal.showingProperty().addListener((obs, oldValue, newValue) -> {\r\n if (newValue) {\r\n AppBar appBar = MobileApplication.getInstance().getAppBar();\r\n appBar.setTitleText(\"Menú\");\r\n }\r\n \r\n if (user == null)\r\n user = (User) sessionContent.get(\"activeId\");\r\n\r\n if (user instanceof Technician) {\r\n if (((Technician)user).getIsAdmin() != null)\r\n btShowUsers.setVisible(true);\r\n else\r\n btShowUsers.setVisible(false);\r\n } else {\r\n btShowUsers.setVisible(false);\r\n }\r\n });\r\n \r\n \r\n }",
"private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}",
"public SysMenuParams() {\n\t\tsuper();\n\t}",
"public FormMenu() {\n initComponents();\n menuController = new MenuController(this);\n menuController.nonAktif();\n }",
"public Menu() {\r\n \r\n ingresaVehiculo (); \r\n }"
] | [
"0.77409047",
"0.74010456",
"0.7360138",
"0.7176569",
"0.7120793",
"0.7012472",
"0.70108163",
"0.69970274",
"0.6976671",
"0.6974098",
"0.6841111",
"0.6824162",
"0.6775618",
"0.6775618",
"0.67703915",
"0.67220646",
"0.6721472",
"0.6721472",
"0.6721472",
"0.6704169",
"0.6666765",
"0.66503245",
"0.6640573",
"0.66362065",
"0.6634141",
"0.6629",
"0.66128355",
"0.65861833",
"0.65804684",
"0.6579903",
"0.6579903",
"0.6579903",
"0.6564362",
"0.65564823",
"0.65499157",
"0.6523239",
"0.65049183",
"0.64962167",
"0.648693",
"0.6478664",
"0.6474985",
"0.64669293",
"0.64492005",
"0.6444858",
"0.6431624",
"0.6430549",
"0.64282423",
"0.64114195",
"0.64113003",
"0.6405988",
"0.63887054",
"0.6387232",
"0.63801986",
"0.636141",
"0.63540167",
"0.63298875",
"0.6323311",
"0.63113093",
"0.6300534",
"0.6275739",
"0.62745816",
"0.62664455",
"0.62559986",
"0.62480205",
"0.6239029",
"0.623877",
"0.6235752",
"0.62302625",
"0.62300044",
"0.62265897",
"0.6221104",
"0.621451",
"0.6193796",
"0.6183484",
"0.6179407",
"0.61740804",
"0.6167194",
"0.6161678",
"0.61561984",
"0.61413676",
"0.6132866",
"0.6128374",
"0.6127388",
"0.61237884",
"0.61206007",
"0.610626",
"0.61026275",
"0.60932446",
"0.60925406",
"0.6091527",
"0.6088148",
"0.6084903",
"0.6080057",
"0.60783815",
"0.6074172",
"0.6058002",
"0.60548407",
"0.60532856",
"0.6042088",
"0.6037329",
"0.60354125"
] | 0.0 | -1 |
Creates the menu item. | private AutoAnswerMenuItem(ProtocolProviderService provider,
String displayName,
Image onlineImage,
SIPCommMenu parentMenu)
{
super(
displayName,
(onlineImage == null) ? null : new ImageIcon(onlineImage));
this.providerService = provider;
this.parentMenu = parentMenu;
this.addActionListener(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private MenuBar.MenuItem createMenuItem(View vista, String menuAddress, Resource menuIcon) {\n MenuBar.MenuItem menuItem;\n MenuCommand cmd = new MenuCommand(menuBar, vista);\n menuItem = menuBar.addItem(menuAddress, menuIcon, cmd);\n menuItem.setStyleName(AMenuBar.MENU_DISABILITATO);\n\n return menuItem;\n }",
"public JMenuItem createMenuItem(Action a) {\n JMenuItem item = new JMenuItem(a);\n decorateMenuComponent(item);\n return item;\n }",
"@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}",
"MenuItem addItem(String title, Command callback);",
"private JMenuItem createMenuItem(JMenu parent, String text, int mnemonic, String keyStrokeText, String tooltip) {\n\t\tJMenuItem item = new JMenuItem();\n\t\t\n\t\titem.setText(text);\n\t\tif (mnemonic != -1) {\n\t\t\titem.setMnemonic(mnemonic);\n\t\t}\n\t\tif (keyStrokeText != null) {\n\t\t\tKeyStroke accelerator = KeyStroke.getKeyStroke(keyStrokeText);\n\t\t\titem.setAccelerator(accelerator);\n\t\t}\n\t\tif (tooltip != null) {\n\t\t\titem.setToolTipText(tooltip);\n\t\t}\n\t\t\n\t\tparent.add(item);\n\t\treturn item;\n\t}",
"@objid (\"491beea2-12dd-11e2-8549-001ec947c8cc\")\n private static MHandledMenuItem createItem(String label, String tooltip, String iconURI) {\n MHandledMenuItem item = MMenuFactory.INSTANCE.createHandledMenuItem();\n // item.setElementId(module.getName() + commandId);\n item.setLabel(label);\n item.setTooltip(tooltip);\n item.setIconURI(iconURI);\n item.setEnabled(true);\n item.setToBeRendered(true);\n item.setVisible(true);\n return item;\n }",
"private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }",
"public MenuItem add(CharSequence title);",
"public MenuItem add(int titleRes);",
"public Menu createToolsMenu();",
"public Menu createFileMenu();",
"private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}",
"private MenuItem makeMenuItem (String label, String command) {\n MenuItem mi = new MenuItem (label);\n mi.setActionCommand (command);\n mi.addActionListener (commandHandler);\n return mi;\n }",
"public native void addSubItem(MenuItem item);",
"public int create(Esysmeudef menu);",
"public void createNewItem(ActionEvent actionEvent) {\n // we will create a new item instance here (ideally we would use another window for this)\n // and then we will simply addItem() to the currently selected list\n }",
"public void add(String nameItem)\n\t{\n\t\tmenu.add(nameItem);\n\t}",
"private MenuBar.MenuItem createMenuItem(Class<? extends View> viewClass, String label, boolean cached, Resource icon) {\n MenuBar.MenuItem menuItem;\n MenuCommand cmd = new MenuCommand(menuBar, viewClass, cached);\n menuItem = menuBar.addItem(label, icon, cmd);\n menuItem.setStyleName(AMenuBar.MENU_DISABILITATO);\n return menuItem;\n }",
"private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }",
"public Menu createViewMenu();",
"public void createOrderItem() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tRestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Which item would you like to order?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif (menuIndex <= 0 || menuIndex > RestaurantApp.globalMenuManager.getSizeOfMenu()){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+RestaurantApp.globalMenuManager.getSizeOfMenu());\r\n\t\t\t}\r\n\t\t\tthis.menuItem = RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1);\r\n\t\t\tSystem.out.println(\"How many of this are you ordering?\");\r\n\t\t\tthis.quantity = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tSystem.out.println(\"Order item added. printing details...\");\r\n\t\t\tthis.printOrderItem();\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage()); \r\n\t\t\tSystem.out.println(\"program exiting ...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"private static JMenuBar createMenu() {\r\n JMenuBar mb = new JMenuBar();\r\n JMenu menu = new JMenu(\"File\");\r\n JMenuItem item = new JMenuItem(\"Save\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n saveActionPerformed();\r\n });\r\n menu.add(item);\r\n mb.add(menu);\r\n\r\n menu = new JMenu(\"Help\");\r\n item = new JMenuItem(\"Show how-to\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n showHelp();\r\n });\r\n menu.add(item);\r\n\r\n mb.add(menu);\r\n\r\n return mb;\r\n }",
"@Override\n\t\t\tpublic void create(SwipeMenu menu) {\n\t\t\t\tSwipeMenuItem openItem = new SwipeMenuItem(getActivity()\n\t\t\t\t\t\t.getApplicationContext());\n\t\t\t\topenItem.setWidth(dp2px(60));\n\t\t\t\topenItem.setIcon(R.drawable.list_delete);\n\t\t\t\topenItem.setBackground(R.color.deep_pink);\n\t\t\t\tmenu.addMenuItem(openItem);\n\n\t\t\t\t// Edit Item\n\t\t\t\tSwipeMenuItem editItem = new SwipeMenuItem(getActivity()\n\t\t\t\t\t\t.getApplicationContext());\n\t\t\t\teditItem.setBackground(R.color.deep_yellow);\n\t\t\t\teditItem.setWidth(dp2px(60));\n\t\t\t\teditItem.setIcon(R.drawable.total_swipeedit);\n\t\t\t\tmenu.addMenuItem(editItem);\n\n\t\t\t}",
"private JMenuItem makeMenuItem(String name) {\n JMenuItem m = new JMenuItem(name);\n m.addActionListener(this);\n return m;\n }",
"private void createMenu()\n\t{\n\t\tfileMenu = new JMenu(\"File\");\n\t\thelpMenu = new JMenu(\"Help\");\n\t\ttoolsMenu = new JMenu(\"Tools\");\n\t\t\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\texit = new JMenuItem(\"Exit\");\t\t\n\t\treadme = new JMenuItem(\"Readme\");\n\t\tabout = new JMenuItem(\"About\");\n\t\tsettings = new JMenuItem(\"Settings\");\n\t\t\t\t\n\t\tfileMenu.add (exit);\n\t\t\n\t\thelpMenu.add (readme);\n\t\thelpMenu.add (about);\t\n\t\t\n\t\ttoolsMenu.add (settings);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(helpMenu);\t\t\n\t\t\t\t\n\t\tdefaultMenuBackground = menuBar.getBackground();\n\t\tdefaultMenuForeground = fileMenu.getForeground();\n\t\t\n\t}",
"public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }",
"private JMenu createLanguageMenu() {\n\t\tAction nestoAction = new AbstractAction() {\n\n\t\t\t/** The generated serial user ID */\n\t\t\tprivate static final long serialVersionUID = -4439263551767223123L;\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJMenuItem src = (JMenuItem) e.getSource();\n\t\t\t\tString arg = src.getText();\n\t\t\t\tLocalizationProvider.getInstance().setLanguage(arg);\n\t\t\t\tLocalizationProvider.getInstance().fire();\n\t\t\t}\n\t\t};\n\n\t\titemHR = new JMenuItem(nestoAction);\n\t\titemHR.setText(\"hr\");\n\t\titemEN = new JMenuItem(nestoAction);\n\t\titemEN.setText(\"en\");\n\t\titemDE = new JMenuItem(nestoAction);\n\t\titemDE.setText(\"de\");\n\n\t\tlangMenu = new JMenu(flp.getString(\"lang\"));\n\n\t\tlangMenu.add(itemHR);\n\t\tlangMenu.add(itemEN);\n\t\tlangMenu.add(itemDE);\n\n\t\treturn langMenu;\n\t}",
"public JMTMenuBar createMenu() {\r\n \t\tJMTMenuBar menu = new JMTMenuBar(JMTImageLoader.getImageLoader());\r\n \t\t// File menu\r\n \t\tMenuAction action = new MenuAction(\"File\", new AbstractJmodelAction[] { newModel, openModel, saveModel, saveModelAs, closeModel, null, exit });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Edit menu\r\n \t\taction = new MenuAction(\"Edit\", new AbstractJmodelAction[] {\r\n \t\t// editUndo, editRedo, null\r\n \t\t\t\tactionCut, actionCopy, actionPaste, actionDelete, null, takeScreenShot });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Define menu\r\n \t\taction = new MenuAction(\"Define\",\r\n \t\t\t\tnew AbstractJmodelAction[] { editUserClasses, editMeasures, editSimParams, editPAParams, null, editDefaults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Solve menu\r\n \t\taction = new MenuAction(\"Solve\", new AbstractJmodelAction[] { simulate, pauseSimulation, stopSimulation, null, switchToExactSolver, null,\r\n \t\t\t\tshowResults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Help menu\r\n \t\taction = new MenuAction(\"Help\", new AbstractJmodelAction[] { openHelp, null, about });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\treturn menu;\r\n \t}",
"private static MenuItem createAddNewFolderMenuItem(SongManager model, Item selectedItem) {\n MenuItem createNewFolder = new MenuItem(CREATE_NEW_FOLDER);\n\n createNewFolder.setOnAction((event) -> {\n if (selectedItem != null) {\n File folderSelected = selectedItem.getFile();\n Path newPath = PromptUI.createNewFolder(folderSelected);\n\n if (newPath != null) {\n try {\n model.addNewFolder(newPath.toFile());\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Create new folder\", null, \"Unable to create new folder \" + newPath);\n }\n }\n }\n });\n\n return createNewFolder;\n }",
"public void createMenu() {\n deleteMenuGroupError = false;\n createMenuGroupError = true;\n if (menu.createMenu()) {\n updateMenuError = false;\n deleteMenuError = false;\n createMenuError = true;\n } else {\n createMenuError = false;\n }\n }",
"public void createMenu() {\n\t\tmenuBar.add(createGameMenuColumn());\n\t\tmenuBar.add(createTestsMenuColumn());\n\t\tmenuBar.add(createCheatsMenuColumn());\n\n\t\tparentMainView.setJMenuBar(menuBar);\n\t}",
"@Override\n public void create(SwipeMenu menu) {\n SwipeMenuItem item1 = new SwipeMenuItem(\n getApplicationContext());\n item1.setBackground(new ColorDrawable(Color.DKGRAY));\n // set width of an option (px)\n item1.setWidth(200);\n item1.setTitle(\"Action 1\");\n item1.setTitleSize(18);\n item1.setTitleColor(Color.WHITE);\n menu.addMenuItem(item1);\n\n SwipeMenuItem item2 = new SwipeMenuItem(\n getApplicationContext());\n // set item background\n item2.setBackground(new ColorDrawable(Color.RED));\n item2.setWidth(200);\n item2.setTitle(\"Action 2\");\n item2.setTitleSize(18);\n item2.setTitleColor(Color.WHITE);\n menu.addMenuItem(item2);\n }",
"private MenuItem getNewMenuItem() {\r\n\t\tif (newMenuItem == null) {\r\n\t\t\tnewMenuItem = new MenuItem(\"Creat new DB\");\r\n\t\t\tnewMenuItem.addActionListener(new ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tfinal String dbname = JOptionPane.showInputDialog(\"New database name:\");\r\n\t\t\t\t\tif (dbname == null)\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\tMenuItem item = new MenuItem(dbname);\r\n\t\t\t\t\titem.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t\t\tstopDB();\r\n\t\t\t\t\t\t\tstartDB(dbname);\r\n\t\t\t\t\t\t\tgetStopMenuItem().setEnabled(true);\r\n\t\t\t\t\t\t\tgetNewMenuItem().setEnabled(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tstartMenuItem.add(item);\r\n\t\t\t\t\tstartDB(dbname);\r\n\t\t\t\t\tgetNewMenuItem().setEnabled(false);\r\n\t\t\t\t\tgetStartMenuItem().setEnabled(true);\r\n\t\t\t\t\tgetStopMenuItem().setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn newMenuItem;\r\n\t}",
"private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"@Test\n public void testMenuFactoryCreate() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n assertEquals(1, menuController.getMenu().size());\n }",
"ListItem createListItem();",
"private JMenu createFileMenu() {\n\t\tJMenu menu = new JMenu(\"File\"); \n\t\tmenu.add(createDetectiveNotes());\n\t\tmenu.add(createFileExitItem());\n\t\treturn menu;\n\t}",
"public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }",
"public static MenuDrawerItem create(TestingOption testingOption, String label, int itemType) {\n MenuDrawerItem menuDrawerItem = new MenuDrawerItem(testingOption);\n menuDrawerItem.setLabel(label);\n menuDrawerItem.setItemType(itemType);\n return menuDrawerItem;\n\n }",
"public NewAction() {\n\t\tsuper(\"New...\", null);\n\t\tputValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, MAIN_MENU_MASK));\n\t}",
"private void makeStockMenu() {\r\n\t\tJMenu stockMnu = new JMenu(\"Inventario\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Inventario\")) {\r\n\t\t\tisAccesible = true;\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarInventario\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Articulo\");\r\n\t\t\t\taddItem.setMnemonic('a');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo articulo\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddStockItem(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tstockMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"world.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'v', \"Ver el inventario\",\r\n\t\t\t\t\tKeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), Stock.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t\tstockMnu.addSeparator();\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Kardex\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ver Kardex\", \r\n\t\t\t\t\timageLoader.getImage(\"kardexSingle.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'k', \"Ver el kardex\", null,\r\n\t\t\t\t\tKardex.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tstockMnu.setMnemonic('i');\r\n\t\t\tadd(stockMnu);\r\n\t\t}\r\n\t}",
"public ItemMenu() {\n super(null, null);\n }",
"public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem);\n\t}",
"public void generateMenu(){\n\t\tmenuBar = new JMenuBar();\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tJMenu tools = new JMenu(\"Tools\");\n\t\tJMenu help = new JMenu(\"Help\");\n\n\t\tJMenuItem open = new JMenuItem(\"Open \");\n\t\tJMenuItem save = new JMenuItem(\"Save \");\n\t\tJMenuItem exit = new JMenuItem(\"Exit \");\n\t\tJMenuItem preferences = new JMenuItem(\"Preferences \");\n\t\tJMenuItem about = new JMenuItem(\"About \");\n\n\n\t\tfile.add(open);\n\t\tfile.add(save);\n\t\tfile.addSeparator();\n\t\tfile.add(exit);\n\t\ttools.add(preferences);\n\t\thelp.add(about);\n\n\t\tmenuBar.add(file);\n\t\tmenuBar.add(tools);\n\t\tmenuBar.add(help);\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmenu.add(0,context_class_test_menu1, 0, \"newmenu\"+Math.random());\r\n\t\t\t\tLog.e(\"test\", \"完成添加\");\r\n\r\n\t\t\t}",
"public native static MenuItemToggle create(MenuItem item);",
"private static MenuItem createEditPropertiesMenuItem(SongManager model, Item selectedItem) {\n MenuItem editProperties = new MenuItem(EDIT_PROPERTIES);\n\n editProperties.setOnAction((event) -> {\n if (selectedItem instanceof Song) {\n PromptUI.editMetadata((Song) selectedItem);\n model.notifyCenterFolderObservers();\n model.notifyPlaylistSongsObservers();\n }\n });\n\n return editProperties;\n }",
"@Override\n public void create(SwipeMenu menu) {\n switch (menu.getViewType()) {\n case 0:\n createMenu1(menu);\n break;\n case 1:\n createMenu2(menu);\n break;\n case 2:\n createMenu3(menu);\n break;\n }\n }",
"public JMenu addMenuItem (String texte, JMenu menu,String toolTipText) {\n JMenuItem item = new JMenuItem(texte);\n item.addActionListener(this);\n menu.add(item);\n menu.addSeparator();\n item.setToolTipText(toolTipText);\n return menu;\n }",
"@Override\n public void create(SwipeMenu menu) {\n SwipeMenuItem goodItem = new SwipeMenuItem(getContext());\n // set item background\n goodItem.setBackground(new ColorDrawable(Color.rgb(0x30, 0xB1, 0xF5)));\n // set item width\n goodItem.setWidth(dp2px(90));\n // set a icon\n goodItem.setIcon(R.mipmap.ic_action_good);\n // add to menu\n menu.addMenuItem(goodItem);\n // create \"delete\" item\n SwipeMenuItem deleteItem = new SwipeMenuItem(getContext());\n // set item background\n deleteItem.setBackground(new ColorDrawable(Color.rgb(0xF9, 0x3F, 0x25)));\n // set item width\n deleteItem.setWidth(dp2px(90));\n // set a icon\n deleteItem.setIcon(R.mipmap.ic_action_discard);\n // add to menu\n menu.addMenuItem(deleteItem);\n }",
"@Override\n public List<UpdatableItem> createPopup() {\n final List<UpdatableItem> items = new ArrayList<UpdatableItem>();\n \n /* host wizard */\n final MyMenuItem newHostWizardItem =\n new MyMenuItem(Tools.getString(\"EmptyBrowser.NewHostWizard\"),\n HOST_ICON,\n null,\n new AccessMode(ConfigData.AccessType.RO, false),\n new AccessMode(ConfigData.AccessType.RO, false)) {\n private static final long serialVersionUID = 1L;\n \n @Override\n public String enablePredicate() {\n return null;\n }\n \n @Override\n public void action() {\n final AddHostDialog dialog = new AddHostDialog(new Host());\n dialog.showDialogs();\n }\n };\n items.add(newHostWizardItem);\n Tools.getGUIData().registerAddHostButton(newHostWizardItem);\n return items;\n }",
"public MenuItem(){\n\n }",
"public TextController createMenu(ControllerCore genCode) {\n\t\tmenuTXT = new TextController(\"menu\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(menu$1LBL);\n\t\t\t\tsetProperty(\"menu\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn menuTXT;\n\t}",
"private void createMenuBar() {\n\t\tmenuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(\"Arquivo\");\n\t\tnewMenuItem = new JMenuItem(\"Novo\");\n\n\t\topenMenuItem = new JMenuItem(\"Abrir arquivo\");\n\t\topenMenuItem.addActionListener(new OpenFileHandler());\n\n\t\tsaveMenuItem = new JMenuItem(\"Salvar arquivo\");\n\t\texportMenuItem = new JMenuItem(\"Exportar\");\n\t\texitMenuItem = new JMenuItem(\"Sair\");\n\n\t\t// fileMenu.add(newMenuItem);\n\t\tfileMenu.add(openMenuItem);\n\t\t// fileMenu.add(saveMenuItem);\n\t\t// fileMenu.add(exportMenuItem);\n\t\t// fileMenu.addSeparator();\n\t\t// fileMenu.add(exitMenuItem);\n\n\t\thelpMenu = new JMenu(\"Ajuda\");\n\t\thelpMenuItem = new JMenuItem(\"Ajuda\");\n\t\taboutMenuItem = new JMenuItem(\"Sobre\");\n\n\t\thelpMenu.add(helpMenuItem);\n\t\thelpMenu.add(aboutMenuItem);\n\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(helpMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}",
"@Test\n public void testMenuFactoryGetMenuItem() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n assertEquals(MENU_NAME, menuController.getMenuItem(1).getName());\n assertEquals(MENU_DESCRIPTION, menuController.getMenuItem(1).getDescription());\n assertEquals(MENU_PRICE, menuController.getMenuItem(1).getPrice());\n }",
"private void createCardsEditingItem()\n {\n cardsEditing = new JMenuItem(\"Zobrazení a úprava karet\");\n cardsEditing.setMnemonic('Z');\n cardsEditing.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e)\n {\n cards.setVisible(true);\n }\n });\n add(cardsEditing);\n }",
"private MenuItem getMenuItem(String text, EventHandler<ActionEvent> handler) {\n MenuItem mi = new MenuItem(text);\n mi.setOnAction(handler);\n\n return mi;\n }",
"@Override\n public void create(SwipeMenu menu) {\n switch (menu.getViewType()) {\n case 0:\n createMenu1(menu);\n break;\n case 1:\n createMenu2(menu);\n break;\n\n }\n }",
"private JMenu createFileMenu() {\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic('f');\r\n\t\tfileMenu.add(createSaveHistoryMenuItem());\r\n\t\tfileMenu.add(createLoadHistoryMenuItem());\r\n\r\n\t\treturn fileMenu;\r\n\t}",
"private static MenuItem createRenameMenuItem(SongManager model, Item selectedItem) {\n MenuItem rename = new MenuItem(RENAME);\n\n rename.setOnAction((event) -> {\n if (selectedItem != null) {\n File fileToRename = selectedItem.getFile();\n Path newPath = PromptUI.fileRename(fileToRename);\n\n if (newPath != null) {\n try {\n model.renameFile(fileToRename, newPath);\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Error\", null, \"Exception: \\n\" + ex.getMessage());\n ex.printStackTrace();\n }\n }\n }\n });\n\n return rename;\n }",
"private ListItem buildListItem(int menuItemId) {\n return new ListItem(ListItemType.MENU_ITEM,\n new PropertyModel.Builder(TabSelectionEditorActionProperties.MENU_ITEM_KEYS)\n .with(TabSelectionEditorActionProperties.MENU_ITEM_ID, menuItemId)\n .build());\n }",
"void addMenu(V object);",
"@Override\n public void create(SwipeMenu menu) {\n SwipeMenuItem deleteItem = new SwipeMenuItem(\n getApplicationContext());\n // set item background\n deleteItem.setBackground(new ColorDrawable(Color.rgb(0xF9,\n 0x3F, 0x25)));\n // set item width\n deleteItem.setWidth(dp2px(90));\n // set a icon\n deleteItem.setIcon(R.mipmap.ic_remove_white_24dp);\n// deleteItem.setTitle(\"delete\");\n // add to menu\n menu.addMenuItem(deleteItem);\n }",
"void setMenuItem(MenuItem menuItem);",
"protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}",
"private void buildFileMenu(){\n //Create a Save menu item\n saveItem = new JMenuItem(\"Save\");\n saveItem.setMnemonic(KeyEvent.VK_S);\n saveItem.addActionListener(new SaveListener());\n \n //Create a Load menu item\n loadItem = new JMenuItem(\"Load\");\n loadItem.setMnemonic(KeyEvent.VK_L);\n loadItem.addActionListener(new LoadListener());\n\n //Create an Exit menu item\n exitItem = new JMenuItem(\"Exit\");\n exitItem.setMnemonic(KeyEvent.VK_X);\n exitItem.addActionListener(new ExitListener());\n \n //Create a JMenu object for the file menu\n fileMenu = new JMenu(\"File\");\n fileMenu.setMnemonic(KeyEvent.VK_F);\n \n //Add the items to the menu\n fileMenu.add(saveItem);\n fileMenu.add(loadItem);\n fileMenu.add(exitItem);\n }",
"public JMenu createFileMenu(){\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmenu.add(createFileResetItem());\n\t\tmenu.add(createFilePracticeItem());\t\t\n\t\tmenu.add(createFileExitItem());\n\t\treturn menu;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case R.id.action_add:\n getAdapter().addToList(NameFactory.getRandomName());\n return true;\n default:\n if (isInAnimationArray(id)) {\n return changeAnimation(id);\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n }\n\n if(defaultItemInteraction == null)\n {\n throw new IllegalArgumentException(\"No default interaction specified!\");\n }\n\n\n return new Item(\n id,\n name,\n pickUpImplementation,\n lookImplementation,\n useImplementation,\n defaultItemInteraction\n );\n }",
"protected abstract void makeItem();",
"@Override\n public void create(SwipeMenu menu) {\n switch (menu.getViewType()) {\n case VIEW_TYPE_1:\n createMenu1(menu);\n break;\n case VIEW_TYPE_2:\n createMenu2(menu);\n break;\n case VIEW_TYPE_3:\n createMenu3(menu);\n break;\n }\n }",
"protected void createContextMenu() {\n\t\t// TODO : XML Editor 에서 Query Editor 관련 Action 삭제~~\n\t\tMenuManager contextMenu = new MenuManager(\"#PopUp\"); //$NON-NLS-1$\n\t\tcontextMenu.add(new Separator(\"additions\")); //$NON-NLS-1$\n\t\tcontextMenu.setRemoveAllWhenShown(true);\n\t\tcontextMenu.addMenuListener(new NodeActionMenuListener());\n\t\tMenu menu = contextMenu.createContextMenu(getControl());\n\t\tgetControl().setMenu(menu);\n\t\t// makeActions();\n\t\t// hookSingleClickAction();\n\n\t}",
"public MenuBox(MenuItem item , boolean line){\n\n getChildren().addAll(item);\n }",
"private JMenu createFileMenu()\r\n {\r\n JMenu fileMenu = new JMenu(\"File\");\r\n fileMenu.add(new JMenuItem(openFileAction));\r\n fileMenu.add(new JMenuItem(openUriAction));\r\n fileMenu.add(new JSeparator());\r\n\r\n fileMenu.add(recentUrisMenu.getMenu());\r\n fileMenu.add(new JSeparator());\r\n\r\n fileMenu.add(new JMenuItem(importObjFileAction));\r\n fileMenu.add(new JSeparator());\r\n \r\n fileMenu.add(new JMenuItem(saveAsAction));\r\n fileMenu.add(new JMenuItem(saveAsBinaryAction));\r\n fileMenu.add(new JMenuItem(saveAsEmbeddedAction));\r\n fileMenu.add(new JSeparator());\r\n fileMenu.add(new JMenuItem(exitAction));\r\n return fileMenu;\r\n }",
"public JMenuItem createFileExitItem(){\n\t\tJMenuItem item = new JMenuItem(\"Exit\");\n\t\tclass MenuItemListener implements ActionListener{\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tActionListener listener = new MenuItemListener();\n\t\titem.addActionListener(listener);\n\t\treturn item;\n\t}",
"public void add(MenuItem item) {\n this.items.add(item);\n }",
"public JMenu addMenuItem (String texte, JMenu menu) {\n return addMenuItem (texte,menu,\"\");\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id == R.id.create_new){\n startActivity(new Intent(MainActivity.this, AddActivity.class));\n }\n return super.onOptionsItemSelected(item);\n }",
"public Item() {\n\t\tmenu.add(new Item(\"Snickers\", 10, 1.50, \"1\"));\n\t\tmenu.add(new Item(\"Chips\", 10, .50, \"2\"));\n\t\tmenu.add(new Item(\"Coke\", 10, 1.75, \"3\"));\n\n\t}",
"private void createMenuBar(){\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\t//Create the \"File\" menu\n\t\tthis.createFileMenu();\n\t\tmenuBar.add(fileMenu);\n\t\t\t\t\n\t\t//Create \"debug\" menu[disabled]\n\t\t//createDebugMenu();\t\t\n\t\t\n\t\t//last to be added to the menubar: about\n\t\tabout = new JMenuItem(\"About\");\n\t\tabout.addActionListener(this);\n\t\tmenuBar.add(about);\n\t}",
"@Override\r\n\tprotected MenuManager createMenuManager() {\r\n\t\tMenuManager menuManager = new MenuManager(\"menu\");\r\n\t\treturn menuManager;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu_insert:\n createActivity();\n return true;\n case android.R.id.home:\n context.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private JMenuItem constructExampleMenuItem(String menuText,\r\n\t\t\tString functionString, char mnemonicChar) {\r\n\t\tJMenuItem menuItem = new JMenuItem(menuText);\r\n\t\t// store the function in the action command for use later\r\n\t\tmenuItem.setActionCommand(functionString);\r\n\t\tmenuItem.addActionListener(this);\r\n\t\tmenuItem.setVisible(true);\r\n\t\tmenuItem.setMnemonic(mnemonicChar);\r\n\t\treturn menuItem;\r\n\t}",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddNewItem();\n\t\t\t}",
"public void addItem(Menu subMenu, Class<?> appClass) {\n\t\tMenuItem item = new MenuItem(Messages.getMessages().getString(\"app_\"+appClass.getSimpleName()));\n\t\tsubMenu.getItems().add(item);\n\t\titem.setOnAction(mainApp.new AppStarter(appClass, subMenu.getText()));\n\t}",
"public JMenuItem createFileExitItem()\n {\n JMenuItem item = new JMenuItem(\"Exit\");\n class MenuItemListener implements ActionListener\n {\n public void actionPerformed(ActionEvent event)\n {\n System.exit(0);\n }\n }\n ActionListener listener = new MenuItemListener();\n item.addActionListener(listener);\n return item;\n }",
"private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}",
"private void createContextMenu(){\r\n\t\tmenu = new JMenuBar();\r\n\t\tint ctrl;\r\n\t\tif(MAC)\r\n\t\t\tctrl = ActionEvent.META_MASK;\r\n\t\telse\r\n\t\t\tctrl = ActionEvent.CTRL_MASK;\r\n\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tnewMenu = new JMenuItem(\"New\");\r\n\t\tnewMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ctrl));\r\n\t\tnewMenu.addActionListener(this);\r\n\t\topenMenu = new JMenuItem(\"Open\");\r\n\t\topenMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ctrl));\r\n\t\topenMenu.addActionListener(this);\r\n\t\trecentMenu = new JMenu(\"Open Recent\");\r\n\t\tpopulateRecentMenu();\r\n\t\tsaveMenu = new JMenuItem(\"Save\");\r\n\t\tsaveMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ctrl));\r\n\t\tsaveMenu.addActionListener(this);\r\n\t\tsaveAsMenu = new JMenuItem(\"Save As...\");\r\n\t\tsaveAsMenu.addActionListener(this);\r\n\t\tfileMenu.add(newMenu);\r\n\t\tfileMenu.add(openMenu);\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.add(saveMenu);\r\n\t\tfileMenu.add(saveAsMenu);\r\n\r\n\t\tmenu.add(fileMenu);\r\n\r\n\t\tJMenu editMenu = new JMenu(\"Edit\");\r\n\t\tpreferencesMenu = new JMenuItem(\"Preferences\");\r\n\t\tpreferencesMenu.addActionListener(this);\r\n\t\teditMenu.add(preferencesMenu);\r\n\r\n\t\tmenu.add(editMenu);\r\n\r\n\t\tif(!MAC){\r\n\t\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\t\tJMenuItem aboutMenuI = new JMenuItem(\"About\");\r\n\r\n\t\t\taboutMenuI.addActionListener(new ActionListener(){\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tshowAboutMenu();\r\n\t\t\t\t}\t\t\r\n\t\t\t});\r\n\t\t\thelpMenu.add(aboutMenuI);\r\n\t\t\tmenu.add(helpMenu);\r\n\t\t}\r\n\t}",
"private static MenuItem createPlaceSongOnQueueMenuItem(MusicPlayerManager musicPlayerManager, Item selectedItem) {\n MenuItem placeSongOnQueue = new MenuItem(PLACE_SONG_ON_QUEUE);\n\n placeSongOnQueue.setOnAction((event) -> {\n if (selectedItem != null) {\n Song song = (Song) selectedItem;\n musicPlayerManager.placeSongOnBackOfPlaybackQueue(song);\n }\n });\n\n return placeSongOnQueue;\n }",
"public boolean createMenuItem(Item item) {\n\t\t// TODO - implement ItemManager.createMenuItem\n\t\tItemDAO itemDAO = new ItemDAO();\n\t\tboolean check = false;\n\n\t\tif (item.getName().isEmpty()) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item name cannot be empty!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tif (item.getType().isEmpty()) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item type cannot be empty!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tif (item.getPrice() <= 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item price must be a positive number!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tif (item.getDescription().isEmpty()) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item description cannot be empty!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tcheck = itemDAO.insert(item);\n\n\t\treturn check;\n\t}",
"private void makePOSMenu() {\r\n\t\tJMenu POSMnu = new JMenu(\"Punto de Venta\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Cotizaciones\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Cotizaciones\", \r\n\t\t\t\t\timageLoader.getImage(\"quote.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 't',\r\n\t\t\t\t\t\"Ver el listado de cotizaciones\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F4, 0), Quote.class);\r\n\t\t\tPOSMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Compra\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Compras\", \r\n\t\t\t\t\timageLoader.getImage(\"purchase.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'c',\r\n\t\t\t\t\t\"Ver el listado de facturas\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F5, 0), Purchase.class);\r\n\r\n\t\t\tPOSMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Facturacion\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Facturacion\", \r\n\t\t\t\t\timageLoader.getImage(\"invoice.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'f',\r\n\t\t\t\t\t\"Ver el listado de facturas\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F6, 0), Invoice.class);\r\n\r\n\t\t\tPOSMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tPOSMnu.setMnemonic('p');\r\n\t\t\tadd(POSMnu);\r\n\t\t}\r\n\t}",
"private void buildViewMenu(){\n //Create a Run Payroll menu item\n viewItem = new JMenuItem(\"View CS History\");\n viewItem.setMnemonic(KeyEvent.VK_H);\n viewItem.addActionListener(new ViewListener());\n \n //Create a JMenu object for the run menu\n viewMenu = new JMenu(\"View\");\n viewMenu.setMnemonic(KeyEvent.VK_V);\n \n //Add the item to the menu\n viewMenu.add(viewItem);\n }",
"public ActionMenuItem(String text) {\n this.text = text;\n }",
"public native static MenuItemToggle create();",
"public static void createItem(String inputCommand) {\r\n\t\tString[] value = inputCommand.split(\" \");\r\n\t\tif(value.length == 4 && \"create\".equalsIgnoreCase(value[0])) {\r\n\t\t\tInventory inventory = new Inventory();\r\n\t\t\tinventory.setItemName(value[1]);\r\n\t\t\tinventory.setItemCostPrice(Double.parseDouble(value[2]));\r\n\t\t\tinventory.setItemSellPrice(Double.parseDouble(value[3]));\r\n\t\t\tinventoryList.put(value[1], inventory);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Entered wrong input command\");\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_item, menu);\r\n\t\treturn true;\r\n\t}",
"private void addItemToDrawer() {\n\t\tmLDrawerItem.add(new DrawerItem(\"Control\", R.drawable.ic_control));\n\t\tmLDrawerItem.add(new DrawerItem(\"Setting\", R.drawable.ic_setting));\n\t\tmLDrawerItem.add(new DrawerItem(\"Feedback\", R.drawable.ic_feedback));\n\t\tmLDrawerItem.add(new DrawerItem(\"Help\", R.drawable.ic_help));\n\t\tmLDrawerItem.add(new DrawerItem(\"About\", R.drawable.ic_about));\n\n\t}",
"private static MenuItem createCenterPanelPasteMenuItem(SongManager model) {\n MenuItem paste = new MenuItem(PASTE);\n\n paste.setOnAction((event) -> {\n File dest = model.getM_selectedCenterFolder();\n if (!dest.isDirectory()) {\n PromptUI.customPromptError(\"Not a directory!\", null, \"Please select a directory as the paste target.\");\n return;\n }\n try {\n model.copyToDestination(dest);\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Error\", null, \"IOException: \" + ex.getMessage());\n } catch (Exception ex) {\n PromptUI.customPromptError(\"Error\", null, \"Exception: \" + ex.getMessage());\n }\n });\n\n return paste;\n }",
"private static MenuItem createFileTreePasteMenuItem(SongManager model, Item selectedItem) {\n MenuItem paste = new MenuItem(PASTE);\n\n paste.setOnAction((event) -> {\n if (selectedItem != null) {\n File dest = selectedItem.getFile();\n if (!dest.isDirectory()) {\n PromptUI.customPromptError(\"Not a directory!\", null, \"Please select a directory as the paste target.\");\n return;\n }\n try {\n model.copyToDestination(dest);\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Error\", null, \"IOException: \" + ex.getMessage());\n } catch (Exception ex) {\n PromptUI.customPromptError(\"Error\", null, \"Exception: \" + ex.getMessage());\n }\n }\n });\n\n return paste;\n }"
] | [
"0.72420895",
"0.7164787",
"0.7159599",
"0.714981",
"0.7087085",
"0.7042927",
"0.69957864",
"0.69768023",
"0.69540685",
"0.6916642",
"0.68374336",
"0.68122834",
"0.6798045",
"0.6783294",
"0.6721755",
"0.66941196",
"0.6683734",
"0.66650367",
"0.665419",
"0.66250354",
"0.6600681",
"0.659806",
"0.6595662",
"0.656708",
"0.65565413",
"0.6552628",
"0.6542051",
"0.65374523",
"0.6500681",
"0.64985067",
"0.64899755",
"0.64681023",
"0.6466597",
"0.64612395",
"0.6448265",
"0.64078665",
"0.63797104",
"0.63797075",
"0.6368637",
"0.6366373",
"0.6348285",
"0.63393235",
"0.6327903",
"0.6321376",
"0.63065284",
"0.63043123",
"0.62989897",
"0.62852055",
"0.6278917",
"0.6259406",
"0.6254349",
"0.62298095",
"0.6224765",
"0.62176037",
"0.62147605",
"0.6211685",
"0.62029624",
"0.62003654",
"0.6196026",
"0.61912334",
"0.6185676",
"0.618469",
"0.6175948",
"0.61714625",
"0.6161062",
"0.6157777",
"0.61550665",
"0.6147709",
"0.6136394",
"0.61345613",
"0.6120691",
"0.6120101",
"0.61192405",
"0.61079043",
"0.6107068",
"0.6101046",
"0.6098525",
"0.60821736",
"0.60760653",
"0.6074926",
"0.60739493",
"0.6073288",
"0.60674685",
"0.6066639",
"0.6061733",
"0.60570395",
"0.605142",
"0.6047669",
"0.60434335",
"0.6040331",
"0.60302204",
"0.60158235",
"0.6008851",
"0.60069114",
"0.60015774",
"0.59926283",
"0.59913415",
"0.598727",
"0.59867185",
"0.5985248",
"0.59851354"
] | 0.0 | -1 |
Returns the protocol provider associated with this menu. | public ProtocolProviderService getProtocolProvider()
{
return providerService;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ProtocolProviderService getProtocolProvider() {\n return mPPS;\n }",
"public ProtocolProviderService getParentProvider()\n {\n return provider;\n }",
"public Object getDescriptor()\n {\n return protocolProvider;\n }",
"public String getProvider() {\n\t\treturn provider;\n\t}",
"public String getProvider() {\n return provider;\n }",
"public String getProvider() {\r\n return provider;\r\n }",
"public String getProvider() {\n\t\treturn this.provider;\n\t}",
"public Protocol getProtocol();",
"java.lang.String getProvider();",
"public URL getProviderURL () {\n return impl.getProviderURL ();\n }",
"public ProtocolProviderServiceRssImpl getParentProvider()\n {\n return this.parentProvider;\n }",
"public String getProvider() {\n return mProvider;\n }",
"public Protocol getProtocol()\n \t{\n \t\treturn protocol;\n \t}",
"public java.lang.String getProvider() {\n java.lang.Object ref = provider_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n provider_ = s;\n }\n return s;\n }\n }",
"public Protocol getProtocol() {\n\t\treturn protocol;\n\t}",
"public ProtocolType getProtocol() {\n return protocol;\n }",
"public String getProvider() {\n return (String) getAttributeInternal(PROVIDER);\n }",
"String getProtocol();",
"public Protocol getProtocol() {\n Protocol result = null;\n \n if (getResourceRef() != null) {\n // Attempt to guess the protocol to use\n // from the target reference scheme\n result = getResourceRef().getSchemeProtocol();\n // Fallback: look at base reference scheme\n if (result == null) {\n result = (getResourceRef().getBaseRef() != null) ? getResourceRef()\n .getBaseRef().getSchemeProtocol()\n : null;\n }\n }\n\n return result;\n }",
"public java.lang.String getProvider() {\n java.lang.Object ref = provider_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n provider_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public ProtocolTypes protocol() {\n return this.protocol;\n }",
"public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0 ) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }",
"public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }",
"public java.lang.String getProtocol () {\r\n return protocol;\r\n }",
"public final String getProtocol() {\n return protocol;\n }",
"public String getProtocol() {\n return protocol;\n }",
"public java.lang.String getProtocol()\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(PROTOCOL$0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getProtocol() {\n return (String)getAttributeInternal(PROTOCOL);\n }",
"public String getProtocolDisplayName()\n {\n String displayName = getAccountID().getAccountPropertyString(ProtocolProviderFactory.PROTOCOL);\n return (displayName == null) ? getProtocolName() : displayName;\n }",
"ProtocolSelector getProtocolSelector();",
"public java.lang.String getProviderType() {\n return this._providerType;\n }",
"public ProtocolEnum getProtocol() {\n return protocol;\n }",
"@NonNull\n public static ProtocolManager manager() {\n return ProtocolLibrary.getProtocolManager();\n }",
"public String getProtocol() {\n return m_Protocol;\n }",
"public static Class<?> getProvider() {\n return provider;\n }",
"public String getProtocol() {\n return this.protocol;\n }",
"public static String lookupProviderNameFromId(int protocol) {\n switch (protocol) {\n case Im.PROTOCOL_GOOGLE_TALK:\n return ProviderNames.GTALK;\n case Im.PROTOCOL_AIM:\n return ProviderNames.AIM;\n case Im.PROTOCOL_MSN:\n return ProviderNames.MSN;\n case Im.PROTOCOL_YAHOO:\n return ProviderNames.YAHOO;\n case Im.PROTOCOL_ICQ:\n return ProviderNames.ICQ;\n case Im.PROTOCOL_JABBER:\n return ProviderNames.JABBER;\n case Im.PROTOCOL_SKYPE:\n return ProviderNames.SKYPE;\n case Im.PROTOCOL_QQ:\n return ProviderNames.QQ;\n }\n return null;\n }",
"public PaymentProviderType getPaymentProviderType() {\n return paymentProviderType;\n }",
"public String protocol() {\n return this.protocol;\n }",
"public int getProtocol() {\n return protocol;\n }",
"public BonjourService getProtocolFor(String type) {\n ProtocolMetadata metadata = types.get(type);\n if (metadata != null) {\n return metadata.getProtocol();\n } else {\n return null;\n }\n }",
"public int getProtocol()\n\t{\n\t\treturn m_iProtocolType;\n\t}",
"public String getProtocol() throws SdpParseException {\n\t\treturn getProto();\n\t}",
"public String getAppLayerProtocol() {\n\t\treturn appLayerProtocol;\n\t}",
"protected SSLSocketProvider getSocketProvider()\n {\n return f_providerSocket;\n }",
"@objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();",
"public NetworkProtocol getProtocol() {\n return _protocol;\n }",
"public String getProviderClassName();",
"public org.apache.xmlbeans.XmlString xgetProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROTOCOL$0);\n return target;\n }\n }",
"public RoutingProtocol getProtocol() {\n\t\tif (this.isBgpProcess()) {\n\t\t\treturn RoutingProtocol.BGP;\n\t\t}\n\t\telse if (this.isOspfProcess()) {\n\t\t\treturn RoutingProtocol.OSPF;\n\t\t}\n\t\telse if (this.isStaticProcess()) {\n\t\t\treturn RoutingProtocol.STATIC;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getProviderUrl() {\r\n return providerUrl;\r\n }",
"public String getProviderID() {\n return PROVIDER_ID;\n }",
"String getProviderString();",
"public String getProtocolId();",
"public DownloadProvider getProvider() {\n return provider;\n }",
"public String getType() {\n\t\treturn \"protocol\";\n\t}",
"public String getProtocolName()\n {\n return Resources.getString(\"plugin.dictaccregwizz.PROTOCOL_NAME\");\n }",
"@NonNull\n public String getCurrentRuleSetProvider() {\n try {\n return mManager.getCurrentRuleSetProvider();\n } catch (RemoteException e) {\n throw e.rethrowAsRuntimeException();\n }\n }",
"public static String getProtocol() {\n return DEFAULT_PROTOCOL;\n }",
"java.lang.String getProtocolId();",
"public String getDataProvider() {\n\t\treturn dataProvider;\n\t}",
"default String protocol() {\n return (String) metadata().get(\"x-server-protocol\");\n }",
"@Override\n\tpublic Protocol getProtocol() {\n\t\treturn null;\n\t}",
"public static Provider provider() {\n try {\n Object provider = getProviderUsingServiceLoader();\n if (provider == null) {\n provider = FactoryFinder.find(JAXWSPROVIDER_PROPERTY, DEFAULT_JAXWSPROVIDER);\n }\n if (!(provider instanceof Provider)) {\n Class pClass = Provider.class;\n String classnameAsResource = pClass.getName().replace('.', '/') + \".class\";\n ClassLoader loader = pClass.getClassLoader();\n if (loader == null) {\n loader = ClassLoader.getSystemClassLoader();\n }\n URL targetTypeURL = loader.getResource(classnameAsResource);\n throw new LinkageError(\"ClassCastException: attempting to cast\" + provider.getClass()\n .getClassLoader().getResource(classnameAsResource) + \"to\" + targetTypeURL.toString());\n }\n return (Provider) provider;\n } catch (WebServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new WebServiceException(\"Unable to createEndpointReference Provider\", ex);\n }\n }",
"public String getPlugin() {\n\t\treturn adaptee.getPlugin();\n\t}",
"public String getWlDataProvider() {\n\t\treturn wlDataProvider;\n\t}",
"public java.lang.String getProviderName() {\n java.lang.Object ref = providerName_;\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 providerName_ = s;\n return s;\n }\n }",
"@Override\n public String getProviderName() {\n return mDeveloperProvider;\n }",
"public Protocol getProtocol(String sName);",
"public String getProviderName(){\n\t\treturn proxy.getName();\n\t}",
"public String getProtocol()\n {\n ASPManager mgr = getASPManager();\n String protocol = mgr.getAspRequest().getScheme();\n\n if(mgr.isDifferentApplicationPath())\n {\n int host_no = mgr.getCurrentHostIndex()+1;\n String[] data =Str.split((String)configfile.hosts.get(host_no+\"\"),\",\");\n \n if(!\"NONE\".equals(data[0]))\n protocol = data[0];\n }\n\n return protocol;\n }",
"public String getProviderUrl() {\n return \"jnp://\".concat(host).concat(\":\").concat(jndiPort.toString());\n }",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getProtocol();",
"public int getProtocol() throws ProtocolException {\n if (payload == null) {\n decodePacket();\n }\n return protocol;\n }",
"public java.lang.String getProviderName() {\n java.lang.Object ref = providerName_;\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 providerName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getProtocolAsString()\n\t{\n\t\tswitch (m_iProtocolType)\n\t\t{\n\t\t\tcase PROTOCOL_TYPE_RAW_TCP:\n\t\t\t\treturn PROTOCOL_STR_TYPE_RAW_TCP;\n\t\t\tcase PROTOCOL_TYPE_SOCKS:\n\t\t\t\treturn PROTOCOL_STR_TYPE_SOCKS;\n\t\t\tcase PROTOCOL_TYPE_HTTPS:\n\t\t\t\treturn PROTOCOL_STR_TYPE_HTTPS;\n\t\t\tcase PROTOCOL_TYPE_HTTP:\n\t\t\t\treturn PROTOCOL_STR_TYPE_HTTP;\n\t\t\tcase PROTOCOL_TYPE_RAW_UNIX:\n\t\t\t\treturn PROTOCOL_STR_TYPE_RAW_UNIX;\n\t\t\tdefault:\n\t\t\t\treturn PROTOCOL_STR_TYPE_UNKNOWN;\n\t\t}\n\t}",
"public InboundSecurityRulesProtocol protocol() {\n return this.protocol;\n }",
"public com.google.protobuf.ByteString\n getProviderBytes() {\n java.lang.Object ref = provider_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n provider_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Reference serviceProvider() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_SERVICE_PROVIDER);\n }",
"public java.lang.String getProviderId() {\n java.lang.Object ref = providerId_;\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 providerId_ = s;\n return s;\n }\n }",
"java.lang.String getCryptProviderTypeExtSource();",
"public String getEnabledLocationProvider()\n {\n Criteria criteria = new Criteria();\n String bestProvider = locationManager.getBestProvider(criteria, true);\n boolean enabled = locationManager.isProviderEnabled(bestProvider);\n\n if (!enabled)\n {\n Log.i(\"TAG\", \"No location provider enabled!\");\n return null;\n }\n return bestProvider;\n }",
"public String get_snmpprivprotocol()\r\n\t{\r\n\t\treturn this.snmpprivprotocol;\r\n\t}",
"public String getProviderAddress() {\n\t\treturn this.providerAddress;\n\t}",
"public com.google.protobuf.ByteString\n getProviderBytes() {\n java.lang.Object ref = provider_;\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 provider_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@ZAttr(id=698)\n public String getPublicServiceProtocol() {\n return getAttr(Provisioning.A_zimbraPublicServiceProtocol, null);\n }",
"@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}",
"public java.lang.String getProviderId() {\n java.lang.Object ref = providerId_;\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 providerId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public final RouteProviderDescriptor getDescriptor() {\n return mDescriptor;\n }",
"public static interface Provider {\n /** Get the explorer manager.\n * @return the manager\n */\n public ExplorerManager getExplorerManager();\n }",
"public String getProviderId() {\n\t\treturn providerId;\n\t}",
"public String getProviderId() {\n\t\treturn providerId;\n\t}",
"public ProviderIdentity getProviderIdentity() {\n\t\treturn this.providerIdentity;\n\t}",
"public IProvider lookupProvider(Class<? extends IProvider> providerType);",
"public static String getLatestProtocol() {\n return SORTED_PROTOCOLS.get(SORTED_PROTOCOLS.lastKey());\n }",
"public TransportProtocol protocol() {\n return this.protocol;\n }",
"private static String getItemDisplayName(\n ProtocolProviderService provider)\n {\n if(ConfigurationUtils.isAutoAnswerDisableSubmenu())\n return GuiActivator.getResources()\n .getI18NString(\"service.gui.AUTO_ANSWER\")\n + \" - \" + provider.getAccountID().getDisplayName();\n else\n return provider.getAccountID().getDisplayName();\n }",
"public Identifier getPositionProviderKey() {\n return _positionProviderKey;\n }",
"modelProvidersI getProvider();",
"public String get_snmpauthprotocol()\r\n\t{\r\n\t\treturn this.snmpauthprotocol;\r\n\t}"
] | [
"0.7417288",
"0.69678617",
"0.6720142",
"0.64515495",
"0.6438636",
"0.64174855",
"0.6384317",
"0.63237685",
"0.6315966",
"0.62615466",
"0.6242925",
"0.6214876",
"0.6186996",
"0.61744505",
"0.6155678",
"0.6143548",
"0.6080935",
"0.60690063",
"0.6061778",
"0.60565424",
"0.60451895",
"0.6035451",
"0.60288215",
"0.601127",
"0.6000448",
"0.59983027",
"0.5956154",
"0.59519726",
"0.5950529",
"0.5940363",
"0.593953",
"0.5931805",
"0.59278584",
"0.58985764",
"0.58864796",
"0.5883984",
"0.5857674",
"0.5810962",
"0.5785688",
"0.57634825",
"0.5760195",
"0.57226974",
"0.5722121",
"0.5709921",
"0.5684334",
"0.56841534",
"0.56730306",
"0.5664027",
"0.5635192",
"0.5631997",
"0.56306076",
"0.5605857",
"0.5581429",
"0.55617595",
"0.55427885",
"0.55423313",
"0.55414796",
"0.5513899",
"0.5507887",
"0.548963",
"0.5482177",
"0.5473655",
"0.54682195",
"0.546249",
"0.54581594",
"0.54041415",
"0.5391645",
"0.5390369",
"0.5369178",
"0.53573614",
"0.5346124",
"0.53338295",
"0.53327394",
"0.5310832",
"0.53077734",
"0.52939534",
"0.52851546",
"0.52757096",
"0.5273816",
"0.52709615",
"0.526915",
"0.5256609",
"0.5252375",
"0.52224666",
"0.52213055",
"0.52153134",
"0.5214724",
"0.5208815",
"0.5206916",
"0.5192269",
"0.51881063",
"0.51881063",
"0.5176671",
"0.51726997",
"0.51647466",
"0.51610965",
"0.51584566",
"0.514268",
"0.51403254",
"0.51287943"
] | 0.76544607 | 0 |
When action is performed on the item show a dialog. | public void actionPerformed(ActionEvent e)
{
new AutoAnswerOptionsDialog(providerService, parentMenu)
.setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickOpenEditDialog(Item item){\n /** Store as public reference */\n this.item = item;\n dialogNewItem.show();\n }",
"@OnClick(R.id.converter_sale_or_purchase_cv)\n public void chooseAction() {\n mDialog = new DialogList(mContext,\n mActionDialogTitle, mListForActionDialog, null,\n new RecyclerViewAdapterDialogList.OnItemClickListener() {\n @Override\n public void onClick(int position) {\n if (position == 0) {\n mAction = ConstantsManager.CONVERTER_ACTION_PURCHASE;\n } else {\n mAction = ConstantsManager.CONVERTER_ACTION_SALE;\n }\n mPreferenceManager.setConverterAction(mAction);\n mDialog.getDialog().dismiss();\n setLang();\n }\n });\n ((ImageView) mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done))\n .setImageResource(R.drawable.ic_tr);\n mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done)\n .setBackground(getResources().getDrawable(R.drawable.ic_tr));\n }",
"public void onItemClick(int position) {\n showDialog(position);\n }",
"@Override\n public boolean onMenuItemClick(MenuItem item) {\n Block_Dialog();\n return false;\n }",
"@Override\n public void onClick(View v) {\n dialog_action();\n }",
"@Override\n public void onClick(View v) {\n CustomAddItemDialog customAddItemDialog = new CustomAddItemDialog(MainActivity.this);\n customAddItemDialog.show();\n }",
"public void onClick(DialogInterface dialog, int item) {\n Log.i(\"DIALOG\", \"Escolha: \" + items[item]);\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tdialog();\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\tshowdialog();\n\n\t\t\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tsuper.onOptionsItemSelected(item);\n\t\tswitch(item.getItemId()) {\n\t\tcase ADD_INGREDIENT_DIALOG:\n\t\t\taddIngredient.performClick();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn true;\n\t}",
"private void showActionDialog(final int position) {\n CharSequence colors[] = new CharSequence[]{\"Edit\", \"Delete\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(\"Choose Option\");\n builder.setItems(colors, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (which == 0){\n showNoteDialog(true, noteList.get(position), position);\n }\n else if (which == 1){\n deleteNote(noteList.get(position),position);\n }\n }\n });\n builder.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteItem(parent, position);\n } else if (item == 1) {\n updateBook(parent, position);\n } else if (item == 2) {\n updateAuthor(parent, position);\n }else if (item == 3) {\n makeChoice(false);\n } else if (item == 4) {\n makeChoice(true);\n }\n\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tshowDialog();\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n showDialog();\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tswitch (id) {\n\t\tcase R.id.create_new_vehicle:\n\t\t\tprepareForNewVehicle();\n\t\t\tbreak;\n\t\tcase R.id.delete_vehicle:\n\t\t\t// Create an instance of the dialog fragment and show it\n\t\t\tDialogFragment dialog = new NoticeDialogFragment();\n\t\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\t\tdialog.show(fragmentManager, \"Notice Dialog Fragment First test!\");\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public void onShow(DialogInterface arg0) {\n\n }",
"public void actionPerformed(ActionEvent arg0) {\r\n\t\tif(list.getSelectedIndex()<0)\r\n\t\t\treturn;\r\n\t\tThrDialogInviter dialogInvite = new ThrDialogInviter(sipManager,getParent());\r\n\t\tListItem item = (ListItem) list.getModel().getElementAt(list.getSelectedIndex());\r\n\t\tdialogInvite.setNombreUsuario(item.getValue());\r\n\t\tdialogInvite.setX(x/2 - 100);\r\n\t\tdialogInvite.setY(y/5 + 100);\r\n\t\tdialogInvite.start();\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n // Diaglog implementation\n final Dialog dialog = new Dialog(this);\n dialog.setTitle(getResources().getString(R.string.dialogText));\n dialog.setContentView(R.layout.dialog_layout);\n\n // Treating the Button that goes to the MoMa website\n dialog.findViewById(R.id.buttonVisitMoMA).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.moma.org\"));\n startActivity(intent);\n }\n });\n\n // Dismissing the Dialog\n dialog.findViewById(R.id.buttonNotNow).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n if (item.getItemId() == R.id.menuOverFlowArea){\n dialog.show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n String AlertTxt = \"\\\"\" + productList.get(position).getTitle() + \"\\\"\\n\" + getResources().getString(R.string.freeques);\n\n FreeShopDialog alert = new FreeShopDialog.Builder()\n .setMessage(AlertTxt)\n .setImage(productList.get(position).getImageId())\n .setYesButton(R.string.yes)\n .setNoButton(R.string.no)\n .setLayout(R.layout.shop_box)\n .setPosition(position)\n .build();\n alert.setActivity(activity);\n alert.show(getFragmentManager(), \"FREESHIT\");\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"DialogResult show();",
"void onDialogNavigationItemClicked(Element element);",
"@FXML\n public void Show_Completed_Items(ActionEvent actionEvent) {\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case R.id.clear_basket:\n dialog = new MyDialog();\n dialog.show(getFragmentManager(), \"MyFragment\");\n return true;\n\n case R.id.shareText:\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n\n int countList = listView.getCount();\n String share = \"\";\n\n for (int i = countList - 1; i >= 0; i--) {\n share = fAdapter.getItem(i)+ \", \"+share;\n }\n\n sendIntent.putExtra(Intent.EXTRA_TEXT, share);\n sendIntent.setType(\"text/plain\");\n startActivity(sendIntent);\n\n\n\n return true;\n\n case R.id.action_settings:\n Intent i = new Intent(this,SettingsActivity.class);\n startActivityForResult(i, 1);\n return true;\n\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override public void onItemClick(View view, int position) {\n final Dialog dialog = new Dialog(Informal.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_informal);\n Button btn = (Button) dialog.findViewById(R.id.dialog_btn);\n TextView mTextView = (TextView)dialog.findViewById(R.id.dialog_event_name);\n TextView description = (TextView)dialog.findViewById(R.id.dialog_description_text);\n mTextView.setText(Constants.mEvents_Informal[position]);\n description.setText(getString(Constants.mEvents_Informal_description[position]));\n dialog.show();\n btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n }",
"@Override\n\t\t\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\t\t\tcase R.id.popup_reInfo:\n\t\t\t\t\t\t\tmainAct.ResetInfo(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.popup_upload:\n\t\t\t\t\t\t\tmainAct.addImage(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.popup_del:\n\t\t\t\t\t\t\tmainAct.delete(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}",
"public void actionPerformed(ActionEvent evt) {\r\n super.actionPerformed(evt);\r\n createDialog().show();\r\n }",
"public void showDialog(Context context) {\n \n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int item) {\n\t\t\t\t\tToast.makeText(getBaseContext(), idOption[item],\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\tIntent intent;\n\n\t\t\t\t\tswitch (item) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Connect\n\t\t\t\t\t */\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tsendIdentity(idItem);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Edit Value\n\t\t\t\t\t\t */\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\teditIdentityValue(idItem.getId(), idItem.getName());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Edit Tag\n\t\t\t\t\t\t */\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tintent = new Intent(IdentityListView.this,\n\t\t\t\t\t\t\t\tIdentityTagListView.class);\n\n\t\t\t\t\t\tintent.putExtra(\"encryptedIdName\", encryptedIdName);\n\t\t\t\t\t\tintent.putExtra(\"id\", String.valueOf(idItem.getId()));\n\t\t\t\t\t\tstartActivityForResult(intent, 1);\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Edit Workspace\n\t\t\t\t\t\t */\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tintent = new Intent(IdentityListView.this,\n\t\t\t\t\t\t\t\tIdentityWorkspaceListView.class);\n\n\t\t\t\t\t\tintent.putExtra(\"encryptedIdName\", encryptedIdName);\n\t\t\t\t\t\tintent.putExtra(\"id\", String.valueOf(idItem.getId()));\n\t\t\t\t\t\tstartActivityForResult(intent, 1);\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Delete\n\t\t\t\t\t\t */\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\tdeleteIdentityValue(idItem);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = checkItem.getForwardIntent();\n CTSCLog.e(TAG, \"Forward intent is null! Check item = \" + checkItem.getTitle());\n startActivity(intent);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\r\n\t\tif(item.getTitle().equals(\"How-To\")){\r\n\t\t\t\tIntent i = new Intent(this,HowToDialog.class );\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\telse if(item.getTitle().equals(\"About\")){\r\n\t\t\tIntent i = new Intent(this,About.class );\r\n\t\t\tstartActivity(i);\t\r\n\t\t\t}\r\n\t\telse if(item.getTitle().equals(\"Rate it\")){\r\n\t\t\tUri uri = Uri.parse(\"market://details?id=com.atiffarrukh.callandsmsblocker\");\r\n\t\t\tIntent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\r\n\t\t\ttry {\r\n\t\t\t startActivity(goToMarket);\r\n\t\t\t} catch (ActivityNotFoundException e) {\r\n\t\t\t Toast.makeText(context, \"Couldn't launch the market\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t\t}\r\n\t\telse if(item.getTitle().equals(\"Contact\")){\r\n\t\t\tIntent i = new Intent(this,ContactDialog.class );\r\n\t\t\tstartActivity(i);\t\r\n\t\t\t}\r\n\t\telse if(item.getTitle().equals(\"Preview SMS\")){\r\n\t\t\t AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t\t\t builder.setTitle(\"SMS Preview\");\r\n\t\t\t builder.setMessage(getMessage())\r\n\t\t\t .setPositiveButton(\"OK\", new OnClickListener() {\r\n\t\t\t\t\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// TODO Auto-generated method stub\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t Log.d(\"PREFS\", \"Should Create Dialog Now\");\r\n\t\t\tAlertDialog d = builder.create();\r\n\t\t\td.show();\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn false;\r\n\t\t\r\n\t}",
"public void onShow(Context context);",
"@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}",
"@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}",
"public void buttonShowComplete(ActionEvent actionEvent) {\n }",
"public void showTriggered();",
"@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteList(parent, position);\n } else if (item == 1) {\n updateList(parent, position);\n }\n\n }",
"protected void editClicked(View view){\n FragmentManager fm = getSupportFragmentManager();\n ЕditDialog editDialogFragment = new ЕditDialog(2);\n Bundle args = new Bundle();\n args.putInt(\"position\", this.position);\n args.putString(\"itemName\", this.itm.getItem(this.position).getName());\n args.putString(\"itemUrl\", this.itm.getItem(this.position).getUrl());\n editDialogFragment.setArguments(args);\n editDialogFragment.show(fm, \"edit_item\");\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.more_info) {\n DialogFragment newFragment = AlertDialogFragment.newInstance();\n newFragment.show(getFragmentManager(), \"dialog\");\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View v,int position, long id) {\n\t\t\tif(!speechFlags[position]&&!subtitleFlags[position])\r\n\t\t\t\treturn false;\r\n\t\t\tmanageItemIndex=position;\r\n\t\t\tmQuickAction.show(v);\r\n\t\t\tGaLogger.sendEvent(\"ui_action\", \"show_dialog\", \"quick_action_menu\", null);\r\n\t\t\t//itemManageDialog=getItemManageDialog(position);\r\n\t\t\t//itemManageDialog.show();\r\n//\t\t\tif(!wakeLock.isHeld()){wakeLock.acquire();}\r\n\t\t\treturn true;\r\n\t\t}",
"@Override\n public void onItemClick(View itemView, ServResrouce info, int position)\n {\n SelectFlightDialog dialog =\n new SelectFlightDialog(ConfirmOrderActivity.this, mSelectFlightListener, itemView, position);\n dialog.show();\n WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();\n lp.height = (int)(screenHeight - statusBarHeight - 120);\n dialog.getWindow().setAttributes(lp);\n }",
"public void onButtonActionEvent(com.codename1.ui.events.ActionEvent ev) {\n new ListEvent().show();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.option_get_place) {\n showCurrentPlace();\n }\n else if (item.getItemId() == R.id.option_author) {\n showAuthorDialog();\n }\n return true;\n }",
"@Override\r\n\tpublic void onShow() {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tParseQuery<ParseObject> deleteQuery = ParseQuery.getQuery(\"newItem\");\n\t\t\t\t//Remove item from listview\n\t\t\t\tdeleteQuery.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void done(List<ParseObject> itemsList, ParseException e) {\n\t\t\t\t\t\tif (e == null) {\n\t\t\t\t\t\t\t//Delete item from parse\n\t\t\t\t\t\t\titemsList.get(deleteItemPosition).deleteInBackground(new DeleteCallback() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void done(ParseException arg0) {\n\t\t\t\t\t\t\t\t\tif (arg0 == null) {\n\t\t\t\t\t\t\t\t\t\tToast.makeText(getBaseContext(),\"Item Successfully Deleted!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t//Clear item arraylist and repop listview\n\t\t\t\t\t\t\t\t\t\tparseArrayList.clear();\n\t\t\t\t\t\t\t\t\t\tqueryParseForItems();\n\t\t\t\t\t\t\t\t\t\tlistAdapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t\t//itemListView.setEnabled(true);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tToast.makeText(getBaseContext(),\"An error occured, please try again.\", Toast.LENGTH_LONG).show();\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}); //deleteInBackground close\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}); //findInBackground close\n\t\t\t}",
"public void onEditAgendaItem() {\n AgendaItem agendaItem = outputAgendaItemsPreparation.getSelectionModel().getSelectedItem();\n\n if (agendaItem == null) {\n AlertHelper.showError(LanguageKey.ERROR_AGENDAITEM_NULL, null);\n return;\n }\n\n AgendaItemDialog agendaItemDialog = AgendaItemDialog.getNewInstance(agendaItem);\n if (agendaItemDialog == null) {\n // Exception already handled\n return;\n }\n Optional<AgendaItem> result = agendaItemDialog.showAndWait();\n if (!result.isPresent()) {\n return;\n }\n\n if (controller.editAgendaItem(result.get())) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_AGENDAITEM_EDIT, null);\n }",
"public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tlistPanel.showWorkDialog();\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_new) {\n newArt();\n }\n if (id == R.id.action_moreinfo) {\n new AlertDialog.Builder(this)\n .setMessage(\"Do you want to get the information from the MoMa\")\n .setCancelable(false)\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri webpage = Uri.parse(\"http://www.moma.org/collection/artists/4057\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n })\n .create()\n .show();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\n\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n if (id ==R.id.deletefol){\n\n alert();\n\n }\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onStart() {\n pDialog.show();\n }",
"@Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n }",
"void showItemDialog(Task task, CharSequence items[]);",
"@Override\n public void onClick(View view) {\n DialogAddEvent();\n }",
"public void handleGetItemDetailsButtonAction(ActionEvent event) {\n String itemID = updateItemItemID.getText();\n try{\n //get the details from mgr\n HashMap itemInfo = updateMgr.getItemInfo(itemID);\n //display on the fields\n updateItemTitle.setText((String)itemInfo.get(Table.BOOK_TITLE));\n updateItemAuthor.setText((String)itemInfo.get(Table.BOOK_AUTHOR));\n updateItemDescription.setText((String)itemInfo.get(Table.BOOK_DESCRIPTION));\n updateItemPublishDate.setText(formatDateString((Calendar)itemInfo.get(Table.BOOK_DATE)));\n updateItemISBN.setText((String)itemInfo.get(Table.BOOK_ISBN));\n updateItemGenre.setText((String)itemInfo.get(Table.BOOK_GENRE));\n //enable item info pane\n updateItemInfoPane.setDisable(false);\n this.tempItemID = itemID;\n }\n catch(ItemNotFoundException | SQLException | ClassNotFoundException e){\n this.displayWarning(\"Error\", e.getMessage());\n } catch (Exception ex) {\n this.displayWarning(\"Error\", ex.getMessage());\n } \n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tshowIndicator();\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\r\n\t}",
"@Override\n\tpublic void processConfirmItemButtonClick(ProcessConfirmItemObjectEvent e) {\n\t\t\n\t}",
"private void showReturnItemDialog() {\n //TODO: fetch items from server and implement return\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n AlertDialog dialog = alertDialog.create();\n\n if (dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);\n }\n\n View view = LayoutInflater.from(getActivity()).inflate(R.layout.return_popup_layout, null);\n dialog.setView(view);\n\n itemList = new ArrayList<>();\n\n noItemsText = view.findViewById(R.id.noItemsText);\n itemRecyclerView = view.findViewById(R.id.itemRecyclerView);\n\n final EditText billingIdText = view.findViewById(R.id.billingIDText);\n final EditText studentIdText = view.findViewById(R.id.studentIDText);\n final CardView checkButton = view.findViewById(R.id.checkButton);\n checkButton.setOnClickListener(view1 -> {\n String billingId = billingIdText.getText().toString();\n String studentId = studentIdText.getText().toString();\n\n if (!billingId.isEmpty() && !studentId.isEmpty())\n checkReturnItems(billingId, studentId);\n else {\n Toast.makeText(getContext(), \"Billing ID and Student ID both are required\", Toast.LENGTH_SHORT).show();\n }\n });\n\n returnItemAdapter = new ReturnItemAdapter(getContext(), itemList);\n\n itemRecyclerView.setLayoutManager(new GridLayoutManager(getContext(), 3));\n itemRecyclerView.setAdapter(returnItemAdapter);\n returnItemAdapter.setOnReturnItemClickListener(this);\n checkItemsAvailability();\n\n dialog.show();\n }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tListSelectionModel lsm = list.getSelectionModel();\r\n\t\t\tint selected = lsm.getMinSelectionIndex();\r\n\r\n\t\t\tItemView itemView = (ItemView) list.getModel().getElementAt(selected);\r\n\r\n\t\t\t// change item\r\n\t\t\tJOptionPane options = new JOptionPane();\r\n\t\t\tObject[] addFields = { \"Name: \", nameTextField, \"Price: \", priceTextField, \"URL: \", urlTextField, };\r\n\t\t\tint option = JOptionPane.showConfirmDialog(null, addFields, \"Edit item\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\t\tString name = nameTextField.getText();\r\n\t\t\t\tString price = priceTextField.getText();\r\n\t\t\t\tString url = urlTextField.getText();\r\n\r\n\t\t\t\tdouble doublePrice = Double.parseDouble(price);\r\n\r\n\t\t\t\titemView.getItem().setName(name);\r\n\t\t\t\titemView.getItem().setCurrentPrice(doublePrice);\r\n\t\t\t\titemView.getItem().setUrl(url);\r\n\t\t\t\t// clear text fields\r\n\t\t\t\tnameTextField.setText(\"\");\r\n\t\t\t\tpriceTextField.setText(\"\");\r\n\t\t\t\turlTextField.setText(\"\");\r\n\t\t\t}\r\n\t\t}",
"public void onClick(DialogInterface dialog, int choice) {\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.miTweet:\n showTweetDialog();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic void run(IAction action) {\r\n\r\n\t\ttry {\r\n\t\t\tif (MigrationGoalsContainer.INSTANCE.getMigrationGoals() == null){\r\n\t\t\t\tMessageDialog.openWarning(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), \"Warning\", \"Please load the Migration Goals before opening the Inventory View\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//Load the model for the selected file and open the inventory view. \r\n\t\t\t\tComponentModelQuery.INSTANCE.loadModel(selectedFile);\r\n\t\t\t\tif (window.getActivePage().findView(InventoryView.ID) != null) {\r\n\t\t\t\t\twindow.getActivePage().hideView(window.getActivePage().findView(InventoryView.ID));\r\n\t\t\t\t}\r\n\t\t\t\twindow.getActivePage().showView(InventoryView.ID);\r\n\t\t\t}\r\n\t\t} catch (PartInitException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//TODO: HANDLE THIS\r\n\t\t}\r\n\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent action) {\n\t\t\t\t\tDishDetails.OpenWindow(null);\n\t\t\t\t}",
"public void onSmoothieClick(View view) {\n showDialogOrder(1);\n }",
"@Override\n public void onClick(View v) {\n ((CreateDocketActivityPart2) activity).openPopUpForWorkDone(position);\n }",
"@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(context, holder.threeDots);\n popup.inflate(R.menu.popup_menu_options_edit_flashcard);\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.popupDelete:\n\n flashcardActivity.handleDeleteClick(p);\n break;\n\n case R.id.popupEdit:\n\n flashcardActivity.handleRenameClick(p);\n break;\n\n }\n return false;\n }\n });\n popup.show();\n }",
"public void onAddAgendaItem() {\n AgendaItemDialog agendaItemDialog = AgendaItemDialog.getNewInstance();\n Optional<AgendaItem> result = agendaItemDialog.showAndWait();\n if (!result.isPresent()) {\n return;\n }\n\n if (controller.addAgendaItem(result.get())) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_AGENDAITEM_ADD, null);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.filter) {\n showAlert();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}",
"public void onShow(DialogInterface dialog) {\n if (listener == null) {\n return;\n }\n listener.onShow(context);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this,'P'));\r\n\t\t\t}",
"@Override\n\tpublic void invokeHandsel(final BackPackItem item) {\n\t\tif (((item.Attribute[3] >> 1) & 1) == 0) {\n\t\t\tdialog = new HandselDialog(BackPackActivity.this, item.backpackName);\n\t\t\tdialog.setListener(new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// 发送赠送\n\t\t\t\t\tlong handselId = 0;\n\t\t\t\t\tshort handselNum = 1;\n\t\t\t\t\tboolean enable = true;\n\t\t\t\t\tResources resource = BackPackActivity.this.getResources();\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandselId = Long.parseLong(HandselDialog.handselId);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tToast.makeText(getApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_id_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tenable = false;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandselNum = Short.parseShort(HandselDialog.handselNum);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_largess_count_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tenable = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (guid == handselId) {\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_largess_myself_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t} else if (item.newHoldCount >= handselNum && enable\n\t\t\t\t\t\t\t&& (handselNum != 0)) {\n\t\t\t\t\t\trequestHandsel(handselId, item.id, handselNum,\n\t\t\t\t\t\t\t\titem.backpackName);\n\t\t\t\t\t} else if (enable) {\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_not_enaghe_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\n\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\tdialog.show();\n\t\t} else {\n\t\t\tResources resource = BackPackActivity.this.getResources();\n\t\t\tToast.makeText(getApplication(),\n\t\t\t\t\tresource.getString(R.string.package_binded_error),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"@Override\n public void onClick(View view) {\n if (mAddDialog == null) {\n mAddDialog = new XPopup.Builder(MainActivity.this)\n .asInputConfirm(getString(R.string.add_random_title)\n , getString(R.string.add_random_content)\n , new OnInputConfirmListener() {\n @Override\n public void onConfirm(String text) {\n if (mAdapter != null) {\n mAdapter.addData(new BaseModel(text, 1));\n }\n }\n }).show();\n } else {\n mAddDialog.show();\n }\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Booked\", 500).show();\n\t\t\t}",
"public boolean onMenuItemClick(MenuItem item) {\n\n if (item.getTitle().equals(\"Información\"))\n {\n String nombreUsuario = parent.getItemAtPosition(position).toString();\n MessageDialog(GetInformacionUsuario(nombreUsuario),\n \"Información\", \"Aceptar\");\n }\n else\n {\n if (item.getTitle().equals(\"Modificar\"))\n {\n Intent intent_ = new Intent(getActivity(), CrearUsuario.class); // reusar codigo y utilizar la pantalla de crear\n intent_.putExtra(\"ACCION\", \"MODIFICAR\");\n\n String nombreUsuario = parent.getItemAtPosition(position).toString();\n intent_.putExtra(\"OBJETO\", GetObjetoUsuario(nombreUsuario));\n\n startActivity(intent_);\n }\n else // Eliminar\n {\n String nombreUsuario = parent.getItemAtPosition(position).toString();\n EliminarUsuario(nombreUsuario);\n }\n }\n\n return true;\n }",
"@Override\n public void onItemClick(View view, Medal obj, int position) {\n TextView txt;\n final Dialog dialog = new Dialog(getContext());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); // before\n dialog.setContentView(R.layout.popup_medals);\n txt = dialog.findViewById(R.id.titlePop);\n txt.setText(obj.title);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n dialog.setCancelable(true);\n dialog.show();\n }",
"@FXML\n void launcherButtonOnAction() {\n openParamDialog();\n }",
"public void showBuyItem(){\n\t\tListView view = (ListView) getView().findViewById(R.id.itemshopList);\n\t\tview.setVisibility(View.VISIBLE);\n\t\t\n\t\tMainGameActivity.setShopCode((Integer) 1);\n\t\t\n\t\t ArrayList<Item> itemList = MainGameActivity.getPlayerFromBackpack().GetItem();\n\n\t\t ArrayAdapter<Item> arrayAdapter = new ArrayAdapter<Item>(this.getActivity(),android.R.layout.simple_list_item_1, itemList);\n\t\t view.setAdapter(arrayAdapter); \n\t\t \n\t\t final Context ctx = this.getActivity();\n\n\t\t view.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t @Override\n\t\t public void onItemClick(AdapterView<?> parent, final View view,\n\t\t int position, long id) {\n\t\t \t \n\t\t final Item item = (Item) parent.getItemAtPosition(position);\n\t\t \t// custom dialog\n\t\t\t\t\tfinal Dialog dialog = new Dialog(ctx);\n\t\t\t\t\tdialog.setContentView(R.layout.shop_dialog);\n\t\t\t\t\tdialog.setTitle(\"Buy \" + item.GetName());\n\t\t \n\t\t\t\t\t// set the custom dialog components - text, image and button\n\t\t\t\t\tfinal EditText editText = (EditText) dialog.findViewById(R.id.amountofItem);\n\t\t\t\t\t\n\t\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.currentMoney);\n\t\t\t\t\ttext.setText(\"Current Money: \" + MainGameActivity.getPlayerFromBackpack().GetMoney());\n\n\t\t \n\t\t\t\t\tButton buyButton = (Button) dialog.findViewById(R.id.button2shop);\n\t\t\t\t\tButton backButton = (Button) dialog.findViewById(R.id.button1shop);\t\t\n\t\t\t\t\t\n\t\t\t\t\tbuyButton.setText(\"Buy\");\n\t\t\t\t\t//if button is clicked, buy\n\t\t\t\t\tbuyButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t/* Buy sequence here */\n\t\t\t\t\t\t\tInteger Amount = Integer.valueOf(editText.getText().toString());\n\t\t\t\t\t\t\tif ((Amount > 0) && (Amount * item.GetPrice() <= MainGameActivity.getPlayerFromBackpack().GetMoney())){\n\t\t\t\t\t\t\t\tMainGameActivity.getPlayerFromBackpack().SetMoney(MainGameActivity.getPlayerFromBackpack().GetMoney() - Amount * item.GetPrice());\n\t\t\t\t\t\t\t\titem.SetNItem(item.GetNItem() + Amount);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tshowBuyItem();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Showing message that Amount is not valid */\n\t\t\t\t\t\t\t\tTextView textError = (TextView) dialog.findViewById(R.id.messageItem);\n\t\t\t\t\t\t\t\ttextError.setText(\"Amount is not valid!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// if button is clicked, close the custom dialog\n\t\t\t\t\tbackButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \n\t\t \n\t\t\t\t\tdialog.show();\n\t\t \t /* After buying process finished - refresh showBuyItem */\t\t \t \n\t\t }\n\t\t });\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mToggle.onOptionsItemSelected(item)) {\n return true;\n }\n if (item.getItemId() == R.id.moreInfo) {\n AlertDialog.Builder builder = new AlertDialog.Builder(EventsActivity.this, R.style.AlertDialog);\n builder.setMessage(\"This page allows you to add entries into an events diary to keep track of the person you are caring for. \" +\n \"\\n\\nYou can add entries like dentist appointments, visits by relatives or even just a trip to the shop.\" +\n \"\\n\\nOnce you have created an event, press on it to edit the details.\")\n .setTitle(\"Events Diary\");\n // Add the buttons\n builder.setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n dialog.cancel();\n\n }\n });\n AlertDialog dialog = builder.show();\n }\n return super.onOptionsItemSelected(item);\n }",
"private void actionDelete() {\r\n showDeleteDialog();\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n switch(id) {\r\n //noinspection SimplifiableIfStatement\r\n case R.id.action_settings:\r\n return true;\r\n\r\n case R.id.ajouter_aliment_au_rayon:\r\n\r\n // custom dialog\r\n final Dialog dialog = new Dialog(this);\r\n dialog.setContentView(R.layout.layout_ajout_aliment_au_rayon);\r\n dialog.setTitle(\"Mettre en rayon\");\r\n dialog.show();\r\n return true;\r\n\r\n case R.id.check_aliments:\r\n ArrayList<Aliment> allAliments= dataAdapter.allAliments; //recuperation de tous les aliments\r\n //recuperation des aliments non coches\r\n ArrayList<Integer> alimentsRestants= new ArrayList<Integer>();\r\n for(int i= 0 ; i < allAliments.size(); ++i){\r\n Aliment al= allAliments.get(i);\r\n if(!al.isSelected()){\r\n alimentsRestants.add(i);\r\n }\r\n }\r\n StringBuffer responseText = new StringBuffer();\r\n int nb_aliments_manquants= alimentsRestants.size();\r\n if(nb_aliments_manquants == 0){\r\n responseText.append(\"Votre liste est complete, a la caisse !\");\r\n } else if(nb_aliments_manquants == 1) {\r\n responseText.append(\"Il vous manque cet aliment : \" + allAliments.get(alimentsRestants.get(0)).getNom());\r\n } else {\r\n responseText.append(\"Il vous manque ces \" + alimentsRestants.size() + \" aliments :\\n\");\r\n for(int i= 0 ; i < alimentsRestants.size(); ++i){\r\n Integer indice_aliment_restant= alimentsRestants.get(i);\r\n Aliment al= allAliments.get(indice_aliment_restant);\r\n responseText.append(\"\\n\" + al.getNom());\r\n }\r\n }\r\n\r\n Toast.makeText(getApplicationContext(),\r\n responseText, Toast.LENGTH_LONG).show();\r\n return true;\r\n\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n AlertDialog.Builder confirmDiagBuilder = new AlertDialog.Builder(AddListingView.this);\n confirmDiagBuilder.setMessage(R.string.want_to_save);\n confirmDiagBuilder.setPositiveButton(R.string.save, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mSaveButton.callOnClick();\n }\n });\n\n confirmDiagBuilder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n onBackPressed();\n }\n });\n\n confirmDiagBuilder.show();\n }\n\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_add) {\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t\tfinal LayoutInflater inflater = this.getLayoutInflater();\n\t\t\talertDView = inflater.inflate(R.layout.custom_alert, null);\n\t\t\tbuilder.setView(alertDView).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\tString todoItem = ((EditText) alertDView.findViewById(R.id.editTextAD)).getText().toString();\n\t\t\t\t\tif (todoItem == null || todoItem.isEmpty()) {\n\t\t\t\t\t\tToast.makeText(ToDoActivity.this, \"Empty text not allowed\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tParseObject toDoObject = new ParseObject(\"ToDo\");\n\t\t\t\t\ttoDoObject.put(\"text\", todoItem);\n\t\t\t\t\ttoDoObject.saveInBackground(new SaveCallback() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(ParseException arg0) {\n\t\t\t\t\t\t\tadapter.loadObjects();\n\t\t\t\t\t\t\tToast.makeText(ToDoActivity.this, \"Text is saved\", 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}).setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t}\n\t\t\t}).setTitle(\"Add an item\");\n\t\t\talertDialog = builder.create();\n\t\t\talertDialog.show();\n\t\t\treturn true;\n\t\t} else if (id == R.id.action_logout) {\n\t\t\tParseUser.logOut();\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivity(intent);\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n showModal(position);\n view.setSelected(true);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n final TextView kor = (TextView) findViewById(R.id.kor);\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_who) {\n Intent intent = new Intent(getApplicationContext(),Info.class);\n startActivity(intent);\n }else if(id==R.id.quiz) {\n int diff = korlist.size();\n if (diff > 0) {\n Intent intent = new Intent(getApplicationContext(), quiz.class);\n intent.putExtra(\"englist\", englist);\n intent.putExtra(\"korlist\", korlist);\n startActivity(intent);\n } else {\n Snackbar.make(getWindow().getDecorView(), \"먼저 단어장을 로드해주세요\", Snackbar.LENGTH_LONG).show();\n }\n }/*else if(id==R.id.adj) {\n CustomDialog dialog = new CustomDialog(this);\n dialog.setDialogListener(new CustomDialog.CustomDialogListener() {\n @Override\n public void Clicked(Float value) {\n }\n\n });\n dialog.show();\n }*/\n return super.onOptionsItemSelected(item);\n }",
"@FXML\n public void Show_Incomplete_Items(ActionEvent actionEvent) {\n }",
"public void onClick(View view) {\n\n openDialog();\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.prep_presentation:\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n startPrepPresentation(true);\n }\n });\n return true;\n\n case R.id.prep_no_feedback:\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n startPrepPresentation(false);\n }\n });\n return true;\n \n case R.id.view_data:\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n startViewData();\n }\n });\n return true;\n\n default:\n return false;\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.more_information) {\n AlertDialogFragment alertDialogFragment = AlertDialogFragment.newInstance();\n alertDialogFragment.setCancelable(false);\n alertDialogFragment.show(getFragmentManager(), \"MomaAlert\");\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"void issuedClick(String item);",
"public void showEditTitleDialog( ){\n FragmentTransaction ft = fragmentManager.beginTransaction();\n Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_DIALOG);\n if (prev != null) {\n ft.remove(prev);\n }\n\n // Send Related Information...\n ModelUpdateItem updateItem = new ModelUpdateItem(\n itemPosition,\n rootParentID, // Sending Root Or Parent ID.\n listManageHome.get(itemPosition).getLayoutID(), listManageHome.get(itemPosition).getLayoutTitle() );\n\n PopUpDialogEditTitle dialogFragment = new PopUpDialogEditTitle( this, updateItem );\n dialogFragment.show( fragmentManager, FRAGMENT_DIALOG );\n }",
"public void onClick(DialogInterface dialog, int id) {\n showDialog();\n }",
"@FXML\n public final void buttonListener() {\n final String str = GameContext.instance().toStringUniverse();\n Dialogs.create()\n .title(\"Planet list\")\n .message(str)\n .showInformation();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle item selection\n switch (item.getItemId()) {\n case R.id.action_about:\n // Create a pop up message with a button to close it\n // with information about the app\n AlertDialog.Builder builderAlert = new AlertDialog.Builder(ShowBeer.this);\n builderAlert.setMessage(R.string.about_this_app);\n builderAlert.setCancelable(true);\n builderAlert.setNeutralButton(\n \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alertInstance = builderAlert.create();\n alertInstance.show();\n return true;\n case R.id.action_debug:\n Intent intent = new Intent(ShowBeer.this, DebugActivity.class);\n intent.putExtra(\"DEBUG\", debugQueryText);\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }"
] | [
"0.7062646",
"0.685634",
"0.66970885",
"0.66366595",
"0.6623907",
"0.66118735",
"0.65774584",
"0.6501071",
"0.6462105",
"0.64474094",
"0.64218616",
"0.6400045",
"0.6391966",
"0.6385302",
"0.636065",
"0.6351958",
"0.6343696",
"0.6341571",
"0.6336387",
"0.63326067",
"0.6331985",
"0.63308245",
"0.63296306",
"0.63250834",
"0.6315596",
"0.63122857",
"0.63017637",
"0.6300284",
"0.6288016",
"0.6285249",
"0.62746847",
"0.62545544",
"0.625073",
"0.62420094",
"0.62234235",
"0.62144923",
"0.62144923",
"0.6196826",
"0.61914814",
"0.61887985",
"0.61871123",
"0.6184694",
"0.6181586",
"0.61790353",
"0.617816",
"0.6177526",
"0.61658794",
"0.61620206",
"0.61595696",
"0.6155531",
"0.6153114",
"0.6137435",
"0.6136545",
"0.6123843",
"0.61131084",
"0.6109611",
"0.6106255",
"0.61057705",
"0.6098935",
"0.60983276",
"0.60909915",
"0.60882163",
"0.60873306",
"0.6086672",
"0.6086074",
"0.6086038",
"0.60835457",
"0.6082418",
"0.6078301",
"0.6068687",
"0.6063145",
"0.6061851",
"0.6043982",
"0.60426414",
"0.6040404",
"0.6034095",
"0.6033481",
"0.6030873",
"0.6019263",
"0.60180765",
"0.60095006",
"0.60086143",
"0.60047525",
"0.60036874",
"0.59903926",
"0.59890425",
"0.5984343",
"0.59755725",
"0.5972181",
"0.5970739",
"0.5969685",
"0.5968362",
"0.5961577",
"0.59605443",
"0.5959766",
"0.5959199",
"0.59548956",
"0.59475714",
"0.5945109",
"0.59445965",
"0.59445965"
] | 0.0 | -1 |
Returns the display name to be used for this provider. | private static String getItemDisplayName(
ProtocolProviderService provider)
{
if(ConfigurationUtils.isAutoAnswerDisableSubmenu())
return GuiActivator.getResources()
.getI18NString("service.gui.AUTO_ANSWER")
+ " - " + provider.getAccountID().getDisplayName();
else
return provider.getAccountID().getDisplayName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getDisplayName();",
"java.lang.String getDisplayName();",
"java.lang.String getDisplayName();",
"java.lang.String getDisplayName();",
"java.lang.String getDisplayName();",
"java.lang.String getDisplayName();",
"public String getDisplayName()\n {\n return getString(\"DisplayName\");\n }",
"String displayName();",
"String displayName();",
"String getDisplay_name();",
"public String getDisplayName() {\n\t\treturn displayName.get();\n\t}",
"String getDisplayName();",
"String getDisplayName();",
"String getDisplayName();",
"String getDisplayName();",
"String getDisplayName();",
"String getDisplayName();",
"public String getDisplayName() {\n return DISPLAY_NAME;\n }",
"public String getDisplayName() {\n return this.displayname;\n }",
"@NonNull\n String getDisplayName();",
"@Override\n\tpublic String getDisplayName() {\n\t\treturn getGivenName() + \" \" + getFamilyName();\n\t}",
"public String getDisplayName();",
"public String getDisplayName();",
"public String getDisplayName();",
"public String getDisplayName();",
"public String displayName() {\r\n\t\tString name = \"Unknown\";\r\n\t\tif(EUR.equals(this)) {\r\n\t\t\tname = \"Europe\";\r\n\t\t} else if(JPN.equals(this)) {\r\n\t\t\tname = \"Japan\";\r\n\t\t} else if(USA.equals(this)) {\r\n\t\t\tname = \"USA\";\r\n\t\t} else if(KOR.equals(this)) {\r\n\t\t\tname = \"Korea\";\r\n\t\t}\r\n\t\treturn name;\r\n\t}",
"@Nonnull\r\n String getDisplayName();",
"@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}",
"@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}",
"public java.lang.String getDisplayName() {\n return this._displayName;\n }",
"public String getDisplayName() {\n return displayName;\n }",
"public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getDisplayName() {\r\n\t\treturn displayName;\r\n\t}",
"public String getDisplayName () {\n return displayName;\n }",
"public String getDisplayName () {\n return displayName;\n }",
"public String getDisplayName() {\n return _displayName;\n }",
"public String getDisplayName() {\n return displayName;\n }",
"public String getDisplayName() {\n return displayName;\n }",
"public String getDisplayName() {\n return displayName;\n }",
"public String getDisplayName() {\n return displayName;\n }",
"public String getDisplayName() {\n return displayName;\n }",
"public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getDisplayName()\n {\n return m_strDisplayName;\n }",
"public String getDisplayName() {\n return this.displayName;\n }",
"public String getDisplayName() {\n return this.displayName;\n }",
"public String getName() { return displayName; }",
"@java.lang.Override\n public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n }\n }",
"public String getDisplayName() {\n\t\treturn displayName;\n\t}",
"public String getDisplayName() {\n\t\treturn displayName;\n\t}",
"public String getDisplayName() {\n\t\treturn displayName;\n\t}",
"public String getDisplayName() {\n\t\treturn displayName;\n\t}",
"public String getDisplayName() {\n\t\treturn displayName;\n\t}",
"public String getDisplayName()\n {\n return displayName;\n }",
"public String getDisplayName()\n {\n return displayName;\n }",
"public String getDisplayName() {\n return this.displayName;\n }",
"@java.lang.Override\n public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n }\n }",
"default String getDisplayName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}",
"public String getDisplayName() {\n if (!TextUtils.isEmpty(mDisplayName)) {\n return mDisplayName;\n }\n if (isVoicemail()) {\n return mContext.getResources().getString(R.string.voicemail);\n } else {\n String displayName = TelecomUtils.getFormattedNumber(mContext, mNumber);\n if (TextUtils.isEmpty(displayName)) {\n displayName = mContext.getString(R.string.unknown);\n }\n return displayName;\n }\n }",
"@Override\n public String getDisplayName() {\n\n return Messages.displayName();\n }",
"public String displayName()\n {\n return displayName;\n }",
"public String displayName() {\n return this.displayName;\n }",
"public String displayName() {\n return this.displayName;\n }",
"public String getDisplayName () {\n return impl.getDisplayName ();\n }",
"public String getDisplayName() {\n return mDisplayName;\n }",
"public String getDisplayName() {\n return mDisplayName;\n }",
"public String getStrdisplayname() {\n return strdisplayname;\n }",
"@NotNull\n String getDisplayName();",
"@NotNull\n public String getDisplayName() {\n return this.displayName;\n }",
"@Nullable\n public String getDisplayName() {\n return mProto.displayName;\n }",
"public String getDisplayName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getDisplayName ).orElse ( name );\n\t}",
"@Override\n public String getDisplayName() {\n return this.name;\n }",
"String realmDisplayName();",
"public Optional<String> getDisplayName() {\n return Optional.ofNullable(displayName);\n }",
"public static String getUserDisplayName() {\r\n return getUsername();\r\n }",
"@Override // com.android.server.wm.ConfigurationContainer\n public String getName() {\n return \"Display \" + this.mDisplayId + \" name=\\\"\" + this.mDisplayInfo.name + \"\\\"\";\n }",
"@ApiModelProperty(value = \"Display name formatted like lastname, Givenname initials\")\n public String getDisplayName() {\n return displayName;\n }",
"@Override\n\tpublic String getDisplayName() {\n\t\treturn null;\n\t}",
"String getCurrentUserDisplayName() throws Exception;",
"public String getDisplayName() {\n return typeElement.getQualifiedName().toString();\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getDisplayNameBytes() {\n java.lang.Object ref = displayName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n displayName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getDisplayNameBytes() {\n java.lang.Object ref = displayName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n displayName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getProviderName() {\n java.lang.Object ref = providerName_;\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 providerName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getDisplayNameBytes() {\n java.lang.Object ref = displayName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n displayName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getDisplayText()\n {\n return (getName().length() > 0) ? getName() : \"Neuer Diätplan\";\n }",
"public com.google.protobuf.ByteString getDisplayNameBytes() {\n java.lang.Object ref = displayName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n displayName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getDisplayName() {\n return Messages.JobProfiles_displayName();\n }",
"public String getDisplayName() {\n Logger.d(TAG, \"getDisplayName() entry, mIsGroupChat is \"\n + mIsGroupChat);\n if (mIsGroupChat) {\n return getGroupDisplayName();\n } else {\n return getOne2OneDisplayName();\n }\n }",
"public String getDisplayName() {\n Logger.d(TAG, \"getDisplayName() entry mKey is \" + mKey\n + \"Display name is\" + mSubject);\n return mSubject;\n }",
"public final java.lang.String getDisplayName() { throw new RuntimeException(\"Stub!\"); }",
"public java.lang.String getProviderName() {\n java.lang.Object ref = providerName_;\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 providerName_ = s;\n return s;\n }\n }",
"public String getDisplayName() {\n // The ID is deliberately kept in a pretty user-readable format but we could\n // consider prepending layout/ on ids that don't have it (to make the display\n // more uniform) or ripping out all layout[-constraint] prefixes out and\n // instead prepending @ etc.\n return mId;\n }",
"@Override\n public String getProviderName() {\n return mDeveloperProvider;\n }",
"public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }",
"public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }",
"public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }",
"public static String getDisplayName(String shortName) {\r\n return getDisplayName(shortName,\r\n ArchetypeServiceHelper.getArchetypeService());\r\n }",
"public String getDisplayName() {\n return configName;\n }",
"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}"
] | [
"0.8238646",
"0.8238646",
"0.8238646",
"0.8238646",
"0.8238646",
"0.8238646",
"0.8063449",
"0.80172664",
"0.80172664",
"0.8002272",
"0.795431",
"0.79166037",
"0.79166037",
"0.79166037",
"0.79166037",
"0.79166037",
"0.79166037",
"0.79001653",
"0.77790403",
"0.7768028",
"0.7759277",
"0.7739563",
"0.7739563",
"0.7739563",
"0.7739563",
"0.7714748",
"0.76788044",
"0.76454383",
"0.76454383",
"0.7644259",
"0.7631301",
"0.76226014",
"0.7614138",
"0.76063746",
"0.76063746",
"0.76023084",
"0.7581295",
"0.7581295",
"0.7581295",
"0.75798225",
"0.75797796",
"0.75687695",
"0.75687695",
"0.7568661",
"0.7566366",
"0.7566366",
"0.75651455",
"0.7560932",
"0.7557264",
"0.7557264",
"0.7557264",
"0.7557264",
"0.7557264",
"0.75493115",
"0.75493115",
"0.75448674",
"0.74849606",
"0.74849606",
"0.74758625",
"0.7443218",
"0.7428095",
"0.74200445",
"0.74124247",
"0.74124247",
"0.7407273",
"0.7398419",
"0.73800695",
"0.73343176",
"0.7325137",
"0.73089164",
"0.73060685",
"0.730195",
"0.7300091",
"0.7260561",
"0.72391886",
"0.7148047",
"0.7125784",
"0.71049964",
"0.7092038",
"0.7024075",
"0.69807345",
"0.69589496",
"0.69589496",
"0.6955875",
"0.69461393",
"0.689477",
"0.68843526",
"0.68710774",
"0.6869008",
"0.68468386",
"0.68466955",
"0.6844917",
"0.6831806",
"0.68181604",
"0.6808559",
"0.6808559",
"0.6808559",
"0.67975426",
"0.6792103",
"0.67870176"
] | 0.68505484 | 89 |
A bug in macosx leaking instances of Menu and MenuItems, we prevent leaking Protocol Providers. | public void clear()
{
providerService = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected MenuManager createMenuManager() {\n\t\treturn null;\n\t}",
"public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivator.bundleContext\n .addServiceListener(protocolProviderListener);\n }\n\n for (ProtocolProviderFactory providerFactory : GuiActivator\n .getProtocolProviderFactories().values())\n {\n for (AccountID accountID : providerFactory.getRegisteredAccounts())\n {\n ServiceReference<ProtocolProviderService> serRef\n = providerFactory.getProviderForAccount(accountID);\n ProtocolProviderService protocolProvider\n = GuiActivator.bundleContext.getService(serRef);\n\n addAccountInternal(protocolProvider, parentMenu);\n }\n }\n\n // if we are in disabled menu mode and we have only one item\n // change its name (like global auto answer)\n if( ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }",
"private MenuManager() {\r\n\r\n\t\t\tmenubar = new Menu(shell, SWT.BAR);\r\n\t\t\tshell.setMenuBar(menubar);\r\n\t\t}",
"protected AccessibleAWTMenuComponent() {\n }",
"public void test_setMenuLorg_eclipse_swt_widgets_Menu () {\n\tcontrol.setMenu(null);\n\n\tMenu m = new Menu(control);\n\tcontrol.setMenu(m);\n\tassertEquals(m, control.getMenu());\n}",
"@Override\r\n\tprotected MenuManager createMenuManager() {\r\n\t\tMenuManager menuManager = new MenuManager(\"menu\");\r\n\t\treturn menuManager;\r\n\t}",
"public void refreshMenu() {\n ObservableList list = FXCollections.observableArrayList();\n FileParser_Interface[] parsers = {new FileParser_DHCPnetworks(), new FileParser_RouterVlanNetwork(), new FileParser_SwitchConfigs(), new FileParser_VlanTagsOther()};\n list.addAll(Arrays.asList(parsers));\n this.setItems(list);\n //this.getSelectionModel().selectFirst(); // causes NullPointerExceptions when used, thou are warned\n this.setConverter(new ParserConverter());\n }",
"@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}",
"@Test\n public void testMenuFactoryRemove() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n menuController.removeMenuItem(1);\n assertEquals(0, menuController.getMenu().size());\n }",
"protected MenuTools() {\r\n\t\tthis(null);\r\n\t}",
"public MenuService() {\n\t\tnew DisplayMenu();\n\t}",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"protected void closeContainer() {\n/* 507 */ this.containerMenu = (AbstractContainerMenu)this.inventoryMenu;\n/* */ }",
"private void voltarMenu() {\n\t\tmenu = new TelaMenu();\r\n\t\tmenu.setVisible(true);\r\n\t\tthis.dispose();\r\n\t}",
"public void setMenuHook(java.awt.Menu menu);",
"private void createMenusNow()\n {\n JMenu debugMenu = myToolbox.getUIRegistry().getMenuBarRegistry().getMenu(MenuBarRegistry.MAIN_MENU_BAR,\n MenuBarRegistry.DEBUG_MENU);\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Print Summary\", e -> printSummary()));\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Tag Data Type\", e -> tagDataType()));\n }",
"public AbstractMenu(MenuLoader menuLoader) \r\n\t{}",
"public void initMenu(){\n\t}",
"private void setupMenuItems() {\n\t\taboutMenu.setOnAction(event -> {\n\t\t\tAnchorPane root;\n\t\t\ttry {\n\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"about.fxml\"));\n\n\t\t\t\tStage stage = new Stage();\n\t\t\t\tstage.setScene(new Scene(root));\n\t\t\t\tstage.setTitle(\"About\");\n\t\t\t\tstage.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Error loading About Window - \" + e.getMessage());\n\t\t\t}\n\t\t});\n\n\t\texitMenu.setOnAction(event -> {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPlatform.exit();\n\t\t\t\t\tlog.debug(\"Window closed\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tloadMenu.setOnAction(event -> loadFile(true));\n\n\t\tsaveMenu.setOnAction(event -> Main.serializeItems());\n\n\t\tgroupByMenu.setOnAction(event -> {\n\t\t\tOptional<String> sortOption = Alerter.getChoiceDialog(\"Sorting\", null, \"Select how you want to group: \");\n\t\t\tsortOption.ifPresent(letter -> groupItems(letter));\n\t\t});\n\n\t\tupdateAllMenu.setOnAction(event -> {\n\t\t\tnew Thread(new Task<Void>() {\n\t\t\t\t@Override\n\t\t\t\tprotected Void call() throws Exception {\n\t\t\t\t\tlog.debug(\"UpdateAll Thread Triggered\");\n\n\t\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\t\tupdateItem(b);\n\t\t\t\t\t});\n\n\t\t\t\t\tupdateList();\n\t\t\t\t\tMain.serializeItems();\n\n\t\t\t\t\tlog.debug(\"UpdateAll Thread terminated successfully\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}).start();\n\t\t});\n\n\t\tupdateMenu.setOnAction(event -> {\n\t\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\t\t\t\tupdateItem(itemBox);\n\t\t\t} else {\n\t\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"No Item selected\", null,\n\t\t\t\t\t\t\"Please select the Item you want to update!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\tlog.debug(\"Info Popup triggered, No item selected\");\n\t\t\t}\n\t\t});\n\n\t\tdeleteMenu.setOnAction(event -> {\n\t\t\tItemBox rem = itemsMap.remove(listView.getSelectionModel().getSelectedItem().getGtin());\n\t\t\tlog.info(\"Item: \" + rem.getName() + \" removed\");\n\t\t\tupdateList();\n\t\t});\n\n\t\trepeatMenu.setOnAction(event -> {\n\t\t\tif (lastCommand != null) {\n\t\t\t\tString[] props = lastCommand.split(\" \");\n\t\t\t\tlog.info(\"Repeat called with: \" + lastCommand);\n\n\t\t\t\tswitch (props[0]) {\n\t\t\t\tcase \"ADD\":\n\t\t\t\t\taddItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RM\":\n\t\t\t\t\tremoveItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tprintMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.OVERVIEW);\n\t\t});\n\n\t\tprintShoppingMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.SHOPPING);\n\t\t});\n\n\t}",
"private static void submenu() {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"private void initializeContextMenus() {\n\t\tinitializeMenuForListView();\n\t\tinitializeMenuForPairsListView();\n\t}",
"@RunOnDispatch\n public void reset() {\n FileMenu.instance.reset();\n EditMenu.instance.reset();\n GoMenu.instance.reset();\n ToolsMenu.instance.reset();\n PaintMenu.instance.reset();\n OptionsMenu.instance.reset();\n ObjectsMenu.instance.reset();\n FontMenu.instance.reset();\n StyleMenu.instance.reset();\n WindowsMenu.instance.reset();\n\n // Reset menus in the menu bar\n removeAll();\n add(FileMenu.instance);\n add(EditMenu.instance);\n add(GoMenu.instance);\n add(ToolsMenu.instance);\n add(PaintMenu.instance);\n add(OptionsMenu.instance);\n add(ObjectsMenu.instance);\n add(FontMenu.instance);\n add(StyleMenu.instance);\n add(WindowsMenu.instance);\n }",
"protected abstract void addMenuOptions();",
"public void clearMenuItems() {\n menuItemNames.clear();\n menuItemPrices.clear();\n }",
"private PSContentTypeActionMenuHelper(){}",
"public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}",
"interface UiBinderInstance extends UiBinder<Widget, Menu> {\r\n\t\t// Nothing to do\r\n\t}",
"private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }",
"private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }",
"private void initializeMenuForPairsListView() {\n\t\tMenuItem deleteItem = new MenuItem(labels.get(Labels.PROP_INFO_REMOVE_MENU));\n\t\tdeleteItem.setOnAction(event ->\n\t\t\t\tremoveSelectedAction()\n\t\t);\n\t\tpairsListView.setContextMenu(new ContextMenu(deleteItem));\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void init(JMenuBar menu, PSRelationshipInfoSet relationshipSet)\n {\n \n setLayout(new BoxLayout(this, BoxLayout.X_AXIS));\n PSDisplayOptions dispOptions =\n (PSDisplayOptions)UIManager.getDefaults().get(\n PSContentExplorerConstants.DISPLAY_OPTIONS);\n PSFocusBorder focusBorder = new PSFocusBorder(1, dispOptions);\n \n if(m_view.equals(PSUiMode.TYPE_VIEW_DT))\n {\n m_contentItem = new PSLocator(\n m_applet.getParameter(PSContentExplorerConstants.PARAM_CONTENTID),\n m_applet.getParameter(PSContentExplorerConstants.PARAM_REVISIONID));\n\n JPanel rsPanel = new JPanel();\n rsPanel.setLayout(new BoxLayout(rsPanel, BoxLayout.X_AXIS));\n JLabel rsLabel = new JLabel(\n m_applet.getResourceString(\n getClass().getName() + \"@Relationship:\"),\n SwingConstants.LEFT);\n rsLabel.setFocusable(true); \n char mnemonic = PSContentExplorerApplet.getResourceMnemonic(\n getClass(), \"Relationship:\", 'R');\n \n rsPanel.add(rsLabel);\n rsPanel.add(makeFillerOpaque(Box.createHorizontalStrut(5)));\n \n m_rsCombo = new JComboBox();\n rsLabel.setLabelFor(m_rsCombo); // Associate label with combobox\n if (mnemonic != 0) {\n rsLabel.setDisplayedMnemonic(mnemonic);\n } \n focusBorder.addToComponent(m_rsCombo, false);\n m_rsCombo.setRenderer(new DefaultListCellRenderer()\n {\n @Override\n public Component getListCellRendererComponent(\n JList list,\n Object value,\n int index,\n boolean isSelected,\n boolean cellHasFocus\n )\n {\n super.getListCellRendererComponent(list, value, index,\n isSelected, cellHasFocus);\n if(value instanceof PSRelationshipInfo)\n {\n PSRelationshipInfo relInfo = (PSRelationshipInfo)value;\n setText(m_applet.getResourceString(\n \"psx.\" + PSConfigurationFactory.RELATIONSHIPS_CFG + \".\" +\n relInfo.getName() + \"@\" + relInfo.getLabel()));\n }\n return this;\n }\n }\n );\n m_rsCombo.setPreferredSize(new Dimension(180,20));\n m_rsCombo.setMinimumSize(new Dimension(180,20));\n m_rsCombo.setMaximumSize(new Dimension(180,20));\n m_rsCombo.addItemListener(this);\n \n \n Iterator<PSRelationshipInfo> relationships = \n relationshipSet.getComponents();\n List<PSRelationshipInfo> orderedRels = \n new ArrayList<PSRelationshipInfo>();\n if(!relationships.hasNext())\n throw new IllegalStateException(\"No relationships found\");\n while (relationships.hasNext())\n {\n orderedRels.add(relationships.next());\n }\n Collections.sort(orderedRels, new Comparator<PSRelationshipInfo>()\n {\n /**\n * Order by label, ascending.\n */\n public int compare(PSRelationshipInfo o1, PSRelationshipInfo o2)\n {\n String l1 = o1.getLabel();\n String l2 = o2.getLabel();\n return l1.compareToIgnoreCase(l2);\n }\n });\n\n String relName = m_applet.getParameter(\n PSContentExplorerConstants.PARAM_RELATIONSHIP_NAME);\n if (relName == null)\n relName = StringUtils.EMPTY;\n relationships = orderedRels.iterator();\n while(relationships.hasNext())\n {\n PSRelationshipInfo relInfo = relationships.next();\n \n m_rsCombo.addItem(relInfo);\n \n if (relInfo.getName().equalsIgnoreCase(relName))\n {\n m_rsCombo.setSelectedItem(relInfo);\n }\n }\n \n rsPanel.add(m_rsCombo);\n\n add(rsPanel);\n\n if(menu != null)\n {\n menu.setAlignmentY(CENTER_ALIGNMENT);\n menu.setBorderPainted(false);\n add(menu);\n }\n\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new BoxLayout(labelPanel, BoxLayout.X_AXIS));\n labelPanel.setAlignmentY(CENTER_ALIGNMENT);\n\n JLabel label = new JLabel(\n m_applet.getResourceString(\n getClass().getName() + \"@Content Item:\"));\n label.setIcon(PSImageIconLoader.loadIcon(\n CONTENT_PATH_SEPARATOR_ICON, false, m_applet));\n label.setFocusable(true);\n labelPanel.add(label);\n labelPanel.add(makeFillerOpaque(Box.createHorizontalStrut(5)));\n \n PSNameLabel nameLabel = new PSNameLabel();\n nameLabel.setText(\n m_applet.getParameter(PSContentExplorerConstants.PARAM_ITEM_TITLE));\n \n label.setLabelFor(nameLabel);\n \n labelPanel.add(nameLabel);\n labelPanel.add(makeFillerOpaque(Box.createHorizontalGlue()));\n add(makeFillerOpaque(Box.createHorizontalStrut(15)));\n add(labelPanel);\n \n }\n else\n {\n if(menu != null)\n {\n menu.setAlignmentY(CENTER_ALIGNMENT);\n menu.setBorderPainted(false); \n add(menu);\n \n }\n\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new BoxLayout(labelPanel, BoxLayout.X_AXIS));\n labelPanel.setAlignmentY(CENTER_ALIGNMENT);\n labelPanel.setVisible(true);\n labelPanel.setFocusTraversalKeysEnabled(true);\n \n \n JLabel label = new JLabel(\n m_applet.getResourceString(\n getClass().getName() + \"@Content Path:\") + \" \");\n label.setIcon(PSImageIconLoader.loadIcon(\n CONTENT_PATH_SEPARATOR_ICON, false, m_applet));\n \n labelPanel.add(label);\n\n //Make the path text field as not edit able We need the text field \n // rather the label, so that we can copy from that field\n \n m_pathLabelField.setOpaque(false);\n \n \n labelPanel.add(m_pathLabelField);\n label.setLabelFor(m_pathLabelField);\n \n \n // add refresh button\n Icon refreshIcon = PSImageIconLoader.loadIcon(REFRESH_ICON, false, m_applet); \n m_refreshButton = new JButton(refreshIcon);\n Dimension buttonSize = new Dimension(refreshIcon.getIconWidth() + 5, \n refreshIcon.getIconHeight() + 5);\n m_refreshButton.setPreferredSize(buttonSize);\n m_refreshButton.setMaximumSize(buttonSize);\n m_refreshButton.setMinimumSize(buttonSize);\n m_refreshButton.setVisible(true);\n m_refreshButton.setBorder(focusBorder);\n m_refreshButton.getAccessibleContext().setAccessibleName(\n \"Click to refresh selected node in the navigation pane\");\n m_refreshButton.getAccessibleContext().setAccessibleDescription(\n \"Click to refresh selected node in the navigation pane description\");\n final PSMenuAction refreshAction = new PSMenuAction(\n IPSConstants.ACTION_REFRESH, \"refresh\");\n String tooltip = m_applet.getResourceString(getClass(),\n \"@Refresh View\");\n m_refreshButton.setToolTipText(tooltip);\n m_refreshButton.addActionListener(new ActionListener()\n {\n public void actionPerformed(\n @SuppressWarnings(\"unused\") ActionEvent e)\n {\n if (m_navSelection != null)\n m_applet.getActionManager().executeAction(refreshAction, \n m_navSelection);\n }\n });\n \n labelPanel.add(makeFillerOpaque(Box.createHorizontalGlue()));\n \n // add search results label\n m_resultsLabel.setVisible(false);\n labelPanel.add(m_resultsLabel);\n\n // add refresh button\n labelPanel.add(m_refreshButton);\n labelPanel.add(makeFillerOpaque(Box.createHorizontalStrut(10)));\n \n add(makeFillerOpaque(Box.createHorizontalStrut(15))); \n add(labelPanel);\n }\n }",
"public java.awt.Menu getMenuHook();",
"public void onMenuNew() {\n handleMenuOpen(null);\n }",
"@Override\n protected void hookContextMenu() {\n\n }",
"private void updateMenu() {\n if(customMenu || !menuDirty) {\n return;\n }\n \n // otherwise, reset up the menu.\n menuDirty = false;\n menu.removeAll();\n Icon emptyIcon = null; \n for(Action action : actions) {\n if(action.getValue(Action.SMALL_ICON) != null) {\n emptyIcon = new EmptyIcon(16, 16);\n break;\n }\n }\n \n selectedComponent = null;\n selectedLabel = null;\n \n for (Action action : actions) {\n \n // We create the label ourselves (instead of using JMenuItem),\n // because JMenuItem adds lots of bulky insets.\n\n ActionLabel menuItem = new ActionLabel(action);\n JComponent panel = wrapItemForSelection(menuItem);\n \n if (action != selectedAction) {\n panel.setOpaque(false);\n menuItem.setForeground(UIManager.getColor(\"MenuItem.foreground\"));\n } else {\n selectedComponent = panel;\n selectedLabel = menuItem;\n selectedComponent.setOpaque(true);\n selectedLabel.setForeground(UIManager.getColor(\"MenuItem.selectionForeground\"));\n }\n \n if(menuItem.getIcon() == null) {\n menuItem.setIcon(emptyIcon);\n }\n attachListeners(menuItem);\n decorateMenuComponent(menuItem);\n menuItem.setBorder(BorderFactory.createEmptyBorder(0, 6, 2, 6));\n\n menu.add(panel);\n }\n \n if (getText() == null) {\n menu.add(Box.createHorizontalStrut(getWidth()-4));\n } \n \n for(MenuCreationListener listener : menuCreationListeners) {\n listener.menuCreated(this, menu);\n }\n }",
"public IOMenuHandler(IOMenu menu) {\r\n this.menu = menu;\r\n }",
"private static void returnMenu() {\n\t\t\r\n\t}",
"public interface IMenu {\r\n public class MenuItem {\r\n \r\n public static final MenuItem SEPARATOR = new MenuItem(\"SEPARATOR\", \"Separator\");\r\n \r\n private String menuId;\r\n private String menuText;\r\n private boolean checked;\r\n \r\n public MenuItem(String menuId, String menuText) {\r\n this.menuId = menuId;\r\n this.menuText = menuText;\r\n }\r\n\r\n public MenuItem(String menuText, boolean checked) {\r\n this.menuText = menuText; \r\n this.checked = checked;\r\n }\r\n\r\n public String getMenuId() {\r\n return menuId;\r\n }\r\n\r\n public void setMenuId(String menuId) {\r\n this.menuId = menuId;\r\n }\r\n\r\n public String getMenuText() {\r\n return menuText;\r\n }\r\n\r\n public void setMenuText(String menuText) {\r\n this.menuText = menuText;\r\n }\r\n\r\n public boolean isChecked() {\r\n return checked;\r\n }\r\n\r\n public void setChecked(boolean checked) {\r\n this.checked = checked;\r\n }\r\n }\r\n \r\n /**\r\n * Callback function for Caller when the MenuItem is clicked\r\n * \r\n * @param menuItemSelected The selected MenuItem\r\n */\r\n public void menuClicked(MenuItem menuItemSelected);\r\n}",
"@Test\n public void testMenuFactoryCreate() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n assertEquals(1, menuController.getMenu().size());\n }",
"public void goBackToMainMenu() {\n new MainMenu();\n dispose();\n }",
"public void unLoad() {\n try{\n deInitialize();\n iMenu.unLoad();\n }catch(Exception e){\n Logger.loggerError(\"Menu canvas unload Error\"+e.toString());\n }\n }",
"public void remove() {\n/* 1379 */ super.remove();\n/* 1380 */ this.inventoryMenu.removed(this);\n/* 1381 */ if (this.containerMenu != null) {\n/* 1382 */ this.containerMenu.removed(this);\n/* */ }\n/* */ }",
"private void fixMenus() {\n\t\tfixFileOption();\n\t\tfixDelayOption();\n\t\tfixFormatOption();\n\t\tfixHelpOption();\n\t\t\n\t}",
"public NoInputRefactoringListener(JPopupMenu initMenu, JMenuItem initItem) {\r\n super(initMenu, initItem);\r\n }",
"private void removeOldMouseGrabber() {\n Object oldLogger = ReflectionUtil.changeIllegalAccessLogger(null);\n AppContext context = AppContext.getAppContext();\n try {\n Field field = BasicPopupMenuUI.class.getDeclaredField(\"MOUSE_GRABBER_KEY\");\n field.setAccessible(true);\n Object value = field.get(null);\n Object mouseGrabber = context.get(value);\n if (mouseGrabber != null) {\n Method method = mouseGrabber.getClass().getDeclaredMethod(\"uninstall\");\n method.setAccessible(true);\n method.invoke(mouseGrabber);\n }\n context.put(value, null);\n } catch (NoSuchFieldException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {\n e.printStackTrace();\n } finally {\n ReflectionUtil.changeIllegalAccessLogger(oldLogger);\n }\n }",
"public Menu createToolsMenu();",
"public void menuItemHasChanged(Object sender, MenuItem item) {\n // Called every time any menu item changes\n }",
"public void mo21810a(Menu menu, MenuInflater menuInflater) {\n }",
"@Override\n\t\tpublic void closeMenu() {\n\t\t}",
"public static void setUpMenuItems( JMenu Menuu , JDataTree tree , \n IObserver IOBs ){\n \n int nSavedFiles = SharedData.getintProperty( \"NSavedFiles\",\"\"+NSavedFiles);\n if(nSavedFiles <=0)\n return;\n Preferences pref = null;\n try{\n pref = Preferences.userNodeForPackage( \n Class.forName( \"DataSetTools.retriever.Retriever\" ) );\n }catch( Exception s1 ){\n JOptionPane.showMessageDialog( null , \n \"No Preferences \" + s1 );\n return;\n }\n \n \n \n boolean shortMange = SharedData.getbooleanProperty(\"ShortSavedFileName\",\"false\");\n if( nSavedFiles > 0)\n Menuu.addSeparator();\n \n for( int i = 0 ; i < nSavedFiles ; i++ ){\n\n String filname = pref.get( \"File\" + i , NO_SUCH_FILE );\n \n if( (filname != NO_SUCH_FILE) &&( (new File(filname)).exists()) ){\n\n JMenuItem jmi = new JMenuItem( Mangle( filname,shortMange ) );\n Menuu.add( jmi );\n MyActionListener actList =new MyActionListener( tree , filname , \n IOBs ) ;\n jmi.addActionListener(actList );\n }\n }\n \n }",
"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}",
"private void bind() \r\n\t{\r\n\t\tsuper.menuPut(\"list\", newJMenu(\"List\", 'L'));\r\n\t\tsuper.menuPut(\"list/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionNew(x));\r\n\t\tsuper.menuPut(\"list/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionLoad(x));\r\n\t\tsuper.menuPut(\"list/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionSave(x));\r\n\t\tsuper.menuPut(\"list/***1\", \"\");\r\n\t\tsuper.menuPut(\"list/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionAdd(x));\r\n\t\tsuper.menuPut(\"list/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionRemove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"tree\", newJMenu(\"Tree\", 'T'));\r\n\t\tsuper.menuPut(\"tree/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK), x -> menuEdit.actionNew(x));\r\n\t\tsuper.menuPut(\"tree/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK), x -> menuEdit.actionLoad(x));\r\n\t\tsuper.menuPut(\"tree/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK), x -> menuEdit.actionSave(x));\r\n\t\tsuper.menuPut(\"tree/***1\", \"\");\r\n\t\tsuper.menuPut(\"tree/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK), x -> menuEdit.actionAdd(x));\r\n\t\tsuper.menuPut(\"tree/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK), x -> menuEdit.actionRemove(x));\r\n\t\tsuper.menuPut(\"tree/move\", newJMenuItem(\"Move\", 'V', KeyEvent.VK_6, ActionEvent.SHIFT_MASK), x -> menuEdit.actionMove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"graph\", newJMenu(\"Graph\", 'G'));\r\n\t\tsuper.menuPut(\"graph/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.CTRL_MASK), x -> menuHelp.actionNew(x));\r\n\t\tsuper.menuPut(\"graph/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.CTRL_MASK), x -> menuHelp.actionOpen(x));\r\n\t\tsuper.menuPut(\"graph/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.CTRL_MASK), x -> menuHelp.actionSave(x));\r\n\t\tsuper.menuPut(\"graph/***1\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-node\", newJMenuItem(\"Add node\", 'A', KeyEvent.VK_4, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddNode(x));\r\n\t\tsuper.menuPut(\"graph/remove-node\", newJMenuItem(\"Remove node\", 'R', KeyEvent.VK_5, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveNode(x));\r\n\t\tsuper.menuPut(\"graph/move-node\", newJMenuItem(\"Move node\", 'V', KeyEvent.VK_6, ActionEvent.CTRL_MASK), x -> menuHelp.actionMoveNode(x));\r\n\t\tsuper.menuPut(\"graph/***2\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-link\", newJMenuItem(\"Add link\", 'D', KeyEvent.VK_7, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddLink(x));\r\n\t\tsuper.menuPut(\"graph/remove-link\", newJMenuItem(\"Remove link\", 'L', KeyEvent.VK_8, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveLink(x));\r\n\t\t\r\n\t\tsuper.menuDump();\t\t\r\n\t}",
"public Menu createViewMenu();",
"@Test\n public void testMenuFactoryGetMenuItem() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n assertEquals(MENU_NAME, menuController.getMenuItem(1).getName());\n assertEquals(MENU_DESCRIPTION, menuController.getMenuItem(1).getDescription());\n assertEquals(MENU_PRICE, menuController.getMenuItem(1).getPrice());\n }",
"public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }",
"@Override\n public void onPrepareOptionsMenu(Menu menu) {\n if (mShowOptionsMenu && ViewConfiguration.get(getActivity()).hasPermanentMenuKey() &&\n isLayoutReady() && mDialpadChooser != null) {\n setupMenuItems(menu);\n }\n }",
"void invokeAppLogic(IMenu fromMenu);",
"AutoAnswerMenuItem(ProtocolProviderService provider,\n SIPCommMenu parentMenu)\n {\n this(provider,\n getItemDisplayName(provider),\n getIconForProvider(provider, null, parentMenu),\n parentMenu);\n }",
"public void createSwitchButtonPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t}",
"public interface Menu {\n\n /**\n * Add an item to the menu.\n *\n * @param title Title of the item (which will be interpreted as plain text and\n * HTML-escaped if necessary)\n * @param callback Code to execute when the item is selected\n * @return A MenuItem representing the added item\n */\n MenuItem addItem(String title, Command callback);\n\n /**\n * Add an item to the menu.\n *\n * @param title Title of the item, as a {@link SafeHtml}\n * @param callback Code to execute when the item is selected\n * @return A MenuItem representing the added item\n */\n MenuItem addItem(SafeHtml title, Command callback);\n}",
"@Test\n public void testSetMenuFactoryRemoveSetMenuItem() {\n SetMenu setMenuController = setMenuFactory.getSetMenu();\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n ArrayList<MenuItem> menuItems = new ArrayList<>();\n menuItems.add(menuController.getMenuItem(1));\n setMenuController.addSetItem(\"Test Set\", 5.0, 1, menuItems);\n setMenuController.removeSetItem(1);\n assertEquals(0, setMenuController.getSetMenu().size());\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n\n // MyApp myApp = MyApp.getInstance();\n\n MenuItem item = menu.findItem(R.id.action_matches);\n item.setVisible(false);\n\n return true;\n }",
"public ObjectFactoryMenu() {\n }",
"@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean prepareOptionsMenu = true;\n\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->onPrepareOptionsMenu\");\n\t\tif (isGBOrLower) {\n\t\t\tmenu.clear();\n\t\t\tmenu.clear();\n\t\t\t// Need to add menu options only once and need to update menu\n\t\t\t// items\n\t\t\t// only\n\t\t\t// when a notification 'APP_NOTIFY_CREATE_MENU' has been\n\t\t\t// received\n\n\t\t\t// New implementation based on the JSON structure of the menu\n\t\t\t// information for each controller.\n\n\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->onPrepareOptionsMenu->menuInformation:\" + menuInformation);\n\t\t\tif (menuInformation != null && menuInformation.length() > 0) {\n\t\t\t\tprepareOptionsMenu = addMenuItemsToScreen(menu, menuInformation);\n\t\t\t}\n\t\t}\n\t\treturn prepareOptionsMenu;\n\n\t}",
"public Menu getMenu() { return this.menu; }",
"private static JMenuBar menuMaker(){\n final JMenuBar menuBar = new JMenuBar();\n final JMenu menu = new JMenu(\"App\");\n menuBar.add(menu);\n menu.addSeparator();\n final JMenuItem menuItem;\n (menuItem = new JMenuItem(\"Exit\", 88)).addActionListener(p0 -> System.exit(0));\n menu.add(menuItem);\n final JMenu menu2;\n (menu2 = new JMenu(\"Item\")).setMnemonic(73);\n menuBar.add(menu2);\n menu2.addSeparator();\n final JMenu menu3 = new JMenu(\"Selected\");\n menu2.add(menu3);\n menu3.addSeparator();\n\n return menuBar;\n }",
"public interface MenuDelegate {\n\t\n\tpublic abstract void didPressBackButton();\n\tpublic abstract void didPressLoadButton();\n\tpublic abstract void didPressSaveButton();\n\tpublic abstract void didPressReturnMain();\n\t\n}",
"public interface MenuNames {\n public static final String FILE = I18N.get(\"ui.MenuNames.FILE\");\n public static final String FILE_NEW = I18N.get(\"ui.MenuNames.FILE.NEW\");\n public static final String FILE_SAVEVIEW = I18N.get(\"ui.MenuNames.FILE.SAVEVIEW\");\n public static final String EDIT = I18N.get(\"ui.MenuNames.EDIT\");\n public static final String TOOLS_EDIT_ATTRIBUTES = I18N.get(\"ui.MenuNames.EDIT\") + \" \" + I18N.get(\"ui.MenuNames.ATTRIBUTS\");\n public static final String TOOLS_EDIT_GEOMETRY = I18N.get(\"ui.MenuNames.EDIT\") + \" \" + I18N.get(\"ui.MenuNames.GEOMETRY\");\n public static final String VIEW = I18N.get(\"ui.MenuNames.VIEW\");\n public static final String MAP_DECORATIONS = I18N.get(\"ui.MenuNames.VIEW.MAP_DECORATIONS\");\n public static final String LAYER = I18N.get(\"ui.MenuNames.LAYER\");\n public static final String TOOLS = I18N.get(\"ui.MenuNames.TOOLS\");\n //public static final String TOOLS_ADVANCED = I18N.get(\"ui.MenuNames.TOOLS.ADVANCED\"); // not used, not translated\n public static final String TOOLS_ANALYSIS = I18N.get(\"ui.MenuNames.TOOLS.ANALYSIS\");\n public static final String TOOLS_GENERALIZATION = I18N.get(\"ui.MenuNames.TOOLS.GENERALIZATION\");\n public static final String TOOLS_GENERATE = I18N.get(\"ui.MenuNames.TOOLS.GENERATE\");\n public static final String TOOLS_JOIN = I18N.get(\"ui.MenuNames.TOOLS.JOIN\");\n public static final String TOOLS_QA = I18N.get(\"ui.MenuNames.TOOLS.QA\");\n public static final String TOOLS_WARP = I18N.get(\"ui.MenuNames.TOOLS.WARP\");\n //public static final String TOOLS_PROGRAMMING =I18N.get(\"ui.MenuNames.TOOLS.PROGRAMMING\");\n public static final String TOOLS_QUERIES =I18N.get(\"org.openjump.core.ui.plugin.queries.SimpleQuery.menu\");\n public static final String WINDOW = I18N.get(\"ui.MenuNames.WINDOW\");\n public static final String RASTERTOOLS = I18N.get(\"ui.MenuNames.RASTER\");\n // Michael Michaud 2008-04-06\n // New menu for synchronization\n public static final String WINDOW_SYNCHRONIZATION = I18N.get(\"ui.MenuNames.WINDOW.SYNCHRONIZATION\");\n public static final String HELP = I18N.get(\"ui.MenuNames.HELP\");\n public static final String PLUGINS = I18N.get(\"ui.MenuNames.PLUGINS\");\n \n // Michael Michaud 2007-03-23\n // New menu for plugin manager, beanshell console, scripts\n public static final String CUSTOMIZE = I18N.get(\"ui.MenuNames.CUSTOMIZE\");\n \n //erwan begin 2005-12-01 --- SIGLE\t\n //Menu\n public static final String ATTRIBUTS = I18N.get(\"ui.MenuNames.ATTRIBUTS\");\n public static final String SELECTION = I18N.get(\"ui.MenuNames.SELECTION\");\n public static final String RASTER = I18N.get(\"ui.MenuNames.RASTER\");\n public static final String STATISTICS = I18N.get(\"ui.MenuNames.STATISTICS\");\n public static final String GEOPROCESSING = \"SIGLE-\" + I18N.get(\"ui.MenuNames.GEOPROCESSING\");\n \n //Submenu\n //public static final String ONELAYER = I18N.get(\"ui.MenuNames.ONELAYER\");\n //public static final String TWOLAYERS = I18N.get(\"ui.MenuNames.TWOLAYERS\");\n \n public static final String CONVERT = I18N.get(\"ui.MenuNames.CONVERT\");\n public static final String EXTRACT = I18N.get(\"ui.MenuNames.EXTRACT\");\n public static final String MERGE = I18N.get(\"ui.MenuNames.MERGE\");\n public static final String GENERALIZATION = I18N.get(\"ui.MenuNames.GENERALIZATION\");\n public static final String TOPOLOGY = I18N.get(\"ui.MenuNames.TOPOLOGY\");\n //public static final String QA = I18N.get(\"ui.MenuNames.QA\"); // see MenuNames.TOOLS_QA\n public static final String DELETE = I18N.get(\"ui.MenuNames.DELETE\");\n public static final String DETECT = I18N.get(\"ui.MenuNames.DETECT\");\n public static final String PLOT = I18N.get(\"ui.MenuNames.PLOT\");\n \t\n //\terwan end 2005-12-01\n // Submenus for LayerName PopupMenu\n public static final String STYLE = I18N.get(\"ui.MenuNames.STYLE\");\n public static final String DATASTORE = I18N.get(\"ui.MenuNames.DATASTORE\");\n public static final String SCHEMA = I18N.get(\"ui.MenuNames.SCHEMA\");\n \n public static final String LAYERVIEWPANEL_POPUP = I18N.get(\"ui.MenuNames.LAYERVIEWPANEL_POPUP\");\n public static final String ATTRIBUTEPANEL_POPUP = I18N.get(\"ui.MenuNames.ATTRIBUTEPANEL_POPUP\");\n public static final String LAYERNAMEPANEL_LAYER_POPUP = I18N.get(\"ui.MenuNames.LAYERNAMEPANEL_LAYER_POPUP\");\n public static final String LAYERNAMEPANEL_CATEGORY_POPUP = I18N.get(\"ui.MenuNames.LAYERNAMEPANEL_CATEGORY_POPUP\");\n}",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"public void overrideMenuNoRestyle(JPopupMenu menu) {\n this.menu = menu;\n customMenu = true;\n initMenu(false);\n }",
"public Menu() { //Menu pannel constructor\n\t\tmenuBar = new JMenuBar();\n\t\tmenu = new JMenu(\"Menu\");\n\t\tabout = new JMenu(\"About\");\n\t\tabout.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ragnarock Web Browser 2017\\nIvan Mykolenko\\u00AE\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\thistory = new JMenu(\"History\");\n\t\thistory.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"history\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"History\");\n\t\t\t\tlayer.show(userViewPort, \"History\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 2;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tbookmarks = new JMenu(\"Bookmarks\");\n\t\tbookmarks.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"bookmarks\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"Bookmarks\");\n\t\t\t\tlayer.show(userViewPort, \"Bookmarks\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tsettingsMenuItem = new JMenuItem(\"Settings\", KeyEvent.VK_X);\n\t\tsettingsMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcreateSettings();\n\t\t\t\tsettings.setVisible(true);\n\t\t\t}\n\t\t});\n\t\texitMenuItem = new JMenuItem(\"Exit\");\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbackButton = new JButton(\"Back\");\n\t\tremoveButton = new JButton(\"Remove\");\n\t\tmenu.add(settingsMenuItem);\n\t\tmenu.add(exitMenuItem);\n\t\tmenuBar.add(menu);\n\t\tmenuBar.add(history);\n\t\tmenuBar.add(bookmarks);\n\t\tmenuBar.add(about);\n\t\tmenuBar.add(Box.createHorizontalGlue()); // Changing backButton's alignment to right\n\t\tsettings = new JDialog();\n\t\tadd(menuBar);\n\t\tsaveButton = new JButton(\"Save\");\n\t\tclearHistory = new JButton(\"Clear History\");\n\t\tclearBookmarks = new JButton(\"Clear Bookmarks\");\n\t\tbuttonsPanel = new JPanel();\n\t\tpanel = new JPanel();\n\t\turlField = new JTextField(15);\n\t\tedit = new JLabel(\"Edit Homepage:\");\n\t\tviewMode = 1;\n\t\tlistModel = new DefaultListModel<String>();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t}",
"IMenuFactory getMenuFactory();",
"MenuEntry.Factory getMenuEntryFactory();",
"public Menu() {\n }",
"public abstract Tree extractMenuBarItems (Object obj) throws SAFSException;",
"public interface IMenuService {\n\n List<Map<String,Object>> selectShowMenus(String rootId);\n\n ResultVO createMenu(MenuCreateVO createVO);\n\n ResultVO deleteMenu(String[] menuIds);\n\n ResultVO editMenu(MenuEditVO editVO);\n\n ResultVO grantPermissions(String menuId, String[] perIdArray);\n\n Pager<Map<String, Object>> getPageMenus(PagerReqVO pagerReqVO, TreeNode tree);\n\n\tResultVO getMenuTree();\n}",
"@Override\n protected void onCreateContextMenu(ContextMenu menu) {\n super.onCreateContextMenu(menu);\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 GenericMotifBrowserPanelContextMenu(final GenericMotifBrowserPanel panel, boolean allowCreateCollection) {\n this.gui=panel.getGUI(); \n this.panel=panel;\n this.engine=gui.getEngine();\n \n DisplayMenuItemListener menuItemListener=new DisplayMenuItemListener();\n JMenuItem showItem=new JMenuItem(SHOW);\n JMenuItem showOnlySelectedItem=new JMenuItem(SHOW_ONLY_SELECTED); \n JMenuItem showAllItem=new JMenuItem(SHOW_ALL); \n JMenuItem hideItem=new JMenuItem(HIDE);\n JMenuItem hideAllItem=new JMenuItem(HIDE_ALL);\n JMenuItem selectShownMotifsItem=new JMenuItem(SELECT_SHOWN_MOTIFS);\n JMenuItem selectOnlyShownMotifsItem=new JMenuItem(SELECT_ONLY_SHOWN_MOTIFS);\n JMenuItem createCollectionItem=new JMenuItem(CREATE_MOTIF_COLLECTION); \n\n dbmenu=new ExternalDBLinkMenu(null, gui);\n selectMotifsFromMenu=new JMenu(SELECT_MOTIFS_FROM);\n selectOnlyMotifsFromMenu=new JMenu(SELECT_ONLY_MOTIFS_FROM);\n selectFromCollectionListener=new SelectFromCollectionListener();\n clearAndselectFromCollectionListener=new ClearAndSelectFromCollectionListener();\n \n\n showItem.addActionListener(menuItemListener);\n showOnlySelectedItem.addActionListener(menuItemListener);\n showAllItem.addActionListener(menuItemListener);\n hideItem.addActionListener(menuItemListener);\n hideAllItem.addActionListener(menuItemListener); \n selectShownMotifsItem.addActionListener(menuItemListener);\n selectOnlyShownMotifsItem.addActionListener(menuItemListener);\n if (allowCreateCollection) createCollectionItem.addActionListener(menuItemListener); \n ColorMenuListener colormenulistener=new ColorMenuListener() {\n public void newColorSelected(Color color) {\n if (color==null) return;\n gui.getVisualizationSettings().setFeatureColor(selectedMotifNames, color, true);\n panel.repaint();\n }\n };\n ColorMenu colorMenu=new ColorMenu(COLOR_SUBMENU_HEADER,colormenulistener,panel);\n\n displayMotif=new JMenuItem(DISPLAY_MOTIF); \n displayMotif.addActionListener(menuItemListener);\n this.add(displayMotif); \n limitedToOne.add(displayMotif);\n \n this.add(showItem);\n this.add(showOnlySelectedItem); \n this.add(showAllItem); \n this.add(hideItem); \n this.add(hideAllItem); \n this.add(colorMenu);\n this.add(new JSeparator()); \n this.add(selectShownMotifsItem);\n this.add(selectOnlyShownMotifsItem);\n this.add(selectMotifsFromMenu);\n this.add(selectOnlyMotifsFromMenu);\n this.add(new JSeparator()); \n if (allowCreateCollection) {\n this.add(createCollectionItem);\n }\n compareMotifToOthers=new JMenuItem(\"Compare\"); \n compareMotifToOthers.addActionListener(menuItemListener);\n this.add(compareMotifToOthers); \n limitedToOne.add(compareMotifToOthers); \n \n saveMotifLogo=new JMenuItem(SAVE_MOTIF_LOGO);\n saveMotifLogo.addActionListener(menuItemListener); \n this.add(saveMotifLogo); \n limitedToOne.add(saveMotifLogo);\n \n this.add(dbmenu);\n limitedToOne.add(dbmenu);\n }",
"@Override\r\n protected void addListener() {\r\n menuItem.addActionListener(new ManualJMenuItemClickHandler());\r\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n super.onPrepareOptionsMenu(menu);\n if (mCurrentPhoneUri == null) {\n //References the menu item\n MenuItem menuItem = menu.findItem(R.id.delete_phone_entry);\n menuItem.setVisible(false);\n }\n return true;\n }",
"public static Menu getInstance(){\n if(menu==null){\n menu=new Menu();\n }\n return menu;\n }",
"private void setUpMenu() {\n\t\tresideMenu = new ResideMenu(this);\n\t\tresideMenu.setBackground(R.drawable.menu_background);\n\t\tresideMenu.attachToActivity(this);\n\t\tresideMenu.setMenuListener(menuListener);\n\t\t// valid scale factor is between 0.0f and 1.0f. leftmenu'width is\n\t\t// 150dip.\n\t\tresideMenu.setScaleValue(0.6f);\n\n\t\t// create menu items;\n\t\titemGame = new ResideMenuItem(this, R.drawable.icon_game,\n\t\t\t\tgetResources().getString(R.string.strGame));\n\t\titemBook = new ResideMenuItem(this, R.drawable.icon_book,\n\t\t\t\tgetResources().getString(R.string.strBook));\n\t\titemNews = new ResideMenuItem(this, R.drawable.icon_news,\n\t\t\t\tgetResources().getString(R.string.strNews));\n\t\t// itemSettings = new ResideMenuItem(this, R.drawable.icon_setting,\n\t\t// getResources().getString(R.string.strSetting));\n\t\titemLogin = new ResideMenuItem(this, R.drawable.icon_share,\n\t\t\t\tgetResources().getString(R.string.strShare));\n\t\titemBookPDF = new ResideMenuItem(this, R.drawable.icon_bookpdf,\n\t\t\t\tgetResources().getString(R.string.strBookPDF));\n\t\titemMore = new ResideMenuItem(this, R.drawable.icon_more,\n\t\t\t\tgetResources().getString(R.string.strMore));\n\n\t\titemGame.setOnClickListener(this);\n\t\titemBook.setOnClickListener(this);\n\t\titemNews.setOnClickListener(this);\n\t\t// itemSettings.setOnClickListener(this);\n\t\titemBookPDF.setOnClickListener(this);\n\t\titemMore.setOnClickListener(this);\n\t\titemLogin.setOnClickListener(this);\n\n\t\tresideMenu.addMenuItem(itemBookPDF, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemBook, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemNews, ResideMenu.DIRECTION_LEFT);\n\t\t// resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n\n\t\tresideMenu.addMenuItem(itemGame, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemLogin, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemMore, ResideMenu.DIRECTION_RIGHT);\n\n\t\t// You can disable a direction by setting ->\n\t\t// resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n\t\tfindViewById(R.id.title_bar_left_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tfindViewById(R.id.title_bar_right_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"public Menu() {\n\n\t}",
"private void updateMenus()\n {\n m_KernelMenu.updateMenu();\n m_AgentMenu.updateMenu();\n }",
"@Test\n\tpublic void addMenuTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light\n\t\t) {\t\n\t\t\tstart();\n\t\t\tgui.addMenu();\n\t\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\t\tassertNotNull(menu);\n\n\t\t}\n\t}",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n return super.onPrepareOptionsMenu(menu);\n }",
"private void prepare() {\n Menu menu = new Menu();\n addObject(menu, 523, 518);\n }",
"public void menu()\n {\n CMenu cMenu = new CMenu();\n window.dispose();\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"protected void addMenuItems(JPopupMenu menu, ActionListener listener) {\r\n JMenuItem menuItem;\r\n menuItem = new JMenuItem(\"Store cluster\", GUIFactory.getIcon(\"new16.gif\"));\r\n menuItem.setActionCommand(STORE_CLUSTER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Launch new session\", GUIFactory.getIcon(\"launch_new_mav.gif\"));\r\n menuItem.setActionCommand(LAUNCH_NEW_SESSION_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem); \r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Delete public cluster\", GUIFactory.getIcon(\"delete16.gif\"));\r\n menuItem.setActionCommand(SET_DEF_COLOR_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Save cluster...\", GUIFactory.getIcon(\"save16.gif\"));\r\n menuItem.setActionCommand(SAVE_CLUSTER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Save all clusters...\", GUIFactory.getIcon(\"save16.gif\"));\r\n menuItem.setActionCommand(SAVE_ALL_CLUSTERS_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n setOverallMaxMenuItem = new JMenuItem(\"Set Y to overall max...\", GUIFactory.getIcon(\"Y_range_expand.gif\"));\r\n setOverallMaxMenuItem.setActionCommand(SET_Y_TO_EXPERIMENT_MAX_CMD);\r\n setOverallMaxMenuItem.addActionListener(listener);\r\n setOverallMaxMenuItem.setEnabled(false);\r\n menu.add(setOverallMaxMenuItem);\r\n \r\n setClusterMaxMenuItem = new JMenuItem(\"Set Y to cluster max...\", GUIFactory.getIcon(\"Y_range_expand.gif\"));\r\n setClusterMaxMenuItem.setActionCommand(SET_Y_TO_CLUSTER_MAX_CMD);\r\n setClusterMaxMenuItem.addActionListener(listener);\r\n menu.add(setClusterMaxMenuItem);\r\n\r\n menuItem = new JMenuItem(\"Toggle reference line...\");\r\n menuItem.setActionCommand(TOGGLE_REF_LINE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Broadcast Matrix to Gaggle\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_MATRIX_GAGGLE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Broadcast Gene List to Gaggle\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_NAMELIST_GAGGLE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Broadcast Matrix to Genome Browser\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_MATRIX_GENOME_BROWSER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n }",
"public void overrideMenu(JPopupMenu menu) {\n this.menu = menu;\n customMenu = true;\n initMenu(true);\n }",
"interface MenuHelper {\n void dismiss();\n\n void setPresenterCallback(MenuPresenter.Callback callback);\n}",
"public Menu() {\r\n\r\n }",
"@Test\n\tpublic void testAddAndRemoveLinkOkComponent() {\n\t\tSubmenu root = new Submenu(\"root\");\n\t\tMenuItem item = new MenuItem(\"item1\");\n\t\t// at first property \"menuentrys\" is undefined.\n\t\tAssert.assertNull(root.getMenuentrys());\n\t\tAssert.assertNull(item.getParentBean());\n\n\t\troot.addMenuentry(item);\n\t\tAssert.assertEquals(1, root.getMenuentrys().size());\n\t\tAssert.assertSame(item, root.getMenuentrys().iterator().next());\n\t\tAssert.assertSame(root, item.getParentBean());\n\n\t\troot.removeMenuentry(item);\n\t\t// after removal \"menuentrys\" is defined but empty\n\t\tAssert.assertEquals(0, root.getMenuentrys().size());\n\t\tAssert.assertNull(item.getParentBean());\n\t}",
"public void notifyPostToolsMenu(BPackage bp, JMenuItem jmi) {\r\n System.out.println(\"Post on Tools menu\");\r\n curPackage = bp;\r\n curClass = null;\r\n curObject = null;\r\n }",
"private MenuBar setupMenu () {\n MenuBar mb = new MenuBar ();\n Menu fileMenu = new Menu (\"File\");\n openXn = makeMenuItem (\"Open Connection\", OPEN_CONNECTION);\n closeXn = makeMenuItem (\"Close Connection\", CLOSE_CONNECTION);\n closeXn.setEnabled (false);\n MenuItem exit = makeMenuItem (\"Exit\", EXIT_APPLICATION);\n fileMenu.add (openXn);\n fileMenu.add (closeXn);\n fileMenu.addSeparator ();\n fileMenu.add (exit);\n\n Menu twMenu = new Menu (\"Tw\");\n getWksp = makeMenuItem (\"Get Workspace\", GET_WORKSPACE);\n getWksp.setEnabled (false);\n twMenu.add (getWksp);\n\n mb.add (fileMenu);\n mb.add (twMenu);\n return mb;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}"
] | [
"0.60806125",
"0.6035443",
"0.59159917",
"0.57430935",
"0.5660453",
"0.56416196",
"0.5627644",
"0.5598438",
"0.5574291",
"0.5573283",
"0.55295426",
"0.55179024",
"0.55073076",
"0.5490368",
"0.5466114",
"0.54540837",
"0.54164034",
"0.53993505",
"0.53987736",
"0.53986096",
"0.53972363",
"0.5383945",
"0.53786993",
"0.5376051",
"0.53642553",
"0.5359367",
"0.53505063",
"0.5344054",
"0.53418016",
"0.5330262",
"0.5327989",
"0.5309609",
"0.5303699",
"0.5298016",
"0.52938026",
"0.5287189",
"0.52864003",
"0.5268729",
"0.5252807",
"0.5250454",
"0.5248518",
"0.5245437",
"0.5234319",
"0.5231277",
"0.5221117",
"0.5209562",
"0.520406",
"0.5202137",
"0.5192064",
"0.5185114",
"0.5185112",
"0.51826024",
"0.51807517",
"0.5178839",
"0.51757365",
"0.5175097",
"0.51718813",
"0.51709855",
"0.51691914",
"0.5163492",
"0.5147486",
"0.5143356",
"0.5127007",
"0.51181895",
"0.5100265",
"0.50985986",
"0.50898826",
"0.5085328",
"0.5078871",
"0.507687",
"0.50766176",
"0.5074936",
"0.5072751",
"0.50642174",
"0.50641614",
"0.5059415",
"0.50572824",
"0.50533795",
"0.5052548",
"0.5050083",
"0.5048989",
"0.50447285",
"0.50391424",
"0.5038525",
"0.50383854",
"0.50376374",
"0.5037539",
"0.5037539",
"0.5032357",
"0.5030445",
"0.5028132",
"0.502769",
"0.50250304",
"0.50249135",
"0.5024757",
"0.5020813",
"0.5019505",
"0.5018491",
"0.5015147",
"0.5015147",
"0.5015147"
] | 0.0 | -1 |
Creates separator with text. | private JPanel getTitlePanel(String title)
{
JLabel label = new JLabel(title);
label.setBorder(new EmptyBorder(0, 0, 0, 10));
label.setFont(UIManager.getFont("TitledBorder.font"));
label.setForeground(UIManager
.getColor("TitledBorder.titleColor"));
JPanel pnlSectionName = new TransparentPanel();
pnlSectionName.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = c.gridy = 0;
c.anchor = GridBagConstraints.LINE_START;
c.gridwidth = 2;
pnlSectionName.add(label, c);
c.gridx = 2;
c.weightx = 1;
c.fill = GridBagConstraints.HORIZONTAL;
pnlSectionName.add(new JSeparator(), c);
JPanel pnlSection = new TransparentPanel()
{
@Override
public Component add(Component comp)
{
if(comp instanceof JComponent)
((JComponent)comp).setAlignmentX(LEFT_ALIGNMENT);
return super.add(comp);
}
};
pnlSection.setLayout(new BoxLayout(pnlSection, BoxLayout.Y_AXIS));
pnlSection.add(pnlSectionName);
return pnlSection;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSeparator();",
"private Line createSeparator(int length){\n\n Line sep = new Line();\n sep.setEndX(length);\n sep.setStroke(Color.DARKGRAY);\n return sep;\n\n }",
"private Label createSeparator(Composite parent) {\n \t\tLabel separator= new Label(parent, SWT.NONE);\n \t\tseparator.setVisible(false);\n \t\tGridData gd= new GridData();\n \t\tgd.horizontalAlignment= GridData.FILL;\n \t\tgd.verticalAlignment= GridData.BEGINNING;\n \t\tgd.heightHint= 4;\n \t\tseparator.setLayoutData(gd);\n \t\treturn separator;\n \t}",
"public SeparatorControl() {\n _separator = new JSeparator();\n }",
"static void afficherLigneSep(int taille) {\n System.out.print(\" \");\n for (int i = 0; i < taille - 1; i++) {\n System.out.print(\"---+\");\n }\n System.out.println(\"---\");\n }",
"private void printSeparator() {\r\n\t\tthis.printLineGap();\r\n\t}",
"public String getLineSeparator();",
"public String getSeparator() {\n\t\treturn separator;\n\t}",
"@Override\n\tpublic String getSeparator() {\n\t\treturn null;\n\t}",
"protected String getSeparator() {\n return isNewLineParameters() ? NEW_LINE_SEPARATOR : ONE_LINE_SEPARATOR;\n }",
"public static void printSeparator() {\n\t\tfor (int i = 1; i <= 7; i++) {\n\t\t\tSystem.out.print(\"+\");\n\t\t\tfor (int j = 1; j <= 5; j++) {\n\t\t\t\tSystem.out.print(\"-\");\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"+\");\n\n\t}",
"private static String appendSeparatorLine(String left, String middle, String right, int padding, int... sizes) {\n boolean first = true;\n StringBuilder ret = new StringBuilder();\n for (int size : sizes) {\n if (first) {\n first = false;\n ret.append(left).append(Strings.repeat(\"-\", size + padding * 2));\n } else {\n ret.append(middle).append(Strings.repeat(\"-\", size + padding * 2));\n }\n }\n return ret.append(right).append(BotConfig.EOL).toString();\n }",
"private void createDelimiterPart() {\n\t\t//------------------------------------------------\n\t\t// Delimiter Label & Combo\n\t\t//------------------------------------------------\n\t\tLabel delimiterLabel = new Label(generalSettingsGroup, SWT.NONE);\n\t\tdelimiterLabel.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1));\n\t\tdelimiterLabel.setText(\"Result Delimiter:\");\n\t\t\n\t\tdelimiterDeco = new ControlDecoration(delimiterLabel, SWT.LEFT | SWT.TOP);\n\t\tdelimiterDeco.setImage(SWTResourceManager.getImage(GeneralSettingsGroup.class, \"/org/eclipse/jface/fieldassist/images/info_ovr.gif\"));\n\t\tdelimiterDeco.setDescriptionText(\"Choose the delimiter used in the result file.\");\n\t\t\n\t\tdelimiterCombo = new Combo(generalSettingsGroup, SWT.NONE);\n\t\tdelimiterCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 2, 1));\n\t\tdelimiterCombo.setItems(delimiterMap.keySet().toArray(new String[delimiterMap.size()]));\n\t\tdelimiterCombo.select(1);\n\t\t\n\t\tRegexCompilableValidator delimiterValidator = \n\t\t\t\tnew RegexCompilableValidator(delimiterLabel, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getStringToValidate() {\n\t\t\t\t\t\treturn delimiterCombo.getText();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t\n\t\tdelimiterCombo.addModifyListener(delimiterValidator);\n\t\tdelimiterValidator.setTag(\"ALWAYS\");\n\t\tCSVComparatorGUI.getValidatorEngine().addValidator(delimiterValidator);\n\t}",
"private String getSeparator(List<String> file)\n {\n String line = file.get(0);\n \n if (line.contains(\" \") || line.contains(\" ,\")) {\n /* for these delimeters the \"data\" and \"quantidade\" column are not\n * separated correctly, so we need to add one space to support them.\n */\n for (int i = 0; i < file.size(); i++) {\n String l = file.get(i);\n String a = l.substring(0, 16);\n String b = l.substring(16, l.length() - 1);\n file.set(i, a + \" \" + b);\n }\n }\n\n return FileUtil.SEPARATOR(line);\n }",
"public void separator() {\n LOGGER_BASE.separator();\n }",
"private String createDashedLine(){\n return \"- \".repeat(Math.max(0, this.columns));\n }",
"public String getSeparator() {\n\t\treturn mSeparator;\n\t}",
"private void addSeparator() {\n JSeparator separator = new JSeparator( SwingConstants.VERTICAL );\n separator.setPreferredSize( new Dimension( 2, 24 ) );\n toolPanel.add(separator);\n\t}",
"private static void printSeparatorLine() {\r\n System.out.print(\"\\n----------------------------------------------------------\" +\r\n \"----------------------------------------------------------\");\r\n }",
"public void setSeparator(String separator) {\n\t\tthis.separator = separator;\n\t}",
"public void addSeparator() {\n\t\tmenuToolBar.addSeparator();\n\t}",
"protected String getLastSeparator() {\n return \"and\";\n }",
"private static int appendSeparator (StringBuilder str, boolean catSep) {\n int added = 0;\n if (catSep) {\n str.append (PREFERRED_TAG_SEPARATOR);\n str.append (\" \");\n added = 2;\n } else {\n str.append (PREFERRED_LEVEL_SEPARATOR);\n added = 1;\n }\n return added;\n }",
"public static void buildSeparator(StringBuilder sb, int lineLength) {\n sb.append(\"-\".repeat(Math.max(0, lineLength)));\n sb.append(\"\\n\");\n }",
"public SeparatorControl(int orientation) {\n _separator = new JSeparator(orientation);\n }",
"public String getSourceLineSeparator ();",
"java.lang.String getCustomBreak();",
"public String getDefaultExtractLineSeparator ();",
"@Override\n\tprotected String getItemSeparator() {\n\t\treturn SVG_PATHSEG_LIST_SEPARATOR;\n\t}",
"public String getExtractLineSeparator ();",
"protected void drawSeparator(Graphics g,int x,int y,int w,int h)\n {\n g.setColor(new Color(0x868686));\n g.drawLine(x+0,y+0,x+w-1,y+0);\n g.drawLine(x+0,y+0,x+0,y+1);\n g.drawLine(x+w-1,y+0,x+w-1,y+1);\n g.setColor(Color.black);\n g.drawLine(x+1,y+1,x+w-2,y+1);\n\n g.setColor(new Color(0x868686));\n g.drawLine(x+0,y+0,x+0,y+h-1);\n g.setColor(Color.black);\n g.drawLine(x+1,y+1,x+1,y+h-1);\n\n g.setColor(new Color(0xD7D3CB));\n g.drawLine(x+0,y+h-1,x+w-1,y+h-1);\n\n g.setColor(new Color(0xD7D3CB));\n g.drawLine(x+w-1,y+1,x+w-1,y+h-1);\n }",
"protected String createText() {\r\n\t\t// Default text is 1 based.\r\n\t\tNumberFormat formatter = NumberFormat.getFormat(\"#,###\");\r\n\t\tHasRows display = getDisplay();\r\n\t\tRange range = display.getVisibleRange();\r\n\t\tint pageStart = range.getStart() /*+ 1*/;\r\n\t\tint pageSize = range.getLength();\r\n\t\tint dataSize = display.getRowCount();\r\n\t\tint endIndex = Math.min(dataSize, pageStart + pageSize /*- 1*/);\r\n\t\tendIndex = Math.max(pageStart, endIndex);\r\n\t\tif(endIndex==0)\r\n\t\t\tpageStart = 0;\r\n\t\telse\r\n\t\t\tpageStart = pageStart + 1;\r\n\t\tString text = formatter.format(pageStart) + \"-\"\r\n\t\t\t\t+ formatter.format(endIndex);\r\n\t\treturn text;\r\n\t}",
"public Integer getSep() {\n return sep;\n }",
"private void addHorizontalSeparator(TableLayout tableLayout){\n View view = new View(getApplicationContext());\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, 1));\n view.setBackgroundColor(Color.rgb(50, 50, 50));\n tableLayout.addView(view);\n }",
"private String sep(String path) {\n return path == null ? \"\" : \"/\" + path;\n }",
"@SuppressWarnings(\"unchecked\")\n public void insertarLineaSeparacion() {\n Tag hr = new Tag(\"hr\");\n hr.addAttribute(new Attribute(\"style\", \"width: 100%; height: 2px;\"));\n // <hr style=\"width: 100%; height: 2px;\">\n body.add(hr);\n }",
"Rule ListSeparator() {\n // No effect on value stack\n return Sequence(AnyOf(\",;\"), WhiteSpace());\n }",
"private JSeparator getSepView1() {\r\n\t\tif (sepView1 == null) {\r\n\t\t\tsepView1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepView1;\r\n\t}",
"public abstract char getCustomDelimiter();",
"private String spacer(int length, char spacer) {\n // Do fancy centering\n StringBuilder sb = new StringBuilder();\n Stream.generate(() -> spacer).limit(length).forEach(sb::append);\n return sb.toString();\n }",
"public static String getSeparator() {\n return System.getProperty(\"file.separator\");\n }",
"public void setSeparator(String s) {\n\t\tseparator = s;\n\t}",
"public Component getComponent() {\n return _separator;\n }",
"public static void appendWithDelim(StringBuilder builder, String text, String delimeter){\n\t\tif(builder.length() > 0){\n\t\t\tbuilder.append(delimeter);\n\t\t}\n\t\tbuilder.append(text);\n\t}",
"boolean separatorLine(String mode);",
"public String getPatternSeparator()\r\n\t{\r\n\t\treturn patternSeparator;\r\n\t}",
"public void setDefaultExtractLineSeparator (String linesep);",
"public String getFileSeparator() {\n\t\treturn File.separator;\n\t}",
"public String getDefaultSourceLineSeparator ();",
"private ELOperandToken readSeparatorToken() {\r\n \t\tfState = STATE_SEPARATOR;\r\n \t\tint ch = readCharBackward();\r\n \t\t\r\n \t\treturn (ch == '.' ? new ELOperandToken(index, 1, getCharSequence(index, 1), ELOperandToken.EL_SEPARATOR_TOKEN) :\r\n \t\t\tELOperandToken.EOF);\r\n \t}",
"private static void addEmptyLine(Paragraph paragraph, int number) {\r\n for ( int i = 0 ; i < number; i++) {\r\n paragraph.add( new Paragraph( \" \" ));\r\n }\r\n }",
"java.util.Optional<String> getItemSeparator();",
"private void addLineSeperator(final PdfPTable paymentSectionTable, final PdfPCell paymentSectionBlankSpaceCell) {\n LineSeparator line = new LineSeparator(1, 100, null, Element.ALIGN_CENTER, -2);\n PdfPCell horizontalLineCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n cellAlignment(horizontalLineCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n horizontalLineCell.addElement(line);\n cellAddingToTable(paymentSectionTable, horizontalLineCell, Rectangle.NO_BORDER, 3, 0);\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, WHITE_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n }",
"public static String getLineSeparator() {\r\n // /- - - - - - - - - - - - - - - - - - - - - -\r\n // Because 'CR + LF' caused many trouble!\r\n\t\t// And Now 'LF' have little trouble. \r\n\t\t// \r\n // return System.getProperty(\"line.separator\");\r\n // - - - - - - - - - -/\r\n\t\treturn \"\\n\";\r\n }",
"private static Set<Character> createSeparators() {\r\n Set<Character> separators = new Set1L<>();\r\n final char[] arrayOfSeps = { '!', ',', '.', ' ', '\"', ';', ':', '(',\r\n ')', '?', '/', '-' };\r\n //Above: array of chosen separators to be read into a Set<Character>\r\n\r\n for (int i = 0; i < arrayOfSeps.length; i++) {\r\n separators.add(arrayOfSeps[i]);\r\n }\r\n return separators;\r\n }",
"public static String separate(String separator, String... blocks) {\n requireNonNullElements(blocks);\n return Stream.of(blocks)\n .collect(joining(separator));\n }",
"protected String getOrConcatenatorSplitter() {\n\t\treturn \"\\\\\" + getOrConcatenator();\n\t}",
"String makeHeader() {\n StringBuilder ans = new StringBuilder(\" \"); // README shows two spaces at\n String sep=\"\"; //start with nothing to separate, then switch to | to separate\n for (int i = 0; i < toDisplay.getWidth(); i++) {\n ans.append(sep);\n ans.append(i);\n sep = \"|\";\n }\n ans.append(\"\\n\");\n return ans.toString();\n }",
"@Override\r\n\tpublic String createHeader(String separator) {\n\t\treturn \"M1022C8\" + separator + \"M1022C7\" + separator + \"M1022C183\" + separator + \"M1022C31\" + separator + \"M1022C195\" + separator + \"M1022C32\"\r\n\t\t\t\t+ separator + \"M1022C210\" + separator + \"M1022C68\" + separator + \"M1022C67\" + separator + \"M1022C62\" + separator + \"M1022C61\" + separator\r\n\t\t\t\t+ \"M1022C213\" + separator + \"M1022C204\" + separator + \"M1022C62\" + separator + \"M1022C68\" + separator + \"M1022C61\" + separator + \"M1022C210\"\r\n\t\t\t\t+ separator + \"M1022C49\" + separator + \"M1022C67\" + separator + \"M1022C213\" + separator + \"M1022C49\";\r\n\t}",
"public native Text splitText(double offset) /*-{\r\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\r\n\t\treturn jso.splitText(offset);\r\n }-*/;",
"public char getDateSeparator()\r\n {\r\n return (m_dateSeparator);\r\n }",
"public char getTimeSeparator()\r\n {\r\n return (m_timeSeparator);\r\n }",
"void addSpaces() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"| \");\n\t\tSystem.out.println(\"|\");\n\t}",
"public static String getPathSeparator() {\n return File.separator;\n }",
"private JSeparator getSepViewGoTo1() {\r\n\t\tif (sepViewGoTo1 == null) {\r\n\t\t\tsepViewGoTo1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepViewGoTo1;\r\n\t}",
"private static final String appendSeparatorIfNeeded(String path) {\n if (path.length() > 0) {\n return (path.charAt(path.length() - 1) == File.separatorChar ? path : path.concat(File.separator));\n } else {\n return path;\n }\n }",
"protected boolean isSeparator(char c) {\n return c == SEPARATOR;\n }",
"public AVT getGroupingSeparator()\n {\n return m_groupingSeparator_avt;\n }",
"public char getColumnSeparator(){\n\t\treturn DEFAULT_COLUMN_SEPARATOR;\n\t}",
"public String getFieldSeparator()\n\t{\n\t\treturn fieldSeparator;\n\t}",
"private String getCSVSeparator(){\n DecimalFormatSymbols s = new DecimalFormatSymbols(getLocale());\n if(s.getDecimalSeparator() == ',')\n return \";\";\n else\n return \",\";\n }",
"public final native void setLabelSeparator(String labelSeparator) /*-{\r\n\t\tthis.labelSeparator = labelSeparator;\r\n\t}-*/;",
"private JSeparator getSepFile1() {\r\n\t\tif (sepFile1 == null) {\r\n\t\t\tsepFile1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepFile1;\r\n\t}",
"public static List<String> explode(String text, String separator) {\r\n\t\t\tList<String> list = new ArrayList<String>();\r\n\t\t\tif (text != null && separator != null && !text.isEmpty()) {\r\n\t\t\t\tCollections.addAll(list, text.split(separator));\r\n\t\t\t}\r\n\r\n\t\t\treturn list;\r\n\t\t}",
"public void newLine() {\n text.append(\"\\n\");\n }",
"public String getFileSeparator() {\n\t\treturn fileSeparator;\n\t}",
"public boolean noSeparator(){\n return separator == EMPTY_CHAR;\n }",
"Text createText();",
"void addHyphens() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"+-----\");\n\t\tSystem.out.println(\"+\");\n\t}",
"private String wrapString(String value, String separator) {\n\t\tStringBuffer newValue = new StringBuffer();\n\t\tnewValue.append(separator);\n\t\tnewValue.append(value);\n\t\tnewValue.append(separator);\n\t\treturn newValue.toString();\n\t}",
"private Token scanNewlineSeparator() {\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n c = in.read();\n return new Token(\"\\n\", TokenType.SEPARATOR, pos);\n }",
"@Override\n protected String stringifySeparator() {\n return \" != \";\n }",
"protected String getDefaultDelimiter(String text) {\n\t\tif (text.contains(\"\\001\")) {\n\t\t\treturn \"#1\";\n\t\t} else if (text.contains(\"\\002\")) {\n\t\t\treturn \"#2\";\n\t\t} else if (text.contains(\"|\")) {\n\t\t\treturn \"#124\";\n\t\t} else if (text.contains(\",\")) {\n\t\t\treturn \"#44\";\n\t\t}\n\t\treturn \"#1\";\n\t}",
"public void testCustomRootSeparatorWithFactory() throws Exception\n {\n JsonFactory f = ((JsonFactoryBuilder)JsonFactory.builder())\n .rootValueSeparator(\"##\")\n .build();\n StringWriter sw = new StringWriter();\n JsonGenerator gen = f.createGenerator(sw);\n gen.writeNumber(13);\n gen.writeBoolean(false);\n gen.writeNull();\n gen.close();\n assertEquals(\"13##false##null\", sw.toString());\n }",
"private String getLineSeparator(String givenStr) {\n if (givenStr.indexOf(\"\\r\\n\") == -1) {\n return \"\\n\";\n } else {\n return \"\\r\\n\";\n }\n }",
"@Override\n public void drawSplitString(String text, int textX, int textY, int wrapWidth, int color) {\n text = trimStringNewline(text);\n renderSplitString(text, textX, textY, wrapWidth, color);\n }",
"public void setExtractLineSeparator (String linesep);",
"public static void setFieldSeparator(char field) {\r\n\t\tfieldSep=\"\"+field;\r\n\t}",
"public String getLineSeparator() {\n return lineSeparator;\n }",
"public void setGroupingSeparator(AVT v)\n {\n m_groupingSeparator_avt = v;\n }",
"@Override\r\n\tpublic String toString(String separator) {\n\t\treturn M1022C8 + separator + M1022C7 + separator + M1022C183 + separator + M1022C31 + separator + M1022C195 + separator + M1022C32 + separator\r\n\t\t\t\t+ M1022C210 + separator + M1022C68 + separator + M1022C67 + separator + M1022C62 + separator + M1022C61 + separator + M1022C213 + separator\r\n\t\t\t\t+ M1022C204 + separator + M1022C62 + separator + M1022C68 + separator + M1022C61 + separator + M1022C210 + separator + M1022C49 + separator\r\n\t\t\t\t+ M1022C67 + separator + M1022C213 + separator + M1022C49;\r\n\t}",
"private static void addEmptyLine(Paragraph paragraph, int number) {\r\n\t\tfor (int i = 0; i < number; i++) {\r\n\t\t\tparagraph.add(new Paragraph(\" \"));\r\n\t\t}\r\n\t}",
"private Text createText(String text, int offset) {\n\t\tText res = new Text(text);\n\t\tres.setFont(new Font(\"Minecraftia\", 60));\n\t\tres.setFill(Color.YELLOW);\n\t\tres.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\tres.setX(canvas.getWidth() / 2);\n\t\tres.setY(canvas.getHeight() / 2 + offset);\n\t\tres.setId(\"handCursor\");\n\t\tres.setOnMouseEntered(e -> {\n\t\t\tres.setText(\"> \" + res.getText() + \" <\");\n\t\t});\n\t\tres.setOnMouseExited(e -> {\n\t\t\tres.setText(res.getText().replaceAll(\"[<> ]\", \"\"));\n\t\t});\n\t\treturn res;\n\t}",
"private static void printTeamTableDivider() {\n System.out.format(\"+----------------------+----------------------+----------------------\" +\n \"+----------------------+%n\");\n }",
"private static void addEmptyLine(Paragraph paragraph, int number) {\r\n for (int i = 0; i < number; i++) {\r\n paragraph.add(new Paragraph(\" \"));\r\n }\r\n }",
"@Override\n\tprotected String getPathSeparator() {\n\t\treturn null;\n\t}",
"private static void printLine(StringBuffer out, int[] colWidths,\n\t\t\tString left, String sep) {\n\t\tStringBuffer bf = new StringBuffer(120);\n\t\tint tableLength = left.length();\n\n\t\tfor (int i = 0; i < colWidths.length; i++)\n\t\t\ttableLength += colWidths[i] + sep.length();\n\n\t\t// -1 correction for the last sep of length 3, ' | '\n\t\tfor (int i = 0; i < tableLength - 1; i++)\n\t\t\tbf.append('-');\n\n\t\tout.append(bf + \"\\n\");\n\t}",
"public void setDefaultSourceLineSeparator (String linesep);",
"private void newline() {\n if (enableSplitting) {\n if (out.length() != 0) {\n out.append(System.lineSeparator());\n }\n out.append(\" \".repeat(depth)); // two spaces indent is sufficient\n } else {\n out.append(\" \"); // just a separator between two tokens\n }\n }",
"private void lineBreak()\n\t{\n\t\tlog += String.format(\"%n\");\n\t\tfor(int i = 0; i < 25; i++)\n\t\t\tlog += \"-\";\n\t\tlog += String.format(\"%n\");\n\t}",
"public String getRowSeparator()\n\t{\n\t\treturn rowSeparator;\n\t}"
] | [
"0.67210346",
"0.6578373",
"0.65726376",
"0.64019775",
"0.63863295",
"0.63254076",
"0.6316284",
"0.6247423",
"0.623313",
"0.6163188",
"0.6074932",
"0.59806585",
"0.5942627",
"0.59178275",
"0.5904211",
"0.59018236",
"0.5885783",
"0.5729376",
"0.56969464",
"0.5682839",
"0.56672144",
"0.5662783",
"0.5650114",
"0.56455183",
"0.56412524",
"0.5556885",
"0.5543637",
"0.54969937",
"0.5484487",
"0.54799044",
"0.54694337",
"0.54090756",
"0.5383211",
"0.5380264",
"0.53618264",
"0.5349712",
"0.5327195",
"0.53271395",
"0.5293949",
"0.51990575",
"0.5191943",
"0.51750535",
"0.51727396",
"0.5171618",
"0.51661295",
"0.51618755",
"0.51264656",
"0.5118425",
"0.5113132",
"0.50990784",
"0.5098374",
"0.5098163",
"0.5068166",
"0.50533384",
"0.50526017",
"0.5046377",
"0.50425303",
"0.503604",
"0.50256646",
"0.501358",
"0.5006988",
"0.4998947",
"0.49953791",
"0.49768442",
"0.49609792",
"0.49412307",
"0.4939048",
"0.49383456",
"0.4931812",
"0.4912302",
"0.49114886",
"0.49102125",
"0.49079016",
"0.4906573",
"0.49023783",
"0.48966956",
"0.48787138",
"0.48665798",
"0.48611438",
"0.48605454",
"0.48533982",
"0.48502016",
"0.48467043",
"0.48254055",
"0.48243117",
"0.48199496",
"0.4817178",
"0.48089498",
"0.4808239",
"0.48003992",
"0.4793442",
"0.47889397",
"0.47882485",
"0.47876176",
"0.47807226",
"0.47737756",
"0.47708902",
"0.47657022",
"0.47655144",
"0.47641632",
"0.4763766"
] | 0.0 | -1 |
Populate values from opset to local components. | private void loadValues()
{
OperationSetBasicAutoAnswer opset = providerService
.getOperationSet(OperationSetBasicAutoAnswer.class);
OperationSetAdvancedAutoAnswer opSetAdvanced = providerService
.getOperationSet(OperationSetAdvancedAutoAnswer.class);
if(opset == null)
return;
noneRadio.setSelected(true);
alwaysAnswerRadio.setSelected(
opset.isAutoAnswerUnconditionalSet());
if(opSetAdvanced != null)
{
if(opSetAdvanced.isAutoAnswerConditionSet())
{
String fName = opSetAdvanced.getAutoAnswerHeaderName();
String fValue = opSetAdvanced.getAutoAnswerHeaderValue();
if(AUTO_ALERT_INFO_NAME.equals(fName)
&& AUTO_ALERT_INFO_VALUE.equals(fValue))
{
alertInfoValue.setSelected(true);
}
else
{
customValueRadio.setSelected(true);
headerNameField.setText(fName);
if(StringUtils.isNotEmpty(fValue))
headerValueField.setText(fValue);
}
}
if(StringUtils.isNotEmpty(opSetAdvanced.getCallForward()))
{
callFwd.setSelected(true);
callFwdNumberField.setText(opSetAdvanced.getCallForward());
}
}
answerWithVideoCheckBox.setSelected(
opset.isAutoAnswerWithVideoSet());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(value)));\n\n _child.close();\n if (_localTupleResults.size() == 0) {\n this._hasNext = false;\n } else {\n this._hasNext = true;\n }\n }",
"public void dependencyUpdateVal(Set updatingObjects);",
"void assignOperators(Object rgID, List<Object> operIDs);",
"public RvtAoiLocalSet(Map<RvtAoiMetadataKey, IRvtPoiAoiMetadataValue> values) {\n map.putAll(values);\n }",
"private void collectValuesForSettings() {\n portColumnsValue = (portColumns.getProgress());\n portRowsValue = (portRows.getProgress());\n landColumnsValue = (landColumns.getProgress());\n landRowsValue = (landRows.getProgress());\n }",
"public void setValues(){\r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n //Set Values \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: setValue(evar,varContextField.getDouble(varContextObject)); break;\r\n case ARRAYDOUBLE: setValue(evar,(double[])varContextField.get(varContextObject)); break;\r\n case ARRAYDOUBLE2D: setValue(evar,(double[][])varContextField.get(varContextObject)); break;\r\n case STRING: setValue(evar,(String)varContextField.get(varContextObject)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: setting a value \" + e);\r\n } \r\n } \r\n }",
"@Override\n\tprotected void setOriginalOperators(Set<Operator> ops)\n\t{\n\t\tMap<String, Operator> original = new HashMap<String, Operator>(\n\t\t\t\t(int) (operators.size() * 0.75) + 1);\n\t\tint index = 0; // Each operator should get a unique name. Append a index\n\t\t\t\t\t\t// if it has a duplicate name.\n\t\tfor (Operator op : operators)\n\t\t{\n\t\t\tif (original.containsKey(op.getName()))\n\t\t\t{\n\t\t\t\toriginal.put(op.getName() + index, op.copy());\n\t\t\t\top.setName(op.getName() + index);\n\t\t\t\t++index;\n\t\t\t} else\n\t\t\t{\n\t\t\t\toriginal.put(op.getName(), op.copy());\n\t\t\t}\n\t\t}\n\t\toriginalOperators = Collections.unmodifiableMap(original);\n\t}",
"private void initValues() {\n \n }",
"private void refreshData() {\r\n\tif (fieldSpeciesContextSpec == null){\r\n\t\tsetData(null);\r\n\t} else {\r\n\t\tsetData(fieldSpeciesContextSpec.computeApplicableParameterList());\r\n\t}\r\n}",
"private void setup()\n\t{\n\t\tif(values == null)\n\t\t\tvalues = new HashMap<>();\n\t\telse\n\t\t\tvalues.clear();\n\t}",
"void collect(){\r\n\t\tif (getValues() != null){\r\n\t\t\tfor (Variable var : getValues().getVariables()){\r\n\t\t\t\tdefSelect(var);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private Object[] result(List<Object> set)\n {\n state.put(RESULTS_SET, set);\n\n Expression[] result = compilation.getExprResult();\n\n // Use first element only (if there are any). Should be same in other \"group-by\" components\n Object element = set != null && !set.isEmpty() ? set.get(0) : null;\n state.put(candidateAlias, element);\n\n Object[] r = new Object[result.length];\n for (int j=0; j<result.length; j++)\n {\n r[j] = result[j].evaluate(evaluator);\n }\n\n return r;\n }",
"public void applyToPersistentDataHolder(Set<Component> components, PersistentDataHolder holder) {\n Component[] componentsArray = components.toArray(new Component[0]);\n\n holder.getPersistentDataContainer()\n .set(componentsKey, componentArrayTagType, componentsArray);\n\n holder.getPersistentDataContainer()\n .set(versionKey, PersistentDataType.LONG, GearyEntityFactory.ENTITY_VERSION);\n }",
"private void getSavedValues() {\r\n\r\n if (this.pl_expert.getParam(\"displayNodeDegree\") != null) {\r\n this.display_node_degree_current = this.pl_expert.getParam(\"displayNodeDegree\");\r\n } else {\r\n this.display_node_degree_current = display_node_degree_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"displayEdges\") != null) {\r\n this.display_edges_current = this.pl_expert.getParam(\"displayEdges\");\r\n } else {\r\n this.display_edges_current = display_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"scale\") != null) {\r\n this.scale_current = this.pl_expert.getParam(\"scale\");\r\n } else {\r\n this.scale_current = scale_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"minWeight\") != null) {\r\n this.minweight_edges_current = this.pl_expert.getParam(\"minWeight\");\r\n } else {\r\n this.minweight_edges_current = minweight_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"iterations\") != null) {\r\n this.iterations_current = this.pl_expert.getParam(\"iterations\");\r\n } else {\r\n this.iterations_current = iterations_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"vote_value\") != null) {\r\n this.vote_value_current = this.pl_expert.getParam(\"vote_value\");\r\n } else {\r\n this.vote_value_current = vote_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"keep_value\") != null) {\r\n this.keepclass_value_current = this.pl_expert.getParam(\"keep_value\");\r\n } else {\r\n this.keepclass_value_current = keepclass_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mut_value\") != null) {\r\n this.mut_value_current = this.pl_expert.getParam(\"mut_value\");\r\n } else {\r\n this.mut_value_current = mut_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mutationParameter\") != null) {\r\n this.mut_option_current = this.pl_expert.getParam(\"mutationParameter\");\r\n } else {\r\n this.mut_option_current = mut_option_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Update_param\") != null) {\r\n this.update_param_current = this.pl_expert.getParam(\"Update_param\");\r\n } else {\r\n this.update_param_current = update_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Alg_param\") != null) {\r\n this.alg_param_current = this.pl_expert.getParam(\"Alg_param\");\r\n } else {\r\n this.alg_param_current = alg_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"only_sub\") != null) {\r\n this.display_sub_current = new Boolean(this.pl_expert.getParam(\"only_sub\")).booleanValue();\r\n } else {\r\n this.display_sub_current = display_sub_default;\r\n }\r\n\r\n this.is_alg_started = false;\r\n }",
"void setOsPSet(Set<String> osPs);",
"public void merge(FeatureSet<T> set) {\n\t\taddAllFeatures(set.getFeaturesList());\n\t}",
"public abstract void setLocations(java.util.Set locations);",
"public void merge(MapUtil newSet) {\n\t\tMap<String, Object> newMap = newSet.getInternalMap();\n\t\tfor (Entry<String, Object> entry : newMap.entrySet()) {\n\t\t\tvalues.put(entry.getKey(), entry.getValue());\n\t\t}\n\t}",
"public void populateUtilities(){\n\t\tMainScreen.groups = getGroups();\t//Populate Groups\n\t\tMainScreen.umArray = getUMs();\t\t//Populate Units of Measurement (UMs)\n\t\tMainScreen.locations = new WarehouseLocations();\t//Populate the Locations\n\t\tMainScreen.codeIndexTree = new IndexBTree();\n\t\tMainScreen.nameIndexTree = new IndexBTree();\n\t\tpopulateBinaryTrees();\n\t}",
"void assignToLists() {\n\n int lastOuterIndex = -1;\n int lastRightIndex = -1;\n for (int i = 0; i < rangeVariables.length; i++) {\n if (rangeVariables[i].isLeftJoin) {\n lastOuterIndex = i;\n }\n if(rangeVariables[i].isRightJoin) {\n lastOuterIndex = i;\n lastRightIndex = i;\n }\n\n if (lastOuterIndex == i) {\n joinExpressions[i].addAll(tempJoinExpressions[i]);\n } else {\n for (int j = 0; j < tempJoinExpressions[i].size(); j++) {\n assignToJoinLists(\n (Expression) tempJoinExpressions[i].get(j),\n joinExpressions, lastOuterIndex + 1);\n }\n }\n }\n\n for (int i = 0; i < queryExpressions.size(); i++) {\n assignToWhereLists((Expression) queryExpressions.get(i),\n whereExpressions, lastRightIndex);\n }\n }",
"@Override\n public void migrate(OccupiedLocations ols) {\n for (Population pop:ols.copyList()) {\n setCoordinate(pop.getCoordinate());\n\n Population migrating_pop = pop.collectMigrants(getRate());\n if (migrating_pop.getSize() > 0) {\n migrating_pop.setCoordinate(getPicker().pick());\n migrating_pop.setResource(0.0);\n\n // alter *actual* populations\n ols.addOrMix(migrating_pop);\n }\n }\n }",
"public static void updateVars() {\n IntVar tempo;\n for (Vars vars: getArrayutcc() ){\n tempo = (IntVar) Store.getModelStore().findVariable(vars.varname);\n vars.vinf = tempo.value();\n }\n\n }",
"public void setLocals (ArrayList<Coordinates> locals) {\n ArrayList<Coordinates> newLocals = new ArrayList<Coordinates>();\n\n for(Coordinates aux : locals)\n newLocals.add(aux);\n\n this.locals = newLocals;\n }",
"final protected void initializeVarDictionary ( Op op )\n\t{\n\t\t// We cannot call OpVars.allVars(op) directly because it does not\n\t\t// consider all variables in sub-operators of OpProject. Hence,\n\t\t// we simply strip the solution modifiers and, thus, call the\n\t\t// method for the first operator that is not a solution modifier.\n\t\tOp tmp = op;\n\t\twhile ( tmp instanceof OpModifier ) {\n\t\t\ttmp = ( (OpModifier) tmp ).getSubOp();\n\t\t}\n\n\t\tVarDictionary varDict = VarDictionary.getInstance();\n\t\tfor ( Var v : OpVars.visibleVars(tmp) ) { \n\t\t\tvarDict.createId( v );\n\t\t}\n\t}",
"private void assignJValuesToInputBranch()\r\n\t{\r\n\t\tfor (int j = lowestJValue; j <= highestJValue; j++) {\r\n\t\t\tinputBranchWithJ.put(j, inputBranchArray.get(j - lowestJValue));\r\n\t\t}\r\n\r\n\t\tif (isEType) {\r\n\t\t\tsetupAssociatedBranchesEType(inputBranchWithJ);\r\n\t\t} else {\r\n\t\t\tsetupAssociatedBranchesAType(inputBranchWithJ);\r\n\t\t}\r\n\r\n\t}",
"public void setInputs() {\n\t\tCIVLTable tbl_inputTable = (CIVLTable) getComponentByName(\"tbl_inputTable\");\n\t\tDefaultTableModel inputModel = (DefaultTableModel) tbl_inputTable\n\t\t\t\t.getModel();\n\t\tArrayList<CIVL_Input> inputList = currConfig.getInputs();\n\t\tinputList.clear();\n\t\tGMCSection gmcs = currConfig.getGmcConfig().getAnonymousSection();\n\t\tfor (int j = 0; j < inputModel.getRowCount(); j++) {\n\t\t\tString name = (String) inputModel.getValueAt(j, 0);\n\t\t\tString type = inputModel.getValueAt(j, 1).toString();\n\t\t\tObject value = inputModel.getValueAt(j, 2);\n\t\t\tString init = \"\";\n\n\t\t\tif (inputModel.getValueAt(j, 3) != null) {\n\t\t\t\tinit = inputModel.getValueAt(j, 3).toString();\n\t\t\t}\n\n\t\t\tCIVL_Input input = new CIVL_Input(name, type);\n\t\t\tinput.setValue(value);\n\t\t\tinput.setInitializer(init);\n\t\t\tinputList.add(input);\n\n\t\t\t// Add the inputs to the value map in GMCSection\n\t\t\tif (!value.toString().equals(\"\")) {\n\t\t\t\tgmcs.putMapEntry(CIVLConstants.inputO, input.getName(),\n\t\t\t\t\t\tinput.getValue());\n\t\t\t}\n\t\t}\n\n\t}",
"public void initPreference() {\n Map<String, String> opList = mUspManager.getAllOpPackList();\n Log.d(TAG, \"opList:\" + opList);\n\n if (opList != null) {\n TelephonyManager telephonyManager =\n (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);\n String mccMnc = telephonyManager.getSimOperatorNumericForPhone(SubscriptionManager\n .getDefaultVoicePhoneId());\n // Operator Id of operator whose sim is present\n String currentCarrierId = mUspManager.getOpPackFromSimInfo(mccMnc);\n Log.d(TAG, \"mccMnc:\" + mccMnc + \",currentCarrierId:\" + currentCarrierId);\n int size;\n String selectedOpPackId = mUspManager.getActiveOpPack();\n Log.d(TAG, \"selectedOpPackId: \" + selectedOpPackId);\n if (selectedOpPackId == null || selectedOpPackId.isEmpty()) {\n size = opList.size() + 1;\n } else {\n size = opList.size();\n }\n CharSequence[] choices = new CharSequence[size];\n CharSequence[] values = new CharSequence[size];\n // Need to fill arrays like this, cz map is unordered so extracted key array\n //may be unsynced with value array\n int index = 0;\n for (Map.Entry<String, String> pair : opList.entrySet()) {\n String choice = pair.getValue();\n if (currentCarrierId != null && currentCarrierId.equals(pair.getKey())) {\n choice += mContext.getResources().getString(R.string.recommended);\n }\n // OP ID\n values[index] = pair.getKey();\n // OP Name\n choices[index] = choice;\n Log.d(TAG, \"value[\" + index + \"]: \" + values[index]\n + \"-->Choice[\" + index + \"]: \" + choices[index]);\n index++;\n }\n //String selectedOpPackId = mUspManager.getActiveOpPack();\n //Log.d(TAG, \"selectedOpPackId: \" + selectedOpPackId);\n if (selectedOpPackId == null || selectedOpPackId.isEmpty()) {\n values[index] = OM_PACKAGE_VALUE;\n choices[index] = mContext.getResources().getString(R.string.om_package_name);\n selectedOpPackId = OM_PACKAGE_VALUE;\n }\n setEntries(choices);\n setEntryValues(values);\n setValue(selectedOpPackId);\n setSummary(getEntry());\n boolean isCallStateIdle = !TelecomManager.from(mContext).isInCall();\n Log.d(TAG, \"isCallStateIdle:\" + isCallStateIdle);\n this.setEnabled(isCallStateIdle);\n } else {\n this.setEnabled(false);\n }\n IntentFilter filter = new IntentFilter();\n filter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED);\n mContext.registerReceiver(mIntentReceiver, filter);\n }",
"public void setP(List<Production> p);",
"protected <Ty> HashSet<Ty> evaluate(ArrayList<HashSet<Ty>> setList, String opDescriptor) {\n if (setList == null || setList.isEmpty()) {\n return new HashSet<>();\n }\n if (setList.size() > 1) {\n for (char c : opDescriptor.toCharArray()) {\n if (c == '&') {\n setList.set(0, this.intersection(setList.get(0), setList.get(1)));\n setList.remove(1);\n } else if (c == '|') {\n setList.set(0, this.union(setList.get(0), setList.get(1)));\n setList.remove(1);\n }\n if (setList.size() == 1) {\n break;\n }\n }\n }\n return setList.get(0);\n }",
"private ILogicalOperator addRemainingAssignsAtTheTop(ILogicalOperator op, List<AssignOperator> assignOps) {\n ILogicalOperator root = op;\n for (AssignOperator aOp : assignOps) {\n aOp.getInputs().get(0).setValue(root);\n root = aOp;\n }\n return root;\n }",
"private void setData() {\n populateInterfaceElements();\n }",
"public RelevanceSet() {\r\n \tinitComponents();\r\n //updateData();\r\n }",
"public void populate() {\n populate(this.mCurItem);\n }",
"void populateData();",
"public void setValuesFromXML_local(Document dom) {\n\n\t}",
"void prefetchValues(Collection<R> entities);",
"public void initialize(VectorSet orig) {\n\t\t\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void populatesetlist() {\n\t\tmyset.add(new set(\"Password\", R.drawable.passwordop, \"hello\"));\n\t\tmyset.add(new set(\"Help\", R.drawable.helpso4, \"hello\"));\n\t\tmyset.add(new set(\"About Developers\", R.drawable.aboutusop2, \"hello\"));\n\t\tmyset.add(new set(\"Home\", R.drawable.homefi, \"hello\"));\n\t}",
"private void set_values(ArrayList<Integer> values)\r\n\t{\r\n\t\tthis.poss_values = values;\r\n\t}",
"private void setOntopia(String var, Object val, ContextManagerIF ctxmgr) {\n if (val instanceof Object[]) {\n\n Object[] jstlArray = (Object[])val;\n\n // Let the context manager create a collection to hold the array values.\n // Need one value to do this, so use first value in jstlArray (or null).\n ctxmgr.setValue(var, (jstlArray.length == 0)\n ? null\n : jstlArray[0]);\n Collection ontopiaValue = ctxmgr.getValue(var);\n\n // Add the rest of the values in jstlArray to ontopiaValue.\n for (int i = 1; i < jstlArray.length; i++) {\n ontopiaValue.add(jstlArray[i]);\n }\n } else if (val instanceof Collection) {\n ctxmgr.setValue(var, (Collection)val);\n } else {\n ctxmgr.setValue(var, val);\n }\n }",
"private static void initBaseSet() {\r\n KEYS.add(\"0\");\r\n SET.put(\"0\", new Module(new int[]{1, 1, 1, 2, 2, 1, 2, 1, 1}));\r\n KEYS.add(\"1\");\r\n SET.put(\"1\", new Module(new int[]{2, 1, 1, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"2\");\r\n SET.put(\"2\", new Module(new int[]{1, 1, 2, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"3\");\r\n SET.put(\"3\", new Module(new int[]{2, 1, 2, 2, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"4\");\r\n SET.put(\"4\", new Module(new int[]{1, 1, 1, 2, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"5\");\r\n SET.put(\"5\", new Module(new int[]{2, 1, 1, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"6\");\r\n SET.put(\"6\", new Module(new int[]{1, 1, 2, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"7\");\r\n SET.put(\"7\", new Module(new int[]{1, 1, 1, 2, 1, 1, 2, 1, 2}));\r\n KEYS.add(\"8\");\r\n SET.put(\"8\", new Module(new int[]{2, 1, 1, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"9\");\r\n SET.put(\"9\", new Module(new int[]{1, 1, 2, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"A\");\r\n SET.put(\"A\", new Module(new int[]{2, 1, 1, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"B\");\r\n SET.put(\"B\", new Module(new int[]{1, 1, 2, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"C\");\r\n SET.put(\"C\", new Module(new int[]{2, 1, 2, 1, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"D\");\r\n SET.put(\"D\", new Module(new int[]{1, 1, 1, 1, 2, 2, 1, 1, 2}));\r\n KEYS.add(\"E\");\r\n SET.put(\"E\", new Module(new int[]{2, 1, 1, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"F\");\r\n SET.put(\"F\", new Module(new int[]{1, 1, 2, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"G\");\r\n SET.put(\"G\", new Module(new int[]{1, 1, 1, 1, 1, 2, 2, 1, 2}));\r\n KEYS.add(\"H\");\r\n SET.put(\"H\", new Module(new int[]{2, 1, 1, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"I\");\r\n SET.put(\"I\", new Module(new int[]{1, 1, 2, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"J\");\r\n SET.put(\"J\", new Module(new int[]{1, 1, 1, 1, 2, 2, 2, 1, 1}));\r\n KEYS.add(\"K\");\r\n SET.put(\"K\", new Module(new int[]{2, 1, 1, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"L\");\r\n SET.put(\"L\", new Module(new int[]{1, 1, 2, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"M\");\r\n SET.put(\"M\", new Module(new int[]{2, 1, 2, 1, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"N\");\r\n SET.put(\"N\", new Module(new int[]{1, 1, 1, 1, 2, 1, 1, 2, 2}));\r\n KEYS.add(\"O\");\r\n SET.put(\"O\", new Module(new int[]{2, 1, 1, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"P\");\r\n SET.put(\"P\", new Module(new int[]{1, 1, 2, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"Q\");\r\n SET.put(\"Q\", new Module(new int[]{1, 1, 1, 1, 1, 1, 2, 2, 2}));\r\n KEYS.add(\"R\");\r\n SET.put(\"R\", new Module(new int[]{2, 1, 1, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"S\");\r\n SET.put(\"S\", new Module(new int[]{1, 1, 2, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"T\");\r\n SET.put(\"T\", new Module(new int[]{1, 1, 1, 1, 2, 1, 2, 2, 1}));\r\n KEYS.add(\"U\");\r\n SET.put(\"U\", new Module(new int[]{2, 2, 1, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"V\");\r\n SET.put(\"V\", new Module(new int[]{1, 2, 2, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"W\");\r\n SET.put(\"W\", new Module(new int[]{2, 2, 2, 1, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"X\");\r\n SET.put(\"X\", new Module(new int[]{1, 2, 1, 1, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"Y\");\r\n SET.put(\"Y\", new Module(new int[]{2, 2, 1, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"Z\");\r\n SET.put(\"Z\", new Module(new int[]{1, 2, 2, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"-\");\r\n SET.put(\"-\", new Module(new int[]{1, 2, 1, 1, 1, 1, 2, 1, 2}));\r\n KEYS.add(\".\");\r\n SET.put(\".\", new Module(new int[]{2, 2, 1, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\" \");\r\n SET.put(\" \", new Module(new int[]{1, 2, 2, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"$\");\r\n SET.put(\"$\", new Module(new int[]{1, 2, 1, 2, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"/\");\r\n SET.put(\"/\", new Module(new int[]{1, 2, 1, 2, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"+\");\r\n SET.put(\"+\", new Module(new int[]{1, 2, 1, 1, 1, 2, 1, 2, 1}));\r\n KEYS.add(\"%\");\r\n SET.put(\"%\", new Module(new int[]{1, 1, 1, 2, 1, 2, 1, 2, 1}));\r\n }",
"public Operations() {\n initComponents();\n populateO();\n }",
"public void mutate() {\n \t//POEY comment: for initialise() -> jasmine.gp.nodes.ercs\n //such as CustomRangeIntegerERC.java, PercentageERC.java, BoolERC.java \n \tsetValue(initialise());\n }",
"private void setSet(int[] set){\n this.set = set;\n }",
"public void setComponents(VirtualMachine vm, int[] regs, int counter, int stk, int cmp) {\n registers = regs;\n this.vm = vm;\n refresh(counter, stk, cmp);\n }",
"public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager) {\n if (!mergeManager.shouldCascadeReferences()) {\n // This is only going to happen on mergeClone, and we should not attempt to merge the reference\n return;\n }\n\n ContainerPolicy containerPolicy = getContainerPolicy();\n Object valueOfSource = getRealCollectionAttributeValueFromObject(source, mergeManager.getSession());\n Object valueOfTarget = containerPolicy.containerInstance(containerPolicy.sizeFor(valueOfSource));\n for (Object sourceValuesIterator = containerPolicy.iteratorFor(valueOfSource);\n containerPolicy.hasNext(sourceValuesIterator);) {\n Object sourceValue = containerPolicy.next(sourceValuesIterator, mergeManager.getSession());\n\n //CR#2896 - TW\n Object originalValue = getReferenceDescriptor(sourceValue.getClass(), mergeManager.getSession()).getObjectBuilder().buildNewInstance();\n getReferenceDescriptor(sourceValue.getClass(), mergeManager.getSession()).getObjectBuilder().mergeIntoObject(originalValue, true, sourceValue, mergeManager);\n containerPolicy.addInto(originalValue, valueOfTarget, mergeManager.getSession());\n }\n\n // Must re-set variable to allow for set method to re-morph changes if the collection is not being stored directly.\n setRealAttributeValueInObject(target, valueOfTarget);\n }",
"void updateParamAndModPanels(Object[] obj) {\n\n if ((obj == null) || (obj.length == 0)) {\n synchronized (basicPanel.getClusterPanel().getTreeLock()) {\n basicPanel.getClusterPanel().updateClusters(new Vector(), new Hashtable());\n }\n synchronized (basicPanel.getValPanel().getTreeLock()) {\n basicPanel.getValPanel().updateValues(new Vector());\n }\n synchronized (basicPanel.getModPanel().getTreeLock()) {\n basicPanel.getModPanel().updateList(new Vector());\n }\n return;\n }\n Hashtable nodes = new Hashtable();\n Hashtable nodeTreeSets = new Hashtable();\n Vector clusters = new Vector(getClusterList(obj[0], nodes, nodeTreeSets));\n Vector func = new Vector(getParamList(obj[0]));\n Vector modules = new Vector(getModuleList(obj[0]));\n TreeSet clusterSet = null;\n TreeSet funcSet = null;\n TreeSet moduleSet = null;\n if (!intersectSelected) {\n clusterSet = new TreeSet();\n auxiliarAdding(clusterSet, clusters);\n funcSet = new TreeSet();\n auxiliarAdding(funcSet, func);\n moduleSet = new TreeSet();\n auxiliarAdding(moduleSet, modules);\n }\n for (int i = 1; i < obj.length; i++) {\n if (intersectSelected) {\n intersectVectors(clusters, getClusterList(obj[i], nodes, nodeTreeSets));\n intersectVectors(func, getParamList(obj[i]));\n intersectVectors(modules, getModuleList(obj[i]));\n } else {\n reunionVectors(clusterSet, clusters, getClusterList(obj[i], nodes, nodeTreeSets));\n reunionVectors(funcSet, func, getParamList(obj[i]));\n reunionVectors(moduleSet, modules, getModuleList(obj[i]));\n }\n }\n func = order(func);\n modules = order(modules);\n synchronized (basicPanel.getClusterPanel().getTreeLock()) {\n basicPanel.getClusterPanel().updateClusters(clusters, nodes);\n }\n if (!basicPanel.getClusterPanel().areNodesSelected()) {\n synchronized (basicPanel.getValPanel().getTreeLock()) {\n basicPanel.getValPanel().updateValues(func);\n }\n }\n synchronized (basicPanel.getModPanel().getTreeLock()) {\n basicPanel.getModPanel().updateList(modules);\n }\n }",
"public void setControlVars(java.util.List<Object> controlValues);",
"private void createNullSet()\n\t{\n\t\tm_values = null;\n\t}",
"private void fillLocalPullDown(IMenuManager manager) {\n\t\tmanager.add(actionShowAll);\n\t\tmanager.add(actionShowInputs);\t\n\t\tmanager.add(actionShowOutputs);\n\t\tmanager.add(actionShowValueClients);\n\t\tmanager.add(actionShowRequiredValueClients);\n\t\tmanager.add(actionShowValueProviders);\n\t\tmanager.add(actionShowRequirements);\n\t\t\n\t\tmanager.add(new Separator());\n\t\tmanager.add(actionShowStateMachines);\n\t\tmanager.add(actionShowPredefinedTypesProperties);\n\t\t\n\t\tmanager.add(new Separator());\n\t\tmanager.add(actionExpandArrays);\n\n\t}",
"protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }",
"public void setLoad(Vec3D p) { p_ = p; }",
"@Test\n public void testSet() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }",
"public void nextSet(){\n this.fillVector();\n }",
"private void setUsedValuesByColumns() {\n //Loop through each column.\n IntStream.rangeClosed(1,9).forEach(i -> {\n //Loop through each position in the row.\n IntStream.rangeClosed(1,9).forEach(j -> {\n //If this value is not set find all the other values in the row and set \n //the possible values of this item to those that are not currently set.\n int column = i;\n Number currentNumber = numbers.stream()\n .filter(n -> n.getRow() == j)\n .filter(n -> n.getColumn() == column)\n .findAny().get();\n if (currentNumber.getValue() < 1) {\n //Used numbers in this column\n List<Integer> usedNumbers = numbers.stream()\n .filter(n -> n.getValue() > 0)\n .filter(n -> n.getRow() != j)\n .filter(n -> n.getColumn() == column)\n .map(Number::getValue)\n .collect(Collectors.toList());\n\n //Figure out where the numbers are different\n if (currentNumber.getUsedValues() == null){\n currentNumber.setUsedValues(usedNumbers);\n }\n else {\n currentNumber.setUsedValues(\n CollectionUtils.union(currentNumber.getUsedValues(), usedNumbers)\n .stream().collect(Collectors.toList()));\n }\n }\n });\n });\n\n }",
"public void setFieldValues(String op, List values)\n {\n if (op == null || op.trim().length() == 0)\n throw new IllegalArgumentException(\n \"operator must not be null or empty\");\n\n if (!isValidOperator(op))\n throw new IllegalArgumentException(\n \"Invalid operator specified for search field\");\n\n if (setValues(op, null, values))\n setDirty();\n }",
"public void set(VectorFloat values) {\n for (int i = 0; i < values.storage.length; i++) {\n storage[i] = values.storage[i];\n }\n }",
"private void populate(Set<Integer> set) {\n for (int i = 0; i < 100; i++) {\n if(Time.now() % 3 == 0) {\n set.add(i);\n }\n }\n }",
"public final CQLParser.setOperation_return setOperation() throws RecognitionException {\n CQLParser.setOperation_return retval = new CQLParser.setOperation_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token UNION69=null;\n Token INTERSECTION71=null;\n Token DIFFERENCE73=null;\n CQLParser.setOperationParameters_return setOperationParameters70 = null;\n\n CQLParser.setOperationParameters_return setOperationParameters72 = null;\n\n CQLParser.setOperationParameters_return setOperationParameters74 = null;\n\n\n Object UNION69_tree=null;\n Object INTERSECTION71_tree=null;\n Object DIFFERENCE73_tree=null;\n\n errorMessageStack.push(\"RESULT set operation\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:320:2: ( UNION setOperationParameters | INTERSECTION setOperationParameters | DIFFERENCE setOperationParameters )\n int alt17=3;\n switch ( input.LA(1) ) {\n case UNION:\n {\n alt17=1;\n }\n break;\n case INTERSECTION:\n {\n alt17=2;\n }\n break;\n case DIFFERENCE:\n {\n alt17=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 17, 0, input);\n\n throw nvae;\n }\n\n switch (alt17) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:320:4: UNION setOperationParameters\n {\n root_0 = (Object)adaptor.nil();\n\n UNION69=(Token)match(input,UNION,FOLLOW_UNION_in_setOperation1442); \n UNION69_tree = (Object)adaptor.create(UNION69);\n root_0 = (Object)adaptor.becomeRoot(UNION69_tree, root_0);\n\n pushFollow(FOLLOW_setOperationParameters_in_setOperation1445);\n setOperationParameters70=setOperationParameters();\n\n state._fsp--;\n\n adaptor.addChild(root_0, setOperationParameters70.getTree());\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:321:4: INTERSECTION setOperationParameters\n {\n root_0 = (Object)adaptor.nil();\n\n INTERSECTION71=(Token)match(input,INTERSECTION,FOLLOW_INTERSECTION_in_setOperation1450); \n INTERSECTION71_tree = (Object)adaptor.create(INTERSECTION71);\n root_0 = (Object)adaptor.becomeRoot(INTERSECTION71_tree, root_0);\n\n pushFollow(FOLLOW_setOperationParameters_in_setOperation1453);\n setOperationParameters72=setOperationParameters();\n\n state._fsp--;\n\n adaptor.addChild(root_0, setOperationParameters72.getTree());\n\n }\n break;\n case 3 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:322:4: DIFFERENCE setOperationParameters\n {\n root_0 = (Object)adaptor.nil();\n\n DIFFERENCE73=(Token)match(input,DIFFERENCE,FOLLOW_DIFFERENCE_in_setOperation1458); \n DIFFERENCE73_tree = (Object)adaptor.create(DIFFERENCE73);\n root_0 = (Object)adaptor.becomeRoot(DIFFERENCE73_tree, root_0);\n\n pushFollow(FOLLOW_setOperationParameters_in_setOperation1461);\n setOperationParameters74=setOperationParameters();\n\n state._fsp--;\n\n adaptor.addChild(root_0, setOperationParameters74.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }",
"public void processLargeInList(Set values);",
"private void _resetObsComponents() {\n // First handle the observation components. For each observation\n // component with a configuration builder user object, reset the\n // builder and place it in a list (_obsCompBuilders).\n\n List<ISPObsComponent> obsCompList = _obs.getObsComponents();\n if (obsCompList != null) {\n _obsCompBuilders = new ArrayList<>(obsCompList.size());\n\n for (ISPObsComponent obsComp : obsCompList) {\n IConfigBuilder cb = (IConfigBuilder) obsComp.getClientData(IConfigBuilder.USER_OBJ_KEY);\n if (cb != null) {\n cb.reset(_options);\n _obsCompBuilders.add(cb);\n }\n }\n\n _obsCompBuilders.trimToSize();\n }\n }",
"private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\n this.stockTree = new SearchTree<>(new StockComparator());\r\n this.ratingTree = new SearchTree<>(new RatingComparator());\r\n this.deliveryTree= new SearchTree<>(new DeliveryTimeComparator());\r\n\r\n this.foodArray = new ArrayQueue<>();\r\n this.restaurantArray = new ArrayQueue<>();\r\n\r\n // Fill arrays from property list.\r\n createFoodArray();\r\n arrayIterator.setCurrent(0); //Since the restaurantArray will use the same iterator\r\n createRestaurantArray();\r\n\r\n // Fill Binary Search Trees\r\n createFoodTrees();\r\n createRestaurantTrees();\r\n }",
"public void setValues(List<Object> values);",
"private void updateValues(){\n if (mCelsian != null) {\n mCelsian.readMplTemp();\n mCelsian.readShtTemp();\n mCelsian.readRh();\n mCelsian.readPres();\n mCelsian.readUvaValue();\n mCelsian.readUvbValue();\n mCelsian.readUvdValue();\n mCelsian.readUvcomp1Value();\n mCelsian.readUvcomp2Value();\n }\n }",
"private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }",
"private void setUsedValuesByBox(int startRow, int endRow, int startColumn, int endColumn) {\n\n List<Number> box = numbers.stream()\n .filter(n -> n.getRow() >= startRow)\n .filter(n -> n.getRow() <= endRow)\n .filter(n -> n.getColumn() >= startColumn)\n .filter(n -> n.getColumn() <= endColumn)\n .collect(Collectors.toList());\n\n box.forEach(n -> {\n if (n.getValue() == 0){\n List<Integer> usedNumbers = box.stream().filter(num -> num.getValue() > 0)\n .map(Number::getValue)\n .collect(Collectors.toList());\n \n //Figure out where the numbers are different\n if (n.getUsedValues() == null){\n n.setUsedValues(usedNumbers);\n }\n else {\n n.setUsedValues(\n CollectionUtils.union(n.getUsedValues(), usedNumbers)\n .stream().collect(Collectors.toList()));\n }\n }\n });\n }",
"public void setExternalFieldValues(String extOp, List values)\n {\n if (extOp == null || extOp.trim().length() == 0)\n throw new IllegalArgumentException(\n \"operator must not be null or empty\");\n\n if (setValues(null, extOp, values))\n setDirty();\n }",
"void assignToRangeVariables() {\n\n for (int i = 0; i < rangeVariables.length; i++) {\n boolean isOuter = rangeVariables[i].isLeftJoin\n || rangeVariables[i].isRightJoin;\n\n if (isOuter) {\n assignToRangeVariable(rangeVariables[i], i,\n joinExpressions[i], true);\n assignToRangeVariable(rangeVariables[i], i,\n whereExpressions[i], false);\n } else {\n joinExpressions[i].addAll(whereExpressions[i]);\n assignToRangeVariable(rangeVariables[i], i,\n joinExpressions[i], true);\n }\n\n if (rangeVariables[i].hasIndexCondition()\n && inExpressions[i] != null) {\n if (!flags[i] && isOuter) {\n rangeVariables[i].addWhereCondition(inExpressions[i]);\n } else {\n rangeVariables[i].addJoinCondition(inExpressions[i]);\n }\n\n inExpressions[i] = null;\n\n inExpressionCount--;\n }\n }\n\n if (inExpressionCount != 0) {\n setInConditionsAsTables();\n }\n }",
"private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }",
"private void populateFields() {\n\n if (mReportCursor == null) {\n return;\n }\n\n Cursor c = mReportCursor;\n mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE)));\n }",
"public void setData(){\n\t\tif(companyId != null){\t\t\t\n\t\t\tSystemProperty systemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"BUSINESS_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tbusinessType = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"MAX_INVALID_LOGIN\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvalidloginMax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tformatItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"STO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tstockOpnameNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"RN_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticProdCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_FORMAT_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tprodCodeFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SOINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SORCPT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DEFAULT_TAX_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesTax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DELIVERY_COST\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryCost = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceInvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PAYMENT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpaymentNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"TAX_VALUE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\ttaxValue = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t} else {\n\t\t\tbusinessType = null;\n\t\t\tinvalidloginMax = null;\n\t\t\tautomaticItemCode = null;\n\t\t\tformatItemCode = null;\n\t\t\tdeliveryItemNoFormat = null;\n\t\t\tstockOpnameNoFormat = null;\n\t\t\treceiptItemNoFormat = null;\n\t\t\tautomaticProdCode = null;\n\t\t\tprodCodeFormat = null;\n\t\t\tsalesNoFormat = null;\n\t\t\tinvoiceNoFormat = null;\n\t\t\treceiptNoFormat = null;\n\t\t\tsalesTax = null;\n\t\t\tdeliveryCost = null;\n\t\t\tpurchaceNoFormat = null;\n\t\t\tpurchaceInvoiceNoFormat = null;\n\t\t\tpaymentNoFormat = null;\n\t\t\ttaxValue = null;\n\t\t}\n\t}",
"protected void populate(EdaContext xContext, ResultSet rs) \n\tthrows SQLException, IcofException {\n\n\t\tsetId(rs.getLong(ID_COL));\n\t\tsetFromChangeReq(xContext, rs.getLong(FROM_ID_COL));\n\t\tsetToChangeReq(xContext, rs.getLong(TO_ID_COL));\n\t\tsetRelationship(rs.getString(RELATIONSHIP_COL));\n\t\tsetLoadFromDb(true);\n\n\t}",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"public PTreeCredalSet(Vector vars) {\n variables = (Vector)vars.clone();\n values = new ProbabilityTree(0);\n size = 1;\n }",
"public void populateParameterValues() {\n // Query for process step parameter values\n Map<String, Object> paramValBindVars = new HashMap<String, Object>();\n paramValBindVars.put(\"processStepId\", processStepId);\n List<Row> paramValues = DataHelper.queryVO(ProcessController.ENGINE_AM_CONFIG, ProcessController.ENGINE_AM_NAME, PROC_STEP_PARAM_VAL_EXEC_VO_INSTANCE_NAME, PROC_STEP_PARAM_VALUE_VC, paramValBindVars);\n\n // Populate each parameter value with a mapping or a constant value\n for (Row paramValue : paramValues) {\n if ( paramValue.getAttribute(\"ProcessStepParameterCode\")!= null ) {\n String paramCode = (String) paramValue.getAttribute(\"ProcessStepParameterCode\");\n //String paramTypeCode = (String) paramValue.getAttribute(\"ProcessStepParameterTypeCode\");\n String mapping = (String) paramValue.getAttribute(\"ProcessParameterCode\");\n //String procParamTypeCode = (String) paramValue.getAttribute(\"ProcessParameterTypeCode\");\n\n // if parameter is mapped to a constant, then assume its value exists in one of the four data type\n // fields, even though the parameter's data type is unknown\n Object paramVal = null;\n if ( mapping==null ) {\n paramVal = (String) paramValue.getAttribute(\"ParameterValueString\");\n if ( paramVal==null ) {\n paramVal = (BigDecimal) paramValue.getAttribute(\"ParameterValueNumber\");\n if ( paramVal==null ) {\n paramVal = (Date) paramValue.getAttribute(\"ParameterValueDate\");\n if ( paramVal==null ) {\n paramVal = (Timestamp) paramValue.getAttribute(\"ParameterValueTimestamp\");\n if ( paramVal==null ) {\n String val = (String) (paramValue.getAttribute(\"ParameterValueString\"));\n paramVal = new Boolean(val.toLowerCase());\n }\n }\n }\n }\n }\n\n parameterValues.put(paramCode, new ParameterValue(mapping, paramVal));\n }\n }\n }",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"public void unionOf(IntegerSet set1, IntegerSet set2) {\n get = new int[0];\n for (int i : set1.get)\n insertElement(i);\n for (int i : set2.get)\n insertElement(i);\n }",
"private static <T> Set<T> Create_UnModifiableSet_By_InputElements(@NonNull Set<T> set, @NonNull T... ts) {\n for (T t : ts) {\n set.add(t);\n }\n\n return Collections.unmodifiableSet(set);\n }",
"public void getValues(){\r\n //Get Values \r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: varContextField.setDouble(varContextObject,getDouble(evar)); break;\r\n case ARRAYDOUBLE: varContextField.set(varContextObject,getDoubleArray(evar)); break;\r\n case ARRAYDOUBLE2D: varContextField.set(varContextObject,getDoubleArray2D(evar)); break;\r\n case STRING: varContextField.set(varContextObject,getString(evar)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: getting a value \" + e);\r\n } \r\n } \r\n }",
"public void addAll(SelectionSet newSet)\n {\n elements.addAll(newSet.elements);\n }",
"public void setComUnits(ArrayList value);",
"private void setUsedValuesbyRow() {\n \n //Loop through each row.\n IntStream.rangeClosed(1,9).forEach(i -> {\n //Loop through each position in the row.\n IntStream.rangeClosed(1,9).forEach(j -> {\n //If this value is not set find all the other values in the row and set \n //the possible values of this item to those that are not currently set.\n int row = i;\n Number currentNumber = numbers.stream()\n .filter(n -> n.getRow() == row)\n .filter(n -> n.getColumn() == j)\n .findAny().get();\n //If the value is 0 it is not set\n if (currentNumber.getValue() < 1) {\n //Used numbers in this row\n List<Integer> usedNumbers = numbers.stream()\n .filter(n -> n.getValue() > 0)\n .filter(n -> n.getRow() == row)\n .filter(n -> n.getColumn() != j)\n .map(Number::getValue)\n .collect(Collectors.toList());\n\n //If position currently doesn't have used values then set them to \n //the ones that were found.\n if (currentNumber.getUsedValues() == null){\n currentNumber.setUsedValues(usedNumbers);\n }\n else {\n //Set the position's used values to the union of what it currently has and the\n //identifed used values.\n currentNumber.setUsedValues(\n CollectionUtils.union(currentNumber.getUsedValues(), usedNumbers)\n .stream().collect(Collectors.toList()));\n }\n }\n });\n });\n }",
"@Override\n public <N extends DomainObject<V>, V> void populate(T t, SqlFieldExternal sqlFieldExternal, Container<N, V> container, Stream<Object> idValues) {\n Function<UnitOfWork, CompletableFuture<List<N>>> completableFuture = unit -> getExternal(unit, t, sqlFieldExternal, idValues);\n\n try {\n sqlFieldExternal.getField().setAccessible(true);\n sqlFieldExternal.getField().set(t, completableFuture);\n } catch (IllegalAccessException e) {\n throw new DataMapperException(e);\n }\n }",
"private final void setupLocal() {\n _topLocal = true;\n // Check for global vs local work\n if( _nlo >= 0 && _nlo < _nhi-1 ) { // Have global work?\n // Note: some top-level calls have no other global work, so\n // \"topLocal==true\" does not imply \"nlo < nhi-1\".\n int selfidx = H2O.SELF.index();\n if( _nlo < selfidx ) _nleft = remote_compute(_nlo, selfidx );\n if( selfidx+1 < _nhi ) _nrite = remote_compute(selfidx+1,_nhi);\n }\n _lo = 0; _hi = _fr.firstReadable().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n if( _fr.hasAppendables() )\n _fs = new Futures();\n init(); // Setup any user's shared local structures\n }",
"public <V> List<V> get(Collection<V> initialValues) {\n List obj = pool.poll();\n if (obj != null) {\n @SuppressWarnings(\"unchecked\")\n List<V> value = (List<V>)obj;\n value.addAll(initialValues);\n return value;\n } else {\n return newObject(initialValues);\n }\n }",
"void setPosiblesValores(int[] valores);",
"private static void putXliffAltIntoTuv(Map<Long, Set<XliffAlt>> p_xlfAltMap, List<Tuv> p_tuvs)\n {\n if (p_xlfAltMap != null && p_xlfAltMap.size() > 0)\n {\n for (Tuv tuv : p_tuvs)\n {\n Set<XliffAlt> myAlts = p_xlfAltMap.get(tuv.getIdAsLong());\n if (myAlts != null && myAlts.size() > 0)\n {\n tuv.setXliffAlt(myAlts);\n }\n }\n }\n }",
"public PromoSetPack(){\r\n\t\tthis.Type = type.PROMO;\r\n\t\tthis.promo = new ArrayList<\t>();\r\n\t}",
"private void populate_tree(KDTree kdtree, ArrayList<Point> pointSet) {\n\t\tfor (Point p : pointSet) {\n\t\t\t\n\t\t\tArrayList<Double> coordinates = p.getCoordinates();\n\n\t\t\tdouble[] key = new double[coordinates.size()];\n\n\t\t\tfor (int i = 0; i < coordinates.size(); i++) {\n\t\t\t\tkey[i] = coordinates.get(i);\n\t\t\t}\n\n\t\t\tkdtree.insert(key, p);\n\t\t}\n\n\t}",
"private void assignComponents() {\r\n if (myTask != null) {\r\n textFieldName.setText(myTask.getName());\r\n textFieldDescription.setText(myTask.getDescription());\r\n textFieldDueDate.setText(myTask.getDueDate().toString());\r\n comboPriority.setSelectedItem(myTask.getPriority());\r\n } else {\r\n textFieldName.setText(null);\r\n textFieldDescription.setText(null);\r\n textFieldDueDate.setText(null);\r\n comboPriority.setSelectedItem(-1);\r\n }\r\n }",
"@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }",
"public void setOpData(java.lang.String param) {\r\n localOpDataTracker = param != null;\r\n\r\n this.localOpData = param;\r\n }",
"public void testSetLocalRessources() {\n\t\ttry {\n\t\t\tthis.part.setLocalRessources(null);\n\t\t\tfail(\"NullPointerException must be thrown\");\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t/* all clear */\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"wrong Exception\");\n\t\t}\n\n\t\ttry {\n\t\t\tDotplotFile file = new DotplotFile(\"./testfiles/fmatrix/test.txt\");\n\t\t\tCollection<DotplotFile> coll = new Vector<DotplotFile>();\n\t\t\tcoll.add(file);\n\t\t\tassertNotNull(this.part.getSourceList());\n\t\t\tassertEquals(0, this.part.getSourceList().size());\n\t\t\tthis.part.setLocalRessources(coll);\n\t\t\tISourceList list = this.part.getSourceList();\n\t\t\tassertEquals(1, list.size());\n\t\t\tassertTrue(list.contains(file));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"no exception:\" + e.getClass().getName() + \":\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}",
"private InternalQuery<G> setupCores(final InternalQuery<G> query) {\n\t\tfinal Iterator<Variable<G>> undistVarIterator = query.getUndistVars()\n\t\t\t\t.iterator();\n\t\tif (!undistVarIterator.hasNext()) {\n\t\t\treturn query;\n\t\t}\n\t\tfinal DisjointSet<Object> coreVertices = new DisjointSet<Object>();\n\t\tfinal List<QueryAtom<G>> toRemove = new ArrayList<QueryAtom<G>>();\n\n\t\tfinal InternalQuery<G> transformedQuery = query\n\t\t\t\t.apply(new ResultBindingImpl<G>());\n\n\t\twhile (undistVarIterator.hasNext()) {\n\t\t\tfinal Term<G> a = undistVarIterator.next();\n\n\t\t\tcoreVertices.add(a);\n\n\t\t\tfor (final QueryAtom<G> atom : query.findAtoms(\n\t\t\t\t\tQueryPredicate.PropertyValue, null, a, null)) {\n\t\t\t\tcoreVertices.add(atom);\n\t\t\t\tcoreVertices.union(a, atom);\n\n\t\t\t\tfinal Term<G> a2 = atom.getArguments().get(2);\n\t\t\t\tif (query.getUndistVars().contains(a2)) {\n\t\t\t\t\tcoreVertices.add(a2);\n\t\t\t\t\tcoreVertices.union(a, a2);\n\t\t\t\t}\n\t\t\t\ttransformedQuery.remove(atom);\n\t\t\t}\n\t\t\tfor (final QueryAtom<G> atom : query.findAtoms(\n\t\t\t\t\tQueryPredicate.PropertyValue, null, null, a)) {\n\t\t\t\tcoreVertices.add(atom);\n\t\t\t\tcoreVertices.union(a, atom);\n\n\t\t\t\tfinal Term<G> a2 = atom.getArguments().get(0);\n\t\t\t\tif (query.getUndistVars().contains(a2)) {\n\t\t\t\t\tcoreVertices.add(a2);\n\t\t\t\t\tcoreVertices.union(a, a2);\n\t\t\t\t}\n\t\t\t\ttransformedQuery.remove(atom);\n\t\t\t}\n\n\t\t\tfor (final QueryAtom<G> atom : query.findAtoms(QueryPredicate.Type,\n\t\t\t\t\tnull, a)) {\n\t\t\t\tcoreVertices.add(atom);\n\t\t\t\tcoreVertices.union(a, atom);\n\t\t\t\ttransformedQuery.remove(atom);\n\t\t\t}\n\t\t}\n\n\t\tfinal Map<Variable<G>, Set<G>> map = new HashMap<Variable<G>, Set<G>>();\n\t\tfinal Map<Variable<G>, InternalQuery<G>> map2 = new HashMap<Variable<G>, InternalQuery<G>>();\n\n\t\tfor (final Set<Object> set : coreVertices.getEquivalenceSets()) {\n\t\t\tfinal InternalQuery<G> coreQuery = new QueryImpl<G>(kb);\n\t\t\tfor (final Object a : set) {\n\t\t\t\tif (a instanceof QueryAtom) {\n\t\t\t\t\tfinal QueryAtom<G> queryAtom = (QueryAtom<G>) a;\n\t\t\t\t\ttransformedQuery.remove(queryAtom);\n\t\t\t\t\tcoreQuery.add(queryAtom);\n\t\t\t\t\tfor (final Term<G> t : queryAtom.getArguments()) {\n\t\t\t\t\t\tif (query.getDistVars().contains(t)) {\n\t\t\t\t\t\t\tcoreQuery.addDistVar(t.asVariable());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (final Variable<G> distVar : coreQuery.getDistVars()) {\n\t\t\t\tSet<G> s = map.get(distVar);\n\t\t\t\tInternalQuery<G> s2 = map2.get(distVar);\n\n\t\t\t\tif (s == null) {\n\t\t\t\t\ts = new HashSet<G>();\n\t\t\t\t\tmap.put(distVar, s);\n\t\t\t\t}\n\n\t\t\t\tif (s2 == null) {\n\t\t\t\t\tmap2.put(distVar, coreQuery.apply(Collections\n\t\t\t\t\t\t\t.<Variable<G>, Term<G>> emptyMap()));\n\t\t\t\t} else {\n\t\t\t\t\tfor (final QueryAtom<G> atom : coreQuery.getAtoms()) {\n\t\t\t\t\t\ts2.add(atom);\n\t\t\t\t\t}\n\n\t\t\t\t\ts2.addDistVar(distVar);\n\t\t\t\t\ts2.addResultVar(distVar);\n\t\t\t\t}\n\n\t\t\t\ts.add(coreQuery.rollUpTo(distVar, new HashSet<Term<G>>()));\n\t\t\t}\n\t\t}\n\n\t\tfor (final Variable<G> var : map.keySet()) {\n\t\t\ttransformedQuery\n\t\t\t\t\t.Core(var, f.wrap(f.objectIntersectionOf(map.get(var))),\n\t\t\t\t\t\t\tmap2.get(var));\n\t\t\ttransformedQuery.addDistVar(var);\n\t\t\ttransformedQuery.addResultVar(var);\n\t\t}\n\n\t\treturn transformedQuery;\n\t}",
"public SetSet(Vector<IntSet> initials){\n\t\tfor(int i=0;i<initials.size();i++){\n\t\t\tcontents.addElement(initials.get(i));\n\t\t}\n\t}",
"protected Object entryInitialFlow() {\n\t\treturn emptySet.clone();\n\t}",
"private void sample() {\n gaugeSet.values().forEach((key, value) ->\n this.inner.labels(key).set(value != null ? value.doubleValue() : 0));\n }",
"private void pushAssignsIntoLeafInputs(IPlanPrettyPrinter pp, List<ILogicalOperator> leafInputs,\n List<AssignOperator> assignOps, List<ILogicalExpression> assignJoinExprs) throws AlgebricksException {\n int pos = 0;\n for (ILogicalOperator lo : leafInputs) {\n ILogicalOperator joinLeafInput = lo;\n printPlan(pp, (AbstractLogicalOperator) joinLeafInput, \"Incoming leaf Input\");\n int assignNumber = findAssignOp(joinLeafInput, assignOps, assignJoinExprs);\n if (assignNumber != -1) {\n joinLeafInput = addAssignToLeafInput(joinLeafInput, assignOps.get(assignNumber));\n printPlan(pp, (AbstractLogicalOperator) joinLeafInput, \"Modified leaf Input\");\n leafInputs.add(pos, joinLeafInput);\n assignOps.remove(assignNumber);\n }\n pos++;\n }\n }",
"public abstract void set(DataType x, DataType y, DataType z);"
] | [
"0.5513905",
"0.52143645",
"0.5204237",
"0.5074531",
"0.5066268",
"0.50197536",
"0.49704373",
"0.49553788",
"0.49146914",
"0.48916295",
"0.48560306",
"0.4846781",
"0.4845485",
"0.4829025",
"0.4826332",
"0.48230824",
"0.4819353",
"0.48172453",
"0.4812357",
"0.48063022",
"0.47952718",
"0.47952217",
"0.47840792",
"0.47744802",
"0.47480252",
"0.47404367",
"0.47384265",
"0.47381392",
"0.4711525",
"0.47068462",
"0.4692705",
"0.46878958",
"0.46873078",
"0.46757308",
"0.46724048",
"0.4670876",
"0.4669692",
"0.4665246",
"0.46518686",
"0.46349335",
"0.4628318",
"0.46271384",
"0.46256444",
"0.4619141",
"0.4616689",
"0.46159658",
"0.46119636",
"0.46083224",
"0.46030566",
"0.46019176",
"0.46017805",
"0.45950234",
"0.45923102",
"0.45901644",
"0.45810774",
"0.4579591",
"0.45707253",
"0.4566974",
"0.45630926",
"0.4556428",
"0.45544344",
"0.45452917",
"0.45431668",
"0.4542057",
"0.4536588",
"0.45342675",
"0.453235",
"0.45251027",
"0.45220104",
"0.45194286",
"0.45165652",
"0.45132118",
"0.45027515",
"0.44967222",
"0.44916257",
"0.44911897",
"0.44899914",
"0.4485869",
"0.44806153",
"0.44796774",
"0.447778",
"0.44727042",
"0.44683242",
"0.44658825",
"0.44628194",
"0.44624862",
"0.44593206",
"0.4454401",
"0.4453193",
"0.44502643",
"0.44491488",
"0.44419253",
"0.44419122",
"0.44393218",
"0.4438919",
"0.442432",
"0.44101378",
"0.44099155",
"0.44095",
"0.44090536"
] | 0.5032846 | 5 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof PresenceEtudiantPK)) {
return false;
}
PresenceEtudiantPK other = (PresenceEtudiantPK) object;
if (this.nbrJour != other.nbrJour) {
return false;
}
if (this.idEtudiant != other.idEtudiant) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"protected abstract String getId();",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public int getId()\n {\n return id;\n }",
"public String getID(){\n return Id;\n }"
] | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.6477893",
"0.6426692",
"0.6418966",
"0.6416817",
"0.6401561",
"0.63664836",
"0.63549376",
"0.63515353",
"0.6347672",
"0.6324549",
"0.6319196",
"0.6301484",
"0.62935394",
"0.62935394",
"0.62832105",
"0.62710917",
"0.62661785",
"0.6265274",
"0.6261401",
"0.6259253",
"0.62559646",
"0.6251244",
"0.6247282",
"0.6247282",
"0.6245526",
"0.6238957",
"0.6238957",
"0.6232451",
"0.62247443",
"0.6220427",
"0.6219304",
"0.6211484",
"0.620991",
"0.62023336",
"0.62010616",
"0.6192621",
"0.61895776",
"0.61895776",
"0.61893976",
"0.61893976",
"0.61893976",
"0.6184292",
"0.618331",
"0.61754644",
"0.6173718",
"0.6168409",
"0.6166131",
"0.6161708",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.61556244",
"0.61556244",
"0.61430943",
"0.61340135",
"0.6128617",
"0.6127841",
"0.61065215",
"0.61043483",
"0.61043483",
"0.6103568",
"0.61028486",
"0.61017346",
"0.6101399",
"0.6098963",
"0.6094214",
"0.6094",
"0.6093529",
"0.6093529",
"0.6091623",
"0.60896",
"0.6076881",
"0.60723215",
"0.6071593",
"0.6070138",
"0.6069936",
"0.6069529"
] | 0.0 | -1 |
TODO Autogenerated method stub | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.